6c991eab21560f87a2987745020f747f4aa63d10
[gnulib.git] / ChangeLog
1 2009-09-02  Eric Blake  <ebb9@byu.net>
2
3         openat-safer: new module
4         * modules/openat-safer: New file.
5         * lib/openat-safer.c: Likewise.
6         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7         * lib/fcntl-safer.h (openat_safer): Declare.
8         * lib/fcntl--.h (openat): Override.
9         * MODULES.html.sh (File descriptor based I/O): Mention it.
10         * lib/openat.h: Add double-inclusion guards.
11         * lib/openat.c (includes): Only include "fcntl-safer.h", not
12         "fcntl--.h", so we can implement openat.
13         * modules/openat-safer-tests: New test.
14         * tests/test-openat-safer.c: New file.
15
16         dirent-safer: new module
17         * modules/dirent-safer: New file.
18         * lib/dirent--.h: Likewise.
19         * lib/dirent-safer.h: Likewise.
20         * lib/opendir-safer.c: Likewise.
21         * m4/dirent-safer.m4: Likewise.
22         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
23         * modules/dirent-safer-tests: New test.
24         * tests/test-dirent-safer.c: New file.
25         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26
27         fdopendir: optimize on mingw
28         * lib/unistd.in.h (_gl_directory_name): New prototype.
29         * lib/fchdir.c (_gl_directory_name): Implement it.
30         (fchdir): Use it to simplify implementation.
31         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32         fchdir, when available, to avoid calling [f]chdir().
33
34         fdopendir: split into its own module
35         * lib/openat.c (fdopendir): Move...
36         * lib/fdopendir.c: ...into new file.
37         * modules/fdopendir: New module.
38         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
39         * modules/openat (Depends-on): Add fdopendir.
40         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41         fdopendir here.
42         * modules/savedir (Depends-on): Only need fdopendir, not full
43         openat.
44         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45         * lib/openat.h (fdopendir): Drop prototype.
46         * lib/dirent.in.h (fdopendir): Provide prototype.
47         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
48         * modules/dirent (Makefile.am): Substitute them.
49         * MODULES.html.sh (File system functions): Mention it.
50         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
51         * modules/fdopendir-tests: New file.
52         * tests/test-fdopendir.c: Likewise.
53
54         fchdir: use more consistent macro convention
55         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
56         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
57         REPLACE_FCHDIR, rather than relying on config.h macros.
58         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
59         inside a single make-time REPLACE_FCHDIR block, rather than using
60         the config.h FCHDIR_REPLACEMENT.
61         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
62         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
63         Manage fstat replacement.
64         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
65         REPLACE_FCHDIR.
66         * modules/sys_stat (Files): Add m4/unistd_h.m4.
67         (Makefile.am): Substitute REPLACE_FCHDIR.
68         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
69         FCHDIR_REPLACEMENT.
70         * lib/dup-safer.c (dup_safer): Likewise.
71         * lib/dup2.c (rpl_dup2): Likewise.
72         * lib/dup3.c (rpl_dup3): Likewise.
73         * lib/open.c (rpl_open): Likewise.
74
75         fchdir: simplify error handling, and support dup3
76         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77         stdbool, malloc-posix, realloc-posix.
78         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
79         (ensure_dirs_slot): Return false on allocation failure.
80         (rpl_dup2): Delete.
81         (_gl_register_dup): New function.
82         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
83         (_gl_register_fd): Close fd on allocation failure.
84         * lib/fcntl.in.h (_gl_register_fd): Update signature.
85         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
86         prototype.
87         (rpl_dup2_fchdir): Delete prototype.
88         * lib/open.c (open): Update caller.
89         * lib/dup2.c (dup2): Track fchdir metadata.
90         * lib/dup3.c (dup3): Likewise.
91         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
92         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
93
94 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95
96         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
97         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
98         don't pass arguments to AC_OUTPUT.
99
100 2009-09-02  Bruno Haible  <bruno@clisp.org>
101
102         * modules/mkdtemp (License): Relicense under LGPLv2+.
103         Reported by Paolo Bonzini.
104
105 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106
107         Replace uses of obsolete autoconf macros in Jim's modules.
108         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
109         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
110         can evoke a warning from autoconf when run with -Wobsolete
111         enabled.  They were declared obsolete for good reasons (see
112         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
113         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
114         should not continue using the deprecated macros.
115         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
116         obsolete Autoconf macros with modern counterparts.
117         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
118         * m4/dos.m4 (gl_AC_DOS): Likewise.
119         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
121         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
122         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
123         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
124         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
125         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
126         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
127         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
128         Likewise.
129         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
130         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
131         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
132         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
133         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
134         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
135
136 2009-09-01  Eric Blake  <ebb9@byu.net>
137
138         fchdir: fix off-by-one bug in previous patch
139         * lib/fchdir.c (rpl_fstat): Use correct bounds.
140         (_gl_unregister_fd): Delete useless if.
141
142 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
143
144         maint.mk: sort the list of syntax-check rules
145         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
146         easier to get a sense of progress when the rules are run sequentially
147         and take a long time.
148
149 2009-09-01  Simon Josefsson  <simon@josefsson.org>
150
151         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
152         * modules/netinet_in: Likewise.
153         * modules/sys_file: Likewise.
154         * modules/sys_ioctl: Likewise.
155         * modules/sys_select: Likewise.
156         * modules/sys_socket: Likewise.
157         * modules/sys_stat: Likewise.
158         * modules/sys_time: Likewise.
159         * modules/sys_times: Likewise.
160         * modules/sys_utsname: Likewise.
161         * modules/sys_wait: Likewise.
162
163 2009-09-01  Jim Meyering  <meyering@redhat.com>
164
165         fts: help ensure that return values are not ignored
166         * lib/fts_.h (__GNUC_PREREQ): Define.
167         (__attribute_warn_unused_result__): Define.
168         (fts_children, fts_close, fts_open, fts_read): Declare with
169         __attribute_warn_unused_result__.
170
171         fts: fts_close now fails also when closing a dir file descriptor fails
172         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
173         and propagate to caller, along with errno.
174
175         announce-gen: correct formatting in --help output
176         * build-aux/announce-gen (usage): Move the one-line description in
177         --help output "up", to where it belongs, just after Usage:.
178
179 2009-08-31  Eric Blake  <ebb9@byu.net>
180
181         fchdir: port to mingw
182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
183         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
184         opened, then use a substitute.
185         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
186         replacement.
187         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
188         (_gl_register_fd): No need to check stat if open already filters
189         all directories.
190         (fchdir): Fix error condition to match POSIX.
191         * modules/fchdir (Depends-on): Add sys_stat.
192         * doc/posix-functions/open.texi (open): Document the limitation.
193         * modules/fchdir-tests: New file.
194         * tests/test-fchdir.c: Likewise.
195
196         canonicalize: allow cross-testing from cygwin to mingw
197         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
198         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
199         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
200         Likewise.
201         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
202         target does not support symlinks.
203         * tests/test-canonicalize-lgpl.sh: Likewise.
204
205         chown: avoid compilation warning on mingw
206         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
207         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
208         mingw.
209         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
210         * modules/chown (Depends-on): Add errno.
211
212 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
213
214         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
215         command.
216
217 2009-08-31  Jim Meyering  <meyering@redhat.com>
218
219         canonicalize: remove useless initialization
220         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
221         initialization of local, "end".
222
223 2009-08-30  Bruno Haible  <bruno@clisp.org>
224
225         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
226         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
227         ENOSYS.
228
229 2009-08-30  Bruno Haible  <bruno@clisp.org>
230
231         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
232         /usr/xpg4/bin/tr when it exists.
233         * tests/test-pipe-filter-gi1.sh: Likewise.
234
235 2009-08-30  Bruno Haible  <bruno@clisp.org>
236
237         Work around deficient /usr/bin/id program on Solaris.
238         * tests/test-file-has-acl.sh (ID): New variable.
239         * tests/test-set-mode-acl.sh (ID): Likewise.
240         * tests/test-copy-acl.sh (ID): Likewise.
241         * tests/test-copy-file.sh (ID): Likewise.
242
243 2009-08-30  Bruno Haible  <bruno@clisp.org>
244
245         New module 'xstriconveh'.
246         * lib/xstriconveh.h: New file.
247         * lib/xstriconveh.c: New file.
248         * modules/xstriconveh: New file.
249
250 2009-08-30  Bruno Haible  <bruno@clisp.org>
251
252         Make it easier to use mem_cd_iconveh.
253         * lib/striconveh.h (iconveh_t): New type.
254         (iconveh_open, iconveh_close): New declarations.
255         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
256         with a single 'const iconveh_t *' argument.
257         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
258         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
259         with a single 'const iconveh_t *' argument.
260         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
261         * tests/test-striconveh.c (main): Update.
262         * NEWS: Mention the change.
263
264 2009-08-30  Bruno Haible  <bruno@clisp.org>
265
266         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
267         problem.
268
269 2009-08-30  Bruno Haible  <bruno@clisp.org>
270
271         Work around iconv_open problem on Solaris.
272         * lib/iconv_open-solaris.gperf: New file.
273         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
274         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
275         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
276         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
277         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
278         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
279
280 2009-08-29  Jim Meyering  <meyering@redhat.com>
281
282         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
283         * top/maint.mk (cvs-check): Remove target; it was just an alias
284         to the better-named vc-diff-check.
285         (maintainer-distcheck): Remove rule.  It was used only from
286         the (alpha/beta/major) target, and all of its commands but one
287         were coreutils-specific.
288         (vc-dist): Remove rule.
289         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
290         Run vc-diff-check, not vc-dist.
291         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
292
293 2009-08-27  Bruno Haible  <bruno@clisp.org>
294
295         * tests/test-bitrotate.c (main): Remove test that uses a shift count
296         of 0.
297
298 2009-08-27  Bruno Haible  <bruno@clisp.org>
299
300         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
301         compilers.
302         * doc/func.texi: Document the SunPRO C bug.
303
304 2009-08-27  Bruno Haible  <bruno@clisp.org>
305
306         Fix link error on Solaris.
307         * tests/test-parse-duration.c (xstrdup): Remove function.
308
309 2009-08-26  Pádraig Brady  <P@draigbrady.com>
310
311         ignore-value: handle pointer types, too
312         * lib/ignore-value.h (__attribute__): Remove definition.
313         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
314         of a more concise and more-often effective "(void) i" statement.
315         (ignore_ptr): New function to suppress warnings from functions that
316         return pointers, and to make it explicit that one function doesn't
317         handle all cases.
318
319 2009-08-25  Bruno Haible  <bruno@clisp.org>
320
321         dup2: work around a Linux bug.
322         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
323         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
324         * doc/posix-functions/dup2.texi: Mention the Linux bug.
325         Reported by Simon Josefsson.
326
327 2009-08-25  Jim Meyering  <meyering@redhat.com>
328
329         libguestfs uses gnulib
330         * users.txt: Add libguestfs.
331
332 2009-08-24  Eric Blake  <ebb9@byu.net>
333
334         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
335         * lib/pipe2.c (includes): Add binary-io.h.
336         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
337
338 2009-08-24  Bruno Haible  <bruno@clisp.org>
339
340         Tolerate declared but missing accept4 syscall.
341         * lib/accept4.c (accept4): Invoke original accept4 function first, if
342         available.
343         * lib/sys_socket.in.h (accept4): If the function is already present,
344         override it.
345         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
346         * modules/accept4 (Makefile.am): Compile accept4.c always.
347         Reported by Paolo Bonzini and Eric Blake.
348
349 2009-08-23  Bruno Haible  <bruno@clisp.org>
350
351         New module 'accept4'.
352         * lib/sys_socket.in.h (accept4): New declaration.
353         * lib/accept4.c: New file.
354         * m4/accept4.m4: New file.
355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
356         GNULIB_ACCEPT4, HAVE_ACCEPT4.
357         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
358         HAVE_ACCEPT4.
359         * modules/accept4: New file.
360         * doc/glibc-functions/accept4.texi: Mention the new module.
361
362 2009-08-24  Jim Meyering  <meyering@redhat.com>
363
364         progname: also set global program_invocation_name, when possible
365         Before this change, a libtool-enabled program that calls glibc's
366         error function would report the program name as
367         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
368         * modules/progname (configure.ac): Check for a declaration of
369         program_invocation_name.
370         * lib/progname.c:  Include <errno.h>.
371         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
372         Set program_invocation_name.
373
374 2009-08-23  Bruno Haible  <bruno@clisp.org>
375
376         * lib/dup3.c: Include <string.h>.
377
378 2009-08-23  Bruno Haible  <bruno@clisp.org>
379
380         * lib/dup3.c (dup3): Test only once whether the system actually exists.
381         * lib/pipe2.c (pipe2): Likewise.
382         Suggested by Eric Blake.
383
384 2009-08-23  Bruno Haible  <bruno@clisp.org>
385
386         Tolerate declared but missing dup3 syscall.
387         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
388         * lib/unistd.in.h (dup3): If the function is already present,
389         override it.
390         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
391         * modules/dup3 (Makefile.am): Compile dup3.c always.
392         Reported by Paolo Bonzini.
393
394 2009-08-23  Bruno Haible  <bruno@clisp.org>
395
396         Tolerate declared but missing pipe2 syscall.
397         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
398         available.
399         * lib/unistd.in.h (pipe2): If the function is already present,
400         override it.
401         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
402         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
403         Reported by Paolo Bonzini.
404
405 2009-08-23  Bruno Haible  <bruno@clisp.org>
406
407         * lib/pipe2.c (pipe2): Move #ifs inside function.
408
409 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
410
411         quotearg: document limitations of quote_these_too
412         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
413         those limitations are created.
414         * lib/quotearg.h (set_char_quoting): Document that digits and
415         letters that are special after backslash are not permitted.
416         (quotearg_char): Cross-reference set_char_quoting documentation.
417
418 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
419
420         quotearg: implement custom_quoting_style
421         * lib/quotearg.c: (struct quoting_options): Add left_quote and
422         right_quote fields.
423         (set_custom_quoting): New public function.
424         (quotearg_buffer_restyled): Add left_quote and right_quote
425         arguments, handle them very much like locale quoting, and update
426         all uses.
427         (quotearg_n_custom): New public function.
428         (quotearg_n_custom_mem): New public function.
429         (quotearg_custom): New public function.
430         (quotearg_custom_mem): New public function.
431         * lib/quotearg.h: Prototype and document new public functions.
432         (enum quoting_style): For escape_quoting_style and
433         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
434         ignored even though they're otherwise like c_quoting_style.
435         Add custom_quoting_style member and document with comparison to
436         clocale_quoting_style.
437         * tests/test-quotearg.c (custom_quotes): New array.
438         (custom_results): New array.
439         (main): Extend to test custom quoting.
440
441 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
442
443         quotearg: fix right quote escaping when it's in quote_these_too
444         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
445         quote, be sure to prepend only one backslash.
446         * tests/test-quotearg.c (use_quote_double_quotes): New function.
447         (main): Test it.
448
449 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
450
451         quotearg-tests: test escaping of embedded locale quotes
452         * tests/test-quotearg.c (struct result_strings): Add member for
453         new input.
454         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
455         (inputs): Add new input.
456         (results_g): Add expected results.
457         (flag_results): Likewise.
458         (locale_results): Likewise.
459         (compare_strings): Check those.
460
461 2009-08-23  Bruno Haible  <bruno@clisp.org>
462
463         Tests for module 'dup3'.
464         * modules/dup3-tests: New file.
465         * tests/test-dup3.c: New file.
466
467         New module 'dup3'.
468         * lib/unistd.in.h (dup3): New declaration.
469         * lib/dup3.c: New file.
470         * m4/dup3.m4: New file.
471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
472         HAVE_DUP3.
473         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
474         * modules/dup3: New file.
475         * doc/glibc-functions/dup3.texi: Mention the new module.
476
477 2009-08-23  Bruno Haible  <bruno@clisp.org>
478
479         Tweak the dup2 test.
480         * tests/test-dup2.c (main): Create the test file empty. Verify that an
481         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
482         the test file is still empty. Fix argument order of lseek.
483
484 2009-08-23  Bruno Haible  <bruno@clisp.org>
485
486         Avoid test link errors when the modules getopt-gnu, gettext are used.
487         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
489
490 2009-08-23  Bruno Haible  <bruno@clisp.org>
491
492         Fix getdtablesize() on mingw.
493         * lib/getdtablesize.c (getdtablesize): Implement differently.
494         * lib/unistd.in.h (getdtablesize): Improve comment.
495
496 2009-08-23  Bruno Haible  <bruno@clisp.org>
497
498         New module 'mkostemp'.
499         Based on Ulrich Drepper's 2007-08-10 change in glibc.
500         * lib/stdlib.in.h (mksotemp): New declaration.
501         * lib/mkostemp.c: New file, from glibc with modifications.
502         * lib/tempname.h (GT_FILE): Remove outdated comment.
503         (gen_tempname): Add flags argument.
504         * lib/tempname.c (__GT_BIGFILE): Remove macro.
505         (__GT_FILE): Map to 1.
506         (small_open, large_open): Remove macros.
507         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
508         * lib/mkstemp.c (mkstemp): Update.
509         * lib/mkdtemp.c (mkdtemp): Likewise.
510         * m4/mkostemp.m4: New file.
511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
512         HAVE_MKOSTEMP.
513         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
514         HAVE_MKOSTEMP.
515         * modules/mkostemp: New file, based on modules/mkstemp.
516         * doc/glibc-functions/mkostemp.texi: Mention the new module.
517         * NEWS: Mention the change.
518
519 2009-08-23  Bruno Haible  <bruno@clisp.org>
520
521         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
522         Reported by Eric Blake.
523
524 2009-08-23  Bruno Haible  <bruno@clisp.org>
525
526         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
527         Reported by Eric Blake.
528
529 2009-08-23  Bruno Haible  <bruno@clisp.org>
530
531         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
532         * modules/pipe2 (Depends-on): Likewise.
533
534 2009-08-23  Eric Blake  <ebb9@byu.net>
535
536         fcntl-h: add O_TTY_INIT support
537         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
538         * tests/test-fcntl-h.c (o): Test it.
539         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
540
541         fcntl-h: rename from fcntl, in preparation for fcntl(2)
542         * modules/fcntl: Move <fcntl.h> header replacement...
543         * modules/fcntl-h: ...to new name, so as not to collide with
544         like-named function.
545         * tests/test-fcntl.c: Rename...
546         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
547         * modules/fcntl-tests: Rename...
548         * modules/fcntl-h-tests: ...to this.  Update test file name.
549         * modules/chdir-long (Depends-on): Update clients.
550         * modules/chdir-safer (Depends-on): Likewise.
551         * modules/fcntl-safer (Depends-on): Likewise.
552         * modules/fts (Depends-on): Likewise.
553         * modules/mkancesdirs (Depends-on): Likewise.
554         * modules/mkdir-p (Depends-on): Likewise.
555         * modules/open (Depends-on): Likewise.
556         * modules/savewd (Depends-on): Likewise.
557         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
558         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
559
560 2009-08-22  Bruno Haible  <bruno@clisp.org>
561
562         * modules/binary-io (License): Relicense under LGPL.
563         * modules/pipe2 (License): Likewise.
564
565 2009-08-22  Bruno Haible  <bruno@clisp.org>
566
567         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
568         return value.
569         * lib/pipe-filter-gi.c (filter_init): Likewise.
570         Reported by Eric Blake.
571
572 2009-08-22  Bruno Haible  <bruno@clisp.org>
573
574         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
575         * modules/pipe (Depends-on): Add pipe2.
576
577 2009-08-22  Bruno Haible  <bruno@clisp.org>
578
579         Tests for module 'pipe2'.
580         * modules/pipe2-tests: New file.
581         * tests/test-pipe2.c: New file.
582
583         New module 'pipe2'.
584         * lib/unistd.in.h (pipe2): New declaration.
585         * lib/pipe2.c: New file.
586         * m4/pipe2.m4: New file.
587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
588         HAVE_PIPE2.
589         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
590         * modules/pipe2: New file.
591         * doc/glibc-functions/pipe2.texi: Mention the new module.
592
593 2009-08-22  Bruno Haible  <bruno@clisp.org>
594
595         Reference some new glibc functions.
596         * doc/glibc-functions/accept4.texi: New file.
597         * doc/glibc-functions/dup3.texi: New file.
598         * doc/glibc-functions/mkostemp.texi: New file.
599         * doc/glibc-functions/pipe2.texi: New file.
600         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
601         (Glibc sys/socket.h): Refer to accept4.
602         (Glibc unistd.h): Refer to dup3, pipe2.
603         Reported by Eric Blake.
604
605 2009-08-22  Jim Meyering  <meyering@redhat.com>
606             Bruno Haible  <bruno@clisp.org>
607
608         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
609         This makes it so packages using automake-1.11's silent-rules option
610         can print e.g., a single "GEN    configmake.h" line, rather than
611         the 30+ statements that perform the job.  If you want to see the
612         actual commands, you can still run "make V=1".
613         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
614         so that make output is abbreviated when those variables are defined
615         appropriately.
616         * modules/argz: Likewise.
617         * modules/arpa_inet: Likewise.
618         * modules/byteswap: Likewise.
619         * modules/configmake: Likewise.
620         * modules/dirent: Likewise.
621         * modules/errno: Likewise.
622         * modules/fcntl: Likewise.
623         * modules/float: Likewise.
624         * modules/fnmatch: Likewise.
625         * modules/getopt-posix: Likewise.
626         * modules/glob: Likewise.
627         * modules/iconv_open: Likewise.
628         * modules/inttypes: Likewise.
629         * modules/localcharset: Likewise.
630         * modules/locale: Likewise.
631         * modules/math: Likewise.
632         * modules/netdb: Likewise.
633         * modules/netinet_in: Likewise.
634         * modules/poll: Likewise.
635         * modules/posix_spawnp-tests: Likewise.
636         * modules/sched: Likewise.
637         * modules/search: Likewise.
638         * modules/selinux-h: Likewise.
639         * modules/signal: Likewise.
640         * modules/spawn: Likewise.
641         * modules/stdarg: Likewise.
642         * modules/stdbool: Likewise.
643         * modules/stddef: Likewise.
644         * modules/stdint: Likewise.
645         * modules/stdio: Likewise.
646         * modules/stdlib: Likewise.
647         * modules/string: Likewise.
648         * modules/strings: Likewise.
649         * modules/sys_file: Likewise.
650         * modules/sys_ioctl: Likewise.
651         * modules/sys_select: Likewise.
652         * modules/sys_socket: Likewise.
653         * modules/sys_stat: Likewise.
654         * modules/sys_time: Likewise.
655         * modules/sys_times: Likewise.
656         * modules/sys_utsname: Likewise.
657         * modules/sys_wait: Likewise.
658         * modules/sysexits: Likewise.
659         * modules/time: Likewise.
660         * modules/unistd: Likewise.
661         * modules/wchar: Likewise.
662         * modules/wctype: Likewise.
663
664 2009-08-22  Jim Meyering  <meyering@redhat.com>
665
666         announce-gen: detect write failure
667         * build-aux/announce-gen: Add Coda at end.
668         Remove equivalent-but-more-verbose block at top.
669
670 2009-08-19  Akim Demaille  <demaille@gostai.com>
671
672         bootstrap: --help to stdout.
673         * bootstrap (usage): Don't send --help to stderr.
674         Use a here doc instead of a long string.
675
676 2009-08-21  Eric Blake  <ebb9@byu.net>
677
678         test-popen-safer: split from test-popen
679         * tests/test-popen.c (main): Move...
680         * tests/test-popen.h: ...into new file.
681         * tests/test-popen-safer2.c: New file.
682         * modules/popen-tests (Files): Add test-popen.h.
683         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
684         Suggested by Bruno Haible.
685
686         test-fcntl-safer: split from test-open
687         * tests/test-open.c (main): Move...
688         * tests/test-open.h: ...into new file.
689         * tests/test-fcntl-safer.c: New file.
690         * modules/open-tests (Files): Add test-open.h.
691         * modules/fcntl-safer-tests: New file.
692         Suggested by Bruno Haible.
693
694         test-fopen-safer: split from test-fopen
695         * tests/test-fopen.c (main): Move...
696         * tests/test-fopen.h: ...into new file.
697         * tests/test-fopen-safer.c: New file.
698         * modules/fopen-tests (Files): Add test-fopen.h.
699         * modules/fopen-safer-tests: New file.
700         Suggested by Bruno Haible.
701
702 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
703
704         popen-safer: test O_CLOEXEC at run-time.
705         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
706
707 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
708
709         fcntl: move more flags to the header
710         * lib/cloexec.c: Do not define FD_CLOEXEC here.
711         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
712         * lib/fcntl.in.h: Do both things here.
713
714 2009-08-21  Jim Meyering  <meyering@redhat.com>
715
716         consistently remove $@-t before redirecting to it
717         * modules/argz: Remove $@-t and $@ before redirecting to the former.
718         * modules/alloca-opt: Likewise.
719         * modules/byteswap: Likewise.
720         * modules/fnmatch: Likewise.
721         * modules/getopt-posix: Likewise.
722         * modules/glob: Likewise.
723         * modules/poll: Likewise.
724         * modules/posix_spawnp-tests: Likewise.
725         * modules/sys_socket: Likewise.
726         * modules/sysexits: Likewise.
727
728 2009-08-21  Eric Blake  <ebb9@byu.net>
729
730         popen: simplify access to original popen
731         * lib/popen.c (rpl_popen): No need to worry about popen being a
732         macro.
733         Reported by Bruno Haible.
734
735 2009-08-20  Eric Blake  <ebb9@byu.net>
736
737         build: avoid some compiler warnings
738         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
739         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
740         type.
741         (new_exclude_segment, excluded_file_pattern_p)
742         (excluded_file_name_p): Reduce scope.
743         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
744         old-style declaration.
745
746 2009-08-20  Simon Josefsson  <simon@josefsson.org>
747
748         * tests/test-exclude1.sh: Handle Windows EOL.
749         * tests/test-exclude2.sh: Likewise.
750         * tests/test-exclude3.sh: Likewise.
751         * tests/test-exclude4.sh: Likewise.
752         * tests/test-exclude5.sh: Likewise.
753         * tests/test-exclude6.sh: Likewise.
754         * tests/test-exclude7.sh: Likewise.
755
756 2009-08-19  Akim Demaille  <demaille@gostai.com>
757
758         bootstrap: find sha1sum when named gsha1sum.
759         * bootstrap (find_tool): New.
760         ($SHA1SUM): New.
761         Use it.
762
763 2009-08-20  Jim Meyering  <meyering@redhat.com>
764
765         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
766         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
767         expression that converts "." in a file name to "\." in the resulting
768         regexp.  Start with a dummy statement, so that prior shell variable
769         definitions are expanded portably.  Reported by Simon Josefsson.
770
771 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
772
773         Fix polling for writeability of a screen buffer.
774         * lib/poll.c: Distinguish input and screen buffers for the
775         Win32 implementation.
776         * lib/select.c: Likewise.
777
778 2009-08-19  Eric Blake  <ebb9@byu.net>
779
780         popen-safer: prevent popen from clobbering std descriptors
781         * modules/popen-safer: New file.
782         * lib/popen-safer.c: Likewise.
783         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
784         * lib/stdio--.h (popen): Provide override.
785         * lib/stdio-safer.h (popen_safer): Provide declaration.
786         * tests/test-popen.c (includes): Partially test this.
787         * modules/popen-safer-tests: New file, for more tests.
788         * tests/test-popen-safer.c: Likewise.
789         * MODULES.html.sh (file stream based Input/Output): Mention it.
790
791         tests: test some of the *-safer modules
792         * modules/fopen-safer (Depends-on): Add fopen.
793         * modules/fcntl-safer (Depends-on): Add fcntl.
794         * modules/stdlib-safer (Depends-on): Add stdlib.
795         (configure.ac): Set indicator.
796         * modules/unistd-safer (configure.ac): Likewise.
797         * modules/tmpfile-safer (configure.ac): Likewise.
798         (Depends-on): Add tmpfile.
799         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
800         active.
801         * tests/test-fopen.c (includes): Test safer versions when they are
802         in use.
803         * tests/test-open.c (includes): Likewise.
804
805         popen: fix cygwin 1.5 bug when stdin closed
806         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
807         * modules/popen: New file.
808         * modules/popen-tests: Likewise.
809         * tests/test-popen.c: Likewise.
810         * m4/popen.m4: Likewise.
811         * lib/popen.c: Likewise.
812         * lib/stdio.in.h (popen): New declaration.
813         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
814         * modules/stdio (Makefile.am): Likewise.
815         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
816
817 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
818
819         maint.mk: give full control over update-copyright exclusions
820         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
821         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
822         (update-copyright): Don't force inclusion of top-level
823         ChangeLog.  Don't force exclusion of all COPYING files, but make
824         them the default exclusion instead.
825
826 2009-08-16  Bruno Haible  <bruno@clisp.org>
827
828         Fix test failures on Solaris 10.
829         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
830         tests when Solaris iconv() is used.
831         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
832         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
833         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
834         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
835         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
836
837 2009-08-16  Bruno Haible  <bruno@clisp.org>
838
839         Fix test failures on Solaris 10.
840         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
841         'tr' program and pass it as first argument.
842         * tests/test-pipe-filter-gi1.sh: Likewise.
843         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
844         program as first argument.
845         * tests/test-pipe-filter-gi1.c (main): Likewise.
846
847 2009-08-16  Eric Blake  <ebb9@byu.net>
848
849         fpurge: fix previous commits
850         * modules/fpurge (Makefile.am): Make replacement conditional,
851         partially reverting 2007-04-29 change; missed in previous
852         attempt.
853         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
854         is missing.
855
856 2009-08-16  Bruno Haible  <bruno@clisp.org>
857
858         Clarify fpurge's effect on the file position.
859         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
860         * tests/test-fpurge.c (main): Make a second pass for checking the file
861         position.
862
863 2009-08-16  Bruno Haible  <bruno@clisp.org>
864
865         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
866         declaration of fpurge is missing.
867         * tests/test-fpurge.c (main): Check that the file has not more contents
868         than expected. Close the file before removing it.
869
870 2009-08-15  Eric Blake  <ebb9@byu.net>
871
872         fpurge: don't wrap working cygwin implementation
873         * lib/fpurge.c (fpurge): Fix comment typo.
874         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
875         1.7 to avoid replacement.
876         * tests/test-fpurge.c (main): Enhance test.
877
878 2009-08-15  Eric Blake  <ebb9@byu.net>
879         and Jim Meyering  <meyering@redhat.com>
880
881         test-update-copyright: skip if perl is insufficient
882         * tests/test-update-copyright.sh: Failure to run maintainer tool
883         should not cause testsuite failure on cygwin 1.5.
884
885 2009-08-14  Eric Blake  <ebb9@byu.net>
886
887         doc: mention more functions added in cygwin 1.7.0
888         * doc/posix-headers/limits.texi (limits.h): Update for recent
889         cygwin additions.
890         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
891         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
892         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
893         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
894         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
895
896 2009-08-14  Eric Blake  <ebb9@byu.net>
897
898         maint.mk: simplify update-copyright rule
899         * top/maint.mk (update-copyright-local): Delete, and document how
900         to do it in cfg.mk instead.
901         (update-copyright-exclude-regexp): Delete, and document how to do
902         it in .x-update-copyright instead.
903         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
904         exclude ChangeLog.
905
906 2009-08-14  Bruno Haible  <bruno@clisp.org>
907
908         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
909
910 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
911
912         maint.mk: support update-copyright-env
913         * top/maint.mk (update-copyright-env): Define place-holder.
914         (update-copyright): Expand $(update-copyright-env) before
915         invoking update-copyright.
916
917 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
918
919         update-copyright: implement forced reformatting
920         * build-aux/update-copyright: Implement and document
921         UPDATE_COPYRIGHT_FORCE.
922         * tests/test-update-copyright.sh: Test it.
923
924 2009-08-14  Eric Blake  <ebb9@byu.net>
925         and Bruno Haible  <bruno@clisp.org>
926
927         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
928         * tests/test-locale.c: Revert previous patch related to NULL.
929         * tests/test-stdio.c: Likewise.
930         * tests/test-stdlib.c: Likewise.
931         * tests/test-string.c: Likewise.
932         * tests/test-unistd.c: Likewise.
933         * modules/time-tests (Depends-on): Add verify.
934         * modules/wchar-tests (Depends-on): Likewise.
935         * tests/test-time.c: Test for NULL compliance.
936         * tests/test-wchar.c: Likewise.
937         * modules/locale (Depends-on): Add stddef.
938         * modules/stdio (Depends-on): Likewise.
939         * modules/stdlib (Depends-on): Likewise.
940         * modules/string (Depends-on): Likewise.
941         * modules/time (Depends-on): Likewise.
942         * modules/unistd (Depends-on): Likewise.
943         * modules/wchar (Depends-on): Likewise.
944         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
945         * lib/stdlib.in.h (includes): Likewise.
946         * lib/string.in.h (includes): Likewise.
947         * lib/time.in.h (includes): Likewise.
948         * lib/unistd.in.h (includes): Likewise.
949         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
950         replaced.
951         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
952         * m4/stddef_h.m4: New file.
953         * modules/stddef: Likewise.
954         * lib/stddef.in.h: Likewise.
955         * modules/stddef-tests: Likewise.
956         * tests/test-stddef.c: Likewise.
957         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
958         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
959         * doc/posix-headers/locale.texi (locale.h): Likewise.
960         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
961         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
962         * doc/posix-headers/string.texi (string.h): Likewise.
963         * doc/posix-headers/time.texi (time.h): Likewise.
964         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
965         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
966
967 2009-08-14  Eric Blake  <ebb9@byu.net>
968
969         doc: improve git diff of texinfo files
970         * .gitattributes: Add rule for *.texi files, with hint on how to
971         use it.
972         Copied from m4, and based on a report by Bruno Haible.
973
974 2009-08-14  Bruno Haible  <bruno@clisp.org>
975
976         Disable multithread support by default on Cygwin 1.5.x for real.
977         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
978
979 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
980
981         update-copyright: much ado about intervals
982         * build-aux/update-copyright: Implement and document
983         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
984         of copyright year intervals.
985         Also, document UPDATE_COPYRIGHT_YEAR.
986         * tests/test-update-copyright.sh: Test it.
987
988         update-copyright: convert 2-digit to 4-digit years
989         * build-aux/update-copyright: Implement and document.
990         * tests/test-update-copyright.sh: Update.
991
992 2009-08-14  Jim Meyering  <meyering@redhat.com>
993
994         test-exclude: avoid coreutils "make check" failure
995         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
996         just as in test-argmatch.c.
997
998 2009-08-13  Eric Blake  <ebb9@byu.net>
999
1000         test-dup2: fix bad assumption
1001         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
1002         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
1003
1004         test-version-etc: fix CRLF portability issue
1005         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
1006         recognize \r.
1007         * tests/test-argp-version-etc-1.sh: Likewise.
1008
1009         getopt: update client modules
1010         * modules/argp (Depends-on): Use getopt-gnu.
1011         * modules/git-merge-changelog (Depends-on): Likewise.
1012         * modules/long-options (Depends-on): Likewise.
1013         * modules/xstrtol (Depends-on): Likewise.
1014
1015 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1016
1017         * tests/test-version-etc.sh: Don't fail on different
1018         project/version.  Don't fail on CRLF differences.  Rewrite to use
1019         multiple -e instead of multiple sed forks, suggested by Eric Blake
1020         <ebb9@byu.net>.
1021         * tests/test-argp-version-etc-1.sh: Likewise.
1022
1023 2009-08-13  Simon Josefsson  <simon@josefsson.org>
1024
1025         * tests/test-version-etc.sh: Don't fail on different
1026         project/version.
1027
1028 2009-08-12  Bruno Haible  <bruno@clisp.org>
1029
1030         Tests for modules 'getopt-posix', 'getopt-gnu'.
1031         * modules/getopt-posix-tests: New file.
1032         * tests/test-getopt.c: New file.
1033         * tests/test-getopt.h: New file.
1034         * tests/test-getopt_long.h: New file.
1035
1036         New modules 'getopt-posix', 'getopt-gnu'.
1037         * modules/getopt-gnu: New file, renamed from modules/getopt.
1038         * modules/getopt-posix: New file.
1039         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
1040         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
1041         (gl_GETOPT): Remove macro.
1042         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
1043         Disable the test against BSD systems that declare optreset. Test
1044         against mingw bug. Test against lack of support of optional arguments
1045         on many platforms.
1046         * doc/glibc-headers/getopt.texi: Update module name and list of
1047         relevant platforms.
1048         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
1049         'getopt-gnu' and more portability problems.
1050         * NEWS: Mention the changes.
1051
1052 2009-08-12  Bruno Haible  <bruno@clisp.org>
1053
1054         Ensure that optarg etc. get declared by <unistd.h>.
1055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
1056         AC_USE_SYSTEM_EXTENSIONS.
1057         * modules/getopt (Depends-on): Add 'extensions'.
1058
1059 2009-08-12  Bruno Haible  <bruno@clisp.org>
1060
1061         Avoid test link errors.
1062         * modules/pipe-filter-ii-tests (Makefile.am): Define
1063         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
1064         * modules/pipe-filter-gi-tests (Makefile.am): Define
1065         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
1066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1067
1068 2009-08-12  Bruno Haible  <bruno@clisp.org>
1069
1070         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
1071         gl_GETOPT_SUBSTITUTE before.
1072         (gl_GETOPT): Use it.
1073         * m4/argp.m4 (gl_ARGP): Update.
1074         Reported by Sergey Poznyakoff.
1075
1076         * m4/getopt.m4: Reorder macros.
1077         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
1078         (gl_GETOPT_SUBSTITUTE): Remove macro.
1079
1080 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1081
1082         Minor improvement in gitlog-to-changelog
1083
1084         * build-aux/gitlog-to-changelog: New option `--format' makes
1085         output format string configurable.
1086
1087 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1088
1089         Optimize exclude: use hash tables for non-wildcard patterns.
1090
1091         * lib/exclude.c: Include hash.h and mbuiter.h
1092         (struct exclude_pattern, exclude_segment): New data types.
1093         (struct exclude): Rewrite.
1094         (fnmatch_pattern_has_wildcards): New function.
1095         (new_exclude_segment, free_exclude_segment): New functions.
1096         (excluded_file_pattern_p, excluded_file_name_p): New functions.
1097         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
1098         * lib/exclude.h (is_fnmatch_pattern): New prototype.
1099         * modules/exclude: Depend on hash and mbuiter.
1100
1101         * modules/exclude-tests: New file.
1102         * tests/test-exclude.c: New file.
1103         * tests/test-exclude1.sh: New file.
1104         * tests/test-exclude2.sh: New file.
1105         * tests/test-exclude3.sh: New file.
1106         * tests/test-exclude4.sh: New file.
1107         * tests/test-exclude5.sh: New file.
1108         * tests/test-exclude6.sh: New file.
1109         * tests/test-exclude7.sh: New file.
1110
1111 2009-08-12  Bruno Haible  <bruno@clisp.org>
1112
1113         Ensure that getopt() gets declared by <unistd.h>.
1114         * lib/unistd.in.h: Conditionally include getopt.h.
1115         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
1116         Set GNULIB_UNISTD_H_GETOPT.
1117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1118         GNULIB_UNISTD_H_GETOPT.
1119         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
1120
1121 2009-08-12  Bruno Haible  <bruno@clisp.org>
1122
1123         Clarify logic.
1124         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
1125         gl_replace_getopt instead of GETOPT_H.
1126
1127 2009-08-12  Bruno Haible  <bruno@clisp.org>
1128
1129         * m4/getopt.m4: Add comments.
1130
1131 2009-08-12  Bruno Haible  <bruno@clisp.org>
1132
1133         Disable multithread support by default on Cygwin 1.5.x.
1134         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
1135         set gl_use_threads=no if not specified otherwise.
1136
1137 2009-08-11  Bruno Haible  <bruno@clisp.org>
1138
1139         Avoid compilation error on NetBSD 5.0.
1140         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
1141         * tests/test-stdio.c: Likewise.
1142         * tests/test-stdlib.c: Likewise.
1143         * tests/test-string.c: Likewise.
1144         * tests/test-unistd.c: Likewise.
1145         Reported by Greg Troxel <gdt@ir.bbn.com>
1146         at <https://savannah.gnu.org/support/?106973>.
1147
1148 2009-08-11  Bruno Haible  <bruno@clisp.org>
1149
1150         * modules/dup2-tests (Depends-on): Remove close.
1151
1152         Undo 2009-07-19 commit.
1153         * modules/acl-tests (Depends-on): Remove close.
1154         * modules/binary-io-tests (Depends-on): Likewise.
1155         * modules/closein-tests (Depends-on): Likewise.
1156         * modules/flock-tests (Depends-on): Likewise.
1157         * modules/fsync-tests (Depends-on): Likewise.
1158         * modules/lseek-tests (Depends-on): Likewise.
1159         * modules/pipe-tests (Depends-on): Likewise.
1160         * modules/posix_spawn-tests (Depends-on): Likewise.
1161         * modules/posix_spawnp-tests (Depends-on): Likewise.
1162         * modules/stat-time-tests (Depends-on): Likewise.
1163         * modules/yesno-tests (Depends-on): Likewise.
1164
1165 2009-08-10  Bruno Haible  <bruno@clisp.org>
1166
1167         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
1168
1169 2009-08-10  Bruno Haible  <bruno@clisp.org>
1170
1171         Fix a gcc warning.
1172         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
1173
1174 2009-08-10  Bruno Haible  <bruno@clisp.org>
1175
1176         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
1177         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
1178         not only the first time.
1179         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
1180         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
1181         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
1182         is 1, not only the the first time.
1183
1184 2009-08-10  Bruno Haible  <bruno@clisp.org>
1185
1186         Make it possible to use module 'gethostname' without module 'close'.
1187         * lib/unistd.in.h (close): Evoke a link error only if
1188         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1190         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1191         * modules/unistd (Makefile.am): Substitute
1192         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1193         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
1194         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1195         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1196         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1197         * modules/sys_ioctl (Makefile.am): Substitute
1198         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1199         * modules/socket (configure.ac): On native Windows, set
1200         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
1201         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1202         Reported by Sam Steingold <sds@gnu.org>.
1203
1204 2009-08-10  Bruno Haible  <bruno@clisp.org>
1205
1206         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
1207         * modules/ioctl (configure.ac): Likewise.
1208
1209 2009-08-10  Bruno Haible  <bruno@clisp.org>
1210
1211         Avoid collision between gnulib wrapper and libintl wrapper.
1212         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
1213         already defined in intl/printf.c.
1214         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
1215         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
1216
1217 2009-08-09  Bruno Haible  <bruno@clisp.org>
1218
1219         Make <sys/select.h> really self-contained, also on Solaris 10.
1220         * lib/sys_select.in.h: Include <string.h>.
1221         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
1222         Solaris 10 problem.
1223         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
1224         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
1225         Reported by Jim Meyering.
1226
1227 2009-08-09  Bruno Haible  <bruno@clisp.org>
1228
1229         Avoid warnings from 'aclocal' that are due to a use of macro name
1230         AM_XGETTEXT_OPTION that is not defined in automake.
1231         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
1232         automake.
1233         * modules/error (configure.ac): Likewise.
1234         * modules/propername (configure.ac): Likewise.
1235         * modules/vasprintf (configure.ac): Likewise.
1236         * modules/verror (configure.ac): Likewise.
1237         * modules/xprintf (configure.ac): Likewise.
1238         * modules/xvasprintf (configure.ac): Likewise.
1239
1240 2009-08-08  Bruno Haible  <bruno@clisp.org>
1241
1242         Avoid compilation error in C++ mode.
1243         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
1244         Reported by Sam Steingold <sds@gnu.org>.
1245
1246 2009-08-08  Bruno Haible  <bruno@clisp.org>
1247
1248         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
1249         for the various Unix platforms.
1250         * doc/posix-headers/limits.texi: Update platforms list regarding
1251         HOST_NAME_MAX.
1252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1253
1254 2009-08-07  Jim Meyering  <meyering@redhat.com>
1255
1256         selinux-at: fix typo in a comment
1257         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
1258         Spotted by Paolo Bonzini.
1259
1260         selinux-at: remove redundant m4 code, add documentation
1261         * modules/selinux-at (configure.ac): Remove redundant code.
1262         LIB_SELINUX is already set via the dependent module, selinux-h.
1263         (Include): Add quotes around selinux-at.h.
1264         * lib/selinux-at.h: Add documentation.
1265         Reported by Bruno Haible in
1266         http://marc.info/?l=gnulib-bug&m=124958988300749
1267
1268 2009-08-07  Bruno Haible  <bruno@clisp.org>
1269
1270         Avoid link error on MacOS X 10.3 and 10.4.
1271         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
1272         on non-ELF systems.
1273         * lib/argp-pv.c (argp_program_version): Likewise.
1274         Reported by Simon Josefsson.
1275
1276 2009-08-07  Simon Josefsson  <simon@josefsson.org>
1277
1278         * tests/test-version-etc.sh: Use $EXEEXT.
1279
1280 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
1281
1282         update-copyright: update documentation to point to maint.mk
1283         * build-aux/update-copyright: Here.
1284
1285 2009-08-06  Jim Meyering  <meyering@redhat.com>
1286
1287         maint.mk: support update-copyright-local
1288         * top/maint.mk (update-copyright-local): Define place-holder.
1289         (update-copyright): Depend on $(update-copyright-local).
1290
1291 2009-08-06  Jim Meyering  <meyering@redhat.com>
1292
1293         selinux-at: new module
1294         Initially written for coreutils, this module will soon be
1295         used by findutils, too.
1296         * MODULES.html.sh [Misc]: Add selinux-at.
1297         * lib/selinux-at.h: New file, from coreutils.
1298         * lib/selinux-at.c: Likewise.
1299         * modules/selinux-at: Likewise.
1300         (License): Change from LGPL to GPL, since it depends
1301         on the GPL'd openat module.
1302
1303         doc: update README
1304         * README: Remove references to cogito.
1305         Remove cvs-repo-updating instructions from 2007.
1306         Don't imply that CVS is better if you have limited disk space.
1307
1308 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1309
1310         update-copyright: support C-style comments
1311         * build-aux/update-copyright: Implement and document.
1312         * tests/test-update-copyright.sh: Test.
1313
1314 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1315
1316         update-copyright: support omitted "(C)"
1317         * build-aux/update-copyright: Implement and document.  Also,
1318         allow variable whitespace before "(C)".
1319         * tests/test-update-copyright.sh: Test.
1320
1321 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1322
1323         update-copyright: don't trip on non-FSF copyright statements
1324         * build-aux/update-copyright: Fix so that the first correctly
1325         formatted FSF copyright statement is recognized no matter what
1326         appears before it.  Update documentation.
1327         * tests/test-update-copyright.sh: Test that.
1328
1329 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1330
1331         update-copyright: clean up code a little
1332         * build-aux/update-copyright: Append "_re" to the name of any
1333         variable holding a regular expression.
1334         Replace "old" and "new" with "stmt" in variable names.
1335         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
1336         handled correctly.
1337         Format code more consistently.
1338
1339 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1340
1341         update-copyright-tests: improve portability
1342         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
1343         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
1344
1345 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1346
1347         update-copyright: support @copyright{} and &copy;
1348         * build-aux/update-copyright: Implement and document.
1349         * tests/test-update-copyright.sh: Test.
1350
1351 2009-08-04  Jim Meyering  <meyering@redhat.com>
1352
1353         update-copyright-tests: correctly test EOL=\r\n handling
1354         * tests/test-update-copyright.sh: Put \r at the end of some lines
1355         for the dos-eol tests.  Based on a patch by Joel E. Denny.
1356
1357         maint.mk: make update-copyright exclusion list more configurable
1358         * top/maint.mk (update-copyright): Default to excluding COPYING,
1359         but allow an override, in case someone does want to update that file.
1360
1361         maint.mk: don't update copyright date in COPYING
1362         * top/maint.mk (update-copyright): Exclude COPYING.
1363
1364         maint.mk: add a copyright-updating rule
1365         * top/maint.mk (update-copyright): New rule.
1366         Derived from coreutils/Makefile.am.
1367
1368         update-copyright: rename some variables
1369         * build-aux/update-copyright: Rename a few variables for clarity.
1370         Tweak syntax.  List Joel E. Denny as coauthor.
1371
1372 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1373
1374         update-copyright: fix bug for 2-digit last year and add tests
1375         * build-aux/update-copyright: Fix bug.
1376         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
1377         specified.
1378         * modules/update-copyright-tests: New
1379         * tests/test-update-copyright.sh: New.
1380
1381 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1382
1383         update-copyright: handle leading tabs in line prefix
1384         * build-aux/update-copyright: Count leading tabs as 8 spaces
1385         when computing margin.  This helps with the formatting of
1386         ChangeLogs, for example.
1387         Fix documentation a little.
1388
1389 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1390
1391         update-copyright: support EOL=\r\n
1392         * build-aux/update-copyright: Implement that.
1393
1394 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1395
1396         update-copyright: automatically format copyright statements
1397         * build-aux/update-copyright: Implement that.
1398         Also, be a little more predictable and safer by always failing
1399         when the full copyright format is not perfectly recognized as an
1400         unbroken whole.  Discussed at
1401         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
1402         Rewrite documentation.
1403
1404 2009-08-03  Bruno Haible  <bruno@clisp.org>
1405
1406         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
1407
1408 2009-08-02  Bruno Haible  <bruno@clisp.org>
1409
1410         Tests for module 'uname'.
1411         * modules/uname-tests: New file.
1412         * tests/test-uname.c: New file.
1413
1414         New module 'uname'.
1415         * lib/uname.c: New file.
1416         * m4/uname.m4: New file.
1417         * modules/uname: New file.
1418         * doc/posix-functions/uname.texi: Mention the new module.
1419
1420 2009-08-02  Bruno Haible  <bruno@clisp.org>
1421
1422         Tests for module 'sys_utsname'.
1423         * modules/sys_utsname-tests: New file.
1424         * tests/test-sys_utsname.c: New file.
1425
1426         New module 'sys_utsname'.
1427         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
1428         * m4/sys_utsname_h.m4: New file.
1429         * modules/sys_utsname: New file.
1430         * doc/posix-headers/sys_utsname.texi: Mention the new module.
1431
1432 2009-08-02  Bruno Haible  <bruno@clisp.org>
1433
1434         Implicitly initialize the sockets library.
1435         * lib/gethostname.c: Include sockets.h.
1436         (rpl_gethostname): Invoke gl_sockets_startup.
1437         * lib/socket.c: Include sockets.h.
1438         (rpl_socket): Invoke gl_sockets_startup.
1439         * modules/gethostname (Depends-on): Add sockets.
1440         * modules/socket (Depends-on): Likewise.
1441         * tests/test-poll.c: Don't include sockets.h.
1442         (main): Don't invoke gl_sockets_startup.
1443         * tests/test-select.c: Don't include sockets.h.
1444         (main): Don't invoke gl_sockets_startup.
1445
1446 2009-08-02  Bruno Haible  <bruno@clisp.org>
1447
1448         Allow multiple calls to gl_sockets_startup.
1449         * lib/sockets.c (initialized_sockets_version): New variable.
1450         (gl_sockets_startup): Do nothing if already called for this or a higher
1451         version.
1452         (gl_sockets_cleanup): Reset initialized_sockets_version.
1453
1454 2009-08-03  Simon Josefsson  <simon@josefsson.org>
1455
1456         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
1457         different project/version.
1458
1459 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
1460             Bruno Haible  <bruno@clisp.org>
1461
1462         Tests for module 'pipe-filter-gi'.
1463         * modules/pipe-filter-gi-tests: New file.
1464         * tests/test-pipe-filter-gi1.sh: New file.
1465         * tests/test-pipe-filter-gi1.c: New file.
1466         * tests/test-pipe-filter-gi2.sh: New file.
1467         * tests/test-pipe-filter-gi2-main.c: New file.
1468         * tests/test-pipe-filter-gi2-child.c: New file.
1469
1470         New module 'pipe-filter-gi'.
1471         * lib/pipe-filter-gi.c: New file.
1472         * modules/pipe-filter-gi: New file.
1473
1474 2009-08-02  Bruno Haible  <bruno@clisp.org>
1475             Paolo Bonzini  <bonzini@gnu.org>
1476
1477         Tests for module 'pipe-filter-ii'.
1478         * modules/pipe-filter-ii-tests: New file.
1479         * tests/test-pipe-filter-ii1.sh: New file.
1480         * tests/test-pipe-filter-ii1.c: New file.
1481         * tests/test-pipe-filter-ii2.sh: New file.
1482         * tests/test-pipe-filter-ii2-main.c: New file.
1483         * tests/test-pipe-filter-ii2-child.c: New file.
1484
1485         New module 'pipe-filter-ii'.
1486         * lib/pipe-filter.h: New file.
1487         * lib/pipe-filter-ii.c: New file.
1488         * lib/pipe-filter-aux.h: New file.
1489         * modules/pipe-filter-ii: New file.
1490
1491 2009-08-02  Simon Josefsson  <simon@josefsson.org>
1492
1493         * lib/gc-libgcrypt.c: Change copyright to FSF.
1494         * lib/gc-gnulib.c: Likewise.
1495
1496 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
1497
1498         * lib/gethostname.c: Include limits.h.
1499
1500 2009-08-02  Simon Josefsson  <simon@josefsson.org>
1501             Bruno Haible  <bruno@clisp.org>
1502
1503         Ensure HOST_NAME_MAX as part of the gethostname module.
1504         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
1505         define also HOST_NAME_MAX.
1506         * tests/test-gethostname.c: Include <limits.h>.
1507         (main): Check also HOST_NAME_MAX.
1508         * doc/posix-headers/limits.texi: Document the mingw problem.
1509
1510 2009-08-02  Bruno Haible  <bruno@clisp.org>
1511
1512         * lib/gethostname.c (gethostname): Fix handling of large len argument.
1513         Add comments.
1514
1515 2009-03-31  Simon Josefsson  <simon@josefsson.org>
1516
1517         * lib/gethostname.c: Add Windows wrapper.
1518         * m4/gethostname.m4: Look for gethostname in -lws2_32.
1519         * modules/gethostname: Depend on sys_socket & errno, for also
1520         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
1521         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
1522
1523 2009-07-31  Jim Meyering  <meyering@redhat.com>
1524
1525         getloadavg: fix symbol name in comment
1526         * lib/getloadavg.c: Correct a typo I introduced when adding
1527         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
1528         Matt Kraai spotted the problem.
1529
1530 2009-07-29  Matt Kraai  <mkraai@beckman.com>
1531
1532         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
1533         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
1534         code also if ! defined N_NAME_POINTER.
1535         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
1536         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
1537         but the n_name member is a 12-byte array.
1538
1539 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
1540
1541         update-copyright: generalize comment handling
1542         * build-aux/update-copyright: Handle copyright statements
1543         within more comment styles.
1544         Document usage.
1545         Report any file with an external copyright holder or parse failure.
1546
1547 2009-07-29  Jim Meyering  <meyering@redhat.com>
1548
1549         mktime: correct setting of REPLACE_MKTIME
1550         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
1551
1552         update-copyright: new module
1553         * modules/update-copyright: New file.
1554         * build-aux/update-copyright: New file.
1555         * MODULES.html.sh (maint+release support): Add update-copyright.
1556
1557 2009-07-27  Bruno Haible  <bruno@clisp.org>
1558
1559         Fix compilation error when <ctime> is used and mktime is replaced.
1560         * lib/time.in.h (mktime): New declaration.
1561         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
1562         REPLACE_MKTIME instead of defining mktime in config.h.
1563         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
1564         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
1565         Reported by Ross McFarland <rwmcfa1@neces.com>.
1566
1567 2009-07-27  Bruno Haible  <bruno@clisp.org>
1568
1569         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
1570         Reported by Matt Kraai <mkraai@beckman.com>.
1571
1572 2009-07-25  Jim Meyering  <meyering@redhat.com>
1573
1574         maint.mk: avoid warnings about missing files
1575         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
1576         diagnostic when .prev-version does not exist.
1577         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
1578         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
1579         nonexistent cfg.mk.
1580         Suggestions from Simon Josefsson.
1581
1582 2009-07-25  Bruno Haible  <bruno@clisp.org>
1583
1584         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
1585         defined as macros. Needed on QNX 6.4.1.
1586         Reported by Matt Kraai <mkraai@beckman.com>.
1587
1588 2009-07-23  Jim Meyering  <meyering@redhat.com>
1589
1590         maint.mk: invoke "make dist" with a working value of XZ_OPT
1591         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
1592
1593 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
1594
1595         Make fseeko.c compile on QNX.
1596         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
1597
1598 2009-07-22  Peter Simons  <simons@cryp.to>
1599
1600         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
1601         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
1602         * lib/md4.h: Likewise.
1603         * lib/md5.h: Likewise.
1604         * lib/sha1.h: Likewise.
1605         * lib/sha256.h: Likewise.
1606         * lib/sha512.h: Likewise.
1607
1608         tests-sha1: don't assign literal string to 'char *' variable
1609         * tests/test-sha1.c (main): Declare locals with "const" to match
1610         attributes of the right hand side.
1611
1612 2009-07-21  Eric Blake  <ebb9@byu.net>
1613
1614         dup2: fix more mingw problems
1615         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
1616         fd to itself.
1617         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1618         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
1619         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
1620         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
1621         care of mingw bugs.
1622
1623 2009-07-21  Jim Meyering  <meyering@redhat.com>
1624
1625         vc-list-files: avoid failure when /bin/sh is dash
1626         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
1627         On some Debian based systems, /bin/sh is a symlink to dash, and running
1628         this command would omit the "/" following each 'tests' prefix:
1629           dash -x build-aux/vc-list-files -C . tests
1630         That is because bash and dash work differently:
1631           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
1632           bash ok
1633           dash odd
1634
1635 2009-07-21  Eric Blake  <ebb9@byu.net>
1636
1637         dup2-tests: test previous patch
1638         * modules/dup2-tests: New file.
1639         * tests/test-dup2.c: Likewise.
1640         * tests/test-open.c (main): Avoid unspecified behavior.
1641         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
1642         test.
1643
1644         dup2: work around mingw and cygwin 1.5 bug
1645         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
1646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1647         * modules/unistd (Makefile.am): Substitute it.
1648         * lib/unistd.in.h (dup2): Declare the replacement.
1649         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
1650         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
1651         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
1652         * modules/execute (Depends-on): Add dup2.
1653         * modules/fseterr (Depends-on): Likewise.
1654         * modules/pipe (Depends-on): Likewise.
1655         * modules/posix_spawn-internal (Depends-on): Likewise.
1656
1657 2009-07-21  Bruno Haible  <bruno@clisp.org>
1658
1659         * modules/.gitattributes: New file.
1660
1661 2009-07-20  Bruno Haible  <bruno@clisp.org>
1662
1663         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
1664         (main): Use it.
1665
1666 2009-07-20  Eric Blake  <ebb9@byu.net>
1667
1668         test-pipe: make a bit more robust.
1669         * tests/test-pipe.c (myerr): Allow error messages regardless of
1670         what we do to stderr.
1671         (test_pipe): Rearrange to avoid deadlock.
1672         (child_main): Try a larger read, to ensure we avoided deadlock.
1673         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
1674         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
1675         if misused.
1676
1677 2009-07-19  Jim Meyering  <meyering@redhat.com>
1678
1679         fts: avoid false-positive cycle-detection
1680         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
1681         for each new command line argument.
1682
1683 2009-07-19  Bruno Haible  <bruno@clisp.org>
1684
1685         Fix build error on mingw with the modules sys_select and unistd.
1686         * modules/acl-tests (Depends-on): Add close.
1687         * modules/binary-io-tests (Depends-on): Likewise.
1688         * modules/closein-tests (Depends-on): Likewise.
1689         * modules/flock-tests (Depends-on): Likewise.
1690         * modules/fsync-tests (Depends-on): Likewise.
1691         * modules/lseek-tests (Depends-on): Likewise.
1692         * modules/pipe-tests (Depends-on): Likewise.
1693         * modules/posix_spawn-tests (Depends-on): Likewise.
1694         * modules/posix_spawnp-tests (Depends-on): Likewise.
1695         * modules/stat-time-tests (Depends-on): Likewise.
1696         * modules/yesno-tests (Depends-on): Likewise.
1697
1698 2009-07-19  Bruno Haible  <bruno@clisp.org>
1699
1700         Unify conditionals.
1701         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
1702         macros, not at the compiler macros.
1703         * lib/pipe.c: Likewise.
1704         * lib/execute.c: Likewise.
1705         * lib/spawni.c: Likewise.
1706
1707 2009-07-19  Bruno Haible  <bruno@clisp.org>
1708
1709         Fix handling of closed stdin/stdout/stderr on mingw.
1710         * lib/w32spawn.h: Include unistd.h.
1711         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
1712         file descriptor with O_NOINHERIT flag.
1713         (fd_safer_noinherit): New function, based on fd-safer.c.
1714         (dup_safer_noinherit): New function, based on dup-safer.c.
1715         (undup_safer_noinherit): New function.
1716         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
1717         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
1718         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
1719         instead of fd_safer.
1720         * tests/test-pipe.c: Include <windows.h>.
1721         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
1722
1723         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
1724         from main.
1725         (test_pipe): Pass an extra argument for disambiguation.
1726         (main): Invoke parent_main or child_main.
1727
1728         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
1729         consistently.
1730
1731 2009-07-18  Eric Blake  <ebb9@byu.net>
1732
1733         test-pipe: fix mingw build
1734         * tests/test-pipe.c (main): Avoid fcntl on mingw.
1735
1736 2009-07-18  Bruno Haible  <bruno@clisp.org>
1737
1738         * modules/pipe-tests (Makefile.am): Fix typo.
1739
1740 2009-07-18  Eric Blake  <ebb9@byu.net>
1741
1742         error: fix mingw build
1743         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
1744         Reported by Bruno Haible.
1745
1746         error: avoid undefined use of stdout
1747         * lib/error.c (error, error_at_line): Check that fd 1 is open
1748         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
1749         is handling faults and the close_stdout module wants to report the
1750         detection of closed stdout as an error.
1751
1752 2009-07-17  Eric Blake  <ebb9@byu.net>
1753
1754         pipe: be robust in face of closed fds
1755         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
1756         should cause child to misbehave.
1757         * modules/pipe-tests: New module.
1758         * tests/test-pipe.c: New file.
1759         * tests/test-pipe.sh: New file.
1760         Reported by Akim Demaille.
1761
1762 2009-07-14  Bruno Haible  <bruno@clisp.org>
1763
1764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
1765         Reported by anonymous kc.
1766
1767 2009-07-07  Jim Meyering  <meyering@redhat.com>
1768
1769         maint.mk: don't look for translatable strings in *.m4 or *.mk
1770         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
1771         when searching for translatable strings.
1772
1773 2009-07-05  Jim Meyering  <meyering@redhat.com>
1774
1775         remove superfluous parentheses in STREQ definition
1776         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
1777         * lib/getugroups.c (STREQ): Likewise.
1778         * lib/fnmatch.c (STREQ): Likewise.
1779         Spotted by Bruno Haible.
1780
1781 2009-07-04  Jim Meyering  <meyering@redhat.com>
1782
1783         argv-iter: new module
1784         * MODULES.html.sh: Add argv-iter.
1785         * lib/argv-iter.c, lib/argv-iter.h: New files.
1786         * modules/argv-iter: New file.
1787         * modules/argv-iter-tests: New file.
1788         * tests/test-argv-iter.c: Test it.
1789
1790 2009-07-04  Bruno Haible  <bruno@clisp.org>
1791
1792         Fix assertion.
1793         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
1794         contains more exact copies of a given entry than file2, leave the extra
1795         copies unpaired rather than aborting.
1796         Reported by Eric Blake.
1797
1798 2009-07-02  Bruno Haible  <bruno@clisp.org>
1799
1800         Speedup git-merge-changelog for git cherry-pick.
1801         * lib/git-merge-changelog.c (struct entries_mapping): New type.
1802         (entries_mapping_get): New function, extracted from compute_mapping.
1803         (entries_mapping_reverse_get): New function.
1804         (compute_mapping): Add a 'full' argument. Return the result in a
1805         'struct entries_mapping'.
1806         (main): Update. Access the mappings through entries_mapping_get.
1807         Reported by Eric Blake.
1808
1809 2009-07-02  Bruno Haible  <bruno@clisp.org>
1810
1811         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
1812         best_i.
1813
1814 2009-07-02  Bruno Haible  <bruno@clisp.org>
1815
1816         Speed up approximate search for matching ChangeLog entries.
1817         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
1818         argument. Call fstrcmp_bounded instead of fstrcmp.
1819         (compute_mapping, try_split_merged_entry, main): Update callers.
1820
1821 2009-07-02  Bruno Haible  <bruno@clisp.org>
1822
1823         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
1824
1825 2009-06-30  Bruno Haible  <bruno@clisp.org>
1826
1827         Reduce the number of uc_is_cased calls.
1828         * lib/unicase.h (casing_suffix_context_t): Add
1829         'first_char_except_ignorable' field.
1830         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
1831         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
1832         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
1833         Update initializer.
1834         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
1835         case-ignorable characters.
1836         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
1837         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
1838         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
1839         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
1840         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
1841
1842 2009-06-30  Bruno Haible  <bruno@clisp.org>
1843
1844         Tests for module 'unicase/ignorable'.
1845         * modules/unicase/ignorable-tests: New file.
1846         * tests/unicase/test-ignorable.c: New file, generated by
1847         gen-uni-tables.
1848
1849         Tests for module 'unicase/cased'.
1850         * modules/unicase/cased-tests: New file.
1851         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
1852         * tests/unicase/test-predicate-part1.h: New file, derived from
1853         tests/unictype/test-predicate-part1.h.
1854         * tests/unicase/test-predicate-part2.h: New file, same as
1855         tests/unictype/test-predicate-part2.h.
1856
1857         Fix evaluation of "Before C" condition of FINAL_SIGMA.
1858         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
1859         (output_casing_properties): New function.
1860         (main): Call it.
1861         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
1862         * lib/unicase/cased.c: Include unictype/bitmap.h.
1863         (uc_is_cased): Define through a bitmap lookup.
1864         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
1865         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
1866         (uc_is_case_ignorable): Define through a bitmap lookup.
1867         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
1868         lib/unictype/bitmap.h.
1869         (Depends-on): Add inline. Clean up.
1870         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
1871         lib/unictype/bitmap.h.
1872         (Depends-on): Add inline. Clean up.
1873         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
1874         recognition.
1875         * tests/unicase/test-u16-tolower.c (main): Likewise.
1876         * tests/unicase/test-u32-tolower.c (main): Likewise.
1877
1878 2009-06-30  Bruno Haible  <bruno@clisp.org>
1879
1880         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
1881         * lib/unicase/u16-casemap.c: Likewise.
1882         * lib/unicase/u32-casemap.c: Likewise.
1883
1884 2009-06-29  Bruno Haible  <bruno@clisp.org>
1885
1886         Define u32_casefold as a wrapper around u32_ct_casefold.
1887         * lib/unicase/u32-casefold.c: Update.
1888         * modules/unicase/u32-casefold (Depends-on): Add
1889         unicase/u32-ct-casefold, unicase/empty-prefix-context,
1890         unicase/empty-suffix-context. Clean up.
1891
1892         Define u16_casefold as a wrapper around u16_ct_casefold.
1893         * lib/unicase/u16-casefold.c: Update.
1894         * modules/unicase/u16-casefold (Depends-on): Add
1895         unicase/u16-ct-casefold, unicase/empty-prefix-context,
1896         unicase/empty-suffix-context. Clean up.
1897
1898         Define u8_casefold as a wrapper around u8_ct_casefold.
1899         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
1900         * lib/unicase/u8-casefold.c: Update.
1901         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
1902         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1903
1904         Define u32_totitle as a wrapper around u32_ct_totitle.
1905         * lib/unicase/u32-totitle.c: Update.
1906         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
1907         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1908
1909         Define u16_totitle as a wrapper around u16_ct_totitle.
1910         * lib/unicase/u16-totitle.c: Update.
1911         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
1912         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1913
1914         Define u8_totitle as a wrapper around u8_ct_totitle.
1915         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
1916         functions.
1917         (FUNC): Delegate to U_CT_TOTITLE.
1918         * lib/unicase/u8-totitle.c: Update.
1919         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
1920         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1921
1922         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
1923         invocation.
1924         * modules/unicase/u32-tolower (Depends-on): Add
1925         unicase/empty-prefix-context, unicase/empty-suffix-context.
1926
1927         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
1928         invocation.
1929         * modules/unicase/u16-tolower (Depends-on): Add
1930         unicase/empty-prefix-context, unicase/empty-suffix-context.
1931
1932         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
1933         * modules/unicase/u8-tolower (Depends-on): Add
1934         unicase/empty-prefix-context, unicase/empty-suffix-context.
1935
1936         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
1937         invocation.
1938         * modules/unicase/u32-toupper (Depends-on): Add
1939         unicase/empty-prefix-context, unicase/empty-suffix-context.
1940
1941         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
1942         invocation.
1943         * modules/unicase/u16-toupper (Depends-on): Add
1944         unicase/empty-prefix-context, unicase/empty-suffix-context.
1945
1946         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
1947         * modules/unicase/u8-toupper (Depends-on): Add
1948         unicase/empty-prefix-context, unicase/empty-suffix-context.
1949
1950         New module 'unicase/u32-ct-casefold'.
1951         * lib/unicase/u32-ct-casefold.c: New file.
1952         * modules/unicase/u32-ct-casefold: New file.
1953
1954         New module 'unicase/u16-ct-casefold'.
1955         * lib/unicase/u16-ct-casefold.c: New file.
1956         * modules/unicase/u16-ct-casefold: New file.
1957
1958         New module 'unicase/u8-ct-casefold'.
1959         * lib/unicase/u8-ct-casefold.c: New file.
1960         * lib/unicase/u-ct-casefold.h: New file, derived from
1961         lib/unicase/u-casefold.h.
1962         * modules/unicase/u8-ct-casefold: New file.
1963
1964         New module 'unicase/u32-ct-totitle'.
1965         * lib/unicase/u32-ct-totitle.c: New file.
1966         * modules/unicase/u32-ct-totitle: New file.
1967
1968         New module 'unicase/u16-ct-totitle'.
1969         * lib/unicase/u16-ct-totitle.c: New file.
1970         * modules/unicase/u16-ct-totitle: New file.
1971
1972         New module 'unicase/u8-ct-totitle'.
1973         * lib/unicase/u8-ct-totitle.c: New file.
1974         * lib/unicase/u-ct-totitle.h: New file, derived from
1975         lib/unicase/u-totitle.h.
1976         * modules/unicase/u8-ct-totitle: New file.
1977
1978         New module 'unicase/u32-ct-tolower'.
1979         * lib/unicase/u32-ct-tolower.c: New file.
1980         * modules/unicase/u32-ct-tolower: New file.
1981
1982         New module 'unicase/u16-ct-tolower'.
1983         * lib/unicase/u16-ct-tolower.c: New file.
1984         * modules/unicase/u16-ct-tolower: New file.
1985
1986         New module 'unicase/u8-ct-tolower'.
1987         * lib/unicase/u8-ct-tolower.c: New file.
1988         * modules/unicase/u8-ct-tolower: New file.
1989
1990         New module 'unicase/u32-ct-toupper'.
1991         * lib/unicase/u32-ct-toupper.c: New file.
1992         * modules/unicase/u32-ct-toupper: New file.
1993
1994         New module 'unicase/u16-ct-toupper'.
1995         * lib/unicase/u16-ct-toupper.c: New file.
1996         * modules/unicase/u16-ct-toupper: New file.
1997
1998         New module 'unicase/u8-ct-toupper'.
1999         * lib/unicase/u8-ct-toupper.c: New file.
2000         * modules/unicase/u8-ct-toupper: New file.
2001
2002         Add context arguments to u*_casemap functions.
2003         * lib/unicase/unicasemap.h: Include unicase.h.
2004         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
2005         suffix_context arguments.
2006         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
2007         functions.
2008         (FUNC): Add prefix_context and suffix_context arguments. Use
2009         uc_is_cased and uc_is_case_ignorable.
2010         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
2011         * lib/unicase/u16-casemap.c: Likewise.
2012         * lib/unicase/u32-casemap.c: Likewise.
2013         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
2014         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2015         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
2016         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2017         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
2018         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
2019
2020         New module 'unicase/u32-suffix-context'.
2021         * lib/unicase/u32-suffix-context.c: New file.
2022         * modules/unicase/u32-suffix-context: New file.
2023
2024         New module 'unicase/u16-suffix-context'.
2025         * lib/unicase/u16-suffix-context.c: New file.
2026         * modules/unicase/u16-suffix-context: New file.
2027
2028         New module 'unicase/u8-suffix-context'.
2029         * lib/unicase/u8-suffix-context.c: New file.
2030         * lib/unicase/u-suffix-context.h: New file.
2031         * modules/unicase/u8-suffix-context: New file.
2032
2033         New module 'unicase/empty-suffix-context'.
2034         * lib/unicase/empty-suffix-context.c: New file.
2035         * modules/unicase/empty-suffix-context: New file.
2036
2037         New module 'unicase/u32-prefix-context'.
2038         * lib/unicase/u32-prefix-context.c: New file.
2039         * modules/unicase/u32-prefix-context: New file.
2040
2041         New module 'unicase/u16-prefix-context'.
2042         * lib/unicase/u16-prefix-context.c: New file.
2043         * modules/unicase/u16-prefix-context: New file.
2044
2045         New module 'unicase/u8-prefix-context'.
2046         * lib/unicase/u8-prefix-context.c: New file.
2047         * lib/unicase/u-prefix-context.h: New file.
2048         * lib/unicase/context.h: New file.
2049         * modules/unicase/u8-prefix-context: New file.
2050
2051         New module 'unicase/empty-prefix-context'.
2052         * lib/unicase/empty-prefix-context.c: New file.
2053         * modules/unicase/empty-prefix-context: New file.
2054
2055         New module 'unicase/ignorable'.
2056         * lib/unicase/ignorable.c: New file.
2057         * modules/unicase/ignorable: New file.
2058
2059         New module 'unicase/cased'.
2060         * lib/unicase/caseprop.h: New file.
2061         * lib/unicase/cased.c: New file.
2062         * modules/unicase/cased: New file.
2063
2064         New functions for case mapping of substrings.
2065         * lib/unicase.h (casing_prefix_context_t): New type.
2066         (unicase_empty_prefix_context): New variable.
2067         (u8_casing_prefix_context, u16_casing_prefix_context,
2068         u32_casing_prefix_context, u8_casing_prefixes_context,
2069         u16_casing_prefixes_context, u32_casing_prefixes_context): New
2070         declarations.
2071         (casing_suffix_context_t): New type.
2072         (unicase_empty_suffix_context): New variable.
2073         (u8_casing_suffix_context, u16_casing_suffix_context,
2074         u32_casing_suffix_context, u8_casing_suffixes_context,
2075         u16_casing_suffixes_context, u32_casing_suffixes_context,
2076         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
2077         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
2078         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
2079         declarations.
2080
2081 2009-06-28  Jim Meyering  <meyering@redhat.com>
2082
2083         boostrap: indent only with spaces
2084         * build-aux/bootstrap: Indent only with spaces, never TABs.
2085
2086         bootstrap: split long lines
2087         * build-aux/bootstrap: Keep line length < 80.
2088
2089         bootstrap: sync from coreutils
2090         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
2091         just as autoreconf does.  Verify a list of prerequisite
2092         package-name,version-number pairs if defined in bootstrap.conf.
2093         Refer to README-prereq, if prerequisites are not satisfied.
2094
2095 2009-06-27  Eric Blake  <ebb9@byu.net>
2096
2097         tests: add test for bogus NULL definition
2098         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
2099         * tests/test-stdlib.c: Likewise.
2100         * tests/test-string.c: Likewise.
2101         * tests/test-locale.c: Likewise.
2102         * tests/test-unistd.c: Likewise.
2103         * modules/stdio-tests (Depends-on): Add verify.
2104         * modules/stdlib-tests (Depends-on): Likewise.
2105         * modules/string-tests (Depends-on): Likewise.
2106         * modules/locale-tests (Depends-on): Likewise.
2107         * modules/unistd-tests (Depends-on): Likewise.
2108
2109 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2110
2111         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
2112         self-explaining comment.
2113         * m4/selinux-selinux-h: Update serial.
2114         (gl_LIBSELINUX): New macro, adding a warning for missing development
2115         packages to code extracted from...
2116         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
2117         Add warning for missing development packages here, too.
2118
2119 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
2120
2121         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
2122
2123 2009-06-25  Eric Blake  <ebb9@byu.net>
2124
2125         version-etc: fix regression
2126         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
2127         gcc.
2128         (version_etc): Use it, to catch bugs with trailing NULL.
2129         * lib/version-etc.c (version_etc_arn): Delete unused argument.
2130         (version_etc_va): Fix logic bug.
2131         * modules/version-etc-tests: Add test.
2132         * tests/test-version-etc.c: New file.
2133         * tests/test-version-etc.sh: Likewise.
2134
2135 2009-06-25  Sam Steingold  <sds@gnu.org>
2136
2137         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
2138         mbtowc declaration.
2139
2140 2009-06-25  Eric Blake  <ebb9@byu.net>
2141
2142         fpurge: migrate into <stdio.h>
2143         * lib/fpurge.h: Delete...
2144         * lib/stdio.in.h (fpurge): ...and declare here, instead.
2145         * lib/fpurge.c (fpurge): Change declaring header.
2146         * modules/fpurge (Files): Drop deleted file.
2147         (Depends-on): Add stdio.
2148         (configure.ac): Set witness.
2149         * modules/stdio (Makefile.am): Support fpurge macros.
2150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2151         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
2152         * lib/fflush.c: Update client.
2153         * tests/test-fpurge.c: Likewise.
2154         * NEWS: Mention the change.
2155
2156 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2157
2158        * lib/argp-version-etc.c (program_authors): Add const
2159        qualifier.
2160        * lib/version-etc.c: Fix typos in the comments.
2161        * modules/argp-version-etc: Depends on version-etc.
2162
2163 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2164
2165         argp-version-etc: new module.
2166
2167         * lib/argp-version-etc.c: New file.
2168         * lib/argp-version-etc.h: New file.
2169         * modules/argp-version-etc: New file.
2170         * modules/argp-version-etc-tests: New file.
2171         * tests/test-argp-version-etc.c: New test.
2172         * tests/test-argp-version-etc-1.sh: New test.
2173
2174 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2175
2176         Provide additional interfaces and documentation for version-etc
2177         module.
2178
2179         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
2180         interfaces.
2181         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
2182         prototypes.
2183
2184 2009-06-24  Bruno Haible  <bruno@clisp.org>
2185
2186         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
2187         HAVE_LIB${NAME} macro.
2188         Reported by Sam Steingold <sds@gnu.org>.
2189
2190 2009-06-23  Simon Josefsson  <simon@josefsson.org>
2191
2192         * modules/hash-tests (test_hash_LDADD): Link to libintl when
2193         needed.
2194
2195 2009-06-21  Bruno Haible  <bruno@clisp.org>
2196
2197         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
2198         work.
2199         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
2200         together with LIB${NAME}, LTLIB${NAME}.
2201         Reported by Sam Steingold <sds@gnu.org>.
2202
2203 2009-06-20  Jim Meyering  <meyering@redhat.com>
2204
2205         tests: make sc_require_test_exit_idiom more generic
2206         * top/maint.mk (Exit_witness_file): New overridable variable.
2207         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
2208         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
2209
2210 2009-06-19  Jim Meyering  <meyering@redhat.com>
2211
2212         hash: reverse order of src/dst parameters in an internal interface
2213         * lib/hash.c (transfer_entries): Reverse order of parameters to
2214         put DST before SRC.  Adjust callers.
2215
2216         tests: test-hash: avoid wholesale duplication
2217         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
2218         Instead, use a loop and add a single conditional.
2219
2220         tests: test-hash: allow seed selection via a command line argument
2221         * tests/test-hash.c (get_seed): New function.
2222         (main): Use it.
2223
2224 2009-06-19  Eric Blake  <ebb9@byu.net>
2225
2226         hash: avoid memory leak on allocation failure
2227         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
2228         failure.  Factor repeated algorithm...
2229         (transfer_entries): ...into new helper routine.
2230         (hash_delete): React to hash_rehash return value.
2231
2232         hash: reduce memory pressure in hash_rehash no-op case
2233         * lib/hash.c (next_prime): Avoid overflow.
2234         (hash_initialize): Factor bucket size computation...
2235         (compute_bucket_size): ...into new helper function.
2236         (hash_rehash): Use new function and open coding to reduce memory
2237         pressure, and avoid a memory leak in USE_OBSTACK code.
2238         Reported by Jim Meyering.
2239
2240 2009-06-18  Eric Blake  <ebb9@byu.net>
2241
2242         hash: make rotation more obvious
2243         * modules/hash (Depends-on): Add bitrotate and stdint.
2244         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
2245         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
2246         (SIZE_MAX): Rely on headers for definition.
2247         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
2248         (raw_hasher): Use rotr_sz.
2249         Suggested by Jim Meyering.
2250
2251         hash: fix memory leak in last patch
2252         * lib/hash.c (hash_rehash): Avoid memory leak.
2253
2254         hash: avoid no-op rehashing
2255         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
2256
2257         hash: provide default callback functions
2258         * lib/hash.c (raw_hasher, raw_comparator): New functions.
2259         (hash_initialize): Use them as defaults.
2260         * tests/test-hash.c (main): Test this.
2261
2262         hash: minor optimization
2263         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
2264         when possible.
2265         (hash_initialize): Document this promise.
2266         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
2267         * tests/test-hash.c (hash_compare_strings): Test this.
2268
2269 2009-06-18  Bruno Haible  <bruno@clisp.org>
2270
2271         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
2272         going to be replaced anyway.
2273
2274 2009-06-18  Bruno Haible  <bruno@clisp.org>
2275
2276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
2277         in one place.
2278         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
2279         be replaced anyway.
2280
2281 2009-06-18  Eric Blake  <ebb9@byu.net>
2282
2283         hash: check for resize before insertion
2284         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
2285         threshold before insertion, so that a pathological hash_rehash
2286         that fills every bucket can still trigger another rehash.
2287
2288 2009-06-18  Jim Meyering  <meyering@redhat.com>
2289
2290         hash-tests: add a loop around the small tests
2291         * tests/test-hash.c (main): Repeat small tests with selected
2292         small initial table sizes.
2293
2294 2009-06-17  Eric Blake  <ebb9@byu.net>
2295
2296         hash: minor cleanups
2297         * lib/hash.h (hash_entry): Make opaque, by moving...
2298         * lib/hash.c (hash_entry): ...here.
2299         (hash_insert): Clarify restrictions on what can be inserted.
2300         (hash_get_next): Clarify when it is safe to remove an element
2301         during traversal.
2302         (check_tuning): Skip verification when tuning is known safe.
2303         (hash_initialize): Clarify restrictions on tuning.
2304
2305 2009-06-17  Jim Meyering  <jim@meyering.net>
2306         and Eric Blake  <ebb9@byu.net>
2307
2308         hash-tests: new module
2309         * modules/hash-tests: New file.
2310         * tests/test-hash.c: New file.
2311
2312 2009-06-17  Eric Blake  <ebb9@byu.net>
2313
2314         strstr-simple: document new module
2315         * MODULES.html.sh: Document new module.
2316
2317         strstr, strcasestr: replace on platforms with broken memchr
2318         * modules/strstr: Split into...
2319         * modules/strstr-simple: ...new module that does not care about
2320         performance, but does care about glibc bug.
2321         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
2322         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
2323         if platform memchr is broken, per Debian bug 521737.
2324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
2325         memchr.
2326         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
2327         * doc/posix-functions/strstr.texi (strstr): Document the fix.
2328         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2329         * modules/mountlist (Depends-on): Add strstr-simple.
2330         * modules/gen-uni-tables (Depends-on): Likewise.
2331         * modules/argz (Depends-on): Add strstr.
2332
2333 2009-06-17  Bruno Haible  <bruno@clisp.org>
2334
2335         * modules/posix_spawn-internal (Depends-on): Add errno.
2336
2337 2009-06-17  Bruno Haible  <bruno@clisp.org>
2338
2339         Define missing ESTALE on Interix 3.5.
2340         * lib/errno.in.h (ESTALE): Assign a value if missing.
2341         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
2342         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
2343         missing.
2344         * doc/posix-headers/errno.texi: Mention the Interix bug.
2345         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
2346
2347 2009-06-15  Eric Blake  <ebb9@byu.net>
2348
2349         memchr, memchr2: add valgrind exception
2350         * lib/memchr.valgrind: New file.
2351         * lib/memchr2.valgrind: New file.
2352         * modules/memchr (Files): Distribute valgrind file.
2353         * modules/memchr2 (Files): Likewise.
2354
2355         docs: memchr is no longer obsolete
2356         * MODULES.html.sh: Move memchr from obsolete to string.h section.
2357         * lib/string.in.h (memchr): Simplify logic.
2358
2359 2009-06-14  Jim Meyering  <meyering@redhat.com>
2360
2361         link-follow: fix the "checking..." message to not mention trailing slash
2362         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
2363         never considered trailing slashes.
2364
2365 2009-06-14  Bruno Haible  <bruno@clisp.org>
2366
2367         * m4/memchr.m4: Mention also the bug on IA-64.
2368         * doc/posix-functions/memchr.texi: Likewise.
2369
2370 2009-06-12  Eric Blake  <ebb9@byu.net>
2371
2372         memchr: detect broken x86_64 and alpha implementations
2373         * modules/memchr-tests (Depends-on): Move mmap detection...
2374         * modules/memchr (Depends-on): ...here.
2375         (configure.ac): Set indicator.
2376         * lib/string.in.h (memchr): Declare replacement.
2377         * modules/string (Makefile.am): Trigger replacement.
2378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2379         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
2380         bugs.
2381         * doc/posix-functions/memchr.texi (memchr): Document the bug.
2382         * modules/getpagesize (License): Relax license.
2383
2384 2009-06-11  Bruno Haible  <bruno@clisp.org>
2385
2386         * lib/idpriv.h: Add more references.
2387
2388 2009-06-08  Bruno Haible  <bruno@clisp.org>
2389
2390         Tests for module 'idpriv-droptemp'.
2391         * modules/idpriv-droptemp-tests: New file.
2392         * tests/test-idpriv-droptemp.sh: New file.
2393         * tests/test-idpriv-droptemp.su.sh: New file.
2394         * tests/test-idpriv-droptemp.c: New file.
2395
2396         New module 'idpriv-droptemp'.
2397         * lib/idpriv-droptemp.c: New file.
2398         * modules/idpriv-droptemp: New file.
2399
2400 2009-06-08  Bruno Haible  <bruno@clisp.org>
2401
2402         Tests for module 'idpriv-drop'.
2403         * modules/idpriv-drop-tests: New file.
2404         * tests/test-idpriv-drop.sh: New file.
2405         * tests/test-idpriv-drop.su.sh: New file.
2406         * tests/test-idpriv-drop.c: New file.
2407
2408         New module 'idpriv-drop'.
2409         * lib/idpriv.h: New file.
2410         * lib-idpriv-drop.c: New file.
2411         * m4/idpriv.m4: New file.
2412         * modules/idpriv-drop: New file.
2413
2414 2009-06-08  Bruno Haible  <bruno@clisp.org>
2415
2416         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
2417         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2418         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2419         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2420         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2421         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2422         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2423
2424 2009-06-08  Eric Blake  <ebb9@byu.net>
2425
2426         test-strstr: use memory fence, when possible
2427         * tests/test-strstr.c (main): Use memory fence, in order to be
2428         more likely to trigger Debian bug 521737.
2429         * modules/strstr-tests (Files): Pull in additional files.
2430
2431         memchr: no longer obsolete, for wider field testing
2432         * modules/memchr (Status, Notice): Delete, this module is no
2433         longer obsolete.
2434         * modules/vasnprintf (Depends-on): Add memchr.
2435
2436 2009-06-07  Jim Meyering  <meyering@redhat.com>
2437
2438         hash: declare some functions with the warn_unused_result attribute
2439         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
2440
2441 2009-06-07  Bruno Haible  <bruno@clisp.org>
2442
2443         * tests/test-alignof.c: Don't test int64_t if it does not exist.
2444         Reported by Eric Blake.
2445
2446 2009-06-06  Eric Blake  <ebb9@byu.net>
2447
2448         test-alignof: fix typo with long double
2449         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
2450         compiler error.
2451
2452 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
2453
2454         Escape non-texinfo { and }s.
2455         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
2456         markup error.
2457
2458 2009-06-04  Jim Meyering  <meyering@redhat.com>
2459
2460         gitlog-to-changelog: don't infloop on an empty commit log
2461         * build-aux/gitlog-to-changelog: Warn about an empty log message.
2462         Reported by Boris Petersen <transacid@centerim.org>.
2463
2464 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
2465
2466         version-etc: extend for packagers
2467         Add three new configure options, intended for packagers:
2468           --with-packager="packager name"
2469           --with-packager-version="packager-specific version"
2470           --with-packager-bug-reports="packager bug reporting"
2471         An example with coreutils:
2472           $ ./configure \
2473             --with-packager=Gentoo \
2474             --with-packager-bug-report=http://bugs.gentoo.org/ \
2475             --with-packager-version="patchset 1.6"
2476           $ ./src/ls --version | head -n3
2477           ls (GNU coreutils) 7.1-dirty
2478           Packaged by Gentoo (patchset 1.6)
2479           Copyright (C) 2009 Free Software Foundation, Inc.
2480         Note that the bug reporting info via --help doesn't show up because
2481         coreutils uses its own custom emit_bug_reporting_address() implementation
2482         in src/system.h.  If it didn't, it'd look like:
2483           $ ./src/ls --help | tail -n4
2484           Report bugs to <bug-coreutils@gnu.org>.
2485           Report Gentoo bugs to <http://bugs.gentoo.org/>.
2486           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
2487           General help using GNU software: <http://www.gnu.org/gethelp/>.
2488         * lib/version-etc.c: Print new information, if provided.
2489         * m4/version-etc.m4: New file.
2490         * modules/version-etc (Files): Add m4/version-etc.m4.
2491         (configure.ac): Add gl_VERSION_ETC.
2492
2493 2009-05-31  Bruno Haible  <bruno@clisp.org>
2494
2495         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
2496         and 'int64_t'.
2497         * modules/alignof-tests (Dependencies): Add stdint.
2498         Reported by Eric Blake.
2499
2500 2009-05-31  Bruno Haible  <bruno@clisp.org>
2501
2502         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
2503         restriction due to compiler bugs.
2504         Reported by Eric Blake.
2505
2506 2009-05-31  Simon Josefsson  <simon@josefsson.org>
2507             Bruno Haible  <bruno@clisp.org>
2508
2509         Fix test-alignof failure.
2510         * lib/alignof.h (alignof_slot): New macro.
2511         (alignof_type): New macro, with the same semantics as the previous
2512         'alignof'.
2513         (alignof): Alias to alignof_slot.
2514         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
2515         check that the results are usable as constant expressions.
2516
2517 2009-05-31  Bruno Haible  <bruno@clisp.org>
2518
2519         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
2520         * tests/test-memchr.c (main): Check that memchr does not read past the
2521         first occurrence of the byte.
2522         * tests/test-strstr.c (main): Update comment.
2523         Suggested by Eric Blake.
2524
2525 2009-05-30  Bruno Haible  <bruno@clisp.org>
2526
2527         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
2528         detail how to use dumpbin.
2529         Reported by David Byron <dbyron@dbyron.com>.
2530
2531 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2532
2533         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
2534
2535 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2536
2537         * m4/manywarnings.m4: Add GCC 4.4 warnings.
2538
2539 2009-05-28  Bruno Haible  <bruno@clisp.org>
2540
2541         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
2542         build-aux/ files.
2543
2544 2009-05-28  Simon Josefsson  <simon@josefsson.org>
2545
2546         * gnulib-tool (func_import): Transform license on build-aux/ files too.
2547
2548 2009-05-27  Simon Josefsson  <simon@josefsson.org>
2549
2550         * gnulib-tool (sed_transform_main_lib_file)
2551         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
2552         regexps.
2553
2554 2009-05-26  Simon Josefsson  <simon@josefsson.org>
2555
2556         * tests/test-strstr.c: Add another self-test.
2557         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
2558         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
2559
2560 2009-05-23  Bruno Haible  <bruno@clisp.org>
2561
2562         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
2563         change.
2564
2565 2009-05-21  Bruno Haible  <bruno@clisp.org>
2566
2567         Simplify use of mode_t varargs.
2568         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
2569         uses 'mode_t' or 'int'.
2570         * lib/openat.c (openat): Likewise.
2571         * lib/open-safer.c (open_safer): Likewise.
2572         * m4/mode_t.m4: New file.
2573         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
2574         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
2575         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
2576         * modules/open (Files): Add m4/mode_t.m4.
2577         * modules/openat (Files): Likewise.
2578         * modules/fcntl-safer (Files): Likewise.
2579         Suggested by Eric Blake.
2580
2581 2009-05-21  Pádraig Brady  <P@draigbrady.com>
2582
2583         * doc/glibc-functions/fallocate.texi: New file.
2584         * doc/gnulib.texi: Include it.
2585
2586 2009-05-21  Eric Blake  <ebb9@byu.net>
2587             Bruno Haible  <bruno@clisp.org>
2588
2589         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
2590         invocations.
2591         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2592
2593 2009-05-21  Eric Blake  <ebb9@byu.net>
2594             Bruno Haible  <bruno@clisp.org>
2595
2596         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
2597         include_next. Fix of 2008-11-20 commit.
2598         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
2599         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
2600         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
2601         NEXT_MATH_H.
2602         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
2603         instead of NEXT_MATH_H.
2604
2605 2009-05-21  Bruno Haible  <bruno@clisp.org>
2606
2607         Avoid redefinition warnings for SIZE_MAX.
2608         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
2609         Reported by Simon Josefsson.
2610
2611 2009-05-21  Bruno Haible  <bruno@clisp.org>
2612
2613         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
2614         AC_CACHE_VAL.
2615
2616 2009-05-20  Bruno Haible  <bruno@clisp.org>
2617
2618         Make zeroptr.h work on mingw.
2619         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
2620         mprotect.
2621         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
2622         * modules/memchr2-tests (configure.ac): Likewise.
2623         * modules/memcmp-tests (configure.ac): Likewise.
2624         * modules/memmem-tests (configure.ac): Likewise.
2625         * modules/memrchr-tests (configure.ac): Likewise.
2626         Reported by Simon Josefsson.
2627
2628 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2629
2630         * tests/test-glob.c: Include string.h for strcmp prototype.
2631
2632 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2633
2634         * modules/getdelim (Depends-on): Add explicit stdint, although it
2635         was implicitly already pulled in via realloc-posix.
2636         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
2637
2638 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2639
2640         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
2641         G. Christensen" <tgc@jupiterrise.com>.
2642         * m4/sys_socket_h.m4: Check for sa_family_t.
2643         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
2644         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
2645         * tests/test-sys_socket.c: Check that sa_family_t works.
2646
2647 2009-05-18  Eric Blake  <ebb9@byu.net>
2648
2649         maint.mk: allow gnulib_dir in VPATH build
2650         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
2651
2652 2009-05-15  Jim Meyering  <meyering@redhat.com>
2653
2654         maint.mk: Give gnulib_dir a default definition.
2655         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
2656         Thus, most packages no longer need to specify this variable in cfg.mk
2657
2658 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
2659
2660         rename.m4: fix typos that would make non-mingw cross-configure fail
2661         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
2662
2663 2009-05-13  Eric Blake  <ebb9@byu.net>
2664
2665         mmap-anon: avoid out-of-order autoconf expansion
2666         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
2667         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
2668         * modules/memchr-tests (Depends-on): Add extensions.
2669         * modules/memchr2-tests (Depends-on): Add extensions.
2670         * modules/memcmp-tests (Depends-on): Add extensions.
2671         * modules/memmem-tests (Depends-on): Add extensions.
2672         * modules/memrchr-tests (Depends-on): Add extensions.
2673
2674 2009-05-13  Bruno Haible  <bruno@clisp.org>
2675
2676         Make some tests ISO C 99 compliant.
2677         * tests/zerosize-ptr.h: New file.
2678         * tests/test-memchr.c: Include zerosize-ptr.h.
2679         (main): Use a zero-size object pointer instead of NULL.
2680         * tests/test-memchr2.c: Include zerosize-ptr.h.
2681         (main): Use a zero-size object pointer instead of NULL.
2682         * tests/test-memcmp.c: Include zerosize-ptr.h.
2683         (main): Use a zero-size object pointer instead of NULL.
2684         * tests/test-memmem.c: Include zerosize-ptr.h.
2685         (main): Use a zero-size object pointer instead of NULL.
2686         * tests/test-memrchr.c: Include zerosize-ptr.h.
2687         (main): Use a zero-size object pointer instead of NULL.
2688         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
2689         m4/mmap-anon.m4.
2690         (Depends-on): Add getpagesize.
2691         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2692         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
2693         m4/mmap-anon.m4.
2694         (Depends-on): Add getpagesize.
2695         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2696         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
2697         m4/mmap-anon.m4.
2698         (Depends-on): Add getpagesize.
2699         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2700         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
2701         m4/mmap-anon.m4.
2702         (Depends-on): Add getpagesize.
2703         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2704         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
2705         m4/mmap-anon.m4.
2706         (Depends-on): Add getpagesize.
2707         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2708
2709 2009-05-12  Bruno Haible  <bruno@clisp.org>
2710
2711         Tests for module 'alignof'.
2712         * modules/alignof-tests: New file.
2713         * tests/test-alignof.c: New file.
2714
2715 2009-05-12  Bruno Haible  <bruno@clisp.org>
2716
2717         Fix alignof macro.
2718         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
2719         vendor compilers that are always correct.
2720
2721 2009-05-12  Bruno Haible  <bruno@clisp.org>
2722
2723         Make the MAP_ANONYMOUS detection work on HP-UX 11.
2724         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
2725         not whether its fully works.
2726
2727 2009-05-12  Bruno Haible  <bruno@clisp.org>
2728
2729         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
2730
2731 2009-05-12  Jim Meyering  <meyering@redhat.com>
2732
2733         * top/maint.mk: Adjust backslash alignment.
2734
2735 2009-05-11  Simon Josefsson  <simon@josefsson.org>
2736
2737         * top/maint.mk: Make $(srcdir)/build-aux configurable.
2738
2739 2009-05-11  Eric Blake  <ebb9@byu.net>
2740
2741         argp: avoid undefined behavior
2742         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
2743         macros.
2744
2745 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2746
2747         * tests/test-vc-list-files-git.sh: Do git config of user.email and
2748         user.name to prevent git commit from complaining.
2749
2750 2009-05-10  Bruno Haible  <bruno@clisp.org>
2751
2752         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
2753         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
2754         it rewrites every file name only once.
2755         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
2756
2757 2009-05-08  Bruno Haible  <bruno@clisp.org>
2758
2759         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
2760         instead of 'max'.
2761
2762 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2763
2764         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
2765         sockaddr_storage test.
2766
2767 2009-05-07  Simon Josefsson  <simon@josefsson.org>
2768
2769         * modules/sys_socket (Makefile.am): Substitute
2770         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
2771         * m4/sys_socket_h.m4: Check for sockaddr_storage.
2772         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
2773         * tests/test-sys_socket.c: Check sockaddr_storage.
2774
2775 2009-05-08  Bruno Haible  <bruno@clisp.org>
2776
2777         New module 'alignof'.
2778         * lib/alignof.h: New file.
2779         * modules/alignof: New file.
2780
2781 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2782             Bruno Haible  <bruno@clisp.org>
2783
2784         Fix test-file-has-acl on FreeBSD.
2785         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
2786         mask is implicitly added.
2787         * tests/test-file-has-acl.c: Include <signal.h>.
2788         (main): Terminate the test after 5 seconds.
2789         * modules/acl-tests (configure.ac): Check for alarm function.
2790
2791 2009-05-04  Bruno Haible  <bruno@clisp.org>
2792
2793         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
2794         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
2795         * modules/errno (configure.ac): Drop AC_REQUIRE.
2796         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
2797         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
2798
2799 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2800
2801         * modules/glob-tests: New module.
2802         * tests/test-glob.c: Add.
2803
2804 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2805
2806         * modules/fnmatch-tests: New module.
2807         * tests/test-fnmatch.c: Add.
2808
2809 2009-05-04  Eric Blake  <ebb9@byu.net>
2810
2811         maint: make the new no-submodule-changes rule VPATH-safe
2812         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
2813
2814 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2815             Bruno Haible  <bruno@clisp.org>
2816
2817         acl: Fix infinite loop on FreeBSD.
2818         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
2819         of return value from acl_get_entry.
2820         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
2821         Likewise.
2822
2823 2009-05-03  Bruno Haible  <bruno@clisp.org>
2824
2825         * lib/acl-internal.h (acl_entries): Clarify return value.
2826         * lib/acl_entries.c (acl_entries): Likewise.
2827
2828 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2829
2830         Bug fix in acl module.
2831         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
2832
2833 2009-05-03  Bruno Haible  <bruno@clisp.org>
2834
2835         Create gperf-generated file in the source dir, not in the build dir.
2836         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
2837         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
2838         * modules/unicase/locale-language (unicase/locale-languages.h):
2839         Likewise.
2840         * modules/unicase/special-casing (unicase/special-casing-table.h):
2841         Likewise.
2842         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
2843         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
2844         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
2845         Reported by Ralf Wildenhues.
2846
2847 2009-05-03  Bruno Haible  <bruno@clisp.org>
2848
2849         * modules/fnmatch (Description, configure.ac): Taken from
2850         fnmatch-posix.
2851         * modules/fnmatch-posix: Turn into a symbolic reference to the
2852         'fnmatch' module, and deprecate.
2853         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
2854
2855 2009-05-03  Bruno Haible  <bruno@clisp.org>
2856
2857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
2858         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
2859         Reported by Ralf Wildenhues.
2860
2861 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2862
2863         * m4/fnmatch.m4: Fix fnmatch re-define.
2864
2865 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2866
2867         priv-set: new module and tests; adapt write-any-file
2868         * lib/priv-set.c: New file.
2869         * lib/priv-set.h: New file.
2870         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
2871         * lib/write-any-file.c: Simplify by using priv-set module.
2872         * m4/priv-set.m4: New file.
2873         * modules/priv-set: New file.
2874         * modules/unlinkdir: Add dependency on priv-set module.
2875         * modules/write-any-file: Likewise.
2876
2877         Tests for module 'priv-set'.
2878         * modules/priv-set-tests: New file.
2879         * tests/test-priv-set.c: New file.
2880
2881 2009-05-03  Jim Meyering  <meyering@redhat.com>
2882             Bruno Haible  <bruno@clisp.org>
2883
2884         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
2885         use the converted UTF-8 variant of the name instead.
2886
2887 2009-05-03  Jim Meyering  <meyering@redhat.com>
2888
2889         tests: tighten some getdate tests
2890         * tests/test-getdate.c (main): Tighten tests: require equality,
2891         not just greater than.  Set TZ envvar to UTC0.
2892
2893 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2894
2895         getdate: correctly interpret "next monday" when run on a Monday
2896         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
2897         that e.g., "next tues" (when run on a tuesday) results in a date
2898         that is one week in the future, and not today's date.
2899         I.e., add a week when the wday is the same as the current one.
2900         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
2901         and earlier by Martin Bernreuther and Jan Minář.
2902         * tests/test-getdate.c (main): Check that "next DAY" is always in
2903         the future and that "last DAY" is always in the past.
2904
2905 2009-05-02  Jim Meyering  <meyering@redhat.com>
2906
2907         build: ensure that a release build fails when a submodule is unclean
2908         * top/maint.mk (no-submodule-changes): New rule.
2909         (alpha beta major): Depend on it.
2910
2911 2009-05-02  Bruno Haible  <bruno@clisp.org>
2912
2913         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
2914         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
2915         shell variable gl_fnmatch_required to detect which variant is
2916         requested.
2917         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
2918         gl_FUNC_FNMATCH_POSIX.
2919         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
2920         exclude fnmatch-posix.
2921
2922 2009-05-02  Bruno Haible  <bruno@clisp.org>
2923
2924         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
2925         * modules/mbsrtowcs (License): Change to LGPLv2+.
2926         * modules/strnlen1 (License): Likewise.
2927         Reported by Simon Josefsson.
2928
2929 2009-05-02  Bruno Haible  <bruno@clisp.org>
2930
2931         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
2932         "cross".
2933         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
2934         gnulib-tool was called with option --source-base=lib.
2935
2936 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2937
2938         Use automake *-local hooks without commands, for extensibility.
2939         * modules/localcharset (Makefile.am): Rename install-exec-local
2940         rule to install-exec-localcharset, and make it a prerequisite of
2941         install-exec-local.  Likewise, rename the uninstall-local rule to
2942         uninstall-localcharset, and make it a prerequisite of the former.
2943
2944 2009-05-01  Bruno Haible  <bruno@clisp.org>
2945
2946         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
2947         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2948         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
2949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
2950         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
2951         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2952         m4/locale-zh.m4, m4/codeset.m4.
2953
2954         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2955         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
2956         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2957         m4/locale-zh.m4.
2958
2959         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
2960         REPLACE_WCRTOMB if mbstate_t must be replaced.
2961         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
2962         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
2963
2964 2009-05-01  Bruno Haible  <bruno@clisp.org>
2965
2966         Avoid compiler warnings when redefining macros defined by <libintl.h>.
2967         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
2968         dngettext, dcngettext, textdomain, bindtextdomain,
2969         bind_textdomain_codeset): Undefine before redefining.
2970
2971 2009-04-30  Bruno Haible  <bruno@clisp.org>
2972
2973         Fix bug introduced on 2009-04-25.
2974         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
2975         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
2976         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
2977         is defined.
2978         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
2979         is defined.
2980         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
2981         is defined.
2982         Reported by Elbert_Pol <elbert.pol@gmail.com>.
2983
2984 2009-04-28  Bruno Haible  <bruno@clisp.org>
2985
2986         Comment tweaks.
2987         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
2988         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
2989         * lib/unicase.h (u*_casexfrm): Likewise.
2990         Reported by Paolo Bonzini.
2991
2992 2009-04-28  Bruno Haible  <bruno@clisp.org>
2993
2994         Fix a compilation error.
2995         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
2996         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2997         Reported by Jim Meyering.
2998
2999 2009-04-27  Bruno Haible  <bruno@clisp.org>
3000
3001         New module 'libunistring'.
3002         * modules/libunistring: New file.
3003         * m4/libunistring.m4: New file.
3004         * MODULES.html.sh (Unicode string functions): Add it.
3005
3006 2009-04-27  Eric Blake  <ebb9@byu.net>
3007
3008         maint.mk: allow package-specific header to provide <config.h>
3009         * top/maint.mk (sc_require_config_h): New variable.
3010         (sc_require_config_h, sc_require_config_h_first): Use it.
3011
3012 2009-04-27  Simon Josefsson  <simon@josefsson.org>
3013
3014         * top/maint.mk (sc_avoid_if_before_free): Except
3015         useless-if-before-free script.
3016
3017 2009-04-27  Eric Blake  <ebb9@byu.net>
3018
3019         maintainer-makefile: depend on all required helper scripts
3020         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
3021         useless-if-before-free.
3022         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
3023         version, rather than assuming gnulib checkout is available.
3024         Reported by Simen Josefsson.
3025
3026 2009-04-26  Bruno Haible  <bruno@clisp.org>
3027
3028         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
3029         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
3030         "../" or "..".
3031
3032 2009-04-26  Bruno Haible  <bruno@clisp.org>
3033
3034         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
3035         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
3036         AC_LIB_HAVE_LINKFLAGS.
3037
3038 2009-04-26  Bruno Haible  <bruno@clisp.org>
3039
3040         Simplify calling convention of u*_conv_from_encoding.
3041         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
3042         u32_conv_from_encoding): Expect a resultbuf argument and return the
3043         result directly as a pointer.
3044         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
3045         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
3046         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
3047         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
3048         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
3049         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3050         Update.
3051         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
3052         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
3053         * lib/vasnprintf.c (VASNPRINTF): Update.
3054         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
3055         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
3056         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
3057         * NEWS: Mention the change.
3058
3059 2009-04-26  Bruno Haible  <bruno@clisp.org>
3060
3061         Simplify calling convention of u*_conv_to_encoding.
3062         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
3063         u32_conv_to_encoding): Expect a resultbuf argument and return the
3064         result directly as a pointer.
3065         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3066         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
3067         freeing scaled_offsets if mem_iconveha failed.
3068         * lib/unicase/u-casexfrm.h (FUNC): Update.
3069         * lib/uninorm/u-normxfrm.h (FUNC): Update.
3070         * lib/vasnprintf.c (VASNPRINTF): Update.
3071         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
3072         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
3073         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
3074         * NEWS: Mention the change.
3075
3076 2009-04-26  Bruno Haible  <bruno@clisp.org>
3077
3078         Avoid test failures on AIX and OSF/1.
3079         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
3080         malloc(0).
3081         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
3082         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
3083         Likewise.
3084         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
3085         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
3086         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
3087         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
3088         * doc/posix-functions/malloc.texi: Document the portability problem
3089         related to malloc(0).
3090
3091 2009-04-26  Bruno Haible  <bruno@clisp.org>
3092
3093         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
3094         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
3095         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
3096
3097 2009-04-25  Bruno Haible  <bruno@clisp.org>
3098
3099         Avoid link error when creating a namespace clean library.
3100         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
3101         as macro with arguments if already defined as an alias.
3102         * lib/signbitf.c (gl_signbitf): Don't undefine.
3103         * lib/signbitd.c (gl_signbitd): Don't undefine.
3104         * lib/signbitl.c (gl_signbitl): Don't undefine.
3105
3106 2009-04-25  Jim Meyering  <meyering@redhat.com>
3107
3108         vc-list-files: fix another quoting bug
3109         * build-aux/vc-list-files: Avoid sed backslash expansion
3110         of pathological directory names.
3111
3112 2009-04-25  Eric Blake  <ebb9@byu.net>
3113
3114         vc-list-files: fix shell quoting error
3115         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
3116         timestamp.
3117
3118 2009-04-25  Jim Meyering  <meyering@redhat.com>
3119
3120         vc-list-files: restore lost functionality with subdir argument
3121         * build-aux/vc-list-files: When given a non-"." sub-directory
3122         argument, substitute the $dir/ prefix back onto each resulting name.
3123         Otherwise, coreutils' root_tests check would fail.
3124
3125 2009-04-24  Eric Blake  <ebb9@byu.net>
3126
3127         vc-list-files: ignore git symlinks
3128         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
3129         than ls-files, to ignore git symlinks.
3130
3131         maint.mk: import improvements from m4
3132         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
3133         (move_if_change): Delete unused macro.
3134         (news-date-check, vc-diff-check): Support VPATH builds.
3135         (announcement): Likewise.  Split --bootstrap-tools list...
3136         (boostrap-tools): ...into separate list, which can be overridden
3137         in cfg.mk.
3138         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
3139         requiring dependency on useless-if-before-free module.
3140         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
3141         Support VPATH builds.
3142
3143 2009-04-24  Jim Meyering  <meyering@redhat.com>
3144
3145         maint.mk: remove coreutils-specific rules and variables
3146         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
3147         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
3148         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
3149
3150         maint.mk: remove obsolete rule
3151         * top/maint.mk (rel-check): Remove rule.
3152         (WGET, WGETFLAGS): Remove now-unused variables.
3153
3154 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3155
3156         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
3157         consistency.
3158
3159         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
3160         '$(PATH_SEPARATOR)' instead of ':'.
3161
3162 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3163
3164         * lib/getopt1.c (main): Use 'const' for static array.
3165
3166 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3167
3168         * top/maint.mk: Sync with coreutils.
3169         * NEWS: Explain incompatibilities.
3170
3171 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3172             Bruno Haible  <bruno@clisp.org>
3173
3174         Fix cross-compilation results.
3175         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
3176         statement, as third argument of AC_TRY_RUN.
3177         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3178         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3179         Likewise.
3180         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3181         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3182         Likewise.
3183         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3184         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
3185         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
3186
3187 2009-04-20  Bruno Haible  <bruno@clisp.org>
3188
3189         Avoid test failure on mingw.
3190         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
3191
3192 2009-04-20  Bruno Haible  <bruno@clisp.org>
3193
3194         Avoid compilation error on mingw.
3195         * modules/localename-tests (Depends-on): Add locale.
3196
3197 2009-04-19  Bruno Haible  <bruno@clisp.org>
3198
3199         Support for building a shared library on Windows platforms.
3200         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
3201         (main): Test the presence of UNINORM_NFC here.
3202         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
3203         (main): Test the presence of UNINORM_NFD here.
3204         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
3205         (main): Test the presence of UNINORM_NFKC here.
3206         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
3207         (main): Test the presence of UNINORM_NFKD here.
3208
3209 2009-04-19  Bruno Haible  <bruno@clisp.org>
3210
3211         Avoid a compiler warning.
3212         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
3213         Change type of variable 'sequence'.
3214
3215 2009-04-19  Bruno Haible  <bruno@clisp.org>
3216
3217         * modules/configmake (Makefile.am): When the contents of configmake.h
3218         does not change, arrange to preserve its modification time.
3219
3220 2009-04-17  Simon Josefsson  <simon@josefsson.org>
3221
3222         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
3223         gettext domain.
3224
3225 2009-04-16  Jim Meyering  <meyering@redhat.com>
3226
3227         useless-if-before-free: improve conversion code
3228         * build-aux/useless-if-before-free: Adjust code-in-comment to match
3229         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
3230
3231 2009-04-14  Bruno Haible  <bruno@clisp.org>
3232
3233         * modules/fcntl (Depends-on): Add extensions.
3234         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
3235
3236 2009-04-12  Ben Pfaff  <blp@gnu.org>
3237
3238         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
3239         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
3240
3241 2009-03-20  Ben Pfaff  <blp@gnu.org>
3242
3243         Make rename replace existing destinations on Windows.
3244         * m4/rename.m4: Add test for Mingw.
3245         * lib/rename.c: Add rename replacement that uses MoveFileEx with
3246         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
3247         * doc/posix-functions/rename.texi: Document.
3248
3249 2009-04-10  Bruno Haible  <bruno@clisp.org>
3250
3251         New include file "iconveh.h".
3252         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
3253         * lib/striconveh.h: Include it.
3254         (enum iconv_ilseq_handler): Remove definition.
3255         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
3256         striconveh.h.
3257         * lib/striconveha.c: Include striconveh.h.
3258         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
3259         * modules/striconveh (Files): Add lib/iconveh.h.
3260         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
3261         lib/striconveh.h.
3262
3263 2009-04-10  Bruno Haible  <bruno@clisp.org>
3264
3265         * lib/uniconv.h: Update comment.
3266
3267 2009-04-10  Bruno Haible  <bruno@clisp.org>
3268
3269         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
3270         always.
3271         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
3272         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3273         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3274         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
3275         "unistring-notinline.h", so that the function gets defined always.
3276         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
3277         * lib/unistr/u8-uctomb.c: Likewise.
3278         * lib/unistr/u16-mbtouc.c: Likewise.
3279         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3280         * lib/unistr/u16-uctomb.c: Likewise.
3281         * lib/unistr/u32-mbtouc.c: Likewise.
3282         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3283         * lib/unistr/u32-uctomb.c: Likewise.
3284
3285 2009-04-10  Bruno Haible  <bruno@clisp.org>
3286
3287         Mark 'utime' obsolete.
3288         * modules/utime (Status, Notice): New sections.
3289         Suggested by Jim Meyering.
3290
3291         Fix cross-compile guess for utime test.
3292         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
3293         autoconf.
3294         * doc/posix-functions/utime.texi: Give more precisions.
3295         Reported by Jan <ipif@ymail.com>.
3296
3297 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
3298
3299         filevercmp: correct today's change
3300         * lib/filevercmp.c: Also handle coreutils' test inputs.
3301         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
3302
3303         Fix regression in 'filevercmp' module. Thanks Sven Joachim
3304         for reporting it.
3305         * lib/filevercmp.c: Special handle for "", "." and "..".
3306         * tests/test-filevercmp.c: Enlarge the set suite.
3307
3308 2009-04-07  Jim Meyering  <meyering@redhat.com>
3309
3310         useless-if-before-free: show how to remove braced useless free, too
3311         * build-aux/useless-if-before-free: still only in a comment, though.
3312
3313 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
3314
3315         maint.mk: import changes to syntax-check macros from coreutils
3316         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
3317         Use them in the relevant macros.
3318
3319 2009-04-06  Bruno Haible  <bruno@clisp.org>
3320
3321         Fix unportable use of bit-fields.
3322         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
3323         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
3324         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
3325
3326 2009-04-06  Bruno Haible  <bruno@clisp.org>
3327
3328         Avoid test failures on AIX and OSF/1.
3329         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
3330         that malloc(0) = NULL.
3331         * tests/unicase/test-u8-tolower.c (check): Likewise.
3332         * tests/unicase/test-u8-totitle.c (check): Likewise.
3333         * tests/unicase/test-u8-toupper.c (check): Likewise.
3334         * tests/unicase/test-u16-casefold.c (check): Likewise.
3335         * tests/unicase/test-u16-tolower.c (check): Likewise.
3336         * tests/unicase/test-u16-totitle.c (check): Likewise.
3337         * tests/unicase/test-u16-toupper.c (check): Likewise.
3338         * tests/unicase/test-u32-casefold.c (check): Likewise.
3339         * tests/unicase/test-u32-tolower.c (check): Likewise.
3340         * tests/unicase/test-u32-totitle.c (check): Likewise.
3341         * tests/unicase/test-u32-toupper.c (check): Likewise.
3342         * tests/uninorm/test-u8-nfc.c (check): Likewise.
3343         * tests/uninorm/test-u8-nfd.c (check): Likewise.
3344         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
3345         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
3346         * tests/uninorm/test-u16-nfc.c (check): Likewise.
3347         * tests/uninorm/test-u16-nfd.c (check): Likewise.
3348         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
3349         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
3350         * tests/uninorm/test-u32-nfc.c (check): Likewise.
3351         * tests/uninorm/test-u32-nfd.c (check): Likewise.
3352         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
3353         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
3354
3355 2009-04-05  Bruno Haible  <bruno@clisp.org>
3356
3357         Work around an autoconf limitation.
3358         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
3359         comment line if it would be longer than 3 KB.
3360
3361 2009-04-05  Bruno Haible  <bruno@clisp.org>
3362
3363         Avoid test failure with libiconv-1.13.
3364         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
3365         of the expected test results.
3366
3367 2009-04-05  Bruno Haible  <bruno@clisp.org>
3368
3369         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
3370         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
3371         that it should be installed.
3372
3373 2009-04-05  Bruno Haible  <bruno@clisp.org>
3374
3375         * gnulib-tool: New option --copy-file.
3376         (func_usage): Document it.
3377         (func_dest_tmpfilename): Moved out of func_import.
3378         (func_add_file, func_update_file): New functions, extracted from
3379         func_import.
3380         (func_import): Update.
3381
3382 2009-04-05  Karl Berry  <karl@gnu.org>
3383
3384         * README: prominently mention gnulib-tool.
3385         Rearrange sections so getting the code is near the top.
3386
3387 2009-04-05  Bruno Haible  <bruno@clisp.org>
3388
3389         * lib/unicase.h: Mention u*_cmp2.
3390         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3391         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
3392         * lib/unicase/ulc-casecmp.c: Likewise.
3393         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
3394         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
3395         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
3396         unistr/u8-cmp.
3397         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
3398         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
3399         unistr/u16-cmp.
3400         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
3401         unistr/u32-cmp.
3402
3403         * lib/uninorm.h: Mention u*_cmp2.
3404         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3405         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
3406         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
3407         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
3408         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
3409         unistr/u8-cmp.
3410         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
3411         unistr/u16-cmp.
3412         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
3413         unistr/u32-cmp.
3414
3415         New module 'unistr/u32-cmp2'.
3416         * lib/unistr/u32-cmp2.c: New file.
3417         * modules/unistr/u32-cmp2: New file.
3418
3419         New module 'unistr/u16-cmp2'.
3420         * lib/unistr/u16-cmp2.c: New file.
3421         * modules/unistr/u16-cmp2: New file.
3422
3423         New module 'unistr/u8-cmp2'.
3424         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
3425         * lib/unistr/u8-cmp2.c: New file.
3426         * lib/unistr/u-cmp2.h: New file.
3427         * modules/unistr/u8-cmp2: New file.
3428
3429 2009-04-05  Bruno Haible  <bruno@clisp.org>
3430
3431         * lib/unictype.h (uc_property_is_valid): New macro.
3432         * tests/unictype/test-pr_byname.c (main): Use it.
3433
3434         * lib/unistr.h: Doc fixes.
3435         * lib/uniconv.h: Doc fixes.
3436         * lib/unictype.h: Doc fixes.
3437
3438 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3439
3440         Port coreutils 7.2 to Solaris 8.
3441
3442         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
3443         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
3444         for Solaris 8.  This is a bit of a hack, as it means it's the
3445         caller's responsibility to add -lnsl if needed, but most likely it
3446         won't be needed since only getaddrinfo uses this and getaddrinfo
3447         isn't needed on Solaris 8.
3448
3449         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
3450         problem to Solaris 8 encountered with coreutils 7.2, which
3451         resulted in a message "fnmatch.c:292: warning: passing argument 4
3452         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
3453         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
3454
3455 2009-04-03  Simon Josefsson  <simon@josefsson.org>
3456
3457         * m4/ld-version-script.m4: Add FIXME comment.
3458
3459 2009-04-02  Simon Josefsson  <simon@josefsson.org>
3460
3461         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
3462         SOVERSION variable.
3463
3464 2009-04-02  Bruno Haible  <bruno@clisp.org>
3465
3466         * Makefile (info, html, dvi, pdf): Combine the rules.
3467         Suggested by Jim Meyering.
3468
3469 2009-04-01  Bruno Haible  <bruno@clisp.org>
3470
3471         * Makefile (info, html, dvi, pdf): New targets.
3472         Reported by Reuben Thomas <rrt@sc3d.org>.
3473
3474 2009-04-01  Bruno Haible  <bruno@clisp.org>
3475
3476         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
3477         can be put into PATH.
3478         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
3479
3480 2009-04-01  Bruno Haible  <bruno@clisp.org>
3481
3482         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
3483
3484 2009-04-01  Bruno Haible  <bruno@clisp.org>
3485
3486         Rename module 'visibility'.
3487         * modules/lib-symbol-visibility: Renamed from modules/visibility.
3488         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
3489         * doc/gnulib.texi: Update.
3490         * MODULES.html.sh (Misc): Update.
3491         * NEWS: Mention the change.
3492
3493 2009-04-01  Simon Josefsson  <simon@josefsson.org>
3494
3495         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
3496         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
3497         Eric Blake <ebb9@byu.net> for review.
3498         * MODULES.html.sh: Add lib-msvc-compat.
3499         * doc/gnulib.texi: Link to new section.
3500         * m4/ld-output-def.m4: New file.
3501         * doc/ld-output-def.texi: New file.
3502
3503 2009-04-01  Simon Josefsson  <simon@josefsson.org>
3504
3505         Rename ld-version-script to lib-symbol-versions.  Suggested by
3506         Bruno Haible <bruno@clisp.org>.
3507         * modules/ld-version-script: Renamed to lib-symbol-versions.
3508         * doc/ld-version-script.texi: Fix module name.
3509         * MODULES.html.sh: Add lib-symbol-versions.
3510
3511 2009-03-31  Simon Josefsson  <simon@josefsson.org>
3512
3513         * modules/u64-tests: New file.
3514         * tests/test-u64.c: New file.
3515
3516 2009-03-04  Simon Josefsson  <simon@josefsson.org>
3517
3518         * MODULES.html.sh: Mention u64.
3519         * modules/u64: New module.
3520         * modules/crypto/sha512: Depend on u64 module instead of providing
3521         u64.h.
3522
3523 2009-03-27  Eric Blake  <ebb9@byu.net>
3524
3525         test-strerror: make debugging EAI_SYSTEM easier
3526         * modules/getaddrinfo-tests (Depends-on): Add strerror.
3527         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
3528         failure was EAI_SYSTEM.
3529
3530 2009-03-25  Bruno Haible  <bruno@clisp.org>
3531
3532         Fix a problem with --enable-relocatable on Solaris 7.
3533         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
3534         since 2008-02-24.
3535
3536 2009-03-25  Eric Blake  <ebb9@byu.net>
3537
3538         test-sockets: avoid gcc warning
3539         * tests/test-sockets.c (main): Silence compiler warning.
3540
3541 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3542
3543         New modules nproc, pthread, contributed by Glen Lenker.
3544
3545         * MODULES.html.sh: Add pthread, nproc.
3546         * lib/nproc.c: New file.
3547         * lib/nproc.h: New file.
3548         * lib/pthread.in.h: New file.
3549         * m4/pthread.m4: New file.
3550         * modules/nproc: New file.
3551         * modules/pthread: New file.
3552
3553 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3554
3555         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
3556         New variable.
3557
3558 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
3559
3560         filevercmp: handle simple~ and numbered.~3~ backup suffixes
3561         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
3562         * tests/test-filevercmp.c: Add tests for backup suffixes.
3563
3564 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3565
3566         * modules/stdlib (Depends-on): Add stdint, needed when defining
3567         struct random_data on, for example, HP-UX 10.20.  Reported by
3568         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3569
3570 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3571
3572         * lib/readline.c (readline): Call fflush on stdout after printing
3573         prompt.
3574
3575 2009-03-20  Bruno Haible  <bruno@clisp.org>
3576
3577         Remove dependency from 'close' module to -lws2_32 on native Windows.
3578         * lib/close-hook.h: New file.
3579         * lib/close-hook.c: New file.
3580         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
3581         w32sock.h.
3582         (_gl_close_fd_maybe_socket): Remove function.
3583         (rpl_close): Invoke execute_all_close_hooks instead of
3584         _gl_close_fd_maybe_socket.
3585         * lib/sockets.c: Include close-hook.h, w32sock.h.
3586         (close_fd_maybe_socket): New function, essentially from lib/close.c.
3587         (close_sockets_hook): New variable.
3588         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
3589         (gl_sockets_cleanup): Unregister it.
3590         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
3591         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
3592         * modules/close-hook: New file.
3593         * modules/close (Files): Remove lib/w32sock.h.
3594         (Depends-on): Add close-hook.
3595         (Link): Remove section.
3596         * modules/sockets (Files): Add lib/w32sock.h.
3597         (Depends-on): Add close-hook.
3598         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
3599         invocation.
3600         * NEWS: Mention that LIB_CLOSE is gone.
3601
3602 2009-03-23  Eric Blake  <ebb9@byu.net>
3603
3604         signal-tests: test previous patch
3605         * tests/test-signal.c: New file.
3606         * modules/signal-tests: Likewise.
3607
3608         signal.h: always support 'volatile sig_atomic_t'
3609         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
3610         (gl_SIGNAL_H_DEFAULTS): Add a default.
3611         * modules/signal (Makefile.am): Substitute if needed.
3612         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
3613         users can blindly add volatile.
3614         * doc/posix-headers/signal.texi (signal.h): Document it.
3615         Reported by Matthew Woehlke.
3616
3617 2009-03-23  Jim Meyering  <meyering@redhat.com>
3618
3619         pathmax: PATH_MAX: use pathconf only when available
3620         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
3621         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
3622         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
3623         This avoids a link failure in a PSP cross-compilation environment
3624         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
3625
3626         * lib/vasnprintf.c (divide): Fix typo in comment.
3627
3628 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3629
3630         * gnulib-tool (func_filter_filelist): Fix comment.
3631
3632 2009-03-20  Bruno Haible  <bruno@clisp.org>
3633
3634         Make sockets.h self-contained.
3635         * lib/sockets.c: Include sockets.h first.
3636         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
3637
3638 2009-03-19  Eric Blake  <ebb9@byu.net>
3639
3640         doc: mention more functions added in cygwin 1.7.0
3641         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
3642         addition.
3643         * doc/posix-functions/log2f.texi: Likewise.
3644
3645 2009-03-19  Jim Meyering  <meyering@redhat.com>
3646
3647         fsusage: avoid syntax error due to statement-before-declaration
3648         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
3649         after all declarations.  Reported by Matthew Woehlke in
3650         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
3651
3652 2009-03-18  Eric Blake  <ebb9@byu.net>
3653
3654         build-aux/compile: sync from automake
3655         * build-aux/compile: New file, from automake.
3656         * config/srclist.txt: Mention build-aux/compile.
3657
3658 2009-03-17  Bruno Haible  <bruno@clisp.org>
3659
3660         * lib/git-merge-changelog.c: Fix typo in comment.
3661         Reported by Reuben Thomas <rrt@sc3d.org>.
3662
3663 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
3664
3665         * m4/regex.m4: update and improve help for
3666         --without-included-regex.
3667
3668 2009-03-17  Simon Josefsson  <simon@josefsson.org>
3669
3670         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
3671         failure on missing include files.
3672
3673 2009-03-17  Eric Blake  <ebb9@byu.net>
3674
3675         doc: mention more functions added in cygwin 1.7.0
3676         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
3677         addition.
3678         * doc/posix-functions/fwscanf.texi: Likewise.
3679         * doc/posix-functions/swprintf.texi: Likewise.
3680         * doc/posix-functions/swscanf.texi: Likewise.
3681         * doc/posix-functions/vfwprintf.texi: Likewise.
3682         * doc/posix-functions/vfwscanf.texi: Likewise.
3683         * doc/posix-functions/vswprintf.texi: Likewise.
3684         * doc/posix-functions/vswscanf.texi: Likewise.
3685         * doc/posix-functions/vwprintf.texi: Likewise.
3686         * doc/posix-functions/vwscanf.texi: Likewise.
3687         * doc/posix-functions/wcscasecmp.texi: Likewise.
3688         * doc/posix-functions/wcsdup.texi: Likewise.
3689         * doc/posix-functions/wcsftime.texi: Likewise.
3690         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3691         * doc/posix-functions/wprintf.texi: Likewise.
3692         * doc/posix-functions/wscanf.texi: Likewise.
3693         * doc/glibc-functions/gethostbyname2.texi: Likewise.
3694
3695 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3696
3697         maint.mk: really add $(AM_MAKEFLAGS)
3698         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
3699         was inadvertently omitted in the last commit.
3700         Spotted by Bruno Haible.
3701
3702         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
3703         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
3704         $(AM_MAKEFLAGS)' rather than plain `make'.
3705
3706         gnulib-tool: execute $MAKE not make
3707         * gnulib-tool: Default $MAKE to 'make'.
3708         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
3709         than make.  Initialize $MAKE in the do-autobuild script.
3710
3711         gnulib-tool: use $MAKE not make in generated files
3712         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
3713         make, in generated files.  Initialize $MAKE in the do-autobuild
3714         script.
3715
3716         * top/GNUmakefile (_have-git-version-gen): Fix typo.
3717
3718         GNUmakefile: disable parallelism only for multiple, recursive targets
3719         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
3720         additions in the Makefile.
3721         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
3722         by Automake.
3723         (.NOTPARALLEL): Only disable parallel builds if multiple targets
3724         are listed on the command line and at least one of them is
3725         listed in $(ALL_RECURSIVE_TARGETS).
3726
3727 2009-03-14  Bruno Haible  <bruno@clisp.org>
3728
3729         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
3730         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
3731         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
3732         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
3733         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
3734         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
3735         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
3736         unistr/u8-uctomb.
3737         * modules/unistr/u8-strchr (Depends-on): Likewise.
3738         * modules/unistr/u8-strrchr (Depends-on): Likewise.
3739         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
3740         unistr/u16-uctomb.
3741         * modules/unistr/u16-strchr (Depends-on): Likewise.
3742         * modules/unistr/u16-strrchr (Depends-on): Likewise.
3743
3744 2009-03-12  Bruno Haible  <bruno@clisp.org>
3745
3746         Work around select() bug on Interix 3.5.
3747         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
3748         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
3749         * m4/select.m4: New file.
3750         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
3751         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
3752         * modules/select (Files): Add m4/select.m4.
3753         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
3754         * modules/nanosleep (Depends-on): Add select.
3755         * modules/poll (Depends-on): Likewise.
3756         * doc/posix-functions/select.texi: Mention the Interix bug.
3757         Reported by Markus Duft <mduft@gentoo.org>.
3758
3759         * lib/select.c: Renamed from lib/winsock-select.c.
3760         * modules/select (Files): Add lib/select.c, remove
3761         lib/winsock-select.c.
3762         (configure.ac): Update.
3763
3764 2009-03-12  Jim Meyering  <meyering@redhat.com>
3765
3766         avoid gcc warnings about unused macro definitions
3767         * lib/readtokens.c (STREQ): Remove unused definition.
3768         * lib/xmalloc.c (SIZE_MAX): Likewise.
3769         * lib/openat-die.c (N_): Likewise.
3770         * lib/mountlist.c (SIZE_MAX): Remove definition.
3771         Instead, include <stdint.h>.
3772         * lib/readutmp.c: Likewise.
3773         * modules/readutmp (Depends-on): Add stdint.
3774         * modules/mountlist (Depends-on): Add stdint.
3775         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
3776
3777 2009-03-10  Bruno Haible  <bruno@clisp.org>
3778
3779         Tests for module 'mbmemcasecoll'.
3780         * modules/mbmemcasecoll-tests: New file.
3781         * tests/test-mbmemcasecoll1.sh: New file.
3782         * tests/test-mbmemcasecoll2.sh: New file.
3783         * tests/test-mbmemcasecoll3.sh: New file.
3784         * tests/test-mbmemcasecoll.c: New file.
3785
3786         New module 'mbmemcasecoll'.
3787         * lib/mbmemcasecoll.h: New file.
3788         * lib/mbmemcasecoll.c: New file.
3789         * modules/mbmemcasecoll: New file.
3790
3791         * tests/test-mbmemcasecmp.h: New file, extracted from
3792         tests/test-mbmemcasecmp.c.
3793         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
3794         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
3795         (main): Update.
3796         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
3797
3798 2009-03-09  Bruno Haible  <bruno@clisp.org>
3799
3800         Tests for module 'mbmemcasecmp'.
3801         * modules/mbmemcasecmp-tests: New file.
3802         * tests/test-mbmemcasecmp1.sh: New file.
3803         * tests/test-mbmemcasecmp2.sh: New file.
3804         * tests/test-mbmemcasecmp3.sh: New file.
3805         * tests/test-mbmemcasecmp.c: New file.
3806
3807         New module 'mbmemcasecmp'.
3808         * lib/mbmemcasecmp.h: New file.
3809         * lib/mbmemcasecmp.c: New file.
3810         * modules/mbmemcasecmp: New file.
3811
3812 2009-03-09  Bruno Haible  <bruno@clisp.org>
3813
3814         Tests for module 'unicase/ulc-casecoll'.
3815         * modules/unicase/ulc-casecoll-tests: New file.
3816         * tests/unicase/test-ulc-casecoll1.sh: New file.
3817         * tests/unicase/test-ulc-casecoll2.sh: New file.
3818         * tests/unicase/test-ulc-casecoll.c: New file.
3819
3820         New module 'unicase/ulc-casecoll'.
3821         * lib/unicase.h (ulc_casecoll): New declaration.
3822         * lib/unicase/ulc-casecoll.c: New file.
3823         * modules/unicase/ulc-casecoll: New file.
3824
3825         New module 'unicase/ulc-casexfrm'.
3826         * lib/unicase.h (ulc_casexfrm): New declaration.
3827         * lib/unicase/ulc-casexfrm.c: New file.
3828         * modules/unicase/ulc-casexfrm: New file.
3829
3830 2009-03-09  Bruno Haible  <bruno@clisp.org>
3831
3832         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
3833         invocations.
3834
3835         * m4/mbscasecmp.m4: Remove file.
3836         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
3837         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
3838
3839         * m4/mbscasestr.m4: Remove file.
3840         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
3841         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
3842
3843         * m4/mbschr.m4: Remove file.
3844         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
3845         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
3846
3847         * m4/mbscspn.m4: Remove file.
3848         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
3849         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
3850
3851         * m4/mbslen.m4: Remove file.
3852         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
3853         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
3854
3855         * m4/mbsncasecmp.m4: Remove file.
3856         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
3857         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
3858
3859         * m4/mbsnlen.m4: Remove file.
3860         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
3861         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
3862
3863         * m4/mbspbrk.m4: Remove file.
3864         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
3865         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
3866
3867         * m4/mbspcasecmp.m4: Remove file.
3868         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
3869         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
3870
3871         * m4/mbsrchr.m4: Remove file.
3872         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
3873         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
3874
3875         * m4/mbssep.m4: Remove file.
3876         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
3877         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
3878
3879         * m4/mbsspn.m4: Remove file.
3880         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
3881         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
3882
3883         * m4/mbsstr.m4: Remove file.
3884         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
3885         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
3886
3887         * m4/mbstok_r.m4: Remove file.
3888         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
3889         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
3890
3891         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
3892
3893         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
3894         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
3895
3896         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
3897
3898 2009-03-08  Bruno Haible  <bruno@clisp.org>
3899
3900         Tests for module 'unicase/ulc-casecmp'.
3901         * modules/unicase/ulc-casecmp-tests: New file.
3902         * tests/unicase/test-ulc-casecmp1.sh: New file.
3903         * tests/unicase/test-ulc-casecmp2.sh: New file.
3904         * tests/unicase/test-ulc-casecmp.c: New file.
3905
3906         New module 'unicase/ulc-casecmp'.
3907         * lib/unicase.h (ulc_casecmp): New declaration.
3908         * lib/unicase/ulc-casecmp.c: New file.
3909         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
3910         'const SRC_UNIT *'.
3911         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
3912         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
3913         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
3914         * modules/unicase/ulc-casecmp: New file.
3915
3916         Tests for module 'unicase/u32-is-cased'.
3917         * modules/unicase/u32-is-cased-tests: New file.
3918         * tests/unicase/test-u32-is-cased.c: New file.
3919
3920         Tests for module 'unicase/u16-is-cased'.
3921         * modules/unicase/u16-is-cased-tests: New file.
3922         * tests/unicase/test-u16-is-cased.c: New file.
3923
3924         Tests for module 'unicase/u8-is-cased'.
3925         * modules/unicase/u8-is-cased-tests: New file.
3926         * tests/unicase/test-u8-is-cased.c: New file.
3927         * tests/unicase/test-is-cased.h: New file.
3928
3929         New module 'unicase/u32-is-cased'.
3930         * lib/unicase/u32-is-cased.c: New file.
3931         * modules/unicase/u32-is-cased: New file.
3932
3933         New module 'unicase/u16-is-cased'.
3934         * lib/unicase/u16-is-cased.c: New file.
3935         * modules/unicase/u16-is-cased: New file.
3936
3937         New module 'unicase/u8-is-cased'.
3938         * lib/unicase/u8-is-cased.c: New file.
3939         * lib/unicase/u-is-cased.h: New file.
3940         * modules/unicase/u8-is-cased: New file.
3941
3942         Tests for module 'unicase/u32-is-casefolded'.
3943         * modules/unicase/u32-is-casefolded-tests: New file.
3944         * tests/unicase/test-u32-is-casefolded.c: New file.
3945
3946         Tests for module 'unicase/u16-is-casefolded'.
3947         * modules/unicase/u16-is-casefolded-tests: New file.
3948         * tests/unicase/test-u16-is-casefolded.c: New file.
3949
3950         Tests for module 'unicase/u8-is-casefolded'.
3951         * modules/unicase/u8-is-casefolded-tests: New file.
3952         * tests/unicase/test-u8-is-casefolded.c: New file.
3953         * tests/unicase/test-is-casefolded.h: New file.
3954
3955         New module 'unicase/u32-is-casefolded'.
3956         * lib/unicase/u32-is-casefolded.c: New file.
3957         * modules/unicase/u32-is-casefolded: New file.
3958
3959         New module 'unicase/u16-is-casefolded'.
3960         * lib/unicase/u16-is-casefolded.c: New file.
3961         * modules/unicase/u16-is-casefolded: New file.
3962
3963         New module 'unicase/u8-is-casefolded'.
3964         * lib/unicase/u8-is-casefolded.c: New file.
3965         * modules/unicase/u8-is-casefolded: New file.
3966
3967         Tests for module 'unicase/u32-is-titlecase'.
3968         * modules/unicase/u32-is-titlecase-tests: New file.
3969         * tests/unicase/test-u32-is-titlecase.c: New file.
3970
3971         Tests for module 'unicase/u16-is-titlecase'.
3972         * modules/unicase/u16-is-titlecase-tests: New file.
3973         * tests/unicase/test-u16-is-titlecase.c: New file.
3974
3975         Tests for module 'unicase/u8-is-titlecase'.
3976         * modules/unicase/u8-is-titlecase-tests: New file.
3977         * tests/unicase/test-u8-is-titlecase.c: New file.
3978         * tests/unicase/test-is-titlecase.h: New file.
3979
3980         New module 'unicase/u32-is-titlecase'.
3981         * lib/unicase/u32-is-titlecase.c: New file.
3982         * modules/unicase/u32-is-titlecase: New file.
3983
3984         New module 'unicase/u16-is-titlecase'.
3985         * lib/unicase/u16-is-titlecase.c: New file.
3986         * modules/unicase/u16-is-titlecase: New file.
3987
3988         New module 'unicase/u8-is-titlecase'.
3989         * lib/unicase/u8-is-titlecase.c: New file.
3990         * modules/unicase/u8-is-titlecase: New file.
3991
3992         Tests for module 'unicase/u32-is-lowercase'.
3993         * modules/unicase/u32-is-lowercase-tests: New file.
3994         * tests/unicase/test-u32-is-lowercase.c: New file.
3995
3996         Tests for module 'unicase/u16-is-lowercase'.
3997         * modules/unicase/u16-is-lowercase-tests: New file.
3998         * tests/unicase/test-u16-is-lowercase.c: New file.
3999
4000         Tests for module 'unicase/u8-is-lowercase'.
4001         * modules/unicase/u8-is-lowercase-tests: New file.
4002         * tests/unicase/test-u8-is-lowercase.c: New file.
4003         * tests/unicase/test-is-lowercase.h: New file.
4004
4005         New module 'unicase/u32-is-lowercase'.
4006         * lib/unicase/u32-is-lowercase.c: New file.
4007         * modules/unicase/u32-is-lowercase: New file.
4008
4009         New module 'unicase/u16-is-lowercase'.
4010         * lib/unicase/u16-is-lowercase.c: New file.
4011         * modules/unicase/u16-is-lowercase: New file.
4012
4013         New module 'unicase/u8-is-lowercase'.
4014         * lib/unicase/u8-is-lowercase.c: New file.
4015         * modules/unicase/u8-is-lowercase: New file.
4016
4017         Tests for module 'unicase/u32-is-uppercase'.
4018         * modules/unicase/u32-is-uppercase-tests: New file.
4019         * tests/unicase/test-u32-is-uppercase.c: New file.
4020
4021         Tests for module 'unicase/u16-is-uppercase'.
4022         * modules/unicase/u16-is-uppercase-tests: New file.
4023         * tests/unicase/test-u16-is-uppercase.c: New file.
4024
4025         Tests for module 'unicase/u8-is-uppercase'.
4026         * modules/unicase/u8-is-uppercase-tests: New file.
4027         * tests/unicase/test-u8-is-uppercase.c: New file.
4028         * tests/unicase/test-is-uppercase.h: New file.
4029
4030         New module 'unicase/u32-is-uppercase'.
4031         * lib/unicase/u32-is-uppercase.c: New file.
4032         * modules/unicase/u32-is-uppercase: New file.
4033
4034         New module 'unicase/u16-is-uppercase'.
4035         * lib/unicase/u16-is-uppercase.c: New file.
4036         * modules/unicase/u16-is-uppercase: New file.
4037
4038         New module 'unicase/u8-is-uppercase'.
4039         * lib/unicase/u8-is-uppercase.c: New file.
4040         * modules/unicase/u8-is-uppercase: New file.
4041
4042         New module 'unicase/u32-is-invariant'.
4043         * lib/unicase/u32-is-invariant.c: New file.
4044         * modules/unicase/u32-is-invariant: New file.
4045
4046         New module 'unicase/u16-is-invariant'.
4047         * lib/unicase/u16-is-invariant.c: New file.
4048         * modules/unicase/u16-is-invariant: New file.
4049
4050         New module 'unicase/u8-is-invariant'.
4051         * lib/unicase/u8-is-invariant.c: New file.
4052         * lib/unicase/invariant.h: New file.
4053         * lib/unicase/u-is-invariant.h: New file.
4054         * modules/unicase/u8-is-invariant: New file.
4055
4056         Tests for module 'unicase/u32-casecoll'.
4057         * modules/unicase/u32-casecoll-tests: New file.
4058         * tests/unicase/test-u32-casecoll.c: New file.
4059
4060         Tests for module 'unicase/u16-casecoll'.
4061         * modules/unicase/u16-casecoll-tests: New file.
4062         * tests/unicase/test-u16-casecoll.c: New file.
4063
4064         Tests for module 'unicase/u8-casecoll'.
4065         * modules/unicase/u8-casecoll-tests: New file.
4066         * tests/unicase/test-u8-casecoll.c: New file.
4067
4068         New module 'unicase/u32-casecoll'.
4069         * lib/unicase/u32-casecoll.c: New file.
4070         * modules/unicase/u32-casecoll: New file.
4071
4072         New module 'unicase/u16-casecoll'.
4073         * lib/unicase/u16-casecoll.c: New file.
4074         * modules/unicase/u16-casecoll: New file.
4075
4076         New module 'unicase/u8-casecoll'.
4077         * lib/unicase/u8-casecoll.c: New file.
4078         * lib/unicase/u-casecoll.h: New file.
4079         * modules/unicase/u8-casecoll: New file.
4080
4081         New module 'unicase/u32-casexfrm'.
4082         * lib/unicase/u32-casexfrm.c: New file.
4083         * modules/unicase/u32-casexfrm: New file.
4084
4085         New module 'unicase/u16-casexfrm'.
4086         * lib/unicase/u16-casexfrm.c: New file.
4087         * modules/unicase/u16-casexfrm: New file.
4088
4089         New module 'unicase/u8-casexfrm'.
4090         * lib/unicase/u8-casexfrm.c: New file.
4091         * lib/unicase/u-casexfrm.h: New file.
4092         * modules/unicase/u8-casexfrm: New file.
4093
4094         Tests for module 'unicase/u32-casecmp'.
4095         * modules/unicase/u32-casecmp-tests: New file.
4096         * tests/unicase/test-u32-casecmp.c: New file.
4097
4098         Tests for module 'unicase/u16-casecmp'.
4099         * modules/unicase/u16-casecmp-tests: New file.
4100         * tests/unicase/test-u16-casecmp.c: New file.
4101
4102         Tests for module 'unicase/u8-casecmp'.
4103         * modules/unicase/u8-casecmp-tests: New file.
4104         * tests/unicase/test-u8-casecmp.c: New file.
4105         * tests/unicase/test-casecmp.h: New file.
4106
4107         New module 'unicase/u32-casecmp'.
4108         * lib/unicase/u32-casecmp.c: New file.
4109         * modules/unicase/u32-casecmp: New file.
4110
4111         New module 'unicase/u16-casecmp'.
4112         * lib/unicase/u16-casecmp.c: New file.
4113         * modules/unicase/u16-casecmp: New file.
4114
4115         New module 'unicase/u8-casecmp'.
4116         * lib/unicase/u8-casecmp.c: New file.
4117         * lib/unicase/u-casecmp.h: New file.
4118         * modules/unicase/u8-casecmp: New file.
4119
4120         Tests for module 'unicase/u32-casefold'.
4121         * modules/unicase/u32-casefold-tests: New file.
4122         * tests/unicase/test-u32-casefold.c: New file.
4123
4124         Tests for module 'unicase/u16-casefold'.
4125         * modules/unicase/u16-casefold-tests: New file.
4126         * tests/unicase/test-u16-casefold.c: New file.
4127
4128         Tests for module 'unicase/u8-casefold'.
4129         * modules/unicase/u8-casefold-tests: New file.
4130         * tests/unicase/test-u8-casefold.c: New file.
4131
4132         New module 'unicase/u32-casefold'.
4133         * lib/unicase/u32-casefold.c: New file.
4134         * modules/unicase/u32-casefold: New file.
4135
4136         New module 'unicase/u16-casefold'.
4137         * lib/unicase/u16-casefold.c: New file.
4138         * modules/unicase/u16-casefold: New file.
4139
4140         New module 'unicase/u8-casefold'.
4141         * lib/unicase/u8-casefold.c: New file.
4142         * lib/unicase/u-casefold.h: New file.
4143         * modules/unicase/u8-casefold: New file.
4144
4145         New module 'unicase/tocasefold'.
4146         * lib/unicase/casefold.h: New file.
4147         * lib/unicase/tocasefold.c: New file.
4148         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
4149         * modules/unicase/tocasefold: New file.
4150
4151         Tests for module 'unicase/u32-totitle'.
4152         * modules/unicase/u32-totitle-tests: New file.
4153         * tests/unicase/test-u32-totitle.c: New file.
4154
4155         Tests for module 'unicase/u16-totitle'.
4156         * modules/unicase/u16-totitle-tests: New file.
4157         * tests/unicase/test-u16-totitle.c: New file.
4158
4159         Tests for module 'unicase/u8-totitle'.
4160         * modules/unicase/u8-totitle-tests: New file.
4161         * tests/unicase/test-u8-totitle.c: New file.
4162
4163         New module 'unicase/u32-totitle'.
4164         * lib/unicase/u32-totitle.c: New file.
4165         * modules/unicase/u32-totitle: New file.
4166
4167         New module 'unicase/u16-totitle'.
4168         * lib/unicase/u16-totitle.c: New file.
4169         * modules/unicase/u16-totitle: New file.
4170
4171         New module 'unicase/u8-totitle'.
4172         * lib/unicase/u8-totitle.c: New file.
4173         * lib/unicase/u-totitle.h: New file.
4174         * modules/unicase/u8-totitle: New file.
4175
4176         Tests for module 'unicase/u32-tolower'.
4177         * modules/unicase/u32-tolower-tests: New file.
4178         * tests/unicase/test-u32-tolower.c: New file.
4179
4180         Tests for module 'unicase/u16-tolower'.
4181         * modules/unicase/u16-tolower-tests: New file.
4182         * tests/unicase/test-u16-tolower.c: New file.
4183
4184         Tests for module 'unicase/u8-tolower'.
4185         * modules/unicase/u8-tolower-tests: New file.
4186         * tests/unicase/test-u8-tolower.c: New file.
4187
4188         New module 'unicase/u32-tolower'.
4189         * lib/unicase/u32-tolower.c: New file.
4190         * modules/unicase/u32-tolower: New file.
4191
4192         New module 'unicase/u16-tolower'.
4193         * lib/unicase/u16-tolower.c: New file.
4194         * modules/unicase/u16-tolower: New file.
4195
4196         New module 'unicase/u8-tolower'.
4197         * lib/unicase/u8-tolower.c: New file.
4198         * modules/unicase/u8-tolower: New file.
4199
4200         Tests for module 'unicase/u32-toupper'.
4201         * modules/unicase/u32-toupper-tests: New file.
4202         * tests/unicase/test-u32-toupper.c: New file.
4203
4204         Tests for module 'unicase/u16-toupper'.
4205         * modules/unicase/u16-toupper-tests: New file.
4206         * tests/unicase/test-u16-toupper.c: New file.
4207
4208         Tests for module 'unicase/u8-toupper'.
4209         * modules/unicase/u8-toupper-tests: New file.
4210         * tests/unicase/test-u8-toupper.c: New file.
4211
4212         New module 'unicase/u32-toupper'.
4213         * lib/unicase/u32-toupper.c: New file.
4214         * modules/unicase/u32-toupper: New file.
4215
4216         New module 'unicase/u16-toupper'.
4217         * lib/unicase/u16-toupper.c: New file.
4218         * modules/unicase/u16-toupper: New file.
4219
4220         New module 'unicase/u8-toupper'.
4221         * lib/unicase/u8-toupper.c: New file.
4222         * modules/unicase/u8-toupper: New file.
4223
4224         New module 'unicase/u32-casemap'.
4225         * lib/unicase/u32-casemap.c: New file.
4226         * modules/unicase/u32-casemap: New file.
4227
4228         New module 'unicase/u16-casemap'.
4229         * lib/unicase/u16-casemap.c: New file.
4230         * modules/unicase/u16-casemap: New file.
4231
4232         New module 'unicase/u8-casemap'.
4233         * lib/unicase/unicasemap.h: New file.
4234         * lib/unicase/u8-casemap.c: New file.
4235         * lib/unicase/u-casemap.h: New file.
4236         * modules/unicase/u8-casemap: New file.
4237
4238         New module 'unicase/special-casing'.
4239         * lib/unicase/special-casing.h: New file.
4240         * lib/unicase/special-casing.c: New file.
4241         * lib/unicase/special-casing-table.gperf: New file, generated by
4242         gen-uni-tables.c.
4243         * modules/unicase/special-casing: New file.
4244
4245         Tests for module 'unicase/locale-language'.
4246         * modules/unicase/locale-language-tests: New file.
4247         * tests/unicase/test-locale-language.sh: New file.
4248         * tests/unicase/test-locale-language.c: New file.
4249
4250         New module 'unicase/locale-language'.
4251         * lib/unicase/locale-language.c: New file.
4252         * lib/unicase/locale-languages.gperf: New file.
4253         * modules/unicase/locale-language: New file.
4254
4255         Generate more tables for case conversion and case folding.
4256         * lib/gen-uni-tables.c (SCC_*): New enum items.
4257         (struct special_casing_rule): New type.
4258         (casing_rules, num_casing_rules, allocated_casing_rules): New
4259         variables.
4260         (add_casing_rule, fill_casing_rules): New functions.
4261         (struct casefold_rule): New type.
4262         (casefolding_rules, num_casefolding_rules,
4263         allocated_casefolding_rules): New variables.
4264         (fill_casefolding_rules): New function.
4265         (unicode_casefold): New variable.
4266         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
4267         sort_casing_rules, output_casing_rules): New functions.
4268         (main): Accept to more arguments: SpecialCasing.txt and
4269         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
4270         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
4271         Output mapping for casefolding.
4272
4273         * lib/unicase.h: Include stdbool.h, uninorm.h.
4274         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
4275         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
4276         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
4277         arguments.
4278         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
4279         resultp arguments.
4280         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
4281         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
4282         resultp arguments.
4283         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
4284         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
4285         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
4286         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
4287         declarations.
4288         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
4289
4290 2009-03-08  Bruno Haible  <bruno@clisp.org>
4291
4292         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4293         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
4294         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
4295         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4296
4297 2009-03-07  Bruno Haible  <bruno@clisp.org>
4298
4299         Adjust u*_normcmp, u*_normcoll API.
4300         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4301         u16_normcoll, u32_normcoll): Change failure conventions.
4302         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
4303         errno and return -1.
4304         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4305
4306 2009-03-07  Bruno Haible  <bruno@clisp.org>
4307
4308         Tests for module 'uninorm/u32-normcoll'.
4309         * modules/uninorm/u32-normcoll-tests: New file.
4310         * tests/uninorm/test-u32-normcoll.c: New file.
4311
4312         Tests for module 'uninorm/u16-normcoll'.
4313         * modules/uninorm/u16-normcoll-tests: New file.
4314         * tests/uninorm/test-u16-normcoll.c: New file.
4315
4316         Tests for module 'uninorm/u8-normcoll'.
4317         * modules/uninorm/u8-normcoll-tests: New file.
4318         * tests/uninorm/test-u8-normcoll.c: New file.
4319
4320 2009-03-07  Bruno Haible  <bruno@clisp.org>
4321
4322         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
4323         tests/uninorm/test-u32-normcmp.c.
4324         * tests/uninorm/test-u32-normcmp.c: Include it.
4325         (test_nonascii): New function, extracted from main. Add some more
4326         tests.
4327         (main): Invoke test_ascii and test_nonascii.
4328         * modules/uninorm/u32-normcmp-tests (Files): Add
4329         tests/uninorm/test-u32-normcmp.h.
4330         (Depends-on): Remove uninorm/u32-normcmp.
4331
4332         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
4333         tests/uninorm/test-u16-normcmp.c.
4334         * tests/uninorm/test-u16-normcmp.c: Include it.
4335         (test_nonascii): New function, extracted from main. Add some more
4336         tests.
4337         (main): Invoke test_ascii and test_nonascii.
4338         * modules/uninorm/u16-normcmp-tests (Files): Add
4339         tests/uninorm/test-u16-normcmp.h.
4340         (Depends-on): Remove uninorm/u16-normcmp.
4341
4342         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
4343         tests/uninorm/test-u8-normcmp.c.
4344         * tests/uninorm/test-u8-normcmp.c: Include it.
4345         (test_nonascii): New function, extracted from main. Add some more
4346         tests.
4347         (main): Invoke test_ascii and test_nonascii.
4348         * modules/uninorm/u8-normcmp-tests (Files): Add
4349         tests/uninorm/test-u8-normcmp.h.
4350         (Depends-on): Remove uninorm/u8-normcmp.
4351
4352 2009-03-07  Bruno Haible  <bruno@clisp.org>
4353
4354         New module 'uninorm/u32-normcoll'.
4355         * lib/uninorm/u32-normcoll.c: New file.
4356         * modules/uninorm/u32-normcoll: New file.
4357
4358         New module 'uninorm/u16-normcoll'.
4359         * lib/uninorm/u16-normcoll.c: New file.
4360         * modules/uninorm/u16-normcoll: New file.
4361
4362         New module 'uninorm/u8-normcoll'.
4363         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
4364         declarations.
4365         * lib/uninorm/u8-normcoll.c: New file.
4366         * lib/uninorm/u-normcoll.h: New file.
4367         * modules/uninorm/u8-normcoll: New file.
4368
4369         New module 'uninorm/u32-normxfrm'.
4370         * lib/uninorm/u32-normxfrm.c: New file.
4371         * modules/uninorm/u32-normxfrm: New file.
4372
4373         New module 'uninorm/u16-normxfrm'.
4374         * lib/uninorm/u16-normxfrm.c: New file.
4375         * modules/uninorm/u16-normxfrm: New file.
4376
4377         New module 'uninorm/u8-normxfrm'.
4378         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
4379         declarations.
4380         * lib/uninorm/u8-normxfrm.c: New file.
4381         * lib/uninorm/u-normxfrm.h: New file.
4382         * modules/uninorm/u8-normxfrm: New file.
4383
4384 2009-03-07  Bruno Haible  <bruno@clisp.org>
4385
4386         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
4387         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
4388         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
4389
4390 2009-03-07  Bruno Haible  <bruno@clisp.org>
4391
4392         New module 'memxfrm'.
4393         * lib/memxfrm.h: New file.
4394         * lib/memxfrm.c: New file.
4395         * modules/memxfrm: New file.
4396
4397 2009-03-07  Bruno Haible  <bruno@clisp.org>
4398
4399         New module 'memcmp2'.
4400         * lib/memcmp2.h: New file.
4401         * lib/memcmp2.c: New file.
4402         * modules/memcmp2: New file.
4403
4404 2009-03-07  Bruno Haible  <bruno@clisp.org>
4405
4406         Tests for module 'uninorm/decomposing-form'.
4407         * modules/uninorm/decomposing-form-tests: New file.
4408         * tests/uninorm/test-decomposing-form.c: New file.
4409
4410         New module 'uninorm/decomposing-form'.
4411         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
4412         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
4413         Add 'decomposing_variant' field.
4414         * lib/uninorm/decomposing-form.c: New file.
4415         * lib/uninorm/nfc.c (uninorm_nfc): Update.
4416         * lib/uninorm/nfd.c (uninorm_nfd): Update.
4417         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
4418         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
4419         * modules/uninorm/decomposing-form: New file.
4420         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
4421         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
4422
4423 2009-03-07  Bruno Haible  <bruno@clisp.org>
4424
4425         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
4426         strings.
4427
4428 2009-03-06  Bruno Haible  <bruno@clisp.org>
4429
4430         Tests for module 'uninorm/u32-normcmp'.
4431         * tests/uninorm/test-u32-normcmp.c: New file.
4432         * modules/uninorm/u32-normcmp-tests: New file.
4433
4434         Tests for module 'uninorm/u16-normcmp'.
4435         * tests/uninorm/test-u16-normcmp.c: New file.
4436         * modules/uninorm/u16-normcmp-tests: New file.
4437
4438         Tests for module 'uninorm/u8-normcmp'.
4439         * tests/uninorm/test-u8-normcmp.c: New file.
4440         * modules/uninorm/u8-normcmp-tests: New file.
4441
4442         New module 'uninorm/u32-normcmp'.
4443         * lib/uninorm/u32-normcmp.c: New file.
4444         * modules/uninorm/u32-normcmp: New file.
4445
4446         New module 'uninorm/u16-normcmp'.
4447         * lib/uninorm/u16-normcmp.c: New file.
4448         * modules/uninorm/u16-normcmp: New file.
4449
4450         New module 'uninorm/u8-normcmp'.
4451         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
4452         declarations.
4453         * lib/uninorm/u8-normcmp.c: New file.
4454         * lib/uninorm/u-normcmp.h: New file.
4455         * modules/uninorm/u8-normcmp: New file.
4456
4457 2009-03-06  Bruno Haible  <bruno@clisp.org>
4458
4459         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
4460         Reported by Eric Blake.
4461
4462 2009-03-06  Eric Blake  <ebb9@byu.net>
4463             Bruno Haible  <bruno@clisp.org>
4464
4465         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
4466         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
4467         condition.
4468         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
4469         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
4470         condition.
4471         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
4472
4473 2009-03-06  Eric Blake  <ebb9@byu.net>
4474
4475         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
4476         to avoid compiler warnings.
4477         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
4478
4479 2009-03-05  Bruno Haible  <bruno@clisp.org>
4480
4481         * tests/test-ftell.c (main): Disable test beyond end of file on
4482         FreeMiNT.
4483         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4484
4485 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
4486
4487         * lib/filevercmp.c: Move hidden files up in ordering.
4488         * tests/test-filevercmp.c: Add tests for hidden files.
4489
4490 2009-03-04  Bruno Haible  <bruno@clisp.org>
4491
4492         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
4493         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
4494         AM_CFLAGS.
4495         Reported by Simon Josefsson.
4496
4497 2009-03-03  Bruno Haible  <bruno@clisp.org>
4498
4499         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
4500         Reported by Simon Josefsson.
4501
4502         * doc/ld-version-script.texi: Update node reference.
4503
4504 2009-03-03  Bruno Haible  <bruno@clisp.org>
4505
4506         * modules/visibility (License): Change to 'unlimited'.
4507         Suggested by Simon Josefsson.
4508
4509 2009-03-03  Jim Meyering  <meyering@redhat.com>
4510
4511         unlinkdir: cannot_unlink_dir may modify process state
4512         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
4513         it's neither thread-safe nor appropriate for use in a library.
4514
4515 2009-03-03  Eric Blake  <ebb9@byu.net>
4516
4517         test-closein: silence test under Darwin
4518         * tests/test-closein.sh: Ignore stderr from cat, since we don't
4519         care if it dies from EPIPE or EBADF.
4520
4521 2009-03-03  Bruno Haible  <bruno@clisp.org>
4522
4523         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
4524         earlier.
4525         * doc/visibility.texi: Fix @node and @section.
4526
4527 2009-03-03  Simon Josefsson  <simon@josefsson.org>
4528
4529         * doc/gnulib.texi: Link to sections for ld version script and
4530         visibility.
4531         * doc/visibility.texi: Add @node and @section.
4532         * modules/ld-version-script: New module.
4533         * m4/ld-version-script.m4: New file.
4534         * doc/ld-version-script.texi: New file.
4535
4536 2009-03-02  David Lutterkort  <lutter@redhat.com>
4537
4538         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
4539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4540
4541 2009-03-02  Bruno Haible  <bruno@clisp.org>
4542
4543         * doc/visibility.texi: Mention libtool's -export-symbols option.
4544
4545 2009-03-02  Jim Meyering  <meyering@redhat.com>
4546
4547         announce-gen: new option: --no-print-checksums
4548         * build-aux/announce-gen (usage): Describe it.
4549         (print_checksums): Print a newline here, not in the [*] footnote.
4550         (main): Honor it.
4551
4552 2009-03-01  Bruno Haible  <bruno@clisp.org>
4553
4554         Use socklen_t in the native Windows replacements prototypes.
4555         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
4556         instead of 'int'.
4557         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4558         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4559         * modules/getsockopt (Depends-on): Add socklen.
4560         * modules/setsockopt (Depends-on): Add socklen.
4561
4562 2009-03-01  Bruno Haible  <bruno@clisp.org>
4563
4564         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
4565         least 4.2.
4566
4567 2009-03-01  Eric Blake  <ebb9@byu.net>
4568             Bruno Haible  <bruno@clisp.org>
4569
4570         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
4571         error messages.
4572         * lib/wait-process.c (wait_subprocess): Omit error message about
4573         deadly signal sent to the child of termsigp != NULL.
4574
4575 2009-03-01  Eric Blake  <ebb9@byu.net>
4576
4577         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
4578
4579 2009-03-01  Bruno Haible  <bruno@clisp.org>
4580
4581         Avoid a gcc warning.
4582         * tests/test-sched.c (b): Make global.
4583         Reported by Eric Blake.
4584
4585 2009-01-19  Martin Lambers  <marlam@marlam.de>
4586
4587         Provide POSIX semantics for socket timeout options on W32.
4588         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
4589         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
4590         * modules/setsockopt: Depend on sys_time module for struct timeval.
4591         * modules/getsockopt: Depend on sys_time module for struct timeval.
4592
4593 2009-03-01  Simon Josefsson  <simon@josefsson.org>
4594
4595         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
4596         __USE_GNU, for consistency with netdb.in.h.
4597         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4598
4599 2009-03-01  Bruno Haible  <bruno@clisp.org>
4600
4601         More support for FreeMiNT.
4602         * lib/fseeko.c (rpl_fseeko): Complete last commit.
4603         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4604
4605 2009-03-01  Bruno Haible  <bruno@clisp.org>
4606
4607         More support for FreeMiNT.
4608         * lib/fpurge.c (fpurge): Correct last commit.
4609         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4610
4611 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4612
4613         Fix unportable awk script in vc-list-files.
4614         * build-aux/vc-list-files: In the replacement awk script, use
4615         substr with a second argument of 1, not zero.
4616         Report by Simon Josefsson.
4617
4618 2009-02-28  Bruno Haible  <bruno@clisp.org>
4619
4620         More support for FreeMiNT.
4621         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
4622         to FreeMiNT today.
4623         * lib/fwriting.c (fwriting): Likewise.
4624         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
4625
4626 2009-02-28  Bruno Haible  <bruno@clisp.org>
4627
4628         * tests/test-freadseek.c (main): Disable test beyond end of file on
4629         FreeMiNT.
4630         * tests/test-ftello.c (main): Likewise.
4631         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4632
4633 2009-02-28  Bruno Haible  <bruno@clisp.org>
4634
4635         Add tentative support for FreeMiNT.
4636         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
4637         * lib/fpurge.c (fpurge): Likewise.
4638         * lib/freadable.c (freadable): Likewise.
4639         * lib/freading.c (freading): Likewise.
4640         * lib/freadptr.c (freadptr): Likewise.
4641         * lib/freadseek.c (freadptrinc): Likewise.
4642         * lib/fseeko.c (rpl_fseeko): Likewise.
4643         * lib/fseterr.c (fseterr): Likewise.
4644         * lib/fwritable.c (fwritable): Likewise.
4645         * lib/fwriting.c (fwriting): Likewise.
4646         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
4647         Hourihane.
4648         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4649
4650 2009-02-28  Bruno Haible  <bruno@clisp.org>
4651
4652         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
4653         SIGCHLD.
4654         Reported by Jim Meyering.
4655
4656 2009-02-28  Bruno Haible  <bruno@clisp.org>
4657
4658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
4659         Mention the results of these tests on various platforms.
4660         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
4661         order.
4662         * doc/posix-functions/printf.texi: Likewise.
4663         * doc/posix-functions/snprintf.texi: Likewise.
4664         * doc/posix-functions/sprintf.texi: Likewise.
4665         * doc/posix-functions/vfprintf.texi: Likewise.
4666         * doc/posix-functions/vprintf.texi: Likewise.
4667         * doc/posix-functions/vsnprintf.texi: Likewise.
4668         * doc/posix-functions/vsprintf.texi: Likewise.
4669         * doc/glibc-functions/obstack_printf.texi: Likewise.
4670         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4671
4672 2009-02-28  Bruno Haible  <bruno@clisp.org>
4673
4674         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
4675         Reported by Loïc Minier <lool@dooz.org>.
4676
4677 2009-02-27  Bruno Haible  <bruno@clisp.org>
4678
4679         * gnulib-tool (func_import): Make the sed expression used to create the
4680         sed script for updating the .gitignore file POSIX compliant.
4681         Reported by Eric Blake.
4682
4683 2009-02-27  Bruno Haible  <bruno@clisp.org>
4684
4685         * gnulib-tool (sed): Don't alias as "sed --posix".
4686         Reported by Eric Blake.
4687
4688 2009-02-27  Bruno Haible  <bruno@clisp.org>
4689
4690         Avoid test link errors.
4691         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
4692         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
4693         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
4694         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
4695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4696
4697 2009-02-27  Bruno Haible  <bruno@clisp.org>
4698
4699         Avoid spurious "(cached)" in configure output.
4700         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
4701         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
4702         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4703         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4704         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4705         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4706         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4707         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4708         Reported by Eric Blake.
4709
4710 2009-02-27  Eric Blake  <ebb9@byu.net>
4711
4712         printf: fix regression in previous patch
4713         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
4714
4715 2009-02-27  Bruno Haible  <bruno@clisp.org>
4716
4717         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
4718         value.
4719         * lib/stdint.in.h: Likewise.
4720         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
4721
4722 2009-02-27  Eric Blake  <ebb9@byu.net>
4723
4724         doc: mention more functions added in cygwin 1.7.0
4725         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
4726         addition.
4727         * doc/posix-functions/open_wmemstream.texi: Likewise.
4728         * doc/posix-functions/wcsnlen.texi: Likewise.
4729         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4730         * doc/posix-functions/wcstod.texi: Likewise.
4731         * doc/posix-functions/wcstof.texi: Likewise.
4732         * doc/posix-functions/wcstoimax.texi: Likewise.
4733         * doc/posix-functions/wcstok.texi: Likewise.
4734         * doc/posix-functions/wcstoumax.texi: Likewise.
4735
4736         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
4737         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
4738         * doc/posix-functions/fprintf.texi: Update.
4739         * doc/posix-functions/printf.texi: Update.
4740         * doc/posix-functions/snprintf.texi: Update.
4741         * doc/posix-functions/sprintf.texi: Update.
4742         * doc/posix-functions/vfprintf.texi: Update.
4743         * doc/posix-functions/vprintf.texi: Update.
4744         * doc/posix-functions/vsnprintf.texi: Update.
4745         * doc/posix-functions/vsprintf.texi: Update.
4746         * doc/glibc-functions/obstack_printf.texi: Update.
4747         * doc/glibc-functions/obstack_vprintf.texi: Update.
4748
4749 2009-02-26  Eric Blake  <ebb9@byu.net>
4750
4751         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
4752         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
4753         compilation bug by using runtime conversion.
4754         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4755         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
4756         * modules/ceill-tests (Files): Use nan.h.
4757         * modules/floorl-tests (Files): Likewise.
4758         * modules/frexpl-tests (Files): Likewise.
4759         * modules/isnanl-tests (Files): Likewise.
4760         * modules/ldexpl-tests (Files): Likewise.
4761         * modules/roundl-tests (Files): Likewise.
4762         * modules/truncl-tests (Files): Likewise.
4763         * tests/test-ceill.c (main): Use a working NaN.
4764         * tests/test-floorl.c (main): Likewise.
4765         * tests/test-frexpl.c (main): Likewise.
4766         * tests/test-isnan.c (test_long_double): Likewise.
4767         * tests/test-isnanl.h (main): Likewise.
4768         * tests/test-ldexpl.h (main): Likewise.
4769         * tests/test-roundl.h (main): Likewise.
4770         * tests/test-truncl.h (main): Likewise.
4771         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
4772
4773 2009-02-26  Eric Blake  <ebb9@byu.net>
4774             Bruno Haible  <bruno@clisp.org>
4775
4776         Work around a *printf bug with %ls on Solaris.
4777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
4778         precision is specified, sprintf stops converting the wide string
4779         argument when the number of bytes that have been produced by this
4780         conversion equals or exceeds the precision.
4781         * doc/posix-functions/fprintf.texi: Update.
4782         * doc/posix-functions/printf.texi: Update.
4783         * doc/posix-functions/snprintf.texi: Update.
4784         * doc/posix-functions/sprintf.texi: Update.
4785         * doc/posix-functions/vfprintf.texi: Update.
4786         * doc/posix-functions/vprintf.texi: Update.
4787         * doc/posix-functions/vsnprintf.texi: Update.
4788         * doc/posix-functions/vsprintf.texi: Update.
4789         * doc/glibc-functions/obstack_printf.texi: Update.
4790         * doc/glibc-functions/obstack_vprintf.texi: Update.
4791
4792 2009-02-26  Eric Blake  <ebb9@byu.net>
4793
4794         stdlib: favor compiler check of random.h
4795         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
4796         to avoid an ObjC random.h installed by Swarm.
4797
4798 2009-02-26  Bruno Haible  <bruno@clisp.org>
4799
4800         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
4801         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
4802         Reported by Gary V. Vaughan <gary@gnu.org>.
4803
4804 2009-02-26  Bruno Haible  <bruno@clisp.org>
4805
4806         Fix *printf behaviour regarding the %ls directive.
4807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
4808         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
4809         NEED_PRINTF_DIRECTIVE_LS.
4810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
4811         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4812         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4813         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
4814         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
4815         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
4816         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4819         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4820         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4821         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
4822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4825         * doc/posix-functions/fprintf.texi: Update.
4826         * doc/posix-functions/printf.texi: Update.
4827         * doc/posix-functions/snprintf.texi: Update.
4828         * doc/posix-functions/sprintf.texi: Update.
4829         * doc/posix-functions/vfprintf.texi: Update.
4830         * doc/posix-functions/vprintf.texi: Update.
4831         * doc/posix-functions/vsnprintf.texi: Update.
4832         * doc/posix-functions/vsprintf.texi: Update.
4833         * doc/glibc-functions/obstack_printf.texi: Update.
4834         * doc/glibc-functions/obstack_vprintf.texi: Update.
4835         Reported by Eric Blake.
4836
4837 2009-02-25  Bruno Haible  <bruno@clisp.org>
4838
4839         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
4840         with known value.
4841         Reported by Gary V. Vaughan <gary@gnu.org>.
4842
4843 2009-02-25  Bruno Haible  <bruno@clisp.org>
4844
4845         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
4846         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
4847         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
4848         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
4849         Reported by Gary V. Vaughan <gary@gnu.org>.
4850
4851 2009-02-25  Bruno Haible  <bruno@clisp.org>
4852
4853         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
4854         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
4855         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
4856         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
4857         Reported by Gary V. Vaughan <gary@gnu.org>.
4858
4859 2009-02-25  Eric Blake  <ebb9@byu.net>
4860
4861         tests: skip fseek/ftell tests if ungetc is broken
4862         * m4/ungetc.m4: New file.
4863         * modules/fseek-tests: Split test, so ungetc dependency is
4864         separate from rest of test.
4865         * modules/fseeko-tests: Likewise.
4866         * modules/ftell-tests: Likewise.
4867         * modules/ftello-tests: Likewise.
4868         * tests/test-fseek.c (main): Isolate ungetc dependency.
4869         * tests/test-fseeko.c (main): Likewise.
4870         * tests/test-ftell.c (main): Likewise.
4871         * tests/test-ftello.c (main): Likewise.
4872         * tests/test-fseek2.sh: New file.
4873         * tests/test-fseeko2.sh: Likewise.
4874         * tests/test-ftell2.sh: Likewise.
4875         * tests/test-ftello2.sh: Likewise.
4876
4877 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
4878
4879         test-getaddrinfo: fix usage of skip return code 77
4880         * tests/test-gettaddrinfo.c: Return skip code 77 only
4881         for first occurance of skip (4x77 is not 77)
4882
4883 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
4884
4885         strtod: avoid C99 decl-after-statement
4886         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
4887
4888 2009-02-24  Eric Blake  <ebb9@byu.net>
4889
4890         strtod: detect HP-UX 11.31 bug
4891         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
4892         Reported by Gary V. Vaughan.
4893
4894 2009-02-23  Bruno Haible  <bruno@clisp.org>
4895
4896         Fix invalid read past end of memory block.
4897         * lib/vasnprintf.c (DCHAR_SET): Define.
4898         (local_wcslen): Define only when needed.
4899         (local_strnlen, local_wcsnlen): New functions.
4900         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
4901         directives that involve a conversion ourselves.
4902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
4903         wcsnlen, mbrtowc, wcrtomb.
4904         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
4905         * tests/test-vasprintf-posix.c (test_function): Likewise.
4906         * tests/test-snprintf-posix.h (test_function): Likewise.
4907         * tests/test-sprintf-posix.h (test_function): Likewise.
4908         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4909
4910 2009-02-22  Bruno Haible  <bruno@clisp.org>
4911
4912         Implement new clarified decomposition of Hangul syllables.
4913         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
4914         of type LTV, return only a pairwise decomposition.
4915         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
4916         Likewise.
4917         * tests/uninorm/test-decomposition.c (main): Updated expected result.
4918         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
4919         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
4920
4921 2009-02-22  Bruno Haible  <bruno@clisp.org>
4922
4923         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
4924         zero-length results and shrink excess allocated memory.
4925         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
4926         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
4927         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
4928         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
4929         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
4930         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
4931         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
4932         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
4933         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
4934         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
4935         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
4936         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
4937
4938 2009-02-21  Bruno Haible  <bruno@clisp.org>
4939
4940         * doc/gnulib.texi: Include safe-alloc.texi earlier.
4941         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
4942         spaces after a period. Put a space between a macro name and its
4943         argument list. Trivial rewordings.
4944         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
4945         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
4946         (main): Return 0 explicitly.
4947
4948 2009-02-21  Bruno Haible  <bruno@clisp.org>
4949
4950         Tests for module 'uninorm/filter'.
4951         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
4952         * modules/uninorm/filter-tests: New file.
4953
4954         New module 'uninorm/filter'.
4955         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
4956         uninorm_filter_flush, uninorm_filter_free): New declarations.
4957         * lib/uninorm/uninorm-filter.c: New file.
4958         * modules/uninorm/filter: New file.
4959
4960 2009-02-21  Bruno Haible  <bruno@clisp.org>
4961
4962         Tests for module 'uninorm/nfkc'.
4963         * tests/uninorm/test-nfkc.c: New file.
4964         * tests/uninorm/test-u8-nfkc.c: New file.
4965         * tests/uninorm/test-u16-nfkc.c: New file.
4966         * tests/uninorm/test-u32-nfkc.c: New file.
4967         * tests/uninorm/test-u32-nfkc-big.sh: New file.
4968         * tests/uninorm/test-u32-nfkc-big.c: New file.
4969         * modules/uninorm/nfkc-tests: New file.
4970
4971         New module 'uninorm/nfkc'.
4972         * lib/uninorm/nfkc.c: New file.
4973         * modules/uninorm/nfkc: New file.
4974
4975         Tests for module 'uninorm/nfkd'.
4976         * tests/uninorm/test-nfkd.c: New file.
4977         * tests/uninorm/test-u8-nfkd.c: New file.
4978         * tests/uninorm/test-u16-nfkd.c: New file.
4979         * tests/uninorm/test-u32-nfkd.c: New file.
4980         * tests/uninorm/test-u32-nfkd-big.sh: New file.
4981         * tests/uninorm/test-u32-nfkd-big.c: New file.
4982         * modules/uninorm/nfkd-tests: New file.
4983
4984         New module 'uninorm/nfkd'.
4985         * lib/uninorm/nfkd.c: New file.
4986         * modules/uninorm/nfkd: New file.
4987
4988         Tests for module 'uninorm/nfc'.
4989         * tests/uninorm/test-nfc.c: New file.
4990         * tests/uninorm/test-u8-nfc.c: New file.
4991         * tests/uninorm/test-u16-nfc.c: New file.
4992         * tests/uninorm/test-u32-nfc.c: New file.
4993         * tests/uninorm/test-u32-nfc-big.sh: New file.
4994         * tests/uninorm/test-u32-nfc-big.c: New file.
4995         * modules/uninorm/nfc-tests: New file.
4996
4997         New module 'uninorm/nfc'.
4998         * lib/uninorm/nfc.c: New file.
4999         * modules/uninorm/nfc: New file.
5000
5001         Tests for module 'uninorm/nfd'.
5002         * tests/uninorm/test-nfd.c: New file.
5003         * tests/uninorm/test-u8-nfd.c: New file.
5004         * tests/uninorm/test-u16-nfd.c: New file.
5005         * tests/uninorm/test-u32-nfd.c: New file.
5006         * tests/uninorm/test-u32-nfd-big.sh: New file.
5007         * tests/uninorm/test-u32-nfd-big.c: New file.
5008         * tests/uninorm/test-u32-normalize-big.h: New file.
5009         * tests/uninorm/test-u32-normalize-big.c: New file.
5010         * tests/uninorm/NormalizationTest.txt: New file, created from
5011         Unicode 5.1.0 NormalizationTest.txt.
5012         * modules/uninorm/nfd-tests: New file.
5013
5014         New module 'uninorm/nfd'.
5015         * lib/uninorm/nfd.c: New file.
5016         * modules/uninorm/nfd: New file.
5017
5018         New module 'uninorm/u32-normalize'.
5019         * lib/uninorm/u32-normalize.c: New file.
5020         * modules/uninorm/u32-normalize: New file.
5021
5022         New module 'uninorm/u16-normalize'.
5023         * lib/uninorm/u16-normalize.c: New file.
5024         * modules/uninorm/u16-normalize: New file.
5025
5026         New module 'uninorm/u8-normalize'.
5027         * lib/uninorm/u8-normalize.c: New file.
5028         * lib/uninorm/normalize-internal.h: New file.
5029         * lib/uninorm/u-normalize-internal.h: New file.
5030         * modules/uninorm/u8-normalize: New file.
5031
5032         New module 'uninorm/decompose-internal'.
5033         * lib/uninorm/decompose-internal.c: New file.
5034         * modules/uninorm/decompose-internal: New file.
5035
5036         Tests for module 'uninorm/composition'.
5037         * tests/uninorm/test-composition.c: New file.
5038         * modules/uninorm/composition-tests: New file.
5039
5040         New module 'uninorm/composition'.
5041         * lib/uninorm/composition.c: New file.
5042         * lib/uninorm/composition-table.gperf: New file, generated by
5043         gen-uni-tables.
5044         * modules/uninorm/composition: New file.
5045
5046         Tests for module 'uninorm/compat-decomposition'.
5047         * tests/uninorm/test-compat-decomposition.c: New file.
5048         * modules/uninorm/compat-decomposition-tests: New file.
5049
5050         New module 'uninorm/compat-decomposition'.
5051         * lib/uninorm/decompose-internal.h: New file.
5052         * lib/uninorm/compat-decomposition.c: New file.
5053         * modules/uninorm/compat-decomposition: New file.
5054
5055         Tests for module 'uninorm/canonical-decomposition'.
5056         * tests/uninorm/test-canonical-decomposition.c: New file.
5057         * modules/uninorm/canonical-decomposition-tests: New file.
5058
5059         New module 'uninorm/canonical-decomposition'.
5060         * lib/uninorm/canonical-decomposition.c: New file.
5061         * modules/uninorm/canonical-decomposition: New file.
5062
5063         Tests for module 'uninorm/decomposition'.
5064         * tests/uninorm/test-decomposition.c: New file.
5065         * modules/uninorm/decomposition-tests: New file.
5066
5067         New module 'uninorm/decomposition'.
5068         * lib/uninorm/decomposition.c: New file.
5069         * modules/uninorm/decomposition: New file.
5070
5071         New module 'uninorm/decomposition-table'.
5072         * lib/uninorm/decomposition-table.h: New file.
5073         * lib/uninorm/decomposition-table.c: New file.
5074         * lib/uninorm/decomposition-table1.h: New file, generated by
5075         gen-uni-tables.
5076         * lib/uninorm/decomposition-table2.h: New file, generated by
5077         gen-uni-tables.
5078         * modules/uninorm/decomposition-table: New file.
5079
5080         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
5081         (UC_DECOMP_*): New enumeration items.
5082         (get_decomposition): New function.
5083         (struct decomp_table): New type.
5084         (output_decomposition, output_decomposition_tables): New functions.
5085         (unicode_composition_exclusions): New variable.
5086         (fill_composition_exclusions, debug_output_composition_tables): New
5087         functions.
5088         (main): Accept one more argument. Invoke fill_composition_exclusions.
5089         Output decomposition and composition tables.
5090
5091         New module 'uninorm/base'.
5092         * lib/uninorm.h: New file.
5093         * lib/unictype.h: Update comment.
5094         * modules/uninorm/base: New file.
5095
5096 2009-02-21  David Lutterkort  <lutter@redhat.com>
5097
5098         Tests for module 'safe-alloc'.
5099         * tests/test-safe-alloc.c: New file.
5100         * modules/safe-alloc-tests: New file.
5101
5102         New module 'safe-alloc'.
5103         * lib/safe-alloc.h: New file.
5104         * lib/safe-alloc.c: New file.
5105         * m4/safe-alloc.m4: New file.
5106         * modules/safe-alloc: New file.
5107         * doc/safe-alloc.texi: New file.
5108         * doc/gnulib.texi: Include it.
5109         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5110         safe-alloc.
5111
5112 2009-02-18  Bruno Haible  <bruno@clisp.org>
5113
5114         Fix link error on non-glibc systems.
5115         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
5116         variable.
5117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5118
5119 2009-02-18  Jim Meyering  <meyering@redhat.com>
5120
5121         fts: avoid used-uninitialized error due to recent change
5122         * lib/fts.c (fts_read): Guard uses of the new member,
5123         parent->fts_n_dirs_remaining, since it's not relevant for
5124         the parent of a directory specified on the command-line.
5125
5126 2009-02-17  James Youngman  <jay@gnu.org>
5127             Bruno Haible  <bruno@clisp.org>
5128
5129         * m4/include_next.m4: Reformulate comment.
5130
5131 2009-02-16  Jim Meyering  <meyering@redhat.com>
5132
5133         fts: add #if guards so that the fts_lgpl module still builds
5134         * lib/fts.c: Guard just-added hash-table-using parts with
5135         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
5136         Reported by Simon Josefsson.
5137
5138 2009-02-15  Bruno Haible  <bruno@clisp.org>
5139
5140         * modules/array-mergesort-tests: New file.
5141         * tests/test-array-mergesort.c: New file.
5142
5143         New module 'array-mergesort'.
5144         * modules/array-mergesort: New file.
5145         * lib/array-mergesort.h: New file.
5146
5147 2009-02-15  Bruno Haible  <bruno@clisp.org>
5148
5149         Fix 2009-02-07 commit.
5150         * lib/gen-uni-tables.c (output_predicate, output_category,
5151         output_combclass, output_bidi_category, output_decimal_digit,
5152         output_digit, output_numeric, output_mirror, output_scripts,
5153         output_ident_category, output_simple_mapping): Fix format directives.
5154         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
5155
5156 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
5157
5158         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
5159         fixes are available from IBM.
5160
5161 2009-02-13  Jim Meyering  <meyering@redhat.com>
5162
5163         fts: arrange not to stat non-directories in more cases
5164         This makes GNU find (when it doesn't need to stat each file)
5165         *much* more efficient at traversing reiserfs file systems.
5166         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
5167         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
5168         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
5169         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
5170         (leaf_optimization_applies): New function.
5171         (LCO_hash, LCO_compare): New helper functions.
5172         (link_count_optimize_ok): New function.
5173         (fts_stat): Initialize new member (if dir).
5174         (fts_read): Decrement parent's fts_n_dirs_remaining count if
5175         we've just stat'ed a directory.  Skip the stat call when possible.
5176         ---
5177         Note this AFS-related exchange:
5178         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
5179         and note find's pioctl call in find/fstype.c.
5180         But that is necessary only if you want to enable the
5181         optimization for AFS, and for now, I don't.
5182
5183         fts: move a function definition "up" (no semantic change)
5184         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
5185         "up" to precede upcoming use of a related function.
5186
5187 2009-02-11  Jim Meyering  <meyering@redhat.com>
5188
5189         fts: correct internal computation of nlinks (optimization-related)
5190         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
5191         whether the current entry is a directory, so don't test it.
5192
5193 2009-02-10  Bruno Haible  <bruno@clisp.org>
5194
5195         Tests for module 'uniwbrk/ulc-wordbreaks'.
5196         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
5197         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
5198         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
5199
5200         Tests for module 'uniwbrk/u32-wordbreaks'.
5201         * modules/uniwbrk/u32-wordbreaks-tests: New file.
5202         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
5203
5204         Tests for module 'uniwbrk/u16-wordbreaks'.
5205         * modules/uniwbrk/u16-wordbreaks-tests: New file.
5206         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
5207
5208         Tests for module 'uniwbrk/u8-wordbreaks'.
5209         * modules/uniwbrk/u8-wordbreaks-tests: New file.
5210         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
5211
5212 2009-02-10  Bruno Haible  <bruno@clisp.org>
5213
5214         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
5215         property.
5216         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
5217         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
5218         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
5219
5220 2009-02-10  Simon Josefsson  <simon@josefsson.org>
5221
5222         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
5223         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
5224
5225 2009-02-10  Bruno Haible  <bruno@clisp.org>
5226
5227         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
5228         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
5229         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
5230         * lib/unilbrk/u8-possible-linebreaks.c: Update.
5231         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
5232         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
5233
5234 2009-02-09  Simon Josefsson  <simon@josefsson.org>
5235
5236         * lib/sockets.h (gl_fd_to_handle): New function.
5237
5238         * tests/test-sockets.c: Call gl_fd_to_handle.
5239
5240 2009-02-09  Bruno Haible  <bruno@clisp.org>
5241
5242         * doc/havelib.texi: Document the conventions on bi-arch systems.
5243
5244 2009-02-08  Bruno Haible  <bruno@clisp.org>
5245
5246         Document the AC_LIB_LINKFLAGS macro.
5247         * doc/havelib.texi: New file, mostly written on 2005-05-24.
5248         * doc/gnulib.texi: Include it.
5249
5250 2009-02-08  Bruno Haible  <bruno@clisp.org>
5251
5252         Fix wrong order of sections, compared to TOC.
5253         * doc/gnulib.texi: Include relocatable-maint.texi after the
5254         "Regular expressions" node, not before.
5255
5256 2009-02-08  Bruno Haible  <bruno@clisp.org>
5257
5258         Tests for module 'unicase/totitle'.
5259         * modules/unicase/totitle-tests: New file.
5260
5261         Tests for module 'unicase/tolower'.
5262         * modules/unicase/tolower-tests: New file.
5263
5264         Tests for module 'unicase/toupper'.
5265         * modules/unicase/toupper-tests: New file.
5266         * tests/unicase/test-mapping-part1.h: New file.
5267         * tests/unicase/test-mapping-part2.h: New file.
5268
5269         New module 'unicase/totitle'.
5270         * modules/unicase/totitle: New file.
5271         * lib/unicase/totitle.c: New file.
5272
5273         New module 'unicase/tolower'.
5274         * modules/unicase/tolower: New file.
5275         * lib/unicase/tolower.c: New file.
5276
5277         New module 'unicase/toupper'.
5278         * modules/unicase/toupper: New file.
5279         * lib/unicase/toupper.c: New file.
5280         * lib/unicase/simple-mapping.h: New file.
5281
5282         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
5283         (mapping_table): New structure.
5284         (output_simple_mapping): New function.
5285         (main): Invoke output_simple_mapping_test and output_simple_mapping.
5286         * modules/gen-uni-tables (Description): Update.
5287         * lib/unicase/toupper.h: New file, automatically generated by
5288         gen-uni-tables.
5289         * lib/unicase/tolower.h: New file, automatically generated by
5290         gen-uni-tables.
5291         * lib/unicase/totitle.h: New file, automatically generated by
5292         gen-uni-tables.
5293         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
5294         gen-uni-tables.
5295         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
5296         gen-uni-tables.
5297         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
5298         gen-uni-tables.
5299
5300         New module 'unicase/base'.
5301         * modules/unicase/base: New file.
5302         * lib/unicase.h: New file.
5303
5304 2009-02-08  Bruno Haible  <bruno@clisp.org>
5305
5306         New module 'uniwbrk/ulc-wordbreaks'.
5307         * modules/uniwbrk/ulc-wordbreaks: New file.
5308         * lib/uniwbrk/ulc-wordbreaks.c: New file.
5309
5310         New module 'uniwbrk/u32-wordbreaks'.
5311         * modules/uniwbrk/u32-wordbreaks: New file.
5312         * lib/uniwbrk/u32-wordbreaks.c: New file.
5313
5314         New module 'uniwbrk/u16-wordbreaks'.
5315         * modules/uniwbrk/u16-wordbreaks: New file.
5316         * lib/uniwbrk/u16-wordbreaks.c: New file.
5317
5318         New module 'uniwbrk/u8-wordbreaks'.
5319         * modules/uniwbrk/u8-wordbreaks: New file.
5320         * lib/uniwbrk/u8-wordbreaks.c: New file.
5321         * lib/uniwbrk/u-wordbreaks.h: New file.
5322
5323         New module 'uniwbrk/table'.
5324         * modules/uniwbrk/table: New file.
5325         * lib/uniwbrk/wbrktable.h: New file.
5326         * lib/uniwbrk/wbrktable.c: New file.
5327
5328         New module 'uniwbrk/wordbreak-property'.
5329         * modules/uniwbrk/wordbreak-property: New file.
5330         * lib/uniwbrk/wordbreak-property.c: New file.
5331
5332         * lib/gen-uni-tables.c (WBP_*): New enum items.
5333         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
5334         (unicode_org_wbp): New variable.
5335         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
5336         New functions.
5337         (wbp_table): New structure.
5338         (output_wbp, output_wbrk_tables): New functions.
5339         (main): Accept additional argument. Invoke fill_org_wbp,
5340         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
5341         output_wbrk_tables.
5342         * modules/gen-uni-tables (Description): Update.
5343         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
5344         gen-uni-tables.
5345
5346         New module 'uniwbrk/base'.
5347         * modules/uniwbrk/base: New file.
5348         * lib/uniwbrk.h: New file.
5349
5350 2009-02-08  Bruno Haible  <bruno@clisp.org>
5351
5352         Update to Unicode 5.1.0.
5353         * lib/gen-uni-tables.c (is_property_alphabetic): Include
5354         U+2185..U+2188.
5355         (is_property_default_ignorable_code_point): Don't include characters
5356         of category Cc or Cs and not-a-characters.
5357         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
5358         U+0D79, U+109E, U+109F, U+A60C.
5359         * lib/unictype/bidi_of.h: Regenerated.
5360         * lib/unictype/blocks.h: Regenerated.
5361         * lib/unictype/categ_C.h: Regenerated.
5362         * lib/unictype/categ_Cf.h: Regenerated.
5363         * lib/unictype/categ_Cn.h: Regenerated.
5364         * lib/unictype/categ_L.h: Regenerated.
5365         * lib/unictype/categ_Ll.h: Regenerated.
5366         * lib/unictype/categ_Lm.h: Regenerated.
5367         * lib/unictype/categ_Lo.h: Regenerated.
5368         * lib/unictype/categ_Lu.h: Regenerated.
5369         * lib/unictype/categ_M.h: Regenerated.
5370         * lib/unictype/categ_Mc.h: Regenerated.
5371         * lib/unictype/categ_Me.h: Regenerated.
5372         * lib/unictype/categ_Mn.h: Regenerated.
5373         * lib/unictype/categ_N.h: Regenerated.
5374         * lib/unictype/categ_Nd.h: Regenerated.
5375         * lib/unictype/categ_Nl.h: Regenerated.
5376         * lib/unictype/categ_No.h: Regenerated.
5377         * lib/unictype/categ_P.h: Regenerated.
5378         * lib/unictype/categ_Pd.h: Regenerated.
5379         * lib/unictype/categ_Pe.h: Regenerated.
5380         * lib/unictype/categ_Pf.h: Regenerated.
5381         * lib/unictype/categ_Pi.h: Regenerated.
5382         * lib/unictype/categ_Po.h: Regenerated.
5383         * lib/unictype/categ_Ps.h: Regenerated.
5384         * lib/unictype/categ_S.h: Regenerated.
5385         * lib/unictype/categ_Sk.h: Regenerated.
5386         * lib/unictype/categ_Sm.h: Regenerated.
5387         * lib/unictype/categ_So.h: Regenerated.
5388         * lib/unictype/categ_of.h: Regenerated.
5389         * lib/unictype/combining.h: Regenerated.
5390         * lib/unictype/ctype_alnum.h: Regenerated.
5391         * lib/unictype/ctype_alpha.h: Regenerated.
5392         * lib/unictype/ctype_graph.h: Regenerated.
5393         * lib/unictype/ctype_lower.h: Regenerated.
5394         * lib/unictype/ctype_print.h: Regenerated.
5395         * lib/unictype/ctype_punct.h: Regenerated.
5396         * lib/unictype/ctype_upper.h: Regenerated.
5397         * lib/unictype/decdigit.h: Regenerated.
5398         * lib/unictype/digit.h: Regenerated.
5399         * lib/unictype/mirror.h: Regenerated.
5400         * lib/unictype/numeric.h: Regenerated.
5401         * lib/unictype/pr_alphabetic.h: Regenerated.
5402         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
5403         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
5404         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
5405         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
5406         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
5407         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
5408         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
5409         * lib/unictype/pr_combining.h: Regenerated.
5410         * lib/unictype/pr_dash.h: Regenerated.
5411         * lib/unictype/pr_decimal_digit.h: Regenerated.
5412         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
5413         * lib/unictype/pr_deprecated.h: Regenerated.
5414         * lib/unictype/pr_diacritic.h: Regenerated.
5415         * lib/unictype/pr_extender.h: Regenerated.
5416         * lib/unictype/pr_format_control.h: Regenerated.
5417         * lib/unictype/pr_grapheme_base.h: Regenerated.
5418         * lib/unictype/pr_grapheme_extend.h: Regenerated.
5419         * lib/unictype/pr_grapheme_link.h: Regenerated.
5420         * lib/unictype/pr_id_continue.h: Regenerated.
5421         * lib/unictype/pr_id_start.h: Regenerated.
5422         * lib/unictype/pr_ideographic.h: Regenerated.
5423         * lib/unictype/pr_ignorable_control.h: Regenerated.
5424         * lib/unictype/pr_lowercase.h: Regenerated.
5425         * lib/unictype/pr_math.h: Regenerated.
5426         * lib/unictype/pr_numeric.h: Regenerated.
5427         * lib/unictype/pr_other_alphabetic.h: Regenerated.
5428         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
5429         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
5430         * lib/unictype/pr_other_id_continue.h: Regenerated.
5431         * lib/unictype/pr_other_lowercase.h: Regenerated.
5432         * lib/unictype/pr_other_math.h: Regenerated.
5433         * lib/unictype/pr_punctuation.h: Regenerated.
5434         * lib/unictype/pr_sentence_terminal.h: Regenerated.
5435         * lib/unictype/pr_soft_dotted.h: Regenerated.
5436         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
5437         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
5438         * lib/unictype/pr_unified_ideograph.h: Regenerated.
5439         * lib/unictype/pr_uppercase.h: Regenerated.
5440         * lib/unictype/pr_xid_continue.h: Regenerated.
5441         * lib/unictype/pr_xid_start.h: Regenerated.
5442         * lib/unictype/pr_zero_width.h: Regenerated.
5443         * lib/unictype/scripts.h: Regenerated.
5444         * lib/unictype/scripts_byname.gperf: Regenerated.
5445         * lib/unictype/sy_java_ident.h: Regenerated.
5446         * lib/unilbrk/lbrkprop1.h: Regenerated.
5447         * lib/unilbrk/lbrkprop2.h: Regenerated.
5448         * tests/unictype/test-categ_C.c: Regenerated.
5449         * tests/unictype/test-categ_Cf.c: Regenerated.
5450         * tests/unictype/test-categ_Cn.c: Regenerated.
5451         * tests/unictype/test-categ_L.c: Regenerated.
5452         * tests/unictype/test-categ_Ll.c: Regenerated.
5453         * tests/unictype/test-categ_Lm.c: Regenerated.
5454         * tests/unictype/test-categ_Lo.c: Regenerated.
5455         * tests/unictype/test-categ_Lu.c: Regenerated.
5456         * tests/unictype/test-categ_M.c: Regenerated.
5457         * tests/unictype/test-categ_Mc.c: Regenerated.
5458         * tests/unictype/test-categ_Me.c: Regenerated.
5459         * tests/unictype/test-categ_Mn.c: Regenerated.
5460         * tests/unictype/test-categ_N.c: Regenerated.
5461         * tests/unictype/test-categ_Nd.c: Regenerated.
5462         * tests/unictype/test-categ_Nl.c: Regenerated.
5463         * tests/unictype/test-categ_No.c: Regenerated.
5464         * tests/unictype/test-categ_P.c: Regenerated.
5465         * tests/unictype/test-categ_Pd.c: Regenerated.
5466         * tests/unictype/test-categ_Pe.c: Regenerated.
5467         * tests/unictype/test-categ_Pf.c: Regenerated.
5468         * tests/unictype/test-categ_Pi.c: Regenerated.
5469         * tests/unictype/test-categ_Po.c: Regenerated.
5470         * tests/unictype/test-categ_Ps.c: Regenerated.
5471         * tests/unictype/test-categ_S.c: Regenerated.
5472         * tests/unictype/test-categ_Sk.c: Regenerated.
5473         * tests/unictype/test-categ_Sm.c: Regenerated.
5474         * tests/unictype/test-categ_So.c: Regenerated.
5475         * tests/unictype/test-ctype_alnum.c: Regenerated.
5476         * tests/unictype/test-ctype_alpha.c: Regenerated.
5477         * tests/unictype/test-ctype_graph.c: Regenerated.
5478         * tests/unictype/test-ctype_lower.c: Regenerated.
5479         * tests/unictype/test-ctype_print.c: Regenerated.
5480         * tests/unictype/test-ctype_punct.c: Regenerated.
5481         * tests/unictype/test-ctype_upper.c: Regenerated.
5482         * tests/unictype/test-decdigit.h: Regenerated.
5483         * tests/unictype/test-digit.h: Regenerated.
5484         * tests/unictype/test-numeric.h: Regenerated.
5485         * tests/unictype/test-pr_alphabetic.c: Regenerated.
5486         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
5487         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
5488         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
5489         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
5490         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
5491         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
5492         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
5493         * tests/unictype/test-pr_combining.c: Regenerated.
5494         * tests/unictype/test-pr_dash.c: Regenerated.
5495         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
5496         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
5497         * tests/unictype/test-pr_deprecated.c: Regenerated.
5498         * tests/unictype/test-pr_diacritic.c: Regenerated.
5499         * tests/unictype/test-pr_extender.c: Regenerated.
5500         * tests/unictype/test-pr_format_control.c: Regenerated.
5501         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
5502         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
5503         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
5504         * tests/unictype/test-pr_id_continue.c: Regenerated.
5505         * tests/unictype/test-pr_id_start.c: Regenerated.
5506         * tests/unictype/test-pr_ideographic.c: Regenerated.
5507         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
5508         * tests/unictype/test-pr_lowercase.c: Regenerated.
5509         * tests/unictype/test-pr_math.c: Regenerated.
5510         * tests/unictype/test-pr_numeric.c: Regenerated.
5511         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
5512         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
5513         Regenerated.
5514         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
5515         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
5516         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
5517         * tests/unictype/test-pr_other_math.c: Regenerated.
5518         * tests/unictype/test-pr_punctuation.c: Regenerated.
5519         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
5520         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
5521         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
5522         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
5523         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
5524         * tests/unictype/test-pr_uppercase.c: Regenerated.
5525         * tests/unictype/test-pr_xid_continue.c: Regenerated.
5526         * tests/unictype/test-pr_xid_start.c: Regenerated.
5527         * tests/unictype/test-pr_zero_width.c: Regenerated.
5528
5529         Update to Unicode 5.1.0.
5530         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
5531         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
5532         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
5533         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
5534         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
5535         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
5536         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
5537         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
5538         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
5539         (nonspacing_table_ind): Update.
5540         * tests/uniwidth/test-uc_width2.sh: Update expected result.
5541
5542         Update to Unicode 5.1.0.
5543         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
5544         code transform.
5545         * lib/uniname/uniname.c (unicode_character_name,
5546         unicode_name_character): Add the range 0x1Fxxx to the code transform.
5547         * lib/uniname/uninames.h: Regenerated.
5548         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
5549
5550 2009-02-07  Bruno Haible  <bruno@clisp.org>
5551
5552         Merge gen-ctype and gen-lbrk into a single program.
5553         * lib/gen-uni-tables.c: New file, incorporating
5554         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
5555         Add directory prefixes to the names of the generated files.
5556         * lib/unictype/gen-ctype.c: Remove file.
5557         * lib/unilbrk/gen-lbrk.c: Remove file.
5558         * modules/gen-uni-tables: New file.
5559         * modules/unictype/gen-ctype: Remove file.
5560         * modules/unilbrk/gen-lbrk: Remove file.
5561
5562 2009-02-07  Bruno Haible  <bruno@clisp.org>
5563
5564         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
5565
5566         New module 'unistr/u32-strcoll'.
5567         * modules/unistr/u32-strcoll: New file.
5568         * lib/unistr/u32-strcoll.c: New file.
5569
5570         New module 'unistr/u16-strcoll'.
5571         * modules/unistr/u16-strcoll: New file.
5572         * lib/unistr/u16-strcoll.c: New file.
5573
5574         New module 'unistr/u8-strcoll'.
5575         * modules/unistr/u8-strcoll: New file.
5576         * lib/unistr/u8-strcoll.c: New file.
5577         * lib/unistr/u-strcoll.h: New file.
5578
5579 2009-02-07  Bruno Haible  <bruno@clisp.org>
5580
5581         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
5582         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5583         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5584         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
5585         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
5586         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
5587
5588 2009-02-07  Bruno Haible  <bruno@clisp.org>
5589
5590         Make 64-bit clean.
5591         * lib/unictype/gen-ctype.c (output_predicate, output_category,
5592         output_combclass, output_bidi_category, output_decimal_digit,
5593         output_digit, output_numeric, output_mirror, output_scripts,
5594         output_ident_category): Use proper width specifier in format strings.
5595
5596 2009-02-07  Bruno Haible  <bruno@clisp.org>
5597
5598         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
5599         failure behaviour.
5600
5601 2009-02-07  Jim Meyering  <meyering@redhat.com>
5602
5603         regex: avoid compilation failure with upcoming gcc-4.4
5604         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
5605         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
5606         "... error: integer overflow in preprocessor expression".
5607
5608 2009-02-05  Ben Pfaff  <blp@gnu.org>
5609
5610         Fix link errors on Windows when close module is used.
5611         * modules/close: Add $(LIB_CLOSE) to Link section.
5612         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
5613         $(LIB_CLOSE) on Windows.
5614
5615 2009-02-05  Jim Meyering  <meyering@redhat.com>
5616
5617         still avoid unused-parameter warnings, but do it cleanly
5618         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
5619         (get_fs_usage): Cast to void instead.
5620         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
5621         (dev_from_mount_options, read_file_system_list): Cast to void.
5622         Prompted by Bruno Haible.
5623
5624 2009-02-04  Jim Meyering  <meyering@redhat.com>
5625
5626         fsusage.c: correct copyright year
5627         * lib/fsusage.c: Reflect year in which the change is pushed into
5628
5629         avoid misc. warnings
5630         * lib/fsusage.c (UNUSED_PARAM): Define.
5631         (get_fs_usage): Mark parameter "disk" as unused.
5632         * lib/getugroups.c (getgrent): Use "void" in prototype.
5633         * lib/mountlist.c: Mark unused parameters.
5634         (read_file_system_list): Declare a local with "const".
5635         * lib/nanosleep.c (getnow): Declare static.
5636         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
5637
5638         dirfd: set errno upon failure
5639         * lib/dirfd.c: Include <errno.h>.
5640         Set errno to ENOTSUP when returning -1.
5641         * modules/dirfd (Depends-on): Add errno.
5642         Suggested by John Kodis <kodis@comcast.net>.
5643
5644 2009-02-01  Bruno Haible  <bruno@clisp.org>
5645
5646         Don't assume sizeof (long) >= sizeof (void *).
5647         * lib/memcmp.c: Include stdint.h.
5648         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
5649         srcp2 to 'const byte *'.
5650         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
5651         types to uintptr_t.
5652         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
5653         * modules/memcmp (Depends-on): Add stdint.
5654         Reported by Ozkan Sezer <sezeroz@gmail.com>.
5655
5656 2009-01-30  Eric Blake  <ebb9@byu.net>
5657
5658         fix more require-before-expand issues
5659         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
5660         expand, AC_PROG_AWK.
5661         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
5662
5663 2009-01-28  Eric Blake  <ebb9@byu.net>
5664
5665         version-etc: use consistent URL formatting
5666         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
5667         Improve formatting.  Use fputs for string without %.
5668
5669 2009-01-28  Jim Meyering  <meyering@redhat.com>
5670
5671         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
5672         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
5673         "underquoted definition of NAME" from autoconf-2.59.
5674
5675 2009-01-28  Bruno Haible  <bruno@clisp.org>
5676
5677         * doc/gnulib.texi: Add "Obsolete modules" to index.
5678
5679 2009-01-28  Jim Meyering  <meyering@redhat.com>
5680
5681         useless-if-before-free: recognize more variants
5682         * build-aux/useless-if-before-free: Also recognize e.g.,
5683         if (NULL != p) free (p);
5684
5685 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
5686
5687         test-getaddrinfo: skip (don't fail) this test when there's no network
5688         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
5689         on the presumption that it means you lack network access.
5690
5691 2009-01-26  Jim Meyering  <meyering@redhat.com>
5692
5693         fflush: avoid warnings on modern systems
5694         * lib/fflush.c (rpl_fflush): Move declarations of locals,
5695         pos and result, into scopes where they're used.
5696
5697 2009-01-26  Eric Blake  <ebb9@byu.net>
5698
5699         Silence warning reintroduced by recent extensions patch.
5700         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
5701         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
5702         autoconf.
5703
5704         Backport improved autoconf semantics of AC_DEFUN_ONCE.
5705         * m4/00gnulib.m4: New file.
5706         * gnulib-tool (func_get_filelist): Always use it.
5707         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
5708         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
5709
5710 2009-01-25  Bruno Haible  <bruno@clisp.org>
5711
5712         Make test-quotearg work on MacOS X and AIX.
5713         * tests/test-quotearg.sh: New file.
5714         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
5715         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
5716         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
5717         include <libintl.h>.
5718         (fake_locale): Remove variable.
5719         (gettext, dgettext, dcgettext): Remove functions.
5720         (main): Instead of setting a fake locale, set a real locale. Call
5721         textdomain and bindtextdomain.
5722         * modules/quotearg-tests (Files): Add the new files.
5723         (Depends-on): Add gettext, setenv, unsetenv.
5724         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5725         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
5726         Augment TESTS_ENVIRONMENT.
5727
5728 2009-01-25  Bruno Haible  <bruno@clisp.org>
5729
5730         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
5731         fr_FR.ISO8859-1 locale on MacOS X.
5732         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
5733         ja_JP.eucJP locale on MacOS X.
5734         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
5735         zh_CN.GB18030 locale on MacOS X.
5736
5737 2009-01-25  Bruno Haible  <bruno@clisp.org>
5738
5739         Avoid link errors on MacOS X 10.3.
5740         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
5741         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
5742
5743 2009-01-25  Bruno Haible  <bruno@clisp.org>
5744
5745         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5746         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
5747         * modules/pipe (Files): Remove m4/posix_spawn.m4.
5748         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5749         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
5750         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5751         posix_spawnattr_init, posix_spawnattr_setsigmask,
5752         posix_spawnattr_setflags, posix_spawnattr_destroy.
5753
5754         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5755         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
5756         * modules/execute (Files): Remove m4/posix_spawn.m4.
5757         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5758         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5759         posix_spawnattr_init, posix_spawnattr_setsigmask,
5760         posix_spawnattr_setflags, posix_spawnattr_destroy.
5761
5762 2009-01-25  Bruno Haible  <bruno@clisp.org>
5763
5764         * lib/glthread/threadlib.c: Include <stdlib.h>.
5765
5766 2009-01-25  Bruno Haible  <bruno@clisp.org>
5767
5768         * lib/glthread/threadlib.c (dummy): New declaration.
5769
5770 2009-01-25  Bruno Haible  <bruno@clisp.org>
5771
5772         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
5773         multibyte characters also for the GB18030 encoding. Don't crash when
5774         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
5775
5776 2009-01-25  Bruno Haible  <bruno@clisp.org>
5777
5778         Avoid redefining 'struct random_data' on OSF/1 5.1.
5779         * lib/stdlib.in.h: Include <random.h> if it exists.
5780         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
5781         HAVE_RANDOM_H. Include <random.h> when testing whether
5782         'struct random_data' exists.
5783         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
5784
5785 2009-01-25  Bruno Haible  <bruno@clisp.org>
5786
5787         Don't install charset.alias on MacOS X >= 10.3.
5788         * lib/localcharset.c (DARWIN7): New macro.
5789         (get_charset_aliases): Hardcode the result for Darwin7.
5790         * modules/localcharset (install-exec-local): Don't install
5791         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
5792
5793 2009-01-25  Bruno Haible  <bruno@clisp.org>
5794
5795         Don't install charset.alias on mingw and Cygwin.
5796         * modules/localcharset (install-exec-local): Don't install
5797         charset.alias on mingw and Cygwin, if the file does not yet exist.
5798         The result for these platforms is hardcoded in localcharset.c.
5799
5800 2009-01-25  Bruno Haible  <bruno@clisp.org>
5801
5802         Make it possible again to use AC_GNU_SOURCE together with gnulib.
5803         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
5804         before requiring AC_USE_SYSTEM_EXTENSIONS.
5805
5806 2009-01-25  Jim Meyering  <meyering@redhat.com>
5807
5808         c-strtod: avoid warnings
5809         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
5810         "assignment discards qualifiers from pointer target type" warnings.
5811
5812 2009-01-24  Bruno Haible  <bruno@clisp.org>
5813
5814         Add support for non-UTF-8 locales on MacOS X.
5815         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
5816         canonical encodings. For Darwin 7 and newer, don't map traditional
5817         encodings to UTF-8.
5818         Reported by Vincent Lefevre <vincent@vinc17.org>
5819         at <http://savannah.gnu.org/bugs/?25235>.
5820
5821 2009-01-24  Bruno Haible  <bruno@clisp.org>
5822
5823         * doc/gnulib.texi (Obsolete modules): New section.
5824         Reported by Mike Frysinger <vapier@gentoo.org>.
5825
5826 2009-01-24  Bruno Haible  <bruno@clisp.org>
5827
5828         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
5829         (%.dvi): New rule.
5830
5831 2009-01-24  Bruno Haible  <bruno@clisp.org>
5832
5833         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
5834         Reported by Eric Blake.
5835
5836 2009-01-24  Bruno Haible  <bruno@clisp.org>
5837
5838         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
5839         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
5840         Reported by Gary V. Vaughan <gary@gnu.org>.
5841
5842 2009-01-24  Bruno Haible  <bruno@clisp.org>
5843
5844         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
5845
5846 2009-01-23  Bruno Haible  <bruno@clisp.org>
5847
5848         Make c-strtod, c-strtold usable in libraries.
5849         * lib/c-strtod.c: Include string.h instead of xalloc.h.
5850         (C_STRTOD): Call strdup instead of xstrdup.
5851         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
5852         * modules/c-strtold (Depends-on): Likewise.
5853         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
5854         * NEWS: Mention the change.
5855         Reported by Michael Gold <mgold@ncf.ca>.
5856
5857 2009-01-23  Jim Meyering  <meyering@redhat.com>
5858
5859         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
5860         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
5861         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
5862
5863 2009-01-23  Simon Josefsson  <simon@josefsson.org>
5864
5865         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
5866         GNU CoreUtils.
5867         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
5868         * modules/version-etc (Description): Update.
5869
5870 2009-01-22  Bruno Haible  <bruno@clisp.org>
5871
5872         Cache the C locale object.
5873         * lib/c-strtod.c (c_locale_cache): New variable.
5874         (c_locale): New function.
5875         (C_STRTOD): Use it, and don't call freelocale.
5876         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
5877         Suggested by Paolo Bonzini.
5878
5879 2009-01-21  Bruno Haible  <bruno@clisp.org>
5880
5881         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
5882         conditions other than overflow.
5883
5884 2009-01-21  Bruno Haible  <bruno@clisp.org>
5885
5886         * lib/c-strtod.c: Include errno.h.
5887         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
5888         value from STRTOD_L and STRTOD.
5889
5890 2009-01-21  Bruno Haible  <bruno@clisp.org>
5891         and Jim Meyering  <meyering@redhat.com>
5892
5893         nanosleep: skip configure test (fail it) for apple universal builds
5894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
5895         universal builds, assume that nanosleep does not work.
5896         * modules/nanosleep (Depends-on): Add multiarch.
5897
5898         mktime: skip configure test (fail it) for apple universal builds
5899         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
5900         universal builds, assume that mktime does not work.
5901         * modules/mktime (Depends-on): Add multiarch.
5902
5903 2009-01-21  Eric Blake  <ebb9@byu.net>
5904
5905         multiarch: avoid expand-before-require warning
5906         * modules/multiarch (configure.ac): Require, rather than expand,
5907         gl_MULTIARCH.
5908         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
5909         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
5910         enforce that all clients require it.  Partial reversion of
5911         2008-12-29 patch.
5912
5913         error: avoid expand-before-require warning
5914         * modules/errno (configure.ac): Require, rather than expand,
5915         gl_HEADER_ERRNO_H.
5916         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
5917         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
5918         enforce that all clients require it.
5919
5920         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
5921         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
5922         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
5923         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
5924
5925 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
5926
5927         Revert:
5928         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5929
5930         regex: do not depend on obsolete modules.
5931         * modules/regex: Remove memcmp and memmove.
5932
5933 2009-01-20  Bruno Haible  <bruno@clisp.org>
5934
5935         Make the 'link' module link on Windows NT 4.
5936         * lib/link.c (_WIN32_WINNT): Don't define.
5937         (CreateHardLinkFuncType): New type.
5938         (CreateHardLinkFunc, initialized): New variables.
5939         (initialize): New function.
5940         (link): Invoke CreateHardLink indirectly through the function pointer.
5941
5942 2009-01-20  Bruno Haible  <bruno@clisp.org>
5943
5944         Fix compilation failure on mingw.
5945         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
5946
5947 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
5948
5949         * doc/c-strtod.texi: Mention a couple of restrictions.
5950
5951 2009-01-20  Jim Meyering  <meyering@redhat.com>
5952
5953         gettimeofday: move more declarations out of functions
5954         * lib/gettimeofday.c: Move extern declarations of tzset and
5955         gmtime out of containing functions.  Prompted by Bruno Haible.
5956
5957 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5958
5959         regex: do not depend on obsolete modules.
5960         * modules/regex: Remove memcmp and memmove.
5961
5962 2009-01-19  Bruno Haible  <bruno@clisp.org>
5963
5964         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5965         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
5966         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5967         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
5968         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
5969
5970 2009-01-19  Bruno Haible  <bruno@clisp.org>
5971
5972         * tests/test-link.c: Include <errno.h>.
5973         (main): Exit with code 77 when a hard link cannot be created due to
5974         the file system.
5975         * tests/test-link.sh: Skip test when a hard link cannot be created due
5976         to the file system.
5977         Suggested by Eric Blake.
5978
5979 2009-01-19  Martin Lambers  <marlam@marlam.de>
5980
5981         * modules/link-tests: New file.
5982         * tests/test-link.sh: New file.
5983         * tests/test-link.c: New file.
5984
5985 2009-01-19  Eric Blake  <ebb9@byu.net>
5986
5987         doc: mention another function added in cygwin 1.7.0
5988         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
5989         Another new function in cygwin 1.7.
5990
5991 2009-01-19  Bruno Haible  <bruno@clisp.org>
5992
5993         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5994         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
5995         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
5996         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5997         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5998         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
5999         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6000         * m4/md4.m4 (gl_MD4): Likewise.
6001         * m4/md5.m4 (gl_MD5): Likewise.
6002         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
6003         * m4/sha1.m4 (gl_SHA1): Likewise.
6004         * m4/sha256.m4 (gl_SHA256): Likewise.
6005         * m4/sha512.m4 (gl_SHA512): Likewise.
6006
6007 2009-01-19  Bruno Haible  <bruno@clisp.org>
6008
6009         * modules/uniname/uniname-tests (Depends-on): Add progname.
6010         * tests/uniname/test-uninames.c: Include progname.h.
6011         (main): Call set_program_name.
6012
6013         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
6014         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
6015         (main): Call set_program_name.
6016
6017         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
6018         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
6019         (main): Call set_program_name.
6020
6021         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
6022         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
6023         (main): Call set_program_name.
6024
6025         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
6026         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
6027         (main): Call set_program_name.
6028
6029         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
6030         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
6031         (main): Call set_program_name.
6032
6033         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
6034         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
6035         (main): Call set_program_name.
6036
6037         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
6038         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
6039         (main): Call set_program_name.
6040
6041         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
6042         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
6043         (main): Call set_program_name.
6044
6045 2009-01-19  Eric Blake  <ebb9@byu.net>
6046
6047         test-unistd: test previous patch
6048         * tests/test-unistd.c: Test *_FILENO macros.
6049
6050         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
6051         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6052         Guarantee a definition.
6053         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
6054         * modules/unistd-safer (Depends-on): Add dependency on unistd.
6055         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
6056         * lib/dup-safer.c (STDERR_FILENO): Likewise.
6057         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6058         Likewise.
6059         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
6060         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
6061         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
6062         Likewise.
6063         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
6064         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
6065         (STDERR_FILENO): Likewise.
6066         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
6067         (STDERR_FILENO): Likewise.
6068         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
6069         (STDERR_FILENO): Likewise.
6070         Reported by Elbert Pol.
6071
6072 2009-01-19  Eric Blake  <ebb9@byu.net>
6073
6074         doc: mention more functions added in cygwin 1.7.0
6075         * doc/posix-functions/abort.texi (abort): Update wording related
6076         to cygwin.
6077         * doc/posix-functions/daylight.texi (daylight): Likewise.
6078         * doc/posix-functions/optarg.texi (optarg): Likewise.
6079         * doc/posix-functions/optarg.texi (opterr): Likewise.
6080         * doc/posix-functions/optarg.texi (optind): Likewise.
6081         * doc/posix-functions/optarg.texi (optopt): Likewise.
6082         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
6083         worked in 1.5.x, and was withdrawn in 1.7.
6084         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6085         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
6086         cygwin versions.
6087         * doc/posix-functions/perror.texi (perror): Likewise.
6088         * doc/posix-functions/printf.texi (printf): Likewise.
6089         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
6090         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
6091         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6092         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6093         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6094         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6095         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
6096         Likewise.
6097         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
6098         Likewise.
6099         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
6100         this function.
6101         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
6102         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
6103         Likewise.
6104         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
6105         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
6106         * doc/posix-functions/confstr.texi (confstr): Likewise.
6107         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6108         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
6109         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
6110         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
6111         * doc/posix-functions/fputws.texi (fputws): Likewise.
6112         * doc/posix-functions/fwide.texi (fwide): Likewise.
6113         * doc/posix-functions/getwc.texi (getwc): Likewise.
6114         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
6115         * doc/posix-functions/putwc.texi (putwc): Likewise.
6116         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6117         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
6118         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
6119         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6120         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
6121         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
6122         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
6123         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
6124         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
6125         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
6126         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
6127
6128 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6129
6130         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
6131         * lib/ioctl.c: Include <sys/ioctl.h>.
6132
6133 2009-01-19  Simon Josefsson  <simon@josefsson.org>
6134
6135         * modules/getdate-tests (Depends-on): Add progname.
6136         * tests/test-getdate.c: Use progname module, to avoid link errors
6137         on non-glibc systems.
6138
6139 2009-01-18  Simon Josefsson  <simon@josefsson.org>
6140
6141         * modules/filenamecat-tests (Depends-on): Add progname.
6142         * modules/fstrcmp-tests (Depends-on): Likewise.
6143
6144         * tests/test-filenamecat.c: Use progname module, to avoid link
6145         errors on non-glibc systems.
6146         * tests/test-fstrcmp.c: Likewise.
6147
6148 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6149
6150         gettimeofday: avoid warning: nested extern declaration of 'localtime'
6151         * lib/gettimeofday.c: Move extern declaration out of function.
6152
6153 2009-01-18  Bruno Haible  <bruno@clisp.org>
6154
6155         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
6156         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
6157         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
6158
6159 2009-01-18  Bruno Haible  <bruno@clisp.org>
6160
6161         * lib/strftime.c (MEMPCPY): Remove unused macro.
6162         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
6163
6164 2009-01-18  Martin Lambers  <marlam@marlam.de>
6165
6166         New module 'link'.
6167         * lib/unistd.in.h (link): New declaration.
6168         * lib/link.c: New file.
6169         * m4/link.m4: New file.
6170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
6171         HAVE_LINK.
6172         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
6173         * modules/link: New file.
6174         * doc/posix-functions/link.texi: Mention the new module.
6175
6176 2009-01-18  Bruno Haible  <bruno@clisp.org>
6177
6178         * tests/test-avltree_list.c (main): Call set_program_name.
6179         * tests/test-avltree_oset.c (main): Likewise.
6180         * tests/test-obstack-printf.c: Include progname.h.
6181         (main): Call set_program_name.
6182         * tests/test-quotearg.c: Include progname.h.
6183         (main): Call set_program_name.
6184         * tests/test-xmemdup0.c: Include progname.h.
6185         (main): Call set_program_name.
6186
6187 2009-01-18  Bruno Haible  <bruno@clisp.org>
6188
6189         New module 'alphasort'.
6190         * lib/dirent.in.h (alphasort): New declaration.
6191         * lib/alphasort.c: New file, from glibc with modifications.
6192         * m4/alphasort.m4: New file.
6193         * modules/alphasort: New file.
6194         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
6195         HAVE_ALPHASORT.
6196         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
6197         HAVE_ALPHASORT.
6198         * doc/posix-functions/alphasort.texi: Mention the new module and the
6199         portability problems.
6200
6201 2009-01-18  Bruno Haible  <bruno@clisp.org>
6202
6203         New module 'scandir'.
6204         * lib/dirent.in.h (scandir): New declaration.
6205         * lib/scandir.c: New file, from glibc with modifications.
6206         * m4/scandir.m4: New file.
6207         * modules/scandir: New file.
6208         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
6209         HAVE_SCANDIR.
6210         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
6211         HAVE_SCANDIR.
6212         * doc/posix-functions/scandir.texi: Mention the new module and the
6213         portability problems.
6214
6215 2009-01-17  Bruno Haible  <bruno@clisp.org>
6216
6217         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
6218         Update documentation.
6219         (func_remove_suffix): Escape all dots in the suffix. Update
6220         documentation.
6221         (func_filter_filelist): Update documentation.
6222         Reported by Ralf Wildenhues.
6223
6224 2009-01-17  Bruno Haible  <bruno@clisp.org>
6225
6226         * modules/dprintf-posix-tests: New file.
6227         * tests/test-dprintf-posix.sh: New file.
6228         * tests/test-dprintf-posix.c: New file.
6229
6230         New modules 'dprintf', 'dprintf-posix'.
6231         * lib/stdio.in.h (dprintf): New declaration.
6232         * lib/dprintf.c: New file.
6233         * m4/dprintf.m4: New file.
6234         * m4/dprintf-posix.m4: New file.
6235         * modules/dprintf: New file.
6236         * modules/dprintf-posix: New file.
6237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
6238         HAVE_DPRINTF, REPLACE_DPRINTF.
6239         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
6240         HAVE_DPRINTF, REPLACE_DPRINTF.
6241         * doc/posix-functions/dprintf.texi: Mention the new modules.
6242
6243 2009-01-17  Bruno Haible  <bruno@clisp.org>
6244
6245         * modules/vdprintf-posix-tests: New file.
6246         * tests/test-vdprintf-posix.sh: New file.
6247         * tests/test-vdprintf-posix.c: New file.
6248
6249         New modules 'vdprintf', 'vdprintf-posix'.
6250         * lib/stdio.in.h (vdprintf): New declaration.
6251         * lib/vdprintf.c: New file.
6252         * m4/vdprintf.m4: New file.
6253         * m4/vdprintf-posix.m4: New file.
6254         * modules/vdprintf: New file.
6255         * modules/vdprintf-posix: New file.
6256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
6257         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6258         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
6259         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6260         * doc/posix-functions/vdprintf.texi: Mention the new modules.
6261
6262 2009-01-17  Bruno Haible  <bruno@clisp.org>
6263
6264         Fix replacement of fopen on mingw.
6265         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
6266         mingw.
6267
6268 2009-01-17  Bruno Haible  <bruno@clisp.org>
6269
6270         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
6271         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
6272
6273 2009-01-17  Bruno Haible  <bruno@clisp.org>
6274
6275         Avoid test-fflush2.sh failure on mingw.
6276         * tests/test-fflush2.c: Include binary-io.h.
6277         (main): Put standard input into binary mode.
6278         * modules/fflush-tests (Depends-on): Add binary-io.
6279
6280 2009-01-17  Bruno Haible  <bruno@clisp.org>
6281
6282         * lib/wchar.in.h: In another particular situation, include only the
6283         system's <wchar.h> file.
6284         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
6285         Reported by Albert Chin-A-Young <china@thewrittenword.com>
6286         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
6287
6288 2009-01-17  Bruno Haible  <bruno@clisp.org>
6289
6290         Support for stripping executables in --enable-relocatable.
6291         * build-aux/install-reloc: Expect one more argument, or an environment
6292         variable RELOC_STRIP_PROG. If set, strip the destination program and
6293         its wrapper.
6294         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
6295         RELOC_STRIP_PROG.
6296         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
6297         to set RELOCATABLE_STRIP.
6298         * NEWS: Mention the new Makefile requirement.
6299
6300 2009-01-17  Bruno Haible  <bruno@clisp.org>
6301
6302         * build-aux/install-reloc: Remove debugging information left over by
6303         C compiler on MacOS X.
6304
6305 2009-01-17  Bruno Haible  <bruno@clisp.org>
6306
6307         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
6308         * lib/progreloc.c (find_executable): Fix type of pointer passed to
6309         _NSGetExecutablePath.
6310
6311 2009-01-16  Jim Meyering  <meyering@redhat.com>
6312
6313         strerror: avoid warnings about discarding "const"
6314         * lib/strerror.c (rpl_strerror): Instead of returning a const
6315         string from each and every "case", use a variable, and add a single
6316         cast after the switch.
6317
6318 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
6319
6320         * lib/arpa_inet.in.h: Add extern "C" block for C++.
6321
6322 2009-01-16  Bruno Haible  <bruno@clisp.org>
6323
6324         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
6325         array initializer syntax that also works in C++ mode.
6326         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6327
6328 2009-01-16  Jim Meyering  <meyering@redhat.com>
6329
6330         poll: suppress a warning
6331         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
6332         to ignore "...unsigned expression < 0 is always false" warnings.
6333
6334 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
6335
6336         poll: remove declarations of unused variables
6337         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
6338         sockbuf and optlen.
6339
6340 2009-01-15  Bruno Haible  <bruno@clisp.org>
6341
6342         Make fflush-after-ungetc POSIX compliant on BSD systems.
6343         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
6344         (clear_ungetc_buffer): Implement also for other systems.
6345         (rpl_fflush): On glibc systems, invoke
6346         clear_ungetc_buffer_preserving_position. Otherwise, invoke
6347         clear_ungetc_buffer after fetching the stream's position, not before.
6348
6349 2009-01-15  Bruno Haible  <bruno@clisp.org>
6350
6351         Make fflush-after-ungetc POSIX compliant on glibc systems.
6352         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
6353         after ungetc.
6354         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
6355         (rpl_fflush): On glibc systems, simply call the system's fflush
6356         function after clearing the ungetc buffer.
6357         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
6358         Instead, lseek only to the end of file, then use the system's fseeko
6359         for the rest. On glibc systems, reset the EOF indicator bit.
6360
6361 2009-01-15  Jim Meyering  <meyering@redhat.com>
6362
6363         openmp.m4: revert quote-adding change, for portability to older autoconf
6364         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
6365         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
6366         Simon Josefsson noticed the problem when using autoconf-2.61.
6367
6368 2009-01-15  Bruno Haible  <bruno@clisp.org>
6369
6370         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
6371         * tests/test-fflush2.c (ASSERT): Always fail.
6372         (main): Add two tests for fflush() after ungetc(), taking into account
6373         the Austin Group's clarification.
6374         Suggested by Eric Blake.
6375
6376 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
6377
6378         mktime.m4: remove K&R-style function prototypes
6379         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
6380         for the Sun C++ compiler.
6381
6382 2009-01-14  Bruno Haible  <bruno@clisp.org>
6383
6384         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
6385         while including <wchar.h>.
6386         * lib/wchar.in.h: In two particular situations on HP-UX, include only
6387         the system's <wchar.h> file.
6388         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6389
6390 2009-01-14  Bruno Haible  <bruno@clisp.org>
6391
6392         * m4/csharp.m4: Don't mention gettext on the serial number line.
6393         * m4/csharpexec.m4: Likewise.
6394         * m4/eaccess.m4: Likewise.
6395         * m4/javaexec.m4: Likewise.
6396         * m4/sig_atomic_t.m4: Likewise.
6397         * m4/tmpdir.m4: Likewise.
6398         * m4/intldir.m4: Bump gettext version.
6399         * m4/lib-ld.m4: Likewise.
6400
6401 2009-01-14  Bruno Haible  <bruno@clisp.org>
6402
6403         * lib/progname.c (set_program_name): Add more comments.
6404         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6405
6406 2009-01-14  Simon Josefsson  <simon@josefsson.org>
6407
6408         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
6409         were sys/stat.h does not define it.
6410
6411 2009-01-14  Jim Meyering  <meyering@redhat.com>
6412
6413         many *.m4 files: improve m4 quoting
6414         99% of this change was performed by running the following commands:
6415         git ls-files | grep '\.m4$' | xargs perl -pi \
6416           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
6417           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6418           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6419           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
6420         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
6421         The remainder were to add Copyright dates, increment serial numbers,
6422         undo some changes in comments, exclude m4/intl.m4, and add quotes
6423         around the "1" in ",1" where the unusual spacing prohibited the
6424         above regexps from doing the job.  For more details, see
6425         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
6426         * m4/acl.m4: Modified.
6427         * m4/afs.m4: Likewise.
6428         * m4/alloca.m4: Likewise.
6429         * m4/argp.m4: Likewise.
6430         * m4/argz.m4: Likewise.
6431         * m4/atexit.m4: Likewise.
6432         * m4/bison-i18n.m4: Likewise.
6433         * m4/bison.m4: Likewise.
6434         * m4/byteswap.m4: Likewise.
6435         * m4/c-stack.m4: Likewise.
6436         * m4/c-strtod.m4: Likewise.
6437         * m4/calloc.m4: Likewise.
6438         * m4/canonicalize-lgpl.m4: Likewise.
6439         * m4/chown.m4: Likewise.
6440         * m4/clock_time.m4: Likewise.
6441         * m4/codeset.m4: Likewise.
6442         * m4/copy-file.m4: Likewise.
6443         * m4/csharp.m4: Likewise.
6444         * m4/csharpcomp.m4: Likewise.
6445         * m4/csharpexec.m4: Likewise.
6446         * m4/d-ino.m4: Likewise.
6447         * m4/d-type.m4: Likewise.
6448         * m4/dirfd.m4: Likewise.
6449         * m4/double-slash-root.m4: Likewise.
6450         * m4/eaccess.m4: Likewise.
6451         * m4/eealloc.m4: Likewise.
6452         * m4/environ.m4: Likewise.
6453         * m4/errno_h.m4: Likewise.
6454         * m4/euidaccess.m4: Likewise.
6455         * m4/execute.m4: Likewise.
6456         * m4/fatal-signal.m4: Likewise.
6457         * m4/fchdir.m4: Likewise.
6458         * m4/fcntl_h.m4: Likewise.
6459         * m4/fileblocks.m4: Likewise.
6460         * m4/filenamecat.m4: Likewise.
6461         * m4/findprog.m4: Likewise.
6462         * m4/flexmember.m4: Likewise.
6463         * m4/fnmatch.m4: Likewise.
6464         * m4/fopen.m4: Likewise.
6465         * m4/fpending.m4: Likewise.
6466         * m4/fprintf-posix.m4: Likewise.
6467         * m4/free.m4: Likewise.
6468         * m4/frexp.m4: Likewise.
6469         * m4/frexpl.m4: Likewise.
6470         * m4/fsusage.m4: Likewise.
6471         * m4/ftruncate.m4: Likewise.
6472         * m4/gc-camellia.m4: Likewise.
6473         * m4/gc-random.m4: Likewise.
6474         * m4/gc.m4: Likewise.
6475         * m4/getaddrinfo.m4: Likewise.
6476         * m4/getcwd-abort-bug.m4: Likewise.
6477         * m4/getcwd-path-max.m4: Likewise.
6478         * m4/getdate.m4: Likewise.
6479         * m4/getdomainname.m4: Likewise.
6480         * m4/getgroups.m4: Likewise.
6481         * m4/gethostname.m4: Likewise.
6482         * m4/gethrxtime.m4: Likewise.
6483         * m4/getline.m4: Likewise.
6484         * m4/getloadavg.m4: Likewise.
6485         * m4/getndelim2.m4: Likewise.
6486         * m4/getpass.m4: Likewise.
6487         * m4/gettext.m4: Likewise.
6488         * m4/gettime.m4: Likewise.
6489         * m4/gettimeofday.m4: Likewise.
6490         * m4/gnulib-common.m4: Likewise.
6491         * m4/group-member.m4: Likewise.
6492         * m4/host-os.m4: Likewise.
6493         * m4/iconv.m4: Likewise.
6494         * m4/iconv_open.m4: Likewise.
6495         * m4/inet_ntop.m4: Likewise.
6496         * m4/inet_pton.m4: Likewise.
6497         * m4/inline.m4: Likewise.
6498         * m4/intldir.m4: Likewise.
6499         * m4/intlmacosx.m4: Likewise.
6500         * m4/intmax.m4: Likewise.
6501         * m4/intmax_t.m4: Likewise.
6502         * m4/inttypes.m4: Likewise.
6503         * m4/inttypes_h.m4: Likewise.
6504         * m4/inttypes-pri.m4: Likewise.
6505         * m4/isapipe.m4: Likewise.
6506         * m4/isnand.m4: Likewise.
6507         * m4/isnanf.m4: Likewise.
6508         * m4/isnanl.m4: Likewise.
6509         * m4/javacomp.m4: Likewise.
6510         * m4/javaexec.m4: Likewise.
6511         * m4/jm-winsz1.m4: Likewise.
6512         * m4/jm-winsz2.m4: Likewise.
6513         * m4/lchown.m4: Likewise.
6514         * m4/lcmessage.m4: Likewise.
6515         * m4/ldexpl.m4: Likewise.
6516         * m4/lib-ld.m4: Likewise.
6517         * m4/lib-link.m4: Likewise.
6518         * m4/libsigsegv.m4: Likewise.
6519         * m4/link-follow.m4: Likewise.
6520         * m4/localcharset.m4: Likewise.
6521         * m4/locale-fr.m4: Likewise.
6522         * m4/locale-ja.m4: Likewise.
6523         * m4/locale-tr.m4: Likewise.
6524         * m4/locale-zh.m4: Likewise.
6525         * m4/lock.m4: Likewise.
6526         * m4/longlong.m4: Likewise.
6527         * m4/ls-mntd-fs.m4: Likewise.
6528         * m4/lstat.m4: Likewise.
6529         * m4/malloc.m4: Likewise.
6530         * m4/mathl.m4: Likewise.
6531         * m4/mbrtowc.m4: Likewise.
6532         * m4/mbstate_t.m4: Likewise.
6533         * m4/mbswidth.m4: Likewise.
6534         * m4/memchr.m4: Likewise.
6535         * m4/memcmp.m4: Likewise.
6536         * m4/memcpy.m4: Likewise.
6537         * m4/memmem.m4: Likewise.
6538         * m4/memmove.m4: Likewise.
6539         * m4/mempcpy.m4: Likewise.
6540         * m4/memrchr.m4: Likewise.
6541         * m4/memset.m4: Likewise.
6542         * m4/minmax.m4: Likewise.
6543         * m4/mkdir-slash.m4: Likewise.
6544         * m4/mkdtemp.m4: Likewise.
6545         * m4/mktime.m4: Likewise.
6546         * m4/mmap-anon.m4: Likewise.
6547         * m4/mountlist.m4: Likewise.
6548         * m4/nanosleep.m4: Likewise.
6549         * m4/nls.m4: Likewise.
6550         * m4/nocrash.m4: Likewise.
6551         * m4/open.m4: Likewise.
6552         * m4/openat.m4: Likewise.
6553         * m4/openmp.m4: Likewise.
6554         * m4/pathmax.m4: Likewise.
6555         * m4/perl.m4: Likewise.
6556         * m4/physmem.m4: Likewise.
6557         * m4/pipe.m4: Likewise.
6558         * m4/po.m4: Likewise.
6559         * m4/poll.m4: Likewise.
6560         * m4/posixtm.m4: Likewise.
6561         * m4/posixver.m4: Likewise.
6562         * m4/printf-frexp.m4: Likewise.
6563         * m4/printf-frexpl.m4: Likewise.
6564         * m4/printf-posix.m4: Likewise.
6565         * m4/printf-posix-rpl.m4: Likewise.
6566         * m4/printf.m4: Likewise.
6567         * m4/progtest.m4: Likewise.
6568         * m4/putenv.m4: Likewise.
6569         * m4/readline.m4: Likewise.
6570         * m4/readlink.m4: Likewise.
6571         * m4/readutmp.m4: Likewise.
6572         * m4/realloc.m4: Likewise.
6573         * m4/regex.m4: Likewise.
6574         * m4/relocatable.m4: Likewise.
6575         * m4/relocatable-lib.m4: Likewise.
6576         * m4/rename-dest-slash.m4: Likewise.
6577         * m4/rename.m4: Likewise.
6578         * m4/rmdir-errno.m4: Likewise.
6579         * m4/rmdir.m4: Likewise.
6580         * m4/roundf.m4: Likewise.
6581         * m4/roundl.m4: Likewise.
6582         * m4/rpmatch.m4: Likewise.
6583         * m4/save-cwd.m4: Likewise.
6584         * m4/selinux-selinux-h.m4: Likewise.
6585         * m4/setenv.m4: Likewise.
6586         * m4/settime.m4: Likewise.
6587         * m4/sig2str.m4: Likewise.
6588         * m4/sig_atomic_t.m4: Likewise.
6589         * m4/signalblocking.m4: Likewise.
6590         * m4/signbit.m4: Likewise.
6591         * m4/sigpipe.m4: Likewise.
6592         * m4/sockets.m4: Likewise.
6593         * m4/sockpfaf.m4: Likewise.
6594         * m4/st_dm_mode.m4: Likewise.
6595         * m4/stat-time.m4: Likewise.
6596         * m4/stdbool.m4: Likewise.
6597         * m4/stdint.m4: Likewise.
6598         * m4/stdint_h.m4: Likewise.
6599         * m4/stpcpy.m4: Likewise.
6600         * m4/stpncpy.m4: Likewise.
6601         * m4/strcase.m4: Likewise.
6602         * m4/strchrnul.m4: Likewise.
6603         * m4/strcspn.m4: Likewise.
6604         * m4/strdup.m4: Likewise.
6605         * m4/strftime.m4: Likewise.
6606         * m4/strndup.m4: Likewise.
6607         * m4/strnlen.m4: Likewise.
6608         * m4/strpbrk.m4: Likewise.
6609         * m4/strptime.m4: Likewise.
6610         * m4/strsep.m4: Likewise.
6611         * m4/strtod.m4: Likewise.
6612         * m4/strtoimax.m4: Likewise.
6613         * m4/strtok_r.m4: Likewise.
6614         * m4/strtol.m4: Likewise.
6615         * m4/strtoll.m4: Likewise.
6616         * m4/strtoul.m4: Likewise.
6617         * m4/strtoull.m4: Likewise.
6618         * m4/strtoumax.m4: Likewise.
6619         * m4/strverscmp.m4: Likewise.
6620         * m4/threadlib.m4: Likewise.
6621         * m4/timegm.m4: Likewise.
6622         * m4/tm_gmtoff.m4: Likewise.
6623         * m4/tmpdir.m4: Likewise.
6624         * m4/tmpfile.m4: Likewise.
6625         * m4/tzset.m4: Likewise.
6626         * m4/uintmax_t.m4: Likewise.
6627         * m4/unlinkdir.m4: Likewise.
6628         * m4/unlocked-io.m4: Likewise.
6629         * m4/uptime.m4: Likewise.
6630         * m4/userspec.m4: Likewise.
6631         * m4/utimbuf.m4: Likewise.
6632         * m4/utime.m4: Likewise.
6633         * m4/utimes-null.m4: Likewise.
6634         * m4/utimes.m4: Likewise.
6635         * m4/vararrays.m4: Likewise.
6636         * m4/vasnprintf.m4: Likewise.
6637         * m4/vfprintf-posix.m4: Likewise.
6638         * m4/vprintf-posix.m4: Likewise.
6639         * m4/wait-process.m4: Likewise.
6640         * m4/wchar_t.m4: Likewise.
6641         * m4/wint_t.m4: Likewise.
6642         * m4/write-any-file.m4: Likewise.
6643         * m4/yield.m4: Likewise.
6644
6645 2009-01-13  Bruno Haible  <bruno@clisp.org>
6646
6647         Avoid test-copy-file.sh failures when ACL support insufficient.
6648         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
6649         TESTS_ENVIRONMENT.
6650         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
6651         Reported by Jim Meyering.
6652
6653 2009-01-13  Bruno Haible  <bruno@clisp.org>
6654
6655         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
6656         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
6657         * modules/unistdio/u8-printf-parse (Files): Likewise.
6658         * modules/unistdio/u32-printf-parse (Files): Likewise.
6659         * modules/unistdio/ulc-printf-parse (Files): Likewise.
6660
6661 2009-01-13  Simon Josefsson  <simon@josefsson.org>
6662
6663         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
6664         and m4/inttypes_h.m4 too.
6665
6666 2009-01-12  Eric Blake  <ebb9@byu.net>
6667
6668         tests: IRIX 6.2 cc can't compile -0.0 into .data
6669         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
6670         rather than at compile-time.
6671         * tests/test-floorl.c (minus_zero): Likewise.
6672         * tests/test-frexpl.c (minus_zero): Likewise.
6673         * tests/test-isnan.c (minus_zerol): Likewise.
6674         * tests/test-isnanl.h (minus_zero): Likewise.
6675         * tests/test-ldexpl.c (minus_zero): Likewise.
6676         * tests/test-roundl.c (minus_zero): Likewise.
6677         * tests/test-signbit.c (minus_zerol): Likewise.
6678         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6679         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6680         * tests/test-truncl.c (minus_zero): Likewise.
6681         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6682         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6683         Reported by Tom G. Christensen and Nelson H. F. Beebe.
6684
6685 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6686
6687         regex: fix glibc bug 9697
6688         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
6689         handling.
6690
6691 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6692
6693         regex: fix glibc bug 697
6694         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
6695         being NULL also if there are no backreferences.
6696
6697 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6698
6699         regex: merge glibc changes
6700         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
6701         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
6702         re_string_skip_chars, re_string_reconstruct): Likewise.
6703         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
6704
6705 2009-01-07  Jim Meyering  <meyering@redhat.com>
6706
6707         poll: filter through cppi
6708         * lib/poll.c: Indent cpp directives to reflect nesting.
6709
6710 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
6711
6712         poll: don't return uninitialized
6713         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
6714
6715 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
6716
6717         avoid compile failure on AIX 6.1
6718         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
6719         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
6720
6721 2009-01-04  Jim Meyering  <meyering@redhat.com>
6722
6723         remove duplicate inclusion of <stdio.h>
6724         * tests/test-fprintf-posix.c: Likewise.
6725         * tests/test-printf-posix.c: Likewise.
6726         * tests/test-snprintf-posix.c: Likewise.
6727         * tests/test-sprintf-posix.c: Likewise.
6728         * tests/test-vasprintf-posix.c: Likewise.
6729         * tests/test-vfprintf-posix.c: Likewise.
6730         * tests/test-vprintf-posix.c: Likewise.
6731         * tests/test-vsnprintf-posix.c: Likewise.
6732         * tests/test-vsprintf-posix.c: Likewise.
6733
6734 2009-01-03  Jim Meyering  <meyering@redhat.com>
6735
6736         gnulib-tool: fix sed-based filtering
6737         * gnulib-tool (func_filter_filelist): Remove extra backslash
6738         in sed_fff_filter definition.
6739
6740 2009-01-02  Jim Meyering  <meyering@redhat.com>
6741
6742         strftime: avoid compilation failure on Solaris 2.6
6743         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
6744         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
6745         Don't #define mbrlen or mbsinit, since now they're guaranteed to
6746         be available.  Reported by Tom G. Christensen.  Details in
6747         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
6748
6749 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6750             Bruno Haible  <bruno@clisp.org>
6751
6752         Speed up gnulib-tool by doing more string processing through shell
6753         built-ins.
6754         * gnulib-tool (fast_func_append): New variable.
6755         (func_remove_prefix, func_remove_suffix): New functions.
6756         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
6757         (func_filter_filelist): New function.
6758         (func_get_dependencies): Use func_remove_suffix instead of sed.
6759         (func_get_automake_snippet): Use func_filter_filelist instead of a
6760         subshell and sed invocation.
6761
6762 2009-01-01  Bruno Haible  <bruno@clisp.org>
6763
6764         Fix a security bug.
6765         * gnulib-tool (func_import, import, update): Don't allow the characters
6766         '"', '$', '`', '\' in macro arguments that become part of commands that
6767         are evaluated.
6768
6769 2009-01-01  Bruno Haible  <bruno@clisp.org>
6770
6771         * gnulib-tool (func_reset_sigpipe): Add more comments.
6772
6773 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6774
6775         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
6776         func_emit_tests_Makefile_am, func_import): Abort loops early if we
6777         already know the answer.
6778
6779 2009-01-01  Jim Meyering  <meyering@redhat.com>
6780
6781         * lib/version-etc.c (version_etc_va): Update copyright year.
6782
6783 2008-12-30  Bruno Haible  <bruno@clisp.org>
6784
6785         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
6786         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
6787         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
6788
6789 2008-12-29  Eric Blake  <ebb9@byu.net>
6790
6791         multiarch: avoid autoconf AC_REQUIRE bug
6792         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
6793         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
6794         2.63 and older.
6795         Reported by Bruno Haible, and analyzed in
6796         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
6797
6798 2008-12-29  Bruno Haible  <bruno@clisp.org>
6799
6800         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
6801         files in subdirectories correctly.
6802         Reported by Ralf Wildenhues.
6803
6804 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6805
6806         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
6807         rather than 'join FILE -', for Solaris join.
6808
6809 2008-12-29  Bruno Haible  <bruno@clisp.org>
6810
6811         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
6812         quoting.
6813         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6814         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6815         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6816         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
6817         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6818         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6819         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6820         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6821         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6822         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6823         * m4/nls.m4 (AM_NLS): Likewise.
6824         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
6825         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6826         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6827         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6828         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6829         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6830         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
6831         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6832         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6833         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6834         * m4/xsize.m4 (gl_XSIZE): Likewise.
6835         Suggested by Jim Meyering.
6836
6837 2008-11-17  Bruce Korb  <bkorb@gnu.org>
6838
6839         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
6840         * lib/parse-duration.c: use a switch instead of cascading if's.
6841
6842 2008-12-29  Eric Blake  <ebb9@byu.net>
6843
6844         wchar.h: supply WEOF on Irix 5.3
6845         * lib/wchar.in.h (wint_t): Also supply WEOF.
6846         * lib/wctype.in.h (wint_t): Likewise.
6847         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
6848         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
6849         Reported by Tom G. Christensen.
6850
6851 2008-12-26  Bruno Haible  <bruno@clisp.org>
6852
6853         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
6854         i486, i586, i686.
6855
6856 2008-12-26  Bruno Haible  <bruno@clisp.org>
6857
6858         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
6859
6860 2008-12-26  Bruno Haible  <bruno@clisp.org>
6861
6862         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
6863         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
6864         not __STDC_CONSTANT_MACROS.
6865         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6866
6867 2008-12-25  Bruno Haible  <bruno@clisp.org>
6868
6869         Add support for universal builds to vasnprintf.
6870         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
6871         universal builds, guess no.
6872         * modules/vasnprintf-posix (Depends-on): Add multiarch.
6873         * modules/vasprintf-posix (Depends-on): Likewise.
6874         * modules/fprintf-posix (Depends-on): Likewise.
6875         * modules/vfprintf-posix (Depends-on): Likewise.
6876         * modules/snprintf-posix (Depends-on): Likewise.
6877         * modules/vsnprintf-posix (Depends-on): Likewise.
6878         * modules/sprintf-posix (Depends-on): Likewise.
6879         * modules/vsprintf-posix (Depends-on): Likewise.
6880         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6881         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6882         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6883         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6884         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6885         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6886         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6887
6888         Add support for universal builds to <inttypes.h>.
6889         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6890         _SCNu64_PREFIX): In Apple
6891         universal builds, define directly, using _LP64.
6892         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
6893         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
6894         * modules/inttypes (Depends-on): Add multiarch.
6895         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6896
6897         Add support for universal builds to <stdint.h>.
6898         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
6899         universal builds, define directly, using _LP64.
6900         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
6901         Apple universal builds, don't test for the size and suffix of ptrdiff_t
6902         and size_t.
6903         * modules/stdint (Depends-on): Add multiarch.
6904         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6905
6906         New module 'multiarch'.
6907         * modules/multiarch: New file.
6908         * m4/multiarch.m4: New file.
6909
6910 2008-12-25  Bruno Haible  <bruno@clisp.org>
6911
6912         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
6913
6914 2008-12-25  Bruno Haible  <bruno@clisp.org>
6915
6916         * modules/btowc (License): Relicense under LGPLv2+.
6917         * modules/mbsinit (License): Likewise.
6918         * modules/mbrtowc (License): Likewise.
6919         * modules/wcrtomb (License): Likewise.
6920         * modules/streq (License): Likewise.
6921         Reported by David Lutterkort <lutter@redhat.com>.
6922
6923 2008-12-23  Bruno Haible  <bruno@clisp.org>
6924
6925         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
6926
6927 2008-12-23  Bruno Haible  <bruno@clisp.org>
6928
6929         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
6930         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
6931         GETADDRINFO_LIB, not in LIBS.
6932         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
6933         * modules/canon-host (Link): Likewise.
6934         * NEWS: Mention the change.
6935         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
6936         GETADDRINFO_LIB.
6937
6938 2008-12-22  Bruno Haible  <bruno@clisp.org>
6939
6940         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
6941         * doc/posix-functions/iswalpha_l.texi: Likewise.
6942         * doc/posix-functions/iswblank_l.texi: Likewise.
6943         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6944         * doc/posix-functions/iswctype_l.texi: Likewise.
6945         * doc/posix-functions/iswdigit_l.texi: Likewise.
6946         * doc/posix-functions/iswgraph_l.texi: Likewise.
6947         * doc/posix-functions/iswlower_l.texi: Likewise.
6948         * doc/posix-functions/iswprint_l.texi: Likewise.
6949         * doc/posix-functions/iswpunct_l.texi: Likewise.
6950         * doc/posix-functions/iswspace_l.texi: Likewise.
6951         * doc/posix-functions/iswupper_l.texi: Likewise.
6952         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6953         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
6954         * doc/posix-functions/open_wmemstream.texi: Likewise.
6955         * doc/posix-functions/swscanf.texi: Likewise.
6956         * doc/posix-functions/towctrans_l.texi: Likewise.
6957         * doc/posix-functions/towlower.texi: Likewise.
6958         * doc/posix-functions/towlower_l.texi: Likewise.
6959         * doc/posix-functions/towupper.texi: Likewise.
6960         * doc/posix-functions/towupper_l.texi: Likewise.
6961         * doc/posix-functions/vfwprintf.texi: Likewise.
6962         * doc/posix-functions/vfwscanf.texi: Likewise.
6963         * doc/posix-functions/vswscanf.texi: Likewise.
6964         * doc/posix-functions/vwprintf.texi: Likewise.
6965         * doc/posix-functions/vwscanf.texi: Likewise.
6966         * doc/posix-functions/wcpcpy.texi: Likewise.
6967         * doc/posix-functions/wcpncpy.texi: Likewise.
6968         * doc/posix-functions/wcscasecmp.texi: Likewise.
6969         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
6970         * doc/posix-functions/wcscoll_l.texi: Likewise.
6971         * doc/posix-functions/wcsdup.texi: Likewise.
6972         * doc/posix-functions/wcsncasecmp.texi: Likewise.
6973         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
6974         * doc/posix-functions/wcsnlen.texi: Likewise.
6975         * doc/posix-functions/wcsnrtombs.texi: Likewise.
6976         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6977         * doc/posix-functions/wctrans_l.texi: Likewise.
6978         * doc/posix-functions/wctype_l.texi: Likewise.
6979         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
6980         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
6981         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
6982         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
6983         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
6984         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
6985         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
6986         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
6987         * doc/glibc-functions/wcschrnul.texi: Likewise.
6988         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6989         * doc/glibc-functions/wcstod_l.texi: Likewise.
6990         * doc/glibc-functions/wcstof_l.texi: Likewise.
6991         * doc/glibc-functions/wcstol_l.texi: Likewise.
6992         * doc/glibc-functions/wcstold_l.texi: Likewise.
6993         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6994         * doc/glibc-functions/wcstoq.texi: Likewise.
6995         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6996         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6997         * doc/glibc-functions/wcstouq.texi: Likewise.
6998         * doc/glibc-functions/wmempcpy.texi: Likewise.
6999
7000 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
7001             Eric Blake  <ebb9@byu.net>
7002             Paolo Bonzini  <bonzini@gnu.org>
7003             Bruno Haible  <bruno@clisp.org>
7004
7005         Make c-stack work on Haiku.
7006         * lib/c-stack.c (SA_ONSTACK): Define fallback.
7007         (c_stack_action): Use SA_ONSTACK flag.
7008
7009 2008-12-22  Bruno Haible  <bruno@clisp.org>
7010
7011         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
7012
7013 2008-12-22  Bruno Haible  <bruno@clisp.org>
7014
7015         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
7016         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
7017         being overridden.
7018         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
7019         New macros.
7020         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
7021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
7022         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
7023         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
7024
7025 2008-12-22  Bruno Haible  <bruno@clisp.org>
7026
7027         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
7028         from test code.
7029
7030 2008-12-22  Eric Blake  <ebb9@byu.net>
7031
7032         Avoid gcc warnings on cygwin.
7033         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
7034         Avoid unused variable.
7035         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
7036         Likewise.
7037
7038 2008-12-22  Bruno Haible  <bruno@clisp.org>
7039
7040         Remove HAVE_MBRTOWC conditionals.
7041         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
7042         (mbscasecmp): Assume mbrtowc function.
7043         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
7044         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
7045         * lib/mbschr.c: Include mbuiter.h unconditionally.
7046         (mbschr): Assume mbrtowc function.
7047         * lib/mbscspn.c: Include mbuiter.h unconditionally.
7048         (mbscspn): Assume mbrtowc function.
7049         * lib/mbslen.c: Include mbuiter.h unconditionally.
7050         (mbslen): Assume mbrtowc function.
7051         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
7052         (mbsncasecmp): Assume mbrtowc function.
7053         * lib/mbsnlen.c: Include mbiter.h unconditionally.
7054         (mbsnlen): Assume mbrtowc function.
7055         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
7056         (mbspbrk): Assume mbrtowc function.
7057         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
7058         (mbspcasecmp): Assume mbrtowc function.
7059         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
7060         (mbsrchr): Assume mbrtowc function.
7061         * lib/mbssep.c: Include mbuiter.h unconditionally.
7062         (mbssep): Assume mbrtowc function.
7063         * lib/mbsspn.c: Include mbuiter.h unconditionally.
7064         (mbsspn): Assume mbrtowc function.
7065         * lib/mbsstr.c: Include mbuiter.h unconditionally.
7066         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
7067         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
7068         (mbstok_r): Assume mbrtowc function.
7069         * lib/propername.c: Include mbuiter.h unconditionally.
7070         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
7071         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
7072         (trim2): Assume mbrtowc function.
7073         * lib/mbswidth.c (mbsinit): Remove fallback definition.
7074         (mbsnwidth): Assume mbrtowc function.
7075         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
7076         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
7077         fallback definitions.
7078         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
7079
7080 2008-12-22  Bruno Haible  <bruno@clisp.org>
7081
7082         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
7083
7084 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
7085
7086         * modules/regex: Request emulations for the mb*/wc* functions we need.
7087         * m4/regex.m4: Don't look for those functions here.
7088         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
7089
7090 2008-12-22  Bruno Haible  <bruno@clisp.org>
7091
7092         * modules/fnmatch (Depends-on): Remove duplicated dependency.
7093
7094 2008-12-21  Bruno Haible  <bruno@clisp.org>
7095
7096         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
7097         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
7098         (Include): Remove conditionalization.
7099         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
7100         (Include): Remove conditionalization.
7101         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
7102         (Include): Remove conditionalization.
7103         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
7104         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7105         * NEWS: Mention the change.
7106         Reported by Alan Hourihane <alanh@fairlite.co.uk>
7107         via Sergey Poznyakoff <gray@gnu.org.ua>.
7108
7109 2008-12-21  Bruno Haible  <bruno@clisp.org>
7110
7111         * MODULES.html.sh (Extended multibyte and wide character utilities
7112         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
7113         wcrtomb, wcsrtombs.
7114         (Support for systems lacking POSIX:2008): Add accept, bind, close,
7115         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
7116         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
7117         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
7118
7119 2008-12-21  Bruno Haible  <bruno@clisp.org>
7120
7121         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
7122
7123 2008-12-21  Bruno Haible  <bruno@clisp.org>
7124
7125         * modules/wcsnrtombs-tests: New file.
7126         * tests/test-wcsnrtombs1.sh: New file.
7127         * tests/test-wcsnrtombs2.sh: New file.
7128         * tests/test-wcsnrtombs3.sh: New file.
7129         * tests/test-wcsnrtombs4.sh: New file.
7130         * tests/test-wcsnrtombs.c: New file.
7131
7132         New module 'wcsnrtombs'.
7133         * lib/wchar.in.h (wcsnrtombs): New declaration.
7134         * lib/wcsnrtombs.c: New file.
7135         * lib/wcsrtombs-state.c: New file.
7136         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
7137         (internal_state): Remove variable.
7138         * m4/wcsnrtombs.m4: New file.
7139         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
7140         compilation units.
7141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
7142         HAVE_WCSNRTOMBS.
7143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
7144         HAVE_WCSNRTOMBS.
7145         * modules/wcsnrtombs: New file.
7146         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
7147         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7148
7149 2008-12-21  Bruno Haible  <bruno@clisp.org>
7150
7151         * modules/wcsrtombs-tests: New file.
7152         * tests/test-wcsrtombs1.sh: New file.
7153         * tests/test-wcsrtombs2.sh: New file.
7154         * tests/test-wcsrtombs3.sh: New file.
7155         * tests/test-wcsrtombs4.sh: New file.
7156         * tests/test-wcsrtombs.c: New file.
7157
7158         New module 'wcsrtombs'.
7159         * lib/wchar.in.h (wcsrtombs): New declaration.
7160         * lib/wcsrtombs.c: New file.
7161         * m4/wcsrtombs.m4: New file.
7162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
7163         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
7165         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7166         * modules/wcsrtombs: New file.
7167         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
7168         bugs.
7169
7170 2008-12-21  Bruno Haible  <bruno@clisp.org>
7171
7172         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
7173         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
7174         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
7175         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
7176         if not correct.
7177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
7178         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
7179         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7180         m4/locale-zh.m4, m4/codeset.m4.
7181         * doc/posix-functions/wcrtomb.texi: Document the bug.
7182
7183 2008-12-21  Bruno Haible  <bruno@clisp.org>
7184
7185         Work around a btowc() bug on IRIX 6.5.
7186         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
7187         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
7188         REPLACE_WTOBC if not.
7189         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
7190         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
7191         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
7192
7193 2008-12-21  Bruno Haible  <bruno@clisp.org>
7194
7195         * modules/wcrtomb-tests: New file.
7196         * tests/test-wcrtomb.sh: New file.
7197         * tests/test-wcrtomb.c: New file.
7198
7199         New module 'wcrtomb'.
7200         * lib/wchar.in.h (wcrtomb): New declaration.
7201         * lib/wcrtomb.c: New file.
7202         * m4/wcrtomb.m4: New file.
7203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
7204         HAVE_WCRTOMB.
7205         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
7206         HAVE_WCRTOMB.
7207         * modules/wcrtomb: New file.
7208         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7209
7210 2008-12-21  Bruno Haible  <bruno@clisp.org>
7211
7212         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
7213         * modules/mbsrtowcs (Files): Likewise.
7214         * modules/wctob (Files): Likewise.
7215         * modules/c-strcase-tests (Files): Likewise.
7216         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
7217         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
7218         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
7219         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
7220         * modules/vasnprintf-posix-tests (Files): Likewise.
7221
7222 2008-12-21  William Pursell  <bill.pursell@gmail.com>
7223
7224         gitlog-to-changelog: pass all command-line arguments to git-log
7225         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
7226         it is sometimes convenient to filter the commits in various ways.
7227         gitlog-to-changelog only allows --since to specify a start date,
7228         but git-log itself supports many other filtering mechanisms.
7229         At the moment, I want to filter by branch name.  Rather than
7230         adding a --branch option to gitlog-to-changelog, it seems more
7231         flexible to simply pass all options directly to git-log and let
7232         git do the work.  Notice that this effectively makes --since a
7233         redundant option for gitlog-to-changelog, but removing it would
7234         require current usage to change since calls would then require
7235         an additional '--'.
7236
7237 2008-12-21  Bruno Haible  <bruno@clisp.org>
7238
7239         * modules/mbsnrtowcs-tests: New file.
7240         * tests/test-mbsnrtowcs1.sh: New file.
7241         * tests/test-mbsnrtowcs2.sh: New file.
7242         * tests/test-mbsnrtowcs3.sh: New file.
7243         * tests/test-mbsnrtowcs4.sh: New file.
7244         * tests/test-mbsnrtowcs.c: New file.
7245
7246         New module 'mbsnrtowcs'.
7247         * lib/wchar.in.h (mbsnrtowcs): New declaration.
7248         * lib/mbsnrtowcs.c: New file.
7249         * lib/mbsrtowcs-state.c: New file.
7250         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
7251         (internal_state): Remove variable.
7252         * m4/mbsnrtowcs.m4: New file.
7253         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
7254         compilation units.
7255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
7256         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7257         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
7258         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7259         * modules/mbsnrtowcs: New file.
7260         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
7261         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
7262         portability problem.
7263
7264 2008-12-21  Bruno Haible  <bruno@clisp.org>
7265
7266         Work around mbsrtowcs bug.
7267         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
7268         (gl_FUNC_MBSRTOWCS): Invoke it.
7269         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7270         m4/locale-zh.m4.
7271         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
7272
7273 2008-12-21  Bruno Haible  <bruno@clisp.org>
7274
7275         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
7276
7277 2008-12-21  Bruno Haible  <bruno@clisp.org>
7278
7279         Update doc for AIX.
7280         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
7281         16-bit wchar_t type.
7282         * doc/posix-functions/btowc.texi: Likewise.
7283         * doc/posix-functions/fgetwc.texi: Likewise.
7284         * doc/posix-functions/fgetws.texi: Likewise.
7285         * doc/posix-functions/fputwc.texi: Likewise.
7286         * doc/posix-functions/fputws.texi: Likewise.
7287         * doc/posix-functions/fwide.texi: Likewise.
7288         * doc/posix-functions/fwprintf.texi: Likewise.
7289         * doc/posix-functions/fwscanf.texi: Likewise.
7290         * doc/posix-functions/getwchar.texi: Likewise.
7291         * doc/posix-functions/getwc.texi: Likewise.
7292         * doc/posix-functions/iswalnum.texi: Likewise.
7293         * doc/posix-functions/iswalpha.texi: Likewise.
7294         * doc/posix-functions/iswblank.texi: Likewise.
7295         * doc/posix-functions/iswcntrl.texi: Likewise.
7296         * doc/posix-functions/iswctype.texi: Likewise.
7297         * doc/posix-functions/iswdigit.texi: Likewise.
7298         * doc/posix-functions/iswgraph.texi: Likewise.
7299         * doc/posix-functions/iswlower.texi: Likewise.
7300         * doc/posix-functions/iswprint.texi: Likewise.
7301         * doc/posix-functions/iswpunct.texi: Likewise.
7302         * doc/posix-functions/iswspace.texi: Likewise.
7303         * doc/posix-functions/iswupper.texi: Likewise.
7304         * doc/posix-functions/iswxdigit.texi: Likewise.
7305         * doc/posix-functions/mbrtowc.texi: Likewise.
7306         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7307         * doc/posix-functions/mbstowcs.texi: Likewise.
7308         * doc/posix-functions/mbtowc.texi: Likewise.
7309         * doc/posix-functions/putwchar.texi: Likewise.
7310         * doc/posix-functions/putwc.texi: Likewise.
7311         * doc/posix-functions/swprintf.texi: Likewise.
7312         * doc/posix-functions/tolower.texi: Likewise.
7313         * doc/posix-functions/toupper.texi: Likewise.
7314         * doc/posix-functions/towctrans.texi: Likewise.
7315         * doc/posix-functions/ungetwc.texi: Likewise.
7316         * doc/posix-functions/vswprintf.texi: Likewise.
7317         * doc/posix-functions/wcrtomb.texi: Likewise.
7318         * doc/posix-functions/wcscat.texi: Likewise.
7319         * doc/posix-functions/wcschr.texi: Likewise.
7320         * doc/posix-functions/wcscmp.texi: Likewise.
7321         * doc/posix-functions/wcscoll.texi: Likewise.
7322         * doc/posix-functions/wcscpy.texi: Likewise.
7323         * doc/posix-functions/wcscspn.texi: Likewise.
7324         * doc/posix-functions/wcsftime.texi: Likewise.
7325         * doc/posix-functions/wcslen.texi: Likewise.
7326         * doc/posix-functions/wcsncat.texi: Likewise.
7327         * doc/posix-functions/wcsncmp.texi: Likewise.
7328         * doc/posix-functions/wcsncpy.texi: Likewise.
7329         * doc/posix-functions/wcspbrk.texi: Likewise.
7330         * doc/posix-functions/wcsrchr.texi: Likewise.
7331         * doc/posix-functions/wcsrtombs.texi: Likewise.
7332         * doc/posix-functions/wcsspn.texi: Likewise.
7333         * doc/posix-functions/wcsstr.texi: Likewise.
7334         * doc/posix-functions/wcstod.texi: Likewise.
7335         * doc/posix-functions/wcstof.texi: Likewise.
7336         * doc/posix-functions/wcstoimax.texi: Likewise.
7337         * doc/posix-functions/wcstok.texi: Likewise.
7338         * doc/posix-functions/wcstold.texi: Likewise.
7339         * doc/posix-functions/wcstoll.texi: Likewise.
7340         * doc/posix-functions/wcstol.texi: Likewise.
7341         * doc/posix-functions/wcstombs.texi: Likewise.
7342         * doc/posix-functions/wcstoull.texi: Likewise.
7343         * doc/posix-functions/wcstoul.texi: Likewise.
7344         * doc/posix-functions/wcstoumax.texi: Likewise.
7345         * doc/posix-functions/wcswidth.texi: Likewise.
7346         * doc/posix-functions/wcsxfrm.texi: Likewise.
7347         * doc/posix-functions/wctob.texi: Likewise.
7348         * doc/posix-functions/wctomb.texi: Likewise.
7349         * doc/posix-functions/wctrans.texi: Likewise.
7350         * doc/posix-functions/wctype.texi: Likewise.
7351         * doc/posix-functions/wcwidth.texi: Likewise.
7352         * doc/posix-functions/wmemchr.texi: Likewise.
7353         * doc/posix-functions/wmemcmp.texi: Likewise.
7354         * doc/posix-functions/wmemcpy.texi: Likewise.
7355         * doc/posix-functions/wmemmove.texi: Likewise.
7356         * doc/posix-functions/wmemset.texi: Likewise.
7357         * doc/posix-functions/wprintf.texi: Likewise.
7358         * doc/posix-functions/wscanf.texi: Likewise.
7359
7360 2008-12-21  Bruno Haible  <bruno@clisp.org>
7361
7362         Update doc for HP-UX 11.11.
7363         * doc/posix-functions/btowc.texi: Clarify that the function is missing
7364         in HP-UX version 11.00, not in all versions of HP-UX 11.
7365         * doc/posix-functions/fwide.texi: Likewise.
7366         * doc/posix-functions/fwprintf.texi: Likewise.
7367         * doc/posix-functions/fwscanf.texi: Likewise.
7368         * doc/posix-functions/inet_ntop.texi: Likewise.
7369         * doc/posix-functions/inet_pton.texi: Likewise.
7370         * doc/posix-functions/mbrlen.texi: Likewise.
7371         * doc/posix-functions/mbrtowc.texi: Likewise.
7372         * doc/posix-functions/mbsinit.texi: Likewise.
7373         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7374         * doc/posix-functions/swprintf.texi: Likewise.
7375         * doc/posix-functions/swscanf.texi: Likewise.
7376         * doc/posix-functions/towctrans.texi: Likewise.
7377         * doc/posix-functions/vfwprintf.texi: Likewise.
7378         * doc/posix-functions/vswprintf.texi: Likewise.
7379         * doc/posix-functions/vwprintf.texi: Likewise.
7380         * doc/posix-functions/wcrtomb.texi: Likewise.
7381         * doc/posix-functions/wcsrtombs.texi: Likewise.
7382         * doc/posix-functions/wcsstr.texi: Likewise.
7383         * doc/posix-functions/wctob.texi: Likewise.
7384         * doc/posix-functions/wctrans.texi: Likewise.
7385         * doc/posix-functions/wmemchr.texi: Likewise.
7386         * doc/posix-functions/wmemcmp.texi: Likewise.
7387         * doc/posix-functions/wmemcpy.texi: Likewise.
7388         * doc/posix-functions/wmemmove.texi: Likewise.
7389         * doc/posix-functions/wmemset.texi: Likewise.
7390         * doc/posix-functions/wprintf.texi: Likewise.
7391         * doc/posix-functions/wscanf.texi: Likewise.
7392
7393 2008-12-21  Bruno Haible  <bruno@clisp.org>
7394
7395         Work around a portability problem.
7396         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
7397         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
7398
7399 2008-12-20  Bruno Haible  <bruno@clisp.org>
7400
7401         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
7402         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
7403         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
7404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
7405         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
7406
7407         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
7408         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
7409         set.
7410         (GNULIB_defined_mbstate_t): New macro.
7411         (mbsinit): Redefine if REPLACE_MBSINIT is set.
7412         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
7413         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
7414         reuses the system's mbrtowc function but works around the bugs.
7415         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
7416         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
7417         macros.
7418         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
7419         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
7420         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
7421         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
7422         REPLACE_MBSINIT if mbsinit needs to be overridden.
7423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
7424         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7425         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
7426         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7427         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7428         m4/locale-zh.m4.
7429         (Depends): Add mbsinit.
7430         * modules/mbsinit (Depends): Add mbrtowc.
7431         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
7432
7433 2008-12-20  Bruno Haible  <bruno@clisp.org>
7434
7435         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
7436         so that there are no conversion errors on AIX.
7437         * tests/test-mbsrtowcs.c (main): LIkewise.
7438
7439 2008-12-20  Bruno Haible  <bruno@clisp.org>
7440
7441         Work around wctob bug on Solaris <= 9.
7442         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
7443         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
7444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
7445         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
7446         * modules/wctob (Files): Add m4/locale-fr.m4.
7447         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
7448
7449 2008-12-20  Bruno Haible  <bruno@clisp.org>
7450
7451         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
7452         /dev/null.
7453         * tests/test-select-in.sh: Likewise.
7454         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7455
7456 2008-12-20  Bruno Haible  <bruno@clisp.org>
7457
7458         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
7459         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
7460         Cygwin 1.5.x.
7461
7462 2008-12-20  Bruno Haible  <bruno@clisp.org>
7463
7464         Ensure mbstate_t is defined on HP-UX 11.11.
7465         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
7466         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
7467         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
7468         AC_USE_SYSTEM_EXTENSIONS.
7469         * modules/fnmatch (Depends-on): Add extensions.
7470         * modules/mbrlen (Depends-on): Likewise.
7471         * modules/mbrtowc (Depends-on): Likewise.
7472         * modules/mbsinit (Depends-on): Likewise.
7473         * modules/mbsrtowcs (Depends-on): Likewise.
7474         * modules/mbswidth (Depends-on): Likewise.
7475         * modules/quotearg (Depends-on): Likewise.
7476         * modules/strftime (Depends-on): Likewise.
7477
7478 2008-12-20  Bruno Haible  <bruno@clisp.org>
7479
7480         Ensure wctob is declared on IRIX 6.5.
7481         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
7482         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
7483         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
7484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
7485         of HAVE_WCTOB.
7486         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
7487         HAVE_WCTOB.
7488         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
7489
7490 2008-12-19  Bruno Haible  <bruno@clisp.org>
7491
7492         * modules/mbsrtowcs-tests: New file.
7493         * tests/test-mbsrtowcs1.sh: New file.
7494         * tests/test-mbsrtowcs2.sh: New file.
7495         * tests/test-mbsrtowcs3.sh: New file.
7496         * tests/test-mbsrtowcs4.sh: New file.
7497         * tests/test-mbsrtowcs.c: New file.
7498
7499         New module 'mbsrtowcs'.
7500         * lib/wchar.in.h (mbsrtowcs): New declaration.
7501         * lib/mbsrtowcs.c: New file.
7502         * m4/mbsrtowcs.m4: New file.
7503         * modules/mbsrtowcs: New file.
7504         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
7505         HAVE_MBSRTOWCS.
7506         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
7507         HAVE_MBSRTOWCS.
7508         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
7509
7510 2008-12-19  Bruno Haible  <bruno@clisp.org>
7511
7512         New module 'mbrlen'.
7513         * lib/wchar.in.h (mbrlen): New declaration.
7514         * lib/mbrlen.c: New file.
7515         * m4/mbrlen.m4: New file.
7516         * modules/mbrlen: New file.
7517         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
7518         HAVE_MBRLEN.
7519         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
7520         HAVE_MBRLEN.
7521         * doc/posix-functions/mbrlen.texi: Document the new module.
7522
7523 2008-12-19  Bruno Haible  <bruno@clisp.org>
7524
7525         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
7526         * modules/mbrtowc (Depends-on): Add verify.
7527         Suggested by Paul Eggert.
7528
7529 2008-12-18  Bruno Haible  <bruno@clisp.org>
7530
7531         * modules/mbsinit-tests: New file.
7532         * tests/test-mbsinit.sh: New file.
7533         * tests/test-mbsinit.c: New file.
7534
7535 2008-12-18  Bruno Haible  <bruno@clisp.org>
7536
7537         * modules/mbrtowc-tests: New file.
7538         * tests/test-mbrtowc1.sh: New file.
7539         * tests/test-mbrtowc2.sh: New file.
7540         * tests/test-mbrtowc3.sh: New file.
7541         * tests/test-mbrtowc4.sh: New file.
7542         * tests/test-mbrtowc.c: New file.
7543
7544         New module 'mbrtowc'.
7545         * lib/wchar.in.h (mbstate_t): Override when the system does not have
7546         mbsinit and mbrtowc.
7547         (mbrtowc): New declaration.
7548         * lib/mbrtowc.c: New file.
7549         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
7550         * modules/mbrtowc: New file.
7551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
7552         HAVE_MBRTOWC.
7553         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
7554         HAVE_MBRTOWC.
7555         * doc/posix-functions/mbrtowc.texi: Document the new module.
7556
7557 2008-12-18  Bruno Haible  <bruno@clisp.org>
7558
7559         New module 'wctob'.
7560         * lib/wchar.in.h (wctob): New declaration.
7561         * lib/wctob.c: New file.
7562         * m4/wctob.m4: New file.
7563         * modules/wctob: New file.
7564         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
7565         HAVE_WCTOB.
7566         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
7567         * doc/posix-functions/wctob.texi: Document the new module.
7568
7569 2008-12-18  Bruno Haible  <bruno@clisp.org>
7570
7571         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
7572         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
7573
7574 2008-12-18  Simon Josefsson  <simon@josefsson.org>
7575
7576         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
7577         G. Christensen" <tgc@jupiterrise.com>.
7578
7579         * lib/flock.c: Need to include errno.h.  Reported by "Tom
7580         G. Christensen" <tgc@jupiterrise.com>.
7581
7582         * lib/flock.c: Need to include string.h.  Reported by "Tom
7583         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
7584         <ebb9@byu.net>.
7585
7586 2008-12-18  Bruno Haible  <bruno@clisp.org>
7587
7588         * m4/locale-ja.m4: New file, from GNU gettext.
7589
7590 2008-12-17  Bruno Haible  <bruno@clisp.org>
7591
7592         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
7593         Suggested by Eric Blake.
7594
7595 2008-12-17  Bruno Haible  <bruno@clisp.org>
7596
7597         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
7598
7599 2008-12-17  Bruno Haible  <bruno@clisp.org>
7600
7601         * lib/mbsinit.c: Include verify.h. Verify an assumption.
7602         * modules/mbsinit (Depends-on): Add verify.
7603         Suggested by Paul Eggert.
7604
7605 2008-12-17  Bruno Haible  <bruno@clisp.org>
7606
7607         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
7608         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
7609         gl_FUNC_MBRTOWC.
7610         * m4/mbiter.m4 (gl_MBITER): LIkewise.
7611         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
7612         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
7613         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
7614         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
7615         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
7616         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
7617         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
7618         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
7619         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
7620         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
7621         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
7622         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
7623         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
7624         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
7625         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7626         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
7627         * modules/trim (configure.ac): Likewise.
7628
7629 2008-12-17  Bruno Haible  <bruno@clisp.org>
7630
7631         * modules/btowc-tests: New file.
7632         * tests/test-btowc1.sh: New file.
7633         * tests/test-btowc2.sh: New file.
7634         * tests/test-btowc.c: New file.
7635
7636         New module 'btowc'.
7637         * lib/wchar.in.h (btowc): New declaration.
7638         * lib/btowc.c: New file.
7639         * m4/btowc.m4: New file.
7640         * modules/btowc: New file.
7641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
7642         HAVE_BTOWC.
7643         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
7644         * doc/posix-functions/btowc.texi: Document the new module.
7645
7646 2008-12-17  Bruno Haible  <bruno@clisp.org>
7647
7648         New module 'mbsinit'.
7649         * lib/wchar.in.h (mbsinit): New declaration.
7650         * lib/mbsinit.c: New file.
7651         * m4/mbsinit.m4: New file.
7652         * modules/mbsinit: New file.
7653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
7654         HAVE_MBSINIT.
7655         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
7656         HAVE_MBSINIT.
7657         * doc/posix-functions/mbsinit.texi: Document the new module.
7658
7659 2008-12-16  Bruno Haible  <bruno@clisp.org>
7660
7661         * lib/unistd.in.h: Add comment.
7662         * tests/test-environ.c: Don't include <stdlib.h>.
7663
7664 2008-12-16  Bruno Haible  <bruno@clisp.org>
7665
7666         * lib/parse-duration.h (parse_duration): Document return value
7667         convention.
7668         * lib/parse-duration.c: Include specification header first. Add
7669         comments.
7670         (_): Remove macro.
7671         (parse_year_month_day, parse_hour_minute_second): Move side effects
7672         outside of strchr call.
7673         (parse_non_iso8601): Move side effects outside of isspace call.
7674         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
7675         call.
7676
7677 2008-12-16  Bruno Haible  <bruno@clisp.org>
7678
7679         * tests/test-parse-duration.sh: Produce no output when the test
7680         succeeds.
7681
7682 2008-12-16  Bruno Haible  <bruno@clisp.org>
7683
7684         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
7685         expressions.
7686
7687 2008-12-15  Bruno Haible  <bruno@clisp.org>
7688
7689         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
7690         * doc/glibc-functions/flistxattr.texi: Likewise.
7691         * doc/glibc-functions/fopencookie.texi: Likewise.
7692         * doc/glibc-functions/fremovexattr.texi: Likewise.
7693         * doc/glibc-functions/fsetxattr.texi: Likewise.
7694         * doc/glibc-functions/getxattr.texi: Likewise.
7695         * doc/glibc-functions/lgetxattr.texi: Likewise.
7696         * doc/glibc-functions/listxattr.texi: Likewise.
7697         * doc/glibc-functions/llistxattr.texi: Likewise.
7698         * doc/glibc-functions/lremovexattr.texi: Likewise.
7699         * doc/glibc-functions/lsetxattr.texi: Likewise.
7700         * doc/glibc-functions/removexattr.texi: Likewise.
7701         * doc/glibc-functions/setxattr.texi: Likewise.
7702         * doc/posix-functions/open_memstream.texi: Likewise.
7703
7704 2008-12-15  Eric Blake  <ebb9@byu.net>
7705
7706         Update doc for cygwin 1.7.
7707         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
7708         functions.
7709         * doc/posix-functions/fchmodat.texi: Likewise.
7710         * doc/posix-functions/fchownat.texi: Likewise.
7711         * doc/posix-functions/fdopendir.texi: Likewise.
7712         * doc/posix-functions/fmemopen.texi: Likewise.
7713         * doc/posix-functions/freeaddrinfo.texi: Likewise.
7714         * doc/posix-functions/fstatat.texi: Likewise.
7715         * doc/posix-functions/futimens.texi: Likewise.
7716         * doc/posix-functions/gai_strerror.texi: Likewise.
7717         * doc/posix-functions/getaddrinfo.texi: Likewise.
7718         * doc/posix-functions/getnameinfo.texi: Likewise.
7719         * doc/posix-functions/if_freenameindex.texi: Likewise.
7720         * doc/posix-functions/if_indextoname.texi: Likewise.
7721         * doc/posix-functions/if_nameindex.texi: Likewise.
7722         * doc/posix-functions/if_nametoindex.texi: Likewise.
7723         * doc/posix-functions/insque.texi: Likewise.
7724         * doc/posix-functions/linkat.texi: Likewise.
7725         * doc/posix-functions/llrint.texi: Likewise.
7726         * doc/posix-functions/llrintf.texi: Likewise.
7727         * doc/posix-functions/llrintl.texi: Likewise.
7728         * doc/posix-functions/lockf.texi: Likewise.
7729         * doc/posix-functions/lrintl.texi: Likewise.
7730         * doc/posix-functions/mkdirat.texi: Likewise.
7731         * doc/posix-functions/mkfifoat.texi: Likewise.
7732         * doc/posix-functions/mknodat.texi: Likewise.
7733         * doc/posix-functions/mq_close.texi: Likewise.
7734         * doc/posix-functions/mq_getattr.texi: Likewise.
7735         * doc/posix-functions/mq_notify.texi: Likewise.
7736         * doc/posix-functions/mq_open.texi: Likewise.
7737         * doc/posix-functions/mq_receive.texi: Likewise.
7738         * doc/posix-functions/mq_send.texi: Likewise.
7739         * doc/posix-functions/mq_setattr.texi: Likewise.
7740         * doc/posix-functions/mq_timedreceive.texi: Likewise.
7741         * doc/posix-functions/mq_timedsend.texi: Likewise.
7742         * doc/posix-functions/mq_unlink.texi: Likewise.
7743         * doc/posix-functions/open_memstream.texi: Likewise.
7744         * doc/posix-functions/openat.texi: Likewise.
7745         * doc/posix-functions/posix_fadvise.texi: Likewise.
7746         * doc/posix-functions/posix_fallocate.texi: Likewise.
7747         * doc/posix-functions/posix_madvise.texi: Likewise.
7748         * doc/posix-functions/posix_memalign.texi: Likewise.
7749         * doc/posix-functions/posix_openpt.texi: Likewise.
7750         * doc/posix-functions/readlinkat.texi: Likewise.
7751         * doc/posix-functions/remque.texi: Likewise.
7752         * doc/posix-functions/renameat.texi: Likewise.
7753         * doc/posix-functions/rintl.texi: Likewise.
7754         * doc/posix-functions/sem_unlink.texi: Likewise.
7755         * doc/posix-functions/shm_open.texi: Likewise.
7756         * doc/posix-functions/shm_unlink.texi: Likewise.
7757         * doc/posix-functions/signgam.texi: Likewise.
7758         * doc/posix-functions/sigset.texi: Likewise.
7759         * doc/posix-functions/stpcpy.texi: Likewise.
7760         * doc/posix-functions/stpncpy.texi: Likewise.
7761         * doc/posix-functions/strerror.texi: Likewise.
7762         * doc/posix-functions/strtod.texi: Likewise.
7763         * doc/posix-functions/symlinkat.texi: Likewise.
7764         * doc/posix-functions/unlinkat.texi: Likewise.
7765         * doc/posix-functions/utimensat.texi: Likewise.
7766         * doc/glibc-functions/bindresvport.texi: Likewise.
7767         * doc/glibc-functions/dn_expand.texi: Likewise.
7768         * doc/glibc-functions/exp10.texi: Likewise.
7769         * doc/glibc-functions/exp10f.texi: Likewise.
7770         * doc/glibc-functions/fgetxattr.texi: Likewise.
7771         * doc/glibc-functions/flistxattr.texi: Likewise.
7772         * doc/glibc-functions/fopencookie.texi: Likewise.
7773         * doc/glibc-functions/freeifaddrs.texi: Likewise.
7774         * doc/glibc-functions/fremovexattr.texi: Likewise.
7775         * doc/glibc-functions/fsetxattr.texi: Likewise.
7776         * doc/glibc-functions/getifaddrs.texi: Likewise.
7777         * doc/glibc-functions/getxattr.texi: Likewise.
7778         * doc/glibc-functions/lgetxattr.texi: Likewise.
7779         * doc/glibc-functions/listxattr.texi: Likewise.
7780         * doc/glibc-functions/llistxattr.texi: Likewise.
7781         * doc/glibc-functions/lremovexattr.texi: Likewise.
7782         * doc/glibc-functions/lsetxattr.texi: Likewise.
7783         * doc/glibc-functions/pow10.texi: Likewise.
7784         * doc/glibc-functions/pow10f.texi: Likewise.
7785         * doc/glibc-functions/rcmd_af.texi: Likewise.
7786         * doc/glibc-functions/removexattr.texi: Likewise.
7787         * doc/glibc-functions/res_init.texi: Likewise.
7788         * doc/glibc-functions/res_mkquery.texi: Likewise.
7789         * doc/glibc-functions/res_query.texi: Likewise.
7790         * doc/glibc-functions/res_querydomain.texi: Likewise.
7791         * doc/glibc-functions/res_send.texi: Likewise.
7792         * doc/glibc-functions/rresvport_af.texi: Likewise.
7793         * doc/glibc-functions/setxattr.texi: Likewise.
7794         * doc/glibc-functions/strcasestr.texi: Likewise.
7795
7796 2008-12-15  Bruno Haible  <bruno@clisp.org>
7797
7798         Fix compilation error on OSF/1 4.0.
7799         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
7800         <sys/time.h>, simply delegate to the system header.
7801         Reported by Daniel Richard G. <oss@teragram.com>.
7802
7803 2008-12-15  Bruno Haible  <bruno@clisp.org>
7804
7805         * doc/posix-functions/openat.texi: Mention the 'openat' module.
7806         * doc/posix-functions/fchmodat.texi: Likewise.
7807         * doc/posix-functions/fchownat.texi: Likewise.
7808         * doc/posix-functions/fdopendir.texi: Likewise.
7809         * doc/posix-functions/fstatat.texi: Likewise.
7810         * doc/posix-functions/mkdirat.texi: Likewise.
7811         * doc/posix-functions/unlinkat.texi: Likewise.
7812
7813 2008-12-14  Bruno Haible  <bruno@clisp.org>
7814
7815         Update doc for POSIX:2008.
7816         * doc/posix-functions/faccessat.texi: New file.
7817         * doc/posix-functions/fchmodat.texi: New file.
7818         * doc/posix-functions/fchownat.texi: New file.
7819         * doc/posix-functions/fdopendir.texi: New file.
7820         * doc/posix-functions/fstatat.texi: New file.
7821         * doc/posix-functions/futimens.texi: New file.
7822         * doc/posix-functions/linkat.texi: New file.
7823         * doc/posix-functions/mkdirat.texi: New file.
7824         * doc/posix-functions/mkfifoat.texi: New file.
7825         * doc/posix-functions/mknodat.texi: New file.
7826         * doc/posix-functions/open_wmemstream.texi: New file.
7827         * doc/posix-functions/openat.texi: New file.
7828         * doc/posix-functions/psiginfo.texi: New file.
7829         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
7830         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
7831         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
7832         * doc/posix-functions/readlinkat.texi: New file.
7833         * doc/posix-functions/renameat.texi: New file.
7834         * doc/posix-functions/strerror_l.texi: New file.
7835         * doc/posix-functions/symlinkat.texi: New file.
7836         * doc/posix-functions/unlinkat.texi: New file.
7837         * doc/posix-functions/utimensat.texi: New file.
7838         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7839
7840 2008-12-14  Bruno Haible  <bruno@clisp.org>
7841
7842         Update doc for POSIX:2008.
7843         * doc/posix-functions/alphasort.texi: Renamed from
7844         doc/glibc-functions/alphasort.texi.
7845         * doc/posix-functions/dirfd.texi: Renamed from
7846         doc/glibc-functions/dirfd.texi.
7847         * doc/posix-functions/dprintf.texi: Renamed from
7848         doc/glibc-functions/dprintf.texi.
7849         * doc/posix-functions/duplocale.texi: Renamed from
7850         doc/glibc-functions/duplocale.texi.
7851         * doc/posix-functions/fexecve.texi: Renamed from
7852         doc/glibc-functions/fexecve.texi.
7853         * doc/posix-functions/fmemopen.texi: Renamed from
7854         doc/glibc-functions/fmemopen.texi.
7855         * doc/posix-functions/freelocale.texi: Renamed from
7856         doc/glibc-functions/freelocale.texi.
7857         * doc/posix-functions/getdate_err.texi: Renamed from
7858         doc/glibc-functions/getdate_err.texi.
7859         * doc/posix-functions/isalnum_l.texi: Renamed from
7860         doc/glibc-functions/isalnum_l.texi.
7861         * doc/posix-functions/isalpha_l.texi: Renamed from
7862         doc/glibc-functions/isalpha_l.texi.
7863         * doc/posix-functions/isblank_l.texi: Renamed from
7864         doc/glibc-functions/isblank_l.texi.
7865         * doc/posix-functions/iscntrl_l.texi: Renamed from
7866         doc/glibc-functions/iscntrl_l.texi.
7867         * doc/posix-functions/isdigit_l.texi: Renamed from
7868         doc/glibc-functions/isdigit_l.texi.
7869         * doc/posix-functions/isgraph_l.texi: Renamed from
7870         doc/glibc-functions/isgraph_l.texi.
7871         * doc/posix-functions/islower_l.texi: Renamed from
7872         doc/glibc-functions/islower_l.texi.
7873         * doc/posix-functions/isprint_l.texi: Renamed from
7874         doc/glibc-functions/isprint_l.texi.
7875         * doc/posix-functions/ispunct_l.texi: Renamed from
7876         doc/glibc-functions/ispunct_l.texi.
7877         * doc/posix-functions/isspace_l.texi: Renamed from
7878         doc/glibc-functions/isspace_l.texi.
7879         * doc/posix-functions/isupper_l.texi: Renamed from
7880         doc/glibc-functions/isupper_l.texi.
7881         * doc/posix-functions/iswalnum_l.texi: Renamed from
7882         doc/glibc-functions/iswalnum_l.texi.
7883         * doc/posix-functions/iswalpha_l.texi: Renamed from
7884         doc/glibc-functions/iswalpha_l.texi.
7885         * doc/posix-functions/iswblank_l.texi: Renamed from
7886         doc/glibc-functions/iswblank_l.texi.
7887         * doc/posix-functions/iswcntrl_l.texi: Renamed from
7888         doc/glibc-functions/iswcntrl_l.texi.
7889         * doc/posix-functions/iswctype_l.texi: Renamed from
7890         doc/glibc-functions/iswctype_l.texi.
7891         * doc/posix-functions/iswdigit_l.texi: Renamed from
7892         doc/glibc-functions/iswdigit_l.texi.
7893         * doc/posix-functions/iswgraph_l.texi: Renamed from
7894         doc/glibc-functions/iswgraph_l.texi.
7895         * doc/posix-functions/iswlower_l.texi: Renamed from
7896         doc/glibc-functions/iswlower_l.texi.
7897         * doc/posix-functions/iswprint_l.texi: Renamed from
7898         doc/glibc-functions/iswprint_l.texi.
7899         * doc/posix-functions/iswpunct_l.texi: Renamed from
7900         doc/glibc-functions/iswpunct_l.texi.
7901         * doc/posix-functions/iswspace_l.texi: Renamed from
7902         doc/glibc-functions/iswspace_l.texi.
7903         * doc/posix-functions/iswupper_l.texi: Renamed from
7904         doc/glibc-functions/iswupper_l.texi.
7905         * doc/posix-functions/iswxdigit_l.texi: Renamed from
7906         doc/glibc-functions/iswxdigit_l.texi.
7907         * doc/posix-functions/isxdigit_l.texi: Renamed from
7908         doc/glibc-functions/isxdigit_l.texi.
7909         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
7910         doc/glibc-functions/mbsnrtowcs.texi.
7911         * doc/posix-functions/mkdtemp.texi: Renamed from
7912         doc/glibc-functions/mkdtemp.texi.
7913         * doc/posix-functions/newlocale.texi: Renamed from
7914         doc/glibc-functions/newlocale.texi.
7915         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
7916         doc/glibc-functions/nl_langinfo_l.texi.
7917         * doc/posix-functions/open_memstream.texi: Renamed from
7918         doc/glibc-functions/open_memstream.texi.
7919         * doc/posix-functions/opterr.texi: Renamed from
7920         doc/glibc-functions/opterr.texi.
7921         * doc/posix-functions/optind.texi: Renamed from
7922         doc/glibc-functions/optind.texi.
7923         * doc/posix-functions/optopt.texi: Renamed from
7924         doc/glibc-functions/optopt.texi.
7925         * doc/posix-functions/psignal.texi: Renamed from
7926         doc/glibc-functions/psignal.texi.
7927         * doc/posix-functions/scandir.texi: Renamed from
7928         doc/glibc-functions/scandir.texi.
7929         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
7930         doc/glibc-functions/sched_get_priority_min.texi.
7931         * doc/posix-functions/signgam.texi: Renamed from
7932         doc/glibc-functions/signgam.texi.
7933         * doc/posix-functions/stpcpy.texi: Renamed from
7934         doc/glibc-functions/stpcpy.texi.
7935         * doc/posix-functions/stpncpy.texi: Renamed from
7936         doc/glibc-functions/stpncpy.texi.
7937         * doc/posix-functions/strcasecmp_l.texi: Renamed from
7938         doc/glibc-functions/strcasecmp_l.texi.
7939         * doc/posix-functions/strcoll_l.texi: Renamed from
7940         doc/glibc-functions/strcoll_l.texi.
7941         * doc/posix-functions/strfmon_l.texi: Renamed from
7942         doc/glibc-functions/strfmon_l.texi.
7943         * doc/posix-functions/strftime_l.texi: Renamed from
7944         doc/glibc-functions/strftime_l.texi.
7945         * doc/posix-functions/strncasecmp_l.texi: Renamed from
7946         doc/glibc-functions/strncasecmp_l.texi.
7947         * doc/posix-functions/strndup.texi: Renamed from
7948         doc/glibc-functions/strndup.texi.
7949         * doc/posix-functions/strnlen.texi: Renamed from
7950         doc/glibc-functions/strnlen.texi.
7951         * doc/posix-functions/strsignal.texi: Renamed from
7952         doc/glibc-functions/strsignal.texi.
7953         * doc/posix-functions/strxfrm_l.texi: Renamed from
7954         doc/glibc-functions/strxfrm_l.texi.
7955         * doc/posix-functions/timer_gettime.texi: Renamed from
7956         doc/glibc-functions/timer_gettime.texi.
7957         * doc/posix-functions/tolower_l.texi: Renamed from
7958         doc/glibc-functions/tolower_l.texi.
7959         * doc/posix-functions/toupper_l.texi: Renamed from
7960         doc/glibc-functions/toupper_l.texi.
7961         * doc/posix-functions/towctrans_l.texi: Renamed from
7962         doc/glibc-functions/towctrans_l.texi.
7963         * doc/posix-functions/towlower_l.texi: Renamed from
7964         doc/glibc-functions/towlower_l.texi.
7965         * doc/posix-functions/towupper_l.texi: Renamed from
7966         doc/glibc-functions/towupper_l.texi.
7967         * doc/posix-functions/uselocale.texi: Renamed from
7968         doc/glibc-functions/uselocale.texi.
7969         * doc/posix-functions/vdprintf.texi: Renamed from
7970         doc/glibc-functions/vdprintf.texi.
7971         * doc/posix-functions/wcpcpy.texi:
7972         Renamed from doc/glibc-functions/wcpcpy.texi.
7973         * doc/posix-functions/wcpncpy.texi: Renamed from
7974         doc/glibc-functions/wcpncpy.texi.
7975         * doc/posix-functions/wcscasecmp.texi: Renamed from
7976         doc/glibc-functions/wcscasecmp.texi.
7977         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
7978         doc/glibc-functions/wcscasecmp_l.texi.
7979         * doc/posix-functions/wcscoll_l.texi: Renamed from
7980         doc/glibc-functions/wcscoll_l.texi.
7981         * doc/posix-functions/wcsdup.texi: Renamed from
7982         doc/glibc-functions/wcsdup.texi.
7983         * doc/posix-functions/wcsncasecmp.texi: Renamed from
7984         doc/glibc-functions/wcsncasecmp.texi.
7985         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
7986         doc/glibc-functions/wcsncasecmp_l.texi.
7987         * doc/posix-functions/wcsnlen.texi: Renamed from
7988         doc/glibc-functions/wcsnlen.texi.
7989         * doc/posix-functions/wcsnrtombs.texi: Renamed from
7990         doc/glibc-functions/wcsnrtombs.texi.
7991         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
7992         doc/glibc-functions/wcsxfrm_l.texi.
7993         * doc/posix-functions/wctrans_l.texi: Renamed from
7994         doc/glibc-functions/wctrans_l.texi.
7995         * doc/posix-functions/wctype_l.texi: Renamed from
7996         doc/glibc-functions/wctype_l.texi.
7997         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7998         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
7999         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
8000         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
8001         these subsections.
8002         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
8003         Remove sections.
8004
8005 2008-12-14  Bruno Haible  <bruno@clisp.org>
8006
8007         Update doc for POSIX:2008.
8008         * doc/posix-functions/*.texi: Update URL of POSIX specification.
8009
8010 2008-12-14  Bruno Haible  <bruno@clisp.org>
8011
8012         Update doc for POSIX:2008.
8013         * doc/pastposix-functions/bcmp.texi: Renamed from
8014         doc/posix-functions/bcmp.texi.
8015         * doc/pastposix-functions/bcopy.texi: Renamed from
8016         doc/posix-functions/bcopy.texi.
8017         * doc/pastposix-functions/bsd_signal.texi: Renamed from
8018         doc/posix-functions/bsd_signal.texi.
8019         * doc/pastposix-functions/bzero.texi: Renamed from
8020         doc/posix-functions/bzero.texi.
8021         * doc/pastposix-functions/ecvt.texi: Renamed from
8022         doc/posix-functions/ecvt.texi.
8023         * doc/pastposix-functions/fcvt.texi: Renamed from
8024         doc/posix-functions/fcvt.texi.
8025         * doc/pastposix-functions/ftime.texi: Renamed from
8026         doc/posix-functions/ftime.texi.
8027         * doc/pastposix-functions/gcvt.texi: Renamed from
8028         doc/posix-functions/gcvt.texi.
8029         * doc/pastposix-functions/getcontext.texi: Renamed from
8030         doc/posix-functions/getcontext.texi.
8031         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
8032         doc/posix-functions/gethostbyaddr.texi.
8033         * doc/pastposix-functions/gethostbyname.texi: Renamed from
8034         doc/posix-functions/gethostbyname.texi.
8035         * doc/pastposix-functions/getwd.texi: Renamed from
8036         doc/posix-functions/getwd.texi.
8037         * doc/pastposix-functions/h_errno.texi: Renamed from
8038         doc/posix-functions/h_errno.texi.
8039         * doc/pastposix-functions/index.texi: Renamed from
8040         doc/posix-functions/index.texi.
8041         * doc/pastposix-functions/makecontext.texi: Renamed from
8042         doc/posix-functions/makecontext.texi.
8043         * doc/pastposix-functions/mktemp.texi: Renamed from
8044         doc/posix-functions/mktemp.texi.
8045         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
8046         doc/posix-functions/pthread_attr_getstackaddr.texi.
8047         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
8048         doc/posix-functions/pthread_attr_setstackaddr.texi.
8049         * doc/pastposix-functions/rindex.texi: Renamed from
8050         doc/posix-functions/rindex.texi.
8051         * doc/pastposix-functions/scalb.texi: Renamed from
8052         doc/posix-functions/scalb.texi.
8053         * doc/pastposix-functions/setcontext.texi: Renamed from
8054         doc/posix-functions/setcontext.texi.
8055         * doc/pastposix-functions/swapcontext.texi: Renamed from
8056         doc/posix-functions/swapcontext.texi.
8057         * doc/pastposix-functions/ualarm.texi: Renamed from
8058         doc/posix-functions/ualarm.texi.
8059         * doc/pastposix-functions/usleep.texi: Renamed from
8060         doc/posix-functions/usleep.texi.
8061         * doc/pastposix-functions/vfork.texi: Renamed from
8062         doc/posix-functions/vfork.texi.
8063         * doc/pastposix-functions/wcswcs.texi: Renamed from
8064         doc/posix-functions/wcswcs.texi.
8065         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
8066         (Function Substitutes): Update.
8067
8068 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8069
8070         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
8071         m4/strerror.m4.
8072
8073 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8074             Bruno Haible  <bruno@clisp.org>
8075
8076         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
8077
8078 2008-12-13  Bruno Haible  <bruno@clisp.org>
8079
8080         * modules/strtoull (Depends-on): Remove unistd.
8081
8082 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8083
8084         * modules/strtoull (Depends-on): Add stdlib.
8085
8086 2008-12-11  Simon Josefsson  <simon@josefsson.org>
8087
8088         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
8089
8090 2008-12-10  Jim Meyering  <meyering@redhat.com>
8091
8092         gl_ASSERT: don't say assertions are disabled when they're not
8093         * m4/assert.m4 (gl_ASSERT): Do not make configure report
8094         "checking whether to enable assertions... no", when they are in
8095         fact enabled.  This is solely a bug in the output of configure.
8096         In spite of saying "no", NDEBUG was not defined in that case.
8097         Also, as noted by Eric Blake, leave assertions enabled upon
8098         --enable-assert=INVALID.
8099
8100 2008-12-10  Bruno Haible  <bruno@clisp.org>
8101
8102         Change MODULES.html to refer to POSIX:2008 where possible.
8103         * MODULES.html.sh (POSIX2008_URL): New variable.
8104         (posix_headers): Remove sys/timeb, ucontext.
8105         (posix2001_headers): New variable.
8106         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
8107         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
8108         index, makecontext, mktemp, pthread_attr_getstackaddr,
8109         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
8110         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
8111         (posix2001_functions): New variable.
8112         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
8113         otherwise.
8114
8115 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8116
8117         add missing include to parse-duration.c
8118         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
8119         * modules/parse-duration (Depends-on): Add xalloc.
8120
8121         fix sed script reading maint.mk
8122         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
8123         (syntax-check-rules): Use it.
8124
8125 2008-12-09  Bruno Haible  <bruno@clisp.org>
8126
8127         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
8128         MacOS X 10.4/PowerPC.
8129         Reported by Simon Josefsson.
8130
8131 2008-12-08  Jim Meyering  <meyering@redhat.com>
8132
8133         work around mingw's lack of some S_IF definitions
8134         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
8135         Reported by Simon Josefsson.
8136
8137 2008-12-08  Bruno Haible  <bruno@clisp.org>
8138
8139         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
8140         applied to variables. Needed on MacOS X 10.4/PowerPC.
8141         Reported by Simon Josefsson.
8142
8143 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
8144         and Eric Blake  <ebb9@byu.net>
8145
8146         assert: honor --enable-assert
8147         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
8148         order to honor --enable-assert, rather than treating it as a
8149         synonym for --disable-assert.
8150
8151 2008-12-08  Jim Meyering  <meyering@redhat.com>
8152
8153         * lib/posixtm.c: Remove now-useless declaration of mktime.
8154
8155         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
8156
8157 2008-12-07  Bruno Haible  <bruno@clisp.org>
8158
8159         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
8160         test_once): Mark functions as static.
8161         * tests/test-tls.c (test_tls): Likewise.
8162
8163 2008-12-07  Bruno Haible  <bruno@clisp.org>
8164
8165         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
8166         iconv_register_autodetect.
8167
8168 2008-12-07  Jim Meyering  <meyering@redhat.com>
8169
8170         posixtm.c: avoid a warning
8171         * lib/posixtm.c (posixtime): Don't initialize tm0.
8172         It's no longer needed to placate gcc4's -Wuninitialized,
8173         and the attempt to placate would elicit a new warning.
8174
8175         unicodeio.c: mark unused parameters
8176         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8177         (fallback_failure_callback): Likewise.
8178
8179 2008-12-07  Bruno Haible  <bruno@clisp.org>
8180
8181         * gnulib-tool (func_create_testdir): When building the tests
8182         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
8183         Reported by Simon Josefsson.
8184
8185 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8186
8187         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
8188
8189 2008-12-06  Bruno Haible  <bruno@clisp.org>
8190
8191         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
8192         Suggested by Eric Blake.
8193
8194 2008-12-06  Bruno Haible  <bruno@clisp.org>
8195
8196         Fix a c-stack test failure on MacOS X.
8197         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
8198         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
8199         handler for SIGBUS as well.
8200         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
8201         install a signal handler for SIGBUS as well.
8202         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
8203
8204 2008-12-06  Bruno Haible  <bruno@clisp.org>
8205
8206         Advocacy documentation.
8207         * doc/gnulib-intro.texi (Benefits): New section.
8208         * doc/gnulib.texi: Update.
8209
8210 2008-12-06  Bruno Haible  <bruno@clisp.org>
8211
8212         Document the 'manywarnings' module.
8213         * doc/manywarnings.texi: New file.
8214         * doc/gnulib.texi: Include it.
8215
8216 2008-12-05  Eric Blake  <ebb9@byu.net>
8217
8218         tests: silence some gcc warnings
8219         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
8220         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
8221         type mismatches.
8222
8223 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8224             Bruno Haible  <bruno@clisp.org>
8225
8226         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
8227
8228 2008-11-29  Jim Meyering  <meyering@redhat.com>
8229
8230         unicodeio.c: mark unused parameters
8231         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8232         (fallback_failure_callback): Likewise.
8233
8234         fts: fix a thinko
8235         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
8236         (set_stat_type): Return S_IF*-valued "type" directly.
8237         Prompted by James Youngman's spotting a related bug.
8238         Confirmed by further testing through find.
8239
8240         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
8241         * lib/fts.c (D_TYPE): Define.
8242         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
8243         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
8244         (s_ifmt_shift_bits): New function.
8245         (set_stat_type): New function.
8246         (fts_build): When not calling fts_stat, call set_stat_type
8247         to propagate dirent.d_type info to fts_read caller.
8248         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
8249         fts_statp->st_mode type information may be valid.
8250
8251 2008-11-28  Simon Josefsson  <simon@josefsson.org>
8252
8253         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
8254         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
8255         <sds@gnu.org>.
8256
8257 2008-11-20  Bruno Haible  <bruno@clisp.org>
8258
8259         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
8260         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
8261         INCLUDE_NEXT.
8262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
8263         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
8264         * modules/math (Makefile.am): Substitute
8265         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
8266         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8267
8268 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
8269             Bruno Haible  <bruno@clisp.org>
8270
8271         * lib/stdint.in.h: Define all type macros so that their expansion is
8272         a single typedef'ed token. Fixes a compilation failure in Boost which
8273         does "using ::int8_t;".
8274
8275 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8276
8277         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
8278         gl_MANYWARN_ALL_GCC.
8279         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
8280         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
8281         * modules/manywarnings: New file.
8282         * MODULES.html.sh: Mention manywarnings module.
8283
8284 2008-11-18  Bruno Haible  <bruno@clisp.org>
8285
8286         * doc/gnulib-tool.texi (Unit tests): New section.
8287
8288 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8289
8290         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
8291         paths like 'lib/po/foo.po'.
8292
8293 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8294
8295         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
8296         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
8297
8298 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8299
8300         * m4/warnings.m4: Use CPPFLAGS to really check whether the
8301         parameter works.
8302
8303 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8304
8305         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
8306
8307 2008-11-17  Bruce Korb  <bkorb@gnu.org>
8308
8309         * modules/parse-duration-tests: New file.
8310         * tests/test-parse-duration.sh: New file.
8311         * tests/test-parse-duration.c: New file.
8312
8313         New module 'parse-duration'.
8314         * lib/parse-duration.h: New file.
8315         * lib/parse-duration.c: New file.
8316         * modules/parse-duration: New file.
8317
8318 2008-11-17  Bruno Haible  <bruno@clisp.org>
8319
8320         * tests/test-select-out.sh: Comment out the first pipe test.
8321         Reported by Simon Josefsson.
8322
8323 2008-11-17  Bruno Haible  <bruno@clisp.org>
8324
8325         * modules/getaddrinfo (Depends-on): Add servent, hostent.
8326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
8327         gl_HOSTENT.
8328
8329 2008-11-17  Bruno Haible  <bruno@clisp.org>
8330
8331         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
8332         -lnetwork and -lnet. Needed for Haiku and BeOS.
8333
8334 2008-11-16  Bruno Haible  <bruno@clisp.org>
8335
8336         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
8337
8338 2008-11-16  Bruno Haible  <bruno@clisp.org>
8339
8340         Avoid test failure on Haiku.
8341         * tests/test-fsync.c: Include <errno.h>.
8342         (main): Don't require that fsync (0) fails.
8343
8344 2008-11-15  Bruno Haible  <bruno@clisp.org>
8345
8346         New module 'hostent'.
8347         * modules/hostent: New file.
8348         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
8349
8350 2008-11-15  Bruno Haible  <bruno@clisp.org>
8351
8352         New module 'servent'.
8353         * modules/servent: New file.
8354         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
8355
8356 2008-11-15  Bruno Haible  <bruno@clisp.org>
8357
8358         Avoid generating same test program with two different rules.
8359         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
8360         test-frexp to test-frexp-nolibm.
8361         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
8362         test-frexpl to test-frexpl-nolibm.
8363
8364 2008-11-15  Bruno Haible  <bruno@clisp.org>
8365
8366         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
8367         $(FREXPL_LIBM).
8368
8369 2008-11-15  Bruno Haible  <bruno@clisp.org>
8370
8371         * lib/netdb.in.h: Activate the definitions also when the system's
8372         <netdb.h> has 'struct addrinfo'.
8373         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
8374         EAI_OVERFLOW or AI_NUMERICSERV.
8375         * doc/posix-headers/netdb.texi: Document the problem.
8376
8377 2008-11-15  Bruno Haible  <bruno@clisp.org>
8378
8379         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
8380
8381         Make the 'sched' module work on platforms where <sched.h> exists but
8382         is incomplete (such as Haiku).
8383         * lib/sched.in.h; Include the system's <sched.h> if it exists.
8384         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
8385         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
8386         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
8387         HAVE_STRUCT_SCHED_PARAM.
8388         * modules/sched (Depends-on): Add include_next.
8389         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
8390         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
8391         * doc/posix-headers/sched.texi: Document the issue.
8392
8393 2008-11-13  Jim Meyering  <meyering@redhat.com>
8394
8395         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
8396         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
8397         test would fail due to the difference in the Report bugs to ...
8398         line.  The expected address is empty, "<>", while the actual
8399         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
8400
8401 2008-11-12  Bruno Haible  <bruno@clisp.org>
8402
8403         lstat: don't compile lstat.c on systems lacking lstat
8404         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
8405         which don't have lstat; this is handled by lib/sys_stat.in.h already.
8406         Reported by Daniel P. Berrange via Jim Meyering.
8407
8408 2008-11-12  Jim Meyering  <meyering@redhat.com>
8409
8410         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
8411
8412 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8413
8414         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
8415         instead.
8416
8417 2008-11-12  Bruno Haible  <bruno@clisp.org>
8418
8419         * lib/unicodeio.c: Include unistr.h.
8420         (utf8_wctomb): Remove function.
8421         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
8422
8423 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8424
8425         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
8426         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
8427         <bruno@clisp.org>.
8428         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
8429
8430 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8431
8432         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
8433         * doc/gnulib.texi: Add section for warnings.
8434
8435 2008-11-11  Bruno Haible  <bruno@clisp.org>
8436
8437         * lib/sockets.h: Add a comment.
8438
8439 2008-11-11  Karl Berry  <karl@gnu.org>
8440
8441         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
8442
8443 2008-11-11  Eric Blake  <ebb9@byu.net>
8444
8445         fdl.texi: avoid git symlinks
8446         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
8447
8448 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8449
8450         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
8451
8452 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8453
8454         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
8455         (gl_WARN_ADD): Substitute $2 if literal.
8456
8457 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8458
8459         * m4/warning.m4: Remove.
8460
8461 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8462
8463         * m4/warnings.m4: Almost complete rewrite. :-)
8464
8465 2008-11-10  Simon Josefsson  <simon@josefsson.org>
8466
8467         * modules/warnings: New module.
8468         * m4/warnings.m4: New file.
8469         * MODULES.html.sh: Mention warnings module.
8470         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
8471         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8472
8473 2008-11-10  Eric Blake  <ebb9@byu.net>
8474
8475         fdl.texi: make a symlink to the latest version
8476         * doc/standards.texi: Revert today's earlier change.
8477         * doc/fdl-1.2.texi: Rename from old fdl.texi...
8478         * doc/fdl.texi: ...and replace this with a symlink to the newer
8479         fdl-1.3.texi.
8480
8481 2008-11-10  Bruno Haible  <bruno@clisp.org>
8482
8483         * tests/test-select-fd.c (main): Accept the result file name as fourth
8484         argument.
8485         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
8486         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
8487
8488 2008-11-10  Bruno Haible  <bruno@clisp.org>
8489
8490         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
8491         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
8492         as autoconf-substituted macros.
8493         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
8494         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
8495         gl_NETDB_H_DEFAULTS. Set these variables.
8496         * modules/netdb (Makefile.am): Substitute these variables.
8497
8498 2008-11-10  Eric Blake  <ebb9@byu.net>
8499
8500         standards.texi: include correct file for FDL 1.3
8501         * doc/standards.texi (GNU Free Documentation License): Change
8502         include file to pull in FDL 1.3, not 1.2.
8503
8504         fdl.texi: revert accidental change to license
8505         * doc/fdl.texi: This is FDL 1.2, not 1.3.
8506
8507 2008-11-10  Bruno Haible  <bruno@clisp.org>
8508
8509         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
8510         cross-compiling guesses also when the native compile gives no result.
8511
8512 2008-11-10  Bruno Haible  <bruno@clisp.org>
8513
8514         * lib/spawni.c (__spawni): Force variable into the stack.
8515
8516 2008-11-10  Bruno Haible  <bruno@clisp.org>
8517
8518         Add support for Haiku.
8519         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
8520         glibc and BeOS, but also on Haiku.
8521         * lib/fpurge.c (fpurge): Likewise.
8522         * lib/freadable.c (freadable): Likewise.
8523         * lib/freadahead.c (freadahead): Likewise.
8524         * lib/freading.c (freading): Likewise.
8525         * lib/freadptr.c (freadptr): Likewise.
8526         * lib/freadseek.c (freadptrinc): Likewise.
8527         * lib/fseeko.c (rpl_fseeko): Likewise.
8528         * lib/fseterr.c (fseterr): Likewise.
8529         * lib/fwritable.c (fwritable): Likewise.
8530         * lib/fwriting.c (fwriting): Likewise.
8531         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
8532
8533 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8534
8535         * lib/config.charset: Treat Haiku like BeOS.
8536
8537 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8538
8539         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
8540         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
8541
8542 2008-11-08  Bruno Haible  <bruno@clisp.org>
8543
8544         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
8545         AC_CACHE_CHECK.
8546
8547 2008-11-08  Bruno Haible  <bruno@clisp.org>
8548
8549         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
8550
8551 2008-11-08  Bruno Haible  <bruno@clisp.org>
8552
8553         * tests/test-select-fd.c: New file.
8554         * tests/test-select-in.sh: New file.
8555         * tests/test-select-out.sh: New file.
8556         * tests/test-select-stdin.c: New file.
8557         * modules/select-tests (Files): Add the new files.
8558         (Depends-on): Add gettimeofday.
8559         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
8560         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
8561         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
8562
8563 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
8564             Bruno Haible  <bruno@clisp.org>
8565
8566         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
8567
8568 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
8569
8570         * build-aux/pmccabe2html: Added support for C++ source files.
8571
8572 2008-11-05  Ben Pfaff  <blp@gnu.org>
8573
8574         Fix lib/close.c build on Windows.
8575         * modules/close (Files): Add lib/w32sock.h.
8576
8577 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
8578
8579         Accept Bison's NEWS format.
8580         * build-aux/announce-gen (print_news_deltas): Tweak
8581         $re_prefix.
8582
8583 2008-11-04  Bruno Haible  <bruno@clisp.org>
8584
8585         * modules/random_r (Maintainer): Add glibc.
8586
8587 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8588
8589         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
8590         by karl@freefriends.org (Karl Berry).
8591         * doc/alloca.texi: Likewise.
8592         * doc/c-ctype.texi: Likewise.
8593         * doc/c-strcase.texi: Likewise.
8594         * doc/c-strcaseeq.texi: Likewise.
8595         * doc/c-strcasestr.texi: Likewise.
8596         * doc/c-strstr.texi: Likewise.
8597         * doc/c-strtod.texi: Likewise.
8598         * doc/c-strtold.texi: Likewise.
8599         * doc/ctime.texi: Likewise.
8600         * doc/error.texi: Likewise.
8601         * doc/fdl.texi: Likewise.
8602         * doc/gcd.texi: Likewise.
8603         * doc/getdate.texi: Likewise.
8604         * doc/gnulib-intro.texi: Likewise.
8605         * doc/gnulib-tool.texi: Likewise.
8606         * doc/gnulib.texi: Likewise.
8607         * doc/inet_ntoa.texi: Likewise.
8608         * doc/maintain.texi: Likewise.
8609         * doc/make-stds.texi: Likewise.
8610         * doc/quote.texi: Likewise.
8611         * doc/regexprops-generic.texi: Likewise.
8612         * doc/standards.texi: Likewise.
8613         * doc/verify.texi: Likewise.
8614         * doc/visibility.texi: Likewise.
8615         * doc/gnulib.texi (GNU Free Documentation License): Include
8616         fdl-1.3.texi instead of fdl.texi.
8617
8618 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8619
8620         * doc/fdl-1.3.texi: New file, from
8621         <http://www.gnu.org/licenses/fdl-1.3.texi>.
8622         * modules/fdl-1.3: Add.
8623         * MODULES.html.sh: Add fdl-1.3.
8624
8625 2008-11-03  Bruno Haible  <bruno@clisp.org>
8626
8627         Make determination of absolute name of header file work with AIX xlc.
8628         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
8629         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
8630         preprocessing.
8631         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8632         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8633
8634 2008-11-03  Simon Josefsson  <simon@josefsson.org>
8635
8636         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
8637         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
8638         <ludo@gnu.org>.
8639
8640 2008-11-02  Bruno Haible  <bruno@clisp.org>
8641
8642         Mark 'strpbrk' obsolete.
8643         * modules/strpbrk (Status, Notice): New sections.
8644         * modules/strtok_r (Depends-on): Add strpbrk.
8645
8646 2008-11-02  Bruno Haible  <bruno@clisp.org>
8647
8648         Mark 'strdup' obsolete.
8649         * modules/strdup (Status, Notice): New sections.
8650         * modules/findprog (Depends-on): Add strdup.
8651         * modules/getaddrinfo (Depends-on): Likewise.
8652         * modules/localename (Depends-on): Likewise.
8653         * modules/relocatable-lib (Depends-on): Likewise.
8654         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
8655         * modules/relocatable-prog (Depends-on): Likewise.
8656         * modules/trim (Depends-on): Likewise.
8657         * modules/unictype/gen-ctype (Depends-on): Likewise.
8658         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8659
8660 2008-11-02  Bruno Haible  <bruno@clisp.org>
8661
8662         Mark 'strcspn' obsolete.
8663         * modules/strcspn (Status, Notice): New sections.
8664
8665 2008-11-02  Bruno Haible  <bruno@clisp.org>
8666
8667         Mark 'rmdir' obsolete.
8668         * modules/rmdir (Status, Notice): New sections.
8669         * modules/clean-temp (Depends-on): Add rmdir.
8670         * modules/openat (Depends-on): Likewise.
8671
8672 2008-11-02  Bruno Haible  <bruno@clisp.org>
8673
8674         Mark 'raise' obsolete.
8675         * modules/raise (Status, Notice): New sections.
8676         (Include): Specify <signal.h>.
8677         * modules/stdio (Depends-on): Add raise.
8678         * modules/write (Depends-on): Likewise.
8679
8680 2008-11-02  Bruno Haible  <bruno@clisp.org>
8681
8682         Mark 'memset' obsolete.
8683         * modules/memset (Status, Notice): New sections.
8684
8685 2008-11-02  Bruno Haible  <bruno@clisp.org>
8686
8687         Mark 'memmove' obsolete.
8688         * modules/memmove (Status, Notice): New sections.
8689         * modules/argp (Depends-on): Add memmove.
8690         * modules/argz (Depends-on): Likewise.
8691         * modules/canonicalize (Depends-on): Likewise.
8692         * modules/canonicalize-lgpl (Depends-on): Likewise.
8693         * modules/fts (Depends-on): Likewise.
8694         * modules/getcwd (Depends-on): Likewise.
8695         * modules/human (Depends-on): Likewise.
8696         * modules/regex (Depends-on): Likewise.
8697         * modules/striconveh (Depends-on): Likewise.
8698         * modules/trim (Depends-on): Likewise.
8699         * modules/unistr/u8-move (Depends-on): Likewise.
8700         * modules/unistr/u16-move (Depends-on): Likewise.
8701         * modules/unistr/u32-move (Depends-on): Likewise.
8702
8703 2008-11-02  Bruno Haible  <bruno@clisp.org>
8704
8705         Mark 'memcpy' obsolete.
8706         * modules/memcpy (Status, Notice): New sections.
8707
8708 2008-11-02  Bruno Haible  <bruno@clisp.org>
8709
8710         Mark 'memcmp' obsolete.
8711         * modules/memcmp (Status, Notice): New sections.
8712         * modules/argmatch (Depends-on): Add memchr.
8713         * modules/backupfile (Depends-on): Likewise.
8714         * modules/c-strcasestr (Depends-on): Likewise.
8715         * modules/crypto/des (Depends-on): Likewise.
8716         * modules/csharpcomp (Depends-on): Likewise.
8717         * modules/fnmatch (Depends-on): Likewise.
8718         * modules/git-merge-changelog (Depends-on): Likewise.
8719         * modules/isnand (Depends-on): Likewise.
8720         * modules/isnand-nolibm (Depends-on): Likewise.
8721         * modules/isnanf (Depends-on): Likewise.
8722         * modules/isnanf-nolibm (Depends-on): Likewise.
8723         * modules/isnanl (Depends-on): Likewise.
8724         * modules/isnanl-nolibm (Depends-on): Likewise.
8725         * modules/mbchar (Depends-on): Likewise.
8726         * modules/memcoll (Depends-on): Likewise.
8727         * modules/quotearg (Depends-on): Likewise.
8728         * modules/regex (Depends-on): Likewise.
8729         * modules/relocatable-prog (Depends-on): Likewise.
8730         * modules/same (Depends-on): Likewise.
8731         * modules/signbit (Depends-on): Likewise.
8732         * modules/strcasestr-simple (Depends-on): Likewise.
8733         * modules/unictype/gen-ctype (Depends-on): Likewise.
8734         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8735         * modules/uniname/uniname (Depends-on): Likewise.
8736         * modules/unistr/u8-cmp (Depends-on): Likewise.
8737
8738 2008-11-02  Bruno Haible  <bruno@clisp.org>
8739
8740         Mark 'memchr' obsolete.
8741         * modules/memchr (Status, Notice): New sections.
8742         * modules/argp (Depends-on): Add memchr.
8743         * modules/base64 (Depends-on): Likewise.
8744         * modules/c-strcasestr (Depends-on): Likewise.
8745         * modules/chdir-long (Depends-on): Likewise.
8746         * modules/fnmatch (Depends-on): Likewise.
8747         * modules/getsubopt (Depends-on): Likewise.
8748         * modules/git-merge-changelog (Depends-on): Likewise.
8749         * modules/glob (Depends-on): Likewise.
8750         * modules/strcasestr-simple (Depends-on): Likewise.
8751         * modules/strnlen (Depends-on): Likewise.
8752
8753 2008-11-02  Bruno Haible  <bruno@clisp.org>
8754
8755         Mark 'atexit' obsolete.
8756         * modules/atexit (Status, Notice): New sections.
8757         * modules/chdir-long (Depends-on): Add atexit.
8758         * modules/wait-process (Depends-on): Likewise.
8759
8760 2008-11-02  Bruno Haible  <bruno@clisp.org>
8761
8762         * gnulib-tool: New option --with-obsolete.
8763         (func_usage): Document it.
8764         (func_modules_transitive_closure): Drop obsolete dependencies if
8765         incobsolete is not true.
8766         (func_import): Read and save the incobsolete variable to the cache.
8767
8768 2008-11-02  Bruno Haible  <bruno@clisp.org>
8769
8770         * modules/TEMPLATE-EXTENDED: New field 'Status'.
8771         * gnulib-tool: New option --extract-status.
8772         (func_usage): Document it.
8773         (sed_extract_prog): Recognize it.
8774         (func_get_status): New function.
8775
8776 2008-10-30  Simon Josefsson  <simon@josefsson.org>
8777
8778         * modules/sockets (License): Change from LGPL to LGPLv2+.
8779
8780 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8781
8782         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
8783
8784 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8785
8786         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8787         Mention times and sys_times.
8788         * modules/sys_times, modules/sys_times-tests: New modules.
8789         * modules/times, modules/times-tests: Likewise
8790         * m4/sys_times_h.m4: New file.
8791         * lib/sys_times.in.h: Likewise
8792         * lib/times.c: Likewise.
8793         * tests/test-sys_times.c: Likewise.
8794         * tests/test-times.c: Likewise.
8795         * doc/posix-headers/sys_times.texi: Update.
8796         * doc/posix-functions/times.texi: Update.
8797
8798 2008-10-28  Jim Meyering  <meyering@redhat.com>
8799
8800         * modules/tempname (Depends-on): Add lstat.
8801
8802         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
8803
8804 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8805
8806         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
8807         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
8808         using idiom used elsewhere in gnulib.
8809
8810 2008-10-27  Jim Meyering  <meyering@redhat.com>
8811
8812         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
8813
8814 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8815
8816         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
8817         TESTS_ENVIRONMENT, for shell scripts that needs to call built
8818         programs.
8819         * tests/test-argp-2.sh: Use $EXEEXT when needed.
8820
8821 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8822
8823         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
8824
8825 2008-10-27  Bruno Haible  <bruno@clisp.org>
8826
8827         * tests/test-lstat.c: Include <stdio.h>.
8828
8829 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8830
8831         * modules/lstat-tests: New module.
8832         * tests/test-lstat.c: New file.
8833
8834 2008-10-26  Jim Meyering  <meyering@redhat.com>
8835
8836         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
8837
8838 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8839             Bruno Haible  <bruno@clisp.org>
8840
8841         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
8842         * modules/configmake (Include): Add a note that the include must come
8843         after all system headers.
8844         * lib/javaversion.c: Include configmake.h after all other includes.
8845
8846 2008-10-26  Bruno Haible  <bruno@clisp.org>
8847
8848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
8849         HAVE_STRUCT_RANDOM_DATA to 1.
8850         (gl_STDLIB_H): Simplify.
8851
8852 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8853
8854         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
8855         substitute HAVE_STRUCT_RANDOM_DATA.
8856         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
8857         random_data.
8858         * modules/stdlib (Makefile.am): Substitute
8859         HAVE_STRUCT_RANDOM_DATA.
8860
8861 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8862
8863         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
8864         * doc/gnulib-intro.texi (Copyright): Likewise.
8865
8866 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8867
8868         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
8869         findings.
8870
8871 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
8872             Bruno Haible  <bruno@clisp.org>
8873
8874         * lib/unistd.in.h: Include <winsock2.h>.
8875         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
8876         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
8877         Provide dummy declarations.
8878         (gethostname): Override.
8879         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
8880         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
8881         gl_PREREQ_SYS_H_WINSOCK2.
8882         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
8883         * doc/posix-functions/gethostname.texi: More details.
8884
8885 2008-10-25  Bruno Haible  <bruno@clisp.org>
8886
8887         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8888         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
8889         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
8890
8891         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
8892         here ...
8893         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
8894         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
8895         gl_UNISTD_H_DEFAULTS.
8896
8897 2008-10-25  Eric Blake  <ebb9@byu.net>
8898
8899         signbit: avoid spurious compiler failure
8900         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
8901         declarations inside function.
8902
8903 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8904             Bruno Haible  <bruno@clisp.org>
8905
8906         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
8907         * modules/random_r (Depends-on): Add stdint.
8908
8909 2008-10-24  Bruno Haible  <bruno@clisp.org>
8910
8911         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
8912         Eggert.
8913         * modules/strerror (License): Likewise.
8914
8915 2008-10-24  Jim Meyering  <meyering@redhat.com>
8916
8917         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
8918         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
8919
8920 2008-10-24  Eric Blake  <ebb9@byu.net>
8921
8922         getgroups: fix compilation when getgroups is available
8923         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
8924         but with <config.h> override of getgroups disabled.
8925
8926 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8927
8928         * doc/gnulib.texi (Header files): Add note about C++ problems.
8929         Explained by Bruno Haible <bruno@clisp.org>.
8930
8931 2008-10-23  Bruno Haible  <bruno@clisp.org>
8932
8933         Define a dummy SA_NODEFER macro on Interix.
8934         * lib/signal.in.h (SA_NODEFER): Define fallback.
8935         Reported by Aleksey Cheusov <cheusov@tut.by> via
8936         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
8937
8938 2008-10-23  Bruno Haible  <bruno@clisp.org>
8939
8940         * modules/freadahead (License): Change to LGPLv2+.
8941         Suggested by Simon Josefsson.
8942
8943 2008-10-23  Jim Meyering  <meyering@redhat.com>
8944
8945         random_r: new module
8946         * modules/random_r: New file.
8947         * m4/random_r.m4: New file.
8948         * lib/random_r.c: New file, from glibc.
8949         * modules/random_r-tests: New file.
8950         * tests/test-random_r.c: New file.
8951         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
8952          Declare.
8953         (RAND_MAX): Define.
8954         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
8955         * modules/stdlib: Substitute them, too.
8956         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
8957         * doc/glibc-functions/initstate_r.texi: Mention the new module.
8958         * doc/glibc-functions/random_r.texi: Likewise.
8959         * doc/glibc-functions/setstate_r.texi: Likewise.
8960         * doc/glibc-functions/srandom_r.texi: Likewise.
8961         * config/srclist.txt: Mention it.
8962
8963 2008-10-23  David Lutterkort  <lutter@redhat.com>
8964
8965         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
8966         link requirement
8967
8968 2008-10-23  Jim Meyering  <meyering@redhat.com>
8969
8970         selinux-h: mark parameters of stub functions as intentionally unused
8971         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
8972         * lib/se-context.in.h: Likewise.
8973
8974 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8975
8976         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
8977
8978 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8979
8980         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
8981
8982 2008-10-22  Eric Blake  <ebb9@byu.net>
8983
8984         glthread/thread: avoid compiler warning
8985         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
8986         Add unreachable abort to silence compiler.
8987
8988 2008-10-22  Eric Blake  <ebb9@byu.net>
8989
8990         netdb: also supply struct addrinfo for cygwin 1.5.x
8991         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
8992         older cygwin.
8993         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
8994         cygwin.
8995         * doc/posix-headers/netdb.texi (netdb.h): Document this.
8996
8997 2008-10-22  Bruno Haible  <bruno@clisp.org>
8998
8999         * users.txt: Update entry about pspp.
9000
9001 2008-10-21  Bruno Haible  <bruno@clisp.org>
9002
9003         Simplification.
9004         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
9005         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
9006
9007         Simplification.
9008         * lib/ioctl.c (ioctl): Don't undefine.
9009         * lib/socket.c (socket): Don't undefine.
9010
9011         Remove unused module indicator macros.
9012         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
9013         GNULIB_$1 as a C macro.
9014
9015         * doc/posix-functions/close.texi: Undo last change.
9016         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
9017         Windows platforms.
9018
9019 2008-10-21  Bruno Haible  <bruno@clisp.org>
9020
9021         Add gethostname() declaration to <unistd.h>.
9022         * lib/unistd.in.h (gethostname): New declaration.
9023         * lib/gethostname.c: Include <unistd.h>.
9024         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
9025         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
9026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
9027         and HAVE_GETHOSTNAME.
9028         * modules/gethostname (Depends-on): Add unistd.
9029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9030         (Include): Specify <unistd.h>.
9031         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
9032         HAVE_GETHOSTNAME.
9033         * tests/test-gethostname.c: Include <unistd.h> first.
9034
9035 2008-10-21  Bruno Haible  <bruno@clisp.org>
9036
9037         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
9038         * modules/select-tests (Depends-on): Likewise.
9039         Reported by Simon Josefsson.
9040
9041 2008-10-21  Simon Josefsson  <simon@josefsson.org>
9042
9043         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
9044         * lib/accept.c: New file, based on winsock.c.
9045         * lib/bind.c: New file, based on winsock.c.
9046         * lib/connect.c: New file, based on winsock.c.
9047         * lib/getpeername.c: New file, based on winsock.c.
9048         * lib/getsockname.c: New file, based on winsock.c.
9049         * lib/getsockopt.c: New file, based on winsock.c.
9050         * lib/ioctl.c: New file, based on winsock.c.
9051         * lib/listen.c: New file, based on winsock.c.
9052         * lib/recv.c: New file, based on winsock.c.
9053         * lib/recvfrom.c: New file, based on winsock.c.
9054         * lib/send.c: New file, based on winsock.c.
9055         * lib/sendto.c: New file, based on winsock.c.
9056         * lib/setsockopt.c: New file, based on winsock.c.
9057         * lib/shutdown.c: New file, based on winsock.c.
9058         * lib/socket.c: New file, based on winsock.c.
9059         * lib/w32sock.h: New file, based on winsock.c.
9060         * lib/winsock.c: Remove file.
9061         * modules/accept: Likewise.
9062         * modules/bind: Likewise.
9063         * modules/connect: Likewise.
9064         * modules/getpeername: Likewise.
9065         * modules/getsockname: Likewise.
9066         * modules/getsockopt: Likewise.
9067         * modules/ioctl: Likewise.
9068         * modules/listen: Likewise.
9069         * modules/recv: Likewise.
9070         * modules/recvfrom: Likewise.
9071         * modules/send: Likewise.
9072         * modules/sendto: Likewise.
9073         * modules/setsockopt: Likewise.
9074         * modules/shutdown: Likewise.
9075         * modules/socket: Use socket.c instead of winsock.c.
9076         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
9077         * doc/posix-functions/accept.texi: Doc fix.
9078         * doc/posix-functions/bind.texi: Doc fix.
9079         * doc/posix-functions/close.texi: Doc fix.
9080         * doc/posix-functions/connect.texi: Doc fix.
9081         * doc/posix-functions/getpeername.texi: Doc fix.
9082         * doc/posix-functions/getsockname.texi: Doc fix.
9083         * doc/posix-functions/getsockopt.texi: Doc fix.
9084         * doc/posix-functions/ioctl.texi: Doc fix.
9085         * doc/posix-functions/listen.texi: Doc fix.
9086         * doc/posix-functions/recv.texi: Doc fix.
9087         * doc/posix-functions/recvfrom.texi: Doc fix.
9088         * doc/posix-functions/send.texi: Doc fix.
9089         * doc/posix-functions/sendto.texi: Doc fix.
9090         * doc/posix-functions/setsockopt.texi: Doc fix.
9091         * doc/posix-functions/shutdown.texi: Doc fix.
9092         * doc/posix-functions/socket.texi: Doc fix.
9093
9094 2008-10-20  Bruno Haible  <bruno@clisp.org>
9095
9096         Take into account the role of SIGABRT_COMPAT on Windows 2008.
9097         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
9098         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
9099         as an alias for SIGABRT.
9100         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
9101         (sigaction): Map it to SIGABRT.
9102         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
9103
9104 2008-10-20  Bruno Haible  <bruno@clisp.org>
9105
9106         * lib/fts.c: Don't include lstat.h.
9107         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
9108
9109         Move the lstat() declaration to <sys/stat.h>.
9110         * lib/lstat.h: Remove file.
9111         * lib/sys_stat.in.h: Add special invocation convention.
9112         (lstat): New declaration.
9113         * lib/lstat.c (orig_lstat): New function.
9114         (rpl_lstat): Use orig_lstat instead of lstat.
9115         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
9116         AC_C_INLINE. Set REPLACE_LSTAT.
9117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
9118         and REPLACE_LSTAT.
9119         * modules/lstat (Files): Remove lib/lstat.h.
9120         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9121         (Include): Specify <sys/stat.h> instead of lstat.h.
9122         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
9123         REPLACE_LSTAT.
9124         * NEWS: Mention the change.
9125
9126 2008-10-20  Bruno Haible  <bruno@clisp.org>
9127
9128         * modules/posix_spawn-tests: New file.
9129         * tests/test-posix_spawn3.c: New file.
9130
9131 2008-10-20  Bruno Haible  <bruno@clisp.org>
9132
9133         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
9134         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9135         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
9136         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9137         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
9138
9139 2008-10-20  Bruno Haible  <bruno@clisp.org>
9140
9141         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
9142         of posix_spawn on AIX 5.3.
9143
9144 2008-10-20  Bruno Haible  <bruno@clisp.org>
9145
9146         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
9147
9148 2008-10-20  Bruno Haible  <bruno@clisp.org>
9149
9150         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
9151         of AC_LANG_PROGRAM.
9152
9153 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9154
9155         * lib/netdb.in.h: Don't define GNU specific constants until they
9156         are supported or needed.  Reported by Bruno Haible
9157         <bruno@clisp.org>.
9158
9159 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9160
9161         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
9162
9163 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9164
9165         * lib/getaddrinfo.h: Remove file.
9166         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
9167         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
9168         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
9169         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
9170         * modules/netdb: Substitute GNULIB_GETADDRINFO.
9171         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
9172         * tests/test-getaddrinfo.c: Likewise.
9173         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
9174         * NEWS: Mention change.
9175
9176 2008-10-19  Bruno Haible  <bruno@clisp.org>
9177
9178         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
9179
9180 2008-10-19  Bruno Haible  <bruno@clisp.org>
9181
9182         * lib/wait-process.c: Include simply <sys/wait.h>.
9183         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
9184         WIFSTOPPED): Remove fallback definitions.
9185         * modules/wait-process (Depends-on): Add sys_wait.
9186
9187         New module 'sys_wait'.
9188         * modules/sys_wait: New file.
9189         * lib/sys_wait.in.h: New file, partially copied from
9190         lib/wait-process.c.
9191         * m4/sys_wait_h.m4: New file.
9192         * doc/posix-headers/sys_wait.texi: Mention the new module.
9193
9194 2008-10-19  Bruno Haible  <bruno@clisp.org>
9195
9196         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
9197
9198 2008-10-19  Bruno Haible  <bruno@clisp.org>
9199
9200         Assume that waitpid() fills an 'int' status, not a 'union wait'.
9201         * lib/wait-process.c (WAIT_T): Remove type.
9202         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
9203         (wait_subprocess): Update.
9204
9205 2008-10-19  Bruno Haible  <bruno@clisp.org>
9206
9207         New module 'atoll'.
9208         * modules/atoll: New file.
9209         * lib/stdlib.in.h (atoll): New declaration.
9210         * lib/atoll.c: New file, from glibc with modifications.
9211         * m4/atoll.m4: New file.
9212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
9213         HAVE_ATOLL.
9214         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
9215         * doc/posix-functions/atoll.texi: Mention the new module.
9216
9217 2008-10-19  Bruno Haible  <bruno@clisp.org>
9218
9219         Add strtoull() declaration to <stdlib.h>.
9220         * lib/stdlib.in.h (strtoull): New declaration.
9221         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9222         Set HAVE_STRTOULL.
9223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
9224         HAVE_STRTOULL.
9225         * modules/strtoull (Depends-on): Add stdlib.
9226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9227         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
9228         HAVE_STRTOULL.
9229
9230 2008-10-19  Bruno Haible  <bruno@clisp.org>
9231
9232         Add strtoll() declaration to <stdlib.h>.
9233         * lib/stdlib.in.h (strtoll): New declaration.
9234         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9235         Set HAVE_STRTOLL.
9236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
9237         HAVE_STRTOLL.
9238         * modules/strtoll (Depends-on): Add stdlib.
9239         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9240         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
9241
9242 2008-10-19  Bruno Haible  <bruno@clisp.org>
9243
9244         * modules/bcopy (Depends-on): Add strings.
9245         (Include): Specify <strings.h>.
9246
9247 2008-10-19  Bruno Haible  <bruno@clisp.org>
9248
9249         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
9250
9251 2008-10-19  Bruno Haible  <bruno@clisp.org>
9252
9253         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
9254         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
9255         mingw.
9256
9257 2008-10-19  Bruno Haible  <bruno@clisp.org>
9258
9259         * lib/atanl.c: Don't include isnanl.h.
9260         * lib/cosl.c: Likewise.
9261         * lib/ldexpl.c: Likewise.
9262         * lib/logl.c: Likewise.
9263         * lib/sinl.c: Likewise.
9264         * lib/sqrtl.c: Likewise.
9265         * lib/tanl.c: Likewise.
9266
9267         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
9268         * lib/isnanf.h: Remove file.
9269         * lib/isnand.h: Remove file.
9270         * lib/isnanl.h: Remove file.
9271         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
9272         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
9273         macros.
9274         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
9275         HAVE_ISNANF, don't define it as a C macro.
9276         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
9277         HAVE_ISNAND, don't define it as a C macro.
9278         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
9279         HAVE_ISNANL, don't define it as a C macro.
9280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
9281         HAVE_ISNAN[FDL].
9282         * modules/isnanf (Files): Remove lib/isnanf.h.
9283         (Depends-on): Add math.
9284         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9285         (Include): Specify <math.h> instead of isnanf.h.
9286         * modules/isnand (Files): Remove lib/isnand.h.
9287         (Depends-on): Add math.
9288         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9289         (Include): Specify <math.h> instead of isnand.h.
9290         * modules/isnanl (Files): Remove lib/isnanl.h.
9291         (Depends-on): Add math.
9292         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9293         (Include): Specify <math.h> instead of isnanl.h.
9294         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
9295         HAVE_ISNAN[FDL].
9296         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
9297         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
9298         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
9299         * NEWS: Mention the change.
9300
9301 2008-10-18  Bruno Haible  <bruno@clisp.org>
9302
9303         Add getusershell(), setusershell(), endusershell() declarations to
9304         <unistd.h>.
9305         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
9306         declarations.
9307         * lib/getusershell.c: Include unistd.h.
9308         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
9309         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9310         HAVE_GETUSERSHELL.
9311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
9312         and HAVE_GETUSERSHELL.
9313         * modules/getusershell (Depends-on): Add unistd, extensions.
9314         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9315         (Include): Specify <unistd.h>.
9316         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
9317         HAVE_GETUSERSHELL.
9318
9319 2008-10-18  Bruno Haible  <bruno@clisp.org>
9320
9321         Add a getloadavg() declaration to <stdlib.h>.
9322         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
9323         getloadavg declaration.
9324         (getloadavg): New declaration.
9325         * lib/getloadavg.c: Include <stdlib.h> first.
9326         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
9327         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
9328         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
9329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
9330         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9331         * modules/getloadavg (Depends-on): Add stdlib, extensions.
9332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9333         (Include): Specify <stdlib.h>.
9334         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
9335         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9336
9337 2008-10-18  Bruno Haible  <bruno@clisp.org>
9338
9339         * lib/dirchownmod.c: Don't include lchmod.h.
9340
9341         Move the lchmod() declaration to <sys/stat.h>.
9342         * lib/lchmod.h: Remove file.
9343         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
9344         (lchmod): New declaration, moved here from lib/lchown.h.
9345         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
9346         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
9347         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
9348         and HAVE_LCHMOD.
9349         * modules/lchmod (Files): Remove lib/lchmod.h.
9350         (Depends-on): Add sys_stat, extensions.
9351         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9352         (Include): Specify <sys/stat.h> instead of lchmod.h.
9353         * modules/sys_stat (Depends-on): Add link-warning.
9354         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
9355         definition of GL_LINK_WARNING.
9356         * NEWS: Mention the change.
9357
9358 2008-10-18  Bruno Haible  <bruno@clisp.org>
9359
9360         * lib/fchdir.c: Don't include dirfd.h.
9361         * lib/fts.c: Likewise.
9362         * lib/getcwd.c: Likewise.
9363         * lib/glob.c: Likewise.
9364
9365         Move the dirfd() declaration to <dirent.h>.
9366         * lib/dirfd.h: Remove file.
9367         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
9368         (dirfd): New declaration.
9369         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
9370         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
9371         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
9372         HAVE_DECL_DIRFD.
9373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
9374         HAVE_DECL_DIRFD.
9375         * modules/dirfd (Files): Remove lib/dirfd.h.
9376         (Depends-on): Add dirent, extensions.
9377         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
9378         (Include): Specify <dirent.h> instead of dirfd.h.
9379         * modules/dirent (Depends-on): Add link-warning.
9380         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
9381         definition of GL_LINK_WARNING.
9382         * NEWS: Mention the change.
9383
9384 2008-10-18  Bruno Haible  <bruno@clisp.org>
9385
9386         Move the euidaccess() declaration to <unistd.h>.
9387         * lib/euidaccess.h: Remove file.
9388         * lib/unistd.in.h (euidaccess): New declaration.
9389         * lib/euidaccess.c: Don't include euidaccess.h.
9390         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
9391         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
9392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
9393         and HAVE_EUIDACCESS.
9394         * modules/euidaccess (Files): Remove lib/euidaccess.h.
9395         (Depends-on): Add unistd.
9396         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9397         (Include): Specify <unistd.h> instead of euidaccess.h.
9398         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
9399         HAVE_EUIDACCESS.
9400         * NEWS: Mention the change.
9401
9402 2008-10-18  Bruno Haible  <bruno@clisp.org>
9403
9404         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
9405
9406         Move the getdomainname() declaration to <unistd.h>.
9407         * lib/getdomainname.h: Remove file.
9408         * lib/unistd.in.h (getdomainname): New declaration.
9409         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
9410         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9411         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9412         HAVE_GETDOMAINNAME.
9413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9414         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
9415         * modules/getdomainname (Files): Remove lib/getdomainname.h.
9416         (Depends-on): Add unistd, extensions.
9417         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9418         (Includes): Specify <unistd.h> instead of getdomainname.h.
9419         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
9420         HAVE_GETDOMAINNAME.
9421         * NEWS: Mention the change.
9422
9423 2008-10-18  Bruno Haible  <bruno@clisp.org>
9424
9425         * modules/dirent: New file.
9426         * m4/dirent_h.m4: New file.
9427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
9428         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
9429         * modules/fchdir (Files): Remove lib/dirent.in.h.
9430         (Depends-on): Add dirent.
9431         (Makefile.am): Move rules to modules/dirent.
9432         * doc/posix-headers/dirent.texi: Mention the new module.
9433
9434 2008-10-18  Bruno Haible  <bruno@clisp.org>
9435
9436         Avoid -Wunused-parameter warnings in public gnulib header files.
9437         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
9438         macro.
9439         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
9440
9441 2008-10-18  Bruno Haible  <bruno@clisp.org>
9442
9443         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
9444         * doc/glibc-functions/error.texi: Mention the module 'error'.
9445         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
9446         * doc/glibc-functions/getdomainname.texi: Mention the module
9447         'getdomainname'.
9448         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
9449         * doc/glibc-functions/getpagesize.texi: Mention the module
9450         'getpagesize'.
9451         * doc/glibc-functions/getusershell.texi: Mention the module
9452         'getusershell'.
9453         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
9454         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
9455         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
9456         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
9457         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
9458         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
9459         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
9460         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
9461         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
9462         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
9463         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
9464         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
9465         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
9466         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
9467
9468 2008-10-17  Bruno Haible  <bruno@clisp.org>
9469
9470         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
9471         HP-UX and IRIX, use -0.0L.
9472         * tests/test-ceill.c (minus_zero): Likewise.
9473         * tests/test-floorl.c (minus_zero): Likewise.
9474         * tests/test-frexpl.c (minus_zero): Likewise.
9475         * tests/test-isnan.c (minus_zerol): Likewise.
9476         * tests/test-isnanl.h (minus_zero): Likewise.
9477         * tests/test-ldexpl.c (minus_zero): Likewise.
9478         * tests/test-roundl.c (minus_zero): Likewise.
9479         * tests/test-signbit.c (minus_zerol): Likewise.
9480         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
9481         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
9482         * tests/test-truncl.c (minus_zero): Likewise.
9483         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
9484         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
9485         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
9486         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
9487
9488 2008-10-17  Bruno Haible  <bruno@clisp.org>
9489
9490         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
9491         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
9492         that it gets activated only for gcc >= 3.0.
9493         * lib/dirent.in.h: Likewise.
9494         * lib/errno.in.h: Likewise.
9495         * lib/fcntl.in.h: Likewise.
9496         * lib/float.in.h: Likewise.
9497         * lib/iconv.in.h: Likewise.
9498         * lib/inttypes.in.h: Likewise.
9499         * lib/locale.in.h: Likewise.
9500         * lib/math.in.h: Likewise.
9501         * lib/netdb.in.h: Likewise.
9502         * lib/netinet_in.in.h: Likewise.
9503         * lib/search.in.h: Likewise.
9504         * lib/signal.in.h: Likewise.
9505         * lib/spawn.in.h: Likewise.
9506         * lib/stdarg.in.h: Likewise.
9507         * lib/stdint.in.h: Likewise.
9508         * lib/stdio.in.h: Likewise.
9509         * lib/stdlib.in.h: Likewise.
9510         * lib/string.in.h: Likewise.
9511         * lib/strings.in.h: Likewise.
9512         * lib/sys_file.in.h: Likewise.
9513         * lib/sys_ioctl.in.h: Likewise.
9514         * lib/sys_select.in.h: Likewise.
9515         * lib/sys_socket.in.h: Likewise.
9516         * lib/sys_stat.in.h: Likewise.
9517         * lib/sys_time.in.h: Likewise.
9518         * lib/sysexits.in.h: Likewise.
9519         * lib/time.in.h: Likewise.
9520         * lib/unistd.in.h: Likewise.
9521         * lib/wchar.in.h: Likewise.
9522         * lib/wctype.in.h: Likewise.
9523         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9524
9525 2008-10-17  Jim Meyering  <meyering@redhat.com>
9526
9527         ignore-value: don't depend on inline module
9528         * modules/ignore-value (Depends-on): Remove 'inline'.
9529         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
9530         Suggestion from Bruno Haible.
9531
9532 2008-10-17  Bruno Haible  <bruno@clisp.org>
9533
9534         New implementation of condition variables for Win32.
9535         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
9536         (gl_linked_waitqueue_t): New type.
9537         (gl_cond_t): Use it.
9538         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
9539         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9540         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
9541         (glthread_cond_init_func, glthread_cond_wait_func,
9542         glthread_cond_timedwait_func, glthread_cond_signal_func,
9543         glthread_cond_broadcast_func, glthread_cond_destroy_func):
9544         Reimplemented on the basis of gl_linked_waitqueue_t.
9545         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
9546         gl_waitqueue_t.
9547         (gl_rwlock_t): Update.
9548         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
9549
9550 2008-10-17  Simon Josefsson  <simon@josefsson.org>
9551
9552         * modules/recvfrom (Depends-on): Add dependency on getpeername.
9553         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9554
9555 2008-10-17  Jim Meyering  <meyering@redhat.com>
9556
9557         ignore-value: new module
9558         * modules/ignore-value: New file.
9559         * lib/ignore-value.h: New file.
9560         * MODULES.html.sh (Compiler warning management): New section,
9561         just for this module.  More to come.
9562
9563 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9564
9565         open-safer.c: avoid 'signed and unsigned in conditional...' warning
9566         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
9567         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
9568
9569 2008-10-16  Jim Meyering  <meyering@redhat.com>
9570
9571         openat-die.c: avoid 'no previous prototype' warning
9572         * lib/openat-die.c: Include "openat.h".
9573         Reported by Reuben Thomas <rrt@sc3d.org>.
9574
9575 2008-10-16  Simon Josefsson  <simon@josefsson.org>
9576
9577         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
9578         * lib/netdb.in.h: Fix typo.
9579         Reported by Bruno Haible  <bruno@clisp.org>
9580
9581         * lib/netdb.in.h: Include sys/socket.h for platforms without
9582         netdb.h, to get structures like hostent on MinGW.
9583         * modules/netdb (Depends-on): Add sys_socket.
9584
9585 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9586
9587         * modules/netdb, modules/netdb-tests: New file.
9588         * m4/netdb_h.m4: New file.
9589         * lib/netdb.in.h: Add, currently just an empty file pending
9590         definitions.
9591         * tests/test-netdb.c: New file.
9592         * doc/posix-headers/netdb.texi: Mention that we replace it if
9593         needed.
9594         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9595         netdb.
9596
9597 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9598
9599         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
9600         with code.
9601
9602 2008-10-13  Bruno Haible  <bruno@clisp.org>
9603
9604         * lib/glthread/cond.c (glthread_cond_wait_func,
9605         glthread_cond_timedwait_func): Add a comment.
9606
9607 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9608
9609         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
9610         * tests/test-select.c: Likewise,
9611
9612 2008-10-13  Bruno Haible  <bruno@clisp.org>
9613
9614         * lib/glthread/cond.c (glthread_cond_wait_func,
9615         glthread_cond_timedwait_func): Fix variable name.
9616         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9617
9618 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
9619
9620         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
9621         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
9622         struct sockaddr.sa_len.
9623         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
9624
9625 2008-10-13  Simon Josefsson  <simon@josefsson.org>
9626
9627         * build-aux/pmccabe2html: Add css and css_url parameters.
9628
9629 2008-10-12  Bruno Haible  <bruno@clisp.org>
9630
9631         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
9632         calling aclx_get.
9633         Reported by Rainer Tammer <tammer@tammer.net>.
9634
9635 2008-10-12  Bruno Haible  <bruno@clisp.org>
9636
9637         Use msvcrt aware primitives for creation/termination of Win32 threads.
9638         * lib/glthread/thread.c: Include <process.h>.
9639         (glthread_create_func): Use _beginthreadex instead of CreateThread.
9640         (wrapper_func): Update signature.
9641         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
9642
9643 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9644             Bruno Haible  <bruno@clisp.org>
9645
9646         Provide a Win32 implementation of the 'cond' module.
9647         * lib/glthread/cond.h [USE_WIN32]: New implementation.
9648         * lib/glthread/cond.c (glthread_cond_init_func,
9649         glthread_cond_wait_func, glthread_cond_timedwait_func,
9650         glthread_cond_signal_func, glthread_cond_broadcast_func,
9651         glthread_cond_destroy_func) [USE_WIN32]: New functions.
9652         * modules/cond (Dependencies): Add gettimeofday.
9653
9654 2008-10-11  Bruno Haible  <bruno@clisp.org>
9655
9656         Make sleep work on older versions of mingw.
9657         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
9658         only whether it exists.
9659         * doc/posix-functions/sleep.texi: Mention the problem with older
9660         versions of mingw.
9661
9662 2008-10-11  Bruno Haible  <bruno@clisp.org>
9663
9664         New module 'shutdown'.
9665         * modules/shutdown: New file.
9666         * lib/sys_socket.in.h (shutdown): New declaration.
9667         * lib/winsock.c (shutdown): New function.
9668         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9669         GNULIB_SHUTDOWN.
9670         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
9671         * doc/posix-functions/shutdown.texi: Document the new module.
9672
9673 2008-10-11  Jim Meyering  <meyering@redhat.com>
9674
9675         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
9676
9677 2008-10-11  Bruno Haible  <bruno@clisp.org>
9678
9679         New module 'fclose'.
9680         * modules/fclose: New file.
9681         * lib/stdio.in.h (fclose): New declaration.
9682         * lib/fclose.c: New file.
9683         * m4/fclose.m4: New file.
9684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
9685         REPLACE_FCLOSE.
9686         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
9687         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
9688         REPLACE_FCLOSE.
9689         * modules/close (Depends-on): fclose.
9690         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
9691
9692 2008-10-11  Bruno Haible  <bruno@clisp.org>
9693
9694         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
9695         set errno and don't call _close.
9696
9697 2008-10-10  Bruno Haible  <bruno@clisp.org>
9698
9699         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
9700         ACL, not afterwards. Fixes test failure on Cygwin.
9701
9702 2008-10-09  Ben Pfaff  <blp@gnu.org>
9703
9704         * build-aux/announce-gen: Fix gnulib version related part of usage
9705         message.  Die with a useful error message if no tarballs are
9706         found.
9707
9708 2008-10-10  Jim Meyering  <meyering@redhat.com>
9709
9710         bootstrap: use git's --depth=N option only if it's supported
9711         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
9712         recognize the --depth option.  Reported by Pádraig Brady.
9713
9714 2008-10-09  Bruno Haible  <bruno@clisp.org>
9715
9716         New module 'ioctl'.
9717         * modules/ioctl: New file.
9718         * lib/sys_socket.in.h (ioctl): Remove declaration.
9719         * lib/winsock.c: Include <sys/ioctl.h>.
9720         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
9721         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9722         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
9723         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
9724         * doc/posix-functions/ioctl.texi: Mention the new module.
9725
9726 2008-10-09  Bruno Haible  <bruno@clisp.org>
9727
9728         New module 'sys_ioctl'.
9729         * lib/sys_ioctl.in.h: New file.
9730         * m4/sys_ioctl_h.m4: New file.
9731         * modules/sys_ioctl: New file.
9732         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
9733
9734 2008-10-09  Bruno Haible  <bruno@clisp.org>
9735
9736         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
9737         * lib/winsock.c: Include <stdarg.h>.
9738         (rpl_ioctl): Change to second argument 'int' and then varargs.
9739
9740 2008-10-09  Bruno Haible  <bruno@clisp.org>
9741
9742         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
9743         when the sys_socket module is present and the system has <winsock2.h>.
9744
9745 2008-10-09  Bruno Haible  <bruno@clisp.org>
9746
9747         * doc/posix-functions/close.texi: Mention module 'close' instead of
9748         module 'sys_socket'.
9749
9750 2008-10-09  Bruno Haible  <bruno@clisp.org>
9751
9752         * doc/glibc-headers/sys_ioctl.texi: New file.
9753         * doc/gnulib.texi: Include it.
9754
9755 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9756             Bruno Haible  <bruno@clisp.org>
9757
9758         Combine the two replacements of 'close'.
9759         * lib/sys_socket.in.h (close): Define to a reminder to include
9760         <unistd.h>.
9761         (_gl_close_fd_maybe_socket): New declaration.
9762         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
9763         * lib/winsock.c (close): Remove undefinition.
9764         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
9765         needed for the gnulib module 'close'.
9766         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
9767         define to an error symbol or to a warning, if suitable.
9768         * lib/close.c: Include <sys/socket.h>.
9769         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
9770         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
9771         UNISTD_H_HAVE_WINSOCK2_H.
9772         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
9773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9774         UNISTD_H_HAVE_WINSOCK2_H.
9775         * modules/sys_socket (Files): Add m4/unistd_h.m4.
9776         (configure.ac): Set a module indicator.
9777         (Makefile.am): Substitute GNULIB_CLOSE.
9778         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
9779         * modules/poll-tests (Depends-on): Add close.
9780         * modules/select-tests (Depends-on): Likewise.
9781
9782 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9783             Bruno Haible  <bruno@clisp.org>
9784
9785         New module 'close'.
9786         * modules/close: New file.
9787         * lib/unistd.in.h (close): Move declaration out of the
9788         FCHDIR_REPLACEMENT scope.
9789         (_gl_unregister_fd): New declaration.
9790         * lib/close.c: New file.
9791         * lib/fchdir.c (rpl_close): Remove function.
9792         * m4/close.m4: New file.
9793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9794         close.
9795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
9796         REPLACE_CLOSE.
9797         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
9798         REPLACE_CLOSE.
9799         * modules/fchdir (Depends-on): Add close.
9800
9801 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9802             Bruno Haible  <bruno@clisp.org>
9803
9804         * lib/fcntl.in.h (open): Simplify conditionals.
9805         (_gl_register_fd): New declaration.
9806         * lib/fchdir.c (rpl_open): Remove function.
9807         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
9808         also.
9809         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
9810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9811         open.
9812
9813 2008-10-09  Jim Meyering  <meyering@redhat.com>
9814
9815         GNUmakefile: use the more name-space-friendly "_version"
9816         * top/GNUmakefile (_dummy): Update.
9817         (_version): Rename from "version".
9818
9819 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9820             Bruno Haible  <bruno@clisp.org>
9821
9822         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
9823         rpl_close.
9824         (_gl_register_fd): New function, extracted from rpl_open.
9825         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
9826         (rpl_open, rpl_opendir): Use _gl_register_fd.
9827
9828 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9829
9830         Fix organization of 'open' replacement.
9831         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
9832         (gl_FUNC_OPEN): Use it.
9833         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
9834
9835 2008-10-08  Bruno Haible  <bruno@clisp.org>
9836
9837         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
9838
9839 2008-10-08  Simon Josefsson  <simon@josefsson.org>
9840
9841         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
9842         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
9843         listen).
9844
9845 2008-10-08  Eric Blake  <ebb9@byu.net>
9846
9847         GNUmakefile: add 'make version' target
9848         * top/GNUmakefile (_curr-ver): Split version update rules...
9849         (version): ...into a target.
9850
9851 2008-10-07  Bruno Haible  <bruno@clisp.org>
9852
9853         Use a more portable replacement expression for -0.0L.
9854         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
9855         instead of -0.0L. Fix m4 quotation.
9856
9857         * tests/test-signbit.c: Include <float.h>.
9858         (minus_zero): New variable.
9859         (test_signbitl): Use minus_zero instead of -zero.
9860         * modules/signbit-tests (Depends-on): Add float.
9861
9862         * tests/test-ceill.c: Include <float.h>.
9863         (zero): Remove variable.
9864         (minus_zero): New variable.
9865         (main): Use minus_zero instead of -zero.
9866         * modules/ceill-tests (Depends-on): Add float.
9867
9868         * tests/test-floorl.c: Include <float.h>.
9869         (zero): Remove variable.
9870         (minus_zero): New variable.
9871         (main): Use minus_zero instead of -zero.
9872         * modules/floorl-tests (Depends-on): Add float.
9873
9874         * tests/test-roundl.c: Include <float.h>.
9875         (zero): Remove variable.
9876         (minus_zero): New variable.
9877         (main): Use minus_zero instead of -zero.
9878         * modules/roundl-tests (Depends-on): Add float.
9879
9880         * tests/test-truncl.c: Include <float.h>.
9881         (zero): Remove variable.
9882         (minus_zero): New variable.
9883         (main): Use minus_zero instead of -zero.
9884         * modules/truncl-tests (Depends-on): Add float.
9885
9886         * tests/test-frexpl.c (zero): Remove variable.
9887         (minus_zero): New variable.
9888         (main): Use minus_zero instead of -zero.
9889         * modules/frexpl-tests (Depends-on): Add float.
9890
9891         * tests/test-isnan.c (zerol): Remove variable.
9892         (minus_zerol): New variable.
9893         (test_long_double): Use minus_zerol instead of -zerol.
9894         * modules/isnan-tests (Depends-on): Add float.
9895
9896         * tests/test-isnanl.h (zero): Remove variable.
9897         (minus_zero): New variable.
9898         (main): Use minus_zero instead of -zero.
9899         * modules/isnanl-nolibm-tests (Depends-on): Add float.
9900         * modules/isnanl-tests (Depends-on): Add float.
9901
9902         * tests/test-ldexpl.c (zero): Remove variable.
9903         (minus_zero): New variable.
9904         (main): Use minus_zero instead of -zero.
9905         * modules/ldexpl-tests (Depends-on): Add float.
9906
9907         * tests/test-snprintf-posix.h (zerol): Remove variable.
9908         (minus_zerol): New variable.
9909         (test_function): Use minus_zerol instead of -zerol.
9910         * modules/snprintf-posix-tests (Depends-on): Add float.
9911         * modules/vsnprintf-posix-tests (Depends-on): Add float.
9912
9913         * tests/test-sprintf-posix.h (zerol): Remove variable.
9914         (minus_zerol): New variable.
9915         (test_function): Use minus_zerol instead of -zerol.
9916         * modules/sprintf-posix-tests (Depends-on): Add float.
9917         * modules/vsprintf-posix-tests (Depends-on): Add float.
9918
9919         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
9920         (minus_zerol): New variable.
9921         (test_function): Use minus_zerol instead of -zerol.
9922         * modules/vasnprintf-posix-tests (Depends-on): Add float.
9923
9924         * tests/test-vasprintf-posix.c (zerol): Remove variable.
9925         (minus_zerol): New variable.
9926         (test_function): Use minus_zerol instead of -zerol.
9927         * modules/vasprintf-posix-tests (Depends-on): Add float.
9928
9929 2008-10-07  Simon Josefsson  <simon@josefsson.org>
9930
9931         * MODULES.html.sh (Support for building documentation): Mention
9932         pmccabe2html.  Sort entries.
9933
9934         Add pmccabe2html module, from gnupdf.
9935         * build-aux/pmccabe.css: New file.
9936         * build-aux/pmccabe2html: New file.
9937         * m4/pmccabe2html.m4: New file.
9938         * modules/pmccabe2html: New file.
9939
9940 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
9941
9942         flock: new module
9943         * MODULES.html.sh: Add to list of modules.
9944         * lib/flock.c: flock implementation for Windows and Unix systems
9945         which have fcntl.
9946         * doc/glibc-functions/flock.texi: Update documentation.
9947         * lib/sys_file.in.h: <sys/file.h> header file.
9948         * m4/flock.m4: M4 macros.
9949         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
9950         * modules/flock: flock module.
9951         * modules/flock-tests: flock tests module.
9952         * modules/sys_file: sys/file.h module.
9953         * tests/test-flock.c: test suite for flock.
9954
9955 2008-10-06  Jim Meyering  <meyering@redhat.com>
9956
9957         bootstrap: check for LT_INIT more portably still ;-)
9958         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
9959         Spotted by Bruno Haible.
9960
9961 2008-10-06  Eric Blake  <ebb9@byu.net>
9962
9963         test-signbit: avoid tripping Irix cc bug on -0.0L
9964         * tests/test-signbit.c (minus_zerol): Delete, and replace with
9965         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
9966         entire testsuite consistent and avoids an Irix 6.2 bug.
9967
9968 2008-10-05  Bruno Haible  <bruno@clisp.org>
9969             Jim Meyering  <jim@meyering.net>
9970
9971         Add an option for ignoring EPIPE during close_stdout.
9972         * lib/closeout.h: Include <stdbool.h>.
9973         (close_stdout_set_ignore_EPIPE): New declaration.
9974         * lib/closeout.c: Include <stdbool.h>.
9975         (ignore_EPIPE): New variable.
9976         (close_stdout_set_ignore_EPIPE): New function.
9977         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
9978         * lib/close-stream.c (close_stream): Mention the possible EPIPE
9979         failure.
9980         * modules/closeout (Depends-on): Add stdbool.
9981
9982 2008-10-05  Bruno Haible  <bruno@clisp.org>
9983
9984         * modules/accept: New file.
9985         * modules/bind: New file.
9986         * modules/connect: New file.
9987         * modules/getpeername: New file.
9988         * modules/getsockname: New file.
9989         * modules/getsockopt: New file.
9990         * modules/listen: New file.
9991         * modules/recv: New file.
9992         * modules/recvfrom: New file.
9993         * modules/send: New file.
9994         * modules/sendto: New file.
9995         * modules/setsockopt: New file.
9996         * modules/socket: New file.
9997         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
9998         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9999         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
10000         the particular module is requested. Add a link warning when the
10001         particular module is not requested.
10002         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
10003         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
10004         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
10005         the particular module is requested.
10006         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
10007         gl_SYS_SOCKET_H_DEFAULTS): New macros.
10008         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
10009         * modules/sys_socket (Depends-on): Add link-warning.
10010         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
10011         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
10012         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
10013         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
10014         GL_LINK_WARNING.
10015         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
10016         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
10017         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
10018         * doc/posix-functions/getpeername.texi: Mention the new module
10019         'getpeername'.
10020         * doc/posix-functions/getsockname.texi: Mention the new module
10021         'getsockname'.
10022         * doc/posix-functions/getsockopt.texi: Mention the new module
10023         'getsockopt'.
10024         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
10025         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
10026         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
10027         * doc/posix-functions/send.texi: Mention the new module 'send'.
10028         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
10029         * doc/posix-functions/setsockopt.texi: Mention the new module
10030         'setsockopt'.
10031         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
10032         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
10033         listen, connect, accept.
10034         * modules/select-tests (Depends-on): Likewise.
10035
10036 2008-10-05  Bruno Haible  <bruno@clisp.org>
10037
10038         * lib/winsock.c (strerror): Remove unused #undef.
10039         (rpl_close): Remove unused local variable.
10040
10041         * modules/sys_socket (Depends-on); Add errno.
10042
10043 2008-10-05  Bruno Haible  <bruno@clisp.org>
10044
10045         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
10046         (select): Add a link warning when the 'select' module is not used.
10047         * modules/sys_select (Depends-on): Add link-warning.
10048         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
10049         Suggested by Paolo Bonzini.
10050
10051 2008-10-05  Jim Meyering  <meyering@redhat.com>
10052
10053         bootstrap: check for LT_INIT more portably
10054         * build-aux/bootstrap: Avoid using grep -E, since it's not
10055         portable enough.  Suggestion from Bruno Haible.
10056
10057 2008-10-05  Bruno Haible  <bruno@clisp.org>
10058
10059         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
10060         as being fixed by gnulib.
10061
10062 2008-10-05  Bruno Haible  <bruno@clisp.org>
10063
10064         * modules/select-tests: New file, mostly copied from
10065         modules/sys_select-tests.
10066         * tests/test-select.c: New file, mostly copied from
10067         tests/test-sys_select.c.
10068         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
10069         * modules/sys_select-tests (Depends-on): Remove all dependencies.
10070         (Makefile.am): Remove test_sys_select_LDADD.
10071
10072         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
10073         to an undefined symbol, for an error message.
10074         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
10075         (gl_SYS_SELECT_H_DEFAULTS): New macro.
10076         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
10077         winsock-select.c here.
10078         * modules/sys_select (Files): Remove lib/winsock-select.c.
10079         (Depends-on): Remove alloca.
10080         (Makefile.am): Substitute GNULIB_SELECT.
10081         * modules/select: New file.
10082         * doc/posix-functions/select.texi: Update.
10083
10084 2008-10-05  Bruno Haible  <bruno@clisp.org>
10085
10086         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
10087         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
10088         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
10089         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
10090         getdtablesize.
10091         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10092         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10093
10094 2008-10-05  Bruno Haible  <bruno@clisp.org>
10095
10096         * modules/getdtablesize-tests: New file.
10097         * tests/test-getdtablesize.c: New file.
10098
10099         New module 'getdtablesize'.
10100         * lib/unistd.in.h (getdtablesize): New declaration.
10101         * lib/getdtablesize.c: New file.
10102         * m4/getdtablesize.m4: New file.
10103         * modules/getdtablesize: New file.
10104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10105         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
10106         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
10107         HAVE_GETDTABLESIZE.
10108         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
10109
10110 2008-10-05  Bruno Haible  <bruno@clisp.org>
10111
10112         * modules/sched (Makefile.am): Fix typo.
10113         Reported by Simon Josefsson.
10114
10115 2008-10-05  Jim Meyering  <meyering@redhat.com>
10116
10117         bootstrap: check for LT_INIT, too
10118         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
10119         are deprecated.  Suggestion from Ralf Wildenhues.
10120
10121 2008-10-05  Bruno Haible  <bruno@clisp.org>
10122
10123         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
10124         overriding them by ours.
10125         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
10126
10127 2008-10-05  Jim Meyering  <meyering@redhat.com>
10128
10129         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
10130         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
10131         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
10132
10133 2008-10-04  Bruno Haible  <bruno@clisp.org>
10134
10135         * modules/dup2 (License): Change to LGPLv2+.
10136         * modules/sleep (License): Likewise.
10137         * modules/perror (License): Likewise.
10138         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
10139         Blake.
10140         * modules/signal (License): Likewise.
10141         * modules/sigprocmask (License): Likewise.
10142         * modules/raise (License): Change to LGPLv2+, with approval by Jim
10143         Meyering.
10144
10145 2008-10-04  Bruno Haible  <bruno@clisp.org>
10146
10147         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
10148         Reported by Rainer Tammer <tammer@tammer.net>.
10149
10150 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
10151             Bruno Haible  <bruno@clisp.org>
10152
10153         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
10154         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
10155         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
10156
10157 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
10158
10159         filevercmp: new module
10160         * lib/filevercmp.h: New function filevercmp comparing version strings.
10161         * lib/filevercmp.c: Implementation of filevercmp function.
10162         * modules/filevercmp: Module metadata.
10163         * tests/test-filevercmp.c: Unit test for new module.
10164         * modules/filevercmp-tests: Unit test metadata.
10165         * MODULES.html.sh: Add filevercmp module.
10166
10167 2008-10-03  Bruno Haible  <bruno@clisp.org>
10168
10169         * lib/c-ctype.h: Add comment.
10170         Reported by Jim Meyering.
10171
10172 2008-10-02  Bruno Haible  <bruno@clisp.org>
10173
10174         * modules/posix_spawn-internal (Depends-on): Add 'open'.
10175
10176 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10177
10178         * build-aux/bootstrap: Allow renaming bootstrap, and change the
10179         name of bootstrap.conf accordingly.
10180
10181 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10182
10183         * build-aux/bootstrap: Install git-merge-changelog configuration
10184         items into .gitconfig if needed.
10185
10186 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10187
10188         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
10189         git repository, and initialize/update it accordingly.
10190
10191 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
10192
10193         * modules/fsync-tests: New file.
10194         * tests/test-fsync.c: New file.
10195
10196         New module 'fsync'.
10197         * lib/fsync.c: New file.
10198         * m4/fsync.m4: New file.
10199         * modules/fsync: New file.
10200         * lib/unistd.in.h (fsync): New declaration.
10201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
10202         GNULIB_FSYNC and HAVE_FSYNC.
10203         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
10204         * MODULES.html.sh (posix_functions): Add fsync.
10205         * doc/posix-functions/fsync.texi: Mention the new module.
10206
10207 2008-10-02  Jim Meyering  <meyering@redhat.com>
10208
10209         fts.c: sync with similar code from coreutils' remove.c
10210         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
10211         Guard also with "#if defined __linux__", since for now at least,
10212         this code is Linux-kernel-specific.
10213
10214 2008-10-02  Jim Meyering  <meyering@redhat.com>
10215
10216         fts: bug fixes
10217         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
10218         Include <sys/vfs.h>, not <sys/statfs.h>.
10219
10220         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
10221         Include <sys/vfs.h>, not <sys/statfs.h>.
10222
10223 2008-10-01  Bruno Haible  <bruno@clisp.org>
10224
10225         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
10226         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
10227         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
10228         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
10229         * doc/posix-functions/posix_spawnp.texi: Likewise.
10230         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
10231         whether posix_spawn actually works.
10232         * m4/pipe.m4 (gl_PIPE): Likewise.
10233         * modules/execute (Files): Add m4/posix_spawn.m4.
10234         * modules/pipe (Files): Add m4/posix_spawn.m4.
10235         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
10236
10237 2008-10-01  Jim Meyering  <meyering@redhat.com>
10238
10239         remove trailing spaces
10240         * NEWS: Likewise.
10241         * lib/poll.c (poll): Likewise.
10242         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
10243         * lib/winsock.c (rpl_close): Likewise.
10244         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
10245         * modules/yield: Likewise.
10246         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
10247         * tests/test-sys_select.c (connect_to_socket): Likewise.
10248
10249         fts.c: adjust a new interface to be more generally useful
10250         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
10251         (fts_build): Adjust caller.
10252
10253 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10254
10255         * modules/cond-tests: New file.
10256         * tests/test-cond.c: New file.
10257
10258 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10259             Bruno Haible  <bruno@clisp.org>
10260
10261         * modules/cond (Dependencies): Add errno, time.
10262         * lib/glthread/cond.h: Include <time.h>.
10263         (gl_cond_define, gl_cond_define_initialized): Use the same definition
10264         across platforms.
10265
10266 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10267             Bruno Haible  <bruno@clisp.org>
10268
10269         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
10270
10271 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10272             Bruno Haible  <bruno@clisp.org>
10273
10274         * modules/tls-tests (Depends-on): Add thread, yield.
10275         (configure.ac): Remove all checks.
10276         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
10277         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10278         gl_thread_self): Remove definitions. Include glthread/thread.h and
10279         glthread/yield.h instead.
10280         (test_tls): Pass an additional NULL argument to gl_thread_join.
10281
10282 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10283             Bruno Haible  <bruno@clisp.org>
10284
10285         * modules/lock-tests (Depends-on): Add thread, yield.
10286         (configure.ac): Remove all checks.
10287         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
10288         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10289         gl_thread_self): Remove definitions. Include glthread/thread.h and
10290         glthread/yield.h instead.
10291         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
10292         additional NULL argument to gl_thread_join.
10293
10294 2008-09-30  Bruno Haible  <bruno@clisp.org>
10295
10296         Fix the Win32 implementation of the 'thread' module.
10297         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
10298         pointer type.
10299         (gl_thread_self): Invoke gl_thread_self_func.
10300         (gl_thread_self_func): New declaration.
10301         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
10302         (do_init_self_key, init_self_key): New functions.
10303         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
10304         Remove some fields.
10305         (running_threads, running_lock): Remove variables.
10306         (get_current_thread_handle): New function.
10307         (gl_thread_self_func, wrapper_func, glthread_create_func,
10308         glthread_join_func, gl_thread_exit_func): Largely rewritten and
10309         simplified.
10310
10311 2008-09-30  Bruno Haible  <bruno@clisp.org>
10312
10313         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
10314         files.
10315
10316 2008-09-30  Jim Meyering  <meyering@redhat.com>
10317
10318         fts.m4: correct the test for statfs.f_type
10319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
10320         when checking for statfs.f_type.
10321
10322 2008-09-15  Simon Josefsson  <simon@josefsson.org>
10323
10324         tests: avoid some compiler warnings
10325         * tests/test-memchr.c (main): Pass NULL indirectly.
10326         * tests/test-getdate.c (main): Remove unused variable 'ret'.
10327
10328 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
10329
10330         getdate.y: disallow countable dayshifts like "4 yesterday ago"
10331         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
10332         exactly specified dayshifts.
10333         (dayshift): New rule.
10334         (rel): Add dayshift.
10335         (relative_time_table) [tomorrow, yesterday, today, now]:
10336         Use tDAY_SHIFT in place of tDAY_UNIT.
10337         * tests/test-getdate.c: Add tests for now-disallowed countable
10338         dayshifts, e.g., "4 yesterday ago".
10339
10340 2008-09-29  Bruno Haible  <bruno@clisp.org>
10341
10342         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
10343         * tests/test-posix_spawn1.in.sh: Renamed from
10344         tests/test-posix_spawn.in.sh.
10345         * tests/test-posix_spawn2.c: New file.
10346         * tests/test-posix_spawn2.in.sh: New file.
10347         * modules/posix_spawnp-tests (Files): Update.
10348         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
10349
10350 2008-09-29  Bruno Haible  <bruno@clisp.org>
10351
10352         Propagate effects of putenv/setenv/unsetenv to child processes.
10353         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
10354         * lib/pipe.c (create_pipe): Likewise.
10355
10356 2008-09-29  Bruno Haible  <bruno@clisp.org>
10357
10358         Enable use of shell scripts as executables in mingw.
10359         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
10360         run the program as a shell script.
10361         * lib/pipe.c (create_pipe): Likewise.
10362         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
10363         resulting array.
10364
10365 2008-09-29  Eric Blake  <ebb9@byu.net>
10366
10367         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
10368
10369 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
10370
10371         * doc/posix-functions/accept.texi: Update mingw problems.
10372         * doc/posix-functions/bind.texi: Update mingw problems.
10373         * doc/posix-functions/close.texi: Update mingw problems.
10374         * doc/posix-functions/connect.texi: Update mingw problems.
10375         * doc/posix-functions/getpeername.texi: Update mingw problems.
10376         * doc/posix-functions/getsockname.texi: Update mingw problems.
10377         * doc/posix-functions/getsockopt.texi: Update mingw problems.
10378         * doc/posix-functions/ioctl.texi: Update mingw problems.
10379         * doc/posix-functions/listen.texi: Update mingw problems.
10380         * doc/posix-functions/recv.texi: Update mingw problems.
10381         * doc/posix-functions/recvfrom.texi: Update mingw problems.
10382         * doc/posix-functions/select.texi: Update mingw problems.
10383         * doc/posix-functions/send.texi: Update mingw problems.
10384         * doc/posix-functions/sendto.texi: Update mingw problems.
10385         * doc/posix-functions/setsockopt.texi: Update mingw problems.
10386         * doc/posix-functions/socket.texi: Update mingw problems.
10387
10388 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
10389             Bruno Haible  <bruno@clisp.org>
10390
10391         * lib/sys_select.in.h: Include sys/time.h.
10392         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
10393         * modules/sys_select: Depend on sys_time.
10394         * tests/test-sys_select.c: Test that sys/select.h defines struct
10395         timeval fully.
10396
10397 2008-09-29  Bruno Haible  <bruno@clisp.org>
10398
10399         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
10400         * lib/sys_select.in.h: Likewise.
10401
10402 2008-09-29  Bruno Haible  <bruno@clisp.org>
10403
10404         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
10405
10406 2008-09-29  Bruno Haible  <bruno@clisp.org>
10407
10408         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
10409         Set LIBSOCKET instead of augmenting LIBS.
10410         * modules/sockets (Link): New section.
10411         * modules/sockets-tests (test_sockets_LDADD): New variable.
10412         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
10413         * modules/poll-tests (test_poll_LDADD): New variable.
10414         * NEWS: Document the change.
10415
10416 2008-09-29  Bruno Haible  <bruno@clisp.org>
10417
10418         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
10419         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
10420         ARPA_INET_H directly.
10421         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10422
10423 2008-09-28  Bruno Haible  <bruno@clisp.org>
10424
10425         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
10426         from gl_HEADER_SYS_SOCKET.
10427         (gl_HEADER_SYS_SOCKET): Invoke it.
10428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10429
10430 2008-09-28  Bruno Haible  <bruno@clisp.org>
10431
10432         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
10433         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
10434         Needed on OSF/1 4.0.
10435
10436 2008-09-28  Bruno Haible  <bruno@clisp.org>
10437
10438         Override open more carefully.
10439         * lib/open.c (orig_open): New function.
10440         (rpl_open): Use orig_open instead of open.
10441         * lib/fcntl.in.h: Add special invocation convention.
10442         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
10443         (gl_FUNC_OPEN): Invoke it.
10444
10445         Override freopen more carefully.
10446         * lib/freopen.c (orig_freopen): New function.
10447         (rpl_freopen): Use orig_freopen instead of freopen.
10448         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
10449         (gl_FUNC_FREOPEN): Invoke it.
10450
10451         Override fopen more carefully.
10452         * lib/fopen.c (orig_fopen): New function.
10453         (rpl_fopen): Use orig_fopen instead of fopen.
10454         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
10455         (gl_FUNC_FOPEN): Invoke it.
10456         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
10457
10458 2008-09-28  Bruno Haible  <bruno@clisp.org>
10459
10460         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
10461         SIGPIPE.
10462
10463 2008-09-28  Bruno Haible  <bruno@clisp.org>
10464
10465         * tests/test-sigaction.c (handler, main): Disable the check whether
10466         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
10467         glibc systems with LinuxThreads.
10468
10469 2008-09-28  Bruno Haible  <bruno@clisp.org>
10470
10471         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
10472
10473         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
10474         with AIX xlc.
10475         * lib/fcntl.in.h (open): Likewise.
10476         Reported by Rainer Tammer <tammer@tammer.net>.
10477
10478 2008-09-28  Bruno Haible  <bruno@clisp.org>
10479
10480         * modules/posix_spawnp-tests: New file.
10481         * tests/test-posix_spawn.c: New file.
10482         * tests/test-posix_spawn.in.sh: New file.
10483
10484         New module 'posix_spawnp'.
10485         * modules/posix_spawnp: New file.
10486         * lib/spawnp.c: New file, from GNU libc with modifications.
10487         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
10488
10489         New module 'posix_spawn'.
10490         * modules/posix_spawn: New file.
10491         * lib/spawn.c: New file, from GNU libc with modifications.
10492         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10493
10494         New module 'posix_spawnattr_destroy'.
10495         * modules/posix_spawnattr_destroy: New file.
10496         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
10497         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
10498         module.
10499
10500         New module 'posix_spawnattr_setsigmask'.
10501         * modules/posix_spawnattr_setsigmask: New file.
10502         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
10503         modifications.
10504         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
10505         new module.
10506
10507         New module 'posix_spawnattr_getsigmask'.
10508         * modules/posix_spawnattr_getsigmask: New file.
10509         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
10510         modifications.
10511         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
10512         new module.
10513
10514         New module 'posix_spawnattr_setsigdefault'.
10515         * modules/posix_spawnattr_setsigdefault: New file.
10516         * lib/spawnattr_setdefault.c: New file, from GNU libc with
10517         modifications.
10518         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
10519         new module.
10520
10521         New module 'posix_spawnattr_getsigdefault'.
10522         * modules/posix_spawnattr_getsigdefault: New file.
10523         * lib/spawnattr_getdefault.c: New file, from GNU libc with
10524         modifications.
10525         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
10526         new module.
10527
10528         New module 'posix_spawnattr_setschedpolicy'.
10529         * modules/posix_spawnattr_setschedpolicy: New file.
10530         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
10531         modifications.
10532         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
10533         new module.
10534
10535         New module 'posix_spawnattr_getschedpolicy'.
10536         * modules/posix_spawnattr_getschedpolicy: New file.
10537         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
10538         modifications.
10539         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
10540         new module.
10541
10542         New module 'posix_spawnattr_setschedparam'.
10543         * modules/posix_spawnattr_setschedparam: New file.
10544         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
10545         modifications.
10546         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
10547         new module.
10548
10549         New module 'posix_spawnattr_getschedparam'.
10550         * modules/posix_spawnattr_getschedparam: New file.
10551         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
10552         modifications.
10553         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
10554         new module.
10555
10556         New module 'posix_spawnattr_setpgroup'.
10557         * modules/posix_spawnattr_setpgroup: New file.
10558         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
10559         modifications.
10560         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
10561         module.
10562
10563         New module 'posix_spawnattr_getpgroup'.
10564         * modules/posix_spawnattr_getpgroup: New file.
10565         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
10566         modifications.
10567         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
10568         module.
10569
10570         New module 'posix_spawnattr_setflags'.
10571         * modules/posix_spawnattr_setflags: New file.
10572         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
10573         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
10574         module.
10575
10576         New module 'posix_spawnattr_getflags'.
10577         * modules/posix_spawnattr_getflags: New file.
10578         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
10579         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
10580         module.
10581
10582         New module 'posix_spawnattr_init'.
10583         * modules/posix_spawnattr_init: New file.
10584         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
10585         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
10586         module.
10587
10588         New module 'posix_spawn_file_actions_destroy'.
10589         * modules/posix_spawn_file_actions_destroy: New file.
10590         * lib/spawn_faction_destroy.c: New file, from GNU libc with
10591         modifications.
10592         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
10593         the new module.
10594
10595         New module 'posix_spawn_file_actions_addopen'.
10596         * modules/posix_spawn_file_actions_addopen: New file.
10597         * lib/spawn_faction_addopen.c: New file, from GNU libc with
10598         modifications.
10599         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10600         the new module.
10601
10602         New module 'posix_spawn_file_actions_adddup2'.
10603         * modules/posix_spawn_file_actions_adddup2: New file.
10604         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
10605         modifications.
10606         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10607         the new module.
10608
10609         New module 'posix_spawn_file_actions_addclose'.
10610         * modules/posix_spawn_file_actions_addclose: New file.
10611         * lib/spawn_faction_addclose.c: New file, from GNU libc with
10612         modifications.
10613         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10614         the new module.
10615
10616         New module 'posix_spawn_file_actions_init'.
10617         * modules/posix_spawn_file_actions_init: New file.
10618         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
10619         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
10620         new module.
10621
10622         New module 'posix_spawn-internal'.
10623         * modules/posix_spawn-internal: New file.
10624         * lib/spawn_int.h: New file, from GNU libc with modifications.
10625         * lib/spawni.c: New file, from GNU libc with modifications.
10626         * m4/posix_spawn.m4: New file.
10627
10628         New module 'spawn'.
10629         * modules/spawn: New file.
10630         * lib/spawn.in.h: New file, from GNU libc with modifications.
10631         * m4/spawn_h.m4: New file.
10632         * doc/posix-headers/spawn.texi: Mention the new module.
10633
10634 2008-09-28  Bruno Haible  <bruno@clisp.org>
10635
10636         * modules/sched-tests: New file.
10637         * tests/test-sched.c: New file.
10638
10639         New module 'sched'.
10640         * modules/sched: New file.
10641         * lib/sched.in.h: New file.
10642         * m4/sched_h.m4: New file.
10643         * doc/posix-headers/sched.texi: Mention the new module.
10644
10645 2008-09-27  Eric Blake  <ebb9@byu.net>
10646
10647         Fix previous patch, and tweak references to $0.
10648         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
10649         (func_version, func_gnulib_dir): Don't call this program
10650         gnulib-tool.
10651         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
10652         with using $0 in function.
10653         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
10654         (func_fatal_error): Reuse the name the user invoked us with.
10655
10656 2008-09-27  Bruno Haible  <bruno@clisp.org>
10657
10658         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
10659         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
10660         (gl_ICONV_H): Not here.
10661         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10662         instead of assigning ICONV_H directly.
10663
10664         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
10665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
10666         WCHAR_H directly.
10667
10668 2008-09-27  Bruno Haible  <bruno@clisp.org>
10669
10670         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
10671         * modules/arpa_inet (Depends-on): Add link-warning.
10672         (Makefile.am): Insert the definition of GL_LINK-WARNING.
10673         * modules/unistd (Makefile.am): Likewise.
10674
10675 2008-09-26  Bruno Haible  <bruno@clisp.org>
10676
10677         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
10678         variables.
10679         (func_version): Essentially copied from gnulib-tool.
10680         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
10681         func_readlink): Copied from gnulib-tool.
10682
10683 2008-09-26  Bruno Haible  <bruno@clisp.org>
10684
10685         * gnulib-tool (func_version): Change directory to $gnulib_dir before
10686         invoking git-version-gen.
10687
10688 2008-09-26  Bruno Haible  <bruno@clisp.org>
10689
10690         * posix-modules: Update to directory names changed on 2008-01-19.
10691         Remove commas in output before splitting into words. No more need to
10692         avoid 'ftruncate' since 2007-02-19.
10693
10694 2008-09-26  Bruno Haible  <bruno@clisp.org>
10695
10696         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
10697
10698 2008-09-26  Bruno Haible  <bruno@clisp.org>
10699
10700         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
10701         * modules/fwriteerror (Depends-on): Add errno.
10702
10703 2008-09-26  Bruno Haible  <bruno@clisp.org>
10704
10705         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
10706         * tests/test-vc-list-files-cvs.sh: Likewise.
10707
10708 2008-09-26  Bruno Haible  <bruno@clisp.org>
10709
10710         * doc/posix-headers/sys_resource.texi: Reorder items.
10711
10712 2008-09-26  Jim Meyering  <meyering@redhat.com>
10713
10714         fts: tweak inode comparison function
10715         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
10716         inode numbers, as documented.
10717
10718         fts: sort dirent entries on inode number before traversing
10719         This avoids a quadratic, seek-related performance penalty when
10720         operating on a directory containing many entries (measurable at 10k;
10721         3.5 hours at 2 million entries with a cold cache) on certain types
10722         of file systems, including ext3 and ext4, but not tmpfs.
10723         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
10724         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
10725         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
10726         (fs_handles_readdir_ordered_dirents_efficiently): New function.
10727         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
10728         (fts_build): Set the stat.st_ino member from D_INO.
10729         If it is likely to be useful, sort dirent entries on inode number.
10730
10731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
10732         and the struct statfs.f_type member.
10733         * modules/fts (Depends-on): Add d-ino.
10734
10735 2008-09-26  Bruno Haible  <bruno@clisp.org>
10736
10737         * modules/sigpipe-die (Depends-on): Add sigpipe.
10738
10739         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
10740         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
10741         and GNULIB_STDIO_H_SIGPIPE are set.
10742         * lib/stdio-write.c: New file.
10743         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
10744         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10745         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10746         REPLACE_STDIO_WRITE_FUNCS.
10747         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
10748         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10749         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10750         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10751         * modules/stdio (Files): Add lib/stdio-write.c.
10752         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
10753         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10754         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10755         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10756         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
10757         REPLACE_FPRINTF_POSIX.
10758         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
10759         REPLACE_PRINTF_POSIX.
10760         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
10761         REPLACE_VFPRINTF_POSIX.
10762         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
10763         REPLACE_VPRINTF_POSIX.
10764         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
10765         SIGPIPE issue.
10766         * doc/posix-functions/fputc.texi: Likewise.
10767         * doc/posix-functions/fputs.texi: Likewise.
10768         * doc/posix-functions/fwrite.texi: Likewise.
10769         * doc/posix-functions/printf.texi: Likewise.
10770         * doc/posix-functions/putc.texi: Likewise.
10771         * doc/posix-functions/putchar.texi: Likewise.
10772         * doc/posix-functions/puts.texi: Likewise.
10773         * doc/posix-functions/vfprintf.texi: Likewise.
10774         * doc/posix-functions/vprintf.texi: Likewise.
10775
10776         * modules/safe-write (Depends-on): Add write.
10777
10778         * modules/sigpipe-tests: New file.
10779         * tests/test-sigpipe.c: New file.
10780         * tests/test-sigpipe.sh: New file.
10781
10782         * modules/write: New file.
10783         * lib/unistd.in.h: Include <sys/types.h>.
10784         (write): New declaration.
10785         * lib/write.c: New file.
10786         * m4/write.m4: New file.
10787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10788         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
10789         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
10790         GNULIB_WRITE, REPLACE_WRITE.
10791         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
10792         and the SIGPIPE issue.
10793
10794         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
10795         (raise): New declaration.
10796         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
10797         (ext_signal): New function.
10798         (rpl_raise): New function.
10799         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10800         GNULIB_SIGNAL_H_SIGPIPE.
10801         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
10802         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
10803
10804         * modules/sigpipe: New file.
10805         * m4/sigpipe.m4: New file.
10806
10807 2008-09-25  Derek Price  <derek@ximbiot.com>
10808             Bruno Haible  <bruno@clisp.org>
10809
10810         * gnulib-tool (func_import): Report all license incompatibilities, not
10811         just the first one.
10812
10813 2008-09-25  Bruno Haible  <bruno@clisp.org>
10814
10815         * gnulib-tool (func_import): When computing the edits, consider not
10816         only the Makefile.ams that exist but also those that will be generated.
10817
10818 2008-09-25  Simon Josefsson  <simon@josefsson.org>
10819
10820         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
10821         fixes gnulib-tool --test warning about duplicate dependency.
10822
10823 2008-09-25  Bruno Haible  <bruno@clisp.org>
10824
10825         * gnulib-tool: Don't ask the user to perform edits in the generated
10826         Makefile.ams.
10827         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
10828         apply to the Makefile.am being generated.
10829         (func_emit_tests_Makefile_am): Execute edits that apply to the
10830         Makefile.am being generated.
10831         (func_import): Setup list of Makefile.am edits before emitting the
10832         Makefile.ams, not at the end.
10833         (func_create_testdir): Update.
10834         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10835
10836 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10837
10838         * gnulib-tool (func_import): Store the --tests-base option in the
10839         comment in gnulib-cache.m4.
10840
10841 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
10842
10843         * NEWS: Document increased portability that sys_select now provides.
10844
10845         * lib/sys_select.in.h: Install select wrapper.
10846         * lib/sys_socket.in.h: Use more descriptive name when there is no
10847         select wrapper.
10848         * lib/winsock-select.c: New.
10849         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
10850         Require gl_HEADER_SYS_SOCKET.
10851         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
10852         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
10853         * tests/test-sys_select.c: Add functional tests.
10854
10855 2008-09-24  Eric Blake  <ebb9@byu.net>
10856
10857         open, fopen: close fd leak in last patch
10858         * lib/open.c (rpl_open): Close fd before returning error.
10859         * lib/fopen.c (rpl_fopen): Close fd before returning error.
10860         * doc/posix-functions/open.texi (open): Document that Irix also
10861         has the bug.
10862         * doc/posix-functions/fopen.texi (fopen): Likewise.
10863         Reported by Paolo Bonzini.
10864
10865 2008-09-24  Bruno Haible  <bruno@clisp.org>
10866
10867         Ensure that a filename ending in a slash cannot be used to access a
10868         non-directory.
10869         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
10870         to check whether it's really a directory.
10871         * lib/fopen.c: Include fcntl.h, unistd.h.
10872         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
10873         and fdopen().
10874         * modules/fopen (Depends-on): Add unistd.
10875         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
10876         * tests/test-fopen.c (main): Likewise.
10877         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
10878         * doc/posix-functions/fopen.texi: Likewise.
10879         Reported by Eric Blake.
10880
10881 2008-09-23  Eric Blake  <ebb9@byu.net>
10882
10883         c-stack: avoid compiler optimizations when provoking overflow
10884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
10885         recursion harder to optimize, to ensure a stack overflow occurs.
10886         * tests/test-c-stack.c (recurse): Likewise.
10887         Borrowed from libsigsegv.
10888
10889         c-stack: work around Irix sigaltstack bug
10890         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
10891         whether sigaltstack uses wrong end of stack_t (copied in part from
10892         libsigsegv).
10893         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
10894         Irix bug, without requiring an over-allocation.
10895         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
10896         bug.
10897
10898         fopen: document mingw bug on directories
10899         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
10900         not allowing a stream visiting a directory, even though reading
10901         from such a stream is not portable.
10902
10903 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10904
10905         * lib/poll.c: Rewrite.
10906         * modules/poll: Depend on alloca.
10907
10908 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10909
10910         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
10911         instead define prototypes for a full set of wrappers.  Ensure
10912         that Cygwin does not use the compatibility code, which is only
10913         for MinGW.
10914         * lib/winsock.c: New.
10915         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
10916         * modules/sys_socket: Add lib/winsock.c.
10917
10918         * modules/poll-tests: Add errno and perror.
10919         * tests/test-poll.c: Use ioctl, not ioctlsocket.
10920
10921 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10922
10923         * tests/test-poll.c: Downgrade minimum needed Winsock version.
10924
10925 2008-09-23  Bruno Haible  <bruno@clisp.org>
10926
10927         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
10928         * doc/glibc-functions/*: Likewise.
10929
10930 2008-09-23  Simon Josefsson  <simon@josefsson.org>
10931
10932         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
10933         success.
10934
10935 2008-09-22  Eric Blake  <ebb9@byu.net>
10936             Bruno Haible  <bruno@clisp.org>
10937
10938         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
10939         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
10940         supply %A but mishandle pseudo-NaN.
10941         Reported by Simon Josefsson.
10942
10943 2008-09-21  Bruno Haible  <bruno@clisp.org>
10944
10945         * tests/test-lock.c (main): Tweak skip message.
10946         * tests/test-tls.c (main): Likewise.
10947
10948 2008-09-21  Bruno Haible  <bruno@clisp.org>
10949
10950         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
10951         whether 'struct sigaction' has sa_sigaction here...
10952         (gl_PREREQ_SIG_HANDLER_H): ... not here.
10953         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
10954
10955 2008-09-21  Bruno Haible  <bruno@clisp.org>
10956
10957         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
10958         section.
10959         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
10960         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
10961         the new section.
10962         (Support for obsolete systems lacking POSIX:2001): New section.
10963         (String handling <string.h>): Move strdup to the new section.
10964         Suggested by Simon Josefsson and Paolo Bonzini.
10965
10966 2008-09-21  Bruno Haible  <bruno@clisp.org>
10967
10968         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
10969         exponents in %e and %g results on 'long double'. Needed for mingw's
10970         improved *printf functions.
10971         * tests/test-vasprintf-posix.c (test_function): Likewise.
10972         * tests/test-snprintf-posix.h (test_function): Likewise.
10973         * tests/test-sprintf-posix.h (test_function): Likewise.
10974         Reported by Eric Blake.
10975
10976 2008-09-21  Bruno Haible  <bruno@clisp.org>
10977
10978         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
10979         * tests/test-sprintf-posix.h (test_function): Likewise.
10980
10981 2008-09-21  Bruno Haible  <bruno@clisp.org>
10982
10983         * modules/getpass (Depends-on): Add strdup-posix.
10984
10985         New module 'strdup-posix'.
10986         * modules/strdup-posix: New file.
10987         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
10988         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
10989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10990         REPLACE_STRDUP.
10991         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
10992         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
10993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10994         strdup-posix.
10995
10996         * modules/strdup (Depends-on): Remove malloc-posix.
10997
10998 2008-09-20  Bruno Haible  <bruno@clisp.org>
10999
11000         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
11001         Wildenhues.
11002
11003 2008-09-20  Bruno Haible  <bruno@clisp.org>
11004
11005         Ensure that wint_t gets defined on IRIX 5.3.
11006         * lib/wchar.in.h (wint_t): Define if not defined by the system.
11007         * lib/wctype.in.h (wint_t): Likewise.
11008         (__wctype_wint_t): Remove type.
11009         (isw*): Use wint_t instead of __wctype_wint_t.
11010         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
11011         * modules/wchar (Files): Add m4/wint_t.m4.
11012         (Makefile.am): Substitute HAVE_WINT_T.
11013         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
11014         * tests/test-wctype.c: Check that wint_t is defined.
11015         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
11016         * doc/posix-headers/wctype.texi: Likewise.
11017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11018
11019 2008-09-18  Bruno Haible  <bruno@clisp.org>
11020
11021         * gnulib-tool (func_exit): Update comment.
11022
11023 2008-09-18  Simon Josefsson  <simon@josefsson.org>
11024
11025         * modules/getaddrinfo (Depends-on): Remove strdup, this module
11026         assumes strdup exists and does not depend on strdup to return
11027         ENOMEM on out of memory conditions.
11028
11029 2008-09-18  Bruno Haible  <bruno@clisp.org>
11030
11031         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
11032         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
11033         digits for the exponent.
11034
11035 2008-09-18  Jim Meyering  <meyering@redhat.com>
11036             Bruno Haible  <bruno@clisp.org>
11037
11038         * lib/vasnprintf.c (decimal_point_char): Define also if
11039         NEED_PRINTF_INFINITE_LONG_DOUBLE.
11040
11041 2008-09-16  Bruno Haible  <bruno@clisp.org>
11042         and Eric Blake  <ebb9@byu.net>
11043
11044         vasnprintf: support Irix 5.3
11045         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
11046         that mishandle long double infinity.
11047         Reported by Tom G. Christensen.
11048
11049 2008-09-16  Bruno Haible  <bruno@clisp.org>
11050
11051         * doc/glibc-functions/scandir.texi: Mention the function is missing on
11052         Solaris 9.
11053         * doc/glibc-functions/alphasort.texi: Likewise.
11054         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
11055
11056 2008-09-16  Jim Meyering  <meyering@redhat.com>
11057
11058         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
11059         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
11060         a umask modification leak out of a subshell.  Otherwise, the
11061         opensolaris /bin/sh would be accepted and thus cause unwarranted
11062         failures in the coreutils test suite.
11063
11064 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
11065
11066         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
11067         to succeed.
11068
11069 2008-09-16  Jim Meyering  <meyering@redhat.com>
11070
11071         avoid spurious test failure when library is built without ACL support
11072         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
11073         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
11074         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
11075         * tests/test-copy-acl.sh: Likewise.
11076
11077 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11078
11079         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
11080         based on character occurrence counts.
11081
11082 2008-09-15  Eric Blake  <ebb9@byu.net>
11083
11084         tests: avoid some compiler warnings
11085         * tests/test-memchr.c (main): Pass NULL indirectly.
11086         * tests/test-closein.c (main): Avoid unused variable.
11087
11088 2008-09-15  Bruno Haible  <bruno@clisp.org>
11089
11090         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
11091         are missing on OpenBSD 4.0 individually.
11092         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11093
11094 2008-09-15  Bruno Haible  <bruno@clisp.org>
11095
11096         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
11097         * doc/posix-functions/strerror.texi: Mention also Cygwin.
11098         * doc/posix-functions/perror.texi: Likewise.
11099         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
11100         is missing.
11101         Reported by Eric Blake.
11102
11103         * lib/errno.in.h: Use replacement values >= 2000.
11104         Reported by Eric Blake.
11105
11106 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11107
11108         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
11109         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
11110         limit.
11111         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
11112         compareseq was aborted.
11113
11114 2008-09-14  Bruno Haible  <bruno@clisp.org>
11115
11116         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
11117         yvec_edit_count.
11118         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
11119         (fstrcmp_bounded): Simplify result computation accordingly.
11120
11121 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11122
11123         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
11124         (fstrcmp): Define in terms of fstrcmp_bounded.
11125         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
11126         lower_bound argument.
11127         Return quickly if the result is certainly < lower_bound.
11128         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
11129
11130 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11131
11132         * lib/diffseq.h (EARLY_ABORT): New macro.
11133         (compareseq): Change return type to bool. Return true when EARLY_ABORT
11134         evaluates to true.
11135
11136 2008-09-14  Bruno Haible  <bruno@clisp.org>
11137
11138         * modules/perror-tests: New file.
11139         * tests/test-perror.sh: New file.
11140         * tests/test-perror.c: New file.
11141
11142         New module 'perror'.
11143         * lib/stdio.in.h (perror): New declaration.
11144         * lib/perror.c: New file.
11145         * m4/perror.m4: New file.
11146         * modules/perror: New file.
11147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
11148         * doc/posix-functions/perror.texi: Mention the perror module.
11149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
11150         REPLACE_PERROR.
11151         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
11152         REPLACE_PERROR.
11153
11154 2008-09-14  Bruno Haible  <bruno@clisp.org>
11155
11156         * modules/stdio (Makefile.am): Reorder to match the order in
11157         lib/stdio.in.h.
11158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11159
11160 2008-09-13  Bruno Haible  <bruno@clisp.org>
11161
11162         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
11163
11164 2008-09-13  Bruno Haible  <bruno@clisp.org>
11165
11166         Extend strerror to cover the added errno values.
11167         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
11168         (rpl_strerror): Provide error messages for the added errno values and
11169         for the WSA* values.
11170         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
11171         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
11172         strerror.
11173         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
11174         * modules/strerror (Depends-on): Add errno.
11175         * doc/posix-functions/strerror.texi: Document the change.
11176         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
11177         and EOVERFLOW.
11178
11179 2008-09-13  Bruno Haible  <bruno@clisp.org>
11180
11181         * modules/EOVERFLOW: Remove file.
11182         * m4/eoverflow.m4: Remove file.
11183         * modules/EOVERFLOW-tests: Remove file.
11184         * tests/test-EOVERFLOW.c: Remove file.
11185         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
11186         * modules/ftell (Depends-on): Likewise.
11187         * modules/getdelim (Depends-on): Likewise.
11188         * modules/getugroups (Depends-on): Likewise.
11189         * modules/poll (Depends-on): Likewise.
11190         * modules/snprintf (Depends-on): Likewise.
11191         * modules/sprintf-posix (Depends-on): Likewise.
11192         * modules/vasnprintf (Depends-on): Likewise.
11193         * modules/vasprintf (Depends-on): Likewise.
11194         * modules/vfprintf-posix (Depends-on): Likewise.
11195         * modules/vsnprintf (Depends-on): Likewise.
11196         * modules/vsprintf-posix (Depends-on): Likewise.
11197         * modules/xvasprintf (Depends-on): Likewise.
11198         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11199         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
11200         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
11201         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
11202         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11203         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
11204         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
11205         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
11206         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11207         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
11208         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
11209         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
11210         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11211         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
11212         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
11213         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
11214         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11215         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
11216         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
11217         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
11218         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11219         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
11220         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
11221         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
11222         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
11223         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11224         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
11225         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
11226         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
11227         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
11228         * MODULES.html.sh: Remove EOVERFLOW.
11229         * NEWS: Mention the change.
11230
11231 2008-09-13  Bruno Haible  <bruno@clisp.org>
11232
11233         * modules/errno-tests: New file.
11234         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
11235
11236         * lib/errno.in.h: New file.
11237         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
11238         * modules/errno: New file.
11239         * doc/posix-headers/errno.texi: Update documentation.
11240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
11241
11242 2008-09-13  Bruno Haible  <bruno@clisp.org>
11243
11244         * tests/test-poll.c: Use #if for native Windows, rather than testing
11245         __MSVCRT__.
11246
11247 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11248             Bruno Haible  <bruno@clisp.org>
11249
11250         * lib/glob.c: Don't include <pwd.h> on native Windows.
11251         (WINDOWS32): New macro.
11252         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
11253
11254 2008-09-13  Bruno Haible  <bruno@clisp.org>
11255
11256         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
11257         (ETIMEDOUT): Remove macro.
11258         (glthread_cond_timedwait_multithreaded): New declaration.
11259         (glthread_cond_timedwait): Use it.
11260         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
11261         (glthread_cond_timedwait_multithreaded): New function.
11262
11263 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11264
11265         * modules/poll-tests: Do not check for io.h.
11266         * tests/test-poll.c: Check for __MSVCRT__ instead.
11267
11268 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11269
11270         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
11271         * modules/poll-tests: Add inet_pton, stdbool, sockets.
11272         * tests/test-poll.c: Use them.  Use _pipe on Windows.
11273
11274 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11275
11276         * modules/poll-tests: New.
11277         * tests/test-poll.c: New.
11278
11279 2008-09-12  Eric Blake  <ebb9@byu.net>
11280
11281         frexp: test for NetBSD failure on -0.0
11282         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
11283         not all, bugs from NetBSD 3.0 have been fixed.
11284         * doc/posix-functions/frexp.texi (frexp): Document bug.
11285         Reported by Thomas Klausner.
11286
11287         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
11288         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
11289         literal -0.0.
11290         Reported by Jonathan C. Patschke <jp@centtech.com>.
11291
11292 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11293
11294         * lib/glthread/cond.h: Use dummy implementation also if
11295         USE_WIN32_THREADS.
11296
11297 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11298
11299         * modules/fnmatch-posix (License): Change to LGPLv2+.
11300         * modules/fnmatch-gnu (License): Likewise.
11301
11302 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11303
11304         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
11305
11306 2008-09-11  Jim Meyering  <meyering@redhat.com>
11307
11308         * users.txt: Add gtk-vnc.
11309
11310 2008-09-08  Simon Josefsson  <simon@josefsson.org>
11311
11312         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
11313         rotate amounts.
11314
11315         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
11316         required for 16-bit and 8-bit rotates.
11317         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
11318         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
11319         UINT8_MAX instead of hard-coded constants.
11320         Suggested by Paul Eggert.
11321
11322 2008-09-07  Bruno Haible  <bruno@clisp.org>
11323
11324         * tests/test-striconveh.c (main): Check behaviour when converting from
11325         UTF-7.
11326
11327         Make striconveh work better with stateful encodings.
11328         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
11329         that iconv does not increment the inptr when returning -1/EINVAL.
11330
11331 2008-09-07  Bruno Haible  <bruno@clisp.org>
11332
11333         * build-aux/config.rpath: Update according to libtool-2.2.6.
11334         * build-aux/config.libpath: Likewise.
11335
11336 2008-09-06  Bruno Haible  <bruno@clisp.org>
11337
11338         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
11339         * lib/freadptr.c (freadptr): Likewise.
11340         * lib/freadseek.c (freadptrinc): Likewise.
11341         Reported by Simon Josefsson.
11342
11343 2008-09-06  Bruno Haible  <bruno@clisp.org>
11344
11345         * modules/freadptr (License): Change to LGPLv2+.
11346         * modules/freadseek (License): Likewise.
11347         Suggested by Eric Blake.
11348
11349         * modules/memchr2 (License): Change to LGPLv2+.
11350         Approved by Eric Blake.
11351
11352 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11353             Bruno Haible  <bruno@clisp.org>
11354
11355         Make gnulib-tool work with native 'sed' on AIX.
11356         * gnulib-tool (sed_noop): New variable.
11357         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
11358         func_add_or_update, func_create_testdir): Use it to initialize sed
11359         script variables.
11360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11361
11362 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
11363             Bruno Haible  <bruno@clisp.org>
11364
11365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
11366         also works after #include directives.
11367
11368 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
11369
11370         getdate.y: reject an out-of-range timezone value
11371         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
11372         the range [-24...+24].  When specified with only one or two digits,
11373         * tests/test-getdate.c: Tests for the fix.
11374         * doc/getdate.texi: Document this change.
11375
11376 2008-09-03  Bruno Haible  <bruno@clisp.org>
11377
11378         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
11379
11380 2008-09-02  Simon Josefsson  <simon@josefsson.org>
11381
11382         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
11383         <bruce.korb@gmail.com> with ideas from Ben Pfaff
11384         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
11385         Blake <ebb9@byu.net>.
11386
11387         * tests/test-bitrotate.c: Add more test vectors.
11388
11389 2008-09-02  Eric Blake  <ebb9@byu.net>
11390
11391         vasnprintf-posix: handle large precision via %.*d
11392         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
11393         when handling it ourselves.
11394         * tests/test-vasnprintf-posix.c (test_function): Add test.
11395         * tests/test-snprintf-posix.h (test_function): Likewise.
11396         * tests/test-sprintf-posix.h (test_function): Likewise.
11397         * tests/test-vasprintf-posix.c (test_function): Likewise.
11398         Reported by Alain Guibert.
11399
11400 2008-09-01  Eric Blake  <ebb9@byu.net>
11401
11402         c-stack: make configure-time check more robust
11403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
11404         successful sigaction call.
11405         Reported by Tom G. Christensen.
11406
11407 2008-09-01  Bruno Haible  <bruno@clisp.org>
11408
11409         New module 'findprog-lgpl'.
11410         * modules/findprog-lgpl: New file.
11411         * lib/findprog-lgpl.c: New file.
11412         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
11413         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
11414         to decide whether to use strdup or xstrdup, concatenated_filename or
11415         xconcatenated_filename.
11416
11417 2008-09-01  Bruno Haible  <bruno@clisp.org>
11418
11419         Split module 'concat-filename' into 'concat-filename' (LGPL) and
11420         'xconcat-filename' (GPL).
11421         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
11422         (License): Change to LGPLv2+.
11423         * modules/xconcat-filename: New file.
11424         * lib/concat-filename.h (concatenated_filename): Change specification.
11425         (xconcatenated_filename): New declaration.
11426         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
11427         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
11428         memory situations.
11429         * lib/xconcat-filename.c: New file.
11430         * NEWS: Mention the change.
11431         * lib/findprog.c: Include concat-filename.h, not filename.h.
11432         (find_in_path): Use xconcatenated_filename instead of
11433         concatenated_filename.
11434         * lib/javacomp.c: Include concat-filename.h, not filename.h.
11435         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11436         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11437         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11438         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
11439         instead of concatenated_filename.
11440         * lib/javaexec.c: Include concat-filename.h, not filename.h.
11441         (execute_java_class): Use xconcatenated_filename instead of
11442         concatenated_filename.
11443         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
11444         * modules/javacomp (Depends-on): Likewise.
11445         * modules/javaexec (Depends-on): Likewise.
11446
11447 2008-09-01  Bruno Haible  <bruno@clisp.org>
11448
11449         Split module 'filename' into 'filename' and 'concat-filename'.
11450         * modules/filename: Keep only lib/filename.h.
11451         (License): Change to LGPLv2+.
11452         * modules/concat-filename: New file, extracted from modules/filename.
11453         * lib/filename.h (concatenated_filename): Remove declaration.
11454         * lib/concat-filename.h: New file, extracted from lib/filename.h.
11455         * lib/concat-filename.c: Include concat-filename.h.
11456         * NEWS: Mention the change.
11457
11458 2008-09-01  Simon Josefsson  <simon@josefsson.org>
11459
11460         * lib/bitrotate.h (rotl8, rotr8): Add.
11461
11462         * modules/bitrotate (configure.ac): Need
11463         AC_REQUIRE([AC_C_INLINE]).
11464         (Description): Mention stdint.h.  Reported by Bruno Haible
11465         <bruno@clisp.org>.
11466
11467         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
11468         Paolo Bonzini <bonzini@gnu.org>.
11469
11470 2008-08-31  Bruno Haible  <bruno@clisp.org>
11471
11472         Assume Solaris specific bi-arch conventions on Solaris systems.
11473         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
11474         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
11475         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
11476         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
11477         like acl_libdirstem.
11478         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
11479         acl_libdirstem.
11480         * NEWS: Mention the change.
11481         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
11482
11483 2008-08-31  Jim Meyering  <meyering@redhat.com>
11484
11485         * lib/strftime.h: Add comments describing the two added arguments.
11486
11487         remove duplicate #include directives
11488         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
11489         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
11490
11491 2008-08-31  Bruno Haible  <bruno@clisp.org>
11492
11493         New module 'sigpipe-die'.
11494         * modules/sigpipe-die: New file.
11495         * lib/sigpipe-die.h: New file.
11496         * lib/sigpipe-die.c: New file.
11497         * MODULES.html.sh (Signal handling): Add sigpipe-die.
11498
11499 2008-08-31  Bruno Haible  <bruno@clisp.org>
11500
11501         Don't override previously installed signal handlers.
11502         * lib/fatal-signal.c (saved_sigactions): New variable.
11503         (uninstall_handlers): Reset the signal to the saved handler, not
11504         to SIG_DFL (except when ignored).
11505         (install_handlers): Save the previous handlers.
11506
11507 2008-08-30  Bruno Haible  <bruno@clisp.org>
11508
11509         * gnulib-tool (func_reset_sigpipe): New function.
11510         (func_get_automake_snippet, func_modules_transitive_closure,
11511         func_import): Invoke it before a join command that reads from stdin,
11512         to avoid "echo: write error: Broken pipe" error messages on stderr.
11513         Reported by Sam Steingold <sds@gnu.org>.
11514
11515 2008-08-30  Bruno Haible  <bruno@clisp.org>
11516
11517         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
11518         Code copied from m4/open.m4.
11519         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
11520         access and the filename ends in a slash. Code copied from lib/open.c.
11521         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
11522         * tests/test-fopen.c (main): Check against bug with trailing slash.
11523
11524 2008-08-29  Bruno Haible  <bruno@clisp.org>
11525
11526         Avoid some "gcc -pedantic" warnings.
11527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
11528         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
11529         * lib/dirent.in.h: Likewise.
11530         * lib/fcntl.in.h: Likewise.
11531         * lib/float.in.h: Likewise.
11532         * lib/iconv.in.h: Likewise.
11533         * lib/inttypes.in.h: Likewise.
11534         * lib/locale.in.h: Likewise.
11535         * lib/math.in.h: Likewise.
11536         * lib/netinet_in.in.h: Likewise.
11537         * lib/search.in.h: Likewise.
11538         * lib/signal.in.h: Likewise.
11539         * lib/stdarg.in.h: Likewise.
11540         * lib/stdint.in.h: Likewise.
11541         * lib/stdio.in.h: Likewise.
11542         * lib/stdlib.in.h: Likewise.
11543         * lib/string.in.h: Likewise.
11544         * lib/strings.in.h: Likewise.
11545         * lib/sys_select.in.h: Likewise.
11546         * lib/sys_socket.in.h: Likewise.
11547         * lib/sys_stat.in.h: Likewise.
11548         * lib/sys_time.in.h: Likewise.
11549         * lib/sysexits.in.h: Likewise.
11550         * lib/time.in.h: Likewise.
11551         * lib/unistd.in.h: Likewise.
11552         * lib/wchar.in.h: Likewise.
11553         * lib/wctype.in.h: Likewise.
11554         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
11555         * modules/fchdir (Makefile.am): Likewise.
11556         * modules/fcntl (Makefile.am): Likewise.
11557         * modules/float (Makefile.am): Likewise.
11558         * modules/iconv_open (Makefile.am): Likewise.
11559         * modules/inttypes (Makefile.am): Likewise.
11560         * modules/locale (Makefile.am): Likewise.
11561         * modules/math (Makefile.am): Likewise.
11562         * modules/netinet_in (Makefile.am): Likewise.
11563         * modules/search (Makefile.am): Likewise.
11564         * modules/signal (Makefile.am): Likewise.
11565         * modules/stdarg (Makefile.am): Likewise.
11566         * modules/stdint (Makefile.am): Likewise.
11567         * modules/stdio (Makefile.am): Likewise.
11568         * modules/stdlib (Makefile.am): Likewise.
11569         * modules/string (Makefile.am): Likewise.
11570         * modules/strings (Makefile.am): Likewise.
11571         * modules/sys_select (Makefile.am): Likewise.
11572         * modules/sys_socket (Makefile.am): Likewise.
11573         * modules/sys_stat (Makefile.am): Likewise.
11574         * modules/sys_time (Makefile.am): Likewise.
11575         * modules/sysexits (Makefile.am): Likewise.
11576         * modules/time (Makefile.am): Likewise.
11577         * modules/unistd (Makefile.am): Likewise.
11578         * modules/wchar (Makefile.am): Likewise.
11579         * modules/wctype (Makefile.am): Likewise.
11580         Reported by Reuben Thomas <rrt@sc3d.org>.
11581
11582 2008-08-29  Bruno Haible  <bruno@clisp.org>
11583
11584         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
11585         any more.
11586
11587 2008-08-29  Simon Josefsson  <simon@josefsson.org>
11588
11589         * MODULES.html.sh (Misc): Add bitrotate.
11590
11591         * modules/bitrotate: New file.
11592
11593         * lib/bitrotate.h: New file.
11594
11595         * modules/bitrotate-tests: New file.
11596
11597         * tests/test-bitrotate.c: New file.
11598
11599         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
11600         on the bitrotate module.
11601
11602         * lib/arctwo.c: Use new bitrotate module.
11603
11604 2008-08-29  Jim Meyering  <meyering@redhat.com>
11605
11606         bootstrap: merge changes from coreutils
11607         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
11608         of copied files.  Remove a kludge, now that this is fixed.
11609         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
11610         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
11611         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
11612
11613 2008-08-29  Bruno Haible  <bruno@clisp.org>
11614
11615         * MODULES.html.sh: Remove --cvs-urls option.
11616
11617 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
11618
11619         maint.mk: adjust to file name change
11620         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
11621
11622 2008-08-28  Jim Meyering  <meyering@redhat.com>
11623
11624         * modules/getndelim2 (License): Relicense to LGPLv2+.
11625         Approved by Richard Stallman for the version of 1995, and by
11626         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
11627
11628 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
11629
11630         * lib/getdelim.c (flockfile, funlockfile): Make all of them
11631         dummy if one is not available.  Do not touch them if
11632         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
11633         (getc_maybe_unlocked): New.
11634         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
11635
11636 2008-08-26  Eric Blake  <ebb9@byu.net>
11637
11638         doc/INSTALL: resync from autoconf
11639         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
11640         (INSTALL_PRELUDE): Delete; this is done more efficiently by
11641         moving...
11642         * install.texi [!autoconf]: ...here.  Resync from autoconf.
11643         * INSTALL: Regenerate.
11644         * INSTALL.ISO: New file.
11645         * INSTALL.UTF-8: Likewise.
11646
11647 2008-08-26  Jim Meyering  <meyering@redhat.com>
11648
11649         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
11650         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
11651         these definitions conditional, so that they may be overridden, too.
11652
11653 2008-08-26  Bruno Haible  <bruno@clisp.org>
11654
11655         Generate INSTALL file variants with prettier quotes.
11656         * doc/Makefile (INSTALL_PRELUDE): New macro.
11657         (INSTALL): Use it.
11658         (INSTALL.ISO, INSTALL.UTF-8): New rules.
11659
11660 2008-08-26  Bruno Haible  <bruno@clisp.org>
11661
11662         Run makeinfo in an English locale.
11663         * doc/Makefile (MAKEINFO): New variable.
11664
11665 2008-08-26  Bruno Haible  <bruno@clisp.org>
11666
11667         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
11668         Suggested by Eric Blake.
11669
11670 2008-08-25  Bruno Haible  <bruno@clisp.org>
11671
11672         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
11673
11674 2008-08-25  Eric Blake  <ebb9@byu.net>
11675
11676         c-stack: test that stack overflow can be caught
11677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
11678         that platform allows handling stack overflow; at least OS/2 EMX
11679         has sigaltstack, but crashes before transferring control to
11680         handler on stack overflow.
11681         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
11682         check for HAVE_STACK_OVERFLOW_HANDLING.
11683         Reported by Elbert Pol.
11684
11685 2008-08-25  Bruno Haible  <bruno@clisp.org>
11686
11687         * doc/posix-functions/strftime.texi: Fix description of strftime
11688         module.
11689
11690 2008-08-24  Bruno Haible  <bruno@clisp.org>
11691
11692         * tests/uniwidth/test-uc_width2.c: New file.
11693         * tests/uniwidth/test-uc_width2.sh: New file.
11694         * modules/uniwidth/width-tests (Files): Add the new files.
11695         (TESTS): Add uniwidth/test-uc_width2.sh.
11696         (TESTS_ENVIRONMENT): New variable.
11697         (check_PROGRAMS): Add test-uc_width2.
11698         (test_uc_width2_SOURCES): New variable.
11699
11700         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
11701         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
11702         not 0x00AB.
11703         Reported by Alexander V. Lukyanov <lav@netis.ru>.
11704
11705 2008-08-22  Eric Blake  <ebb9@byu.net>
11706
11707         test-lock, test-tls: mention why a test is skipped
11708         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
11709         skipped.
11710         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
11711
11712         count-one-bits: relax license
11713         * modules/count-one-bits (License): Relicense to LGPLv2+.
11714         Suggested by Ludovic Courtès, approved by Ben Pfaff.
11715
11716 2008-08-22  Andreas Schwab  <schwab@suse.de>
11717
11718         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11719         Remove spurious space in assignment.
11720
11721 2008-08-21  Simon Josefsson  <simon@josefsson.org>
11722
11723         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
11724         Paul Eggert <eggert@CS.UCLA.EDU>.
11725
11726 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
11727
11728         * modules/gettext: Add m4/threadlib.m4.
11729
11730 2008-08-19  Eric Blake  <ebb9@byu.net>
11731
11732         test-c-stack: fix compilation failure on FreeBSD 5.0
11733         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
11734         headers before <sys/resource.h>.
11735         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
11736         the bug.
11737         Reported by Nelson H. F. Beebe.
11738
11739         strverscmp: migrate from "strverscmp.h" to <string.h>
11740         * modules/string (Makefile.am): Add new hooks.
11741         * modules/strverscmp (Files): Remove strverscmp.h.
11742         (Depends-on): Add string.
11743         (configure.ac): Add indicator.
11744         (Include): Mention new header.
11745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
11746         defaults.
11747         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
11748         results.
11749         * lib/strverscmp.h: Delete.
11750         * lib/string.in.h (strverscmp): Provide declaration, when needed.
11751         * tests/test-strverscmp.c (includes): Adjust client.
11752         * lib/check-version.c (includes): Likewise.
11753         * NEWS: Document the change.
11754
11755         strverscmp: add unit test
11756         * modules/strverscmp-tests: New file.
11757         * tests/test-strverscmp.c: Likewise.
11758
11759 2008-08-19  Simon Josefsson  <simon@josefsson.org>
11760
11761         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
11762         regarding Windows crypto stuff, from Mono.
11763
11764 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
11765
11766         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
11767         if present, for intel RND.  Return error on failures.
11768
11769 2008-08-18  Ben Pfaff  <blp@gnu.org>
11770
11771         gitlog-to-changelog: give better diagnostic for failed pipe-open
11772         * build-aux/gitlog-to-changelog: Improve error message: suggest
11773         that the version of Git may be too old.
11774
11775 2008-08-18  Simon Josefsson  <simon@josefsson.org>
11776
11777         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
11778         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
11779
11780 2008-08-18  Bruno Haible  <bruno@clisp.org>
11781
11782         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
11783         pthread_in_use().
11784
11785 2008-08-18  Bruno Haible  <bruno@clisp.org>
11786
11787         * lib/glthread/threadlib.c: Include <pthread.h>.
11788
11789 2008-08-18  Bruno Haible  <bruno@clisp.org>
11790
11791         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
11792         glthread_recursive_lock_* macros.
11793         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
11794         Fix syntax error.
11795
11796 2008-08-18  Bruno Haible  <bruno@clisp.org>
11797
11798         * lib/glthread/thread.c: Avoid forcing a context switch right after
11799         thread creation.
11800
11801 2008-08-17  Bruno Haible  <bruno@clisp.org>
11802
11803         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
11804         * lib/glthread/thread.h: Provide Win32 specific implementation.
11805         * modules/thread (Files): Add lib/glthread/thread.c.
11806         (Depends-on): Add lock.
11807         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
11808
11809 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11810
11811         New module 'yield'.
11812         * modules/yield: New file.
11813         * lib/glthread/yield.h: New file.
11814         * m4/yield.m4: New file.
11815         * MODULES.html.sh (Multithreading): Add yield.
11816
11817 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11818
11819         New module 'thread'.
11820         * modules/thread: New file.
11821         * lib/glthread/thread.h: New file.
11822         * m4/thread.m4: New file.
11823         * MODULES.html.sh (Multithreading): Add thread.
11824
11825 2008-08-17  Bruno Haible  <bruno@clisp.org>
11826
11827         * lib/glthread/lock.h: Include <stdlib.h> always.
11828         * lib/glthread/tls.h: Likewise.
11829         * lib/glthread/cond.h: Likewise.
11830
11831 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11832
11833         New module 'cond'.
11834         * modules/cond: New file.
11835         * lib/glthread/cond.h: New file.
11836         * lib/glthread/cond.c: New file.
11837         * m4/cond.m4: New file.
11838         * MODULES.html.sh (Multithreading): Add cond.
11839
11840 2008-08-16  Eric Blake  <ebb9@byu.net>
11841
11842         c-stack: fix regression on Irix 5.3 from 2008-06-21
11843         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
11844         sa_sigaction...
11845         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
11846         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
11847         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
11848         * modules/signal (Makefile.am): Use the value.
11849         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
11850         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
11851         * doc/posix-headers/signal.texi (signal.h): Document this
11852         portability issue.
11853         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
11854         Reported by Tom G. Christensen.
11855
11856 2008-08-17  Bruno Haible  <bruno@clisp.org>
11857
11858         New module 'threadlib'.
11859         * modules/threadlib: New file.
11860         * lib/glthread/threadlib.c: New file, extracted from
11861         lib/glthread/lock.c.
11862         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
11863         functions.
11864         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
11865         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
11866         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
11867         macros.
11868         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
11869         (gl_DISABLE_THREADS): Remove macro.
11870         * modules/lock (Files): Remove build-aux/config.rpath.
11871         (Depends-on): Remove havelib. Add threadlib.
11872         (configure.ac-early): Remove section.
11873         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
11874         * modules/tls (Depends-on): Remove lock. Add threadlib.
11875         (Link): New section, copied from threadlib.
11876         * MODULES.html.sh (Multithreading): Add threadlib.
11877
11878 2008-08-14  Bruno Haible  <bruno@clisp.org>
11879
11880         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
11881         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
11882         glthread_rwlock_unlock, glthread_rwlock_destroy,
11883         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
11884         glthread_recursive_lock_destroy): Define as macros always.
11885         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
11886         glthread_lock_lock.
11887         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
11888         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
11889         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
11890         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
11891         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
11892         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
11893         (glthread_recursive_lock_lock_func): Renamed from
11894         glthread_recursive_lock_lock.
11895         (glthread_recursive_lock_unlock_func): Renamed from
11896         glthread_recursive_lock_unlock.
11897         (glthread_recursive_lock_destroy_func): Renamed from
11898         glthread_recursive_lock_destroy.
11899
11900 2008-08-14  Bruno Haible  <bruno@clisp.org>
11901
11902         * lib/glthread/lock.h: Renamed from lib/lock.h.
11903         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
11904         * lib/glthread/tls.h: Renamed from lib/tls.h.
11905         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
11906         * lib/fstrcmp.c: Update includes.
11907         * lib/strsignal.c: Update includes.
11908         * modules/lock (Files, Makefile.am): Update.
11909         (Include): Change to "glthread/lock.h".
11910         * modules/tls (Files, Makefile.am): Update.
11911         (Include): Change to "glthread/tls.h".
11912         * tests/test-lock.c: Update includes.
11913         * tests/test-tls.c: Update includes.
11914         * NEWS: Mention the renamed header files.
11915
11916 2008-08-11  Jim Meyering  <meyering@redhat.com>
11917
11918         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
11919
11920 2008-08-11  Eric Blake  <ebb9@byu.net>
11921
11922         test-c-stack: avoid C99-ism
11923         * tests/test-c-stack.c (main): Fix whitespace, move declaration
11924         before statement.
11925         Reported by Alain Guibert.
11926
11927 2008-08-10  Jim Meyering  <meyering@redhat.com>
11928
11929         ensure that return value of uinttostr et al are not ignored
11930         * lib/inttostr.h (__GNUC_PREREQ): Define.
11931         (__attribute_warn_unused_result__): Define.
11932         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
11933
11934 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
11935
11936         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
11937         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
11938
11939 2008-08-07  Jim Meyering  <meyering@redhat.com>
11940
11941         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
11942
11943         * modules/mkstemp (License): Relicense under LGPLv2+.
11944         * modules/tempname (License): Likewise.
11945
11946 2008-08-06  Bruno Haible  <bruno@clisp.org>
11947
11948         * lib/poll.c (poll): Further micro-optimization.
11949
11950 2008-08-06  Jim Meyering  <meyering@redhat.com>
11951
11952         inet_pton.c: use locale-independent tolower
11953         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
11954         (inet_pton6): Use c_tolower rather than tolower.
11955         * modules/inet_pton (Depends-on): Add c-ctype.
11956
11957 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
11958
11959         * lib/poll.c (poll): Avoid division when timeout is 0, cache
11960         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
11961
11962 2008-08-06  Jim Meyering  <meyering@redhat.com>
11963
11964         * modules/inet_pton (License): Relicense under LGPLv2+.
11965
11966 2008-08-03  Bruno Haible  <bruno@clisp.org>
11967
11968         Additional non-aborting API for lock and tls.
11969         * lib/lock.h: Include <errno.h>.
11970         (glthread_lock_init): New macro/function.
11971         (gl_lock_init): Define as wrapper around glthread_lock_init.
11972         (glthread_lock_lock): New macro/function.
11973         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
11974         (glthread_lock_unlock): New macro/function.
11975         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
11976         (glthread_lock_destroy): New macro/function.
11977         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
11978         (glthread_rwlock_init): New macro/function.
11979         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
11980         (glthread_rwlock_rdlock): New macro/function.
11981         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
11982         (glthread_rwlock_wrlock): New macro/function.
11983         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
11984         (glthread_rwlock_unlock): New macro/function.
11985         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
11986         (glthread_rwlock_destroy): New macro/function.
11987         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
11988         (glthread_recursive_lock_init): New macro/function.
11989         (gl_recursive_lock_init): Define as wrapper around
11990         glthread_recursive_lock_init.
11991         (glthread_recursive_lock_lock): New macro/function.
11992         (gl_recursive_lock_lock): Define as wrapper around
11993         glthread_recursive_lock_lock.
11994         (glthread_recursive_lock_unlock): New macro/function.
11995         (gl_recursive_lock_unlock): Define as wrapper around
11996         glthread_recursive_lock_unlock.
11997         (glthread_recursive_lock_destroy): New macro/function.
11998         (gl_recursive_lock_destroy): Define as wrapper around
11999         glthread_recursive_lock_destroy.
12000         (glthread_once): New macro/function.
12001         (gl_once): Define as wrapper around glthread_once.
12002         Update function declarations.
12003         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
12004         glthread_rwlock_init. Return error code.
12005         (glthread_rwlock_rdlock_multithreaded): Renamed from
12006         glthread_rwlock_rdlock. Return error code.
12007         (glthread_rwlock_wrlock_multithreaded): Renamed from
12008         glthread_rwlock_wrlock. Return error code.
12009         (glthread_rwlock_unlock_multithreaded): Renamed from
12010         glthread_rwlock_unlock. Return error code.
12011         (glthread_rwlock_destroy_multithreaded): Renamed from
12012         glthread_rwlock_destroy. Return error code.
12013         (glthread_recursive_lock_init_multithreaded): Renamed from
12014         glthread_recursive_lock_init. Return error code.
12015         (glthread_recursive_lock_lock_multithreaded): Renamed from
12016         glthread_recursive_lock_lock. Return error code.
12017         (glthread_recursive_lock_unlock_multithreaded): Renamed from
12018         glthread_recursive_lock_unlock. Return error code.
12019         (glthread_recursive_lock_destroy_multithreaded): Renamed from
12020         glthread_recursive_lock_destroy. Return error code.
12021         (glthread_once_call): Make static.
12022         (glthread_once_multithreaded): Renamed from glthread_once.
12023         * lib/tls.h: Include <errno.h>.
12024         (glthread_tls_key_init): New macro/function.
12025         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
12026         (glthread_tls_set): New macro/function.
12027         (gl_tls_set): Define as wrapper around glthread_tls_set.
12028         (glthread_tls_key_destroy): New macro/function.
12029         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
12030         Update function declarations.
12031         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
12032         glthread_tls_get.
12033         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12034
12035 2008-08-04  Eric Blake  <ebb9@byu.net>
12036
12037         gnumakefile: use space, not TAB, outside of targets
12038         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
12039
12040 2008-08-02  Jim Meyering  <meyering@redhat.com>
12041
12042         getdate.y: avoid locale-dependent date parsing failure
12043         In Turkish locales, getdate would fail to recognize keywords
12044         containing a lowercase "i".  The solution is not to rely on
12045         locale-sensitive case-conversion.
12046         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
12047         (lookup_word): Use c_toupper in place of toupper.
12048         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
12049         Reported by Vefa Bicakci <bicave@superonline.com> in
12050         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
12051         * modules/getdate (Depends-on): Add c-ctype.
12052
12053 2008-08-02  Bruno Haible  <bruno@clisp.org>
12054
12055         * gnulib-tool (func_import): When updating or creating a .gitignore
12056         file, prepend each added line with a slash, and ignore leading slashes
12057         from the existing lines.
12058         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12059
12060 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12061
12062         Portability fix for GNU make 3.79.1.
12063         * top/GNUmakefile: Avoid 'else COND', which older GNU make
12064         versions do not understand.
12065
12066 2008-08-01  Bruno Haible  <bruno@clisp.org>
12067
12068         Work around bug of HP-UX 10.20 cc with -0.0 literal.
12069         * tests/test-isnanf.h (zero): New variable.
12070         (main): Avoid literal -0.0f.
12071         * tests/test-isnand.h (zero): New variable.
12072         (main): Avoid literal -0.0.
12073         * tests/test-isnanl.h (zero): New variable.
12074         (main): Avoid literal -0.0L.
12075         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
12076         (test_float, test_double, test_long_double): Avoid literals -0.0f,
12077         -0.0, -0.0L.
12078         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
12079         (test_signbitd): Avoid literal -0.0.
12080         (test_signbitl): Avoid literal -0.0L.
12081         * tests/test-ceilf1.c (zero): New variable.
12082         (main): Avoid literal -0.0f.
12083         * tests/test-ceill.c (zero): New variable.
12084         (main): Avoid literal -0.0L.
12085         * tests/test-floorf1.c (zero): New variable.
12086         (main): Avoid literal -0.0f.
12087         * tests/test-floorl.c (zero): New variable.
12088         (main): Avoid literal -0.0L.
12089         * tests/test-roundf1.c (zero): New variable.
12090         (main): Avoid literal -0.0f.
12091         * tests/test-round1.c (zero): New variable.
12092         (main): Avoid literal -0.0.
12093         * tests/test-roundl.c (zero): New variable.
12094         (main): Avoid literal -0.0L.
12095         * tests/test-truncf1.c (zero): New variable.
12096         (main): Avoid literal -0.0f.
12097         * tests/test-trunc1.c (zero): New variable.
12098         (main): Avoid literal -0.0.
12099         * tests/test-truncl.c (zero): New variable.
12100         (main): Avoid literal -0.0L.
12101         * tests/test-frexp.c (zero): New variable.
12102         (main): Avoid literal -0.0.
12103         * tests/test-frexpl.c (zero): New variable.
12104         (main): Avoid literal -0.0L.
12105         * tests/test-ldexpl.c (zero): New variable.
12106         (main): Avoid literal -0.0L.
12107         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12108         (zerod, zerol): New variables.
12109         (test_function): Avoid literals -0.0, -0.0L.
12110         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12111         (zerod, zerol): New variables.
12112         (test_function): Avoid literals -0.0, -0.0L.
12113         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12114         (zerod, zerol): New variables.
12115         (test_function): Avoid literals -0.0, -0.0L.
12116         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12117         (zerod, zerol): New variables.
12118         (test_function): Avoid literals -0.0, -0.0L.
12119         * tests/test-strtod.c (zero): New variable.
12120         (main): Avoid literal -0.0.
12121         Reported by Jonathan C. Patschke <jp@centtech.com>.
12122
12123 2008-07-31  Jim Meyering  <meyering@redhat.com>
12124
12125         sha256.h: correct definition of SHA224_DIGEST_SIZE
12126         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
12127         Reported by Paulie Pena IV <paulie4@gmail.com>.
12128         Define as 224 / 8, rather than as a literal.
12129         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
12130         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
12131         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
12132
12133 2008-07-31  Bruno Haible  <bruno@clisp.org>
12134
12135         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
12136         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
12137         Reported by Jonathan Patschke <jp@centtech.com>.
12138
12139 2008-07-31  Bruno Haible  <bruno@clisp.org>
12140
12141         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
12142         Reported by Paolo Bonzini <bonzini@gnu.org>.
12143
12144 2008-07-30  Eric Blake  <ebb9@byu.net>
12145
12146         test-strtod: allow compilation without -lm
12147         * tests/test-strtod.c (main): Avoid link dependence on fabs.
12148         Reported by Dennis Clarke <blastwave@gmail.com>.
12149
12150 2008-07-28  Jim Meyering  <meyering@redhat.com>
12151
12152         bootstrap: work also when there are no .po files in po/
12153         * build-aux/bootstrap (update_po_files): Complete the change
12154         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
12155
12156 2008-07-27  Jim Meyering  <meyering@redhat.com>
12157
12158         * users.txt: Add zile.
12159
12160 2008-07-26  Ben Pfaff  <blp@gnu.org>
12161
12162         Add missing dependencies on new m4/exponent[fdl].m4 files.
12163         * modules/isnanf-nolibm: Add m4/exponentf.m4.
12164         * modules/isnand-nolibm: Add m4/exponentd.m4.
12165         * modules/isnanl-nolibm: Add m4/exponentl.m4.
12166         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
12167         m4/isnan[fdl].m4, because the macros actually used moved.
12168         Reported by Jim Meyering.
12169
12170 2008-07-14  Ben Pfaff  <blp@gnu.org>
12171
12172         Add isinf module.
12173         * lib/isinf.c: New file.
12174         * lib/math.in.h: Define isinf macro if we have decided to replace
12175         it.
12176         * m4/isinf.m4: New file.
12177         * m4/math_h.m4: Initialize and substitute variables for isinf
12178         module.
12179         * modules/isinf: New file.
12180         * modules/isinf-tests: New file.
12181         * modules/math: Add substitutions for new module.
12182         * tests/test-isinf.c: New file.
12183         * doc/posix-functions/isinf.texi: Mention new module.
12184         * MODULES.html.sh: Mention new module.
12185
12186 2008-07-14  Ben Pfaff  <blp@gnu.org>
12187
12188         Factor out some macros for use by additional modules.
12189         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
12190         exponentf.m4.
12191         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
12192         exponentd.m4.
12193         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
12194         file exponentl.m4.
12195         * m4/exponentf.m4: New file.
12196         * m4/exponentd.m4: New file.
12197         * m4/exponentl.m4: New file.
12198         * modules/isnanf: Use new file m4/exponentf.m4.
12199         * modules/isnand: Use new file m4/exponentd.m4.
12200         * modules/isnanl: Use new file m4/exponentl.m4.
12201
12202 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
12203
12204         mktime.c: normalize tp->tm_isdst value to -1/0/1.
12205         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
12206         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
12207         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
12208
12209         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
12210         readlink on platforms without PATH_MAX.
12211
12212 2008-07-21  Eric Blake  <ebb9@byu.net>
12213
12214         Warn, not fail, on stale version.
12215         * top/GNUmakefile (_curr-ver): Tone down previous patch.
12216
12217         Don't allow installation with stale devel version number.
12218         * top/GNUmakefile (_is-install-target): New macro.
12219         (_curr-ver): Forbid installation with stale version number.
12220
12221 2008-07-20  Bruno Haible  <bruno@clisp.org>
12222
12223         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
12224         TESTS_ENVIRONMENT.
12225         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
12226
12227 2008-07-20  Bruno Haible  <bruno@clisp.org>
12228
12229         * lib/c-stack.h (c_stack_action): Add documentation.
12230         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
12231
12232 2008-07-20  Bruno Haible  <bruno@clisp.org>
12233
12234         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
12235         * modules/readlink (License): Likewise.
12236
12237 2008-07-17  Eric Blake  <ebb9@byu.net>
12238
12239         * modules/c-stack (Link): Fix typo.
12240
12241         Make c-stack use libsigsegv, when available.
12242         * modules/c-stack (Depends-on): Add libsigsegv.
12243         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
12244         needed.
12245         * lib/c-stack.c (SIGSTKSZ): Define fallback.
12246         (segv_handler, overflow_handler, c_stack_action)
12247         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
12248         implementation when libsigsegv is available, but only when using
12249         the library is necessary.
12250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
12251         comment, explaining why XSI check fails on Linux.
12252         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
12253         * tests/test-c-stack2.sh: Tweak skip message.
12254         * NEWS: Document new link-time requirements.
12255
12256 2008-07-16  Eric Blake  <ebb9@byu.net>
12257
12258         c-stack: Expose false positives when not using libsigsegv.
12259         * modules/c-stack-tests (Files): Expand test.
12260         * tests/test-c-stack.c (main): Add means to conditionally trigger
12261         non-overflow SIGSEGV.
12262         * tests/test-c-stack2.sh: New file.
12263
12264 2008-07-14  Bruno Haible  <bruno@clisp.org>
12265
12266         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
12267         Reported by Eric Blake.
12268
12269 2008-07-14  Sam Steingold  <sds@gnu.org>
12270             Bruno Haible  <bruno@clisp.org>
12271
12272         New module libsigsegv.
12273         * modules/libsigsegv: New file.
12274         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
12275         modifications.
12276         * MODULES.html.sh (Signal handling): New section.
12277
12278 2008-07-14  Bruno Haible  <bruno@clisp.org>
12279
12280         * modules/unictype/ctype-* (Description): Add the word "function".
12281         Improves the resulting doc in MODULES.html.
12282
12283 2008-07-12  Ben Pfaff  <blp@gnu.org>
12284
12285         Add longlong module.
12286         * modules/longlong: New file.
12287
12288 2008-07-12  Bruno Haible  <bruno@clisp.org>
12289
12290         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
12291         to empty.
12292
12293 2008-07-10  Ben Pfaff  <blp@gnu.org>
12294
12295         Add isnan module.
12296         * doc/posix-functions/isnan.texi: Mention new module.
12297         * lib/math.in.h: Define isnan macro if we have decided to replace
12298         it.
12299         * m4/isnan.m4: New file.
12300         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
12301         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
12302         also.
12303         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
12304         redundancy.
12305         * m4/math_h.m4: Initialize and substitute variables for isnan
12306         module.
12307         * modules/isnan: New file.
12308         * modules/isnan-tests: New file.
12309         * modules/math: Add substitutions for new module.
12310         * tests/test-isnan.c: New file.
12311         * MODULES.html.sh: Mention new module.
12312
12313 2008-07-10  Ben Pfaff  <blp@gnu.org>
12314
12315         Add isnanf module.
12316         * lib/isnanf.m4: New file.
12317         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
12318         (gl_HAVE_ISNANF_IN_LIBM): New macro.
12319         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
12320         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
12321         * modules/isnanf: New file.
12322         * modules/isnanf-tests: New file.
12323         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
12324         files.
12325         * tests/test-isnanf-nolibm.c: factored most of its contents into
12326         new file tests/test-isnanf.h.
12327         * tests/test-isnanf.h: New file.
12328         * tests/test-isnanf.c: New file.
12329         * MODULES.html.sh: Mention new module.
12330         * doc/glibc-functions/isnanf.texi: Mention new module.
12331
12332 2008-07-10  Ben Pfaff  <blp@gnu.org>
12333
12334         Add isnand module.
12335         * lib/isnand.h: New file.
12336         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
12337         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
12338         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
12339         functionality also.
12340         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
12341         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
12342         (gl_HAVE_ISNAND_IN_LIBM): New macro.
12343         * modules/isnand: New file.
12344         * modules/isnand-tests: New file.
12345         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
12346         files.
12347         * tests/test-isnand-nolibm.c: factored most of its contents into
12348         new file tests/test-isnand.h.
12349         * tests/test-isnand.h: New file.
12350         * tests/test-isnand.c: New file.
12351         * MODULES.html.sh: Mention new module.
12352
12353 2008-07-10  Ben Pfaff  <blp@gnu.org>
12354
12355         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
12356         * lib/isnand.h: Rename lib/isnand-nolibm.h.
12357         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
12358         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
12359         * modules/isnanf-nolibm: Update references to renamed files.
12360         * modules/isnand-nolibm: Likewise.
12361         * modules/isnanf-nolibm-tests: Likewise.
12362         * modules/isnand-nolibm-tests: Likewise.
12363         * lib/frexp.c: Likewise.
12364         * lib/isfinite.c: Likewise.
12365         * lib/signbitd.c: Likewise.
12366         * lib/signbitf.c: Likewise.
12367         * lib/vasnprintf.c: Likewise.
12368         * tests/test-ceilf1.c: Likewise.
12369         * tests/test-ceilf2.c: Likewise.
12370         * tests/test-floorf1.c: Likewise.
12371         * tests/test-floorf2.c: Likewise.
12372         * tests/test-frexp.c: Likewise.
12373         * tests/test-round1.c: Likewise.
12374         * tests/test-round2.c: Likewise.
12375         * tests/test-roundf1.c: Likewise.
12376         * tests/test-strtod.c: Likewise.
12377         * tests/test-trunc1.c: Likewise.
12378         * tests/test-trunc2.c: Likewise.
12379         * tests/test-truncf1.c: Likewise.
12380         * tests/test-truncf2.c: Likewise.
12381         * NEWS: Mention the renamed header files.
12382
12383 2008-07-11  Jim Meyering  <meyering@redhat.com>
12384
12385         vc-list-files: make the last-resort awk code more portable
12386         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
12387         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
12388         does not support it.
12389
12390 2008-07-10  Eric Blake  <ebb9@byu.net>
12391
12392         Work with tar's bootstrap.
12393         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
12394         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
12395         an m4 comment.
12396
12397 2008-07-09  Jim Meyering  <meyering@redhat.com>
12398
12399         posix-shell.m4: fix typo that made this test malfunction
12400         * m4/posix-shell.m4: Remove capitalization in variable name.
12401
12402 2008-07-08  Bruno Haible  <bruno@clisp.org>
12403
12404         * m4/onceonly.m4: Update comments.
12405         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12406
12407 2008-07-04  Jim Meyering  <meyering@redhat.com>
12408
12409         * users.txt: Add vc-dwim.
12410         (bison, coreutils): Use the gitweb URL.
12411
12412 2008-07-03  Jim Meyering  <meyering@redhat.com>
12413
12414         * users.txt: Add libffcall.  From Sam Steingold.
12415
12416 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
12417
12418         getdate.y: do not ignore TZ with relative day, month or year offset
12419         * lib/getdate.y (get_date): Move the tz-handling block to follow the
12420         relative-date-handling, since otherwise, the latter would clobber the
12421         sole output (an updated Start value) of the tz-handling block.
12422         * tests/test-getdate.c: Tests for the fix
12423
12424 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12425
12426         Recognize 'foo_LIBRARIES += libgnu.a'.
12427         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
12428         makefile snippet has already specified an installation location,
12429         also using '+='.
12430
12431 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
12432
12433         getdate.y: factor out common actions
12434         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
12435         Use them in place of open-coded actions.
12436
12437 2008-07-01  Simon Josefsson  <simon@josefsson.org>
12438
12439         Add self-test for getdate module.
12440         * modules/getdate-tests: New file.
12441         * tests/test-getdate.c: New file.
12442
12443 2008-06-29  Bruno Haible  <bruno@clisp.org>
12444
12445         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
12446         .gitignore.
12447         Reported by Sylvain Beucler <beuc@beuc.net>.
12448
12449 2008-06-29  Bruno Haible  <bruno@clisp.org>
12450
12451         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
12452         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
12453
12454 2008-06-29  Bruno Haible  <bruno@clisp.org>
12455
12456         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
12457         EXTRA_DIST.
12458         Reported by Sylvain Beucler <beuc@beuc.net>.
12459
12460 2008-06-26  Jim Meyering  <meyering@redhat.com>
12461
12462         make several modules depend on the "open" module
12463         This provides slightly increased consistency when opening-for-write
12464         the name of a non-directory spelled with a trailing slash.
12465         * modules/chdir-safer: Likewise.
12466         * modules/chown: Likewise.
12467         * modules/clean-temp: Likewise.
12468         * modules/copy-file: Likewise.
12469         * modules/fchdir: Likewise.
12470         * modules/fcntl-safer: Likewise.
12471         * modules/pipe: Likewise.
12472         * modules/utime: Likewise.
12473         Prompted by Eric Blake and Bruno Haible.
12474
12475 2008-06-24  Andreas Schwab  <schwab@suse.de>
12476
12477         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
12478         literals can be used as initializers for global variables.
12479
12480 2008-06-23  Eric Blake  <ebb9@byu.net>
12481
12482         Make gnulib-cache.m4 easier to diff.
12483         * gnulib-tool (func_import): Allow newlines when reading cached
12484         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
12485
12486 2008-06-23  Bruno Haible  <bruno@clisp.org>
12487
12488         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
12489         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
12490         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
12491         m4/signalblocking.m4.
12492         (gl_PREREQ_SIGACTION): Don't invoke it.
12493         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
12494         gl_PREREQ_SIG_HANDLER_H.
12495         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12496         Don't check for sigaction here.
12497
12498 2008-06-23  Bruno Haible  <bruno@clisp.org>
12499
12500         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
12501         (install_handlers): Don't set the SA_RESETHAND flag.
12502
12503 2008-06-23  Bruno Haible  <bruno@clisp.org>
12504
12505         * m4/sigaction.m4: Comment fixes.
12506         * lib/signal.in.h: Likewise.
12507
12508 2008-06-23  Eric Blake  <ebb9@byu.net>
12509
12510         Fix typo.
12511         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
12512
12513         Avoid SA_ namespace.
12514         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
12515         Reported by Ralf Wildenhues.
12516
12517         Avoid test failure due to SA_RESTORER.
12518         * tests/test-sigaction.c (SA_MASK): New macro.
12519         (main): Avoid failing due to extension flags being set.
12520         Reported by Jim Meyering.
12521
12522         Revert use of sig-handler.h in sigprocmask.c.
12523         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
12524         it requires the existence of struct sigaction.
12525         * lib/sigprocmask.c (handler_t): Restore typedef.
12526         (rpl_signal, old_handlers): Use local type.
12527
12528 2008-06-22  Bruno Haible  <bruno@clisp.org>
12529
12530         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
12531         conditionally.
12532         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12533
12534 2008-06-22  Bruno Haible  <bruno@clisp.org>
12535
12536         * doc/posix-functions/siginterrupt.texi: Move note.
12537
12538         * lib/signal.in.h (SA_RESTART): New macro.
12539         * lib/sigaction.c: Update comment.
12540
12541         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
12542
12543         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
12544         (gl_PREREQ_SIGPROCMASK): Invoke it.
12545         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
12546
12547         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
12548
12549         * lib/sigprocmask.c: Update a comment.
12550
12551 2008-06-21  Eric Blake  <ebb9@byu.net>
12552
12553         Use sigaction module rather than signal().
12554         * modules/c-stack (Depends-on): Add sigaction.
12555         * modules/fatal-signal (Depends-on): Likewise.
12556         * modules/nanosleep (Depends-on): Likewise.
12557         * modules/sigprocmask (Files): Add sig-handler.h.
12558         * modules/sigaction (Files): Likewise.
12559         * lib/sig-handler.h (get_handler): New file, suggested by Paul
12560         Eggert.
12561         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
12562         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
12563         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
12564         (init_fatal_signals): Likewise.
12565         * lib/nanosleep.c (rpl_nanosleep): Likewise.
12566         (siginterrupt): Delete fallback.
12567         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
12568         instead.
12569         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
12570         siginterrupt.
12571
12572         New module sigaction, for mingw.
12573         * modules/sigaction: New module...
12574         * modules/sigaction-tests: ...and its test.
12575         * m4/sigaction.m4: New file.
12576         * lib/sigaction.c: Likewise.
12577         * tests/test-sigaction.c: Likewise.
12578         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
12579         * modules/signal (Makefile.am): Likewise.
12580         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
12581         needed.
12582         * doc/posix-headers/signal.texi (signal.h): Mention provided
12583         types.
12584         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
12585         that sigaction is preferable.
12586         * doc/posix-functions/sigaction.texi (sigaction): Mention new
12587         module.
12588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12589         sigaction.
12590
12591         Improve robustness of sigprocmask by overriding signal.
12592         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
12593         is in use.
12594         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
12595         (SIGKILL, SIGSTOP): Provide fallbacks.
12596         (rpl_signal): Implement.
12597         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
12598         signal can be called inside handlers.
12599
12600         Fix nanosleep module on mingw.
12601         * modules/nanosleep (Depends-on): Add sys_select.
12602         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
12603
12604         Fix licensing of sigprocmask.
12605         * modules/raise (License): Relicense as LGPL.
12606
12607 2008-06-21  Bruno Haible  <bruno@clisp.org>
12608
12609         * lib/propername.c (proper_name_utf8): Don't use the transliterated
12610         result if it contains question marks.
12611         Reported by Michael Geng <linux@michaelgeng.de>.
12612
12613 2008-06-19  Bruno Haible  <bruno@clisp.org>
12614
12615         Fix CVS-ism.
12616         * doc/gnulib.texi: Include updated-stamp.texi.
12617         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
12618         (updated-stamp.texi): New rule.
12619         (gnulib.info): Depend on it.
12620         * doc/.gitignore: Add updated-stamp.texi.
12621         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
12622
12623 2008-06-19  Bruno Haible  <bruno@clisp.org>
12624
12625         * doc/Makefile (gnulib.info): Update and simplify dependencies.
12626         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12627
12628 2008-06-19  Eric Blake  <ebb9@byu.net>
12629
12630         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
12631         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
12632         Reported by Stepan Kasal.
12633
12634 2008-06-18  Bruno Haible  <bruno@clisp.org>
12635
12636         * lib/fatal-signal.c (init_fatal_signals): Add comment.
12637         Reported by Eric Blake.
12638
12639 2008-06-18  Eric Blake  <ebb9@byu.net>
12640
12641         Work around cygwin 1.5.25 strsignal bug.
12642         * tests/test-strsignal.c: Allow for const char *.
12643         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
12644
12645 2008-06-18  Simon Josefsson  <simon@josefsson.org>
12646
12647         * users.txt: Update URL to article and add author/date
12648         information.
12649
12650 2008-06-17  Bruno Haible  <bruno@clisp.org>
12651
12652         New macro gl_DISABLE_THREADS.
12653         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
12654         if the user did not pass --enable-threads or --disable-threads option.
12655         (gl_DISABLE_THREADS): New macro.
12656         Reported by Eric Blake <ebb9@byu.net>.
12657
12658 2008-06-17  Bruno Haible  <bruno@clisp.org>
12659
12660         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
12661         when the macro ignores it.
12662         Based on a patch by Eric Blake <ebb9@byu.net>.
12663
12664 2008-06-17  Bruno Haible  <bruno@clisp.org>
12665
12666         * modules/tls (License): Change to LGPLv2+.
12667         Reported by Eric Blake.
12668
12669 2008-06-17  Eric Blake  <ebb9@byu.net>
12670
12671         Simplify c-stack prerequisites.
12672         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
12673         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
12674         no longer requires <ucontext.h> to exist.  Optimize setrlimit
12675         check.
12676         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
12677         <sys/resource.h>.
12678
12679         Move c-stack test into testsuite.
12680         * modules/c-stack-tests: New file.
12681         * lib/c-stack.c [DEBUG]: Move test program...
12682         * tests/test-c-stack.c: ...into this new file.  Skip rather than
12683         fail test if sigaltstack is lacking.
12684         * tests/test-c-stack.sh: New driver file.
12685
12686 2008-06-16  Eric Blake  <ebb9@byu.net>
12687
12688         Use raise module consistently.
12689         * modules/fatal-signal (Depends-on): Add raise.
12690         * modules/sigprocmask (Depends-on): Likewise.
12691         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
12692         * lib/sigprocmask.c (sigprocmask): Likewise.
12693         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12694         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
12695
12696         Fix compliance bug in sigpending.
12697         * lib/sigprocmask.c (sigpending): Return pending array via
12698         parameter, not return value.
12699
12700 2008-06-14  Eric Blake  <ebb9@byu.net>
12701
12702         Improve obstack-printf test code.
12703         * tests/test-obstack-printf.c (test_function): Fix comment, and
12704         simplify usage of obstack_* in macros.  Add a test for coverage.
12705         Reported by Bruno Haible.
12706
12707 2008-06-14  Bruno Haible  <bruno@clisp.org>
12708
12709         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
12710         array size as a constant, not as a const variable.
12711         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
12712         AC_USE_SYSTEM_EXTENSIONS.
12713         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12714         Test whether the obstack_printf function actually exists.
12715         * modules/obstack-printf (Depends-on): Add extensions.
12716         (Include): Remove obstack.h.
12717         * modules/obstack-printf-posix (Depends-on): Add extensions.
12718         (Include): Remove obstack.h.
12719
12720 2008-06-13  Eric Blake  <ebb9@byu.net>
12721
12722         Add obstack-printf and obstack-printf-posix modules.
12723         * modules/obstack-printf: New file.
12724         * modules/obstack-printf-posix: Likewise.
12725         * MODULES.html.sh (Misc): Mention them.
12726         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
12727         Likewise.
12728         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
12729         Likewise.
12730         * modules/stdio (Makefile.am): Accomodate new modules.
12731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12732         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
12733         Declare.
12734         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
12735         functions.
12736         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
12737         (gl_REPLACE_OBSTACK_PRINTF): New macros
12738         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
12739         * tests/test-obstack-printf.c: New file.
12740         * modules/obstack-printf-tests: Likewise.
12741         * modules/obstack-printf-posix-tests: Likewise.
12742
12743 2008-06-11  Bruno Haible  <bruno@clisp.org>
12744
12745         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
12746         * lib/open.c: Include errno.h.
12747         (open): Fail when attempting to write to a file that has a trailing
12748         slash.
12749         * tests/test-open.c (main): Test against trailing slash bug.
12750         * doc/posix-functions/open.texi: Mention the trailing slash bug.
12751
12752 2008-06-10  Bruno Haible  <bruno@clisp.org>
12753
12754         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
12755         for $? to work inside the trap command, with various /bin/sh-s.
12756         * tests/test-vc-list-files-cvs.sh: Likewise.
12757
12758 2008-06-10  Bruno Haible  <bruno@clisp.org>
12759
12760         * lib/acl-internal.h: Don't include gettext.h here.
12761         * lib/set-mode-acl.c: Include gettext.h here.
12762         * lib/copy-acl.c: Likewise.
12763
12764 2008-06-10  Bruno Haible  <bruno@clisp.org>
12765
12766         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
12767         * lib/wait-process.c (wait_subprocess): Likewise.
12768         * lib/execute.h (execute): Add termsigp argument.
12769         * lib/execute.c (execute): Likewise.
12770         * lib/csharpcomp.c (compile_csharp_using_pnet,
12771         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
12772         * lib/csharpexec.c (execute_csharp_using_pnet,
12773         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
12774         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
12775         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
12776         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
12777         is_jikes_present): Update.
12778         * lib/javaexec.c (execute_java_class): Update.
12779         * lib/javaversion.c (execute_and_read_line): Update.
12780         * NEWS: Document the changes.
12781         Reported by Eric Blake.
12782
12783 2008-06-10  Eric Blake  <ebb9@byu.net>
12784
12785         Add missing include.
12786         * tests/test-strstr.c (includes): Add <signal.h>.
12787         * tests/test-strcasestr.c (includes): Likewise.
12788         * tests/test-memmem.c (includes): Likewise.
12789
12790 2008-06-10  Bruno Haible  <bruno@clisp.org>
12791
12792         * lib/wait-process.c (wait_subprocess): Add an assertion.
12793
12794 2008-06-10  Bruno Haible  <bruno@clisp.org>
12795
12796         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
12797
12798 2008-06-10  Bruno Haible  <bruno@clisp.org>
12799
12800         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
12801         using alarm().
12802         * tests/test-strcasestr.c (main): Likewise.
12803         * tests/test-strstr.c (main): Likewise.
12804
12805 2008-06-09  Bruno Haible  <bruno@clisp.org>
12806
12807         Work around the Solaris 10 ACE ACLs ABI change.
12808         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
12809         declare if ACL_NO_TRIVIAL is present.
12810         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
12811         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
12812         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
12813         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
12814         define if ACL_NO_TRIVIAL is present.
12815         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
12816         and use the current ABI.
12817         (file_has_acl): Use same #if condition as elsewhere.
12818         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
12819         in use, and use the current ABI.
12820         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
12821         Reported by Jim Meyering.
12822
12823 2008-06-09  Eric Blake  <ebb9@byu.net>
12824
12825         Work around environments that (stupidly) ignore SIGALRM.
12826         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
12827         before using alarm().
12828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12829         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12830         Reported by Ian Beckwith <ianb@erislabs.net>.
12831
12832         Produce autobuild blurb earlier in log.
12833         * modules/autobuild (configure.ac-early): Move AB_INIT here.
12834
12835 2008-06-09  Jim Meyering  <meyering@redhat.com>
12836         and OndÅ™ej Vašík  <ovasik@redhat.com>
12837
12838         utimens.c: correct kernel bug work-around
12839         OndÅ™ej Vašík found that the invalid return value of 280 indicates
12840         failure, not success, and the kernel bug we're trying to work
12841         around affects not just the utimensat call, but also the fallback
12842         futimens call.
12843         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
12844         not success.
12845         [HAVE_FUTIMENS]: Use the same work-around, here.
12846
12847 2008-06-09  Jim Meyering  <meyering@redhat.com>
12848
12849         add more guards around definition of ACE_-related code
12850         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
12851         ALLOW and ACE_OWNER are also defined.
12852
12853 2008-06-08  Bruno Haible  <bruno@clisp.org>
12854
12855         * lib/acl-internal.h: Add me as co-author.
12856         * lib/file-has-acl.c: Likewise.
12857         * lib/set-mode-acl.c: Likewise.
12858         * lib/copy-acl.c: Likewise.
12859
12860 2008-06-08  Bruno Haible  <bruno@clisp.org>
12861
12862         Add support for AIX ACLs.
12863         * lib/acl-internal.h (acl_nontrivial): New declaration.
12864         * lib/file-has-acl.c (acl_nontrivial): New function.
12865         (file_has_acl): Add implementation using AIX 4 ACL API.
12866         * lib/set-mode-acl.c (qset_acl): Likewise.
12867         * lib/copy-acl.c (qcopy_acl): Likewise.
12868
12869 2008-06-08  Bruno Haible  <bruno@clisp.org>
12870
12871         Add support for HP-UX ACLs.
12872         * lib/acl-internal.h (acl_nontrivial): New declaration.
12873         * lib/file-has-acl.c (acl_nontrivial): New function.
12874         (file_has_acl): Add implementation using HP-UX 11 ACL API.
12875         * lib/set-mode-acl.c (qset_acl): Likewise.
12876         * lib/copy-acl.c (qcopy_acl): Likewise.
12877
12878 2008-06-08  Bruno Haible  <bruno@clisp.org>
12879
12880         Add support for Cygwin ACLs.
12881         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
12882         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
12883         the chmod_or_fchmod call.
12884         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
12885
12886 2008-06-08  Bruno Haible  <bruno@clisp.org>
12887
12888         Fix bug with setuid modes in Solaris 10+ code.
12889         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
12890         succeeded, when the mode contains some special bits.
12891
12892 2008-06-08  Bruno Haible  <bruno@clisp.org>
12893
12894         Add support for Solaris 7..10 ACLs.
12895         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
12896         declarations.
12897         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
12898         functions.
12899         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
12900         * lib/set-mode-acl.c (qset_acl): Likewise.
12901         * lib/copy-acl.c (qcopy_acl): Likewise.
12902
12903 2008-06-08  Bruno Haible  <bruno@clisp.org>
12904
12905         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
12906         declaration.
12907         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
12908         (acl_access_nontrivial): Remove MacOS X case.
12909         (file_has_acl): Use acl_extended_nontrivial.
12910         * lib/copy-acl.c (qcopy_acl): Likewise.
12911
12912 2008-06-08  Bruno Haible  <bruno@clisp.org>
12913
12914         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
12915
12916 2008-06-08  Jim Meyering  <meyering@redhat.com>
12917
12918         * modules/acl (Maintainer): Add Bruno Haible.
12919
12920 2008-06-07  Bruno Haible  <bruno@clisp.org>
12921
12922         Improve support for Tru64 ACLs.
12923         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
12924         ACL on OSF/1.
12925
12926 2008-06-07  Bruno Haible  <bruno@clisp.org>
12927
12928         Add support for MacOS X ACLs.
12929         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
12930         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
12931         * lib/set-mode-acl.c (qset_acl): Likewise.
12932         * lib/copy-acl.c (qcopy_acl): Likewise.
12933
12934 2008-06-07  Bruno Haible  <bruno@clisp.org>
12935
12936         Fix memory leak introduced on 2008-05-22.
12937         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
12938         use.
12939
12940 2008-06-07  Bruno Haible  <bruno@clisp.org>
12941
12942         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
12943         to construct an empty ACL.
12944
12945 2008-06-07  Bruno Haible  <bruno@clisp.org>
12946
12947         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
12948         precisely.
12949         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
12950
12951 2008-06-07  Bruno Haible  <bruno@clisp.org>
12952
12953         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
12954         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
12955
12956 2008-06-07  Bruno Haible  <bruno@clisp.org>
12957
12958         * doc/posix-functions/_setjmp.texi: Explain the use of this function
12959         regardless of POSIX.
12960         * doc/posix-functions/_longjmp.texi: Likewise.
12961         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
12962         SystemV platform in this case.
12963
12964 2008-06-06  Eric Blake  <ebb9@byu.net>
12965
12966         Document abort() bugs.
12967         * doc/posix-functions/abort.texi (abort): Mention anomalies.
12968
12969         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
12970         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
12971         sigsetjmp.
12972         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
12973         siglongjmp, but only as a macro.
12974         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
12975         is obsolete.
12976         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
12977
12978         Tweak documentation to cover cygwin argz bugs.
12979         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
12980         argz bug fix; no code change needed since no cygwin releases
12981         occurred between the last fix and the bug being tested.
12982         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
12983         module and recently fixed cygwin bugs.
12984         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
12985         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
12986         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
12987         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
12988         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
12989         Likewise.
12990         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
12991         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
12992         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
12993         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
12994         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
12995         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
12996         Likewise.
12997
12998         Avoid gcc warning on cygwin.
12999         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
13000         !ACL_NO_TRIVIAL]: Avoid unused variable.
13001
13002 2008-06-05  Eric Blake  <ebb9@byu.net>
13003
13004         Be tolerant of UNKNOWN version in gnulib-tool test dir.
13005         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
13006         git-version-gen fails to come up with a version.
13007         Reported by Simon Josefsson.
13008
13009 2008-06-05  Jim Meyering  <meyering@redhat.com>
13010             Paul Eggert  <eggert@cs.ucla.edu>
13011
13012         utimens.c: work around a probable Linux kernel bug
13013         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
13014         appears to be a kernel bug that causes utimensat to return 280
13015         instead of 0, indicating success.
13016
13017 2008-06-04  Bruno Haible  <bruno@clisp.org>
13018
13019         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
13020         2008-06-01 commit.
13021
13022 2008-06-04  Bruno Haible  <bruno@clisp.org>
13023
13024         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
13025         * lib/file-has-acl.c (acl_access_nontrivial): New function.
13026         (file_has_acl): Use it. Save errno afterwards.
13027         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
13028
13029 2008-06-03  Bruno Haible  <bruno@clisp.org>
13030
13031         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
13032         draft code. Simplify #ifs.
13033         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
13034         Put Solaris code after POSIX-draft code. Fix comments regarding
13035         Solaris 10, HP-UX. Mention Cygwin.
13036         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
13037
13038 2008-06-03  Eric Blake  <ebb9@byu.net>
13039
13040         Provide fallback for older kernels.
13041         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
13042         Provide runtime fallback if kernel lacks support.
13043         Reported by Mike Frysinger.
13044
13045 2008-06-02  Bruno Haible  <bruno@clisp.org>
13046
13047         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
13048         it exists.
13049
13050 2008-06-02  Bruno Haible  <bruno@clisp.org>
13051
13052         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
13053         * lib/copy-acl.c (qcopy_acl): Update comment.
13054
13055 2008-06-02  Bruno Haible  <bruno@clisp.org>
13056
13057         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
13058         like ACL APIs.
13059
13060 2008-06-02  Bruno Haible  <bruno@clisp.org>
13061
13062         * tests/test-file-has-acl.sh: Use different code for Cygwin.
13063         * tests/test-set-mode-acl.sh: Likewise.
13064         * tests/test-copy-acl.sh: Likewise.
13065         * tests/test-copy-file.sh: Likewise.
13066
13067 2008-06-02  Bruno Haible  <bruno@clisp.org>
13068
13069         * tests/test-file-has-acl.sh: Remove unused code.
13070
13071 2008-06-01  Bruno Haible  <bruno@clisp.org>
13072
13073         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
13074         (copy_acl): Just a wrapper around qcopy_acl that emits the error
13075         messages.
13076         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
13077
13078 2008-06-01  Bruno Haible  <bruno@clisp.org>
13079
13080         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
13081         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
13082         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
13083         APIs.
13084         * modules/acl-tests (configure.ac): Remove tests now contained in
13085         m4/acl.m4.
13086
13087 2008-06-02  Jim Meyering  <meyering@redhat.com>
13088
13089         announce-gen: use a better key-server host name
13090         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
13091         it may be more consistently reliable.  Suggested by Werner Koch
13092         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
13093
13094 2008-06-01  Bruno Haible  <bruno@clisp.org>
13095
13096         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
13097         Reported by Voroskoi Andras <voroskoi@gmail.com>.
13098
13099 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
13100
13101         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
13102
13103 2008-06-01  Bruno Haible  <bruno@clisp.org>
13104
13105         New ACL tests.
13106         * tests/test-file-has-acl.sh: New file.
13107         * tests/test-file-has-acl.c: New file.
13108         * tests/test-set-mode-acl.sh: New file.
13109         * tests/test-set-mode-acl.c: New file.
13110         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
13111         * tests/test-copy-acl.c: New file.
13112         * modules/acl-tests: New file, based on modules/copy-file-tests.
13113         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
13114         (Depends-on): Add acl-tests.
13115         (configure.ac): Remove checks.
13116         (Makefile.am): Don't create test-sameacls program here any more.
13117
13118 2008-06-01  Bruno Haible  <bruno@clisp.org>
13119
13120         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
13121         * tests/test-sameacls.c: Include progname.h.
13122         (main): Invoke set_program_name. Portability fixes for MacOS X,
13123         Solaris, HP-UX.
13124
13125 2008-06-01  Bruno Haible  <bruno@clisp.org>
13126
13127         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
13128         function.
13129         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
13130
13131 2008-06-01  Bruno Haible  <bruno@clisp.org>
13132
13133         * modules/rpmatch (Depends-on): Add strdup.
13134
13135 2008-06-01  Bruno Haible  <bruno@clisp.org>
13136
13137         * lib/pipe.c: Include unistd-safer.h.
13138         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
13139         * modules/pipe (Depends-on): Add unistd-safer.
13140
13141 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13142
13143         * modules/autobuild (configure.ac): Call AB_INIT.
13144
13145 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13146
13147         * tests/test-getaddrinfo.c: Don't print debug messages by default.
13148         Suggested by Bruno Haible <bruno@clisp.org>.
13149
13150 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13151
13152         * tests/test-base64.c: Cast size_t to unsigned long when invoking
13153         printf.  Use %lu instead of %d.  Reported by Bruno Haible
13154         <bruno@clisp.org>.
13155
13156 2008-05-29  Eric Blake  <ebb9@byu.net>
13157
13158         Prefer new POSIX 200x interfaces over futimesat.
13159         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
13160         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
13161         when available.
13162         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
13163
13164 2008-05-28  Bruno Haible  <bruno@clisp.org>
13165
13166         * modules/stpcpy (License): Change to LGPLv2+.
13167         Requested by David Lutterkort <dlutter@redhat.com>.
13168
13169 2008-05-27  Bruno Haible  <bruno@clisp.org>
13170
13171         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
13172         current mingw.
13173         Reported by Jose E. Marchesi <jemarch@gnu.org>.
13174
13175 2008-05-27  Bruno Haible  <bruno@clisp.org>
13176
13177         * modules/iconv_open (Link): New section, from module 'iconv'.
13178         * modules/striconv (Link): Likewise.
13179         * modules/striconveh (Link): Likewise.
13180         * modules/xstriconv (Link): Likewise.
13181         * modules/unicodeio (Link): Likewise.
13182         * modules/propername (Link): Likewise.
13183         Reported by Jim Meyering.
13184
13185 2008-05-26  Jim Meyering  <meyering@redhat.com>
13186
13187         sha256: do not artificially restrict buffer length to be < 2^32
13188         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
13189         uint32_t to size_t.
13190         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
13191         to match.
13192
13193         avoid unaligned access errors, e.g., on sparc
13194         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
13195         direct access through a possibly-unaligned uint64* pointer.
13196         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
13197         direct access through a possibly-unaligned uint32* pointer.
13198         Prompted by this patch from Tom "spot" Callaway:
13199         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
13200
13201         sha512.c: fix typo in comment
13202         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
13203
13204 2008-05-25  Bruno Haible  <bruno@clisp.org>
13205
13206         * lib/set-mode-acl.c: Renamed from lib/acl.c.
13207         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
13208         (Makefile.am): Update lib_SOURCES.
13209
13210 2008-05-25  Bruno Haible  <bruno@clisp.org>
13211
13212         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
13213
13214 2008-05-25  Jim Meyering  <meyering@redhat.com>
13215
13216         useless-if-before-free: freed expr may have white-space differences
13217         * build-aux/useless-if-before-free: Recognize cases in which the
13218         freed expression differs from the tested one in embedded white
13219         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
13220         $1 was used, so we can't make any regexp shy.  Improved tests now
13221         detect this.
13222
13223         useless-if-before-free: accept white space in the expression.
13224         * build-aux/useless-if-before-free: For now, any white space
13225         in the expression must be identical in the free argument.
13226
13227         useless-if-before-free: efficiency tweak
13228         * build-aux/useless-if-before-free: Make the expression-matching
13229         regexp "shy".
13230         Make the *outer* regexp shy, not the expr-matching one.
13231
13232         update code-in-comment to accept cast of free arg
13233         * build-aux/useless-if-before-free: Update regexp.
13234
13235 2008-05-25  Bruno Haible  <bruno@clisp.org>
13236
13237         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
13238         * modules/copy-file-tests (Files, Makefile.am): Update.
13239         * tests/test-copy-file.c (func_test_copy): Update.
13240
13241 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
13242
13243         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
13244
13245 2008-05-23  Bruno Haible  <bruno@clisp.org>
13246
13247         Improve support for ACLs on OSF/1.
13248         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
13249         Remove fallback for unknown flavors of ACLs.
13250
13251 2008-05-22  Bruno Haible  <bruno@clisp.org>
13252
13253         Add support for ACLs on OSF/1.
13254         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
13255         replacements.
13256         (acl_free_text): New macro fallback.
13257         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
13258         acl_free.
13259         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
13260         acl_free_text function. Require AC_C_INLINE.
13261
13262 2008-05-22  Bruno Haible  <bruno@clisp.org>
13263
13264         Make copy_acl work on MacOS X 10.5.
13265         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
13266         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
13267         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
13268         If MODE_INSIDE_ACL, don't assume that every system has the same text
13269         representation for ACLs as FreeBSD.
13270         * lib/copy-acl.c (copy_acl): Add support for platforms with
13271         !MODE_INSIDE_ACL.
13272         * lib/file-has-acl.c (file_has_acl): Likewise.
13273         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
13274         FreeBSD, MacOS X, or IRIX, respectively.
13275
13276 2008-05-22  Bruno Haible  <bruno@clisp.org>
13277
13278         * lib/acl.h: Don't include <sys/acl.h>.
13279         (GETACLCNT): Move fallback to lib/acl-internal.h.
13280         * lib/acl-internal.h: Include <sys/acl.h> here.
13281         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
13282
13283 2008-05-22  Bruno Haible  <bruno@clisp.org>
13284
13285         Split off copy_acl function to separate file.
13286         * lib/copy-acl.c: New file, extracted from lib/acl.c.
13287         * lib/acl.c (copy_acl): Moved function to separate file.
13288         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
13289         * modules/acl (Files): Add lib/copy-acl.c.
13290         (Makefiles.am): Augment lib_SOURCES.
13291
13292 2008-05-22  Bruno Haible  <bruno@clisp.org>
13293
13294         * modules/copy-file-tests: New file.
13295         * tests/test-copy-file.sh: New file.
13296         * tests/test-copy-file.c: New file.
13297         * tests/test-copy-file-sameacls.c: New file.
13298
13299 2008-05-22  Eric Blake  <ebb9@byu.net>
13300
13301         Avoid gcc warning.
13302         * tests/test-memcmp.c (main): Pass NULL indirectly.
13303
13304 2008-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         Add reference doc about ACLs.
13307         * doc/acl-resources.txt: New file.
13308         * doc/acl-cygwin.txt: New file.
13309
13310 2008-05-21  Bruno Haible  <bruno@clisp.org>
13311
13312         Avoid one more warning from gcc.
13313         * lib/vasnprintf.c (IF_LINT): Update comments.
13314         (VASNPRINTF): Use it also for the 'prefix' array initializer.
13315
13316 2008-05-21  Jim Meyering  <meyering@redhat.com>
13317
13318         avoid a warning from gcc
13319         * lib/vasnprintf.c (IF_LINT): Define.
13320         (scale10_round_decimal_long_double):
13321         Use it to avoid a "may be used uninitialized" warning.
13322         (scale10_round_decimal_double): Likewise.
13323
13324 2008-05-21  Simon Josefsson  <simon@josefsson.org>
13325
13326         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
13327         declared.
13328
13329 2008-05-20  Bruno Haible  <bruno@clisp.org>
13330
13331         * tests/test-memcmp.c (main): Test also the sign of the result. Test
13332         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
13333
13334 2008-05-20  Simon Josefsson  <simon@josefsson.org>
13335
13336         * modules/memcmp-tests: New file.
13337         * tests/test-memcmp.c: New file.
13338
13339 2008-05-19  Bruno Haible  <bruno@clisp.org>
13340
13341         * modules/propername (Notice, configure.ac): Put quoted "..." into
13342         --keyword option.
13343         * lib/propername.h: Update comments accordingly.
13344         Reported by Eric Blake.
13345
13346 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
13347
13348         * modules/getpass-gnu (Depends-on): Add fseeko.
13349
13350 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13351
13352         * modules/base64-tests: New file.
13353
13354 2008-05-19  Bo Borgerson <gigabo@gmail.com>
13355
13356         * lib/base64.c (base64_decode_ctx): If a decode context structure
13357         was passed in use it to ignore newlines.  If a context structure
13358         was _not_ passed in, continue to treat newlines as garbage (this
13359         is the historical behavior).  Formerly base64_decode.
13360         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13361         takes a decode context structure.
13362         * lib/base64.h (base64_decode): Macro for four-argument calls.
13363         (base64_decode_alloc): Likewise.
13364         * lib/base64.c (base64_decode_ctx): If a decode context structure
13365         was passed in use it to ignore newlines.  If a context structure
13366         was _not_ passed in, continue to treat newlines as garbage (this
13367         is the historical behavior).  Formerly base64_decode.
13368         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13369         takes a decode context structure.
13370         * lib/base64.h (base64_decode): Macro for four-argument calls.
13371         (base64_decode_alloc): Likewise.
13372
13373 2008-05-19  Jim Meyering  <meyering@redhat.com>
13374
13375         avoid a warning from gcc
13376         * lib/trim.c (IF_LINT): Define.
13377         (trim2): Use it to avoid a "may be used uninitialized" warning.
13378
13379         Fix doc typo.
13380         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
13381
13382 2008-05-19  Bruno Haible  <bruno@clisp.org>
13383
13384         * doc/glibc-functions/getpass.texi: Document limits of other
13385         implementations.
13386
13387 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13388             Bruno Haible <bruno@clisp.org>
13389
13390         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
13391
13392 2008-05-18  Bruno Haible  <bruno@clisp.org>
13393
13394         * modules/propername: New file, from GNU gettext.
13395         * lib/propername.h: New file, from GNU gettext.
13396         * lib/propername.c: New file, from GNU gettext.
13397         * MODULES.html.sh (Internationalization functions): Add propername.
13398
13399 2008-05-16  Jim Meyering  <meyering@redhat.com>
13400             Bruno Haible  <bruno@clisp.org>
13401
13402         Avoid some warnings from "gcc -Wshadow".
13403         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
13404
13405 2008-05-15  Eric Blake  <ebb9@byu.net>
13406
13407         Extend previous patch to cygwin 1.7.0.
13408         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
13409         fast implementation in cygwin >= 1.7.0.
13410         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13412
13413 2008-05-15  Bruno Haible  <bruno@clisp.org>
13414
13415         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
13416         implementation in glibc >= 2.9.
13417         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13419
13420 2008-05-15  Bruno Haible  <bruno@clisp.org>
13421
13422         * MODULES.html.sh (Internationalization functions): Remove linebreak.
13423         (Unicode string functions): Add unilbrk/*.
13424         Reported by Karl Berry.
13425
13426 2008-05-15  Eric Blake  <ebb9@byu.net>
13427
13428         Fix violation of <stdbool.h> replacement in regex.
13429         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
13430         * lib/regexec.c (re_search_internal): Likewise.
13431         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
13432
13433 2008-05-15  Jim Meyering  <meyering@redhat.com>
13434
13435         avoid distracting test output when git or cvs is not found
13436         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
13437         * tests/test-vc-list-files-git.sh: Likewise.
13438
13439 2008-05-15  Eric Blake  <ebb9@byu.net>
13440
13441         Glibc finally accepted the memmem speedup code, bugzilla #5514.
13442         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
13443         glibc version.
13444         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13445         * doc/posix-functions/strstr.texi (strstr): Likewise.
13446         * lib/str-two-way.h (MAX): Sychronize with glibc.
13447
13448 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
13449
13450         * lib/regcomp.c (optimize_utf8): Add a note on why we test
13451         opr.ctx_type.
13452         (calc_first): Initialize constraint field.
13453         (duplicate_node_closure): Use it instead of special casing ANCHORS.
13454         Fix grammar.
13455         (duplicate_node): Merge constraint field for all node types.
13456         (calc_eclosure_iter): Look at constraint field for all node types.
13457         * lib/regex_internal.c (create_cd_newstate): Don't look at
13458         opr.ctx_type.
13459
13460 2008-05-14  Bruno Haible  <bruno@clisp.org>
13461
13462         Help GCC to do better code generation.
13463         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
13464         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13465         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
13466         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
13467         Declare with attribute 'malloc' if supported.
13468
13469 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
13470
13471         use "echo STR|wc -c" rather than unportable "expr length STR"
13472         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
13473         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
13474
13475 2008-05-14  Jim Meyering  <meyering@redhat.com>
13476
13477         use dd ibs=$n count=1 ... rather than less-portable head -c$n
13478         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
13479         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
13480         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
13481         via Collin Lasse.
13482
13483 2008-05-14  Eric Blake  <ebb9@byu.net>
13484
13485         Avoid quadratic growth in gl_LIBSOURCES.
13486         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
13487         Suggested by Bruno Haible.
13488
13489         Test xmemdup0.
13490         * modules/xmemdup0-tests: New file.
13491         * tests/test-xmemdup0.c: Likewise.
13492
13493 2008-05-13  Eric Blake  <ebb9@byu.net>
13494
13495         Split xmemdup0 into its own module.
13496         * modules/xmemdup0: New file.
13497         * lib/xmemdup0.h: Likewise.
13498         * lib/xmemdup0.c: Likewise.
13499         * MODULES.html.sh (Memory management functions): Add xmemdup0.
13500         * lib/xalloc.h (xmemdup0): Remove.
13501         * lib/xmalloc.c (xmemdup0): Likewise.
13502
13503 2008-05-13  Eric Blake  <ebb9@byu.net>
13504             Bruno Haible  <bruno@clisp.org>
13505
13506         Reduce number of forks required during autoconf.
13507         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
13508         and gl_LIBSOURCES_DIR.
13509         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
13510         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
13511         m4_syscmd per file.
13512         <m4_foreach_w>: Move...
13513         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
13514
13515 2008-05-13  Eric Blake  <ebb9@byu.net>
13516
13517         * gnulib-tool: Fix various comment typos.
13518
13519 2008-05-12  Bruno Haible  <bruno@clisp.org>
13520
13521         Tailor the linebreaking algorithm.
13522         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
13523
13524 2008-05-12  Bruno Haible  <bruno@clisp.org>
13525
13526         Update to Unicode 5.0.0.
13527         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13528         LBP_JV, LBP_JT. Redistribute values.
13529         (unilbrk_table): Change size.
13530         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
13531         Unicode TR#14 rev. 22.
13532         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13533         LBP_JV, LBP_JT. Redistribute values.
13534         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
13535         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
13536         Update.
13537         * lib/unilbrk/lbrkprop1.h: Regenerated.
13538         * lib/unilbrk/lbrkprop2.h: Regenerated.
13539         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
13540         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
13541         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
13542         Likewise.
13543         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
13544         Likewise.
13545         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
13546         result.
13547         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13548         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13549         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13550         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
13551         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
13552         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
13553
13554 2008-05-11  Bruno Haible  <bruno@clisp.org>
13555
13556         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
13557
13558 2008-05-11  Bruno Haible  <bruno@clisp.org>
13559
13560         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
13561         * modules/unilbrk/gen-lbrk: New file.
13562
13563 2008-05-11  Bruno Haible  <bruno@clisp.org>
13564
13565         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
13566         * m4/sha512.m4 (gl_SHA512): Likewise.
13567
13568 2008-05-11  Jim Meyering  <meyering@redhat.com>
13569
13570         New modules: crypto/sha256, crypto/sha512 (from coreutils)
13571         * modules/crypto/sha256: New file.
13572         * modules/crypto/sha512: Likewise.
13573         * lib/sha256.c: Likewise.
13574         * lib/sha256.h: Likewise.
13575         * lib/sha512.c: Likewise.
13576         * lib/sha512.h: Likewise.
13577         * lib/u64.h: Likewise.
13578         * m4/sha256.m4: Likewise.
13579         * m4/sha512.m4: Likewise.
13580         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
13581
13582 2008-05-10  Bruno Haible  <bruno@clisp.org>
13583
13584         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
13585         (Input/Output <stdio.h>): Add xprintf.
13586         (Signal handling <signal.h>): Add strsignal.
13587         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
13588         (Core language properties): Add func.
13589         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
13590         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
13591         strings.
13592         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
13593         (Input/output): New section.
13594         (File system functions): Add openat-die, stat-macros.
13595         (Networking functions): Add sockets.
13596         (Unicode string functions): Add unictype/*.
13597         (Support for building libraries and executables): Add gperf.
13598         (Support for building documentation): Add agpl-3.0.
13599         (Misc): Add nocrash.
13600
13601 2008-05-10  Bruno Haible  <bruno@clisp.org>
13602
13603         * modules/unictype/gen-ctype: New file.
13604
13605 2008-05-10  Jim Meyering  <meyering@redhat.com>
13606
13607         Make chdir-safer.c more efficient on a system with no symlinks.
13608         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
13609         also if ELOOP is zero.  Suggested by Bruno Haible.
13610
13611         Make chdir-safer.c slightly safer.
13612         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
13613         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
13614
13615         Avoid compile failure on systems without ELOOP (like mingw).
13616         * lib/chdir-safer.c (ELOOP): Define if not already defined.
13617         Reported by Bruno Haible.
13618
13619 2008-05-10  Bruno Haible  <bruno@clisp.org>
13620
13621         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
13622         (is_utf8_encoding): Use a case-insensitive comparison.
13623         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
13624         streq.
13625
13626 2008-05-10  Bruno Haible  <bruno@clisp.org>
13627
13628         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
13629         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
13630         * lib/unilbrk/ulc-common.h (iconv_string_length,
13631         iconv_string_keeping_offsets): Remove declarations.
13632         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
13633         Don't include <iconv.h>, streq.h, xsize.h.
13634         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
13635         conversion.
13636         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
13637         <iconv.h>, streq.h, xsize.h.
13638         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
13639         conversion.
13640         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
13641         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
13642         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
13643         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
13644
13645 2008-05-10  Bruno Haible  <bruno@clisp.org>
13646
13647         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
13648         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
13649
13650         * modules/unilbrk/u32-width-linebreaks-tests: New file.
13651         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
13652
13653         * modules/unilbrk/u16-width-linebreaks-tests: New file.
13654         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
13655
13656         * modules/unilbrk/u8-width-linebreaks-tests: New file.
13657         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
13658
13659         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
13660         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
13661
13662         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
13663         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
13664
13665         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
13666         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
13667
13668         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
13669         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
13670
13671 2008-05-10  Bruno Haible  <bruno@clisp.org>
13672
13673         Split up 'linebreak' module.
13674         * lib/unilbrk.h: New file, based on lib/linebreak.h.
13675         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
13676         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
13677         modifications.
13678         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
13679         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
13680         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
13681         lib/linebreak.c.
13682         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
13683         lib/linebreak.c.
13684         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
13685         lib/linebreak.c.
13686         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
13687         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
13688         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
13689         lib/linebreak.c.
13690         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
13691         lib/linebreak.c.
13692         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
13693         lib/linebreak.c.
13694         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
13695         lib/linebreak.c.
13696         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
13697         lib/linebreak.c.
13698         * modules/unilbrk/base: New file.
13699         * modules/unilbrk/tables: New file.
13700         * modules/unilbrk/u8-possible-linebreaks: New file.
13701         * modules/unilbrk/u16-possible-linebreaks: New file.
13702         * modules/unilbrk/u32-possible-linebreaks: New file.
13703         * modules/unilbrk/ulc-common: New file.
13704         * modules/unilbrk/ulc-possible-linebreaks: New file.
13705         * modules/unilbrk/u8-width-linebreaks: New file.
13706         * modules/unilbrk/u16-width-linebreaks: New file.
13707         * modules/unilbrk/u32-width-linebreaks: New file.
13708         * modules/unilbrk/ulc-width-linebreaks: New file.
13709         * lib/linebreak.h: Remove file.
13710         * lib/linebreak.c: Remove file.
13711         * m4/linebreak.m4: Remove file.
13712         * modules/linebreak: Remove file.
13713         * NEWS: Mention the changes.
13714
13715 2008-05-09  Eric Blake  <ebb9@byu.net>
13716
13717         Add xmemdup0.
13718         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
13719         implementation.
13720         * lib/xmalloc.c (xmemdup0): New C implementation.
13721
13722 2008-05-08  Bruno Haible  <bruno@clisp.org>
13723
13724         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
13725
13726 2008-05-07  Eric Blake  <ebb9@byu.net>
13727
13728         Support cross-compilation of <wctype.h>.
13729         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
13730         AC_CACHE_CHECK.
13731
13732 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
13733
13734         * build-aux/vc-list-files: Add support for bzr.
13735
13736 2008-05-03  Jim Meyering  <meyering@redhat.com>
13737
13738         avoid failed assertion with tight malloc
13739         * tests/test-getndelim2.c: Correct an off-by-one assertion.
13740
13741 2008-05-03  Simon Josefsson  <simon@josefsson.org>
13742
13743         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
13744         are needed from arpa/inet.h.
13745         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
13746         Reported by Bruno Haible.
13747
13748 2008-05-02  Jim Meyering  <meyering@redhat.com>
13749
13750         avoid compilation error on FreeBSD 6
13751         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
13752
13753 2008-05-01  Jim Meyering  <meyering@redhat.com>
13754
13755         useless-if-before-free: correct --help's exit status description
13756         * build-aux/useless-if-before-free (usage): Like grep, exit 0
13757         for one or more matches, etc.  Reported by Bruno Haible.
13758
13759         vc-list-files: make the stand-alone gnulib test work
13760         * modules/vc-list-files-tests (configure.ac):
13761         Define and AC_SUBST abs_aux_dir.
13762         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
13763         $(abs_top_srcdir) to each script and having each of them
13764         duplicate the work of setting PATH, set PATH here, using
13765         the new variable, abs_aux_dir instead.
13766         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
13767         * tests/test-vc-list-files-git.sh: Likewise.
13768         Reported by Bruno Haible.
13769
13770 2008-05-01  Bruno Haible  <bruno@clisp.org>
13771
13772         * lib/getndelim2.c (getndelim2): Fix newsize computation during
13773         reallocation. Rename 'done' to 'found_delimiter'.
13774
13775 2008-05-01  Jim Meyering  <meyering@redhat.com>
13776
13777         vc-list-files: accommodate /bin/sh like the one from Solaris 10
13778         * build-aux/vc-list-files: Use `...`, not $(...).
13779
13780 2008-04-30  Jim Meyering  <meyering@redhat.com>
13781
13782         add tests for vc-list-files
13783         * modules/vc-list-files-tests: New module.
13784         * tests/test-vc-list-files-cvs.sh: New file.
13785         * tests/test-vc-list-files-git.sh: New file.
13786
13787         avoid a warning from gcc
13788         * lib/getndelim2.c (IF_LINT): Define.
13789         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
13790
13791         vc-list-files: work properly with build-aux/cvsu, too
13792         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
13793         to all cvs-based clauses.
13794
13795         vc-list-files: work properly in the CVS+awk case, too
13796         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
13797
13798         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
13799         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
13800         take more than one file argument, so .  Add quotes, just in case $dir
13801         ever contains a shell meta-character.  Prompted by Soren Hansen in
13802         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
13803
13804 2008-04-29  Eric Blake  <ebb9@byu.net>
13805
13806         Optimize getndelim2 to use block operations when possible.
13807         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
13808         freadseek, and memchr2.
13809         * lib/getndelim2.c (getndelim2): Use them for block reads.
13810
13811 2008-04-29  Bruno Haible  <bruno@clisp.org>
13812
13813         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
13814         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13815         * modules/inet_ntop (Depends-on): Add extensions.
13816         * modules/inet_pton (Depends-on): Likewise.
13817         Reported by Simon Josefsson.
13818
13819 2008-04-29  Jim Meyering  <meyering@redhat.com>
13820
13821         When the is more than one match in a block, match all of them.
13822         * build-aux/useless-if-before-free: Iterate through each block
13823         until there are no more matches.
13824
13825         Fix broken useless-if-before-free script.
13826         * build-aux/useless-if-before-free: Fix typo: missing "?" after
13827         the expression to match cast of argument to free-like function.
13828
13829 2008-04-29  Eric Blake  <ebb9@byu.net>
13830
13831         Use new header.
13832         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
13833
13834 2008-04-29  Jim Meyering  <meyering@redhat.com>
13835
13836         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
13837         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
13838         by gnulib to exist and to declare e.g., inet_ntop.
13839         Don't include "inet_ntop.h", now removed.
13840
13841         * m4/arpa_inet_h.m4: Remove trailing blanks.
13842
13843 2008-04-29  Eric Blake  <ebb9@byu.net>
13844
13845         Silence valgrind on safe reads beyond potential array bounds.
13846         * lib/rawmemchr.valgrind: New file.
13847         * lib/strchrnul.valgrind: Likewise.
13848         * modules/rawmemchr (Files): Distribute new file.
13849         * modules/strchrnul (Files): Likewise.
13850         Suggested by Bruno Haible.
13851
13852 2008-04-29  Bruno Haible  <bruno@clisp.org>
13853
13854         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
13855         (inet_ntop, inet_pton): Change portability warning's wording.
13856         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
13857         Invoke gl_CHECK_NEXT_HEADERS.
13858         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
13859         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
13860         set ARPA_INET_H.
13861         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13862         * modules/arpa_inet (Description): No longer only for systems that
13863         lack it.
13864         (Depends-on): Add include_next.
13865         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
13866         HAVE_ARPA_INET_H.
13867
13868 2008-04-29  Jim Meyering  <meyering@redhat.com>
13869
13870         * modules/mkdir (License): Re-license as LGPLv2+.
13871
13872 2008-04-29  Bruno Haible  <bruno@clisp.org>
13873
13874         * modules/rawmemchr (Maintainer): Set to Eric.
13875         * modules/strchrnul (Maintainer): Likewise.
13876
13877 2008-04-29  Simon Josefsson  <simon@josefsson.org>
13878
13879         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
13880         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
13881
13882         * modules/arpa_inet (arpa/inet.h): Use them.
13883
13884 2008-04-28  Eric Blake  <ebb9@byu.net>
13885
13886         Test getndelim2.
13887         * modules/getndelim2-tests: New file.
13888         * tests/test-getndelim2.c: Likewise.
13889         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
13890         stream.
13891         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
13892
13893         * MODULES.html.sh: Document new module.
13894
13895 2008-04-20  Bruno Haible  <bruno@clisp.org>
13896
13897         * lib/c-stack.c (die): Use raise.
13898         * modules/c-stack (Depends-on): Add raise.
13899
13900 2008-04-28  Bruno Haible  <bruno@clisp.org>
13901
13902         Expect rpmatch to be declared.
13903         * lib/yesno.c (rpmatch): Remove declaration.
13904
13905         Declare rpmatch.
13906         * lib/stdlib.in.h (rpmatch): New declaration.
13907         * lib/rpmatch.c: Include <stdlib.h> first.
13908         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
13909         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
13910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
13911         HAVE_RPMATCH.
13912         * modules/rpmatch (Depends-on): Add stdlib, extensions.
13913         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13914         (Include): Set to <stdlib.h>.
13915         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
13916         HAVE_RPMATCH.
13917         * NEWS: Document the change.
13918
13919 2008-04-28  Bruno Haible  <bruno@clisp.org>
13920
13921         Change rpmatch to use nl_langinfo when appropriate.
13922         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
13923         (N_): New macro.
13924         (localized_pattern): New function/macro.
13925         (try): Remove match, nomatch arguments. Copy the pattern into safe
13926         memory before caching it.
13927         (rpmatch): Use localized_pattern. Add translator comments.
13928         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
13929         Suggested by Eric Blake.
13930         * modules/rpmatch (Depends-on): Add stdbool.
13931
13932 2008-04-28  Eric Blake  <ebb9@byu.net>
13933
13934         Add rawmemchr module, matching glibc.
13935         * modules/string (Makefile.am): New indicator.
13936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
13937         * lib/string.in.h (rawmemchr): Declare when appropriate.
13938         * modules/rawmemchr: New file.
13939         * m4/rawmemchr.m4: Likewise.
13940         * lib/rawmemchr.c: Likewise.
13941         * modules/rawmemchr-tests: Likewise.
13942         * tests/test-rawmemchr.c: Likewise.
13943         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
13944         module.
13945         * modules/strchrnul (Depends-on): Add rawmemchr.
13946         * lib/strchrnul.c (strchrnul): Optimize a corner case.
13947
13948         Whitespace cleanup.
13949         * tests/test-strchrnul.c: Reindent.
13950         * lib/strchrnul.c: Likewise.
13951
13952         Optimize and test strchrnul.
13953         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
13954         * modules/strchrnul-tests: New file.
13955         * tests/test-strchrnul.c: Likewise.
13956
13957         Remove intprops dependency.
13958         * modules/memchr (Depends-on): Remove intprops.
13959         * modules/memrchr (Depends-on): Likewise.
13960         * modules/memchr2 (Depends-on): Likewise.
13961         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
13962         * lib/memrchr.c (__memrchr): Likewise.
13963         * lib/memrchr2.c (memchr2): Likewise.
13964         Reported by Simon Josefsson.
13965
13966 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13967
13968         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
13969         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13970
13971 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13972
13973         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
13974
13975         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
13976
13977         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
13978
13979         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
13980         declarations.
13981         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
13982
13983         * m4/inet_pton.m4: Don't check for header files.
13984
13985         * m4/inet_ntop.m4: Don't check for header files.
13986
13987 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13988
13989         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
13990         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
13991         trigger for cygwin).
13992         Reported by Bruno Haible  <bruno@clisp.org>.
13993
13994 2008-04-28  Bruno Haible  <bruno@clisp.org>
13995
13996         * doc/posix-functions/strdup.texi: Mention mingw problem.
13997
13998 2008-04-27  Bruno Haible  <bruno@clisp.org>
13999
14000         * modules/stat-time-tests (Depends-on): Add sleep.
14001         * tests/test-stat-time.c (force_unlink): New function.
14002         (cleanup): Use it.
14003         (test_mtime): Remove the ctime related tests.
14004         (test_ctime): New function, containing the ctime related tests.
14005         (main): Call test_ctime, except on native Windows platforms.
14006
14007 2008-04-27  Bruno Haible  <bruno@clisp.org>
14008
14009         * lib/rpmatch.c (rpmatch): Add some comments.
14010         Reported by James Youngman <jay@gnu.org>.
14011
14012 2008-04-27  Bruno Haible  <bruno@clisp.org>
14013
14014         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
14015         quiet NaNs.
14016
14017 2008-04-27  Bruno Haible  <bruno@clisp.org>
14018
14019         Make test-yesno.sh work on mingw.
14020         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
14021         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
14022         (main): Set stdin to binary mode.
14023         * modules/yesno-tests (Depends-on): Add binary-io.
14024
14025 2008-04-27  Bruno Haible  <bruno@clisp.org>
14026
14027         Fix 'isfinite' on x86, x86_64, ia64 platforms.
14028         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
14029         argument that lie outside the IEEE 854 domain.
14030         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
14031         (gl_ISFINITE): Use it.
14032         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
14033
14034 2008-04-27  Bruno Haible  <bruno@clisp.org>
14035
14036         Allow local renaming in config.h.
14037         * lib/memrchr.c (memrchr): Don't undefine outside libc.
14038
14039 2008-04-27  Bruno Haible  <bruno@clisp.org>
14040
14041         * lib/memchr.c (__memchr): Change type of 'i'.
14042         * lib/memchr2.c (memchr2): Likewise.
14043
14044 2008-04-26  Eric Blake  <ebb9@byu.net>
14045         and Bruno Haible  <bruno@clisp.org>
14046
14047         Optimize and test memrchr.
14048         * modules/memrchr (Depends-on): Add intprops.
14049         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
14050         * modules/memrchr-tests: New file.
14051         * tests/test-memrchr.c: New file.
14052
14053 2008-04-26  Bruno Haible  <bruno@clisp.org>
14054
14055         Add tentative support for DragonFly BSD.
14056         * lib/stdio-impl.h: Add macros for DragonFly BSD.
14057         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
14058         fp.
14059         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14060         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
14061         * lib/fpurge.c (fpurge): Likewise.
14062         * lib/freadable.c (freaadable): Likewise.
14063         * lib/freadahead.c (freadahead): Likewise.
14064         * lib/freading.c (freading): Likewise.
14065         * lib/freadptr.c (freadptr): Likewise.
14066         * lib/freadseek.c (freadptrinc): Likewise.
14067         * lib/fseeko.c (fseeko): Likewise.
14068         * lib/fseterr.c (fseterr): Likewise.
14069         * lib/fwritable.c (fwritable): Likewise.
14070         * lib/fwriting.c (fwriting): Likewise.
14071
14072 2008-04-26  Bruno Haible  <bruno@clisp.org>
14073
14074         * lib/stdio-impl.h: New file.
14075         * lib/fbufmode.c: Include stdio-impl.h.
14076         (fbufmode): Use fp_, remove redundant #defines.
14077         * lib/fflush.c: Include stdio-impl.h.
14078         (clear_ungetc_buffer): Remove redundant #defines.
14079         * lib/fpurge.c: Include stdio-impl.h.
14080         (fpurge): Remove redundant #defines.
14081         * lib/freadable.c: Include stdio-impl.h.
14082         (freadable): Remove redundant #defines.
14083         * lib/freadahead.c: Include stdio-impl.h.
14084         (freadahead): Remove redundant #defines.
14085         * lib/freading.c: Include stdio-impl.h.
14086         (freading): Remove redundant #defines.
14087         * lib/freadptr.c: Include stdio-impl.h.
14088         (freadptr): Remove redundant #defines.
14089         * lib/freadseek.c: Include stdio-impl.h.
14090         (freadptrinc): Remove redundant #defines.
14091         * lib/fseeko.c: Include stdio-impl.h.
14092         (rpl_fseeko): Remove redundant #defines.
14093         * lib/fseterr.c: Include stdio-impl.h.
14094         (fseterr): Remove redundant #defines.
14095         * lib/fwritable.c: Include stdio-impl.h.
14096         (fwritable: Remove redundant #defines.
14097         * lib/fwriting.c: Include stdio-impl.h.
14098         (fwriting): Remove redundant #defines.
14099         * modules/fbufmode (Files): Add lib/stdio-impl.h.
14100         * modules/fflush (Files): Likewise.
14101         * modules/fpurge (Files): Likewise.
14102         * modules/freadable (Files): Likewise.
14103         * modules/freadahead (Files): Likewise.
14104         * modules/freading (Files): Likewise.
14105         * modules/freadptr (Files): Likewise.
14106         * modules/freadseek (Files): Likewise.
14107         * modules/fseeko (Files): Likewise.
14108         * modules/fseterr (Files): Likewise.
14109         * modules/fwritable (Files): Likewise.
14110         * modules/fwriting (Files): Likewise.
14111
14112 2008-04-26  Bruno Haible  <bruno@clisp.org>
14113
14114         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14115         restore_seek_optimization, update_fpos_cache): New functions, extracted
14116         from rpl_fflush.
14117         (rpl_fflush): Use them.
14118         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
14119         (gl_REPLACE_FFLUSH): Use it.
14120
14121 2008-04-26  Bruno Haible  <bruno@clisp.org>
14122
14123         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
14124         on Solaris.
14125         * tests/test-xstrtoimax.sh: Likewise.
14126         * tests/test-xstrtoumax.sh: Likewise.
14127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14128
14129 2008-04-26  Bruno Haible  <bruno@clisp.org>
14130
14131         * modules/memchr-tests: New file.
14132         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
14133
14134 2008-04-26  Eric Blake  <ebb9@byu.net>
14135             Bruno Haible  <bruno@clisp.org>
14136
14137         * lib/memchr.c: Include intprops.h.
14138         (__memchr): Optimize parallel detection of matching bytes. Rename local
14139         variables. Add explanatory comments.
14140
14141 2008-04-26  Bruno Haible  <bruno@clisp.org>
14142
14143         Fix module 'memchr', broken since 2000-10-28.
14144         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
14145
14146 2008-04-26  Bruno Haible  <bruno@clisp.org>
14147
14148         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
14149         comments.
14150
14151 2008-04-25  Eric Blake  <ebb9@byu.net>
14152
14153         Use native fstatat on cygwin 1.7.0.
14154         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
14155         first.
14156
14157 2008-04-23  Eric Blake  <ebb9@byu.net>
14158
14159         Improve memchr2 performance.
14160         * lib/memchr2.c (memchr2): Further optimize parallel detection of
14161         NUL bytes.
14162         * modules/memchr2 (Depends-on): Use intprops.h.
14163
14164 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14165
14166         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
14167         an inline function instead of a CPP macro.  Patch by Ben Pfaff
14168         <blp@cs.stanford.edu>.
14169
14170 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14171
14172         * lib/arpa_inet.in.h: New file.
14173
14174         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
14175         (Makefile.am): Sed in substitute header file.
14176
14177         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
14178         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
14179
14180         * modules/inet_ntop (configure.ac): Use
14181         gl_ARPA_INET_MODULE_INDICATOR.
14182
14183         * modules/inet_pton (configure.ac): Use
14184         gl_ARPA_INET_MODULE_INDICATOR.
14185
14186 2008-04-22  Jim Meyering  <meyering@redhat.com>
14187
14188         * modules/verify (License): Re-license as LGPLv2+.
14189
14190 2008-04-22  Simon Josefsson  <simon@josefsson.org>
14191
14192         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
14193         parameter to void* as per POSIX standard (MinGW uses char*).
14194
14195 2008-04-21  Bruno Haible  <bruno@clisp.org>
14196
14197         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14198         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14199         Define to replacements if REPLACE_ISWCNTRL is 1.
14200         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
14201         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
14202         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
14203         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
14204         what it fixes.
14205         * doc/posix-functions/iswalpha.texi: Likewise.
14206         * doc/posix-functions/iswblank.texi: Likewise.
14207         * doc/posix-functions/iswcntrl.texi: Likewise.
14208         * doc/posix-functions/iswdigit.texi: Likewise.
14209         * doc/posix-functions/iswgraph.texi: Likewise.
14210         * doc/posix-functions/iswlower.texi: Likewise.
14211         * doc/posix-functions/iswprint.texi: Likewise.
14212         * doc/posix-functions/iswpunct.texi: Likewise.
14213         * doc/posix-functions/iswspace.texi: Likewise.
14214         * doc/posix-functions/iswupper.texi: Likewise.
14215         * doc/posix-functions/iswxdigit.texi: Likewise.
14216         Reported by Alain Guibert.
14217
14218 2008-04-21  Bruno Haible  <bruno@clisp.org>
14219
14220         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
14221         Patch by Alain Guibert.
14222
14223 2008-04-21  Bruno Haible  <bruno@clisp.org>
14224
14225         Fix test failures on mingw.
14226         * tests/test-xstrtol.c (print_no_progname): New function.
14227         (main): Install it in error_print_progname hook.
14228         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
14229         * tests/test-xstrtoimax.sh: Likewise.
14230         * tests/test-xstrtoumax.sh: Likewise.
14231
14232 2008-04-21  Bruno Haible  <bruno@clisp.org>
14233
14234         Fix test failure on mingw.
14235         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
14236
14237 2008-04-21  Bruno Haible  <bruno@clisp.org>
14238
14239         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
14240         Actually assign a value.
14241
14242 2008-04-20  Bruno Haible  <bruno@clisp.org>
14243
14244         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
14245         take 2.
14246         * lib/canonicalize.c (canonicalize_file_name): Elide if the
14247         'canonicalize-lgpl' module is also used.
14248         * lib/canonicalize-lgpl.c: Undo last change.
14249         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
14250
14251 2008-04-20  Bruno Haible  <bruno@clisp.org>
14252
14253         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
14254         config.h. Provide _mkdir based fallback for mingw.
14255         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
14256         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
14257         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
14258         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
14259         rather than defining mkdir in config.h.
14260         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
14261         (gl_SYS_STAT_H_DEFAULTS): New macro.
14262         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
14263         HAVE_IO_H any more.
14264         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
14265         HAVE_DECL_MKDIR and HAVE_IO_H.
14266
14267 2008-04-20  Bruno Haible  <bruno@clisp.org>
14268
14269         * lib/isapipe.c: Port to native Windows platforms.
14270
14271 2008-04-20  Bruno Haible  <bruno@clisp.org>
14272
14273         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
14274
14275 2008-04-21  Eric Blake  <ebb9@byu.net>
14276
14277         Work around preprocessors that don't handle UINTMAX_MAX.
14278         * lib/memchr2.c (memchr2): Avoid embedded #if.
14279         Reported by Alain Guibert, fix suggested by Bruno Haible.
14280
14281 2008-04-21  Simon Josefsson  <simon@josefsson.org>
14282
14283         * doc/posix-functions/strftime.texi (strftime): Explain better
14284         Windows incompatibility.  Suggested by Micah Cowan
14285         <micah@cowan.name>.
14286
14287 2008-04-20  Bruno Haible  <bruno@clisp.org>
14288
14289         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
14290         unistr/u8-mblen.
14291
14292 2008-04-20  Bruno Haible  <bruno@clisp.org>
14293
14294         Fix test failure on platforms with non-GNU iconv.
14295         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
14296         (U_TO_U8): Use it, rather than u16_to_u8.
14297         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
14298         units at the end of the input string.
14299         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
14300
14301 2008-04-20  Bruno Haible  <bruno@clisp.org>
14302
14303         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
14304         when the resulting length is 0.
14305         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14306
14307 2008-04-20  Bruno Haible  <bruno@clisp.org>
14308
14309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
14310         works.
14311         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
14312
14313 2008-04-20  Bruno Haible  <bruno@clisp.org>
14314
14315         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
14316         * modules/tsearch-tests (configure.ac): Test for initstate function.
14317
14318 2008-04-20  Bruno Haible  <bruno@clisp.org>
14319
14320         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
14321         for nlink_t if missing.
14322         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
14323
14324 2008-04-19  Bruno Haible  <bruno@clisp.org>
14325
14326         Work around snprintf bug on Linux libc5.
14327         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
14328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14329         gl_SNPRINTF_SIZE1.
14330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14331         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
14332         that test failed.
14333         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14334         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
14335         * modules/snprintf (Files): Add m4/printf.m4.
14336         * modules/vsnprintf (Files): Likewise.
14337         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
14338         * doc/posix-functions/vsnprintf.texi: Likewise.
14339
14340 2008-04-19  Bruno Haible  <bruno@clisp.org>
14341
14342         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
14343         from 0.0058 to less than 10^-7.
14344
14345 2008-04-19  Bruno Haible  <bruno@clisp.org>
14346
14347         Fix rounding when a precision is given.
14348         * lib/vasnprintf.c (is_borderline): New function.
14349         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
14350         9...9x.
14351         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
14352         %e, %g.
14353         * tests/test-vasprintf-posix.c (test_function): Likewise.
14354         * tests/test-snprintf-posix.h (test_function): Likewise.
14355         * tests/test-sprintf-posix.h (test_function): Likewise.
14356         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
14357         * tests/test-printf-posix.h (test_function): Likewise.
14358         * tests/test-printf-posix.output: Update.
14359         Reported by John Darrington <john@darrington.wattle.id.au> via
14360         Ben Pfaff <blp@cs.stanford.edu>.
14361
14362 2008-04-18  Simon Josefsson  <simon@josefsson.org>
14363
14364         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
14365         Suggested by Bruno Haible <bruno@clisp.org>.
14366
14367 2008-04-17  Bruno Haible  <bruno@clisp.org>
14368
14369         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
14370         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
14371         implementation.
14372         Patch by Bruce Merry <bmerry@gmail.com>.
14373
14374 2008-04-17  Simon Josefsson  <simon@josefsson.org>
14375
14376         * doc/posix-functions/strftime.texi (strftime): Mention that %e
14377         doesn't work under Windows.
14378
14379 2008-04-16  Bruno Haible  <bruno@clisp.org>
14380
14381         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
14382         New macros.
14383         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
14384         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
14385         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
14386         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
14387         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
14388         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
14389         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
14390         macros.
14391         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
14392         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
14393         Northern Sotho, Uighur.
14394
14395 2008-04-16  Bruno Haible  <bruno@clisp.org>
14396
14397         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
14398         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
14399         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
14400         Reported by Daniel Bergström <daniel@octocode.com>.
14401
14402 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
14403             Bruno Haible  <bruno@clisp.org>
14404
14405         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
14406         function.
14407         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
14408         New functions, mostly extracted from gl_locale_name_default.
14409         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
14410
14411 2008-04-16  Eric Blake  <ebb9@byu.net>
14412
14413         Adjust strtod detection to catch glibc 2.7 bug.
14414         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
14415         Reported by John Gatewood Ham.
14416
14417 2008-04-16  Bruno Haible  <bruno@clisp.org>
14418
14419         Add tentative support for Linux libc5.
14420         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
14421         * lib/fpurge.c (fpurge): Likewise.
14422         * lib/freadable.c (freadable): Likewise.
14423         * lib/freadahead.c (freadahead): Likewise.
14424         * lib/freading.c (freading): Likewise.
14425         * lib/freadptr.c (freadptr): Likewise.
14426         * lib/freadseek.c (freadptrinc): Likewise.
14427         * lib/fseeko.c (rpl_fseeko): Likewise.
14428         * lib/fseterr.c (fseterr): Likewise.
14429         * lib/fwritable.c (fwritable): Likewise.
14430         * lib/fwriting.c (fwriting): Likewise.
14431         Reported by Alain Guibert <alguibert+bts@free.fr>.
14432
14433 2008-04-15  Bruno Haible  <bruno@clisp.org>
14434
14435         * modules/mathl (configure.ac): Define module indicator.
14436
14437 2008-04-15  Bruno Haible  <bruno@clisp.org>
14438
14439         * lib/logl.c (logl): Remove unused variables.
14440
14441 2008-04-15  Bruno Haible  <bruno@clisp.org>
14442
14443         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
14444         fails.
14445
14446 2008-04-15  Bruno Haible  <bruno@clisp.org>
14447
14448         * lib/trim.c (trim2): Fix argument of isspace() macro.
14449
14450 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
14451
14452         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
14453         to 0.
14454         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
14455
14456 2008-04-14  Bruno Haible  <bruno@clisp.org>
14457
14458         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
14459         AC_LANG_PROGRAM argument.
14460         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
14461         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
14462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14463         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14464         * m4/math_h.m4 (gl_MATH_H): Likewise.
14465         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14467         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14468         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
14469         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14470         * m4/regex.m4 (gl_REGEX): Likewise.
14471         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
14472         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
14473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
14475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
14476         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14479
14480 2008-04-14  Jim Meyering  <meyering@redhat.com>
14481
14482         test-strtod: fix typos: s/abs/fabs/
14483         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
14484
14485 2008-04-13  Bruno Haible  <bruno@clisp.org>
14486
14487         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
14488         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
14489         module is also used and while not building the reloc-wrapper.
14490
14491 2008-04-13  Bruno Haible  <bruno@clisp.org>
14492
14493         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
14494
14495 2008-04-13  Bruno Haible  <bruno@clisp.org>
14496
14497         Fix AIX compilation failure introduced on 2008-04-02.
14498         * tests/test-frexp.c (exp): Undefine before redefining.
14499         * tests/test-frexpl.c (exp): Likewise.
14500
14501 2008-04-13  Bruno Haible  <bruno@clisp.org>
14502
14503         Work around a HP-UX stdio bug.
14504         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
14505         * tests/test-ftello.c (main): Likewise.
14506         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
14507         * doc/posix-functions/ftello.texi: Likewise.
14508
14509 2008-04-13  Bruno Haible  <bruno@clisp.org>
14510
14511         Make test-signbit pass on HP-UX/hppa.
14512         * tests/test-signbit.c (minus_zerol): New variable.
14513         (test_signbitl): Use it.
14514
14515 2008-04-13  Bruno Haible  <bruno@clisp.org>
14516
14517         Make truncl work on OSF/1 4.0.
14518         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
14519         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
14520         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
14521         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
14522         HAVE_DECL_TRUNCL.
14523         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
14524         HAVE_DECL_TRUNCL.
14525         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
14526
14527 2008-04-13  Bruno Haible  <bruno@clisp.org>
14528
14529         * lib/unictype.h: Remove trailing comma from enumeration definitions.
14530
14531 2008-04-13  Bruno Haible  <bruno@clisp.org>
14532
14533         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
14534         expression, so as to avoid HP-UX 11 cc compiler bug.
14535
14536 2008-04-13  Bruno Haible  <bruno@clisp.org>
14537
14538         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
14539
14540 2008-04-13  Bruno Haible  <bruno@clisp.org>
14541
14542         * lib/git-merge-changelog.c: Remove empty declaration outside of
14543         functions.
14544
14545 2008-04-13  Bruno Haible  <bruno@clisp.org>
14546
14547         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
14548
14549 2008-04-13  Bruno Haible  <bruno@clisp.org>
14550
14551         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
14552         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
14553         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
14554         also if it exists but lacks definitions of the SHUT_* macros.
14555         * modules/sys_socket (Description): Update.
14556         Reported by Elbert Pol <e.pol@chello.nl>.
14557
14558 2008-04-13  Bruno Haible  <bruno@clisp.org>
14559
14560         * lib/localcharset.c (OS2): Don't redefine if already defined.
14561         Reported by Elbert Pol <e.pol@chello.nl>.
14562
14563 2008-04-13  Bruno Haible  <bruno@clisp.org>
14564
14565         * lib/binary-io.h [__EMX__]: Include <io.h>.
14566         Reported by Elbert Pol <e.pol@chello.nl>.
14567
14568 2008-04-12  Bruno Haible  <bruno@clisp.org>
14569
14570         * lib/fpucw.h: Enable the definitions also for x86_64.
14571         Needed for NetBSD/x86_64.
14572         Reported by Thomas Klausner <tk@giga.or.at>.
14573
14574 2008-04-12  Bruno Haible  <bruno@clisp.org>
14575
14576         * tests/test-strtod.c: Include isnand.h.
14577         (main): Use isnand instead of isnan.
14578         Reported by Jim Meyering.
14579
14580 2008-04-12  Bruno Haible  <bruno@clisp.org>
14581
14582         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
14583         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14584
14585 2008-04-12  Jim Meyering  <meyering@redhat.com>
14586
14587         * m4/math_h.m4 (gl_MATH_H): Fix typos.
14588
14589 2008-04-12  Bruno Haible  <bruno@clisp.org>
14590
14591         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
14592         Reported by Elbert Pol <e.pol@chello.nl>.
14593
14594 2008-04-12  Eric Blake  <ebb9@byu.net>
14595
14596         Work around Solaris 10 math.h bug.
14597         * m4/math_h.m4 (gl_MATH_H): Check for bug.
14598         (gl_MATH_H_DEFAULTS): Set up default.
14599         * modules/math (Makefile.am): Replace new indicators.
14600         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
14601         * tests/test-math.c (main): Test this.
14602         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
14603         * doc/posix-headers/math.texi (math.h): Mention bug.
14604         Reported by Nelson H. F. Beebe and Jim Meyering.
14605
14606 2008-04-11  Bruno Haible  <bruno@clisp.org>
14607
14608         Adapt to future versions of Apple GCC.
14609         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
14610         Reported by Peter O'Gorman <peter@pogma.com>.
14611
14612 2008-04-11  Bruno Haible  <bruno@clisp.org>
14613
14614         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
14615
14616 2008-04-11  Bruno Haible  <bruno@clisp.org>
14617
14618         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
14619
14620         * modules/getaddrinfo-tests (Makefile.am): Define
14621         test_getaddrinfo_LDADD.
14622
14623 2008-04-11  Bruno Haible  <bruno@clisp.org>
14624
14625         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
14626         (init): Fix syntax error.
14627         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
14628         is declared.
14629
14630 2008-04-11  Bruno Haible  <bruno@clisp.org>
14631
14632         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
14633         * modules/glob (Depends-on): Add stdbool.
14634
14635 2008-04-11  Bruno Haible  <bruno@clisp.org>
14636
14637         * lib/trim.c: Include <string.h>.
14638
14639 2008-04-11  Eric Blake  <ebb9@byu.net>
14640
14641         Avoid compile failure on OS/2.
14642         * lib/regex_internal.h (internal_function): Disable optimization
14643         on OS/2 (__EMX__), where it caused compiler error.
14644         Reported by Elbert Pol.
14645
14646 2008-04-11  Bruno Haible  <bruno@clisp.org>
14647
14648         Flush the standard error stream before aborting. Needed on mingw.
14649         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
14650         * tests/test-array_list.c (ASSERT): Likewise.
14651         * tests/test-array_oset.c (ASSERT): Likewise.
14652         * tests/test-avltree_list.c (ASSERT): Likewise.
14653         * tests/test-avltree_oset.c (ASSERT): Likewise.
14654         * tests/test-avltreehash_list.c (ASSERT): Likewise.
14655         * tests/test-binary-io.c (ASSERT): Likewise.
14656         * tests/test-byteswap.c (ASSERT): Likewise.
14657         * tests/test-c-ctype.c (ASSERT): Likewise.
14658         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
14659         * tests/test-c-strcasestr.c (ASSERT): Likewise.
14660         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
14661         * tests/test-c-strstr.c (ASSERT): Likewise.
14662         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
14663         * tests/test-canonicalize.c (ASSERT): Likewise.
14664         * tests/test-carray_list.c (ASSERT): Likewise.
14665         * tests/test-ceilf1.c (ASSERT): Likewise.
14666         * tests/test-ceilf2.c (ASSERT): Likewise.
14667         * tests/test-ceill.c (ASSERT): Likewise.
14668         * tests/test-count-one-bits.c (ASSERT): Likewise.
14669         * tests/test-fbufmode.c (ASSERT): Likewise.
14670         * tests/test-fflush2.c (ASSERT): Likewise.
14671         * tests/test-floorf1.c (ASSERT): Likewise.
14672         * tests/test-floorf2.c (ASSERT): Likewise.
14673         * tests/test-floorl.c (ASSERT): Likewise.
14674         * tests/test-fopen.c (ASSERT): Likewise.
14675         * tests/test-fpending.c (ASSERT): Likewise.
14676         * tests/test-fprintf-posix.c (ASSERT): Likewise.
14677         * tests/test-fpurge.c (ASSERT): Likewise.
14678         * tests/test-freadable.c (ASSERT): Likewise.
14679         * tests/test-freadahead.c (ASSERT): Likewise.
14680         * tests/test-freading.c (ASSERT): Likewise.
14681         * tests/test-freadptr.c (ASSERT): Likewise.
14682         * tests/test-freadptr2.c (ASSERT): Likewise.
14683         * tests/test-freadseek.c (ASSERT): Likewise.
14684         * tests/test-freopen.c (ASSERT): Likewise.
14685         * tests/test-frexp.c (ASSERT): Likewise.
14686         * tests/test-frexpl.c (ASSERT): Likewise.
14687         * tests/test-fseek.c (ASSERT): Likewise.
14688         * tests/test-fseeko.c (ASSERT): Likewise.
14689         * tests/test-fstrcmp.c (ASSERT): Likewise.
14690         * tests/test-ftell.c (ASSERT): Likewise.
14691         * tests/test-ftello.c (ASSERT): Likewise.
14692         * tests/test-func.c (ASSERT): Likewise.
14693         * tests/test-fwritable.c (ASSERT): Likewise.
14694         * tests/test-fwriting.c (ASSERT): Likewise.
14695         * tests/test-getdelim.c (ASSERT): Likewise.
14696         * tests/test-getline.c (ASSERT): Likewise.
14697         * tests/test-i-ring.c (ASSERT): Likewise.
14698         * tests/test-iconv-utf.c (ASSERT): Likewise.
14699         * tests/test-iconv.c (ASSERT): Likewise.
14700         * tests/test-isfinite.c (ASSERT): Likewise.
14701         * tests/test-isnand.c (ASSERT): Likewise.
14702         * tests/test-isnanf.c (ASSERT): Likewise.
14703         * tests/test-isnanl.h (ASSERT): Likewise.
14704         * tests/test-ldexpl.c (ASSERT): Likewise.
14705         * tests/test-linked_list.c (ASSERT): Likewise.
14706         * tests/test-linkedhash_list.c (ASSERT): Likewise.
14707         * tests/test-localename.c (ASSERT): Likewise.
14708         * tests/test-lseek.c (ASSERT): Likewise.
14709         * tests/test-mbscasecmp.c (ASSERT): Likewise.
14710         * tests/test-mbscasestr1.c (ASSERT): Likewise.
14711         * tests/test-mbscasestr2.c (ASSERT): Likewise.
14712         * tests/test-mbscasestr3.c (ASSERT): Likewise.
14713         * tests/test-mbscasestr4.c (ASSERT): Likewise.
14714         * tests/test-mbschr.c (ASSERT): Likewise.
14715         * tests/test-mbscspn.c (ASSERT): Likewise.
14716         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
14717         * tests/test-mbspbrk.c (ASSERT): Likewise.
14718         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
14719         * tests/test-mbsrchr.c (ASSERT): Likewise.
14720         * tests/test-mbsspn.c (ASSERT): Likewise.
14721         * tests/test-mbsstr1.c (ASSERT): Likewise.
14722         * tests/test-mbsstr2.c (ASSERT): Likewise.
14723         * tests/test-mbsstr3.c (ASSERT): Likewise.
14724         * tests/test-memchr2.c (ASSERT): Likewise.
14725         * tests/test-memmem.c (ASSERT): Likewise.
14726         * tests/test-open.c (ASSERT): Likewise.
14727         * tests/test-printf-frexp.c (ASSERT): Likewise.
14728         * tests/test-printf-frexpl.c (ASSERT): Likewise.
14729         * tests/test-printf-posix.c (ASSERT): Likewise.
14730         * tests/test-quotearg.c (ASSERT): Likewise.
14731         * tests/test-rbtree_list.c (ASSERT): Likewise.
14732         * tests/test-rbtree_oset.c (ASSERT): Likewise.
14733         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
14734         * tests/test-round1.c (ASSERT): Likewise.
14735         * tests/test-roundf1.c (ASSERT): Likewise.
14736         * tests/test-roundl.c (ASSERT): Likewise.
14737         * tests/test-signbit.c (ASSERT): Likewise.
14738         * tests/test-sleep.c (ASSERT): Likewise.
14739         * tests/test-snprintf-posix.c (ASSERT): Likewise.
14740         * tests/test-snprintf.c (ASSERT): Likewise.
14741         * tests/test-sprintf-posix.c (ASSERT): Likewise.
14742         * tests/test-stat-time.c (ASSERT): Likewise.
14743         * tests/test-strcasestr.c (ASSERT): Likewise.
14744         * tests/test-strerror.c (ASSERT): Likewise.
14745         * tests/test-striconv.c (ASSERT): Likewise.
14746         * tests/test-striconveh.c (ASSERT): Likewise.
14747         * tests/test-striconveha.c (ASSERT): Likewise.
14748         * tests/test-strsignal.c (ASSERT): Likewise.
14749         * tests/test-strstr.c (ASSERT): Likewise.
14750         * tests/test-strtod.c (ASSERT): Likewise.
14751         * tests/test-trunc1.c (ASSERT): Likewise.
14752         * tests/test-trunc2.c (ASSERT): Likewise.
14753         * tests/test-truncf1.c (ASSERT): Likewise.
14754         * tests/test-truncf2.c (ASSERT): Likewise.
14755         * tests/test-truncl.c (ASSERT): Likewise.
14756         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
14757         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
14758         * tests/test-vasnprintf.c (ASSERT): Likewise.
14759         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
14760         * tests/test-vasprintf.c (ASSERT): Likewise.
14761         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
14762         * tests/test-vprintf-posix.c (ASSERT): Likewise.
14763         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
14764         * tests/test-vsnprintf.c (ASSERT): Likewise.
14765         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
14766         * tests/test-wcwidth.c (ASSERT): Likewise.
14767         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
14768         * tests/test-xprintf-posix.c (ASSERT): Likewise.
14769         * tests/test-xvasprintf.c (ASSERT): Likewise.
14770         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
14771         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
14772         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
14773         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
14774         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
14775         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
14776         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
14777         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
14778         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
14779         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
14780         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
14781         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
14782         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
14783         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
14784         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
14785         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
14786         * tests/unictype/test-block_list.c (ASSERT): Likewise.
14787         * tests/unictype/test-block_of.c (ASSERT): Likewise.
14788         * tests/unictype/test-block_test.c (ASSERT): Likewise.
14789         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
14790         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
14791         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
14792         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
14793         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
14794         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
14795         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
14796         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
14797         * tests/unictype/test-combining.c (ASSERT): Likewise.
14798         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
14799         * tests/unictype/test-digit.c (ASSERT): Likewise.
14800         * tests/unictype/test-mirror.c (ASSERT): Likewise.
14801         * tests/unictype/test-numeric.c (ASSERT): Likewise.
14802         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
14803         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
14804         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
14805         * tests/unictype/test-scripts.c (ASSERT): Likewise.
14806         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
14807         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
14808         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
14809         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
14810         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
14811         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
14812         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
14813         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
14814         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
14815         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
14816         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
14817         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
14818         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
14819         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
14820         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
14821         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
14822         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
14823         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
14824         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
14825         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
14826         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
14827         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
14828         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
14829         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
14830         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
14831         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
14832         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
14833         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
14834         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
14835         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
14836         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
14837         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
14838         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
14839         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
14840         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
14841         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
14842         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
14843         Reported by Eric Blake.
14844
14845 2008-04-11  Bruno Haible  <bruno@clisp.org>
14846
14847         * lib/wchar.in.h: Tweak comment.
14848
14849 2008-04-11  Bruno Haible  <bruno@clisp.org>
14850
14851         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
14852         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
14853         gl_COMMON.
14854         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
14855
14856 2008-04-11  Bruno Haible  <bruno@clisp.org>
14857
14858         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
14859
14860 2008-04-11  Simon Josefsson  <simon@josefsson.org>
14861
14862         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
14863         of attempting to use non-existing /dev/*random.  Based on patch
14864         from Adam Strzelecki <ono@java.pl> in
14865         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
14866
14867 2008-04-08  Bruno Haible  <bruno@clisp.org>
14868
14869         Add tentative support for emx+gcc.
14870         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
14871         * lib/fpurge.c (fpurge): Likewise.
14872         * lib/freadable.c (freadable): Likewise.
14873         * lib/freadahead.c (freadahead): Likewise.
14874         * lib/freading.c (freading): Likewise.
14875         * lib/freadptr.c (freadptr): Likewise.
14876         * lib/freadseek.c (freadptrinc): Likewise.
14877         * lib/fseeko.c (rpl_fseeko): Likewise.
14878         * lib/fseterr.c (fseterr): Likewise.
14879         * lib/fwritable.c (fwritable): Likewise.
14880         * lib/fwriting.c (fwriting): Likewise.
14881         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
14882
14883 2008-04-09  Eric Blake  <ebb9@byu.net>
14884
14885         Avoid some autoconf warnings.
14886         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
14887         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
14888         * m4/afs.m4 (gl_AFS): Likewise.
14889         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
14890         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
14891         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14892         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
14893         (gl_INTEGER_TYPE_SUFFIX): Likewise.
14894         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
14895         (AC_CHECK_DECLS_ONCE): Likewise.
14896         Rename file...
14897         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
14898         gnulib-tool requires autoconf 2.59 or better.
14899         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
14900
14901 2008-04-08  Eric Blake  <ebb9@byu.net>
14902
14903         Use 'git describe --match' if present (added in git 1.5.5).
14904         * build-aux/git-version-gen: Limit result to tags that match 'v*'
14905         if possible.
14906
14907 2008-04-08  Bruno Haible  <bruno@clisp.org>
14908
14909         Add tentative support for OpenServer.
14910         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
14911         _ptr, _cnt.
14912         * lib/fpurge.c (fpurge): Likewise.
14913         * lib/freadable.c (freadable): Likewise.
14914         * lib/freadahead.c (freadahead): Likewise.
14915         * lib/freading.c (freading): Likewise.
14916         * lib/freadptr.c (freadptr): Likewise.
14917         * lib/freadseek.c (freadptrinc): Likewise.
14918         * lib/fseeko.c (rpl_fseeko): Likewise.
14919         * lib/fseterr.c (fseterr): Likewise.
14920         * lib/fwritable.c (fwritable): Likewise.
14921         * lib/fwriting.c (fwriting): Likewise.
14922         Reported by Roger Cornelius <rac@tenzing.org> and
14923         Brian K. White <brian@aljex.com>.
14924
14925 2008-04-06  Jim Meyering  <meyering@redhat.com>
14926
14927         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
14928
14929 2008-04-06  Bruno Haible  <bruno@clisp.org>
14930
14931         Avoid possible error with non-ASCII bytes in UTF-8 locales.
14932         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
14933         * tests/test-printf-posix.sh: Likewise.
14934         * tests/test-vfprintf-posix.sh: Likewise.
14935         * tests/test-vprintf-posix.sh: Likewise.
14936         * tests/test-xprintf-posix.sh: Likewise.
14937
14938 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14939
14940         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
14941         hide error from 'ls', needed on OS/2.
14942         Report by Elbert Pol <elbert.pol@gmail.com>.
14943
14944 2008-04-04  Eric Blake  <ebb9@byu.net>
14945
14946         Make test-fseeko.c failures meaningful.
14947         * tests/test-fseeko.c: Print line number on failure.
14948         * tests/test-fseek.c: Likewise.
14949         Reported by Nelson H. F. Beebe.
14950
14951         Improve strtod bug detection check.
14952         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
14953         required for Solaris 10.
14954         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
14955
14956 2008-04-04  Bruno Haible  <bruno@clisp.org>
14957
14958         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
14959         by m4/setenv.m4.
14960
14961 2008-04-03  Eric Blake  <ebb9@byu.net>
14962
14963         Ensure sane .version contents.
14964         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
14965         version string.
14966         * build-aux/git-version-gen: Improve documentation.
14967
14968         Make GNU make output nicer.
14969         * top/GNUmakefile [!_have-Makefile]: Add dependency on
14970         MAKECMDGOALS to enforce message for all command line targets.  Set
14971         srcdir for use in maint.mk.
14972
14973         Another maintainer tweak.
14974         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
14975         a target that regenerates version.
14976
14977 2008-04-03  Jim Meyering  <meyering@redhat.com>
14978
14979         vc-list-files: don't cause coreutils "make po-check" failure
14980         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
14981
14982 2008-04-03  Eric Blake  <ebb9@byu.net>
14983
14984         Allow VPATH usage of vc-list-files.
14985         * build-aux/vc-list-files (scriptversion): Add timestamp.
14986         (options): Add --help, --version, -C.
14987         (CVS): Support installed cvsu.
14988
14989 2008-04-02  Bruno Haible  <bruno@clisp.org>
14990
14991         Avoid some "statement with no effect" warnings from gcc.
14992         * tests/test-wctype.c (main): Explicitly ignore unused values.
14993         Reported by Jim Meyering.
14994
14995 2008-04-02  Jim Meyering  <meyering@redhat.com>
14996
14997         Avoid some warnings from "gcc -Wshadow".
14998         * tests/test-frexp.c (exp): Define to a different identifier.
14999         * tests/test-frexpl.c (exp): Likewise.
15000
15001 2008-04-03  Jim Meyering  <meyering@redhat.com>
15002
15003         bootstrap: remove dangling *.[ch] symlinks from lib
15004         * build-aux/bootstrap [dangling symlink removal]: Move find's
15005         -depth option to precede all others, to avoid a warning.
15006         Remove *.[ch] files too, and from "$source_base" (usually lib/).
15007
15008 2008-04-02  Bruno Haible  <bruno@clisp.org>
15009
15010         Avoid some warnings from "gcc -Wshadow".
15011         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
15012         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
15013         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
15014         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
15015         Reported by Jim Meyering.
15016
15017 2008-04-01  Bruno Haible  <bruno@clisp.org>
15018
15019         Fix test to work on IRIX 6.5 with cc.
15020         * tests/test-math.c (numeric_equal): New function.
15021         (main): Use it.
15022
15023 2008-04-01  Bruno Haible  <bruno@clisp.org>
15024
15025         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
15026
15027 2008-04-01  Bruno Haible  <bruno@clisp.org>
15028
15029         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
15030         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15031         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
15032         (Depends-on): Remove math.
15033
15034         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
15035         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15036         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
15037         (Depends-on): Remove math.
15038
15039         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
15040         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15041         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
15042         (Depends-on): Remove math.
15043         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
15044         (Depends-on): Remove math.
15045
15046         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
15047         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
15048         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
15049         (Depends-on): Remove math.
15050         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
15051         (Depends-on): Remove math.
15052
15053         * tests/test-round1.c: Include nan.h.
15054         (main): Use NaNd instead of NAN.
15055         * modules/round-tests (Files): Add tests/nan.h.
15056
15057         * tests/test-trunc1.c: Include nan.h.
15058         (main): Use NaNd instead of NAN.
15059         * modules/trunc-tests (Files): Add tests/nan.h.
15060
15061         * tests/test-roundf1.c: Include nan.h.
15062         (main): Use NaNf instead of NAN.
15063         * modules/roundf-tests (Files): Add tests/nan.h.
15064
15065         * tests/test-truncf1.c: Include nan.h.
15066         (main): Use NaNf instead of NAN.
15067         * modules/truncf-tests (Files): Add tests/nan.h.
15068
15069         * tests/test-ceilf1.c: Include nan.h.
15070         (main): Use NaNf instead of NAN.
15071         * modules/ceilf-tests (Files): Add tests/nan.h.
15072
15073         * tests/test-floorf1.c: Include nan.h.
15074         (main): Use NaNf instead of NAN.
15075         * modules/floorf-tests (Files): Add tests/nan.h.
15076
15077         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
15078         (main): Use NaNf instead of NAN.
15079         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
15080
15081         * tests/test-isnand.c: Include nan.h instead of <math.h>.
15082         (main): Use NaNd instead of NAN.
15083         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
15084
15085         * tests/test-frexp.c: Include nan.h.
15086         (main): Use NaNd instead of NAN.
15087         * modules/frexp-tests (Files): Add tests/nan.h.
15088
15089         * lib/isnan.c: Don't include <math.h>.
15090         (FUNC): Don't use NAN macro.
15091         * modules/isnand-nolibm (Depends-on): Remove math.
15092         * modules/isnanf-nolibm (Depends-on): Remove math.
15093         * modules/isnanl (Depends-on): Remove math.
15094         * modules/isnanl-nolibm (Depends-on): Remove math.
15095
15096         * tests/nan.h: New file.
15097
15098 2008-04-01  Eric Blake  <ebb9@byu.net>
15099
15100         Fix typos.
15101         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
15102         values to be the right type.
15103
15104         For now, cater to gnulib strtod inaccuracies.
15105         * tests/test-strtod.c (main): Allow 1-ulp error on expected
15106         fractional results.  While not as nice from a QoI perspective, it
15107         is a quicker patch than correctly implementing decimal to binary
15108         rounding.
15109
15110 2008-03-31  Eric Blake  <ebb9@byu.net>
15111
15112         Guarantee a definition of NAN.
15113         * lib/math.in.h (NAN): Define if missing.
15114         * tests/test-math.c (main): Test it.
15115         * doc/posix-headers/math.texi (math.h): Document this.
15116         * lib/isnan.c (rpl_isnand): Use it.
15117         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
15118         * tests/test-floorf1.c (NaN): Likewise.
15119         * tests/test-frexp.c (NaN): Likewise.
15120         * tests/test-isnand.c (NaN): Likewise.
15121         * tests/test-isnanf.c (NaN): Likewise.
15122         * tests/test-round1.c (NaN): Likewise.
15123         * tests/test-roundf1.c (NaN): Likewise.
15124         * tests/test-snprintf-posix.h (NaN): Likewise.
15125         * tests/test-sprintf-posix.h (NaN): Likewise.
15126         * tests/test-trunc1.c (NaN): Likewise.
15127         * tests/test-truncf1.c (NaN): Likewise.
15128         * tests/test-vasnprintf-posix.c (NaN): Likewise.
15129         * tests/test-vasprintf-posix.c (NaN): Likewise.
15130         * modules/isnand-nolibm (Depends-on): Add math.
15131         * modules/isnanf-nolibm (Depends-on): Likewise.
15132         * modules/isnanl (Depends-on): Likewise.
15133         * modules/isnanl-nolibm (Depends-on): Likewise.
15134         * modules/snprintf-posix-tests (Depends-on): Likewise.
15135         * modules/sprintf-posix-tests (Depends-on): Likewise.
15136         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
15137         * modules/vsprintf-posix-tests (Depends-on): Likewise.
15138         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
15139         * modules/vasprintf-posix-tests (Depends-on): Likewise.
15140
15141 2008-03-31  Bruno Haible  <bruno@clisp.org>
15142
15143         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
15144         * doc/posix-functions/strtod.texi: Likewise.
15145
15146 2008-03-31  Bruno Haible  <bruno@clisp.org>
15147
15148         * tests/test-strtod.c (main): Don't use C99 syntax.
15149
15150 2008-03-31  Bruno Haible  <bruno@clisp.org>
15151
15152         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
15153         Reported by Eric Blake.
15154
15155 2008-03-31  Jim Meyering  <meyering@redhat.com>
15156
15157         Don't compare actual signbit return values.
15158         * tests/test-strtod.c (main): Rather, compare only their
15159         zero/non-zero nature.
15160
15161 2008-03-31  Eric Blake  <ebb9@byu.net>
15162
15163         More strtod documentation.
15164         * doc/posix-functions/strtod.texi (strtod): Interpret more test
15165         failures as distinct bugs.
15166
15167 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15168
15169         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
15170         Problem reported by Erik Benada in
15171         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
15172
15173 2008-03-30  Bruno Haible  <bruno@clisp.org>
15174
15175         * tests/test-strtod.c: Add comments about which assertion fails on which
15176         platform.
15177         * doc/posix-functions/strtod.texi: Add info about many more platforms.
15178
15179 2008-03-30  Eric Blake  <ebb9@byu.net>
15180
15181         Test signbit behavior on zeros.
15182         * tests/test-signbit.c (test_signbitf): Add tests for zero.
15183         (test_signbitd, test_signbitl): Likewise.
15184
15185         More strtod touchups.
15186         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
15187         sign of negative underflow, for now.  Use .5, not .1.
15188         * doc/posix-functions/strtod.texi (strtod): Mention these
15189         limitations.
15190         Reported by Jim Meyering.
15191
15192 2008-03-30  Bruno Haible  <bruno@clisp.org>
15193
15194         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
15195         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
15196
15197 2008-03-30  Bruno Haible  <bruno@clisp.org>
15198
15199         Avoid failure when attempting to return empty iconv results on some
15200         platforms.
15201         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
15202         allocation, don't report ENOMEM when the resulting string is empty.
15203
15204 2008-03-30  Bruno Haible  <bruno@clisp.org>
15205
15206         Fix buffer overrun.
15207         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
15208         Don't consider the width for tmp_length. Check count against tmp_length
15209         before doing the padding. Ensure enough allocation during padding.
15210
15211 2008-03-30  Eric Blake  <ebb9@byu.net>
15212
15213         strtod touchups.
15214         * lib/strtod.c (strtod): Avoid compiler warnings.
15215         Reported by Jim Meyering.
15216
15217 2008-03-30  Bruno Haible  <bruno@clisp.org>
15218
15219         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
15220         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
15221         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
15222         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
15223         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
15224         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
15225         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
15226         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
15227
15228         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
15229         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
15230         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
15231         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
15232         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
15233         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
15234         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
15235         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
15236
15237         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
15238         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
15239         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
15240         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
15241         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
15242         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
15243         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
15244         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
15245
15246         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
15247         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
15248
15249         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
15250         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
15251
15252         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
15253         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
15254
15255         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
15256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
15257         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
15258
15259         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
15260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
15261         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
15262
15263         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
15264         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
15265         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
15266
15267         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
15268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
15269         * modules/vasprintf (Depends-on): Add EOVERFLOW.
15270
15271         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
15272         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
15273         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
15274         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
15275         (Depends-on): Add EOVERFLOW.
15276         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
15277         (Depends-on): Add EOVERFLOW.
15278         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15279         (Depends-on): Add EOVERFLOW.
15280         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15281         (Depends-on): Add EOVERFLOW.
15282         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15283         (Depends-on): Add EOVERFLOW.
15284         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15285         (Depends-on): Add EOVERFLOW.
15286         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15287         (Depends-on): Add EOVERFLOW.
15288         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15289         (Depends-on): Add EOVERFLOW.
15290
15291         * lib/sprintf.c (EOVERFLOW): Remove fallback.
15292         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
15293         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
15294
15295         * lib/snprintf.c (EOVERFLOW): Remove fallback.
15296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
15297         * modules/snprintf (Depends-on): Add EOVERFLOW.
15298
15299         * lib/poll.c (EOVERFLOW): Remove fallback.
15300         * modules/poll (Depends-on): Add EOVERFLOW.
15301
15302         * lib/getugroups.c (EOVERFLOW): Remove fallback.
15303         * modules/getugroups (Depends-on): Add EOVERFLOW.
15304
15305         * lib/getdelim.c (EOVERFLOW): Remove fallback.
15306         * modules/getdelim (Depends-on): Add EOVERFLOW.
15307
15308         * lib/ftell.c (EOVERFLOW): Remove fallback.
15309         * modules/ftell (Depends-on): Add EOVERFLOW.
15310
15311         * lib/fprintf.c (EOVERFLOW): Remove fallback.
15312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
15313         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
15314
15315         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
15316
15317         * modules/EOVERFLOW-tests: New file.
15318         * tests/test-EOVERFLOW.c: New file.
15319
15320         * modules/EOVERFLOW: New file.
15321         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
15322
15323 2008-03-30  Bruno Haible  <bruno@clisp.org>
15324
15325         Fix bug introduced on 2007-06-10.
15326         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
15327         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
15328
15329 2008-03-30  Bruno Haible  <bruno@clisp.org>
15330
15331         Improve freadseek's efficiency after ungetc.
15332         * lib/freadseek.c: Include freadahead.h.
15333         (freadptrinc): New function, extracted from freadseek.
15334         (freadseek): Use it in a loop. Use freadahead to determine the number
15335         of loop iterations.
15336         * modules/freadseek (Depends-on): Add freadahead.
15337         (configure.ac): Require AC_C_INLINE.
15338
15339 2008-03-30  Bruno Haible  <bruno@clisp.org>
15340
15341         * lib/freadseek.c (freadseek): Don't ignore the return value of
15342         freadptr.
15343
15344 2008-03-29  Eric Blake  <ebb9@byu.net>
15345
15346         Add hex float support.
15347         * modules/strtod (Depends-on): Add c-ctype.
15348         (Link): Mention POW_LIB.
15349         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
15350         whitespace between 'e' and exponent.
15351         * tests/test-strtod.c (main): Enable hex float tests.
15352         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
15353         now provides.
15354
15355         Document various strtod bugs, with some fixes.
15356         * doc/posix-functions/strtod.texi (strtod): Document bugs with
15357         "-0x", "inf", "nan", and hex constants.
15358         * doc/posix-functions/atof.texi (atof): Likewise.
15359         * modules/stdlib (Makefile.am): Support strtod.
15360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15361         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
15362         detect additional strtod bugs.
15363         * lib/stdlib.in.h (rpl_strtod): Add declarations.
15364         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
15365         bool where appropriate.  Parse 'inf' and 'nan'.
15366         * tests/test-strtod.c: New file.
15367         * modules/strtod (Depends-on): Add stdbool, stdlib.
15368         (configure.ac): Turn on module indicator.
15369         * modules/strtod-tests: New module.
15370
15371 2008-03-29  Eric Blake  <ebb9@byu.net>
15372
15373         Fix ftell on mingw.
15374         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
15375         * modules/ftell-tests (Depends-on): Add binary-io.
15376         * modules/ftello-tests (Depends-on): Likewise.
15377         * tests/test-ftell.c (main): Enhance test to cover behavior after
15378         ungetc.  Enforce binary mode.
15379         * tests/test-ftello.c (main): Likewise.
15380
15381         Pass test-freadseek on cygwin.
15382         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
15383         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
15384         ungetc buffer.
15385
15386         * tests/test-fflush2.c (main): Fix typo.
15387
15388 2008-03-29  Bruno Haible  <bruno@clisp.org>
15389
15390         * tests/test-fflush2.c (main): Temporarily disable the contents of
15391         this test.
15392         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
15393         Reported by Eric Blake.
15394
15395 2008-03-28  Simon Josefsson  <simon@josefsson.org>
15396
15397         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
15398         (GC_SHA224_DIGEST_SIZE): Add.
15399
15400         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
15401         (gc_hash_digest_length): Likewise.
15402         (gc_hash_buffer): Likewise.
15403
15404 2008-03-25  Bruno Haible  <bruno@clisp.org>
15405
15406         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
15407         detail which gettext release to use.
15408         Reported by Simon Josefsson.
15409
15410 2008-03-26  Jim Meyering  <meyering@redhat.com>
15411
15412         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
15413         * modules/gnumakefile (clean-GNUmakefile): Also, use
15414         test ... && ... || : syntax rather than if-then ... fi.
15415
15416         gnumakefile: Don't double-quote-expand $(VPATH) value.
15417         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
15418
15419 2008-03-24  Eric Blake  <ebb9@byu.net>
15420
15421         Alter GNUmakefile to install into top directory.
15422         * modules/maintainer-makefile: Split, and add dependency...
15423         * modules/gnumakefile: to this new module.
15424         * build-aux/GNUmakefile: Move...
15425         * top/GNUmakefile: ...here.
15426         * build-aux/maint.mk: Move...
15427         * top/maint.mk: ...here.
15428         * MODULES.html.sh (Support for maintaining...): Document new
15429         module.
15430
15431 2008-03-23  Bruno Haible  <bruno@clisp.org>
15432
15433         * gnulib-tool: New options --vc-files, --no-vc-files.
15434         (func_usage): Document them.
15435         (vc_files): New variable.
15436         (func_import): Consider vc_files.
15437         (func_create_testdir): Set vc_files to empty.
15438         Suggested by Jim Meyering and Karl Berry.
15439
15440 2008-03-23  Bruno Haible  <bruno@clisp.org>
15441
15442         Fix regex compilation error on HP-UX 11.
15443         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
15444         * modules/regex (Files): Add m4/mbstate_t.m4.
15445         Reported by Ton Voon <ton.voon@altinity.com>.
15446
15447 2008-03-23  Bruno Haible  <bruno@clisp.org>
15448
15449         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
15450
15451 2008-03-23  Eric Blake  <ebb9@byu.net>
15452             Bruno Haible  <bruno@clisp.org>
15453
15454         Install files from top/ in the destination directory.
15455         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
15456         augmentation also for the files from top/.
15457         (func_import, func_create_testdir): Rewrite file names:
15458         top/filename -> filename.
15459
15460 2008-03-23  Bruno Haible  <bruno@clisp.org>
15461
15462         Tweak "gnulib --version" output.
15463         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
15464
15465 2008-03-23  Bruno Haible  <bruno@clisp.org>
15466
15467         Tweak "gnulib --version" output.
15468         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
15469         rather than contents of ChangeLog, when possible.
15470
15471 2008-03-21  Eric Blake  <ebb9@byu.net>
15472
15473         More --version tweaks.
15474         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
15475         date of last ChangeLog entry.
15476
15477 2008-03-21  Jim Meyering  <meyering@redhat.com>
15478
15479         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
15480
15481 2008-03-20  Eric Blake  <ebb9@byu.net>
15482
15483         VPATH fix.
15484         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
15485
15486 2008-03-20  Simon Josefsson  <simon@josefsson.org>
15487
15488         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
15489         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
15490
15491 2008-03-20  Eric Blake  <ebb9@byu.net>
15492
15493         Sync GNUmakefile with coreutils.
15494         * build-aux/GNUmakefile (have-Makefile): Rename...
15495         (_have-Makefile): ...to this, for namespace consideration.
15496         (GNUmakefile.cfg): Include, if present.
15497         (_autoreconf): Define a default.
15498         (_is-dist-target): New rule for rebuilds to pick up intra-release
15499         version.
15500         (maint-cfg.mk): Rename...
15501         (cfg.mk): ...to this.
15502
15503 2008-03-18  Jim Meyering  <meyering@redhat.com>
15504
15505         New script and module: mktempd
15506         * MODULES.html.sh (maint+release support): Add mktempd.
15507         * build-aux/mktempd: New file.
15508         * modules/mktempd: New file.
15509
15510 2008-03-15  Jim Meyering  <meyering@redhat.com>
15511
15512         Undo last change.
15513         * lib/sha1.c, lib/md5.c: 63 != ~63.
15514         Reported by Andreas Schwab.
15515
15516         sha1.c, md5.c: Hoist a redundant expression.
15517         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
15518         "ctx->buflen" only once, before calling *_process_block.
15519         * lib/md5.c (md5_process_bytes): Likewise.
15520
15521 2008-03-14  Eric Blake  <ebb9@byu.net>
15522
15523         Bump copyright year in files generated by gnulib-tool.
15524         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
15525         gnulib-tool, rather than hard-coding it.
15526
15527         Fix 'gnulib-tool --version' output to work with git.
15528         * gnulib-tool (func_gnulib_dir): New function, extracted from...
15529         (startup): ...here.
15530         (func_version): Use it to invoke git-version-gen, rather than
15531         relying on CVS keyword expansion.  Modernize wording.
15532         (cvsdatestamp, last_checkin_date, version): Kill unused
15533         variables.
15534
15535 2008-03-12  Jim Meyering  <meyering@redhat.com>
15536
15537         Recognize optional cast of the argument to free.
15538         * build-aux/useless-if-before-free: Update regexps.
15539
15540         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
15541
15542 2008-03-11  Bruno Haible  <bruno@clisp.org>
15543
15544         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
15545         by a single package.
15546         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
15547         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
15548         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
15549         Reported by Sam Steingold <sds@gnu.org>.
15550
15551 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15552
15553         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
15554         repositories.
15555
15556 2008-03-11  Bruno Haible  <bruno@clisp.org>
15557
15558         Avoid conflicts between local macro definitions.
15559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15560         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
15561
15562 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
15563             Bruno Haible  <bruno@clisp.org>
15564
15565         Make va_copy work with some version of xlc on AIX 5.1.
15566         * lib/stdarg.in.h: New file.
15567         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
15568         On AIX, use a <stdarg.h> file substitute.
15569         * modules/stdarg (Files): Add lib/stdarg.in.h.
15570         (Depends-on): Add include_next.
15571         (Makefile.am): Build a stdarg.h substitute if requested.
15572         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
15573
15574 2008-03-10  Bruno Haible  <bruno@clisp.org>
15575
15576         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
15577         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15578         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15579
15580 2008-03-10  Bruno Haible  <bruno@clisp.org>
15581
15582         * modules/stdlib (Depends-on): Add include_next, remove
15583         absolute-header.
15584
15585 2008-03-09  Bruno Haible  <bruno@clisp.org>
15586
15587         * lib/freadahead.h (freadahead): Document more precisely.
15588         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
15589         the sum of both buffer sizes.
15590         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
15591         * NEWS: Document the change.
15592
15593 2008-03-09  Bruno Haible  <bruno@clisp.org>
15594
15595         Extend freadptr to return also the buffer size.
15596         * lib/freadptr.h (freadptr): Add sizep argument.
15597         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
15598         (freadptr): Add sizep argument. Determine buffer size like freadahead
15599         does.
15600         * tests/test-freadptr.c: Don't include freadahead.h.
15601         (main): Adapt for new calling convention of freadptr.
15602         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
15603         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
15604         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
15605         tests/test-freadptr2.sh.
15606         (Depends): Remove freadahead.
15607         (TESTS): Add test-freadptr2.sh.
15608         (check_PROGRAMS): Add test-freadptr2.
15609
15610 2008-03-09  Bruno Haible  <bruno@clisp.org>
15611
15612         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
15613         Report and solution by Simon Josefsson.
15614
15615 2008-03-06  Bruno Haible  <bruno@clisp.org>
15616
15617         Make fflush after ungetc work on BSD platforms.
15618         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
15619         * tests/test-fflush2.c: New file.
15620         * tests/test-fflush2.sh: New file.
15621         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
15622         tests/test-fflush2.c.
15623         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
15624         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
15625
15626 2008-03-06  Eric Blake  <ebb9@byu.net>
15627
15628         Likewise for ftello.
15629         * modules/ftello (Dependencies): Add extensions.
15630         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
15631
15632 2008-03-06  Bruno Haible  <bruno@clisp.org>
15633
15634         * modules/fseeko (Dependencies): Add extensions.
15635         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
15636         Needed on glibc systems.
15637
15638 2008-03-06  Bruno Haible  <bruno@clisp.org>
15639
15640         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
15641         email address.
15642         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15643
15644 2008-03-06  Bruno Haible  <bruno@clisp.org>
15645
15646         * users.txt: Add libgnupdf.
15647
15648 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15649
15650         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
15651         (Header File Substitutes, Function Substitutes,
15652         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
15653         (Build robot for gnulib): Fix typo.
15654
15655 2008-03-06  Bruno Haible  <bruno@clisp.org>
15656
15657         * doc/gnulib-tool.texi (VCS Issues): Small updates.
15658         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15659
15660 2008-03-06  Bruno Haible  <bruno@clisp.org>
15661
15662         * doc/func.texi: New file, extracted from doc/gnulib.texi.
15663         * doc/gnulib.texi: Include it.
15664
15665 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15666
15667         * modules/func (License): Change license to unlimited; there was
15668         no LGPL parts in the module anyway.
15669
15670 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15671
15672         * modules/__func__: Renamed to modules/func.
15673         * modules/__func__-tests: Renamed to modules/func-tests.
15674         * tests/test-__func__.c: Renamed to tests/test-func.c.
15675         * m4/__func__.m4: Renamed to m4/func.m4.
15676         * doc/gnulib.texi (__func__): Section renamed to func.
15677         Suggested by Eric Blake <ebb9@byu.net>.
15678
15679 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15680
15681         * doc/gnulib.texi (__func__): Use C99 terminology when talking
15682         about __func__.  Make example self-contained.  Suggested by Eric
15683         Blake <ebb9@byu.net>.
15684
15685         * tests/test-__func__.c (main): Avoid extraneous () around __func.
15686         Suggested by Eric Blake <ebb9@byu.net>.
15687
15688 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15689
15690         * modules/__func__: New file.
15691         * modules/__func__-tests: New file.
15692         * tests/test-__func__.c: New file.
15693         * m4/__func__.m4: New file.
15694         * doc/gnulib.texi (__func__): Document __func__ module.
15695
15696 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15697
15698         * modules/byteswap (License): Re-license as LGPLv2+.
15699
15700 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15701
15702         * doc/Makefile: Add pdf target.
15703
15704 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15705
15706         * modules/inline (License): Use 'unlimited', since there are only
15707         *.m4 files in this module.
15708
15709 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15710             Bruno Haible  <bruno@clisp.org>
15711
15712         Add support for HP C 7.1 on OpenVMS 8.3.
15713         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
15714
15715 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15716
15717         Update VMS specifics.
15718         * lib/getopt.c [VMS]: Remove include of unixlib.h.
15719
15720 2008-03-02  Jim Meyering  <meyering@redhat.com>
15721
15722         Remove the last dependency on the "free" module.
15723         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
15724         Reported by Bob Proulx.
15725
15726         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
15727
15728         Remove useless "if" tests before free.  Deprecate "free" module.
15729         * doc/posix-functions/free.texi: Mention that this
15730         module is no longer useful.
15731         * modules/free (Notice): Say this module is obsolete.
15732         * modules/readutmp (Depends-on): Remove free.
15733         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
15734         * lib/putenv.c (putenv): Likewise.
15735         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
15736         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
15737         * tests/test-c-strcasestr.c (main): Likewise.
15738         * tests/test-c-strstr.c (main): Likewise.
15739         * tests/test-mbscasestr1.c (main): Likewise.
15740         * tests/test-mbscasestr2.c (main): Likewise.
15741         * tests/test-mbsstr1.c (main): Likewise.
15742         * tests/test-mbsstr2.c (main): Likewise.
15743         * tests/test-memmem.c (main): Likewise.
15744         * tests/test-strcasestr.c (main): Likewise.
15745         * tests/test-striconv.c (main): Likewise.
15746         * tests/test-striconveh.c (main): Likewise.
15747         * tests/test-striconveha.c (main): Likewise.
15748         * tests/test-strstr.c (main): Likewise.
15749
15750         * build-aux/git-version-gen: Adjust a comment and the Usage string.
15751
15752         bootstrap: sync from coreutils again
15753         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
15754
15755 2008-03-01  Jim Meyering  <meyering@redhat.com>
15756
15757         bootstrap: sync from coreutils
15758         * build-aux/bootstrap (update_po_files): Copy a .po file into place
15759         also when the target doesn't exist.
15760
15761 2008-03-01  Eric Blake  <ebb9@byu.net>
15762
15763         Fix bugs in last patch.
15764         * lib/memchr2.c (memchr2): Fix typo.
15765         * tests/test-memchr2.c: Test previous bug, and don't use GNU
15766         extension.
15767         Reported by Bruce Korb.
15768
15769         New module 'memchr2'.
15770         * modules/memchr2: New file.
15771         * modules/memchr2-tests: Likewise.
15772         * lib/memchr2.h: Likewise.
15773         * lib/memchr2.c: Likewise, based on memchr.c.
15774         * tests/test-memchr2.c: New test.
15775         * MODULES.html.sh (String handling): Add memchr2.
15776
15777 2008-02-29  Bruno Haible  <bruno@clisp.org>
15778
15779         * modules/freadseek-tests: New file.
15780         * tests/test-freadseek.sh: New file.
15781         * tests/test-freadseek.c: New file.
15782
15783         New module 'freadseek'.
15784         * modules/freadseek: New file.
15785         * lib/freadseek.h: New file.
15786         * lib/freadseek.c: New file.
15787         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
15788
15789 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15790
15791         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
15792         wydawca.
15793
15794         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
15795         program_invocation_name and program_invocation_short_name are
15796         present.
15797
15798 2008-02-28  Bruno Haible  <bruno@clisp.org>
15799
15800         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
15801         * tests/test-freadptr.sh: Also test non-seekable stdin.
15802
15803 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
15804
15805         * build-aux/bootstrap (source_base, m4_base)
15806         (doc_base, tests_base): New variables.
15807         (gnulib_tool_options): Do not hardcode base directories, use
15808         the above variables instead.
15809
15810 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
15811
15812         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
15813
15814 2008-02-28  Bruno Haible  <bruno@clisp.org>
15815
15816         * modules/freadptr-tests: New file.
15817         * tests/test-freadptr.sh: New file.
15818         * tests/test-freadptr.c: New file.
15819
15820         New module 'freadptr'.
15821         * modules/freadptr: New file.
15822         * lib/freadptr.h: New file.
15823         * lib/freadptr.c: New file.
15824         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
15825
15826 2008-02-26  Karl Berry  <karl@freefriends.org>
15827
15828         Sync from Libtool:
15829         * libltdl/argz.c (argz_add, argz_count): New functions.
15830         * libltdl/argz.in.h: Declare them.
15831         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
15832
15833 2008-02-22  Bruno Haible  <bruno@clisp.org>
15834
15835         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
15836         is a pointer type.  Needed for HP-UX 10.
15837         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
15838         * doc/posix-functions/gmtime_r.texi: Likewise.
15839         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15840
15841 2008-02-24  Bruno Haible  <bruno@clisp.org>
15842
15843         * modules/environ-tests: New file.
15844         * tests/test-environ.c: New file.
15845
15846         New module 'environ'.
15847         * modules/environ: New file.
15848         * lib/unistd.in.h (environ): New declaration.
15849         * m4/environ.m4: New file.
15850         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
15851         after use.
15852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
15853         HAVE_DECL_ENVIRON.
15854         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
15855         HAVE_DECL_ENVIRON.
15856         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
15857         wrong claim that 'environ' is missing on some systems.
15858         * modules/execute (Depends-on): Add environ.
15859         * lib/execute.c (environ): Remove fallback declaration.
15860         * modules/pipe (Depends-on): Add environ.
15861         * lib/pipe.c (environ): Remove fallback declaration.
15862         * modules/setenv (Depends-on): Add environ.
15863         * lib/setenv.c (environ): Remove fallback declaration.
15864         * modules/unsetenv (Depends-on): Add environ.
15865         * lib/unsetenv.c (environ): Remove fallback declaration.
15866         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
15867         m4/environ.m4.
15868         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
15869         (gl_PREREQ_UNSETENV): Likewise.
15870
15871 2008-02-24  Bruno Haible  <bruno@clisp.org>
15872
15873         * doc/posix-functions/environ.texi: Document the MacOS X problem.
15874
15875 2008-02-20  Bob Proulx  <bob@proulx.com>
15876
15877         Enable use of older two part flavor 'git describe'.
15878         * build-aux/git-version-gen: If using the older two part flavor of
15879         git version then recreate the third part now present in the
15880         newer three part flavor of git describe.
15881
15882 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
15883
15884         * lib/fts.c (fts_build): Typo correction to comment.
15885
15886 2008-02-17  Bruno Haible  <bruno@clisp.org>
15887
15888         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
15889         generating no-op conflicts.
15890
15891 2008-02-17  Bruno Haible  <bruno@clisp.org>
15892
15893         Speed up by 10%.
15894         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
15895         result_entries, rather than an index-based loop.
15896
15897 2008-02-17  Bruno Haible  <bruno@clisp.org>
15898
15899         Speed up by 25%.
15900         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
15901         'hashcode_cached'.
15902         (entry_create): New function.
15903         (entry_hashcode): Use the cached hashcode if possible.
15904         (read_changelog_file, try_split_merged_entry): Use entry_create.
15905
15906 2008-02-17  Bruno Haible  <bruno@clisp.org>
15907
15908         Speed up from O(n^2) to O(n) for long ChangeLog files.
15909         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
15910         (read_changelog_file): Change implementation of entries_reversed list
15911         to rbtreehash.
15912         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
15913
15914 2008-02-17  Bruno Haible  <bruno@clisp.org>
15915
15916         New option --split-merged-entry.
15917         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
15918         (find_paragraph_end, try_split_merged_entry): New functions.
15919         (long_options): Add option --split-merged-entry.
15920         (usage): Document option --split-merged-entry.
15921         (main): Implement option --split-merged-entry.
15922         Reported by Eric Blake.
15923
15924 2008-02-17  Bruno Haible  <bruno@clisp.org>
15925
15926         * lib/git-merge-changelog.c: Include c-strstr.h.
15927         (main): Support the "git pull --rebase" situation.
15928         * modules/git-merge-changelog (Depends-on): Add c-strstr.
15929         Reported by Eric Blake.
15930
15931 2008-02-16  Eric Blake  <ebb9@byu.net>
15932
15933         Avoid doubling \ in common case of "c-maybe" quoting style.
15934         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
15935         eliding outer quotes.
15936         * lib/quotearg.h: Document this.
15937         * tests/test-quotearg.c (result_strings, inputs, results_g)
15938         (flag_results, locale_results): Test it by adding a new string to
15939         each test group.
15940         (compare_strings): Test new string.
15941
15942 2008-02-13  Eric Blake  <ebb9@byu.net>
15943
15944         Avoid trigraph quoting in default output.
15945         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
15946         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
15947         unless explicitly requested.
15948         * tests/test-quotearg.c (flag_results, main): Add additional tests.
15949
15950 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
15951
15952         Don't rely on signed integer overflowing to negative value.
15953         * lib/getugroups.c (getugroups): Include <limits.h>.
15954         Instead, compare against INT_MAX, and increment only if the test passes.
15955
15956 2008-02-13  Jim Meyering  <meyering@redhat.com>
15957         and Eric Blake  <ebb9@byu.net>
15958
15959         Avoid shadowing warning and compile errors on Linux.
15960         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
15961         forwarding macros on Linux.
15962         (dcgettext): Define a stub, for Linux.
15963         (results_g, main): Avoid warnings.
15964
15965 2008-02-12  Eric Blake  <ebb9@byu.net>
15966
15967         Silence warning in last patch.
15968         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
15969
15970         Quotearg part 4: add tests, fix c-maybe colon quoting.
15971         * lib/quotearg.h: Improve documentation.
15972         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
15973         escapes when adding outer quotes.  When quoting trigraphs, use
15974         valid C notation.  When quoting NUL, omit extra characters if next
15975         character is not digit.  Alter prototype.
15976         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
15977         callers.
15978         * modules/quotearg-tests: New module.
15979         * tests/test-quotearg.c: New test.
15980
15981 2008-02-07  Eric Blake  <ebb9@byu.net>
15982
15983         Quotearg part 3: add flag to control outer quote elision.
15984         * lib/quotearg.h (c_maybe_quoting_style): New style.
15985         (enum quoting_flags): Better documentation of flags.
15986         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
15987         c-maybe style.
15988         (quotearg_buffer_restyled): Handle new flag to elide outer
15989         quotes.
15990
15991         Quotearg part 2: add flag that can control NUL elision.
15992         * lib/quotearg.h (set_quoting_flags): New prototype.
15993         * lib/quotearg.c (struct quoting_options): Add flag field.
15994         (set_quoting_flags): New function.
15995         (quotearg_buffer_restyled): Add flags parameter.
15996         (quotearg_alloc_mem): Set the flag if length cannot be returned.
15997         (quotearg_n_options): Set the flag, since length cannot be
15998         returned.
15999         (quoting_options_from_style): Default flags correctly.
16000
16001         Quotearg part 1: more wrappers, restore quotearg_char state.
16002         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
16003         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
16004         (quotearg_colon_mem): New wrappers.
16005         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
16006         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
16007         functions.
16008         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
16009         (quotearg_colon_mem): New functions.
16010
16011 2008-02-11  Bruno Haible  <bruno@clisp.org>
16012
16013         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
16014         library in the current directory: it does not work with parallel make.
16015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16016
16017 2008-02-11  Bruno Haible  <bruno@clisp.org>
16018
16019         * .gitattributes: New file.
16020
16021 2008-02-11  Jim Meyering  <meyering@redhat.com>
16022
16023         useless-if-before-free: Fix reversed exit values.
16024         * build-aux/useless-if-before-free: Use correct values
16025         for EXIT_MATCH and EXIT_NO_MATCH.
16026
16027         * build-aux/useless-if-before-free: Close stdout carefully.
16028
16029 2008-02-10  Bruno Haible  <bruno@clisp.org>
16030
16031         New module 'git-merge-changelog'.
16032         * modules/git-merge-changelog: New file.
16033         * lib/git-merge-changelog.c: New file.
16034
16035 2008-02-10  Jim Meyering  <meyering@redhat.com>
16036
16037         useless-if-before-free: New option: --list (-l).
16038
16039         useless-if-before-free: Don't exit immediately upon open failure.
16040         * build-aux/useless-if-before-free: Exit 2 for errors.
16041         Upon failure to open a file, don't exit immediately.
16042         Rather, just warn and continue with any remaining files.
16043
16044 2008-02-10  Bruno Haible  <bruno@clisp.org>
16045
16046         New abstract list operation 'node_set_value'.
16047         * lib/gl_list.h (gl_list_node_set_value): New function.
16048         (struct gl_list_implementation): New field node_set_value.
16049         * lib/gl_list.c (gl_list_node_set_value): New function.
16050         * lib/gl_array_list.c (gl_array_node_set_value): New function.
16051         (gl_array_list_implementation): Update.
16052         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
16053         (gl_carray_list_implementation): Update.
16054         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
16055         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
16056         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
16057         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
16058         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
16059         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
16060         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
16061         Update.
16062         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
16063         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
16064         (gl_sublist_list_implementation): Update.
16065
16066 2008-02-10  Bruno Haible  <bruno@clisp.org>
16067
16068         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
16069         Needed when ELEMENT is #defined to 'some_type *'.
16070
16071 2008-02-10  Jim Meyering  <meyering@redhat.com>
16072
16073         New script and module: useless-if-before-free
16074         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
16075         * build-aux/useless-if-before-free: New file.
16076         * modules/useless-if-before-free: New file.
16077
16078         * build-aux/gitlog-to-changelog: Use committer date, not author date.
16079
16080         xstrtol_error: Fix typo.
16081         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
16082         s/exit_failure/exit_status/.
16083
16084 2008-02-09  Jim Meyering  <meyering@redhat.com>
16085
16086         New script and module: gitlog-to-changelog
16087         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
16088         * modules/gitlog-to-changelog: New file.
16089         * build-aux/gitlog-to-changelog: New file.
16090
16091 2008-02-08  Jim Meyering  <meyering@redhat.com>
16092
16093         Avoid two "parameter unused" warnings.
16094         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16095         Mark "st" as used.
16096
16097         Use "git COMMAND", not "git-COMMAND".
16098         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
16099         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
16100         * build-aux/git-version-gen: Use "git status", not "git-status".
16101
16102 2008-02-07  Bruno Haible  <bruno@clisp.org>
16103
16104         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
16105         Avoids a crash on Windows Vista.
16106         Reported by Adam Strzelecki <ono@java.pl> via
16107         Simon Josefsson <simon@josefsson.org>.
16108
16109 2008-02-06  Bruno Haible  <bruno@clisp.org>
16110
16111         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
16112         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
16113         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
16114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
16115         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16117         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
16118         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
16119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16126         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
16127         left-adjust flag.
16128         * tests/test-snprintf-posix.h (test_function): Likewise.
16129         * tests/test-sprintf-posix.h (test_function): Likewise.
16130         * tests/test-vasprintf-posix.c (test_function): Likewise.
16131         * doc/posix-functions/fprintf.texi: Update.
16132         * doc/posix-functions/printf.texi: Update.
16133         * doc/posix-functions/snprintf.texi: Update.
16134         * doc/posix-functions/sprintf.texi: Update.
16135         * doc/posix-functions/vfprintf.texi: Update.
16136         * doc/posix-functions/vprintf.texi: Update.
16137         * doc/posix-functions/vsnprintf.texi: Update.
16138         * doc/posix-functions/vsprintf.texi: Update.
16139         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16140
16141 2008-02-06  Bruno Haible  <bruno@clisp.org>
16142
16143         Fix bug introduced on 2008-01-26.
16144         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
16145
16146 2008-02-06  Bruno Haible  <bruno@clisp.org>
16147
16148         Fix bug introduced on 2007-06-10.
16149         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
16150         !NEED_PRINTF_FLAG_ZERO.
16151
16152 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
16153
16154         getloadavg: use libperfstat on AIX5
16155         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
16156
16157 2008-02-03  Bruno Haible  <bruno@clisp.org>
16158
16159         * lib/diffseq.h: Add comments about required #includes.
16160         Reported by Michael Biggs <gnulib@doubleplum.net>.
16161
16162 2008-02-01  Bruno Haible  <bruno@clisp.org>
16163
16164         * users.txt: Add gnuit.
16165
16166 2008-01-31  Bruno Haible  <bruno@clisp.org>
16167
16168         * lib/md4.c (set_uint32): Mark as inline.
16169         * lib/md5.c (set_uint32): Likewise.
16170         * lib/sha1.c (set_uint32): Likewise.
16171         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
16172         * m4/md5.m4 (gl_MD5): Likewise.
16173         * m4/sha1.m4 (gl_SHA1): Likewise.
16174
16175 2008-01-31  Jim Meyering  <meyering@redhat.com>
16176
16177         Use "sizeof VAR", rather than a literal "4".
16178         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
16179         * lib/md4.c (md4_read_ctx): Likewise.
16180         * lib/sha1.c (sha1_read_ctx): Likewise.
16181
16182 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16183
16184         * tests/test-sha1.c: New file, based on test-md5.c.
16185
16186         * modules/crypto/sha1-tests: New file.
16187
16188 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16189
16190         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
16191
16192 2008-01-31  Jim Meyering  <meyering@redhat.com>
16193
16194         Prefer "sizeof v" over the equivalent "4".
16195         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
16196         * lib/md5.c (set_uint32): Likewise.
16197         * lib/sha1.c (set_uint32): Likewise.
16198
16199 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16200
16201         * lib/sha1.c (set_uint32): Mark function as static.
16202
16203 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16204
16205         md2: clarify comments to say that alignment is not required.
16206         * lib/md2.h: Remove warning about alignment in comment.
16207         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
16208         never been required.
16209
16210 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16211
16212         md4: adapt alignment constraint fix from sha1.
16213         * lib/md4.c (set_uint32): New function, from sha1.c
16214         (md4_read_ctx): Use it.
16215         (md4_finish_ctx): Doc fix.
16216         * lib/md4.h: Doc fix.
16217
16218 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16219
16220         md5: adapt alignment constraint fix from sha1.
16221         * lib/md5.c (set_uint32): New function, from sha1.c
16222         (md5_read_ctx): Use it.
16223         (md5_finish_ctx): Doc fix.
16224         * lib/md5.h: Doc fix.
16225
16226 2008-01-30  Peter Palfrader  <weasel@debian.org>
16227
16228         sha1: remove the result buffer alignment constraint
16229         * lib/sha1.c (set_uint32): New function.
16230         (sha1_read_ctx): Rewrite to remove the result buffer alignment
16231         constraint.
16232         (sha1_finish_ctx): Remove comment warning about alignment constraint.
16233         * lib/sha1.h: Likewise.
16234
16235 2008-01-30  Andreas Schwab  <schwab@suse.de>
16236             Bruno Haible  <bruno@clisp.org>
16237
16238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
16239         correct definition of LDBL_MIN_EXP.
16240
16241 2008-01-30  Karl Berry  <karl@gnu.org>
16242
16243         * config/srclist-update: try to preserve x bit on updates.
16244         * config/srclistvars.sh: update for karl.
16245
16246 2008-01-29  Jim Meyering  <meyering@redhat.com>
16247
16248         vasnprintf.c: Avoid warning about unused label
16249         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
16250         "overflow" label definition and associated code with the
16251         same cpp condition that guards the sole use of that label.
16252
16253 2008-01-26  Bruno Haible  <bruno@clisp.org>
16254
16255         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
16256         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
16257         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
16258         * lib/isnanl-nolibm.h (isnanl): Likewise.
16259         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16260
16261 2008-01-26  Bruno Haible  <bruno@clisp.org>
16262
16263         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
16264         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
16265
16266 2008-01-26  Bruno Haible  <bruno@clisp.org>
16267
16268         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
16269         GCC >= 4.0 built-in.
16270         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
16271
16272 2008-01-26  Bruno Haible  <bruno@clisp.org>
16273
16274         Rename isnan, applicable to 'double' only, to isnand.
16275         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
16276         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
16277         (configure.ac): Update.
16278         (Include): Replace "isnan.h" with "isnand.h".
16279         * m4/isnand.m4: Renamed from m4/isnan.m4.
16280         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
16281         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
16282         instead of isnan.c.
16283         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
16284         instead of HAVE_ISNAN_IN_LIBC.
16285         (isnand): Renamed from isnan.
16286         * lib/isnand.c: New file.
16287         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
16288         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
16289         (Makefile.am): Update.
16290         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
16291         Include isnand.h instead of isnan.h.
16292         (main): Test isnand instead of isnan.
16293         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
16294         isnan-nolibm.
16295         * modules/frexp (Depends-on): Likewise.
16296         * modules/frexp-tests (Depends-on): Likewise.
16297         * modules/frexp-nolibm (Depends-on): Likewise.
16298         * modules/frexp-nolibm-tests (Depends-on): Likewise.
16299         * modules/isfinite (Depends-on): Likewise.
16300         * modules/round-tests (Depends-on): Likewise.
16301         * modules/signbit (Depends-on): Likewise.
16302         * modules/signbit-tests (Depends-on): Likewise.
16303         * modules/snprintf-posix (Depends-on): Likewise.
16304         * modules/sprintf-posix (Depends-on): Likewise.
16305         * modules/trunc-tests (Depends-on): Likewise.
16306         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16311         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16313         * modules/vasnprintf-posix (Depends-on): Likewise.
16314         * modules/vasprintf-posix (Depends-on): Likewise.
16315         * modules/vfprintf-posix (Depends-on): Likewise.
16316         * modules/vsnprintf-posix (Depends-on): Likewise.
16317         * modules/vsprintf-posix (Depends-on): Likewise.
16318         * lib/frexp.c: Include isnand.h instead of isnan.h.
16319         (ISNAN): Set to isnand instead of isnan.
16320         * lib/isfinite.c: Include isnand.h instead of isnan.h.
16321         (gl_isfinited): Use isnand instead of isnan.
16322         * lib/signbitd.c: Include isnand.h instead of isnan.h.
16323         (gl_signbitd): Use isnand instead of isnan.
16324         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
16325         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
16326         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
16327         (main): Use isnand instead of isnan.
16328         * tests/test-round1.c: Include isnand.h.
16329         (main): Use isnand instead of isnan.
16330         * tests/test-round2.c: Include isnand.h instead of isnan.h.
16331         (ISNAN): Set to isnand instead of isnan.
16332         * tests/test-trunc1.c: Include isnand.h.
16333         (main): Use isnand instead of isnan.
16334         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
16335         (equal): Use isnand instead of isnan.
16336         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
16337         isnand-nolibm.
16338         * NEWS: Mention the change.
16339
16340 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
16341             Bruno Haible  <bruno@clisp.org>
16342
16343         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
16344         the GCC builtins for signbits are present and set
16345         REPLACE_SIGNBIT_USING_GCC if so.
16346         * lib/math.in.h (signbit): Define using GCC builtins if
16347         REPLACE_SIGNBIT_USING_GCC is set.
16348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
16349         REPLACE_SIGNBIT_USING_GCC.
16350         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
16351
16352 2008-01-25  Jim Meyering  <meyering@redhat.com>
16353
16354         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
16355         * lib/poll.c: Include <config.h>, not "config.h".
16356         * tests/test-getaddrinfo.c: Likewise.
16357
16358 2008-01-25  Simon Josefsson  <simon@josefsson.org>
16359
16360         * modules/sockets-tests: New file.
16361
16362 2008-01-24  Simon Josefsson  <simon@josefsson.org>
16363
16364         * modules/sockets: New module, can be used to call WSA_Startup and
16365         WSA_Cleanup when needed.
16366
16367         * lib/sockets.h, lib/sockets.c: New files.
16368
16369         * m4/sockets.m4: New file.
16370
16371         * tests/test-sockets.c: New file.
16372
16373 2008-01-19  Bruno Haible  <bruno@clisp.org>
16374
16375         * doc/posix-headers: Renamed from doc/headers.
16376         * doc/posix-functions: Renamed from doc/functions.
16377         * doc/gnulib.texi: Update.
16378
16379 2008-01-19  Bruno Haible  <bruno@clisp.org>
16380
16381         * doc/glibc-functions/strcasestr.texi: Include contents of
16382         doc/functions/strcasestr.texi, fixing the list of platforms.
16383         * doc/functions/strcasestr.texi: Remove file.
16384
16385 2008-01-19  Bruno Haible  <bruno@clisp.org>
16386
16387         * doc/glibc-functions/memmem.texi: Include contents of
16388         doc/functions/memmem.texi.
16389         * doc/functions/memmem.texi: Remove file.
16390
16391 2008-01-18  Bruno Haible  <bruno@clisp.org>
16392
16393         * doc/glibc-functions/*.texi: New files.
16394         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
16395         to use the new files.
16396
16397 2008-01-17  Bruno Haible  <bruno@clisp.org>
16398
16399         * tests/test-gethostname.c (main): Fix printf statement.
16400
16401 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16402
16403         * modules/gethostname-tests: New file.
16404
16405         * tests/test-gethostname.c: New file.
16406
16407 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16408
16409         * lib/gethostname.c: Include string.h unconditionally, strncpy is
16410         used by the UNAME case.  Reported by Bruno Haible
16411         <bruno@clisp.org>.
16412
16413 2008-01-17  Eric Blake  <ebb9@byu.net>
16414
16415         Convert c-strcasestr to be more efficient.
16416         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
16417         (Depends-on): Add c-strcase, remove malloca, strnlen.
16418         * tests/test-c-strcasestr.c (main): Enhance test.
16419         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
16420
16421 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16422
16423         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
16424         Use it in creating po/Makevars.
16425
16426 2008-01-15  Simon Josefsson  <simon@josefsson.org>
16427
16428         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
16429         Applications that requires it should initialize libgcrypt
16430         manually.
16431
16432 2008-01-16  Simon Josefsson  <simon@josefsson.org>
16433
16434         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
16435
16436 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16437
16438         Fix problem with getdate on mingw32 reported by Simon Josefsson
16439         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
16440         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
16441         tzname", when deciding whether to declare tzname.
16442         * lib/strftime.c (tzname): Likewise.
16443
16444 2008-01-15  Bruno Haible  <bruno@clisp.org>
16445
16446         Work around a MacOS X 10.5 bug in frexpl().
16447         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
16448         * doc/functions/frexpl.texi: Document the bug.
16449         Reported by Elias Pipping <pipping@gentoo.org>.
16450
16451 2008-01-14  Eric Blake  <ebb9@byu.net>
16452
16453         Touch up previous patch.
16454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
16455         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
16456
16457         Convert strcasestr module to use Two-Way algorithm.
16458         * modules/strcasestr-simple: New module, based on the old
16459         strcasestr, but with Two-Way rather than KMP.
16460         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
16461         * lib/string.in.h (rpl_strcasestr): Declare.
16462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
16463         performance.
16464         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
16465         * modules/string (Makefile.am): Support strcasestr.
16466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16467         * modules/strcasestr-tests (Depends-on): Check for alarm.
16468         * tests/test-strcasestr.c: Augment test.
16469         * lib/str-two-way.h: Clean up stray macro.
16470         * NEWS: Document new module.
16471         * MODULES.html.sh (string handling): Likewise.
16472         * doc/functions/strcasestr.texi: New file.
16473         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
16474         here, since it is not a POSIX function.
16475
16476 2008-01-14  Colin Watson  <cjwatson@debian.org>
16477             Bruno Haible  <bruno@clisp.org>
16478
16479         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
16480         works fine; if not, set REPLACE_STRSIGNAL.
16481         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
16482         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16483         REPLACE_STRSIGNAL.
16484         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
16485         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
16486         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
16487
16488 2008-01-14  Bruno Haible  <bruno@clisp.org>
16489
16490         * modules/strsignal (Include): Change to <string.h>.
16491
16492 2008-01-14  Colin Watson  <cjwatson@debian.org>
16493
16494         * modules/argp (Notice): Add a notice recommending to change
16495         XGETTEXT_OPTIONS.
16496         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
16497
16498 2008-01-13  Colin Watson  <cjwatson@debian.org>
16499
16500         * modules/strsignal-tests: New file.
16501         * tests/test-strsignal.c: New file.
16502
16503         * lib/strsignal.c: New file, from glibc with modifications.
16504         * lib/siglist.h: New file, from glibc with modifications.
16505         * lib/string.in.h (strsignal): New declaration.
16506         * m4/strsignal.m4: New file.
16507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16508         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
16509         * modules/strsignal: New file.
16510         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
16511         HAVE_DECL_STRSIGNAL.
16512
16513 2008-01-13  Bruno Haible  <bruno@clisp.org>
16514
16515         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
16516         locale encoding is not ASCII. Needed for OpenBSD 4.0.
16517         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16518         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16519
16520 2008-01-13  Bruno Haible  <bruno@clisp.org>
16521
16522         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
16523         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
16524         * lib/argp.h (__attribute__): Likewise.
16525         * lib/c-stack.c (__attribute__): Likewise.
16526         * lib/error.h (__attribute__): Likewise.
16527         * lib/fts.c (__attribute__): Likewise.
16528         * lib/openat.h (__attribute__): Likewise.
16529         * lib/stdio.in.h (__attribute__): Likewise.
16530         * lib/string.in.h (__attribute__): Likewise.
16531         * lib/utimens.c (__attribute__): Likewise.
16532         * lib/vasnprintf.h (__attribute__): Likewise.
16533         * lib/xalloc.h (__attribute__): Likewise.
16534         * lib/xprintf.h (__attribute__): Likewise.
16535         * lib/xstrtol.h (__attribute__): Likewise.
16536         * lib/xvasprintf.h (__attribute__): Likewise.
16537
16538 2008-01-12  Bruno Haible  <bruno@clisp.org>
16539
16540         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
16541         * doc/glibc-headers/a.out.texi: New file.
16542         * doc/glibc-headers/aliases.texi: New file.
16543         * doc/glibc-headers/alloca.texi: New file.
16544         * doc/glibc-headers/ar.texi: New file.
16545         * doc/glibc-headers/argp.texi: New file.
16546         * doc/glibc-headers/argz.texi: New file.
16547         * doc/glibc-headers/byteswap.texi: New file.
16548         * doc/glibc-headers/crypt.texi: New file.
16549         * doc/glibc-headers/endian.texi: New file.
16550         * doc/glibc-headers/envz.texi: New file.
16551         * doc/glibc-headers/err.texi: New file.
16552         * doc/glibc-headers/error.texi: New file.
16553         * doc/glibc-headers/execinfo.texi: New file.
16554         * doc/glibc-headers/fpu_control.texi: New file.
16555         * doc/glibc-headers/fstab.texi: New file.
16556         * doc/glibc-headers/fts.texi: New file.
16557         * doc/glibc-headers/getopt.texi: New file.
16558         * doc/glibc-headers/ieee754.texi: New file.
16559         * doc/glibc-headers/ifaddrs.texi: New file.
16560         * doc/glibc-headers/libintl.texi: New file.
16561         * doc/glibc-headers/mcheck.texi: New file.
16562         * doc/glibc-headers/mntent.texi: New file.
16563         * doc/glibc-headers/obstack.texi: New file.
16564         * doc/glibc-headers/paths.texi: New file.
16565         * doc/glibc-headers/printf.texi: New file.
16566         * doc/glibc-headers/pty.texi: New file.
16567         * doc/glibc-headers/resolv.texi: New file.
16568         * doc/glibc-headers/shadow.texi: New file.
16569         * doc/glibc-headers/sysexits.texi: New file.
16570         * doc/glibc-headers/ttyent.texi: New file.
16571
16572 2008-01-12  Jim Meyering  <meyering@redhat.com>
16573
16574         announce-gen: emit Gnulib's git-based version string.
16575         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
16576         New option --gnulib-version=V, where V is expected to be
16577         the output of running git describe in the gnulib directory.
16578         (get_tool_versions): Request feedback on xdelta.  I suspect it's
16579         not useful, and plan to stop publishing an xdelta file with each
16580         coreutils release.
16581
16582         * build-aux/announce-gen: Also check for lzma-compressed files.
16583
16584 2008-01-11  Bruno Haible  <bruno@clisp.org>
16585
16586         * tests/test-memmem.c (main): Increase maximum allowed time.
16587         * tests/test-strstr.c (main): Likewise.
16588
16589 2008-01-11  Bruno Haible  <bruno@clisp.org>
16590
16591         * doc/functions/memmem.texi: Add more precisions about platforms.
16592         * doc/functions/strstr.texi: Likewise.
16593
16594 2008-01-10  Eric Blake  <ebb9@byu.net>
16595
16596         * m4/strstr.m4: Delete cruft from copy-n-paste.
16597         Reported by Bruno Haible.
16598
16599 2008-01-10  Bruno Haible  <bruno@clisp.org>
16600
16601         Make c-strstr rely on strstr.
16602         * lib/c-strstr.c: Don't include str-kmp.h.
16603         (c_strstr): Define in terms of strstr.
16604         * modules/c-strstr (Files): Remove lib/str-kmp.h.
16605         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
16606
16607 2008-01-10  Bruno Haible  <bruno@clisp.org>
16608
16609         * doc/gnulib.texi (String Functions in C Locale): New section.
16610         * doc/c-ctype.texi: New file.
16611         * doc/c-strcase.texi: New file.
16612         * doc/c-strcaseeq.texi: New file.
16613         * doc/c-strcasestr.texi: New file.
16614         * doc/c-strstr.texi: New file.
16615         * doc/c-strtod.texi: New file.
16616         * doc/c-strtold.texi: New file.
16617
16618 2008-01-10  Eric Blake  <ebb9@byu.net>
16619
16620         * lib/relocatable.h: Fix a comment.
16621
16622 2008-01-10  Eric Blake  <ebb9@byu.net>
16623
16624         Share two-way algorithm.
16625         * lib/str-two-way.h: New file, merged from...
16626         * lib/memmem.c: ...here...
16627         * lib/strstr.c: ...and here.
16628         * modules/memmem (Files): Use it.
16629         * modules/strstr (Files): Likewise.
16630
16631         Avoid quadratic strstr implementations.
16632         * lib/strstr.c: New file.
16633         * m4/strstr.m4: Likewise.
16634         * modules/strstr: Likewise.
16635         * modules/strstr-tests: Likewise.
16636         * tests/test-strstr.c: Likewise.
16637         * lib/string.in.h (rpl_strstr): Declare.
16638         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
16639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
16640         * modules/string (Makefile.am): Likewise.
16641         * MODULES.html.sh (string handling): Mention new module.
16642         * doc/functions/strstr.texi (strstr): Document the bug.
16643
16644 2008-01-10  Bruno Haible  <bruno@clisp.org>
16645
16646         * lib/relocatable.h (relocate): State whether result is freshly
16647         allocated or not.
16648         * lib/relocatable.c (relocate): Return a freshly allocated string
16649         instead of a pointer to a privately held string.
16650         Reported by Sylvain Beucler <beuc@gnu.org>.
16651
16652 2008-01-10  Colin Watson  <cjwatson@debian.org>
16653
16654         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
16655         s/S_ISNLK/S_ISLNK/.
16656
16657 2008-01-09  Bruno Haible  <bruno@clisp.org>
16658
16659         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
16660         and other files.
16661         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
16662         if it's only a guess.
16663         * modules/memmem: Simplify by depending on memmem-simple.
16664
16665 2008-01-09  Bruno Haible  <bruno@clisp.org>
16666
16667         Work around OpenBSD 4.0 tdelete() bug.
16668         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
16669         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
16670         macros and don't redefine the enum values.
16671         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
16672         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
16673         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
16674
16675 2008-01-09  Bruno Haible  <bruno@clisp.org>
16676
16677         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
16678         (main): Don't perform the tests if setlocale did not install a UTF-8
16679         locale. Needed on OpenBSD 4.0.
16680         * modules/wcwidth-tests (Depends-on): Add localcharset.
16681
16682 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
16685         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
16686         * NEWS: announce this.
16687         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
16688
16689 2008-01-09  Simon Josefsson  <simon@josefsson.org>
16690         and Eric Blake  <ebb9@byu.net>
16691
16692         Add memmem-simple module.
16693         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
16694         (gl_FUNC_MEMMEM): Separate performance from presence checks.
16695         * modules/memmem-simple: New file.
16696         * modules/memmem (Description): Tweak.
16697         * MODULES.html.sh (string handling): Mention new module.
16698         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
16699         addressed by memmem-simple.
16700         * NEWS: Document the difference.
16701
16702 2008-01-09  Eric Blake  <ebb9@byu.net>
16703
16704         Give gcc some memmem optimization hints.
16705         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
16706         (strcasestr): Declare as pure.
16707         * modules/memmem (Maintainer): Claim my implementation.
16708
16709 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16710
16711         Support AIX 6.1 and higher.
16712         * build-aux/config.libpath: Likewise.
16713         * build-aux/config.rpath: Likewise.
16714
16715 2008-01-08  Jim Meyering  <meyering@redhat.com>
16716             Bruno Haible  <bruno@clisp.org>
16717
16718         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
16719         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
16720         Reported by Peter Fales in
16721         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
16722
16723 2008-01-08  Bruno Haible  <bruno@clisp.org>
16724
16725         * modules/unictype/category-of (Depends-on): Add
16726         unictype/category-none.
16727         * modules/unictype/category-and-tests (Depends-on): Add
16728         unictype/category-{L,N,Lu,Nd}.
16729         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
16730         * modules/unictype/category-or-tests (Depends-on): Add
16731         unictype/category-{L,N}.
16732         * modules/unictype/category-name-tests (Depends-on): Add
16733         unictype/category-{Z,Nl}.
16734         Reported by Simon Josefsson.
16735
16736 2008-01-08  Bruno Haible  <bruno@clisp.org>
16737
16738         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
16739         convention better.
16740         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
16741         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
16742         Reported by Peter Miller <millerp@canb.auug.org.au>.
16743
16744 2008-01-08  Eric Blake  <ebb9@byu.net>
16745
16746         Rewrite memmem to guarantee linear complexity without malloc.
16747         * lib/memmem.c (memmem): Use Two-Way rather than
16748         Knuth-Morris-Pratt, to allow O(1) space usage.
16749         (critical_factorization, two_way_short_needle)
16750         (two_way_long_needle): New functions.
16751         (knuth_morris_pratt): Delete.
16752         * modules/memmem (Depends-on): No longer need malloca or stdbool.
16753         Add stdint.
16754         * tests/test-memmem.c (main): Add tests for periodic needle and
16755         sublinear performance.
16756         * doc/functions/memmem.texi (memmem): Document other deficiencies
16757         in cygwin and older glibc.
16758
16759 2008-01-08  Bruno Haible  <bruno@clisp.org>
16760
16761         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
16762         augmentation.
16763
16764 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
16765
16766         Add a configure time option: --disable-acl.
16767         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
16768         AC_ARG_ENABLE(acl).
16769
16770 2008-01-06  Simon Josefsson  <simon@josefsson.org>
16771
16772         * tests/test-localename.c: Don't include obsolete "setenv.h".
16773
16774         * modules/localename-tests (Depends-on): Need unsetenv.
16775
16776 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16777
16778         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
16779
16780 2008-01-06  Colin Watson  <cjwatson@debian.org>
16781
16782         * users.txt: Add man-db.
16783
16784 2008-01-07  Bruno Haible  <bruno@clisp.org>
16785
16786         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
16787         previous section name.
16788
16789 2008-01-07  Bruno Haible  <bruno@clisp.org>
16790
16791         * lib/progname.c (set_program_name): Don't strip off a leading
16792         "lt-" prefix outside a .libs directory.
16793         Suggested by Paul Eggert.
16794
16795 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
16796             Bruno Haible  <bruno@clisp.org>
16797
16798         Improve memory cleanup in 'relocatable' module.
16799         * lib/relocatable.h (compute_curr_prefix): Change return type to
16800         'char *'.
16801         * lib/relocatable.c (compute_curr_prefix): Change return type to
16802         'char *'. Free curr_installdir after use.
16803         (relocate): Free curr_prefix_better after use.
16804         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
16805
16806 2008-01-01  Bruno Haible  <bruno@clisp.org>
16807
16808         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
16809         failure on older glibc systems.
16810         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16811
16812 2008-01-05  Eric Blake  <ebb9@byu.net>
16813
16814         Avoid quadratic system memmem.
16815         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
16816         Reported by Ralf Wildenhues.
16817
16818         Fix memmem test for mingw.
16819         * modules/memmem-tests (configure.ac): Check for alarm.
16820         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
16821         it.
16822         * doc/functions/memmem.texi: New file.
16823         * doc/gnulib.texi (Function Substitutes): Add memmem.
16824         Reported by Bruno Haible.
16825
16826 2008-01-04  Bruno Haible  <bruno@clisp.org>
16827
16828         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
16829         Require gl_HEADER_STRINGS_H_DEFAULTS, not
16830         gl_HEADER_STRING_H_DEFAULTS.
16831
16832 2008-01-04  Eric Blake  <ebb9@byu.net>
16833
16834         Shorten duration of memmem test.
16835         * tests/test-memmem.c (main): Use alarm to declare failure if test
16836         is taking too long.
16837         Reported by Ralf Wildenhues.
16838
16839 2007-12-21  Simon Josefsson  <simon@josefsson.org>
16840
16841         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
16842         string, needed by strerror.
16843
16844 2008-01-03  Colin Watson  <cjwatson@debian.org>
16845             Bruno Haible  <bruno@clisp.org>
16846
16847         * doc/gnulib-tool.texi (Localization): New section.
16848
16849 2008-01-02  Bruno Haible  <bruno@clisp.org>
16850
16851         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
16852         variables to 'unsigned char *' type.
16853         Reported by Paul Eggert.
16854
16855 2008-01-02  Jim Meyering  <jim@meyering.net>
16856
16857         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
16858
16859 2007-12-31  Jim Meyering  <jim@meyering.net>
16860
16861         Avoid use of private FTS type name.
16862         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
16863
16864 2007-12-30  Karl Berry  <karl@gnu.org>
16865
16866         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
16867         work around defect in Texinfo and/or the standalone Info browser.
16868
16869 2007-12-30  Bruno Haible  <bruno@clisp.org>
16870
16871         Unify 5 copies of the KMP code.
16872         * lib/str-kmp.h: New file.
16873         * lib/c-strcasestr.c: Include str-kmp.h.
16874         (knuth_morris_pratt): Remove function.
16875         (c_strcasestr): Update.
16876         * lib/c-strstr.c: Include str-kmp.h.
16877         (knuth_morris_pratt): Remove function.
16878         (c_strcasestr): Update.
16879         * lib/mbscasestr.c: Include str-kmp.h.
16880         (knuth_morris_pratt_unibyte): Remove function.
16881         * lib/mbsstr.c: Include str-kmp.h.
16882         (knuth_morris_pratt_unibyte): Remove function.
16883         * lib/strcasestr.c: Include str-kmp.h.
16884         (knuth_morris_pratt): Remove function.
16885         (strcasestr): Update.
16886         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
16887         * modules/c-strstr (Files): Likewise.
16888         * modules/mbscasestr (Files): Likewise.
16889         * modules/mbsstr (Files): Likewise.
16890         * modules/strcasestr (Files): Likewise.
16891         Suggested by Paul Eggert.
16892
16893 2007-12-30  Bruno Haible  <bruno@clisp.org>
16894
16895         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
16896         defined.
16897
16898 2007-12-30  Bruno Haible  <bruno@clisp.org>
16899
16900         * lib/xmalloca.h: Include xalloc.h.
16901         (xnmalloca): New macro.
16902
16903 2007-12-30  Bruno Haible  <bruno@clisp.org>
16904
16905         * lib/malloca.h (nmalloca): New macro.
16906         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
16907         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
16908         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
16909         knuth_morris_pratt_multibyte): Likewise.
16910         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
16911         knuth_morris_pratt_multibyte): Likewise.
16912         * lib/memmem.c (knuth_morris_pratt): Likewise.
16913         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
16914
16915 2007-12-25  Bruno Haible  <bruno@clisp.org>
16916
16917         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
16918         * lib/glob.c: Don't include openat.h.
16919         (link_exists2_p): Add back the code that deals with the
16920         !GLOB_ALTDIRFUNC case.
16921         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
16922         let it do the filename concatenation.
16923         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
16924         * modules/glob (Depends-on): Remove openat.
16925
16926 2007-12-31  Bruno Haible  <bruno@clisp.org>
16927
16928         * modules/dirfd (License): Change to LGPLv2+.
16929         Approved by Jim Meyering.
16930
16931 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16932
16933         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
16934         when multiplying M by sizeof (size_t).
16935
16936 2007-12-10  Martin Lambers  <marlam@marlam.de>
16937
16938         Override getpagesize on mingw.
16939         * lib/getpagesize.c: New file.
16940         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
16941         * modules/getpagesize (Files): Add lib/getpagesize.c.
16942         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
16943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16944         REPLACE_GETPAGESIZE.
16945         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
16946
16947 2007-12-25  Bruno Haible  <bruno@clisp.org>
16948
16949         * modules/localcharset (Notice): New field.
16950         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
16951         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16952
16953 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16954             Bruno Haible  <bruno@clisp.org>
16955
16956         Avoid using the syntax symbol() in formatted documentation.
16957         * MODULES.html.sh (func_module): When replacing symbol() with a
16958         hyperlink, remove the parentheses. Show an error if some remain.
16959         Recognize and render the '...' syntax.
16960         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
16961         Rework. Add paragraph about GCC's inlining.
16962         * doc/alloca.texi: Likewise.
16963         * doc/error.texi: Remove parentheses from symbol reference.
16964         * doc/gnulib-intro.texi: Likewise.
16965         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
16966         * modules/fnmatch (Description): Reword to say "the ... function".
16967         * modules/full-read (Description): Likewise.
16968         * modules/full-write (Description): Likewise.
16969         * modules/safe-read (Description): Likewise.
16970         * modules/safe-write (Description): Likewise.
16971         * modules/strchrnul (Description): Likewise.
16972         * modules/trim (Description): Likewise.
16973         * modules/error (Description): Remove parentheses from symbol
16974         references.
16975         * modules/verror (Description): Likewise.
16976         Reported by Karl Berry.
16977
16978 2007-12-25  Bruno Haible  <bruno@clisp.org>
16979
16980         Fixup after 2007-10-16 commit.
16981         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
16982
16983 2007-12-24  Bruno Haible  <bruno@clisp.org>
16984
16985         Make --enable-relocatable work with DESTDIR.
16986         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
16987         to compute installdir from destprog.
16988         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
16989         also set the RELOC_DESTDIR variable.
16990         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16991
16992 2007-12-24  Bruno Haible  <bruno@clisp.org>
16993
16994         Fix link error due to xalloc_die().
16995         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
16996         of xreadlink.
16997         * lib/relocwrapper.c: Update comments.
16998         * build-aux/install-reloc: Remove xreadlink.c from file list.
16999         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
17000         xreadlink.c.
17001         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
17002
17003 2007-12-24  Bruno Haible  <bruno@clisp.org>
17004
17005         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
17006         * lib/setenv.h: Remove file.
17007         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
17008         lib/setenv.h.
17009         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
17010         (Depends-on): Add stdlib.
17011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
17012         gl_FUNC_UNSETENV.
17013         (Include): Replace setenv.h with <stdlib.h>.
17014         * modules/unsetenv: New file.
17015         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
17016         * lib/unsetenv.c: Include <stdlib.h> first.
17017         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
17018         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
17019         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
17020         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
17021         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
17022         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
17024         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
17025         * doc/functions/unsetenv.texi: Update.
17026         * modules/xsetenv (Depends-on): Add unsetenv.
17027         * modules/getdate (Depends-on): Likewise.
17028         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
17029         * lib/xsetenv.c: Don't include setenv.h.
17030         * lib/getdate.y: Likewise.
17031         * lib/relocwrapper.c: Likewise.
17032         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
17033         (Depends-on): Add stdlib.
17034         * NEWS: Mention the changes.
17035         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
17036
17037 2007-12-23  Bruno Haible  <bruno@clisp.org>
17038
17039         * lib/memmem.c (memmem): Use lowercase variable names. Tab
17040         indentation.
17041
17042 2007-12-23  Bruno Haible  <bruno@clisp.org>
17043
17044         * lib/c-strcasestr.c: Add more comments.
17045         * lib/c-strstr.c: Likewise.
17046         * lib/mbscasestr.c: Likewise.
17047         * lib/mbsstr.c: Likewise.
17048         * lib/strcasestr.c: Likewise.
17049         * lib/memmem.c: Likewise.
17050
17051 2007-12-23  Bruno Haible  <bruno@clisp.org>
17052
17053         * tests/test-memmem.c: Include <string.h> first.
17054
17055 2007-12-22  Bruno Haible  <bruno@clisp.org>
17056
17057         * gnulib-tool (func_create_testdir): Change $auxdir while generating
17058         the contents of $testsbase.
17059         Reported by Ralf Wildenhues.
17060
17061 2007-12-22  Bruno Haible  <bruno@clisp.org>
17062
17063         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
17064         two variables local_ldadd_before, local_ldadd_last.
17065
17066 2007-12-20  Eric Blake  <ebb9@byu.net>
17067
17068         Work around circular library issue when cross-compiling.
17069         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
17070         that progname.o does not need to pull in rpl_memcmp.
17071
17072 2007-12-19  Eric Blake  <ebb9@byu.net>
17073
17074         Fix memmem to avoid O(n^2) worst-case complexity.
17075         * lib/memmem.c (knuth_morris_pratt): New function.
17076         (memmem): Use it if first few naive iterations fail.
17077         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
17078         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
17079         * modules/memchr (License): Likewise.
17080         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
17081         malloca.
17082         * tests/test-memmem.c: Rewrite, borrowing ideas from
17083         test-mbsstr1.c; the old version wouldn't even compile!
17084         * modules/memmem-tests: New file.
17085         * lib/string.in.h (rpl_memmem): Add declaration.
17086         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
17087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
17088         REPLACE_MEMMEM.
17089
17090 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17091
17092         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
17093         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
17094         before any system include files, and undef after them all.  This
17095         should fix a problem on VMS reported by John E. Malmberg in
17096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
17097
17098 2007-12-17  Eric Blake  <ebb9@byu.net>
17099
17100         Revert addition of verify, for BSD/OS.
17101         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
17102         can't handle large files, for the sake of obsolete platforms.
17103         * modules/fseeko (Depends-on): Remove verify.
17104         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
17105         * doc/functions/ftello.texi (ftello): Likewise.
17106         * doc/functions/fgetpos.texi (fgetpos): Likewise.
17107         Reported by Larry Jones.
17108
17109 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
17110
17111         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
17112         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
17113
17114 2007-12-17  Jim Meyering  <meyering@redhat.com>
17115
17116         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
17117         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
17118         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
17119         * modules/getcwd (Depends-on): Add openat.
17120         Reported by Petr Salinger.
17121
17122 2007-12-17  Bruno Haible  <bruno@clisp.org>
17123
17124         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
17125         avoid a segmentation fault of the configure test on x86_64 systems.
17126
17127 2007-12-15  Jim Meyering  <meyering@redhat.com>
17128
17129         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
17130
17131 2007-12-13  Eric Blake  <ebb9@byu.net>
17132
17133         Another fseek test.
17134         * tests/test-fseek.c (main): Also test ungetc handling.
17135         * tests/test-fseeko.c (main): Likewise.
17136         * modules/fseeko (Depends-on): Add verify.
17137         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
17138         large.
17139         Reported by Larry Jones.
17140
17141         Fix fseeko on mingw.
17142         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
17143         seek.
17144
17145         Beef up fseek tests.
17146         * tests/test-fseek.c (main): Also test eof handling.
17147         * tests/test-fseeko.c (main): Likewise.
17148         Reported by Larry Jones.
17149
17150 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
17151
17152         Fix fseeko on BSD-based platforms.
17153         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
17154         successful seek.
17155
17156 2007-12-12  Eric Blake  <ebb9@byu.net>
17157
17158         Allow circular dependency of separate libtests.a
17159         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
17160         when use_libtests.
17161
17162 2007-12-11  Eric Blake  <ebb9@byu.net>
17163
17164         Fix bug with -0.0L in previous patch.
17165         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
17166         * tests/test-isnan.c (main): Also test on zeroes.
17167         * tests/test-isnanf.c (main): Likewise.
17168         * tests/test-isnanl.h (main): Likewise.
17169
17170         Detect pseudo-denormals on x86 even when cross-compiling.
17171         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
17172         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
17173         invalid bit patterns that happen to satisfy ==.
17174
17175         Avoid link failures with separate libtests.a.
17176         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
17177         last, to satisfy circular dependencies.
17178
17179 2007-12-11  Eric Blake  <ebb9@byu.net>
17180         and Bruno Haible  <bruno@clisp.org>
17181
17182         Fix OpenBSD 4.0 <float.h> handling of long double.
17183         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
17184         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
17185         * doc/headers/float.texi (float.h): Document OpenBSD bug.
17186
17187 2007-12-11  Jim Meyering  <meyering@redhat.com>
17188
17189         * users.txt: Add libvirt.
17190
17191         Support versions of autoconf prior to 2.59c.
17192         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
17193         if it is not already defined.
17194
17195 2007-12-09  Bruno Haible  <bruno@clisp.org>
17196
17197         Let 'gnulib-tool --import' collect sources needed for the tests in
17198         tests/ rather than in lib/.
17199         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
17200         argument. If true, add rules to generate libtests.a, and put libtests.a
17201         into $(LDADD). Consider source files in subdirectories and set
17202         uses_subdirs.
17203         (func_emit_initmacro_start, func_emit_initmacro_end,
17204         func_emit_initmacro_done): Pass all arguments explicitly.
17205         (func_import): Determine two module lists main_modules,
17206         testsrelated_modules. Determine use_libtests. Determine two variables
17207         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
17208         instead of just sed_transform_lib_file. Determine two variables
17209         main_files and testsrelated_files. Compute 'files' as the union of
17210         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
17211         func_add_or_update. In the generated gnulib-comp.m4, collect the
17212         object files for tests/ in different variables than those for lib/.
17213         Substitute LIBTESTS_LIBDEPS.
17214         (func_create_testdir): Combine the uses_subdirs results from
17215         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
17216
17217 2007-12-09  Bruno Haible  <bruno@clisp.org>
17218
17219         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
17220         the build-aux directory.
17221
17222 2007-12-09  Bruno Haible  <bruno@clisp.org>
17223
17224         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
17225         introduced on 2006-09-09.
17226
17227 2007-12-07  Jim Meyering  <meyering@redhat.com>
17228
17229         Let these macros work also with autoconf-2.59.
17230         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
17231         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
17232         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17233
17234 2007-12-06  Jim Meyering  <meyering@redhat.com>
17235
17236         Avoid a configure-time syntax error in gl_FUNC_ACL.
17237         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
17238         function in each branch, before testing the cache variable.
17239
17240 2007-12-04  Eric Blake  <ebb9@byu.net>
17241
17242         Make scripts executable.
17243         * build-aux/config.guess: Add execute permissions.
17244         * build-aux/config.sub: Likewise.
17245         * build-aux/gendocs.sh: Likewise.
17246
17247         Fix frexp on mingw.
17248         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
17249         cross-compiling.
17250         * doc/functions/frexp.texi (frexp): Document the bug.
17251
17252         Make cygwin fseeko check more reliable.
17253         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
17254         version numbers, rather than unrelated feature check.
17255         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
17256         * doc/functions/ftello.texi (ftello): Likewise.
17257         Reported by Bruno Haible.
17258
17259         * m4/strerror.m4: Bump version number.
17260
17261 2007-12-03  Bruno Haible  <bruno@clisp.org>
17262
17263         * doc/functions/mprotect.texi: Mention the mingw problem.
17264
17265 2007-12-03  Eric Blake  <ebb9@byu.net>
17266
17267         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
17268         REPLACE_STRERROR is initialized before this macro.
17269
17270 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17271
17272         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
17273         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
17274         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
17275         put -lsec in even for programs other than 'ls'.  This fixes a problem
17276         for gettext reported by Bruno Haible in
17277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
17278         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
17279         Add support for Solaris 10.  This isn't efficient, but should get the
17280         job done for now.
17281
17282 2007-12-03  James Youngman  <jay@gnu.org>
17283
17284         * doc/regexprops-generic.texi: change "an close-group" to "a
17285         close-group" and "illegal" to "not allowed".
17286
17287 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17288
17289         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
17290         pr_byname.h. Needed for the rare case when the maintainer has done
17291         "make maintainer-clean" in the source directory and then attempts a
17292         build outside the source directory.
17293         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
17294         scripts_byname.h.
17295
17296 2007-12-02  Martin Lambers <marlam@marlam.de>
17297             Bruno Haible  <bruno@clisp.org>
17298
17299         * lib/getpagesize.h: Remove file.
17300         * lib/unistd.in.h: Include declaration of getpagesize here.
17301         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
17302         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
17303         HAVE_SYS_PARAM_H.
17304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
17305         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17306         * modules/getpagesize (Files): Remove lib/getpagesize.h.
17307         (Depends-on): Add unistd.
17308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17309         (Include): Use <unistd.h> instead of getpagesize.h.
17310         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
17311         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17312         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
17313         gl_GETPAGESIZE invocation, already handled by module dependency.
17314         * lib/pagealign_alloc.c: Don't include getpagesize.h.
17315
17316 2007-12-02  Bruno Haible  <bruno@clisp.org>
17317
17318         * modules/strings-tests: New file.
17319         * tests/test-strings.c: New file.
17320
17321         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
17322         * lib/strings.in.h: New file.
17323         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
17324         * m4/strings_h.m4: New file.
17325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
17326         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
17327         * modules/strings: New file.
17328         * modules/string (Makefile.am): Update.
17329         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
17330         Reported by Karl Berry.
17331
17332 2007-12-01  Eric Blake  <ebb9@byu.net>
17333
17334         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
17335         accomodate fix in cygwin 1.5.25.
17336
17337 2007-12-01  Jim Meyering  <meyering@redhat.com>
17338
17339         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
17340         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
17341         that would inhibit utf8-optimization of a regexp containing line-
17342         or buffer-anchors, e.g., `^', `$'.
17343
17344 2007-11-30  Bruno Haible  <bruno@clisp.org>
17345
17346         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
17347         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
17348         glthread_recursive_lock_init.
17349         * lib/lock.c (glthread_recursive_lock_init)
17350         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
17351         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17352
17353 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17354
17355         New function qset_acl, like set_acl but with syscall semantics.
17356         * lib/acl.h (qset_acl): New decl.
17357         * lib/acl.c (qset_acl): New function.
17358         (set_acl): Use new function.  Use more-consistent diagnostics.
17359
17360 2007-11-28  Jim Meyering  <meyering@redhat.com>
17361
17362         * modules/physmem (License): Change from GPL to LGPLv2+.
17363
17364 2007-11-26  Bruno Haible  <bruno@clisp.org>
17365
17366         * lib/vasnprintf.c (decode_long_double): Don't abort if the
17367         'long double' type has excess precision.
17368         Reported by Jim Meyering in
17369         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
17370
17371 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17372
17373         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
17374         Sync from <http://gnu.org/licenses>.
17375         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
17376         with license text from same location.
17377         * doc/maintain.texi, doc/standards.texi:  Sync from
17378         <http://savannah.gnu.org/projects/gnustandards>.
17379
17380 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
17381         and Jim Meyering  <meyering@redhat.com>
17382
17383         Adjust getdate' grammar to accept a slightly more regular language.
17384         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
17385         Before, the former was rejected.
17386         * lib/getdate.y (digits_to_date_time): New function, factored
17387         out of ...
17388         (number): ...here.  Just call digits_to_date_time.
17389         (hybrid): New non-terminal to handle an <unsigned number,
17390         signed relative offset> sequence consistently.
17391
17392 2007-11-18  Jim Meyering  <meyering@redhat.com>
17393
17394         Pull my changes from coreutils:
17395         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
17396         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
17397         use of $gnulib_tool_option_extras, so that it's separated from the
17398         preceding argument.
17399
17400         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
17401         * build-aux/bootstrap (cp_mark_as_generated): Create any required
17402         parent destination directories before copying a file into place.
17403
17404 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17405
17406         bootstrap: work also with 4-argument variant of AC_INIT
17407         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
17408
17409 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17410
17411         Port test-getaddrinfo to Solaris.
17412         Problem reported by Bruno Haible in
17413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
17414         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
17415         explanation of setting 'hints'.
17416         Don't reject an implementation merely because it returns EAI_SERVICE.
17417         (EAI_SERVICE): Define to 0 if not defined.
17418
17419 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17420
17421         The license of gnu-make and posix-shell is now "GPLed build tool".
17422         * modules/gnu-make (License): Likewise.
17423         * modules/posix-shell (License): Likewise.
17424
17425         New module posix-shell, for determining a POSIX shell
17426         or perhaps something that is close enough to a POSIX shell.
17427         * m4/posix-shell.m4: New file.
17428         * modules/posix-shell: New file.
17429
17430         * MODULES.html.sh: Mention new module.
17431
17432         New module gnu-make, for determining whether we're using GNU Make.
17433         * m4/gnu-make.m4: New file.
17434         * modules/gnu-make: New file.
17435         * MODULES.html.sh: Mention new module.
17436
17437 2007-11-14  Jim Meyering  <meyering@redhat.com>
17438
17439         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
17440         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
17441         use this macro to create a function _definition_.
17442         Remove useless "#undef ARGMATCH_DIE".
17443
17444 2007-11-14  Bruno Haible  <bruno@clisp.org>
17445
17446         * lib/config.charset: Update for OpenBSD 4.1.
17447         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
17448
17449 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
17450
17451         Document 64-bit #if problems in stdint.texi.
17452         * doc/headers/stdint.texi (stdint.h): Mention problems with
17453         64-bit-#if, and how to work around them.
17454
17455         Don't insist on 'long long int' support in the preprocessor.  It
17456         breaks too many things.  For example, PRIdMAX still uses a 'long
17457         long int' format with the latest Sun compiler, even though
17458         HAVE_LONG_LONG_INT isn't defined due to that compiler's
17459         preprocessor problem.  This causes the latest coreutils to dump
17460         core on Solaris 10 sparc with the Sun C compiler.
17461         Instead, fix the 2007-10-16 problem in a different way, by evaluating
17462         the troublesome expressions at configure-time, not at #if-time.
17463         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
17464         preprocessor.
17465         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
17466         compile-time C checks, done at 'configure'-time.
17467         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
17468         * modules/inttypes (Makefile): Substitute the new symbols that
17469         gl_INTTYPES_H now generates.
17470         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
17471
17472 2007-11-12  Bruno Haible  <bruno@clisp.org>
17473
17474         Tests for Unicode character classification functions.
17475
17476         * modules/unictype/bidicategory-byname-tests: New file.
17477         * modules/unictype/bidicategory-name-tests: New file.
17478         * modules/unictype/bidicategory-of-tests: New file.
17479         * modules/unictype/bidicategory-test-tests: New file.
17480         * modules/unictype/block-list-tests: New file.
17481         * modules/unictype/block-of-tests: New file.
17482         * modules/unictype/block-test-tests: New file.
17483         * modules/unictype/category-C-tests: New file.
17484         * modules/unictype/category-Cc-tests: New file.
17485         * modules/unictype/category-Cf-tests: New file.
17486         * modules/unictype/category-Cn-tests: New file.
17487         * modules/unictype/category-Co-tests: New file.
17488         * modules/unictype/category-Cs-tests: New file.
17489         * modules/unictype/category-L-tests: New file.
17490         * modules/unictype/category-Ll-tests: New file.
17491         * modules/unictype/category-Lm-tests: New file.
17492         * modules/unictype/category-Lo-tests: New file.
17493         * modules/unictype/category-Lt-tests: New file.
17494         * modules/unictype/category-Lu-tests: New file.
17495         * modules/unictype/category-M-tests: New file.
17496         * modules/unictype/category-Mc-tests: New file.
17497         * modules/unictype/category-Me-tests: New file.
17498         * modules/unictype/category-Mn-tests: New file.
17499         * modules/unictype/category-N-tests: New file.
17500         * modules/unictype/category-Nd-tests: New file.
17501         * modules/unictype/category-Nl-tests: New file.
17502         * modules/unictype/category-No-tests: New file.
17503         * modules/unictype/category-P-tests: New file.
17504         * modules/unictype/category-Pc-tests: New file.
17505         * modules/unictype/category-Pd-tests: New file.
17506         * modules/unictype/category-Pe-tests: New file.
17507         * modules/unictype/category-Pf-tests: New file.
17508         * modules/unictype/category-Pi-tests: New file.
17509         * modules/unictype/category-Po-tests: New file.
17510         * modules/unictype/category-Ps-tests: New file.
17511         * modules/unictype/category-S-tests: New file.
17512         * modules/unictype/category-Sc-tests: New file.
17513         * modules/unictype/category-Sk-tests: New file.
17514         * modules/unictype/category-Sm-tests: New file.
17515         * modules/unictype/category-So-tests: New file.
17516         * modules/unictype/category-Z-tests: New file.
17517         * modules/unictype/category-Zl-tests: New file.
17518         * modules/unictype/category-Zp-tests: New file.
17519         * modules/unictype/category-Zs-tests: New file.
17520         * modules/unictype/category-and-not-tests: New file.
17521         * modules/unictype/category-and-tests: New file.
17522         * modules/unictype/category-byname-tests: New file.
17523         * modules/unictype/category-name-tests: New file.
17524         * modules/unictype/category-none-tests: New file.
17525         * modules/unictype/category-of-tests: New file.
17526         * modules/unictype/category-or-tests: New file.
17527         * modules/unictype/category-test-withtable-tests: New file.
17528         * modules/unictype/combining-class-tests: New file.
17529         * modules/unictype/ctype-alnum-tests: New file.
17530         * modules/unictype/ctype-alpha-tests: New file.
17531         * modules/unictype/ctype-blank-tests: New file.
17532         * modules/unictype/ctype-cntrl-tests: New file.
17533         * modules/unictype/ctype-digit-tests: New file.
17534         * modules/unictype/ctype-graph-tests: New file.
17535         * modules/unictype/ctype-lower-tests: New file.
17536         * modules/unictype/ctype-print-tests: New file.
17537         * modules/unictype/ctype-punct-tests: New file.
17538         * modules/unictype/ctype-space-tests: New file.
17539         * modules/unictype/ctype-upper-tests: New file.
17540         * modules/unictype/ctype-xdigit-tests: New file.
17541         * modules/unictype/decimal-digit-tests: New file.
17542         * modules/unictype/digit-tests: New file.
17543         * modules/unictype/mirror-tests: New file.
17544         * modules/unictype/numeric-tests: New file.
17545         * modules/unictype/property-alphabetic-tests: New file.
17546         * modules/unictype/property-ascii-hex-digit-tests: New file.
17547         * modules/unictype/property-bidi-arabic-digit-tests: New file.
17548         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
17549         * modules/unictype/property-bidi-block-separator-tests: New file.
17550         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
17551         * modules/unictype/property-bidi-common-separator-tests: New file.
17552         * modules/unictype/property-bidi-control-tests: New file.
17553         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
17554         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
17555         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
17556         * modules/unictype/property-bidi-european-digit-tests: New file.
17557         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
17558         * modules/unictype/property-bidi-left-to-right-tests: New file.
17559         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
17560         * modules/unictype/property-bidi-other-neutral-tests: New file.
17561         * modules/unictype/property-bidi-pdf-tests: New file.
17562         * modules/unictype/property-bidi-segment-separator-tests: New file.
17563         * modules/unictype/property-bidi-whitespace-tests: New file.
17564         * modules/unictype/property-byname-tests: New file.
17565         * modules/unictype/property-combining-tests: New file.
17566         * modules/unictype/property-composite-tests: New file.
17567         * modules/unictype/property-currency-symbol-tests: New file.
17568         * modules/unictype/property-dash-tests: New file.
17569         * modules/unictype/property-decimal-digit-tests: New file.
17570         * modules/unictype/property-default-ignorable-code-point-tests: New file.
17571         * modules/unictype/property-deprecated-tests: New file.
17572         * modules/unictype/property-diacritic-tests: New file.
17573         * modules/unictype/property-extender-tests: New file.
17574         * modules/unictype/property-format-control-tests: New file.
17575         * modules/unictype/property-grapheme-base-tests: New file.
17576         * modules/unictype/property-grapheme-extend-tests: New file.
17577         * modules/unictype/property-grapheme-link-tests: New file.
17578         * modules/unictype/property-hex-digit-tests: New file.
17579         * modules/unictype/property-hyphen-tests: New file.
17580         * modules/unictype/property-id-continue-tests: New file.
17581         * modules/unictype/property-id-start-tests: New file.
17582         * modules/unictype/property-ideographic-tests: New file.
17583         * modules/unictype/property-ids-binary-operator-tests: New file.
17584         * modules/unictype/property-ids-trinary-operator-tests: New file.
17585         * modules/unictype/property-ignorable-control-tests: New file.
17586         * modules/unictype/property-iso-control-tests: New file.
17587         * modules/unictype/property-join-control-tests: New file.
17588         * modules/unictype/property-left-of-pair-tests: New file.
17589         * modules/unictype/property-line-separator-tests: New file.
17590         * modules/unictype/property-logical-order-exception-tests: New file.
17591         * modules/unictype/property-lowercase-tests: New file.
17592         * modules/unictype/property-math-tests: New file.
17593         * modules/unictype/property-non-break-tests: New file.
17594         * modules/unictype/property-not-a-character-tests: New file.
17595         * modules/unictype/property-numeric-tests: New file.
17596         * modules/unictype/property-other-alphabetic-tests: New file.
17597         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
17598         * modules/unictype/property-other-grapheme-extend-tests: New file.
17599         * modules/unictype/property-other-id-continue-tests: New file.
17600         * modules/unictype/property-other-id-start-tests: New file.
17601         * modules/unictype/property-other-lowercase-tests: New file.
17602         * modules/unictype/property-other-math-tests: New file.
17603         * modules/unictype/property-other-uppercase-tests: New file.
17604         * modules/unictype/property-paired-punctuation-tests: New file.
17605         * modules/unictype/property-paragraph-separator-tests: New file.
17606         * modules/unictype/property-pattern-syntax-tests: New file.
17607         * modules/unictype/property-pattern-white-space-tests: New file.
17608         * modules/unictype/property-private-use-tests: New file.
17609         * modules/unictype/property-punctuation-tests: New file.
17610         * modules/unictype/property-quotation-mark-tests: New file.
17611         * modules/unictype/property-radical-tests: New file.
17612         * modules/unictype/property-sentence-terminal-tests: New file.
17613         * modules/unictype/property-soft-dotted-tests: New file.
17614         * modules/unictype/property-space-tests: New file.
17615         * modules/unictype/property-terminal-punctuation-tests: New file.
17616         * modules/unictype/property-test-tests: New file.
17617         * modules/unictype/property-titlecase-tests: New file.
17618         * modules/unictype/property-unassigned-code-value-tests: New file.
17619         * modules/unictype/property-unified-ideograph-tests: New file.
17620         * modules/unictype/property-uppercase-tests: New file.
17621         * modules/unictype/property-variation-selector-tests: New file.
17622         * modules/unictype/property-white-space-tests: New file.
17623         * modules/unictype/property-xid-continue-tests: New file.
17624         * modules/unictype/property-xid-start-tests: New file.
17625         * modules/unictype/property-zero-width-tests: New file.
17626         * modules/unictype/scripts-tests: New file.
17627         * modules/unictype/syntax-c-ident-tests: New file.
17628         * modules/unictype/syntax-c-whitespace-tests: New file.
17629         * modules/unictype/syntax-java-ident-tests: New file.
17630         * modules/unictype/syntax-java-whitespace-tests: New file.
17631         * tests/unictype/test-bidi_byname.c: New file.
17632         * tests/unictype/test-bidi_name.c: New file.
17633         * tests/unictype/test-bidi_of.c: New file.
17634         * tests/unictype/test-bidi_test.c: New file.
17635         * tests/unictype/test-block_list.c: New file.
17636         * tests/unictype/test-block_of.c: New file.
17637         * tests/unictype/test-block_test.c: New file.
17638         * tests/unictype/test-categ_and.c: New file.
17639         * tests/unictype/test-categ_and_not.c: New file.
17640         * tests/unictype/test-categ_byname.c: New file.
17641         * tests/unictype/test-categ_name.c: New file.
17642         * tests/unictype/test-categ_none.c: New file.
17643         * tests/unictype/test-categ_of.c: New file.
17644         * tests/unictype/test-categ_or.c: New file.
17645         * tests/unictype/test-categ_test_withtable.c: New file.
17646         * tests/unictype/test-combining.c: New file.
17647         * tests/unictype/test-decdigit.c: New file.
17648         * tests/unictype/test-digit.c: New file.
17649         * tests/unictype/test-mirror.c: New file.
17650         * tests/unictype/test-numeric.c: New file.
17651         * tests/unictype/test-pr_byname.c: New file.
17652         * tests/unictype/test-pr_test.c: New file.
17653         * tests/unictype/test-predicate-part1.h: New file.
17654         * tests/unictype/test-predicate-part2.h: New file.
17655         * tests/unictype/test-scripts.c: New file.
17656         * tests/unictype/test-sy_c_ident.c: New file.
17657         * tests/unictype/test-sy_java_ident.c: New file.
17658
17659         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
17660         for Unicode 5.0.0.
17661         * tests/unictype/test-categ_Cc.c: Likewise.
17662         * tests/unictype/test-categ_Cf.c: Likewise.
17663         * tests/unictype/test-categ_Cn.c: Likewise.
17664         * tests/unictype/test-categ_Co.c: Likewise.
17665         * tests/unictype/test-categ_Cs.c: Likewise.
17666         * tests/unictype/test-categ_L.c: Likewise.
17667         * tests/unictype/test-categ_Ll.c: Likewise.
17668         * tests/unictype/test-categ_Lm.c: Likewise.
17669         * tests/unictype/test-categ_Lo.c: Likewise.
17670         * tests/unictype/test-categ_Lt.c: Likewise.
17671         * tests/unictype/test-categ_Lu.c: Likewise.
17672         * tests/unictype/test-categ_M.c: Likewise.
17673         * tests/unictype/test-categ_Mc.c: Likewise.
17674         * tests/unictype/test-categ_Me.c: Likewise.
17675         * tests/unictype/test-categ_Mn.c: Likewise.
17676         * tests/unictype/test-categ_N.c: Likewise.
17677         * tests/unictype/test-categ_Nd.c: Likewise.
17678         * tests/unictype/test-categ_Nl.c: Likewise.
17679         * tests/unictype/test-categ_No.c: Likewise.
17680         * tests/unictype/test-categ_P.c: Likewise.
17681         * tests/unictype/test-categ_Pc.c: Likewise.
17682         * tests/unictype/test-categ_Pd.c: Likewise.
17683         * tests/unictype/test-categ_Pe.c: Likewise.
17684         * tests/unictype/test-categ_Pf.c: Likewise.
17685         * tests/unictype/test-categ_Pi.c: Likewise.
17686         * tests/unictype/test-categ_Po.c: Likewise.
17687         * tests/unictype/test-categ_Ps.c: Likewise.
17688         * tests/unictype/test-categ_S.c: Likewise.
17689         * tests/unictype/test-categ_Sc.c: Likewise.
17690         * tests/unictype/test-categ_Sk.c: Likewise.
17691         * tests/unictype/test-categ_Sm.c: Likewise.
17692         * tests/unictype/test-categ_So.c: Likewise.
17693         * tests/unictype/test-categ_Z.c: Likewise.
17694         * tests/unictype/test-categ_Zl.c: Likewise.
17695         * tests/unictype/test-categ_Zp.c: Likewise.
17696         * tests/unictype/test-categ_Zs.c: Likewise.
17697         * tests/unictype/test-ctype_alnum.c: Likewise.
17698         * tests/unictype/test-ctype_alpha.c: Likewise.
17699         * tests/unictype/test-ctype_blank.c: Likewise.
17700         * tests/unictype/test-ctype_cntrl.c: Likewise.
17701         * tests/unictype/test-ctype_digit.c: Likewise.
17702         * tests/unictype/test-ctype_graph.c: Likewise.
17703         * tests/unictype/test-ctype_lower.c: Likewise.
17704         * tests/unictype/test-ctype_print.c: Likewise.
17705         * tests/unictype/test-ctype_punct.c: Likewise.
17706         * tests/unictype/test-ctype_space.c: Likewise.
17707         * tests/unictype/test-ctype_upper.c: Likewise.
17708         * tests/unictype/test-ctype_xdigit.c: Likewise.
17709         * tests/unictype/test-decdigit.h: Likewise.
17710         * tests/unictype/test-digit.h: Likewise.
17711         * tests/unictype/test-numeric.h: Likewise.
17712         * tests/unictype/test-pr_alphabetic.c: Likewise.
17713         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
17714         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17715         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17716         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
17717         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17718         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
17719         * tests/unictype/test-pr_bidi_control.c: Likewise.
17720         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
17721         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
17722         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17723         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17724         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17725         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17726         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17727         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17728         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
17729         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
17730         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
17731         * tests/unictype/test-pr_combining.c: Likewise.
17732         * tests/unictype/test-pr_composite.c: Likewise.
17733         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17734         * tests/unictype/test-pr_dash.c: Likewise.
17735         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17736         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
17737         * tests/unictype/test-pr_deprecated.c: Likewise.
17738         * tests/unictype/test-pr_diacritic.c: Likewise.
17739         * tests/unictype/test-pr_extender.c: Likewise.
17740         * tests/unictype/test-pr_format_control.c: Likewise.
17741         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17742         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17743         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17744         * tests/unictype/test-pr_hex_digit.c: Likewise.
17745         * tests/unictype/test-pr_hyphen.c: Likewise.
17746         * tests/unictype/test-pr_id_continue.c: Likewise.
17747         * tests/unictype/test-pr_id_start.c: Likewise.
17748         * tests/unictype/test-pr_ideographic.c: Likewise.
17749         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
17750         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
17751         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17752         * tests/unictype/test-pr_iso_control.c: Likewise.
17753         * tests/unictype/test-pr_join_control.c: Likewise.
17754         * tests/unictype/test-pr_left_of_pair.c: Likewise.
17755         * tests/unictype/test-pr_line_separator.c: Likewise.
17756         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17757         * tests/unictype/test-pr_lowercase.c: Likewise.
17758         * tests/unictype/test-pr_math.c: Likewise.
17759         * tests/unictype/test-pr_non_break.c: Likewise.
17760         * tests/unictype/test-pr_not_a_character.c: Likewise.
17761         * tests/unictype/test-pr_numeric.c: Likewise.
17762         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17763         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
17764         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
17765         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17766         * tests/unictype/test-pr_other_id_start.c: Likewise.
17767         * tests/unictype/test-pr_other_lowercase.c: Likewise.
17768         * tests/unictype/test-pr_other_math.c: Likewise.
17769         * tests/unictype/test-pr_other_uppercase.c: Likewise.
17770         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
17771         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
17772         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
17773         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
17774         * tests/unictype/test-pr_private_use.c: Likewise.
17775         * tests/unictype/test-pr_punctuation.c: Likewise.
17776         * tests/unictype/test-pr_quotation_mark.c: Likewise.
17777         * tests/unictype/test-pr_radical.c: Likewise.
17778         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17779         * tests/unictype/test-pr_soft_dotted.c: Likewise.
17780         * tests/unictype/test-pr_space.c: Likewise.
17781         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17782         * tests/unictype/test-pr_titlecase.c: Likewise.
17783         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17784         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17785         * tests/unictype/test-pr_uppercase.c: Likewise.
17786         * tests/unictype/test-pr_variation_selector.c: Likewise.
17787         * tests/unictype/test-pr_white_space.c: Likewise.
17788         * tests/unictype/test-pr_xid_continue.c: Likewise.
17789         * tests/unictype/test-pr_xid_start.c: Likewise.
17790         * tests/unictype/test-pr_zero_width.c: Likewise.
17791         * tests/unictype/test-sy_c_whitespace.c: Likewise.
17792         * tests/unictype/test-sy_java_whitespace.c: Likewise.
17793
17794 2007-11-12  Bruno Haible  <bruno@clisp.org>
17795
17796         Unicode character classification functions.
17797         * lib/unictype.h: New file.
17798         * modules/unictype/base: New file.
17799         * modules/unictype/category-L: New file.
17800         * modules/unictype/category-Lu: New file.
17801         * modules/unictype/category-Ll: New file.
17802         * modules/unictype/category-Lt: New file.
17803         * modules/unictype/category-Lm: New file.
17804         * modules/unictype/category-Lo: New file.
17805         * modules/unictype/category-M: New file.
17806         * modules/unictype/category-Mn: New file.
17807         * modules/unictype/category-Mc: New file.
17808         * modules/unictype/category-Me: New file.
17809         * modules/unictype/category-N: New file.
17810         * modules/unictype/category-Nd: New file.
17811         * modules/unictype/category-Nl: New file.
17812         * modules/unictype/category-No: New file.
17813         * modules/unictype/category-P: New file.
17814         * modules/unictype/category-Pc: New file.
17815         * modules/unictype/category-Pd: New file.
17816         * modules/unictype/category-Ps: New file.
17817         * modules/unictype/category-Pe: New file.
17818         * modules/unictype/category-Pi: New file.
17819         * modules/unictype/category-Pf: New file.
17820         * modules/unictype/category-Po: New file.
17821         * modules/unictype/category-S: New file.
17822         * modules/unictype/category-Sm: New file.
17823         * modules/unictype/category-Sc: New file.
17824         * modules/unictype/category-Sk: New file.
17825         * modules/unictype/category-So: New file.
17826         * modules/unictype/category-Z: New file.
17827         * modules/unictype/category-Zs: New file.
17828         * modules/unictype/category-Zl: New file.
17829         * modules/unictype/category-Zp: New file.
17830         * modules/unictype/category-C: New file.
17831         * modules/unictype/category-Cc: New file.
17832         * modules/unictype/category-Cf: New file.
17833         * modules/unictype/category-Cs: New file.
17834         * modules/unictype/category-Co: New file.
17835         * modules/unictype/category-Cn: New file.
17836         * modules/unictype/category-or: New file.
17837         * modules/unictype/category-of: New file.
17838         * modules/unictype/category-test: New file.
17839         * modules/unictype/category-test-withtable: New file.
17840         * modules/unictype/category-byname: New file.
17841         * modules/unictype/category-none: New file.
17842         * modules/unictype/category-and: New file.
17843         * modules/unictype/category-and-not: New file.
17844         * modules/unictype/category-name: New file.
17845         * modules/unictype/combining-class: New file.
17846         * modules/unictype/category-all: New file.
17847         * modules/unictype/bidicategory-all: New file.
17848         * modules/unictype/bidicategory-byname: New file.
17849         * modules/unictype/bidicategory-name: New file.
17850         * modules/unictype/bidicategory-of: New file.
17851         * modules/unictype/bidicategory-test: New file.
17852         * modules/unictype/decimal-digit: New file.
17853         * modules/unictype/digit: New file.
17854         * modules/unictype/numeric: New file.
17855         * modules/unictype/mirror: New file.
17856         * modules/unictype/property-white-space: New file.
17857         * modules/unictype/property-alphabetic: New file.
17858         * modules/unictype/property-other-alphabetic: New file.
17859         * modules/unictype/property-not-a-character: New file.
17860         * modules/unictype/property-default-ignorable-code-point: New file.
17861         * modules/unictype/property-other-default-ignorable-code-point: New
17862         file.
17863         * modules/unictype/property-deprecated: New file.
17864         * modules/unictype/property-logical-order-exception: New file.
17865         * modules/unictype/property-variation-selector: New file.
17866         * modules/unictype/property-private-use: New file.
17867         * modules/unictype/property-unassigned-code-value: New file.
17868         * modules/unictype/property-uppercase: New file.
17869         * modules/unictype/property-other-uppercase: New file.
17870         * modules/unictype/property-lowercase: New file.
17871         * modules/unictype/property-other-lowercase: New file.
17872         * modules/unictype/property-titlecase: New file.
17873         * modules/unictype/property-soft-dotted: New file.
17874         * modules/unictype/property-id-start: New file.
17875         * modules/unictype/property-other-id-start: New file.
17876         * modules/unictype/property-id-continue: New file.
17877         * modules/unictype/property-other-id-continue: New file.
17878         * modules/unictype/property-xid-start: New file.
17879         * modules/unictype/property-xid-continue: New file.
17880         * modules/unictype/property-pattern-white-space: New file.
17881         * modules/unictype/property-pattern-syntax: New file.
17882         * modules/unictype/property-join-control: New file.
17883         * modules/unictype/property-grapheme-base: New file.
17884         * modules/unictype/property-grapheme-extend: New file.
17885         * modules/unictype/property-other-grapheme-extend: New file.
17886         * modules/unictype/property-grapheme-link: New file.
17887         * modules/unictype/property-bidi-control: New file.
17888         * modules/unictype/property-bidi-left-to-right: New file.
17889         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
17890         * modules/unictype/property-bidi-arabic-right-to-left: New file.
17891         * modules/unictype/property-bidi-european-digit: New file.
17892         * modules/unictype/property-bidi-eur-num-separator: New file.
17893         * modules/unictype/property-bidi-eur-num-terminator: New file.
17894         * modules/unictype/property-bidi-arabic-digit: New file.
17895         * modules/unictype/property-bidi-common-separator: New file.
17896         * modules/unictype/property-bidi-block-separator: New file.
17897         * modules/unictype/property-bidi-segment-separator: New file.
17898         * modules/unictype/property-bidi-whitespace: New file.
17899         * modules/unictype/property-bidi-non-spacing-mark: New file.
17900         * modules/unictype/property-bidi-boundary-neutral: New file.
17901         * modules/unictype/property-bidi-pdf: New file.
17902         * modules/unictype/property-bidi-embedding-or-override: New file.
17903         * modules/unictype/property-bidi-other-neutral: New file.
17904         * modules/unictype/property-hex-digit: New file.
17905         * modules/unictype/property-ascii-hex-digit: New file.
17906         * modules/unictype/property-ideographic: New file.
17907         * modules/unictype/property-unified-ideograph: New file.
17908         * modules/unictype/property-radical: New file.
17909         * modules/unictype/property-ids-binary-operator: New file.
17910         * modules/unictype/property-ids-trinary-operator: New file.
17911         * modules/unictype/property-zero-width: New file.
17912         * modules/unictype/property-space: New file.
17913         * modules/unictype/property-non-break: New file.
17914         * modules/unictype/property-iso-control: New file.
17915         * modules/unictype/property-format-control: New file.
17916         * modules/unictype/property-dash: New file.
17917         * modules/unictype/property-hyphen: New file.
17918         * modules/unictype/property-punctuation: New file.
17919         * modules/unictype/property-line-separator: New file.
17920         * modules/unictype/property-paragraph-separator: New file.
17921         * modules/unictype/property-quotation-mark: New file.
17922         * modules/unictype/property-sentence-terminal: New file.
17923         * modules/unictype/property-terminal-punctuation: New file.
17924         * modules/unictype/property-currency-symbol: New file.
17925         * modules/unictype/property-math: New file.
17926         * modules/unictype/property-other-math: New file.
17927         * modules/unictype/property-paired-punctuation: New file.
17928         * modules/unictype/property-left-of-pair: New file.
17929         * modules/unictype/property-combining: New file.
17930         * modules/unictype/property-composite: New file.
17931         * modules/unictype/property-decimal-digit: New file.
17932         * modules/unictype/property-numeric: New file.
17933         * modules/unictype/property-diacritic: New file.
17934         * modules/unictype/property-extender: New file.
17935         * modules/unictype/property-ignorable-control: New file.
17936         * modules/unictype/property-test: New file.
17937         * modules/unictype/property-byname: New file.
17938         * modules/unictype/property-all: New file.
17939         * modules/unictype/scripts: New file.
17940         * modules/unictype/scripts-all: New file.
17941         * modules/unictype/block-of: New file.
17942         * modules/unictype/block-test: New file.
17943         * modules/unictype/block-list: New file.
17944         * modules/unictype/block-all: New file.
17945         * modules/unictype/syntax-c-whitespace: New file.
17946         * modules/unictype/syntax-java-whitespace: New file.
17947         * modules/unictype/syntax-c-ident: New file.
17948         * modules/unictype/syntax-java-ident: New file.
17949         * modules/unictype/ctype-alnum: New file.
17950         * modules/unictype/ctype-alpha: New file.
17951         * modules/unictype/ctype-cntrl: New file.
17952         * modules/unictype/ctype-digit: New file.
17953         * modules/unictype/ctype-graph: New file.
17954         * modules/unictype/ctype-lower: New file.
17955         * modules/unictype/ctype-print: New file.
17956         * modules/unictype/ctype-punct: New file.
17957         * modules/unictype/ctype-space: New file.
17958         * modules/unictype/ctype-upper: New file.
17959         * modules/unictype/ctype-xdigit: New file.
17960         * modules/unictype/ctype-blank: New file.
17961         * lib/unictype/bidi_byname.c: New file.
17962         * lib/unictype/bidi_name.c: New file.
17963         * lib/unictype/bidi_of.c: New file.
17964         * lib/unictype/bidi_test.c: New file.
17965         * lib/unictype/bitmap.h: New file.
17966         * lib/unictype/block_test.c: New file.
17967         * lib/unictype/blocks.c: New file.
17968         * lib/unictype/categ_C.c: New file.
17969         * lib/unictype/categ_Cc.c: New file.
17970         * lib/unictype/categ_Cf.c: New file.
17971         * lib/unictype/categ_Cn.c: New file.
17972         * lib/unictype/categ_Co.c: New file.
17973         * lib/unictype/categ_Cs.c: New file.
17974         * lib/unictype/categ_L.c: New file.
17975         * lib/unictype/categ_Ll.c: New file.
17976         * lib/unictype/categ_Lm.c: New file.
17977         * lib/unictype/categ_Lo.c: New file.
17978         * lib/unictype/categ_Lt.c: New file.
17979         * lib/unictype/categ_Lu.c: New file.
17980         * lib/unictype/categ_M.c: New file.
17981         * lib/unictype/categ_Mc.c: New file.
17982         * lib/unictype/categ_Me.c: New file.
17983         * lib/unictype/categ_Mn.c: New file.
17984         * lib/unictype/categ_N.c: New file.
17985         * lib/unictype/categ_Nd.c: New file.
17986         * lib/unictype/categ_Nl.c: New file.
17987         * lib/unictype/categ_No.c: New file.
17988         * lib/unictype/categ_P.c: New file.
17989         * lib/unictype/categ_Pc.c: New file.
17990         * lib/unictype/categ_Pd.c: New file.
17991         * lib/unictype/categ_Pe.c: New file.
17992         * lib/unictype/categ_Pf.c: New file.
17993         * lib/unictype/categ_Pi.c: New file.
17994         * lib/unictype/categ_Po.c: New file.
17995         * lib/unictype/categ_Ps.c: New file.
17996         * lib/unictype/categ_S.c: New file.
17997         * lib/unictype/categ_Sc.c: New file.
17998         * lib/unictype/categ_Sk.c: New file.
17999         * lib/unictype/categ_Sm.c: New file.
18000         * lib/unictype/categ_So.c: New file.
18001         * lib/unictype/categ_Z.c: New file.
18002         * lib/unictype/categ_Zl.c: New file.
18003         * lib/unictype/categ_Zp.c: New file.
18004         * lib/unictype/categ_Zs.c: New file.
18005         * lib/unictype/categ_and.c: New file.
18006         * lib/unictype/categ_and_not.c: New file.
18007         * lib/unictype/categ_byname.c: New file.
18008         * lib/unictype/categ_name.c: New file.
18009         * lib/unictype/categ_none.c: New file.
18010         * lib/unictype/categ_of.c: New file.
18011         * lib/unictype/categ_or.c: New file.
18012         * lib/unictype/categ_test.c: New file.
18013         * lib/unictype/combining.c: New file.
18014         * lib/unictype/ctype_alnum.c: New file.
18015         * lib/unictype/ctype_alpha.c: New file.
18016         * lib/unictype/ctype_blank.c: New file.
18017         * lib/unictype/ctype_cntrl.c: New file.
18018         * lib/unictype/ctype_digit.c: New file.
18019         * lib/unictype/ctype_graph.c: New file.
18020         * lib/unictype/ctype_lower.c: New file.
18021         * lib/unictype/ctype_print.c: New file.
18022         * lib/unictype/ctype_punct.c: New file.
18023         * lib/unictype/ctype_space.c: New file.
18024         * lib/unictype/ctype_upper.c: New file.
18025         * lib/unictype/ctype_xdigit.c: New file.
18026         * lib/unictype/decdigit.c: New file.
18027         * lib/unictype/digit.c: New file.
18028         * lib/unictype/identsyntaxmap.h: New file.
18029         * lib/unictype/mirror.c: New file.
18030         * lib/unictype/numeric.c: New file.
18031         * lib/unictype/pr_alphabetic.c: New file.
18032         * lib/unictype/pr_ascii_hex_digit.c: New file.
18033         * lib/unictype/pr_bidi_arabic_digit.c: New file.
18034         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
18035         * lib/unictype/pr_bidi_block_separator.c: New file.
18036         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
18037         * lib/unictype/pr_bidi_common_separator.c: New file.
18038         * lib/unictype/pr_bidi_control.c: New file.
18039         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
18040         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
18041         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
18042         * lib/unictype/pr_bidi_european_digit.c: New file.
18043         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
18044         * lib/unictype/pr_bidi_left_to_right.c: New file.
18045         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
18046         * lib/unictype/pr_bidi_other_neutral.c: New file.
18047         * lib/unictype/pr_bidi_pdf.c: New file.
18048         * lib/unictype/pr_bidi_segment_separator.c: New file.
18049         * lib/unictype/pr_bidi_whitespace.c: New file.
18050         * lib/unictype/pr_byname.c: New file.
18051         * lib/unictype/pr_byname.gperf: New file.
18052         * lib/unictype/pr_combining.c: New file.
18053         * lib/unictype/pr_composite.c: New file.
18054         * lib/unictype/pr_currency_symbol.c: New file.
18055         * lib/unictype/pr_dash.c: New file.
18056         * lib/unictype/pr_decimal_digit.c: New file.
18057         * lib/unictype/pr_default_ignorable_code_point.c: New file.
18058         * lib/unictype/pr_deprecated.c: New file.
18059         * lib/unictype/pr_diacritic.c: New file.
18060         * lib/unictype/pr_extender.c: New file.
18061         * lib/unictype/pr_format_control.c: New file.
18062         * lib/unictype/pr_grapheme_base.c: New file.
18063         * lib/unictype/pr_grapheme_extend.c: New file.
18064         * lib/unictype/pr_grapheme_link.c: New file.
18065         * lib/unictype/pr_hex_digit.c: New file.
18066         * lib/unictype/pr_hyphen.c: New file.
18067         * lib/unictype/pr_id_continue.c: New file.
18068         * lib/unictype/pr_id_start.c: New file.
18069         * lib/unictype/pr_ideographic.c: New file.
18070         * lib/unictype/pr_ids_binary_operator.c: New file.
18071         * lib/unictype/pr_ids_trinary_operator.c: New file.
18072         * lib/unictype/pr_ignorable_control.c: New file.
18073         * lib/unictype/pr_iso_control.c: New file.
18074         * lib/unictype/pr_join_control.c: New file.
18075         * lib/unictype/pr_left_of_pair.c: New file.
18076         * lib/unictype/pr_line_separator.c: New file.
18077         * lib/unictype/pr_logical_order_exception.c: New file.
18078         * lib/unictype/pr_lowercase.c: New file.
18079         * lib/unictype/pr_math.c: New file.
18080         * lib/unictype/pr_non_break.c: New file.
18081         * lib/unictype/pr_not_a_character.c: New file.
18082         * lib/unictype/pr_numeric.c: New file.
18083         * lib/unictype/pr_other_alphabetic.c: New file.
18084         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
18085         * lib/unictype/pr_other_grapheme_extend.c: New file.
18086         * lib/unictype/pr_other_id_continue.c: New file.
18087         * lib/unictype/pr_other_id_start.c: New file.
18088         * lib/unictype/pr_other_lowercase.c: New file.
18089         * lib/unictype/pr_other_math.c: New file.
18090         * lib/unictype/pr_other_uppercase.c: New file.
18091         * lib/unictype/pr_paired_punctuation.c: New file.
18092         * lib/unictype/pr_paragraph_separator.c: New file.
18093         * lib/unictype/pr_pattern_syntax.c: New file.
18094         * lib/unictype/pr_pattern_white_space.c: New file.
18095         * lib/unictype/pr_private_use.c: New file.
18096         * lib/unictype/pr_punctuation.c: New file.
18097         * lib/unictype/pr_quotation_mark.c: New file.
18098         * lib/unictype/pr_radical.c: New file.
18099         * lib/unictype/pr_sentence_terminal.c: New file.
18100         * lib/unictype/pr_soft_dotted.c: New file.
18101         * lib/unictype/pr_space.c: New file.
18102         * lib/unictype/pr_terminal_punctuation.c: New file.
18103         * lib/unictype/pr_test.c: New file.
18104         * lib/unictype/pr_titlecase.c: New file.
18105         * lib/unictype/pr_unassigned_code_value.c: New file.
18106         * lib/unictype/pr_unified_ideograph.c: New file.
18107         * lib/unictype/pr_uppercase.c: New file.
18108         * lib/unictype/pr_variation_selector.c: New file.
18109         * lib/unictype/pr_white_space.c: New file.
18110         * lib/unictype/pr_xid_continue.c: New file.
18111         * lib/unictype/pr_xid_start.c: New file.
18112         * lib/unictype/pr_zero_width.c: New file.
18113         * lib/unictype/scripts.c: New file.
18114         * lib/unictype/sy_c_ident.c: New file.
18115         * lib/unictype/sy_c_whitespace.c: New file.
18116         * lib/unictype/sy_java_ident.c: New file.
18117         * lib/unictype/sy_java_whitespace.c: New file.
18118
18119         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
18120         Unicode 5.0.0.
18121         * lib/unictype/blocks.h: Likewise.
18122         * lib/unictype/categ_C.h: Likewise.
18123         * lib/unictype/categ_Cc.h: Likewise.
18124         * lib/unictype/categ_Cf.h: Likewise.
18125         * lib/unictype/categ_Cn.h: Likewise.
18126         * lib/unictype/categ_Co.h: Likewise.
18127         * lib/unictype/categ_Cs.h: Likewise.
18128         * lib/unictype/categ_L.h: Likewise.
18129         * lib/unictype/categ_Ll.h: Likewise.
18130         * lib/unictype/categ_Lm.h: Likewise.
18131         * lib/unictype/categ_Lo.h: Likewise.
18132         * lib/unictype/categ_Lt.h: Likewise.
18133         * lib/unictype/categ_Lu.h: Likewise.
18134         * lib/unictype/categ_M.h: Likewise.
18135         * lib/unictype/categ_Mc.h: Likewise.
18136         * lib/unictype/categ_Me.h: Likewise.
18137         * lib/unictype/categ_Mn.h: Likewise.
18138         * lib/unictype/categ_N.h: Likewise.
18139         * lib/unictype/categ_Nd.h: Likewise.
18140         * lib/unictype/categ_Nl.h: Likewise.
18141         * lib/unictype/categ_No.h: Likewise.
18142         * lib/unictype/categ_P.h: Likewise.
18143         * lib/unictype/categ_Pc.h: Likewise.
18144         * lib/unictype/categ_Pd.h: Likewise.
18145         * lib/unictype/categ_Pe.h: Likewise.
18146         * lib/unictype/categ_Pf.h: Likewise.
18147         * lib/unictype/categ_Pi.h: Likewise.
18148         * lib/unictype/categ_Po.h: Likewise.
18149         * lib/unictype/categ_Ps.h: Likewise.
18150         * lib/unictype/categ_S.h: Likewise.
18151         * lib/unictype/categ_Sc.h: Likewise.
18152         * lib/unictype/categ_Sk.h: Likewise.
18153         * lib/unictype/categ_Sm.h: Likewise.
18154         * lib/unictype/categ_So.h: Likewise.
18155         * lib/unictype/categ_Z.h: Likewise.
18156         * lib/unictype/categ_Zl.h: Likewise.
18157         * lib/unictype/categ_Zp.h: Likewise.
18158         * lib/unictype/categ_Zs.h: Likewise.
18159         * lib/unictype/categ_of.h: Likewise.
18160         * lib/unictype/combining.h: Likewise.
18161         * lib/unictype/ctype_alnum.h: Likewise.
18162         * lib/unictype/ctype_alpha.h: Likewise.
18163         * lib/unictype/ctype_blank.h: Likewise.
18164         * lib/unictype/ctype_cntrl.h: Likewise.
18165         * lib/unictype/ctype_digit.h: Likewise.
18166         * lib/unictype/ctype_graph.h: Likewise.
18167         * lib/unictype/ctype_lower.h: Likewise.
18168         * lib/unictype/ctype_print.h: Likewise.
18169         * lib/unictype/ctype_punct.h: Likewise.
18170         * lib/unictype/ctype_space.h: Likewise.
18171         * lib/unictype/ctype_upper.h: Likewise.
18172         * lib/unictype/ctype_xdigit.h: Likewise.
18173         * lib/unictype/decdigit.h: Likewise.
18174         * lib/unictype/digit.h: Likewise.
18175         * lib/unictype/mirror.h: Likewise.
18176         * lib/unictype/numeric.h: Likewise.
18177         * lib/unictype/pr_alphabetic.h: Likewise.
18178         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18179         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18180         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18181         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18182         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18183         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18184         * lib/unictype/pr_bidi_control.h: Likewise.
18185         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18186         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18187         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18188         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18189         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18190         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18191         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18192         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18193         * lib/unictype/pr_bidi_pdf.h: Likewise.
18194         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18195         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18196         * lib/unictype/pr_combining.h: Likewise.
18197         * lib/unictype/pr_composite.h: Likewise.
18198         * lib/unictype/pr_currency_symbol.h: Likewise.
18199         * lib/unictype/pr_dash.h: Likewise.
18200         * lib/unictype/pr_decimal_digit.h: Likewise.
18201         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18202         * lib/unictype/pr_deprecated.h: Likewise.
18203         * lib/unictype/pr_diacritic.h: Likewise.
18204         * lib/unictype/pr_extender.h: Likewise.
18205         * lib/unictype/pr_format_control.h: Likewise.
18206         * lib/unictype/pr_grapheme_base.h: Likewise.
18207         * lib/unictype/pr_grapheme_extend.h: Likewise.
18208         * lib/unictype/pr_grapheme_link.h: Likewise.
18209         * lib/unictype/pr_hex_digit.h: Likewise.
18210         * lib/unictype/pr_hyphen.h: Likewise.
18211         * lib/unictype/pr_id_continue.h: Likewise.
18212         * lib/unictype/pr_id_start.h: Likewise.
18213         * lib/unictype/pr_ideographic.h: Likewise.
18214         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18215         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18216         * lib/unictype/pr_ignorable_control.h: Likewise.
18217         * lib/unictype/pr_iso_control.h: Likewise.
18218         * lib/unictype/pr_join_control.h: Likewise.
18219         * lib/unictype/pr_left_of_pair.h: Likewise.
18220         * lib/unictype/pr_line_separator.h: Likewise.
18221         * lib/unictype/pr_logical_order_exception.h: Likewise.
18222         * lib/unictype/pr_lowercase.h: Likewise.
18223         * lib/unictype/pr_math.h: Likewise.
18224         * lib/unictype/pr_non_break.h: Likewise.
18225         * lib/unictype/pr_not_a_character.h: Likewise.
18226         * lib/unictype/pr_numeric.h: Likewise.
18227         * lib/unictype/pr_other_alphabetic.h: Likewise.
18228         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18229         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18230         * lib/unictype/pr_other_id_continue.h: Likewise.
18231         * lib/unictype/pr_other_id_start.h: Likewise.
18232         * lib/unictype/pr_other_lowercase.h: Likewise.
18233         * lib/unictype/pr_other_math.h: Likewise.
18234         * lib/unictype/pr_other_uppercase.h: Likewise.
18235         * lib/unictype/pr_paired_punctuation.h: Likewise.
18236         * lib/unictype/pr_paragraph_separator.h: Likewise.
18237         * lib/unictype/pr_pattern_syntax.h: Likewise.
18238         * lib/unictype/pr_pattern_white_space.h: Likewise.
18239         * lib/unictype/pr_private_use.h: Likewise.
18240         * lib/unictype/pr_punctuation.h: Likewise.
18241         * lib/unictype/pr_quotation_mark.h: Likewise.
18242         * lib/unictype/pr_radical.h: Likewise.
18243         * lib/unictype/pr_sentence_terminal.h: Likewise.
18244         * lib/unictype/pr_soft_dotted.h: Likewise.
18245         * lib/unictype/pr_space.h: Likewise.
18246         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18247         * lib/unictype/pr_titlecase.h: Likewise.
18248         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18249         * lib/unictype/pr_unified_ideograph.h: Likewise.
18250         * lib/unictype/pr_uppercase.h: Likewise.
18251         * lib/unictype/pr_variation_selector.h: Likewise.
18252         * lib/unictype/pr_white_space.h: Likewise.
18253         * lib/unictype/pr_xid_continue.h: Likewise.
18254         * lib/unictype/pr_xid_start.h: Likewise.
18255         * lib/unictype/pr_zero_width.h: Likewise.
18256         * lib/unictype/scripts.h: Likewise.
18257         * lib/unictype/scripts_byname.gperf: Likewise.
18258         * lib/unictype/sy_c_ident.h: Likewise.
18259         * lib/unictype/sy_c_whitespace.h: Likewise.
18260         * lib/unictype/sy_java_ident.h: Likewise.
18261         * lib/unictype/sy_java_whitespace.h: Likewise.
18262
18263         * lib/unictype/Makefile: New file.
18264         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
18265         glibc.
18266         * lib/unictype/3level.h: New file, copied from glibc.
18267         * lib/unictype/3levelbit.h: New file.
18268
18269 2007-11-11  Bruno Haible  <bruno@clisp.org>
18270
18271         * modules/gperf: New file.
18272         * modules/iconv_open (Depends-on): Add it.
18273         (Makefile.am): Remove the GPERF definition.
18274
18275 2007-11-11  Bruno Haible  <bruno@clisp.org>
18276
18277         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
18278         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
18279
18280 2007-11-11  Bruno Haible  <bruno@clisp.org>
18281
18282         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
18283         (usage): Remove function.
18284
18285 2007-11-11  Bruno Haible  <bruno@clisp.org>
18286
18287         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
18288         gl_FUNC_CEILF_LIBS.
18289         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
18290         gl_FUNC_CEIL_LIBS.
18291         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
18292         gl_FUNC_CEILL_LIBS.
18293         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
18294         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
18295         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
18296
18297 2007-11-11  Bruno Haible  <bruno@clisp.org>
18298
18299         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
18300         roundf were declared but do not exist on functions.
18301         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
18302         roundl were declared but do not exist on functions.
18303         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
18304         HAVE_FLOORL_AND_CEILL, respectively.
18305         Needed for Sun C on Solaris 10.
18306
18307 2007-11-11  Bruno Haible  <bruno@clisp.org>
18308
18309         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
18310         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
18311         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
18312         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
18313         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
18314         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
18315         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
18316         HAVE_DECL_ROUNDF.
18317         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
18318         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
18319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
18320         of HAVE_DECL_ROUND*.
18321         * modules/math (Makefile.am): Update.
18322
18323 2007-11-10  Bruno Haible  <bruno@clisp.org>
18324
18325         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
18326         ptrdiff_t as m4/intl.m4.
18327
18328 2007-11-10  Jim Meyering  <meyering@redhat.com>
18329
18330         Avoid link failure for the argmatch test.
18331         * tests/test-argmatch.c (usage): Define function to avoid a link
18332         failure: argmatch_die requires a usage function.
18333
18334 2007-11-09  Bruno Haible  <bruno@clisp.org>
18335
18336         * doc/functions/snprintf.texi: Mention BeOS deficiency.
18337         * doc/functions/vsnprintf.texi: Likewise.
18338         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
18339         with a size argument < 2.
18340
18341 2007-11-09  Bruno Haible  <bruno@clisp.org>
18342
18343         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
18344         buffer. Fixes an inefficiency introduced on 2007-11-03.
18345
18346 2007-11-09  Bruno Haible  <bruno@clisp.org>
18347
18348         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
18349         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
18350
18351 2007-11-08  Jim Meyering  <meyering@redhat.com>
18352
18353         Change cache variable name prefix "jm_" to "gl_" everywhere.
18354         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
18355         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
18356         * m4/uptime.m4: s/gl_/jm_/
18357
18358 2007-11-07  Bruno Haible  <bruno@clisp.org>
18359
18360         Update to GNU gettext 0.17.
18361         * m4/intl.m4: Update to GNU gettext 0.17.
18362         * m4/po.m4: Likewise.
18363         * modules/gettext (Files): Remove m4/ulonglong.m4.
18364         (configure.ac): Require gettext infrastructure from version 0.17.
18365
18366 2007-11-06  Bruno Haible  <bruno@clisp.org>
18367
18368         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
18369         symbolic values are not defined in a public header.
18370         * lib/freadable.c (freadable) [QNX]: Likewise.
18371         * lib/freadahead.c (freadahead) [QNX]: Likewise.
18372         * lib/freading.c (freading) [QNX]: Likewise.
18373         * lib/fseterr.c (fseterr) [QNX]: Likewise.
18374         * lib/fwritable.c (fwritable) [QNX]: Likewise.
18375         * lib/fwriting.c (fwriting) [QNX]: Likewise.
18376         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
18377         Reported by Alain Magloire.
18378
18379         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
18380
18381 2007-11-05  Bruno Haible  <bruno@clisp.org>
18382
18383         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
18384         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
18385         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
18386         Reported by Eric Blake.
18387
18388 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18389             Bruno Haible  <bruno@clisp.org>
18390
18391         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
18392         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
18393         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
18394         (malloc): Undefine also before including <stdlib.h>.
18395         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
18396         Needed on OSF/1 4.0.
18397
18398 2007-11-05  Jim Meyering  <meyering@redhat.com>
18399
18400         git-version-gen: sync from coreutils.
18401         * build-aux/git-version-gen: Add comments.
18402         Change the first '-' to '.' in the snapshot version string,
18403         e.g., 6.9-377-08144 -> 6.9.377-08144
18404         Remove first parameter.
18405         Don't declare a version "-dirty" merely because a time
18406         stamp has changed.
18407
18408 2007-11-04  Bruno Haible  <bruno@clisp.org>
18409
18410         * lib/lock.h: Protect all macro definitions containing an 'if'
18411         statement through a "do { ... } while (0)".
18412         * lib/tls.h: Likewise.
18413
18414 2007-11-04  Bruno Haible  <bruno@clisp.org>
18415
18416         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
18417
18418 2007-11-04  Bruno Haible  <bruno@clisp.org>
18419
18420         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
18421         * modules/fprintf-posix (Depends-on): Add nocrash.
18422         * modules/snprintf-posix (Depends-on): Likewise.
18423         * modules/sprintf-posix (Depends-on): Likewise.
18424         * modules/vasnprintf-posix (Depends-on): Likewise.
18425         * modules/vasprintf-posix (Depends-on): Likewise.
18426         * modules/vfprintf-posix (Depends-on): Likewise.
18427         * modules/vsnprintf-posix (Depends-on): Likewise.
18428         * modules/vsprintf-posix (Depends-on): Likewise.
18429         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18430         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18431         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18432         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18433         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18434         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18435         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18436
18437 2007-11-04  Bruno Haible  <bruno@clisp.org>
18438
18439         * modules/nocrash: New file.
18440         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
18441         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
18442
18443 2007-11-04  Bruno Haible  <bruno@clisp.org>
18444
18445         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
18446         precision handling.
18447         * tests/test-vasprintf-posix.c (test_function): Likewise.
18448         * tests/test-snprintf-posix.h (test_function): Likewise.
18449         * tests/test-sprintf-posix.h (test_function): Likewise.
18450
18451         Fix *printf behaviour for large precisions on mingw and BeOS.
18452         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
18453         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
18454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
18455         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18457         gl_PRINTF_PRECISION and test its result. Invoke
18458         gl_PREREQ_VASNPRINTF_PRECISION.
18459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18461         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18462         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18466         * doc/functions/fprintf.texi: Update.
18467         * doc/functions/printf.texi: Update.
18468         * doc/functions/snprintf.texi: Update.
18469         * doc/functions/sprintf.texi: Update.
18470         * doc/functions/vfprintf.texi: Update.
18471         * doc/functions/vprintf.texi: Update.
18472         * doc/functions/vsnprintf.texi: Update.
18473         * doc/functions/vsprintf.texi: Update.
18474
18475 2007-11-04  Bruno Haible  <bruno@clisp.org>
18476
18477         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
18478
18479 2007-11-04  Bruno Haible  <bruno@clisp.org>
18480
18481         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
18482         Reported by Sylvain Beucler <beuc@gnu.org>.
18483
18484 2007-11-03  Bruno Haible  <bruno@clisp.org>
18485
18486         * tests/test-fprintf-posix2.sh: New file.
18487         * tests/test-fprintf-posix2.c: New file.
18488         * modules/fprintf-posix-tests (Files): Add them.
18489         (TESTS): Add test-fprintf-posix2.sh.
18490         (configure.ac): Check for getrlimit and setrlimit.
18491         (check_PROGRAMS): Add test-fprintf-posix2.
18492
18493         * tests/test-printf-posix2.sh: New file.
18494         * tests/test-printf-posix2.c: New file.
18495         * modules/printf-posix-tests (Files): Add them.
18496         (TESTS): Add test-printf-posix2.sh.
18497         (configure.ac): Check for getrlimit and setrlimit.
18498         (check_PROGRAMS): Add test-printf-posix2.
18499
18500         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
18501         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
18502         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
18503         (decode_double): New function, copied from decode_long_double.
18504         (scale10_round_decimal_decoded): New function, extracted from
18505         scale10_round_decimal_long_double.
18506         (scale10_round_decimal_long_double): Use it.
18507         (scale10_round_decimal_double): New function.
18508         (floorlog10): New function.
18509         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
18510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
18511         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18513         gl_PRINTF_ENOMEM and test its result. Invoke
18514         gl_PREREQ_VASNPRINTF_ENOMEM.
18515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18522         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
18523         * modules/snprintf-posix (Depends-on): Likewise.
18524         * modules/sprintf-posix (Depends-on): Likewise.
18525         * modules/vasnprintf-posix (Depends-on): Likewise.
18526         * modules/vasprintf-posix (Depends-on): Likewise.
18527         * modules/vfprintf-posix (Depends-on): Likewise.
18528         * modules/vsnprintf-posix (Depends-on): Likewise.
18529         * modules/vsprintf-posix (Depends-on): Likewise.
18530         * doc/functions/fprintf.texi: Update.
18531         * doc/functions/printf.texi: Update.
18532         * doc/functions/snprintf.texi: Update.
18533         * doc/functions/sprintf.texi: Update.
18534         * doc/functions/vfprintf.texi: Update.
18535         * doc/functions/vprintf.texi: Update.
18536         * doc/functions/vsnprintf.texi: Update.
18537         * doc/functions/vsprintf.texi: Update.
18538
18539 2007-11-03  Bruno Haible  <bruno@clisp.org>
18540
18541         * modules/frexp-nolibm-tests: New file.
18542
18543         * modules/frexp-nolibm: New file.
18544         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
18545
18546 2007-11-03  Bruno Haible  <bruno@clisp.org>
18547
18548         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
18549         value is C99 compliant.
18550         Needed for OSF/1 5.1.
18551
18552 2007-11-03  Bruno Haible  <bruno@clisp.org>
18553
18554         Fix out-of-memory handling of vasnprintf.
18555         * lib/printf-parse.c: Include <errno.h>.
18556         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
18557         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
18558         is already set.
18559
18560 2007-11-02  Eric Blake  <ebb9@byu.net>
18561
18562         Fix tests on cygwin.
18563         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
18564
18565 2007-11-01  Bruno Haible  <bruno@clisp.org>
18566
18567         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
18568         warning.
18569         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
18570         needed for POSIX compatibility.
18571
18572 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18573
18574         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
18575         for compatibility with GNU.
18576
18577 2007-11-01  Bruno Haible  <bruno@clisp.org>
18578
18579         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
18580         (putenv): Renamed from rpl_putenv. Change argument type from
18581         'const char *' to 'char *'.
18582         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
18583         of defining putenv in config.h, just set REPLACE_PUTENV.
18584         * modules/putenv (Depends-on): Add stdlib.
18585         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18586         (Include): Use <stdlib.h>.
18587         * lib/stdlib.in.h (putenv): New declaration.
18588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
18589         REPLACE_PUTENV.
18590         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
18591         REPLACE_PUTENV.
18592         Needed for MacOS X 10.5.0.
18593         Reported by Peter O'Gorman <peter@pogma.com>.
18594
18595 2007-11-01  Jim Meyering  <meyering@redhat.com>
18596
18597         Treat an empty date string exactly like "0".
18598         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
18599         if the remaining date string (to be parsed) is empty, use "0".
18600         Reported by Mischa Molhoek and discussed in this thread:
18601         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
18602
18603 2007-10-31  Bruno Haible  <bruno@clisp.org>
18604
18605         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
18606         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
18607         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
18608         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
18609         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
18610         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
18611
18612 2007-10-31  Bruno Haible  <bruno@clisp.org>
18613
18614         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
18615         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
18616         (AC_TYPE_LONG_LONG_INT): Use it.
18617         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
18618         it as well.
18619         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
18620         to m4/longlong.m4.
18621         * modules/stdint (Files): Remove m4/ulonglong.m4.
18622         * modules/strtoull (Files): Use m4/longlong.m4 instead of
18623         m4/ulonglong.m4.
18624         * modules/strtoumax (Files): Likewise.
18625
18626 2007-10-30  Bruno Haible  <bruno@clisp.org>
18627
18628         * modules/xvasprintf-posix: New file.
18629         Suggested by Eric Blake.
18630
18631 2007-10-30  Bruno Haible  <bruno@clisp.org>
18632
18633         * modules/xprintf-posix-tests: New file.
18634         * tests/test-xprintf-posix.sh: New file.
18635         * tests/test-xprintf-posix.c: New file.
18636         * tests/test-xfprintf-posix.c: New file.
18637
18638         * modules/xprintf-posix: New file.
18639
18640 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18641
18642         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
18643         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
18644         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
18645
18646 2007-10-29  Bruno Haible  <bruno@clisp.org>
18647
18648         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
18649         contain the special marker '_cv_'.
18650         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18651         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18652         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18653         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18654         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18655         Reported by Ralf Wildenhues.
18656
18657 2007-10-29  Bruno Haible  <bruno@clisp.org>
18658
18659         * gnulib-tool (func_import): When --lgpl is not specified, set
18660         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
18661         GPLv3.
18662         Reported by Simon Josefsson.
18663
18664 2007-10-28  Bruno Haible  <bruno@clisp.org>
18665
18666         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
18667         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
18668         HAVE_DECL_ISFINITE.
18669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18670         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
18671         HAVE_DECL_ISFINITE.
18672
18673 2007-10-28  Bruno Haible  <bruno@clisp.org>
18674
18675         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
18676         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
18677
18678 2007-10-28  Bruno Haible  <bruno@clisp.org>
18679
18680         Fix link errors with Sun C 5.0 on Solaris 10.
18681         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
18682         function is declared but not present in the compiler's libm.
18683         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18684         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18685         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
18686         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
18687         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
18688         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
18689         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
18690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18691         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
18692         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
18693         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
18694         HAVE_DECL_FLOORL.
18695
18696 2007-10-28  Bruno Haible  <bruno@clisp.org>
18697
18698         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
18699         gl_FUNC_FLOORL. Cache the result.
18700         (gl_FUNC_FLOORL): Use it.
18701         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
18702         gl_FUNC_CEILL. Cache the result.
18703         (gl_FUNC_CEILL): Use it.
18704
18705         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
18706         gl_FUNC_FLOOR. Cache the result.
18707         (gl_FUNC_FLOOR): Use it.
18708         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
18709         gl_FUNC_CEIL. Cache the result.
18710         (gl_FUNC_CEIL): Use it.
18711
18712         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
18713         gl_FUNC_FLOORF. Cache the result.
18714         (gl_FUNC_FLOORF): Use it.
18715         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
18716         gl_FUNC_CEILF. Cache the result.
18717         (gl_FUNC_CEILF): Use it.
18718
18719 2007-10-28  Bruno Haible  <bruno@clisp.org>
18720
18721         * gnulib-tool: Allow specifying the LGPL version number through
18722         --lgpl=2 or --lgpl=3.
18723         (func_usage): Document --lgpl with argument.
18724         Handle --lgpl=... arguments.
18725         (func_import): Recognize also gl_LGPL calls with an argument. When
18726         --lgpl=2 is used and the module's license is just LGPL, report an
18727         error. Set sed_transform_lib_file according to the lgpl variable. In
18728         the generated files, use --lgpl or gl_LGPL invocations with argument,
18729         if necessary.
18730         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
18731         an LGPv2+ license.
18732         * doc/gnulib-tool.texi (Modified imports): Update explanation of
18733         gl_LGPL macro.
18734
18735 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18736             Bruno Haible  <bruno@clisp.org>
18737
18738         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
18739         (u16_uctomb_aux): Likewise.
18740         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
18741         !HAVE_INLINE.
18742         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
18743
18744 2007-10-28  Bruno Haible  <bruno@clisp.org>
18745
18746         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
18747         Invoke AM_GETTEXT_OPTION if it exists.
18748         * modules/vasprintf: Likewise.
18749         * modules/verror: Likewise.
18750         * modules/xprintf: Likewise.
18751         * modules/xvasprintf: Likewise.
18752
18753 2007-10-27  Ben Pfaff  <blp@gnu.org>
18754
18755         * lib/math.in.h: Define isfinite macro and prototypes for
18756         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
18757         implementations.
18758         * m4/math_h.m4: New substitutions for isfinite module.
18759         * lib/isfinite.c: New file.
18760         * m4/isfinite.m4: New file.
18761         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
18762         * modules/isfinite: New file.
18763         * modules/isfinite-tests: New file.
18764         * tests/tests-isfinite.c: New file.
18765         * doc/functions/isfinite.texi: Mention isfinite module.
18766         * MODULES.html.sh: Mention new module.
18767
18768 2007-10-27  Ben Pfaff  <blp@gnu.org>
18769
18770         Ralf Wildenhues reported that Tru64 4.0D declares the round
18771         functions but does not have definitions.
18772         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
18773         cannot be found in any library, set the output variable to
18774         "missing" instead of "".
18775         * m4/round.m4: Also use our substitute if we cannot find round in
18776         any library, even if it is declared.
18777         * m4/roundf.m4: Likewise for roundf.
18778         * m4/roundl.m4: Likewise for roundl.
18779         * lib/math.in.h: Undefine roundf, round, roundl before defining
18780         their replacements, to allow for hypothetical systems where these
18781         may be defined as macros but not available in libraries.
18782
18783 2007-10-27  Bruno Haible  <bruno@clisp.org>
18784
18785         * doc/gnulib.texi: Invoke @firstparagraphindent.
18786         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
18787         changes in gnulib.
18788         (Source changes): New section.
18789
18790 2007-10-26  Bruno Haible  <bruno@clisp.org>
18791
18792         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
18793         borrowed from autoconf.
18794
18795 2007-10-26  Bruno Haible  <bruno@clisp.org>
18796
18797         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
18798         strerror returned the empty string. Needed on HP-UX 11.00.
18799
18800 2007-10-24  Micah Cowan  <micah@cowan.name>
18801
18802         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
18803         * build-aux/bootstrap: Remove support for now-unnecessary option,
18804         --cvs-user, and envvars CVS_USER, CVS_RSH.
18805
18806 2007-10-24  Jim Meyering  <meyering@redhat.com>
18807
18808         Avoid diagnostics from sha1sum when there is no cached checksum.
18809         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
18810         if the po.s1 file hasn't been created yet.
18811
18812         * build-aux/bootstrap: Sync from coreutils:
18813         2007-10-24  Jim Meyering  <meyering@redhat.com>
18814         Get gnulib from the git repository, not from an obsolete cvs one.
18815         * build-aux/bootstrap: Suggestion from Micah Cowan.
18816         2007-10-04  Jim Meyering  <jim@meyering.net>
18817         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
18818         (update_po_files): Work also when there are no .po files in po/.
18819
18820 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18821
18822         * README: Append ".git" to git and cg examples.
18823         Problem reported by Benoit Sigoure.
18824
18825 2007-10-23  Micah Cowan  <micah@cowan.name>
18826
18827         * users.txt: Add wget.
18828
18829 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18830
18831         Fix linking of some unistdio tests on FreeBSD.
18832         * modules/unistdio/u16-vsnprintf-tests
18833         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
18834         * modules/unistdio/u16-vsprintf-tests
18835         (test_u16_vsnprintf1_LDADD): Likewise.
18836         * modules/unistdio/u32-vsnprintf-tests
18837         (test_u32_vsnprintf1_LDADD): Likewise.
18838         * modules/unistdio/u32-vsprintf-tests
18839         (test_u32_vsprintf1_LDADD): Likewise.
18840         * modules/unistdio/u8-vsnprintf-tests
18841         (test_u8_vsnprintf1_LDADD): Likewise.
18842         * modules/unistdio/u8-vsprintf-tests
18843         (test_u8_vsprintf1_LDADD): Likewise.
18844         * modules/unistdio/ulc-vsnprintf-tests
18845         (test_ulc_vsnprintf1_LDADD): Likewise.
18846         * modules/unistdio/ulc-vsprintf-tests
18847         (test_ulc_vsprintf1_LDADD): Likewise.
18848
18849         Fix linking of some uniconv tests on FreeBSD.
18850         * modules/uniconv/u16-conv-from-enc-tests
18851         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
18852         * modules/uniconv/u16-conv-to-enc-tests
18853         (test_u16_conv_to_enc_LDADD): Likewise.
18854         * modules/uniconv/u16-strconv-from-enc-tests
18855         (test_u16_strconv_from_enc_LDADD): Likewise.
18856         * modules/uniconv/u16-strconv-to-enc-tests
18857         (test_u16_strconv_to_enc_LDADD): Likewise.
18858         * modules/uniconv/u32-conv-from-enc-tests
18859         (test_u32_conv_from_enc_LDADD): Likewise.
18860         * modules/uniconv/u32-conv-to-enc-tests
18861         (test_u32_conv_to_enc_LDADD): Likewise.
18862         * modules/uniconv/u32-strconv-from-enc-tests
18863         (test_u32_strconv_from_enc_LDADD): Likewise.
18864         * modules/uniconv/u32-strconv-to-enc-tests
18865         (test_u32_strconv_to_enc_LDADD): Likewise.
18866         * modules/uniconv/u8-conv-from-enc-tests
18867         (test_u8_conv_from_enc_LDADD): Likewise.
18868         * modules/uniconv/u8-conv-to-enc-tests
18869         (test_u8_conv_to_enc_LDADD): Likewise.
18870         * modules/uniconv/u8-strconv-from-enc-tests
18871         (test_u8_strconv_from_enc_LDADD): Likewise.
18872         * modules/uniconv/u8-strconv-to-enc-tests
18873         (test_u8_strconv_to_enc_LDADD): Likewise.
18874
18875 2007-10-22  Bruno Haible  <bruno@clisp.org>
18876
18877         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
18878         size.
18879
18880 2007-10-22  Eric Blake  <ebb9@byu.net>
18881
18882         Tweak x*printf documentation.
18883         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
18884         variable name and comments.
18885         Suggested by Bruno Haible.
18886
18887 2007-10-22  Bruno Haible  <bruno@clisp.org>
18888
18889         * lib/acl.c (copy_acl): Fix file name in comment.
18890
18891 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18892
18893         Fix Tru64 problem with stdbool.h.
18894         * lib/stdbool.in.h (false, true):
18895         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
18896         Don't declare as an enum in this situation; it runs afoul of Tru64.
18897         Problem reported by Steven M. Schweda in
18898         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
18899
18900 2007-10-22  Eric Blake  <ebb9@byu.net>
18901
18902         Also wrap vf?printf.
18903         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
18904         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
18905         (xvprintf, xvfprintf): New functions.
18906
18907 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18908
18909         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
18910         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
18911
18912         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
18913         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
18914
18915 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18916
18917         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
18918         by Bruno Haible.
18919
18920 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18921
18922         * lib/getloadavg.c
18923         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
18924         Undef `sys' after including sys/table.h, for Tru64 4.0D.
18925
18926         * tests/test-i-ring.c: Work for C89.
18927
18928 2007-10-22  Bruno Haible  <bruno@clisp.org>
18929
18930         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
18931         -1u, in preprocessor expression, so that we don't test for the bug
18932         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
18933         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
18934
18935 2007-10-22  Eric Blake  <ebb9@byu.net>
18936
18937         * tests/test-yesno.sh: Silence stderr during test.
18938
18939 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18940
18941         * modules/crypto/gc-camellia: New file.
18942
18943         * m4/gc-camellia.m4: New file.
18944
18945         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
18946
18947         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
18948
18949 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18950
18951         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
18952         --help to stdout.  Reported by sms@antinode.org (Steven
18953         M. Schweda).
18954
18955 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18956
18957         * users.txt: Fix link to libksba.
18958
18959 2007-10-21  Ben Pfaff  <blp@gnu.org>
18960
18961         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
18962         round.c roundf implementation that depends on floorf and ceilf to
18963         be tested unconditionally.
18964
18965 2007-10-21  Ben Pfaff  <blp@gnu.org>
18966
18967         * m4/check-libm-func.m4: Removed.
18968         * m4/check-math-lib.m4: New file.
18969         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
18970         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
18971         definition and lack of AC_LIBOBJ([roundf]).
18972         * m4/roundl.m4: Ditto, and similarly for roundl.
18973         * modules/round: Reference new m4 file.
18974         * modules/roundf: Ditto.
18975         * modules/roundl: Ditto.
18976         * tests/test-round2.c (main): Use ROUND instead of round.
18977         Bug report from Bruno Haible.
18978
18979 2007-10-21  Bruno Haible  <bruno@clisp.org>
18980
18981         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
18982         context.
18983
18984 2007-10-21  Bruno Haible  <bruno@clisp.org>
18985
18986         * tests/test-wcwidth.c (main): Allow negative result for some control
18987         characters.
18988
18989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
18990         Needed on OSF/1 5.1.
18991
18992 2007-10-21  Bruno Haible  <bruno@clisp.org>
18993
18994         * tests/test-floorf1.c: Include isnanf.h.
18995         (main): Use isnanf() instead of isnan().
18996         * tests/test-ceilf1.c: Include isnanf.h.
18997         (main): Use isnanf() instead of isnan().
18998         * tests/test-truncf1.c: Include isnanf.h.
18999         (main): Use isnanf() instead of isnan().
19000         * tests/test-roundf1.c: Include isnanf.h.
19001         (main): Use isnanf() instead of isnan().
19002
19003 2007-10-21  Eric Blake  <ebb9@byu.net>
19004
19005         * users.txt: Update URL for m4.
19006
19007 2007-10-21  Bruno Haible  <bruno@clisp.org>
19008
19009         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
19010
19011 2007-10-21  Bruno Haible  <bruno@clisp.org>
19012
19013         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
19014         Git's management files if the CVS files are not present.
19015
19016 2007-10-20  Bruno Haible  <bruno@clisp.org>
19017
19018         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
19019         gcc-3.4.x.
19020
19021 2007-10-20  Ben Pfaff  <blp@gnu.org>
19022
19023         * lib/math.in.h: Declare round, roundf, roundl if we are providing
19024         implementations.
19025         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
19026         * lib/round.c: New file.
19027         * lib/roundf.c: New file.
19028         * lib/roundl.c: New file.
19029         * m4/round.m4: New file.
19030         * m4/roundf.m4: New file.
19031         * m4/roundl.m4: New file.
19032         * m4/check-libm-func-m4: New file.
19033         * modules/math: Replace round, roundf, roundl related @VARS@ in
19034         math.in.h.
19035         * modules/round: New file.
19036         * modules/round-tests: New file.
19037         * modules/roundf: New file.
19038         * modules/roundf-tests: New file.
19039         * modules/roundl: New file.
19040         * modules/roundl-tests: New file.
19041         * tests/test-round1.c: New file.
19042         * tests/test-round2.c: New file.
19043         * tests/test-roundf1.c: New file.
19044         * tests/test-roundf2.c: New file.
19045         * tests/test-roundl.c: New file.
19046         * doc/functions/round.texi: Mention round module.
19047         * doc/functions/roundf.texi: Mention roundf module.
19048         * doc/functions/roundl.texi: Mention roundl module.
19049         * MODULES.html.sh: Mention new modules.
19050         Thanks to Bruno Haible for suggestions.
19051
19052 2007-10-20  Jim Meyering  <meyering@redhat.com>
19053
19054         * lib/xprintf.c: Include <config.h> unconditionally.
19055
19056         Change xprintf's license to GPL.
19057         * modules/xprintf (License): s/LGPL/GPL/, since this module
19058         depends on modules (exit and exitfail) which are GPL.
19059         Suggestion from Bruno Haible.
19060
19061         xprintf fixes.
19062         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
19063         Use a clearer diagnostic.
19064         Patch from Bruno Haible.
19065
19066 2007-10-20  Bruno Haible  <bruno@clisp.org>
19067
19068         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
19069         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
19070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19071
19072 2007-10-20  Bruno Haible  <bruno@clisp.org>
19073
19074         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
19075         precision in the comparison result > x - 1 or similar.
19076         * tests/test-ceilf2.c (correct_result_p): Likewise.
19077         * tests/test-truncf2.c (correct_result_p): Likewise.
19078         * tests/test-trunc2.c (correct_result_p): Likewise.
19079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19080
19081 2007-10-20  Bruno Haible  <bruno@clisp.org>
19082
19083         * modules/ceil: New file.
19084         * m4/ceil.m4: New file.
19085         * doc/functions/ceil.texi: Mention the 'ceil' module.
19086
19087 2007-10-20  Bruno Haible  <bruno@clisp.org>
19088
19089         * modules/floor: New file.
19090         * m4/floor.m4: New file.
19091         * doc/functions/floor.texi: Mention the 'floor' module.
19092
19093 2007-10-20  Bruno Haible  <bruno@clisp.org>
19094
19095         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
19096         of %a.
19097         * modules/floorf-tests (Depends-on): Likewise.
19098         * modules/truncf-tests (Depends-on): Likewise.
19099         * modules/trunc-tests (Depends-on): Likewise.
19100         Reported by Ben Pfaff.
19101
19102 2007-10-19  Jim Meyering  <meyering@redhat.com>
19103
19104         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
19105         Don't bother testing specific errno values.  Just test ferror.
19106
19107         New module: xprintf
19108         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
19109
19110 2007-10-19  Bruno Haible  <bruno@clisp.org>
19111
19112         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
19113         syntax.
19114         * modules/javaexec (Makefile.am): Likewise.
19115         * modules/relocatable-prog (Makefile.am): Likewise.
19116         Suggested by Jim Meyering.
19117
19118 2007-10-18  Bruno Haible  <bruno@clisp.org>
19119
19120         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
19121         Reported by Jim Meyering.
19122
19123 2007-10-18  Eric Blake  <ebb9@byu.net>
19124
19125         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
19126
19127 2007-10-18  Bruno Haible  <bruno@clisp.org>
19128
19129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
19130         the format string into writable memory. Needed in Fortify conditions.
19131
19132 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
19133             Bruno Haible  <bruno@clisp.org>
19134
19135         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
19136         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
19137         * modules/trim (Depends-on): Add mbchar.
19138         (configure.ac): Add gl_FUNC_MBRTOWC.
19139         (Makefile.am): Augment lib_SOURCES.
19140
19141 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19142
19143         Modify glob.c to use fstatat and dirfd, to simplify it.
19144         Suggested by Eric Blake.
19145         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
19146         Don't include <stdbool.h>; not used.
19147         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
19148         (link_exists_p): Simplify implementation, since we can now assume
19149         dirfd and fstatat.
19150         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
19151
19152 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19153
19154         * gnulib-tool (func_get_dependencies): Fix sed script to
19155         match only tests.
19156
19157 2007-10-17  Bruno Haible  <bruno@clisp.org>
19158
19159         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
19160         allow locale names without encoding suffix.
19161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19162         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19163
19164 2007-10-16  Bruno Haible  <bruno@clisp.org>
19165
19166         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
19167         * lib/getgroups.c (getgroups): Likewise.
19168         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
19169
19170 2007-10-16  Bruno Haible  <bruno@clisp.org>
19171
19172         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
19173         * modules/malloc-posix (License): Likewise.
19174         * modules/realloc-posix (License): Likewise.
19175         * modules/calloc-posix (License): Likewise.
19176         * modules/intprops (License): Change from GPL to LGPL, with
19177         Paul Eggert's approval.
19178
19179 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19180
19181         Merge glibc changes into lib/glob.c.
19182
19183         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
19184         2007-10-15 04:59:03 UTC.  Here are the changes:
19185
19186         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
19187
19188         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
19189
19190         * lib/glob.c: Add some branch prediction throughout.
19191
19192         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
19193
19194         [BZ #5103]
19195         * lib/glob.c (glob): Recognize patterns starting \/.
19196
19197         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
19198
19199         [BZ #3996]
19200         * lib/glob.c (attribute_hidden): Define if not defined.
19201         (glob): Unescape dirname, filename or username when needed and not
19202         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
19203         is NULL.  Handle unescaped [ in pattern without closing ].
19204         Don't pass GLOB_CHECK down to recursive glob for directories.
19205         (__glob_pattern_type): New function.
19206         (__glob_pattern_p): Implement using __glob_pattern_type.
19207         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
19208         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
19209         Remove unreachable code.
19210
19211         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
19212
19213         * lib/glob.c (glob_in_dir): Add some comments and asserts to
19214         explain why there are no leaks.
19215
19216         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
19217
19218         [BZ #3253]
19219         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
19220         time, rather allocate increasingly bigger arrays of pointers, if
19221         possible with alloca, if too large with malloc.
19222
19223 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19224
19225         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
19226         Problem reported by H.Merijn Brand in
19227         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
19228         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
19229         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19230
19231 2007-10-15  Bruno Haible  <bruno@clisp.org>
19232
19233         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
19234         with explicit rpl_ prefix.
19235         * lib/fopen.c (fopen): Likewise.
19236         * lib/freopen.c (freopen): Likewise.
19237         * lib/iconv.c (iconv): Likewise.
19238         * lib/iconv_close.c (iconv_close): Likewise.
19239
19240 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19241
19242         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
19243
19244 2007-10-15  Bruno Haible  <bruno@clisp.org>
19245
19246         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
19247         <stddef.h> instead of <stdlib.h> since we only need NULL.
19248         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19249
19250 2007-10-15  Bruno Haible  <bruno@clisp.org>
19251
19252         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
19253         Replace paragraph talking about LIBOBJS.
19254         Reported by Colin Watson <cjwatson@debian.org>.
19255
19256 2007-10-15  Bruno Haible  <bruno@clisp.org>
19257
19258         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
19259         <stdlib.h> before using NULL.
19260
19261 2007-10-15  Simon Josefsson  <simon@josefsson.org>
19262
19263         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
19264         Reported by Albert Chin <china@thewrittenword.com>.
19265
19266 2007-10-14  Bruno Haible  <bruno@clisp.org>
19267
19268         * modules/iconv_open-utf-tests: New file.
19269         * tests/test-iconv-utf.c: New file.
19270
19271         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
19272         * modules/iconv_open-utf: New file.
19273         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
19274         (iconv, iconv_close): New declarations.
19275         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
19276         be defined.
19277         (iconv_open): Add special handling of conversion between UTF-8 and
19278         UTF-{16,32}{BE,LE}.
19279         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
19280         * lib/iconv_close.c: New file.
19281         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
19282         gl_FUNC_ICONV_OPEN.
19283         (gl_FUNC_ICONV_OPEN): Use it.
19284         (gl_FUNC_ICONV_OPEN_UTF): New macro.
19285         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
19286         and REPLACE_ICONV_UTF.
19287         * modules/iconv_open (Depends-on): Add c-strcase.
19288         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
19289         ICONV_CONST.
19290         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
19291
19292 2007-10-13  Albert Chin  <china@thewrittenword.com>
19293             Bruno Haible  <bruno@clisp.org>
19294
19295         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
19296         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
19297
19298 2007-10-13  Bruno Haible  <bruno@clisp.org>
19299
19300         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
19301         defined, use the ISO C99 inline semantics.
19302         * lib/argp.h (ARGP_EI): Likewise.
19303
19304 2007-10-13  Bruno Haible  <bruno@clisp.org>
19305
19306         Handle 'inline' change in gcc 4.3.0.
19307         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
19308         argp_fmtstream_write, argp_fmtstream_set_lmargin,
19309         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
19310         argp_fmtstream_point): Disable 'extern' declaration if the function
19311         definition is going to be provided inline.
19312         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
19313         semantics, not the ISO C99 inline semantics.
19314         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
19315         'extern' declaration if the function definition is going to be provided
19316         inline.
19317         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
19318         the GNU C inline semantics, not the ISO C99 inline semantics. With
19319         GCC 4.2, avoid a warning.
19320
19321 2007-10-13  Bruno Haible  <bruno@clisp.org>
19322
19323         * lib/freading.h (freading): Enable the use of __freading for
19324         glibc >= 2.7.
19325         * lib/freading.c (freading): Likewise.
19326
19327 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19328
19329         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
19330         "warning: C99 inline functions are not supported; using GNU89".
19331
19332 2007-10-12  Bruno Haible  <bruno@clisp.org>
19333
19334         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
19335         of 2.
19336         * tests/test-ceilf2.c: New file.
19337         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
19338
19339         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
19340         * modules/ceilf-tests: Update.
19341
19342 2007-10-12  Bruno Haible  <bruno@clisp.org>
19343
19344         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
19345         of 2.
19346         * tests/test-floorf2.c: New file.
19347         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
19348
19349         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
19350         * modules/floorf-tests: Update.
19351
19352 2007-10-12  Bruno Haible  <bruno@clisp.org>
19353
19354         * tests/test-trunc2.c: New file.
19355         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
19356
19357         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
19358         * modules/trunc-tests: Update.
19359
19360 2007-10-12  Bruno Haible  <bruno@clisp.org>
19361
19362         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
19363         of 2.
19364         * tests/test-truncf2.c: New file.
19365         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
19366
19367         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
19368         * modules/truncf-tests: Update.
19369
19370 2007-10-11  Eric Blake  <ebb9@byu.net>
19371
19372         Don't claim strerror is broken on Interix.
19373         * doc/functions/strerror.texi (strerror): Known broken systems are
19374         now Solaris 8, and not Interix.
19375         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
19376         Interix on cross-compile.
19377         Reported by Martin Koeppe in
19378         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
19379
19380 2007-10-11  Bruno Haible  <bruno@clisp.org>
19381
19382         * modules/i-ring-tests: New file.
19383         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
19384         instead of assert.
19385
19386 2007-10-11  Bruno Haible  <bruno@clisp.org>
19387
19388         * modules/filenamecat-tests: New file.
19389         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
19390         * lib/filenamecat.c: Remove test code.
19391
19392 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19393
19394         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
19395
19396         * lib/strerror.c: Include <string.h> always, to test interface,
19397         and to remove the need for the dummy.
19398         Include intprops.h to compute width instead of doing it ourselves
19399         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
19400         (strerror): Define it to return NULL if there's no system strerror.
19401         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
19402         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
19403         ancient pre-strerror Unix systems well any more.  Saying "unknown
19404         system error" is enough.
19405         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
19406         simpler strerror.c implementation.
19407         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
19408         Simplify the tests to reflect the simpler strerror implementation.
19409         * modules/strerror (Depends-on): Add intprops.
19410
19411 2007-10-09  Eric Blake  <ebb9@byu.net>
19412
19413         Silence test-fpending.
19414         * modules/fpending-tests (Files): Add wrapper script.
19415         * tests/test-fpending.sh: New file.
19416
19417 2007-10-09  Bruno Haible  <bruno@clisp.org>
19418
19419         * MODULES.html.sh (func_module): Don't create a hyperlink for
19420         function names like 'printf_frexp'.
19421         (Misc): Add crc, memxor.
19422         (Characteristics of floating types): New section.
19423         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
19424         isnanf-nolibm, signbit, trunc, truncf, truncl.
19425         (Enhancements for ISO C 99 functions): New subsection Input/output.
19426         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
19427         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
19428         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
19429         (Compatibility checks for POSIX:2001 functions): Add clock-time.
19430         (Enhancements for POSIX:2001 functions): Add chdir-long.
19431         (File system functions): Add areadlink, chdir-safer, read-file.
19432         Remove cycle-check.
19433         (File system as inode set): New section.
19434         (Date and time): Add gethrxtime.
19435         (Multithreading): Add openmp.
19436         (Internationalization functions): Add localename.
19437         (Unicode string functions): Add unistr/u*-mbsnlen.
19438         (Support for maintaining and releasing projects): Add git-version-gen.
19439         (Lone files): Remove directories.
19440
19441 2007-10-08  Ben Pfaff  <blp@gnu.org>
19442
19443         * lib/xmalloca.h: Fix typo in comment.
19444
19445 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19446
19447         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
19448         when avoiding problems with integer overflow.  Use a portable test
19449         instead.
19450
19451 2007-10-08  Simon Josefsson  <simon@josefsson.org>
19452
19453         * modules/dummy (License): Change to LGPLv2+.
19454         * modules/float (License): Likewise
19455         * modules/realloc (License): Likewise
19456         * modules/stdlib (License): Likewise
19457
19458 2007-10-07  Bruno Haible  <bruno@clisp.org>
19459
19460         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
19461         * floor.c (TWO_MANT_DIG): Likewise.
19462         * ceil.c (TWO_MANT_DIG): Likewise.
19463         Reported by Ben Pfaff.
19464
19465 2007-10-07  Bruno Haible  <bruno@clisp.org>
19466
19467         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
19468         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
19469         * lib/frexp.c (FUNC): Likewise.
19470         * lib/printf-frexp.h (printf_frexp): Likewise.
19471         * lib/printf-frexpl.h (printf_frexpl): Likewise.
19472         * lib/printf-frexp.c (FUNC): Likewise.
19473         Suggested by Jim Meyering.
19474
19475 2007-10-07  Jim Meyering  <meyering@redhat.com>
19476
19477         Make xnanosleep's integer overflow test more robust.
19478         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
19479         so that gcc-4.3.0 doesn't optimize away this test for overflow.
19480
19481 2007-10-07  Bruno Haible  <bruno@clisp.org>
19482
19483         * NEWS: Mention the license change.
19484
19485         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
19486         abbreviations in the modules files.
19487
19488         Change copyright notice from GPLv2+ to GPLv3+.
19489         * README: Change copyright notice.
19490         * MODULES.html.sh: Likewise.
19491         * build-aux/bootstrap.conf: Likewise.
19492         * build-aux/config.libpath: Likewise.
19493         * build-aux/csharpcomp.sh.in: Likewise.
19494         * build-aux/csharpexec.sh.in: Likewise.
19495         * build-aux/install-reloc: Likewise.
19496         * build-aux/javacomp.sh.in: Likewise.
19497         * build-aux/javaexec.sh.in: Likewise.
19498         * build-aux/ldd.sh.in: Likewise.
19499         * build-aux/reloc-ldflags: Likewise.
19500         * build-aux/relocatable.sh.in: Likewise.
19501         * build-aux/x-to-1.in: Likewise.
19502         * check-module: Likewise.
19503         * config/srclistvars.sh: Likewise.
19504         * gnulib-tool: Likewise.
19505         * lib/acl-internal.h: Likewise.
19506         * lib/acl.c: Likewise.
19507         * lib/acl.h: Likewise.
19508         * lib/acl_entries.c: Likewise.
19509         * lib/areadlink-with-size.c: Likewise.
19510         * lib/areadlink.c: Likewise.
19511         * lib/areadlink.h: Likewise.
19512         * lib/argmatch.c: Likewise.
19513         * lib/argmatch.h: Likewise.
19514         * lib/argp-ba.c: Likewise.
19515         * lib/argp-eexst.c: Likewise.
19516         * lib/argp-fmtstream.c: Likewise.
19517         * lib/argp-fmtstream.h: Likewise.
19518         * lib/argp-fs-xinl.c: Likewise.
19519         * lib/argp-help.c: Likewise.
19520         * lib/argp-namefrob.h: Likewise.
19521         * lib/argp-parse.c: Likewise.
19522         * lib/argp-pin.c: Likewise.
19523         * lib/argp-pv.c: Likewise.
19524         * lib/argp-pvh.c: Likewise.
19525         * lib/argp-xinl.c: Likewise.
19526         * lib/argp.h: Likewise.
19527         * lib/at-func.c: Likewise.
19528         * lib/atanl.c: Likewise.
19529         * lib/backupfile.c: Likewise.
19530         * lib/backupfile.h: Likewise.
19531         * lib/basename.c: Likewise.
19532         * lib/binary-io.h: Likewise.
19533         * lib/byteswap.in.h: Likewise.
19534         * lib/c-stack.c: Likewise.
19535         * lib/c-stack.h: Likewise.
19536         * lib/c-strcasestr.c: Likewise.
19537         * lib/c-strcasestr.h: Likewise.
19538         * lib/c-strstr.c: Likewise.
19539         * lib/c-strstr.h: Likewise.
19540         * lib/c-strtod.c: Likewise.
19541         * lib/calloc.c: Likewise.
19542         * lib/canon-host.c: Likewise.
19543         * lib/canon-host.h: Likewise.
19544         * lib/canonicalize-lgpl.c: Likewise.
19545         * lib/canonicalize.c: Likewise.
19546         * lib/canonicalize.h: Likewise.
19547         * lib/ceil.c: Likewise.
19548         * lib/ceilf.c: Likewise.
19549         * lib/ceill.c: Likewise.
19550         * lib/chdir-long.c: Likewise.
19551         * lib/chdir-long.h: Likewise.
19552         * lib/chdir-safer.c: Likewise.
19553         * lib/chdir-safer.h: Likewise.
19554         * lib/chown.c: Likewise.
19555         * lib/classpath.c: Likewise.
19556         * lib/classpath.h: Likewise.
19557         * lib/clean-temp.c: Likewise.
19558         * lib/clean-temp.h: Likewise.
19559         * lib/cloexec.c: Likewise.
19560         * lib/close-stream.c: Likewise.
19561         * lib/closein.c: Likewise.
19562         * lib/closein.h: Likewise.
19563         * lib/closeout.c: Likewise.
19564         * lib/closeout.h: Likewise.
19565         * lib/concat-filename.c: Likewise.
19566         * lib/copy-file.c: Likewise.
19567         * lib/copy-file.h: Likewise.
19568         * lib/count-one-bits.h: Likewise.
19569         * lib/crc.c: Likewise.
19570         * lib/crc.h: Likewise.
19571         * lib/creat-safer.c: Likewise.
19572         * lib/csharpcomp.c: Likewise.
19573         * lib/csharpcomp.h: Likewise.
19574         * lib/csharpexec.c: Likewise.
19575         * lib/csharpexec.h: Likewise.
19576         * lib/cycle-check.c: Likewise.
19577         * lib/cycle-check.h: Likewise.
19578         * lib/diacrit.c: Likewise.
19579         * lib/diacrit.h: Likewise.
19580         * lib/diffseq.h: Likewise.
19581         * lib/dirchownmod.c: Likewise.
19582         * lib/dirent.in.h: Likewise.
19583         * lib/dirfd.c: Likewise.
19584         * lib/dirfd.h: Likewise.
19585         * lib/dirname.c: Likewise.
19586         * lib/dirname.h: Likewise.
19587         * lib/dummy.c: Likewise.
19588         * lib/dup-safer.c: Likewise.
19589         * lib/dup2.c: Likewise.
19590         * lib/eealloc.h: Likewise.
19591         * lib/error.c: Likewise.
19592         * lib/error.h: Likewise.
19593         * lib/euidaccess.c: Likewise.
19594         * lib/exclude.c: Likewise.
19595         * lib/exclude.h: Likewise.
19596         * lib/execute.c: Likewise.
19597         * lib/execute.h: Likewise.
19598         * lib/exitfail.c: Likewise.
19599         * lib/exitfail.h: Likewise.
19600         * lib/expl.c: Likewise.
19601         * lib/fatal-signal.c: Likewise.
19602         * lib/fatal-signal.h: Likewise.
19603         * lib/fbufmode.c: Likewise.
19604         * lib/fbufmode.h: Likewise.
19605         * lib/fchdir.c: Likewise.
19606         * lib/fchmodat.c: Likewise.
19607         * lib/fchownat.c: Likewise.
19608         * lib/fcntl--.h: Likewise.
19609         * lib/fcntl-safer.h: Likewise.
19610         * lib/fcntl.in.h: Likewise.
19611         * lib/fd-safer.c: Likewise.
19612         * lib/fflush.c: Likewise.
19613         * lib/file-has-acl.c: Likewise.
19614         * lib/file-set.c: Likewise.
19615         * lib/file-type.c: Likewise.
19616         * lib/file-type.h: Likewise.
19617         * lib/fileblocks.c: Likewise.
19618         * lib/filemode.c: Likewise.
19619         * lib/filemode.h: Likewise.
19620         * lib/filename.h: Likewise.
19621         * lib/filenamecat.c: Likewise.
19622         * lib/filenamecat.h: Likewise.
19623         * lib/findprog.c: Likewise.
19624         * lib/findprog.h: Likewise.
19625         * lib/float.in.h: Likewise.
19626         * lib/floor.c: Likewise.
19627         * lib/floorf.c: Likewise.
19628         * lib/floorl.c: Likewise.
19629         * lib/fopen-safer.c: Likewise.
19630         * lib/fopen.c: Likewise.
19631         * lib/fpending.c: Likewise.
19632         * lib/fpending.h: Likewise.
19633         * lib/fprintf.c: Likewise.
19634         * lib/fprintftime.h: Likewise.
19635         * lib/fpucw.h: Likewise.
19636         * lib/fpurge.c: Likewise.
19637         * lib/fpurge.h: Likewise.
19638         * lib/freadable.c: Likewise.
19639         * lib/freadable.h: Likewise.
19640         * lib/freadahead.c: Likewise.
19641         * lib/freadahead.h: Likewise.
19642         * lib/freading.c: Likewise.
19643         * lib/freading.h: Likewise.
19644         * lib/free.c: Likewise.
19645         * lib/freopen.c: Likewise.
19646         * lib/frexp.c: Likewise.
19647         * lib/frexpl.c: Likewise.
19648         * lib/fseek.c: Likewise.
19649         * lib/fseterr.c: Likewise.
19650         * lib/fseterr.h: Likewise.
19651         * lib/fstatat.c: Likewise.
19652         * lib/fstrcmp.c: Likewise.
19653         * lib/fstrcmp.h: Likewise.
19654         * lib/fsusage.c: Likewise.
19655         * lib/fsusage.h: Likewise.
19656         * lib/ftell.c: Likewise.
19657         * lib/ftello.c: Likewise.
19658         * lib/fts-cycle.c: Likewise.
19659         * lib/fts.c: Likewise.
19660         * lib/fts_.h: Likewise.
19661         * lib/full-read.c: Likewise.
19662         * lib/full-read.h: Likewise.
19663         * lib/full-write.c: Likewise.
19664         * lib/full-write.h: Likewise.
19665         * lib/fwritable.c: Likewise.
19666         * lib/fwritable.h: Likewise.
19667         * lib/fwriteerror.c: Likewise.
19668         * lib/fwriteerror.h: Likewise.
19669         * lib/fwriting.c: Likewise.
19670         * lib/fwriting.h: Likewise.
19671         * lib/gcd.c: Likewise.
19672         * lib/gcd.h: Likewise.
19673         * lib/getcwd.c: Likewise.
19674         * lib/getdate.h: Likewise.
19675         * lib/getdate.y: Likewise.
19676         * lib/getdomainname.c: Likewise.
19677         * lib/getdomainname.h: Likewise.
19678         * lib/getgroups.c: Likewise.
19679         * lib/gethostname.c: Likewise.
19680         * lib/gethrxtime.c: Likewise.
19681         * lib/gethrxtime.h: Likewise.
19682         * lib/getloadavg.c: Likewise.
19683         * lib/getndelim2.c: Likewise.
19684         * lib/getndelim2.h: Likewise.
19685         * lib/getnline.c: Likewise.
19686         * lib/getnline.h: Likewise.
19687         * lib/getopt.c: Likewise.
19688         * lib/getopt.in.h: Likewise.
19689         * lib/getopt1.c: Likewise.
19690         * lib/getopt_int.h: Likewise.
19691         * lib/getpagesize.h: Likewise.
19692         * lib/getsubopt.c: Likewise.
19693         * lib/gettime.c: Likewise.
19694         * lib/getugroups.c: Likewise.
19695         * lib/getugroups.h: Likewise.
19696         * lib/getusershell.c: Likewise.
19697         * lib/gl_anyavltree_list1.h: Likewise.
19698         * lib/gl_anyavltree_list2.h: Likewise.
19699         * lib/gl_anyhash_list1.h: Likewise.
19700         * lib/gl_anyhash_list2.h: Likewise.
19701         * lib/gl_anylinked_list1.h: Likewise.
19702         * lib/gl_anylinked_list2.h: Likewise.
19703         * lib/gl_anyrbtree_list1.h: Likewise.
19704         * lib/gl_anyrbtree_list2.h: Likewise.
19705         * lib/gl_anytree_list1.h: Likewise.
19706         * lib/gl_anytree_list2.h: Likewise.
19707         * lib/gl_anytree_oset.h: Likewise.
19708         * lib/gl_anytreehash_list1.h: Likewise.
19709         * lib/gl_anytreehash_list2.h: Likewise.
19710         * lib/gl_array_list.c: Likewise.
19711         * lib/gl_array_list.h: Likewise.
19712         * lib/gl_array_oset.c: Likewise.
19713         * lib/gl_array_oset.h: Likewise.
19714         * lib/gl_avltree_list.c: Likewise.
19715         * lib/gl_avltree_list.h: Likewise.
19716         * lib/gl_avltree_oset.c: Likewise.
19717         * lib/gl_avltree_oset.h: Likewise.
19718         * lib/gl_avltreehash_list.c: Likewise.
19719         * lib/gl_avltreehash_list.h: Likewise.
19720         * lib/gl_carray_list.c: Likewise.
19721         * lib/gl_carray_list.h: Likewise.
19722         * lib/gl_linked_list.c: Likewise.
19723         * lib/gl_linked_list.h: Likewise.
19724         * lib/gl_linkedhash_list.c: Likewise.
19725         * lib/gl_linkedhash_list.h: Likewise.
19726         * lib/gl_list.c: Likewise.
19727         * lib/gl_list.h: Likewise.
19728         * lib/gl_oset.c: Likewise.
19729         * lib/gl_oset.h: Likewise.
19730         * lib/gl_rbtree_list.c: Likewise.
19731         * lib/gl_rbtree_list.h: Likewise.
19732         * lib/gl_rbtree_oset.c: Likewise.
19733         * lib/gl_rbtree_oset.h: Likewise.
19734         * lib/gl_rbtreehash_list.c: Likewise.
19735         * lib/gl_rbtreehash_list.h: Likewise.
19736         * lib/gl_sublist.c: Likewise.
19737         * lib/gl_sublist.h: Likewise.
19738         * lib/group-member.c: Likewise.
19739         * lib/group-member.h: Likewise.
19740         * lib/hard-locale.c: Likewise.
19741         * lib/hard-locale.h: Likewise.
19742         * lib/hash-pjw.c: Likewise.
19743         * lib/hash-pjw.h: Likewise.
19744         * lib/hash-triple.c: Likewise.
19745         * lib/hash.c: Likewise.
19746         * lib/hash.h: Likewise.
19747         * lib/human.c: Likewise.
19748         * lib/human.h: Likewise.
19749         * lib/i-ring.c: Likewise.
19750         * lib/i-ring.h: Likewise.
19751         * lib/idcache.c: Likewise.
19752         * lib/imaxabs.c: Likewise.
19753         * lib/imaxdiv.c: Likewise.
19754         * lib/inet_pton.c: Likewise.
19755         * lib/inet_pton.h: Likewise.
19756         * lib/intprops.h: Likewise.
19757         * lib/inttostr.c: Likewise.
19758         * lib/inttostr.h: Likewise.
19759         * lib/inttypes.in.h: Likewise.
19760         * lib/isapipe.c: Likewise.
19761         * lib/isdir.c: Likewise.
19762         * lib/isnan.c: Likewise.
19763         * lib/isnan.h: Likewise.
19764         * lib/isnanf.c: Likewise.
19765         * lib/isnanf.h: Likewise.
19766         * lib/isnanl-nolibm.h: Likewise.
19767         * lib/isnanl.c: Likewise.
19768         * lib/isnanl.h: Likewise.
19769         * lib/javacomp.c: Likewise.
19770         * lib/javacomp.h: Likewise.
19771         * lib/javaexec.c: Likewise.
19772         * lib/javaexec.h: Likewise.
19773         * lib/javaversion.c: Likewise.
19774         * lib/javaversion.h: Likewise.
19775         * lib/javaversion.java: Likewise.
19776         * lib/lbrkprop.h: Likewise.
19777         * lib/lchmod.h: Likewise.
19778         * lib/lchown.c: Likewise.
19779         * lib/ldexpl.c: Likewise.
19780         * lib/linebreak.c: Likewise.
19781         * lib/linebreak.h: Likewise.
19782         * lib/linebuffer.c: Likewise.
19783         * lib/linebuffer.h: Likewise.
19784         * lib/locale.in.h: Likewise.
19785         * lib/logl.c: Likewise.
19786         * lib/long-options.c: Likewise.
19787         * lib/long-options.h: Likewise.
19788         * lib/lstat.c: Likewise.
19789         * lib/lstat.h: Likewise.
19790         * lib/math.in.h: Likewise.
19791         * lib/mbchar.c: Likewise.
19792         * lib/mbchar.h: Likewise.
19793         * lib/mbfile.h: Likewise.
19794         * lib/mbiter.h: Likewise.
19795         * lib/mbscasecmp.c: Likewise.
19796         * lib/mbscasestr.c: Likewise.
19797         * lib/mbschr.c: Likewise.
19798         * lib/mbscspn.c: Likewise.
19799         * lib/mbslen.c: Likewise.
19800         * lib/mbsncasecmp.c: Likewise.
19801         * lib/mbsnlen.c: Likewise.
19802         * lib/mbspbrk.c: Likewise.
19803         * lib/mbspcasecmp.c: Likewise.
19804         * lib/mbsrchr.c: Likewise.
19805         * lib/mbssep.c: Likewise.
19806         * lib/mbsspn.c: Likewise.
19807         * lib/mbsstr.c: Likewise.
19808         * lib/mbstok_r.c: Likewise.
19809         * lib/mbswidth.c: Likewise.
19810         * lib/mbswidth.h: Likewise.
19811         * lib/mbuiter.h: Likewise.
19812         * lib/memcasecmp.c: Likewise.
19813         * lib/memcasecmp.h: Likewise.
19814         * lib/memchr.c: Likewise.
19815         * lib/memcmp.c: Likewise.
19816         * lib/memcoll.c: Likewise.
19817         * lib/memcoll.h: Likewise.
19818         * lib/memcpy.c: Likewise.
19819         * lib/memrchr.c: Likewise.
19820         * lib/mkancesdirs.c: Likewise.
19821         * lib/mkdir-p.c: Likewise.
19822         * lib/mkdir-p.h: Likewise.
19823         * lib/mkdir.c: Likewise.
19824         * lib/mkdirat.c: Likewise.
19825         * lib/mkdtemp.c: Likewise.
19826         * lib/mkstemp-safer.c: Likewise.
19827         * lib/mkstemp.c: Likewise.
19828         * lib/modechange.c: Likewise.
19829         * lib/modechange.h: Likewise.
19830         * lib/mountlist.c: Likewise.
19831         * lib/mountlist.h: Likewise.
19832         * lib/mpsort.c: Likewise.
19833         * lib/nanosleep.c: Likewise.
19834         * lib/obstack.c: Likewise.
19835         * lib/obstack.h: Likewise.
19836         * lib/open-safer.c: Likewise.
19837         * lib/open.c: Likewise.
19838         * lib/openat-die.c: Likewise.
19839         * lib/openat-priv.h: Likewise.
19840         * lib/openat-proc.c: Likewise.
19841         * lib/openat.c: Likewise.
19842         * lib/openat.h: Likewise.
19843         * lib/pagealign_alloc.c: Likewise.
19844         * lib/pagealign_alloc.h: Likewise.
19845         * lib/physmem.c: Likewise.
19846         * lib/physmem.h: Likewise.
19847         * lib/pipe-safer.c: Likewise.
19848         * lib/pipe.c: Likewise.
19849         * lib/pipe.h: Likewise.
19850         * lib/posixtm.c: Likewise.
19851         * lib/posixtm.h: Likewise.
19852         * lib/posixver.c: Likewise.
19853         * lib/printf-frexp.c: Likewise.
19854         * lib/printf-frexp.h: Likewise.
19855         * lib/printf-frexpl.c: Likewise.
19856         * lib/printf-frexpl.h: Likewise.
19857         * lib/printf.c: Likewise.
19858         * lib/progname.c: Likewise.
19859         * lib/progname.h: Likewise.
19860         * lib/progreloc.c: Likewise.
19861         * lib/putenv.c: Likewise.
19862         * lib/quote.c: Likewise.
19863         * lib/quote.h: Likewise.
19864         * lib/quotearg.c: Likewise.
19865         * lib/quotearg.h: Likewise.
19866         * lib/raise.c: Likewise.
19867         * lib/readline.c: Likewise.
19868         * lib/readline.h: Likewise.
19869         * lib/readlink.c: Likewise.
19870         * lib/readtokens.c: Likewise.
19871         * lib/readtokens.h: Likewise.
19872         * lib/readtokens0.c: Likewise.
19873         * lib/readtokens0.h: Likewise.
19874         * lib/readutmp.c: Likewise.
19875         * lib/readutmp.h: Likewise.
19876         * lib/realloc.c: Likewise.
19877         * lib/relocwrapper.c: Likewise.
19878         * lib/rename-dest-slash.c: Likewise.
19879         * lib/rename.c: Likewise.
19880         * lib/rmdir.c: Likewise.
19881         * lib/rpmatch.c: Likewise.
19882         * lib/safe-read.c: Likewise.
19883         * lib/safe-read.h: Likewise.
19884         * lib/safe-write.c: Likewise.
19885         * lib/safe-write.h: Likewise.
19886         * lib/same-inode.h: Likewise.
19887         * lib/same.c: Likewise.
19888         * lib/same.h: Likewise.
19889         * lib/save-cwd.c: Likewise.
19890         * lib/save-cwd.h: Likewise.
19891         * lib/savedir.c: Likewise.
19892         * lib/savedir.h: Likewise.
19893         * lib/savewd.c: Likewise.
19894         * lib/savewd.h: Likewise.
19895         * lib/search.in.h: Likewise.
19896         * lib/setenv.c: Likewise.
19897         * lib/setenv.h: Likewise.
19898         * lib/settime.c: Likewise.
19899         * lib/sh-quote.c: Likewise.
19900         * lib/sh-quote.h: Likewise.
19901         * lib/sig2str.c: Likewise.
19902         * lib/sig2str.h: Likewise.
19903         * lib/signal.in.h: Likewise.
19904         * lib/signbitd.c: Likewise.
19905         * lib/signbitf.c: Likewise.
19906         * lib/signbitl.c: Likewise.
19907         * lib/sigprocmask.c: Likewise.
19908         * lib/sincosl.c: Likewise.
19909         * lib/sleep.c: Likewise.
19910         * lib/sprintf.c: Likewise.
19911         * lib/sqrtl.c: Likewise.
19912         * lib/stat-time.h: Likewise.
19913         * lib/stdio--.h: Likewise.
19914         * lib/stdio-safer.h: Likewise.
19915         * lib/stdlib--.h: Likewise.
19916         * lib/stdlib-safer.h: Likewise.
19917         * lib/stdlib.in.h: Likewise.
19918         * lib/stpcpy.c: Likewise.
19919         * lib/stpncpy.c: Likewise.
19920         * lib/strchrnul.c: Likewise.
19921         * lib/strcspn.c: Likewise.
19922         * lib/strerror.c: Likewise.
19923         * lib/strftime.c: Likewise.
19924         * lib/strftime.h: Likewise.
19925         * lib/striconveh.c: Likewise.
19926         * lib/striconveh.h: Likewise.
19927         * lib/striconveha.c: Likewise.
19928         * lib/striconveha.h: Likewise.
19929         * lib/stripslash.c: Likewise.
19930         * lib/strnlen1.c: Likewise.
19931         * lib/strnlen1.h: Likewise.
19932         * lib/strtod.c: Likewise.
19933         * lib/strtoimax.c: Likewise.
19934         * lib/strtok_r.c: Likewise.
19935         * lib/strtol.c: Likewise.
19936         * lib/strtoll.c: Likewise.
19937         * lib/strtoul.c: Likewise.
19938         * lib/strtoull.c: Likewise.
19939         * lib/sysexits.in.h: Likewise.
19940         * lib/tempname.c: Likewise.
19941         * lib/tempname.h: Likewise.
19942         * lib/timespec.h: Likewise.
19943         * lib/tls.c: Likewise.
19944         * lib/tls.h: Likewise.
19945         * lib/tmpdir.c: Likewise.
19946         * lib/tmpdir.h: Likewise.
19947         * lib/tmpfile-safer.c: Likewise.
19948         * lib/tmpfile.c: Likewise.
19949         * lib/trigl.c: Likewise.
19950         * lib/trigl.h: Likewise.
19951         * lib/trim.c: Likewise.
19952         * lib/trim.h: Likewise.
19953         * lib/trunc.c: Likewise.
19954         * lib/truncf.c: Likewise.
19955         * lib/truncl.c: Likewise.
19956         * lib/tsearch.c: Likewise.
19957         * lib/unicodeio.c: Likewise.
19958         * lib/unicodeio.h: Likewise.
19959         * lib/unistd--.h: Likewise.
19960         * lib/unistd-safer.h: Likewise.
19961         * lib/unistdio/ulc-fprintf.c: Likewise.
19962         * lib/unistdio/ulc-vfprintf.c: Likewise.
19963         * lib/unlinkdir.c: Likewise.
19964         * lib/unlinkdir.h: Likewise.
19965         * lib/unlocked-io.h: Likewise.
19966         * lib/unsetenv.c: Likewise.
19967         * lib/userspec.c: Likewise.
19968         * lib/utime.c: Likewise.
19969         * lib/utimecmp.c: Likewise.
19970         * lib/utimecmp.h: Likewise.
19971         * lib/utimens.c: Likewise.
19972         * lib/verify.h: Likewise.
19973         * lib/verror.c: Likewise.
19974         * lib/verror.h: Likewise.
19975         * lib/version-etc-fsf.c: Likewise.
19976         * lib/version-etc.c: Likewise.
19977         * lib/version-etc.h: Likewise.
19978         * lib/vfprintf.c: Likewise.
19979         * lib/vprintf.c: Likewise.
19980         * lib/vsprintf.c: Likewise.
19981         * lib/w32spawn.h: Likewise.
19982         * lib/wait-process.c: Likewise.
19983         * lib/wait-process.h: Likewise.
19984         * lib/wcwidth.c: Likewise.
19985         * lib/write-any-file.c: Likewise.
19986         * lib/xalloc-die.c: Likewise.
19987         * lib/xalloc.h: Likewise.
19988         * lib/xasprintf.c: Likewise.
19989         * lib/xgetcwd.c: Likewise.
19990         * lib/xgetcwd.h: Likewise.
19991         * lib/xgetdomainname.c: Likewise.
19992         * lib/xgetdomainname.h: Likewise.
19993         * lib/xgethostname.c: Likewise.
19994         * lib/xmalloc.c: Likewise.
19995         * lib/xmalloca.c: Likewise.
19996         * lib/xmalloca.h: Likewise.
19997         * lib/xmemcoll.c: Likewise.
19998         * lib/xnanosleep.c: Likewise.
19999         * lib/xreadlink.c: Likewise.
20000         * lib/xreadlink.h: Likewise.
20001         * lib/xsetenv.c: Likewise.
20002         * lib/xsetenv.h: Likewise.
20003         * lib/xstriconv.c: Likewise.
20004         * lib/xstriconv.h: Likewise.
20005         * lib/xstrndup.c: Likewise.
20006         * lib/xstrndup.h: Likewise.
20007         * lib/xstrtod.c: Likewise.
20008         * lib/xstrtod.h: Likewise.
20009         * lib/xstrtol-error.c: Likewise.
20010         * lib/xstrtol.c: Likewise.
20011         * lib/xstrtol.h: Likewise.
20012         * lib/xtime.h: Likewise.
20013         * lib/xvasprintf.c: Likewise.
20014         * lib/xvasprintf.h: Likewise.
20015         * lib/yesno.c: Likewise.
20016         * lib/yesno.h: Likewise.
20017         * posix-modules: Likewise.
20018         * tests/test-alloca-opt.c: Likewise.
20019         * tests/test-arcfour.c: Likewise.
20020         * tests/test-arctwo.c: Likewise.
20021         * tests/test-argmatch.c: Likewise.
20022         * tests/test-argp-2.sh: Likewise.
20023         * tests/test-argp.c: Likewise.
20024         * tests/test-arpa_inet.c: Likewise.
20025         * tests/test-array_list.c: Likewise.
20026         * tests/test-array_oset.c: Likewise.
20027         * tests/test-atexit.c: Likewise.
20028         * tests/test-avltree_list.c: Likewise.
20029         * tests/test-avltree_oset.c: Likewise.
20030         * tests/test-avltreehash_list.c: Likewise.
20031         * tests/test-base64.c: Likewise.
20032         * tests/test-binary-io.c: Likewise.
20033         * tests/test-byteswap.c: Likewise.
20034         * tests/test-c-ctype.c: Likewise.
20035         * tests/test-c-strcasecmp.c: Likewise.
20036         * tests/test-c-strcasestr.c: Likewise.
20037         * tests/test-c-strncasecmp.c: Likewise.
20038         * tests/test-c-strstr.c: Likewise.
20039         * tests/test-canonicalize-lgpl.c: Likewise.
20040         * tests/test-canonicalize.c: Likewise.
20041         * tests/test-carray_list.c: Likewise.
20042         * tests/test-ceilf.c: Likewise.
20043         * tests/test-ceill.c: Likewise.
20044         * tests/test-count-one-bits.c: Likewise.
20045         * tests/test-crc.c: Likewise.
20046         * tests/test-dirname.c: Likewise.
20047         * tests/test-fbufmode.c: Likewise.
20048         * tests/test-fcntl.c: Likewise.
20049         * tests/test-fflush.c: Likewise.
20050         * tests/test-floorf.c: Likewise.
20051         * tests/test-floorl.c: Likewise.
20052         * tests/test-fopen.c: Likewise.
20053         * tests/test-fprintf-posix.c: Likewise.
20054         * tests/test-fprintf-posix.h: Likewise.
20055         * tests/test-fpurge.c: Likewise.
20056         * tests/test-freadable.c: Likewise.
20057         * tests/test-freadahead.c: Likewise.
20058         * tests/test-freading.c: Likewise.
20059         * tests/test-freopen.c: Likewise.
20060         * tests/test-frexp.c: Likewise.
20061         * tests/test-frexpl.c: Likewise.
20062         * tests/test-fseek.c: Likewise.
20063         * tests/test-fseeko.c: Likewise.
20064         * tests/test-fseterr.c: Likewise.
20065         * tests/test-fstrcmp.c: Likewise.
20066         * tests/test-ftell.c: Likewise.
20067         * tests/test-ftello.c: Likewise.
20068         * tests/test-fwritable.c: Likewise.
20069         * tests/test-fwriting.c: Likewise.
20070         * tests/test-getaddrinfo.c: Likewise.
20071         * tests/test-getpass.c: Likewise.
20072         * tests/test-gettimeofday.c: Likewise.
20073         * tests/test-hmac-md5.c: Likewise.
20074         * tests/test-hmac-sha1.c: Likewise.
20075         * tests/test-iconv.c: Likewise.
20076         * tests/test-iconvme.c: Likewise.
20077         * tests/test-inttypes.c: Likewise.
20078         * tests/test-isnan.c: Likewise.
20079         * tests/test-isnanf.c: Likewise.
20080         * tests/test-isnanl-nolibm.c: Likewise.
20081         * tests/test-isnanl.c: Likewise.
20082         * tests/test-isnanl.h: Likewise.
20083         * tests/test-ldexpl.c: Likewise.
20084         * tests/test-linked_list.c: Likewise.
20085         * tests/test-linkedhash_list.c: Likewise.
20086         * tests/test-locale.c: Likewise.
20087         * tests/test-localename.c: Likewise.
20088         * tests/test-lock.c: Likewise.
20089         * tests/test-lseek.c: Likewise.
20090         * tests/test-malloca.c: Likewise.
20091         * tests/test-math.c: Likewise.
20092         * tests/test-mbscasecmp.c: Likewise.
20093         * tests/test-mbscasestr1.c: Likewise.
20094         * tests/test-mbscasestr2.c: Likewise.
20095         * tests/test-mbscasestr3.c: Likewise.
20096         * tests/test-mbscasestr4.c: Likewise.
20097         * tests/test-mbschr.c: Likewise.
20098         * tests/test-mbscspn.c: Likewise.
20099         * tests/test-mbsncasecmp.c: Likewise.
20100         * tests/test-mbspbrk.c: Likewise.
20101         * tests/test-mbspcasecmp.c: Likewise.
20102         * tests/test-mbsrchr.c: Likewise.
20103         * tests/test-mbsspn.c: Likewise.
20104         * tests/test-mbsstr1.c: Likewise.
20105         * tests/test-mbsstr2.c: Likewise.
20106         * tests/test-mbsstr3.c: Likewise.
20107         * tests/test-md5.c: Likewise.
20108         * tests/test-memmem.c: Likewise.
20109         * tests/test-netinet_in.c: Likewise.
20110         * tests/test-open.c: Likewise.
20111         * tests/test-printf-frexp.c: Likewise.
20112         * tests/test-printf-frexpl.c: Likewise.
20113         * tests/test-printf-posix.c: Likewise.
20114         * tests/test-printf-posix.h: Likewise.
20115         * tests/test-rbtree_list.c: Likewise.
20116         * tests/test-rbtree_oset.c: Likewise.
20117         * tests/test-rbtreehash_list.c: Likewise.
20118         * tests/test-read-file.c: Likewise.
20119         * tests/test-rijndael.c: Likewise.
20120         * tests/test-search.c: Likewise.
20121         * tests/test-signbit.c: Likewise.
20122         * tests/test-sleep.c: Likewise.
20123         * tests/test-snprintf-posix.c: Likewise.
20124         * tests/test-snprintf-posix.h: Likewise.
20125         * tests/test-snprintf.c: Likewise.
20126         * tests/test-sprintf-posix.c: Likewise.
20127         * tests/test-sprintf-posix.h: Likewise.
20128         * tests/test-stat-time.c: Likewise.
20129         * tests/test-stdbool.c: Likewise.
20130         * tests/test-stdint.c: Likewise.
20131         * tests/test-stdio.c: Likewise.
20132         * tests/test-stdlib.c: Likewise.
20133         * tests/test-stpncpy.c: Likewise.
20134         * tests/test-strcasestr.c: Likewise.
20135         * tests/test-striconv.c: Likewise.
20136         * tests/test-striconveh.c: Likewise.
20137         * tests/test-striconveha.c: Likewise.
20138         * tests/test-string.c: Likewise.
20139         * tests/test-sys_select.c: Likewise.
20140         * tests/test-sys_socket.c: Likewise.
20141         * tests/test-sys_stat.c: Likewise.
20142         * tests/test-sys_time.c: Likewise.
20143         * tests/test-sysexits.c: Likewise.
20144         * tests/test-time.c: Likewise.
20145         * tests/test-tls.c: Likewise.
20146         * tests/test-trunc.c: Likewise.
20147         * tests/test-truncf.c: Likewise.
20148         * tests/test-truncl.c: Likewise.
20149         * tests/test-unistd.c: Likewise.
20150         * tests/test-vasnprintf-posix.c: Likewise.
20151         * tests/test-vasnprintf-posix2.c: Likewise.
20152         * tests/test-vasnprintf.c: Likewise.
20153         * tests/test-vasprintf-posix.c: Likewise.
20154         * tests/test-vasprintf.c: Likewise.
20155         * tests/test-verify.c: Likewise.
20156         * tests/test-vfprintf-posix.c: Likewise.
20157         * tests/test-vprintf-posix.c: Likewise.
20158         * tests/test-vsnprintf-posix.c: Likewise.
20159         * tests/test-vsnprintf.c: Likewise.
20160         * tests/test-vsprintf-posix.c: Likewise.
20161         * tests/test-wchar.c: Likewise.
20162         * tests/test-wctype.c: Likewise.
20163         * tests/test-wcwidth.c: Likewise.
20164         * tests/test-xstrtol.c: Likewise.
20165         * tests/test-xvasprintf.c: Likewise.
20166         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20167         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20168         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20169         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20170         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20171         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20172         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20173         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20174         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20175         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20176         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20177         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20178         * tests/uniname/test-uninames.c: Likewise.
20179         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20180         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
20181         * tests/unistdio/test-u16-printf1.h: Likewise.
20182         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20183         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20184         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20185         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20186         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20187         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20188         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20189         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
20190         * tests/unistdio/test-u32-printf1.h: Likewise.
20191         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20192         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20193         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20194         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20195         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20196         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20197         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20198         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
20199         * tests/unistdio/test-u8-printf1.h: Likewise.
20200         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20201         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20202         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20203         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20204         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20205         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20206         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20207         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
20208         * tests/unistdio/test-ulc-printf1.h: Likewise.
20209         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20210         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20211         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20212         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20213         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20214         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20215         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20216         * tests/uniwidth/test-u16-width.c: Likewise.
20217         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20218         * tests/uniwidth/test-u32-width.c: Likewise.
20219         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20220         * tests/uniwidth/test-u8-width.c: Likewise.
20221         * tests/uniwidth/test-uc_width.c: Likewise.
20222         * config/srclist-update: Likewise.
20223         (fixlicense): Update to GPLv3+.
20224
20225         Change copyright notice from LGPLv2.1+ to LGPLv3+.
20226         * tests/test-tsearch.c: Change copyright notice.
20227
20228         Change copyright notice from LGPLv2.0+ to LGPLv3+.
20229         * lib/c-strcaseeq.h: Change copyright notice.
20230         * lib/streq.h: Likewise.
20231         * lib/uniconv.h: Likewise.
20232         * lib/uniconv/u-conv-from-enc.h: Likewise.
20233         * lib/uniconv/u-conv-to-enc.h: Likewise.
20234         * lib/uniconv/u-strconv-from-enc.h: Likewise.
20235         * lib/uniconv/u-strconv-to-enc.h: Likewise.
20236         * lib/uniconv/u16-conv-from-enc.c: Likewise.
20237         * lib/uniconv/u16-conv-to-enc.c: Likewise.
20238         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
20239         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
20240         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
20241         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
20242         * lib/uniconv/u32-conv-from-enc.c: Likewise.
20243         * lib/uniconv/u32-conv-to-enc.c: Likewise.
20244         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
20245         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
20246         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
20247         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
20248         * lib/uniconv/u8-conv-from-enc.c: Likewise.
20249         * lib/uniconv/u8-conv-to-enc.c: Likewise.
20250         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
20251         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
20252         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
20253         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
20254         * lib/uniname.h: Likewise.
20255         * lib/uniname/uniname.c: Likewise.
20256         * lib/unistdio.h: Likewise.
20257         * lib/unistdio/u-asnprintf.h: Likewise.
20258         * lib/unistdio/u-asprintf.h: Likewise.
20259         * lib/unistdio/u-printf-args.c: Likewise.
20260         * lib/unistdio/u-printf-args.h: Likewise.
20261         * lib/unistdio/u-printf-parse.h: Likewise.
20262         * lib/unistdio/u-snprintf.h: Likewise.
20263         * lib/unistdio/u-sprintf.h: Likewise.
20264         * lib/unistdio/u-vasprintf.h: Likewise.
20265         * lib/unistdio/u-vsnprintf.h: Likewise.
20266         * lib/unistdio/u-vsprintf.h: Likewise.
20267         * lib/unistdio/u16-asnprintf.c: Likewise.
20268         * lib/unistdio/u16-asprintf.c: Likewise.
20269         * lib/unistdio/u16-printf-parse.c: Likewise.
20270         * lib/unistdio/u16-snprintf.c: Likewise.
20271         * lib/unistdio/u16-sprintf.c: Likewise.
20272         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
20273         * lib/unistdio/u16-u16-asprintf.c: Likewise.
20274         * lib/unistdio/u16-u16-snprintf.c: Likewise.
20275         * lib/unistdio/u16-u16-sprintf.c: Likewise.
20276         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
20277         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
20278         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
20279         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
20280         * lib/unistdio/u16-vasnprintf.c: Likewise.
20281         * lib/unistdio/u16-vasprintf.c: Likewise.
20282         * lib/unistdio/u16-vsnprintf.c: Likewise.
20283         * lib/unistdio/u16-vsprintf.c: Likewise.
20284         * lib/unistdio/u32-asnprintf.c: Likewise.
20285         * lib/unistdio/u32-asprintf.c: Likewise.
20286         * lib/unistdio/u32-printf-parse.c: Likewise.
20287         * lib/unistdio/u32-snprintf.c: Likewise.
20288         * lib/unistdio/u32-sprintf.c: Likewise.
20289         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
20290         * lib/unistdio/u32-u32-asprintf.c: Likewise.
20291         * lib/unistdio/u32-u32-snprintf.c: Likewise.
20292         * lib/unistdio/u32-u32-sprintf.c: Likewise.
20293         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
20294         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
20295         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
20296         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
20297         * lib/unistdio/u32-vasnprintf.c: Likewise.
20298         * lib/unistdio/u32-vasprintf.c: Likewise.
20299         * lib/unistdio/u32-vsnprintf.c: Likewise.
20300         * lib/unistdio/u32-vsprintf.c: Likewise.
20301         * lib/unistdio/u8-asnprintf.c: Likewise.
20302         * lib/unistdio/u8-asprintf.c: Likewise.
20303         * lib/unistdio/u8-printf-parse.c: Likewise.
20304         * lib/unistdio/u8-snprintf.c: Likewise.
20305         * lib/unistdio/u8-sprintf.c: Likewise.
20306         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
20307         * lib/unistdio/u8-u8-asprintf.c: Likewise.
20308         * lib/unistdio/u8-u8-snprintf.c: Likewise.
20309         * lib/unistdio/u8-u8-sprintf.c: Likewise.
20310         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
20311         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
20312         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
20313         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
20314         * lib/unistdio/u8-vasnprintf.c: Likewise.
20315         * lib/unistdio/u8-vasprintf.c: Likewise.
20316         * lib/unistdio/u8-vsnprintf.c: Likewise.
20317         * lib/unistdio/u8-vsprintf.c: Likewise.
20318         * lib/unistdio/ulc-asnprintf.c: Likewise.
20319         * lib/unistdio/ulc-asprintf.c: Likewise.
20320         * lib/unistdio/ulc-printf-parse.c: Likewise.
20321         * lib/unistdio/ulc-snprintf.c: Likewise.
20322         * lib/unistdio/ulc-sprintf.c: Likewise.
20323         * lib/unistdio/ulc-vasnprintf.c: Likewise.
20324         * lib/unistdio/ulc-vasprintf.c: Likewise.
20325         * lib/unistdio/ulc-vsnprintf.c: Likewise.
20326         * lib/unistdio/ulc-vsprintf.c: Likewise.
20327         * lib/unistr.h: Likewise.
20328         * lib/unistr/u-cpy-alloc.h: Likewise.
20329         * lib/unistr/u-cpy.h: Likewise.
20330         * lib/unistr/u-endswith.h: Likewise.
20331         * lib/unistr/u-move.h: Likewise.
20332         * lib/unistr/u-set.h: Likewise.
20333         * lib/unistr/u-startswith.h: Likewise.
20334         * lib/unistr/u-stpcpy.h: Likewise.
20335         * lib/unistr/u-stpncpy.h: Likewise.
20336         * lib/unistr/u-strcat.h: Likewise.
20337         * lib/unistr/u-strcpy.h: Likewise.
20338         * lib/unistr/u-strcspn.h: Likewise.
20339         * lib/unistr/u-strdup.h: Likewise.
20340         * lib/unistr/u-strlen.h: Likewise.
20341         * lib/unistr/u-strncat.h: Likewise.
20342         * lib/unistr/u-strncpy.h: Likewise.
20343         * lib/unistr/u-strnlen.h: Likewise.
20344         * lib/unistr/u-strpbrk.h: Likewise.
20345         * lib/unistr/u-strspn.h: Likewise.
20346         * lib/unistr/u-strstr.h: Likewise.
20347         * lib/unistr/u-strtok.h: Likewise.
20348         * lib/unistr/u16-check.c: Likewise.
20349         * lib/unistr/u16-chr.c: Likewise.
20350         * lib/unistr/u16-cmp.c: Likewise.
20351         * lib/unistr/u16-cpy-alloc.c: Likewise.
20352         * lib/unistr/u16-cpy.c: Likewise.
20353         * lib/unistr/u16-endswith.c: Likewise.
20354         * lib/unistr/u16-mblen.c: Likewise.
20355         * lib/unistr/u16-mbsnlen.c: Likewise.
20356         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20357         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20358         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20359         * lib/unistr/u16-mbtouc.c: Likewise.
20360         * lib/unistr/u16-mbtoucr.c: Likewise.
20361         * lib/unistr/u16-move.c: Likewise.
20362         * lib/unistr/u16-next.c: Likewise.
20363         * lib/unistr/u16-prev.c: Likewise.
20364         * lib/unistr/u16-set.c: Likewise.
20365         * lib/unistr/u16-startswith.c: Likewise.
20366         * lib/unistr/u16-stpcpy.c: Likewise.
20367         * lib/unistr/u16-stpncpy.c: Likewise.
20368         * lib/unistr/u16-strcat.c: Likewise.
20369         * lib/unistr/u16-strchr.c: Likewise.
20370         * lib/unistr/u16-strcmp.c: Likewise.
20371         * lib/unistr/u16-strcpy.c: Likewise.
20372         * lib/unistr/u16-strcspn.c: Likewise.
20373         * lib/unistr/u16-strdup.c: Likewise.
20374         * lib/unistr/u16-strlen.c: Likewise.
20375         * lib/unistr/u16-strmblen.c: Likewise.
20376         * lib/unistr/u16-strmbtouc.c: Likewise.
20377         * lib/unistr/u16-strncat.c: Likewise.
20378         * lib/unistr/u16-strncmp.c: Likewise.
20379         * lib/unistr/u16-strncpy.c: Likewise.
20380         * lib/unistr/u16-strnlen.c: Likewise.
20381         * lib/unistr/u16-strpbrk.c: Likewise.
20382         * lib/unistr/u16-strrchr.c: Likewise.
20383         * lib/unistr/u16-strspn.c: Likewise.
20384         * lib/unistr/u16-strstr.c: Likewise.
20385         * lib/unistr/u16-strtok.c: Likewise.
20386         * lib/unistr/u16-to-u32.c: Likewise.
20387         * lib/unistr/u16-to-u8.c: Likewise.
20388         * lib/unistr/u16-uctomb-aux.c: Likewise.
20389         * lib/unistr/u16-uctomb.c: Likewise.
20390         * lib/unistr/u32-check.c: Likewise.
20391         * lib/unistr/u32-chr.c: Likewise.
20392         * lib/unistr/u32-cmp.c: Likewise.
20393         * lib/unistr/u32-cpy-alloc.c: Likewise.
20394         * lib/unistr/u32-cpy.c: Likewise.
20395         * lib/unistr/u32-endswith.c: Likewise.
20396         * lib/unistr/u32-mblen.c: Likewise.
20397         * lib/unistr/u32-mbsnlen.c: Likewise.
20398         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20399         * lib/unistr/u32-mbtouc.c: Likewise.
20400         * lib/unistr/u32-mbtoucr.c: Likewise.
20401         * lib/unistr/u32-move.c: Likewise.
20402         * lib/unistr/u32-next.c: Likewise.
20403         * lib/unistr/u32-prev.c: Likewise.
20404         * lib/unistr/u32-set.c: Likewise.
20405         * lib/unistr/u32-startswith.c: Likewise.
20406         * lib/unistr/u32-stpcpy.c: Likewise.
20407         * lib/unistr/u32-stpncpy.c: Likewise.
20408         * lib/unistr/u32-strcat.c: Likewise.
20409         * lib/unistr/u32-strchr.c: Likewise.
20410         * lib/unistr/u32-strcmp.c: Likewise.
20411         * lib/unistr/u32-strcpy.c: Likewise.
20412         * lib/unistr/u32-strcspn.c: Likewise.
20413         * lib/unistr/u32-strdup.c: Likewise.
20414         * lib/unistr/u32-strlen.c: Likewise.
20415         * lib/unistr/u32-strmblen.c: Likewise.
20416         * lib/unistr/u32-strmbtouc.c: Likewise.
20417         * lib/unistr/u32-strncat.c: Likewise.
20418         * lib/unistr/u32-strncmp.c: Likewise.
20419         * lib/unistr/u32-strncpy.c: Likewise.
20420         * lib/unistr/u32-strnlen.c: Likewise.
20421         * lib/unistr/u32-strpbrk.c: Likewise.
20422         * lib/unistr/u32-strrchr.c: Likewise.
20423         * lib/unistr/u32-strspn.c: Likewise.
20424         * lib/unistr/u32-strstr.c: Likewise.
20425         * lib/unistr/u32-strtok.c: Likewise.
20426         * lib/unistr/u32-to-u16.c: Likewise.
20427         * lib/unistr/u32-to-u8.c: Likewise.
20428         * lib/unistr/u32-uctomb.c: Likewise.
20429         * lib/unistr/u8-check.c: Likewise.
20430         * lib/unistr/u8-chr.c: Likewise.
20431         * lib/unistr/u8-cmp.c: Likewise.
20432         * lib/unistr/u8-cpy-alloc.c: Likewise.
20433         * lib/unistr/u8-cpy.c: Likewise.
20434         * lib/unistr/u8-endswith.c: Likewise.
20435         * lib/unistr/u8-mblen.c: Likewise.
20436         * lib/unistr/u8-mbsnlen.c: Likewise.
20437         * lib/unistr/u8-mbtouc-aux.c: Likewise.
20438         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20439         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20440         * lib/unistr/u8-mbtouc.c: Likewise.
20441         * lib/unistr/u8-mbtoucr.c: Likewise.
20442         * lib/unistr/u8-move.c: Likewise.
20443         * lib/unistr/u8-next.c: Likewise.
20444         * lib/unistr/u8-prev.c: Likewise.
20445         * lib/unistr/u8-set.c: Likewise.
20446         * lib/unistr/u8-startswith.c: Likewise.
20447         * lib/unistr/u8-stpcpy.c: Likewise.
20448         * lib/unistr/u8-stpncpy.c: Likewise.
20449         * lib/unistr/u8-strcat.c: Likewise.
20450         * lib/unistr/u8-strchr.c: Likewise.
20451         * lib/unistr/u8-strcmp.c: Likewise.
20452         * lib/unistr/u8-strcpy.c: Likewise.
20453         * lib/unistr/u8-strcspn.c: Likewise.
20454         * lib/unistr/u8-strdup.c: Likewise.
20455         * lib/unistr/u8-strlen.c: Likewise.
20456         * lib/unistr/u8-strmblen.c: Likewise.
20457         * lib/unistr/u8-strmbtouc.c: Likewise.
20458         * lib/unistr/u8-strncat.c: Likewise.
20459         * lib/unistr/u8-strncmp.c: Likewise.
20460         * lib/unistr/u8-strncpy.c: Likewise.
20461         * lib/unistr/u8-strnlen.c: Likewise.
20462         * lib/unistr/u8-strpbrk.c: Likewise.
20463         * lib/unistr/u8-strrchr.c: Likewise.
20464         * lib/unistr/u8-strspn.c: Likewise.
20465         * lib/unistr/u8-strstr.c: Likewise.
20466         * lib/unistr/u8-strtok.c: Likewise.
20467         * lib/unistr/u8-to-u16.c: Likewise.
20468         * lib/unistr/u8-to-u32.c: Likewise.
20469         * lib/unistr/u8-uctomb-aux.c: Likewise.
20470         * lib/unistr/u8-uctomb.c: Likewise.
20471         * lib/unitypes.h: Likewise.
20472         * lib/uniwidth.h: Likewise.
20473         * lib/uniwidth/cjk.h: Likewise.
20474         * lib/uniwidth/u16-strwidth.c: Likewise.
20475         * lib/uniwidth/u16-width.c: Likewise.
20476         * lib/uniwidth/u32-strwidth.c: Likewise.
20477         * lib/uniwidth/u32-width.c: Likewise.
20478         * lib/uniwidth/u8-strwidth.c: Likewise.
20479         * lib/uniwidth/u8-width.c: Likewise.
20480         * lib/uniwidth/width.c: Likewise.
20481
20482 2007-10-07  Bruno Haible  <bruno@clisp.org>
20483
20484         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
20485         The file is still under LGPL (see modules/inttypes).
20486
20487 2007-10-06  Bruno Haible  <bruno@clisp.org>
20488
20489         * modules/trunc (Dependencies): Add 'extensions'.
20490         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
20491         Reported by Ben Pfaff <blp@gnu.org>.
20492
20493 2007-10-06  Bruno Haible  <bruno@clisp.org>
20494
20495         * modules/freopen-tests: New file.
20496         * tests/test-freopen.c: New file.
20497
20498         * modules/fopen-tests: New file.
20499         * tests/test-fopen.c: New file.
20500
20501         * modules/fopen: New file.
20502         * lib/fopen.c: New file.
20503         * m4/fopen.m4: New file.
20504         * modules/freopen: New file.
20505         * lib/freopen.c: New file.
20506         * m4/freopen.m4: New file.
20507         * lib/stdio.in.h (fopen, freopen): New declarations.
20508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
20509         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20510         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
20511         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20512         * doc/functions/fopen.texi: Mention the 'fopen' module.
20513         * doc/functions/freopen.texi: Mention the 'freopen' module.
20514
20515 2007-10-06  Bruno Haible  <bruno@clisp.org>
20516
20517         * modules/open-tests: New file.
20518         * tests/test-open.c: New file.
20519
20520         * modules/open: New file.
20521         * lib/open.c: New file.
20522         * m4/open.m4: New file.
20523         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
20524         lib/open.c does.
20525         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
20526         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
20527         macros.
20528         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
20529         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
20530         REPLACE_OPEN.
20531         * doc/functions/open.texi: Mention the 'open' module.
20532
20533 2007-10-04  Bruno Haible  <bruno@clisp.org>
20534
20535         * modules/ceill-tests: New file.
20536         * tests/test-ceill.c: New file.
20537
20538         * modules/ceill: New file.
20539         * lib/ceill.c: Replace entire file.
20540         * m4/ceill.m4: New file.
20541         * lib/math.in.h (ceill): Replace declaration.
20542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
20543         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
20544         * doc/functions/ceill.texi: Mention the 'ceill' module.
20545         * modules/mathl (Files): Remove lib/ceill.c.
20546         (Depends-on): Add ceill.
20547
20548 2007-10-04  Bruno Haible  <bruno@clisp.org>
20549
20550         * modules/ceilf-tests: New file.
20551         * tests/test-ceilf.c: New file.
20552
20553         * modules/ceilf: New file.
20554         * lib/ceil.c: New file.
20555         * lib/ceilf.c: New file.
20556         * m4/ceilf.m4: New file.
20557         * lib/math.in.h (ceilf): New declaration.
20558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
20559         HAVE_DECL_CEILF.
20560         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
20561         HAVE_DECL_CEILF.
20562         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
20563
20564 2007-10-04  Bruno Haible  <bruno@clisp.org>
20565
20566         * modules/floorl-tests: New file.
20567         * tests/test-floorl.c: New file.
20568
20569         * modules/floorl: New file.
20570         * lib/floorl.c: Replace entire file.
20571         * m4/floorl.m4: New file.
20572         * lib/math.in.h (floorl): Replace declaration.
20573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
20574         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
20575         * doc/functions/floorl.texi: Mention the 'floorl' module.
20576         * modules/mathl (Files): Remove lib/floorl.c.
20577         (Depends-on): Add floorl.
20578
20579 2007-10-04  Bruno Haible  <bruno@clisp.org>
20580
20581         * modules/floorf-tests: New file.
20582         * tests/test-floorf.c: New file.
20583
20584         * modules/floorf: New file.
20585         * lib/floor.c: New file.
20586         * lib/floorf.c: New file.
20587         * m4/floorf.m4: New file.
20588         * lib/math.in.h (floorf): New declaration.
20589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
20590         HAVE_DECL_FLOORF.
20591         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
20592         HAVE_DECL_FLOORF.
20593         * doc/functions/floorf.texi: Mention the 'floorf' module.
20594
20595 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
20596             Bruno Haible  <bruno@clisp.org>
20597
20598         Advertise for the Git server instead of the CVS server.
20599         * doc/gnulib-intro.texi (Steady Development): Mention the Git
20600         repository instead of the CVS one.
20601         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
20602         about all VCS systems generically.
20603         * doc/gnulib.texi (Introduction): Capitalize `Git'.
20604
20605 2007-10-04  Bruno Haible  <bruno@clisp.org>
20606
20607         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
20608         means.
20609         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
20610
20611 2007-10-04  Bruno Haible  <bruno@clisp.org>
20612
20613         * modules/truncl-tests: New file.
20614         * tests/test-truncl.c: New file.
20615
20616         * modules/truncl: New file.
20617         * lib/truncl.c: New file.
20618         * m4/truncl.m4: New file.
20619         * lib/math.in.h (truncl): New declaration.
20620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
20621         HAVE_DECL_TRUNCL.
20622         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
20623         HAVE_DECL_TRUNCL.
20624         * doc/functions/truncl.texi: Mention the 'truncl' module.
20625
20626 2007-10-04  Bruno Haible  <bruno@clisp.org>
20627
20628         * modules/truncf-tests: New file.
20629         * tests/test-truncf.c: New file.
20630
20631         * modules/truncf: New file.
20632         * lib/trunc.c: Make paramerizable through USE_* macros.
20633         * lib/truncf.c: New file.
20634         * m4/truncf.m4: New file.
20635         * lib/math.in.h (truncf): New declaration.
20636         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
20637         HAVE_DECL_TRUNCF.
20638         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
20639         HAVE_DECL_TRUNCF.
20640         * doc/functions/truncf.texi: Mention the 'truncf' module.
20641
20642 2007-10-03  Bruno Haible  <bruno@clisp.org>
20643
20644         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20645         augmentation also for tests modules.
20646         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
20647         * modules/atexit-tests (Makefile.am): Likewise.
20648         * modules/binary-io-tests (Makefile.am): Likewise.
20649         * modules/c-strcase-tests (Makefile.am): Likewise.
20650         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
20651         * modules/canonicalize-tests (Makefile.am): Likewise.
20652         * modules/closein-tests (Makefile.am): Likewise.
20653         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20654         * modules/freadahead-tests (Makefile.am): Likewise.
20655         * modules/fseek-tests (Makefile.am): Likewise.
20656         * modules/fseeko-tests (Makefile.am): Likewise.
20657         * modules/ftell-tests (Makefile.am): Likewise.
20658         * modules/ftello-tests (Makefile.am): Likewise.
20659         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
20660         * modules/isnanl-tests (Makefile.am): Likewise.
20661         * modules/lseek-tests (Makefile.am): Likewise.
20662         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20663         * modules/mbscasestr-tests (Makefile.am): Likewise.
20664         * modules/mbschr-tests (Makefile.am): Likewise.
20665         * modules/mbscspn-tests (Makefile.am): Likewise.
20666         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20667         * modules/mbspbrk-tests (Makefile.am): Likewise.
20668         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20669         * modules/mbsrchr-tests (Makefile.am): Likewise.
20670         * modules/mbsspn-tests (Makefile.am): Likewise.
20671         * modules/mbsstr-tests (Makefile.am): Likewise.
20672         * modules/printf-posix-tests (Makefile.am): Likewise.
20673         * modules/snprintf-posix-tests (Makefile.am): Likewise.
20674         * modules/sprintf-posix-tests (Makefile.am): Likewise.
20675         * modules/tsearch-tests (Makefile.am): Likewise.
20676         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20677         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20678         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20679         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20680         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20681         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20682         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20683         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20684         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
20685         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
20686         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20687         * modules/xstrtol-tests (Makefile.am): Likewise.
20688         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20689         * modules/yesno-tests (Makefile.am): Likewise.
20690
20691 2007-10-03  Bruno Haible  <bruno@clisp.org>
20692
20693         * modules/trunc-tests: New file.
20694         * tests/test-trunc.c: New file.
20695
20696         * modules/trunc: New file.
20697         * lib/trunc.c: New file.
20698         * m4/trunc.m4: New file.
20699         * lib/math.in.h (trunc): New declaration.
20700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
20701         HAVE_DECL_TRUNC.
20702         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
20703         HAVE_DECL_TRUNC.
20704         * doc/functions/trunc.texi: Mention the 'trunc' module.
20705
20706 2007-10-03  Bruno Haible  <bruno@clisp.org>
20707
20708         * tests/test-fpending.c: New file, mostly copied
20709         from coreutils/lib/t-fpending.c.
20710         * modules/fpending-tests: New file.
20711
20712 2007-10-03  Bruno Haible  <bruno@clisp.org>
20713
20714         Port the stdio extensions to QNX (untested).
20715         * lib/fseterr.c (fseterr): Add support for QNX.
20716         * lib/fbufmode.c (fbufmode): Likewise.
20717         * lib/freadable.c (freadable): Likewise.
20718         * lib/fwritable.c (fwritable): Likewise.
20719         * lib/freading.c (freading): Likewise.
20720         * lib/fwriting.c (fwriting): Likewise.
20721         * lib/freadahead.c (freadahed): Likewise.
20722         * lib/fpurge.c (fpurge): Likewise.
20723         * lib/fseeko.c (rpl_fseeko): Likewise.
20724
20725 2007-10-03  Bruno Haible  <bruno@clisp.org>
20726             Jim Meyering  <jim@meyering.net>
20727             Eric Blake  <ebb9@byu.net>
20728
20729         * doc/relocatable.texi: Use @command instead of @program.
20730
20731 2007-10-02  Jim Meyering  <jim@meyering.net>
20732
20733         Perform one more "_.h" -> ".in.h" substitution.
20734         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
20735         instead of unistd_.h here, too.
20736
20737 2007-10-01  Bruno Haible  <bruno@clisp.org>
20738
20739         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
20740         Needed for the alloca-opt module.
20741
20742 2007-09-30  Bruno Haible  <bruno@clisp.org>
20743
20744         * lib/alloca.in.h: Renamed from lib/alloca_.h.
20745         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
20746         alloca_.h.
20747         * lib/argz.in.h: Renamed from lib/argz_.h.
20748         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
20749         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
20750         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
20751         byteswap_.h.
20752         * lib/dirent.in.h: Renamed from lib/dirent_.h.
20753         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
20754         dirent_.h.
20755         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
20756         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
20757         fcntl_.h.
20758         * lib/float.in.h: Renamed from lib/float_.h.
20759         * modules/float (Files, Makefile.am): Use float.in.h instead of
20760         float_.h.
20761         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
20762         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
20763         fnmatch_.h.
20764         * lib/getopt.in.h: Renamed from lib/getopt_.h.
20765         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
20766         getopt_.h.
20767         * lib/glob.in.h: Renamed from lib/glob_.h.
20768         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
20769         * lib/iconv.in.h: Renamed from lib/iconv_.h.
20770         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
20771         iconv_.h.
20772         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
20773         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
20774         inttypes_.h.
20775         * lib/locale.in.h: Renamed from lib/locale_.h.
20776         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
20777         locale_.h.
20778         * lib/math.in.h: Renamed from lib/math_.h.
20779         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
20780         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
20781         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
20782         of netinet_in_.h. Add dependency.
20783         * lib/poll.in.h: Renamed from lib/poll_.h.
20784         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
20785         * lib/search.in.h: Renamed from lib/search_.h.
20786         * modules/search (Files, Makefile.am): Use search.in.h instead of
20787         search_.h.
20788         * lib/signal.in.h: Renamed from lib/signal_.h.
20789         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
20790         _signal.h.
20791         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
20792         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
20793         stdbool_.h.
20794         * lib/stdint.in.h: Renamed from lib/stdint_.h.
20795         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
20796         stdint_.h.
20797         * lib/stdio.in.h: Renamed from lib/stdio_.h.
20798         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
20799         stdio_.h.
20800         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
20801         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
20802         stdlib_.h.
20803         * lib/string.in.h: Renamed from lib/string_.h.
20804         * modules/string (Files, Makefile.am): Use string.in.h instead of
20805         string_.h.
20806         * doc/gnulib-tool.texi (Initial import): Update.
20807         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
20808         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
20809         of sys_select_.h. Add dependency.
20810         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
20811         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
20812         of sys_socket_.h.
20813         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
20814         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
20815         sys_stat_.h.
20816         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
20817         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
20818         sys_time_.h.
20819         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
20820         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
20821         sysexits_.h.
20822         * lib/time.in.h: Renamed from lib/time_.h.
20823         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
20824         * lib/unistd.in.h: Renamed from lib/unistd_.h.
20825         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
20826         unistd_.h.
20827         * lib/wchar.in.h: Renamed from lib/wchar_.h.
20828         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
20829         wchar_.h.
20830         * lib/wctype.in.h: Renamed from lib/wctype_.h.
20831         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
20832         wctype_.h.
20833         * build-aux/bootstrap (slurp): Update.
20834         * lib/.cppi-disable: Update.
20835
20836 2007-09-30  Bruno Haible  <bruno@clisp.org>
20837
20838         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
20839         Needed on BeOS.
20840
20841 2007-09-30  Bruno Haible  <bruno@clisp.org>
20842
20843         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
20844
20845 2007-09-29  Bruno Haible  <bruno@clisp.org>
20846
20847         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
20848
20849 2007-09-29  Bruno Haible  <bruno@clisp.org>
20850
20851         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
20852         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
20853         * build-aux/install-reloc: Compile also areadlink.c.
20854         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
20855
20856 2007-09-29  Bruno Haible  <bruno@clisp.org>
20857
20858         * gnulib-tool (func_emit_initmacro_done): Indentation.
20859
20860 2007-09-29  Bruno Haible  <bruno@clisp.org>
20861
20862         * README: Add CVS checkout update instructions.
20863         Info from Bob Proulx <bob@proulx.com>.
20864
20865 2007-09-28  Eric Blake  <ebb9@byu.net>
20866
20867         Provide move-if-change.
20868         * build-aux/move-if-change: New file, based on best practice
20869         rather than any canonical upstream location.
20870
20871 2007-09-28  Jim Meyering  <jim@meyering.net>
20872
20873         Fix canonicalize loop-detection corner case.
20874         Do not attempt to stat the symlink values stored via seen_triple.
20875         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
20876         on linux-2.6.18, (but not 2.6.22).
20877         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
20878         triple_compare.  The former compares dev,ino,filename, while the latter
20879         would actually stat dirname(filename) when dev and ino were equal.
20880         * lib/hash-triple.c: Install <string.h>.
20881         (STREQ): Define.
20882         (triple_compare_ino_str): New function.
20883         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
20884
20885 2007-09-28  Eric Blake  <ebb9@byu.net>
20886
20887         Enforce that AC_REPLACE_FUNCS files exist.
20888         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
20889         override check for typos.
20890
20891         Fix test-closein on Solaris 10.
20892         * tests/test-closein.c (main): Don't assume stdin can be inherited
20893         closed on all systems.
20894         * tests/test-closein.sh: Likewise.
20895         Reported by Piotr Tarnowski.
20896
20897 2007-09-28  Jim Meyering  <jim@meyering.net>
20898
20899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
20900
20901 2007-09-27  Jim Meyering  <jim@meyering.net>
20902
20903         canonicalize: Avoid a false-positive cycle failure.
20904         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
20905         Sort.  Remove cycle-check.
20906         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
20907         not cycle-check.h.
20908         (seen_triple): New function.
20909         (canonicalize_filename_mode): Use it instead of cycle-check.
20910         * tests/test-canonicalize.c: Add a test for this bug.
20911         * tests/test-canonicalize.sh: Set up and run the test.
20912
20913         New module, file-set, from coreutils.
20914         * modules/file-set: Define it.
20915         * lib/file-set.c, lib/file-set.h: Implement.
20916
20917         New module, hash-triple, from coreutils.
20918         * modules/hash-triple: Define it.
20919         * lib/hash-triple.c, lib/hash-triple.h: Implement.
20920
20921 2007-09-25  Eric Blake  <ebb9@byu.net>
20922
20923         Fix strerror on Interix.
20924         * lib/string_.h (strerror): Declare replacement.
20925         * doc/functions/strerror.texi (strerror): Document the Interix
20926         shortcoming.
20927         * modules/string (Makefile.am): Support new hooks.
20928         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
20929         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
20930         gl_FUNC_STRERROR_SEPARATE.
20931         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
20932         * lib/strerror.c (rpl_strerror): Provide replacement.
20933         * modules/strerror (Depends-on): Add string.
20934         (configure.ac): Detect use of module.
20935         * tests/test-strerror.c: New file.
20936         * modules/strerror-tests: New test module.
20937         * modules/argp (Depends-on): Add strerror.
20938         * modules/error (Depends-on): Likewise.
20939         Reported by Martin Koeppe.
20940
20941 2007-09-24  Bruno Haible  <bruno@clisp.org>
20942
20943         * README: Update git instructions.
20944
20945 2007-09-24  Eric Blake  <ebb9@byu.net>
20946
20947         Revert fpending breakage from 2007-09-08.
20948         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
20949         __fpending.c.
20950
20951 2007-09-24  Jim Meyering  <jim@meyering.net>
20952
20953         filenamecat.c: Add a test.
20954         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
20955         showing how the function works when DIR is the empty string.
20956
20957 2007-09-21  Simon Josefsson  <simon@josefsson.org>
20958
20959         * tests/test-canonicalize.sh: Turn on executable bit.
20960
20961 2007-09-19  Eric Blake  <ebb9@byu.net>
20962
20963         * README: Update CVS instructions.
20964
20965 2007-09-18  Bruno Haible  <bruno@clisp.org>
20966
20967         * modules/areadlink: New file.
20968         * lib/areadlink.h (areadlink): New declaration.
20969         * lib/areadlink.c: New file, based on lib/xreadlink.c.
20970
20971 2007-09-17  Jim Meyering  <jim@meyering.net>
20972
20973         * lib/savewd.c (ESTALE) [!defined]: Define.
20974         Reported to be required on Interix by Martin Koeppe.
20975
20976 2007-09-17  Bruno Haible  <bruno@clisp.org>
20977
20978         * gnulib-tool (func_version): Use $version.
20979
20980 2007-09-16  Bruno Haible  <bruno@clisp.org>
20981
20982         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
20983         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
20984         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
20985         Reported by Greg Schafer <gschafer@zip.com.au>.
20986
20987 2007-09-15  Bruno Haible  <bruno@clisp.org>
20988
20989         * gnulib-tool (sed): Try a little harder to make bash understand the
20990         alias.
20991         Reported by Bruce Korb <bruce.korb@gmail.com>.
20992
20993 2007-09-13  Eric Blake  <ebb9@byu.net>
20994
20995         * ChangeLog: Remove conflict markers.
20996
20997 2007-09-13  Simon Josefsson  <simon@josefsson.org>
20998
20999         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
21000         Reported by Bruno Haible <bruno@clisp.org>.
21001
21002 2007-09-12  Bruno Haible  <bruno@clisp.org>
21003
21004         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
21005         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
21006         is not defined.
21007
21008 2007-09-12  Eric Blake  <ebb9@byu.net>
21009
21010         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
21011         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
21012         Autoconf definition.
21013         * modules/euidaccess (Depends-on): Add extensions, for
21014         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
21015         * modules/fnmatch (Depends-on): Likewise.
21016         * modules/getaddrinfo (Depends-on): Likewise.
21017         * modules/getdelim (Depends-on): Likewise.
21018         * modules/getline (Depends-on): Likewise.
21019         * modules/getsubopt (Depends-on): Likewise.
21020         * modules/gettext (Depends-on): Likewise.
21021         * modules/group-member (Depends-on): Likewise.
21022         * modules/mbchar (Depends-on): Likewise.
21023         * modules/memmem (Depends-on): Likewise.
21024         * modules/mempcpy (Depends-on): Likewise.
21025         * modules/memrchr (Depends-on): Likewise.
21026         * modules/pagealign_alloc (Depends-on): Likewise.
21027         * modules/readutmp (Depends-on): Likewise.
21028         * modules/stpcpy (Depends-on): Likewise.
21029         * modules/stpncpy (Depends-on): Likewise.
21030         * modules/strchrnul (Depends-on): Likewise.
21031         * modules/strndup (Depends-on): Likewise.
21032         * modules/strsep (Depends-on): Likewise.
21033         * modules/strverscmp (Depends-on): Likewise.
21034         * modules/vasprintf (Depends-on): Likewise.
21035         * modules/wcwidth (Depends-on): Likewise.
21036         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
21037         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
21038         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
21039         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
21040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
21041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21042         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
21043         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21044         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
21045         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21046         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21047         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
21048         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
21049         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21050         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
21051         * m4/readutmp.m4 (gl_READUTMP): Likewise.
21052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21053         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
21054         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21055         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
21056         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21057         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
21058         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
21059         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
21060         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
21061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21062         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
21063         so that lock.m4 can be used in gettext without extensions module.
21064
21065 2007-09-11  Bruno Haible  <bruno@clisp.org>
21066
21067         * m4/isc-posix.m4: Remove file.
21068         Suggested by Eric Blake.
21069
21070 2007-09-11  Eric Blake  <ebb9@byu.net>
21071
21072         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
21073
21074 2007-09-10  Bruno Haible  <bruno@clisp.org>
21075
21076         * posix-modules: Fix typo in error message.
21077         Reported by Matt <mkraai@beckman.com>.
21078
21079 2007-09-09  Bruno Haible  <bruno@clisp.org>
21080
21081         * doc/functions/getdelim.texi: Update list of platforms lacking the
21082         function.
21083         * doc/functions/getline.texi: Likewise.
21084
21085 2007-09-09  Jim Meyering  <jim@meyering.net>
21086
21087         * lib/hash.c (hash_initialize): Detect calloc failure.
21088         Reported by Bruno Haible.
21089
21090 2007-09-09  Bruno Haible  <bruno@clisp.org>
21091
21092         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
21093         malloc or realloc fails.
21094
21095 2007-09-09  Bruno Haible  <bruno@clisp.org>
21096
21097         * modules/getcwd (Depends-on): Add malloc-posix.
21098         * modules/glob (Depends-on): Likewise.
21099         * modules/putenv (Depends-on): Likewise.
21100         * modules/strdup (Depends-on): Likewise.
21101         * modules/getdelim (Depends-on): Add realloc-posix.
21102         * modules/read-file (Depends-on): Likewise.
21103
21104 2007-09-09  Bruno Haible  <bruno@clisp.org>
21105
21106         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
21107         (gl_FUNC_MALLOC_POSIX): Require it.
21108         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
21109         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
21110         * modules/realloc (Files): Add m4/malloc.m4.
21111         * modules/calloc (Files): Likewise.
21112
21113 2007-09-09  Bruno Haible  <bruno@clisp.org>
21114
21115         * modules/malloc-posix: New file.
21116         * modules/malloc (Depends-on): Add malloc-posix.
21117         * lib/malloc.c: Include errno.h.
21118         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
21119         and a POSIX-compatible malloc into a single function. Set ENOMEM
21120         when returning NULL.
21121         * m4/malloc.m4: New file.
21122         * doc/functions/malloc.texi: Mention the malloc-posix module.
21123         * lib/stdlib_.h (malloc): New declaration.
21124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21125         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
21126         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
21127         and HAVE_MALLOC_POSIX.
21128
21129 2007-09-09  Bruno Haible  <bruno@clisp.org>
21130
21131         * modules/realloc-posix: New file.
21132         * modules/realloc (Depends-on): Add realloc-posix.
21133         * lib/realloc.c: Include errno.h.
21134         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
21135         and a POSIX-compatible realloc into a single function. Set ENOMEM
21136         when returning NULL.
21137         * m4/realloc.m4: New file.
21138         * doc/functions/realloc.texi: Mention the realloc-posix module.
21139         * lib/stdlib_.h (realloc): New declaration.
21140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21141         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
21142         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
21143         and HAVE_REALLOC_POSIX.
21144
21145 2007-09-09  Bruno Haible  <bruno@clisp.org>
21146
21147         * modules/calloc-posix: New file.
21148         * modules/calloc (Depends-on): Add calloc-posix.
21149         * lib/calloc.c: Include errno.h.
21150         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
21151         and a POSIX-compatible calloc into a single function. Set ENOMEM
21152         when returning NULL.
21153         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
21154         * doc/functions/calloc.texi: Mention the calloc-posix module.
21155         * lib/stdlib_.h (calloc): New declaration.
21156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21157         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
21158         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
21159         and HAVE_CALLOC_POSIX.
21160
21161 2007-09-09  Bruno Haible  <bruno@clisp.org>
21162
21163         Allow for modules to show an arbitrary notice.
21164         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
21165         * gnulib-tool: New option --extract-notice.
21166         (func_usage): Document it.
21167         (sed_extract_prog): Update.
21168         (func_get_notice): New function.
21169         (func_modules_notice): New function.
21170         (func_import, func_create_testdir): Invoke it.
21171         Suggested by Jim Meyering.
21172
21173 2007-09-09  Bruno Haible  <bruno@clisp.org>
21174
21175         * gnulib-tool: New options --verbose, --quiet.
21176         (func_usage): Document them.
21177         (verbose): New variable.
21178         (func_execute_command): New function.
21179         (func_import): Don't show the module list and the file list if
21180         $verbose < 0.
21181         (func_create_testdir): Likewise. Use func_execute_command.
21182         (func_create_megatestdir): Use func_execute_command.
21183
21184 2007-09-08  Bruno Haible  <bruno@clisp.org>
21185
21186         * gnulib-tool (func_import): Prefer rsync over wget when available,
21187         for fetching the PO files.
21188
21189 2007-09-08  Bruno Haible  <bruno@clisp.org>
21190
21191         * posix-modules: New file. Portions copied from gnulib-tool.
21192         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
21193
21194 2007-09-08  Jim Meyering  <jim@meyering.net>
21195
21196         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
21197         * lib/fpending.h: Rename from __fpending.h.
21198         * lib/fpending.c: Rename from __fpending.c.
21199         Include "fpending.h", not "__fpending.h".
21200         * lib/__fpending.h, lib/__fpending.c: Remove files.
21201         * modules/fpending (Files): Reflect new file names.
21202         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
21203
21204 2007-09-08  Bruno Haible  <bruno@clisp.org>
21205
21206         * m4/inttypes-h.m4: Remove stub file.
21207
21208 2007-09-07  Simon Josefsson  <simon@josefsson.org>
21209
21210         * doc/headers/stdint.texi: Discuss #include_next issue.
21211
21212 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21213
21214         * build-aux/bootstrap: Remove obsolete comment about wget --help.
21215
21216 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21217
21218         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
21219         in variable name.
21220
21221 2007-09-03  Jim Meyering  <jim@meyering.net>
21222
21223         New module: git-version-gen.
21224         * modules/git-version-gen: New file.
21225
21226         Import changes from coreutils for bootstrap script.
21227
21228         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
21229
21230         bootstrap: uses rsync to download the .po files
21231         * build-aux/bootstrap (po_download_command_format): New global.
21232         (download_po_files): Use rsync.
21233         (update_po_files): Don't remove .po files after download,
21234         so future rsync runs can take advantage of the copies.
21235
21236         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
21237
21238         Solve the unnecessary-.po-file-regeneration problem once and for all.
21239         * build-aux/bootstrap (download_po_files): New function, renamed from
21240         get_translations.  Now, downloads, but doesn't update LINGUAS.
21241         (update_po_files): New function.
21242
21243         bootstrap: Ignore more.
21244         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
21245         uniwidth to e.g., lib/.gitignore.
21246         (slurp): Handle the sys_stat_.h -> sys mapping, too.
21247
21248         * build-aux/bootstrap: New setting: vc_ignore.
21249         (insert_sorted_if_absent): Create $file if absent.
21250         Adapt to new, possibly empty, list: $vc_ignore.
21251
21252         bootstrap: generate more ignorable names
21253         * build-aux/bootstrap (slurp): When generating ignorable names,
21254         also map .sin to .sed, .gperf to .c, and .y to .c.
21255
21256 2007-09-03  Jim Meyering  <jim@meyering.net>
21257
21258         * build-aux/git-version-gen: New file, from coreutils.  For details, see
21259         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
21260
21261 2007-09-02  Bruno Haible  <bruno@clisp.org>
21262
21263         Fix mis-recognition of 'mcs' on QNX 6.
21264         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
21265         output contains the string "Mono".
21266         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
21267         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
21268
21269 2007-09-01  Bruno Haible  <bruno@clisp.org>
21270
21271         Fix collision between uniwidth/* and linebreak modules.
21272         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
21273         u32_width): Remove declarations.
21274         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
21275         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
21276         streq3, streq2, streq1, streq0): Remove functions.
21277         (STREQ): Remove macro.
21278         (is_cjk_encoding): Remove function.
21279         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
21280         (uc_width, u8_width, u16_width, u32_width): Remove functions.
21281         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
21282         * NEWS: Document the change.
21283
21284 2007-09-01  Bruno Haible  <bruno@clisp.org>
21285
21286         * lib/streq.h: Add double-inclusion guard.
21287
21288 2007-09-01  Karl Berry  <karl@gnu.org>
21289
21290         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
21291
21292 2007-08-28  Jim Meyering  <jim@meyering.net>
21293
21294         Rename mreadlink_with_size to areadlink_with_size.
21295         * NEWS: Document the change.
21296         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
21297         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
21298         * lib/mreadlink.h: Rename this to...
21299         * lib/areadlink.h: ...this.
21300         * modules/mreadlink-with-size: Rename this to...
21301         * modules/areadlink-with-size: ...this.
21302         * lib/canonicalize.c: Reflect the renaming.
21303         * modules/canonicalize: Likewise.
21304
21305 2007-08-26  Bruno Haible  <bruno@clisp.org>
21306
21307         * gnulib-tool (func_import): When deciding which files to remove,
21308         consider also dangling symbolic links.
21309         Reported by Eric Blake.
21310
21311 2007-08-26  Bruno Haible  <bruno@clisp.org>
21312
21313         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
21314
21315 2007-08-23  Simon Josefsson  <simon@josefsson.org>
21316
21317         * lib/readline.c: Don't include getline.h, the prototype is now
21318         found in stdio.h.
21319
21320 2007-08-23  Jim Meyering  <jim@meyering.net>
21321
21322         Getdelim touchup.
21323         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
21324         around the funlockfile call, since funlockfile never sets errno.
21325         Don't set errno upon failed realloc.
21326
21327 2007-08-22  Eric Blake  <ebb9@byu.net>
21328
21329         Getline touchups.
21330         * lib/getdelim.c (getdelim): Revert regression that required *n to
21331         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
21332         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
21333         getdelim, rather than whether implementation is missing.
21334         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
21335         * lib/stdio_.h (getline): Also declare if replacement is
21336         required.
21337         * doc/functions/getdelim.texi: New file.
21338         * doc/functions/getline.texi: Likewise.
21339         * doc/gnulib.texi (Function Substitutes): Add new files.
21340         Reported by Bruno Haible.
21341
21342 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
21343
21344         * users.txt: Add Guile.
21345
21346 2007-08-22  Eric Blake  <ebb9@byu.net>
21347
21348         * tests/test-getdelim.c (main): Use remove, not unlink.
21349         * tests/test-getline.c (main): Likewise.
21350
21351         Move getline and getdelim into stdio.h, per POSIX 200x.
21352         * modules/getline (Files): Remove getline.h.
21353         (Depends-on): Add stdio.
21354         (configure.ac): Add module indicator.
21355         * modules/getdelim (Files): Remove getdelim.h.
21356         (Depends-on): Add stdio.
21357         (configure.ac): Add module indicator.
21358         * modules/stdio (Makefile.am): Work with new indicators.
21359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21360         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
21361         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21362         * lib/getdelim.h: Delete.
21363         * lib/getline.h: Delete.
21364         * lib/stdio_.h (getdelim, getline): Declare.
21365         * modules/getdelim-tests: New module.
21366         * modules/getline-tests: Likewise.
21367         * tests/test-getdelim.c: New file.
21368         * tests/test-getline.c: Likewise.
21369         * NEWS: Document the change.
21370         * lib/getline.c: Update choice of header.
21371         * lib/csharpcomp.c: Likewise.
21372         * lib/getpass.c: Likewise.
21373         * lib/javacomp.c: Likewise.
21374         * lib/javaversion.c: Likewise.
21375         * lib/yesno.c: Likewise.
21376         * lib/getdelim.c: Likewise.
21377         (getdelim): Set errno on failure, and avoid memory leak.
21378
21379 2007-08-19  Bruno Haible  <bruno@clisp.org>
21380
21381         * modules/closein (Depends-on): Add freadahead.
21382         * lib/closein.c: Include freadahead.h.
21383         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
21384         is zero.
21385
21386 2007-08-19  Bruno Haible  <bruno@clisp.org>
21387
21388         * modules/freadahead-tests: New file.
21389         * tests/test-freadahead.sh: New file.
21390         * tests/test-freadahead.c: New file.
21391
21392         * modules/freadahead: New file.
21393         * lib/freadahead.h: New file.
21394         * lib/freadahead.c: New file.
21395         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
21396         fbufmode, fpurge, freadable, fwritable.
21397
21398 2007-08-19  Eric Blake  <ebb9@byu.net>
21399
21400         Test yesno in combination with closein.
21401         * lib/yesno.c (yesno): Document use of stdin.
21402         * modules/yesno-tests (Files): New module.
21403         * tests/test-yesno.c (main): New file.
21404         * tests/test-yesno.sh: Likewise.
21405
21406 2007-08-19  Bruno Haible  <bruno@clisp.org>
21407
21408         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
21409         * lib/fseeko.c (rpl_fseeko): Likewise.
21410         * lib/fseterr.c (fseterr): Likewise.
21411
21412 2007-08-19  Bruno Haible  <bruno@clisp.org>
21413
21414         * tests/test-lseek.c (main): Disable a test for BeOS.
21415         * doc/functions/lseek.texi: Document the BeOS bug.
21416
21417 2007-08-19  Bruno Haible  <bruno@clisp.org>
21418             Eric Blake  <ebb9@byu.net>
21419
21420         * lib/lseek.c: Include <sys/stat.h>.
21421         (rpl_lseek): Add workaround code also for Unix platforms.
21422         Needed for BeOS.
21423         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
21424         * doc/functions/lseek.texi: Document BeOS definiency.
21425
21426 2007-08-18  Bruno Haible  <bruno@clisp.org>
21427
21428         * modules/fstrcmp-tests: New file.
21429         * tests/test-fstrcmp.c: New file.
21430
21431 2007-08-18  Bruno Haible  <bruno@clisp.org>
21432
21433         * modules/fstrcmp: New file, from GNU gettext with modifications.
21434         * lib/fstrcmp.h: New file, from GNU gettext.
21435         * lib/fstrcmp.c: New file, from GNU gettext.
21436         * MODULES.html.sh (String handling): Add fstrcmp.
21437
21438 2007-08-18  Bruno Haible  <bruno@clisp.org>
21439
21440         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
21441         'bool'.
21442         (diag, compareseq): Remove const from the ctxt argument.
21443         (USE_HEURISTIC): Undefine at the end.
21444
21445 2007-08-18  Jim Meyering  <jim@meyering.net>
21446
21447         New file: lib/idcache.h
21448         * NEWS: Mention the addition.
21449         * modules/idcache (Files): Add lib/idcache.h
21450         * lib/idcache.c: Include "idcache.h".
21451         Don't include <sys/types.h>.
21452         Add a FIXME comment.
21453         Move file-scoped "static" declarations to the top.
21454         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
21455
21456 2007-08-17  Bruno Haible  <bruno@clisp.org>
21457         and Paul Eggert  <eggert@cs.ucla.edu>
21458
21459         * MODULES.html.sh: Add diffseq.
21460         * modules/diffseq: New file.
21461         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
21462         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
21463
21464 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21465
21466         Import changes from coreutils for bootstrap script.
21467
21468         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
21469
21470         * build-aux/bootstrap (slurp): Work even in environments where
21471         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
21472         current code does not slurp files whose names start with ".", and
21473         this looks like it might be a troublesome area.
21474
21475         2007-07-11  Jim Meyering  <jim@meyering.net>
21476
21477         If there's a GPL vN copyright comment, require that N == 3.
21478
21479         2007-07-08  Jim Meyering  <jim@meyering.net>
21480
21481         Run the coreutils-specific code only if tests/Makefile.am.in exists.
21482         * build-aux/bootstrap (mam_template): Move definition out of loop.
21483
21484         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
21485
21486         * build-aux/bootstrap (symlink_to_dir): Rename function from
21487         symlink_to_gnulib.  Add a directory parameter.  Update all
21488         callers.
21489         (cp_mark_as_generated): Also check for -- and link to -- files in
21490         gl/.
21491
21492         2007-07-08  Jim Meyering  <jim@meyering.net>
21493
21494         Adapt to deeper hierarchy in gnulib.
21495         * build-aux/bootstrap (symlink_to_dir): If the destination
21496         directory doesn't exist, create it. This is required at least for
21497         "lib/uniwidth/cjk.h".
21498
21499         2007-05-15  Jim Meyering  <jim@meyering.net>
21500
21501         * build-aux/bootstrap: Now that generated Makefile.am files
21502         are no longer under version control, they must be created at
21503         bootstrap time.
21504
21505 2007-08-14  Ben Pfaff  <blp@gnu.org>
21506
21507         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
21508
21509 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21510
21511         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
21512         given the changes below.
21513         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
21514         even on hosts that have padding bits beyond the supported 64.
21515
21516 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
21519         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
21520         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
21521         depends on it.
21522         (xstrtol_error): Remove.
21523         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
21524         but with a different signature.
21525         (ATTRIBUTE_NORETURN, __attribute__): New macros.
21526         * lib/xstrtol-error.c: Include exitfail.h.
21527         (xstrtol_fatal): New function, with a different signature from the
21528         old xstrtol_error, so that the caller need not worry about passing
21529         in an exit status, or about storage management of the option argument.
21530         (xstrtol_error): Now a static function.  Redo signature to
21531         implement xstrtol_fatal.  Output the correct number of hyphens in
21532         front of the option so that the caller need not worry about
21533         storage management.
21534         (N_): New macro.
21535         (_): Remove; not used now.
21536         * modules/xstrtol: Depend on getopt.
21537         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
21538         of old STRTOL_FATAL_ERROR macro.
21539         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
21540         of test program.
21541         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
21542         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
21543
21544 2007-08-08  Eric Blake  <ebb9@byu.net>
21545
21546         * lib/xstrtol-error.c: Add missing include.
21547
21548         Move xstrtol messages into gnulib domain, when --pobase is used.
21549         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
21550         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
21551         * modules/xstrtol (Files): Distribute new file.
21552         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
21553         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
21554         * tests/test-xstrtol.c: ...into new file.
21555         * tests/test-xstrtoul.c: Also test xstrtoul.
21556         * tests/test-xstrtoimax.c: Also test xstrtoimax.
21557         * tests/test-xstrtoumax.c: Also test xstrtoumax.
21558         * tests/test-xstrtol.sh: Drive the tests.
21559         * tests/test-xstrtoimax.sh: Likewise.
21560         * tests/test-xstrtoumax.sh: Likewise.
21561         * modules/xstrtol-tests: New module.
21562         * modules/xstrtoimax-tests: Likewise.
21563         * modules/xstrtoumax-tests: Likewise.
21564
21565 2007-08-08  Jim Meyering  <jim@meyering.net>
21566
21567         New function: mfile_name_concat.
21568         * lib/filenamecat.c (mfile_name_concat): New function, just like
21569         file_name_concat, but return NULL upon failure rather than exiting
21570         with a diagnostic.
21571         * lib/filenamecat.h: Declare it.
21572
21573 2007-08-07  Bruno Haible  <bruno@clisp.org>
21574
21575         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
21576         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
21577         warning from gcc.
21578         Reported by Eric Blake.
21579
21580 2007-08-07  Simon Josefsson  <simon@josefsson.org>
21581
21582         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
21583         * modules/crypto/arcfour (License): Likewise.
21584         * modules/crypto/des-tests (License): Likewise.
21585         * modules/crypto/gc-arctwo-tests (License): Likewise.
21586         * modules/crypto/gc-des-tests (License): Likewise.
21587         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
21588         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
21589         * modules/crypto/gc-md2-tests (License): Likewise.
21590         * modules/crypto/gc-md4-tests (License): Likewise.
21591         * modules/crypto/gc-md5-tests (License): Likewise.
21592         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
21593         * modules/crypto/gc-rijndael-tests (License): Likewise.
21594         * modules/crypto/gc-sha1-tests (License): Likewise.
21595         * modules/crypto/gc-tests (License): Likewise.
21596         * modules/crypto/hmac-md5 (License): Likewise.
21597         * modules/crypto/hmac-sha1 (License): Likewise.
21598         * modules/crypto/md2-tests (License): Likewise.
21599         * modules/crypto/md4-tests (License): Likewise.
21600         * modules/crypto/md5 (License): Likewise.
21601         * modules/crypto/rijndael (License): Likewise.
21602         * modules/crypto/sha1 (License): Likewise.
21603         * modules/memxor (License): Likewise.
21604
21605 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21606         and Bruno Haible  <bruno@clisp.org>
21607
21608         * NEWS: Describe interface changes to human, xstrtol.
21609         * lib/human.h: Include <xstrtol.h>.
21610         (human_options): Return enum strtol_error, not int.  Remove
21611         bool arg; take int * instead.
21612         * lib/human.c: Don't include "gettext.h".
21613         (_): Remove; no longer used.
21614         Don't include <xstrtol.h>, since human.h does it.
21615         (human_options): Adjust to abovementioned interface changes.
21616         Do not report error to stderr; that's now the caller's
21617         responsibility.
21618         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
21619         interface change.
21620         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
21621         Str, Argument_type_string.  All uses changed.  Put " argument"
21622         in diagnostics to make them clearer.  Change wording of suffix
21623         message for clarity.
21624         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
21625         Argument_type_string.
21626         (STRTOL_FATAL_WARN): Remove; no longer used.
21627         * modules/human (Depends-on): Remove gettext-h.
21628
21629 2007-08-06  Simon Josefsson  <simon@josefsson.org>
21630
21631         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
21632
21633 2007-07-31  Bruno Haible  <bruno@clisp.org>
21634
21635         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
21636         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
21637         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
21638
21639 2007-07-31  Bruno Haible  <bruno@clisp.org>
21640
21641         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
21642         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
21643
21644 2007-07-30  Bruno Haible  <bruno@clisp.org>
21645
21646         * modules/base64 (License): Use the synonymous term "LGPLv2+".
21647         * modules/c-ctype (License): Likewise.
21648         * modules/c-strcase (License): Likewise.
21649         * modules/check-version (License): Likewise.
21650         * modules/iconv (License): Likewise.
21651         * modules/iconv_open (License): Likewise.
21652         * modules/read-file (License): Likewise.
21653         * modules/striconv (License): Likewise.
21654         * modules/strverscmp (License): Likewise.
21655         * modules/vasprintf (License): Likewise.
21656         * modules/crypto/des (License): Likewise.
21657         * modules/crypto/gc (License): Likewise.
21658         * modules/crypto/gc-arcfour (License): Likewise.
21659         * modules/crypto/gc-arctwo (License): Likewise.
21660         * modules/crypto/gc-des (License): Likewise.
21661         * modules/crypto/gc-hmac-md5 (License): Likewise.
21662         * modules/crypto/gc-hmac-sha1 (License): Likewise.
21663         * modules/crypto/gc-md2 (License): Likewise.
21664         * modules/crypto/gc-md4 (License): Likewise.
21665         * modules/crypto/gc-md5 (License): Likewise.
21666         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
21667         * modules/crypto/gc-random (License): Likewise.
21668         * modules/crypto/gc-rijndael (License): Likewise.
21669         * modules/crypto/gc-sha1 (License): Likewise.
21670         * modules/crypto/md2 (License): Likewise.
21671         * modules/crypto/md4 (License): Likewise.
21672
21673 2007-07-30  Jim Meyering  <jim@meyering.net>
21674
21675         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
21676         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
21677         it has valid stat data.  This bug would cause du not to count the
21678         sizes of inaccessible directories.
21679         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
21680         in <http://bugzilla.redhat.com/250077>.
21681
21682 2007-07-25  Peter O'Gorman  <peter@pogma.com>
21683             Bruno Haible  <bruno@clisp.org>
21684
21685         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
21686         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
21687         #include_next, gives a diagnostic about it, but reports no error in
21688         the exit code.
21689         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
21690
21691 2007-07-24  Ben Pfaff  <blp@gnu.org>
21692
21693         Improve name: "count-one-bits" is better than "popcount".
21694         * MODULES.html.sh: Update name.
21695         * lib/popcount.h: Renamed lib/count-one-bits.h.
21696         (popcount): Renamed count_one_bits.
21697         (popcountl): Renamed count_one_bits_l.
21698         (popcountll): Renamed count_one_bits_ll.
21699         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
21700         * modules/popcount: Renamed module/count-one-bits.
21701         * modules/popcount-tests: Renamed module/count-one-bits-tests.
21702         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
21703
21704 2007-07-23  Ben Pfaff  <blp@gnu.org>
21705
21706         * lib/popcount.h (popcount32): Reduce size of constants, to allow
21707         better code generation, and add U to large constants to avoid
21708         warnings, in non-GCC case.
21709         Suggested by Bruno Haible.
21710
21711 2007-07-23  Ben Pfaff  <blp@gnu.org>
21712
21713         * lib/popcount.h: Use verify_true instead of if...abort.
21714         * modules/popcount: Depend on verify module.
21715         Suggested by Jim Meyering.
21716
21717 2007-07-23  Bruno Haible  <bruno@clisp.org>
21718
21719         * gnulib-tool (func_import): Create a .cvsignore file also when the
21720         directory is not yet in CVS but the toplevel directory is. When
21721         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
21722         Reported by Karl Berry.
21723
21724 2007-07-22  Ben Pfaff  <blp@gnu.org>
21725
21726         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
21727         case.
21728         Suggested by Eric Blake.
21729
21730 2007-07-22  Ben Pfaff  <blp@gnu.org>
21731
21732         New module: popcount.
21733         * MODULES.html.sh: Add popcount.
21734         * modules/popcount: New file.
21735         * modules/popcount-tests: New file.
21736         * tests/test-popcount.c: New file.
21737         * lib/popcount.h: New file.
21738         * m4/popcount.m4: New file.
21739
21740 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21741
21742         * build-aux/announce-gen: Update to GPLv3.
21743
21744         * build-aux/config.guess: Update from config.
21745
21746 2007-07-21  Bruno Haible  <bruno@clisp.org>
21747
21748         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
21749         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
21750
21751 2007-07-20  Jim Meyering  <jim@meyering.net>
21752
21753         * check-module: Diagnose a self-dependency.
21754
21755 2007-07-19  Bruno Haible  <bruno@clisp.org>
21756
21757         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
21758         empty.
21759         Reported by Eric Blake.
21760
21761 2007-07-18  Bruno Haible  <bruno@clisp.org>
21762
21763         * gnulib-tool: New options --po-base, --po-domain.
21764         (func_usage): Document them.
21765         (pobase, po_domain): New variables.
21766         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
21767         DEFAULT_TEXT_DOMAIN.
21768         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
21769         (func_import): Consider pobase and po_domain. Create a po/ directory.
21770         (func_create_testdir): Set pobase and po_domain to empty.
21771         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
21772         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
21773
21774 2007-07-18  Bruno Haible  <bruno@clisp.org>
21775
21776         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21777         EXTRA_DIST augmentation for files in build-aux/.
21778
21779 2007-07-16  Bruno Haible  <bruno@clisp.org>
21780
21781         * modules/lseek (License): Use the synonymous term "LGPLv2+".
21782         * modules/getdelim (License): Likewise.
21783
21784 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21785
21786         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
21787         * modules/d-type (License): Likewise.
21788         * modules/extensions (License): Likewise.
21789         * modules/fnmatch (License): Likewise.
21790         * modules/fseeko (License): Likewise.
21791         * modules/getaddrinfo (License): Likewise.
21792         * modules/getline (License): Likewise.
21793         * modules/getlogin_r (License): Likewise.
21794         * modules/getpass (License): Likewise.
21795         * modules/gettimeofday (License): Likewise.
21796         * modules/glob (License): Likewise.
21797         * modules/inet_ntop (License): Likewise.
21798         * modules/malloc (License): Likewise.
21799         * modules/malloca (License): Likewise.
21800         * modules/memmem (License): Likewise.
21801         * modules/mempcpy (License): Likewise.
21802         * modules/memset (License): Likewise.
21803         * modules/minmax (License): Likewise.
21804         * modules/mktime (License): Likewise.
21805         * modules/netinet_in (License): Likewise.
21806         * modules/pathmax (License): Likewise.
21807         * modules/poll (License): Likewise.
21808         * modules/regex (License): Likewise.
21809         * modules/snprintf (License): Likewise.
21810         * modules/stdbool (License): Likewise.
21811         * modules/stdint (License): Likewise.
21812         * modules/stdio (License): Likewise.
21813         * modules/strcase (License): Likewise.
21814         * modules/strcasestr (License): Likewise.
21815         * modules/strdup (License): Likewise.
21816         * modules/string (License): Likewise.
21817         * modules/strndup (License): Likewise.
21818         * modules/strnlen (License): Likewise.
21819         * modules/strpbrk (License): Likewise.
21820         * modules/strptime (License): Likewise.
21821         * modules/strsep (License): Likewise.
21822         * modules/sys_select (License): Likewise.
21823         * modules/sys_socket (License): Likewise.
21824         * modules/sys_stat (License): Likewise.
21825         * modules/sys_time (License): Likewise.
21826         * modules/time (License): Likewise.
21827         * modules/time_r (License): Likewise.
21828         * modules/timegm (License): Likewise.
21829         * modules/unistd (License): Likewise.
21830         * modules/vsnprintf (License): Likewise.
21831         * modules/wctype (License): Likewise.
21832
21833 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21834
21835         * modules/argz (License): LGPLv2+.
21836
21837 2007-07-15  Karl Berry  <karl@gnu.org>
21838
21839         * doc/gnulib.texi: revise node structure per new fdl.texi.
21840
21841 2007-07-14  Bruno Haible  <bruno@clisp.org>
21842
21843         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
21844         the output file.
21845         * lib/uniname/uninames.h: Regenerated.
21846
21847 2007-07-14  Karl Berry  <karl@gnu.org>
21848
21849         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
21850         omitting sectioning and index commands.
21851
21852 2007-07-13  Bruno Haible  <bruno@clisp.org>
21853
21854         New gnulib-tool option --more-symlinks.
21855         * gnulib-tool (func_usage): Document --more-symlinks.
21856         (do_copyrights): New variable.
21857         Recognize option --more-symlinks.
21858         (func_import): Don't add a copyright notice transform to
21859         sed_transform_lib_file if do_copyrights is empty.
21860
21861 2007-07-13  Bruno Haible  <bruno@clisp.org>
21862
21863         * lib/vasnprintf.c (decimal_point_char): Define also if
21864         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
21865         && !NEED_PRINTF_DIRECTIVE_A.
21866         Reported by Clemens Koller <clemens.koller@anagramm.de> via
21867         Gary V. Vaughan <gary@gnu.org>.
21868
21869 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
21870
21871         * lib/inttypes_.h: Undo previous change, since it was fixed
21872         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
21873
21874 2007-07-13  Bruno Haible  <bruno@clisp.org>
21875
21876         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
21877         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
21878
21879 2007-07-13  Jim Meyering  <jim@meyering.net>
21880
21881         df: Don't fail for Tru64's "file-on-file mount".
21882         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
21883         so we fall through and use statfs instead.  Details here:
21884         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
21885         Reported by Albert Chin.
21886
21887 2007-07-13  Bruno Haible  <bruno@clisp.org>
21888
21889         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
21890         * modules/configmake (License): Likewise.
21891         * modules/gettext (License): Likewise.
21892         * modules/gettext-h (License): Likewise.
21893         * modules/include_next (License): Likewise.
21894         * modules/link-warning (License): Likewise.
21895         * modules/localcharset (License): Likewise.
21896         * modules/localename (License): Likewise.
21897         * modules/lock (License): Likewise.
21898         * modules/relocatable-lib-lgpl (License): Likewise.
21899         * modules/size_max (License): Likewise.
21900         * modules/vasnprintf (License): Likewise.
21901         * modules/wchar (License): Likewise.
21902         * modules/xsize (License): Likewise.
21903
21904 2007-07-13  Bruno Haible  <bruno@clisp.org>
21905
21906         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
21907         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
21908
21909 2007-07-12  Bruno Haible  <bruno@clisp.org>
21910
21911         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
21912         in the modules files.
21913
21914 2007-07-11  Karl Berry  <karl@gnu.org>
21915
21916         * MODULES.html.sh (func_module): use
21917          sed -e '\|^'"${includefile}"'$|d'
21918          instead of /.../d, to avoid errors on $includefile's containing /.
21919
21920 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21921
21922         * gnulib-tool (func_import): Avoid duplication of --avoid
21923         statements
21924         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
21925         names to `_' in variable names.
21926
21927 2007-07-10  Eric Blake  <ebb9@byu.net>
21928
21929         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
21930         * NEWS: Document this change.
21931
21932 2007-07-08  Bruno Haible  <bruno@clisp.org>
21933
21934         Update to Unicode 5.0.
21935         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
21936         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
21937         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
21938         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
21939         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
21940         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
21941         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
21942         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
21943         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
21944         U+10A3F, U+1D242..U+1D244.
21945         (nonspacing_table_ind): Update.
21946         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
21947         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
21948
21949 2007-07-08  Bruno Haible  <bruno@clisp.org>
21950
21951         Update to Unicode 5.0.
21952         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
21953         code transform. Extend the name index field of unicode_name_to_code and
21954         unicode_code_to_name from 16 to 24 bits.
21955         * lib/uniname/uniname.c (unicode_character_name,
21956         unicode_name_character): Add the range 0x12xxx to the code transform.
21957         * lib/uniname/uninames.h: Regenerated.
21958         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
21959
21960 2007-07-07  Bruno Haible  <bruno@clisp.org>
21961
21962         * modules/wcwidth-tests: New file.
21963         * tests/test-wcwidth.c: New file.
21964
21965         Work around MacOS X wcwidth() bug.
21966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
21967         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
21968         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
21969         original wcwidth in non-UTF-8 locales.
21970         * modules/wcwidth (Depends-on): Add localcharset, streq,
21971         uniwidth/width.
21972         * doc/functions/wcwidth.texi: Update.
21973
21974 2007-07-07  Bruno Haible  <bruno@clisp.org>
21975
21976         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
21977         (wcwidth): New declaration.
21978         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
21979         macros.
21980         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
21981         here. Prepare for creating <wchar.h> unconditionally.
21982         * modules/wchar (Depends-on): Add link-warning.
21983         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
21984         REPLACE_WCWIDTH, and GL_LINK_WARNING.
21985         * lib/wcwidth.h: Remove file.
21986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
21987         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
21988         * modules/wcwidth (Files): Remove lib/wcwidth.h.
21989         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
21990         (Include): Replace wcwidth.h with <wchar.h>.
21991         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
21992         * lib/mbchar.h: Don't include wcwidth.h.
21993         * lib/mbswidth.c: Likewise.
21994         * NEWS: Mention the change.
21995
21996 2007-07-07  Bruno Haible  <bruno@clisp.org>
21997
21998         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
21999         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
22000         definition with an external declaration.
22001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
22002         defined as a function. Remove AC_C_INLINE requirement.
22003         * modules/wcwidth (Files): Add lib/wcwidth.c.
22004         (Makefile.am): Remove redundant statement.
22005
22006 2007-07-07  Bruno Haible  <bruno@clisp.org>
22007
22008         * MODULES.html.sh (Unicode string functions): Add the new modules.
22009
22010         * tests/uniwidth/test-u32-strwidth.c: New file.
22011         * modules/uniwidth/u32-strwidth-tests: New file.
22012
22013         * lib/uniwidth/u32-strwidth.c: New file.
22014         * modules/uniwidth/u32-strwidth: New file.
22015
22016         * tests/uniwidth/test-u16-strwidth.c: New file.
22017         * modules/uniwidth/u16-strwidth-tests: New file.
22018
22019         * lib/uniwidth/u16-strwidth.c: New file.
22020         * modules/uniwidth/u16-strwidth: New file.
22021
22022         * tests/uniwidth/test-u8-strwidth.c: New file.
22023         * modules/uniwidth/u8-strwidth-tests: New file.
22024
22025         * lib/uniwidth/u8-strwidth.c: New file.
22026         * modules/uniwidth/u8-strwidth: New file.
22027
22028         * tests/uniwidth/test-u32-width.c: New file.
22029         * modules/uniwidth/u32-width-tests: New file.
22030
22031         * lib/uniwidth/u32-width.c: New file.
22032         * modules/uniwidth/u32-width: New file.
22033
22034         * tests/uniwidth/test-u16-width.c: New file.
22035         * modules/uniwidth/u16-width-tests: New file.
22036
22037         * lib/uniwidth/u16-width.c: New file.
22038         * modules/uniwidth/u16-width: New file.
22039
22040         * tests/uniwidth/test-u8-width.c: New file.
22041         * modules/uniwidth/u8-width-tests: New file.
22042
22043         * lib/uniwidth/u8-width.c: New file.
22044         * modules/uniwidth/u8-width: New file.
22045
22046         * tests/uniwidth/test-uc_width.c: New file.
22047         * modules/uniwidth/width-tests: New file.
22048
22049         * lib/uniwidth/width.c: New file, from GNU libiconv.
22050         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
22051         * modules/uniwidth/width: New file.
22052
22053         * lib/uniwidth.h: New file, from GNU libiconv.
22054         * modules/uniwidth/base: New file.
22055
22056 2007-07-07  Bruno Haible  <bruno@clisp.org>
22057
22058         * lib/uniname.h: New file, from GNU gettext.
22059         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
22060         * lib/uniname/uninames.h: New file, from GNU gettext.
22061         * lib/uniname/uniname.c: New file, from GNU gettext.
22062         * tests/uniname/test-uninames.sh: New file.
22063         * tests/uniname/test-uninames.c: New file, from GNU gettext.
22064         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
22065         * modules/uniname/base: New file.
22066         * modules/uniname/uniname: New file.
22067         * modules/uniname/uniname-tests: New file.
22068         * MODULES.html.sh (Unicode string functions): Add the new modules.
22069
22070 2007-07-06  Bruno Haible  <bruno@clisp.org>
22071
22072         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
22073
22074 2007-07-06  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
22077         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
22078         includes <cygwin/sys_time.h> which includes <sys/select.h> which
22079         include <sys/time.h>.
22080         Reported by Eric Blake.
22081
22082 2007-07-06  Eric Blake  <ebb9@byu.net>
22083
22084         Fix testing canonicalize on cygwin.
22085         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22086         Revert patch from 2007-06-19.
22087         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
22088         canonicalize module is also in use.
22089         * tests/test-canonicalize.c: New file.
22090         * tests/test-canonicalize.sh: Likewise.
22091         * modules/canonicalize-tests: Likewise.
22092
22093 2007-07-06  Jim Meyering  <jim@meyering.net>
22094
22095         * lib/getugroups.c (getugroups): Detect getgrent failure.
22096         Adjust comment to reflect reality: this function may return -1.
22097
22098 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22099
22100         * build-aux/bootstrap (TP_URL,get_translations): Update to use
22101         the new TP address.
22102         (usage): Fix typo
22103         (gnulib_mk): New variable.
22104
22105 2007-07-05  Jim Meyering  <jim@meyering.net>
22106
22107         Don't let endgrent clobber errno, no matter how improbable.
22108         * lib/getugroups.c (getugroups): Save and restore errno around
22109         endgrent call.
22110
22111         Close the group DB even when failing with 2^31 or more members.
22112         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
22113
22114 2007-07-04  Jim Meyering  <jim@meyering.net>
22115
22116         * lib/getugroups.h: New file.
22117         * lib/getugroups.c: Include "getugroups.h".
22118         Remove uses of "register" keyword.
22119         Move local variable, "cp", down into scope where used.
22120         Give "username" parameter the "const" attribute.
22121         * modules/getugroups (Files): Add lib/getugroups.h
22122
22123 2007-07-04  Karl Berry  <karl@gnu.org>
22124
22125         * MODULES.html.sh (func_all_modules): Complete rename of
22126         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
22127
22128 2007-07-02  Bruno Haible  <bruno@clisp.org>
22129
22130         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
22131         mode, when inttypes.h comes from gnulib.
22132         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22133
22134 2007-07-02  Simon Josefsson  <simon@josefsson.org>
22135
22136         * NEWS: Mention lgpl module name change.
22137
22138         * modules/lgpl-2.1: Renamed from lgpl.
22139
22140         * NEWS: Mention gpl module name change.
22141
22142         * modules/gpl-3.0: New file, based on gpl-2.0.
22143
22144         * modules/gpl-2.0: Renamed from gpl.
22145
22146         * modules/gpl: Fix filename, doc/gpl.texi is now found at
22147         doc/gpl-2.0.texi.
22148
22149 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22150
22151         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
22152         #define __STDC_LIMIT_MACROS temporarily while including
22153         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
22154         Problem reported by Joel E. Denny in
22155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
22156
22157 2007-07-01  Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/unistdio.h: New file.
22160         * lib/unistdio/u-asnprintf.h: New file.
22161         * lib/unistdio/u-asprintf.h: New file.
22162         * lib/unistdio/u-printf-args.c: New file.
22163         * lib/unistdio/u-printf-args.h: New file.
22164         * lib/unistdio/u-printf-parse.h: New file.
22165         * lib/unistdio/u-snprintf.h: New file.
22166         * lib/unistdio/u-sprintf.h: New file.
22167         * lib/unistdio/u-vasprintf.h: New file.
22168         * lib/unistdio/u-vsnprintf.h: New file.
22169         * lib/unistdio/u-vsprintf.h: New file.
22170         * lib/unistdio/ulc-asnprintf.c: New file.
22171         * lib/unistdio/ulc-asprintf.c: New file.
22172         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
22173         * lib/unistdio/ulc-printf-parse.c: New file.
22174         * lib/unistdio/ulc-snprintf.c: New file.
22175         * lib/unistdio/ulc-sprintf.c: New file.
22176         * lib/unistdio/ulc-vasnprintf.c: New file.
22177         * lib/unistdio/ulc-vasprintf.c: New file.
22178         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
22179         * lib/unistdio/ulc-vsnprintf.c: New file.
22180         * lib/unistdio/ulc-vsprintf.c: New file.
22181         * lib/unistdio/u8-asnprintf.c: New file.
22182         * lib/unistdio/u8-asprintf.c: New file.
22183         * lib/unistdio/u8-printf-parse.c: New file.
22184         * lib/unistdio/u8-snprintf.c: New file.
22185         * lib/unistdio/u8-sprintf.c: New file.
22186         * lib/unistdio/u8-vasnprintf.c: New file.
22187         * lib/unistdio/u8-vasprintf.c: New file.
22188         * lib/unistdio/u8-vsnprintf.c: New file.
22189         * lib/unistdio/u8-vsprintf.c: New file.
22190         * lib/unistdio/u8-u8-asnprintf.c: New file.
22191         * lib/unistdio/u8-u8-asprintf.c: New file.
22192         * lib/unistdio/u8-u8-snprintf.c: New file.
22193         * lib/unistdio/u8-u8-sprintf.c: New file.
22194         * lib/unistdio/u8-u8-vasnprintf.c: New file.
22195         * lib/unistdio/u8-u8-vasprintf.c: New file.
22196         * lib/unistdio/u8-u8-vsnprintf.c: New file.
22197         * lib/unistdio/u8-u8-vsprintf.c: New file.
22198         * lib/unistdio/u16-asnprintf.c: New file.
22199         * lib/unistdio/u16-asprintf.c: New file.
22200         * lib/unistdio/u16-printf-parse.c: New file.
22201         * lib/unistdio/u16-snprintf.c: New file.
22202         * lib/unistdio/u16-sprintf.c: New file.
22203         * lib/unistdio/u16-vasnprintf.c: New file.
22204         * lib/unistdio/u16-vasprintf.c: New file.
22205         * lib/unistdio/u16-vsnprintf.c: New file.
22206         * lib/unistdio/u16-vsprintf.c: New file.
22207         * lib/unistdio/u16-u16-asnprintf.c: New file.
22208         * lib/unistdio/u16-u16-asprintf.c: New file.
22209         * lib/unistdio/u16-u16-snprintf.c: New file.
22210         * lib/unistdio/u16-u16-sprintf.c: New file.
22211         * lib/unistdio/u16-u16-vasnprintf.c: New file.
22212         * lib/unistdio/u16-u16-vasprintf.c: New file.
22213         * lib/unistdio/u16-u16-vsnprintf.c: New file.
22214         * lib/unistdio/u16-u16-vsprintf.c: New file.
22215         * lib/unistdio/u32-asnprintf.c: New file.
22216         * lib/unistdio/u32-asprintf.c: New file.
22217         * lib/unistdio/u32-printf-parse.c: New file.
22218         * lib/unistdio/u32-snprintf.c: New file.
22219         * lib/unistdio/u32-sprintf.c: New file.
22220         * lib/unistdio/u32-vasnprintf.c: New file.
22221         * lib/unistdio/u32-vasprintf.c: New file.
22222         * lib/unistdio/u32-vsnprintf.c: New file.
22223         * lib/unistdio/u32-vsprintf.c: New file.
22224         * lib/unistdio/u32-u32-asnprintf.c: New file.
22225         * lib/unistdio/u32-u32-asprintf.c: New file.
22226         * lib/unistdio/u32-u32-snprintf.c: New file.
22227         * lib/unistdio/u32-u32-sprintf.c: New file.
22228         * lib/unistdio/u32-u32-vasnprintf.c: New file.
22229         * lib/unistdio/u32-u32-vasprintf.c: New file.
22230         * lib/unistdio/u32-u32-vsnprintf.c: New file.
22231         * lib/unistdio/u32-u32-vsprintf.c: New file.
22232         * tests/unistdio/test-ulc-asnprintf1.c: New file.
22233         * tests/unistdio/test-ulc-asnprintf1.h: New file.
22234         * tests/unistdio/test-ulc-printf1.h: New file.
22235         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
22236         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
22237         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
22238         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
22239         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
22240         * tests/unistdio/test-ulc-vasprintf1.c: New file.
22241         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
22242         * tests/unistdio/test-ulc-vsprintf1.c: New file.
22243         * tests/unistdio/test-u8-asnprintf1.c: New file.
22244         * tests/unistdio/test-u8-asnprintf1.h: New file.
22245         * tests/unistdio/test-u8-printf1.h: New file.
22246         * tests/unistdio/test-u8-vasnprintf1.c: New file.
22247         * tests/unistdio/test-u8-vasnprintf2.c: New file.
22248         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
22249         * tests/unistdio/test-u8-vasnprintf3.c: New file.
22250         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
22251         * tests/unistdio/test-u8-vasprintf1.c: New file.
22252         * tests/unistdio/test-u8-vsnprintf1.c: New file.
22253         * tests/unistdio/test-u8-vsprintf1.c: New file.
22254         * tests/unistdio/test-u16-asnprintf1.c: New file.
22255         * tests/unistdio/test-u16-asnprintf1.h: New file.
22256         * tests/unistdio/test-u16-printf1.h: New file.
22257         * tests/unistdio/test-u16-vasnprintf1.c: New file.
22258         * tests/unistdio/test-u16-vasnprintf2.c: New file.
22259         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
22260         * tests/unistdio/test-u16-vasnprintf3.c: New file.
22261         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
22262         * tests/unistdio/test-u16-vasprintf1.c: New file.
22263         * tests/unistdio/test-u16-vsnprintf1.c: New file.
22264         * tests/unistdio/test-u16-vsprintf1.c: New file.
22265         * tests/unistdio/test-u32-asnprintf1.c: New file.
22266         * tests/unistdio/test-u32-asnprintf1.h: New file.
22267         * tests/unistdio/test-u32-printf1.h: New file.
22268         * tests/unistdio/test-u32-vasnprintf1.c: New file.
22269         * tests/unistdio/test-u32-vasnprintf2.c: New file.
22270         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
22271         * tests/unistdio/test-u32-vasnprintf3.c: New file.
22272         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
22273         * tests/unistdio/test-u32-vasprintf1.c: New file.
22274         * tests/unistdio/test-u32-vsnprintf1.c: New file.
22275         * tests/unistdio/test-u32-vsprintf1.c: New file.
22276         * modules/unistdio/base: New file.
22277         * modules/unistdio/u-printf-args: New file.
22278         * modules/unistdio/ulc-asnprintf: New file.
22279         * modules/unistdio/ulc-asprintf: New file.
22280         * modules/unistdio/ulc-fprintf: New file.
22281         * modules/unistdio/ulc-printf-parse: New file.
22282         * modules/unistdio/ulc-snprintf: New file.
22283         * modules/unistdio/ulc-sprintf: New file.
22284         * modules/unistdio/ulc-vasnprintf: New file.
22285         * modules/unistdio/ulc-vasprintf: New file.
22286         * modules/unistdio/ulc-vfprintf: New file.
22287         * modules/unistdio/ulc-vsnprintf: New file.
22288         * modules/unistdio/ulc-vsprintf: New file.
22289         * modules/unistdio/u8-asnprintf: New file.
22290         * modules/unistdio/u8-asprintf: New file.
22291         * modules/unistdio/u8-printf-parse: New file.
22292         * modules/unistdio/u8-snprintf: New file.
22293         * modules/unistdio/u8-sprintf: New file.
22294         * modules/unistdio/u8-vasnprintf: New file.
22295         * modules/unistdio/u8-vasprintf: New file.
22296         * modules/unistdio/u8-vsnprintf: New file.
22297         * modules/unistdio/u8-vsprintf: New file.
22298         * modules/unistdio/u8-u8-asnprintf: New file.
22299         * modules/unistdio/u8-u8-asprintf: New file.
22300         * modules/unistdio/u8-u8-snprintf: New file.
22301         * modules/unistdio/u8-u8-sprintf: New file.
22302         * modules/unistdio/u8-u8-vasnprintf: New file.
22303         * modules/unistdio/u8-u8-vasprintf: New file.
22304         * modules/unistdio/u8-u8-vsnprintf: New file.
22305         * modules/unistdio/u8-u8-vsprintf: New file.
22306         * modules/unistdio/u16-asnprintf: New file.
22307         * modules/unistdio/u16-asprintf: New file.
22308         * modules/unistdio/u16-printf-parse: New file.
22309         * modules/unistdio/u16-snprintf: New file.
22310         * modules/unistdio/u16-sprintf: New file.
22311         * modules/unistdio/u16-vasnprintf: New file.
22312         * modules/unistdio/u16-vasprintf: New file.
22313         * modules/unistdio/u16-vsnprintf: New file.
22314         * modules/unistdio/u16-vsprintf: New file.
22315         * modules/unistdio/u16-u16-asnprintf: New file.
22316         * modules/unistdio/u16-u16-asprintf: New file.
22317         * modules/unistdio/u16-u16-snprintf: New file.
22318         * modules/unistdio/u16-u16-sprintf: New file.
22319         * modules/unistdio/u16-u16-vasnprintf: New file.
22320         * modules/unistdio/u16-u16-vasprintf: New file.
22321         * modules/unistdio/u16-u16-vsnprintf: New file.
22322         * modules/unistdio/u16-u16-vsprintf: New file.
22323         * modules/unistdio/u32-asnprintf: New file.
22324         * modules/unistdio/u32-asprintf: New file.
22325         * modules/unistdio/u32-printf-parse: New file.
22326         * modules/unistdio/u32-snprintf: New file.
22327         * modules/unistdio/u32-sprintf: New file.
22328         * modules/unistdio/u32-vasnprintf: New file.
22329         * modules/unistdio/u32-vasprintf: New file.
22330         * modules/unistdio/u32-vsnprintf: New file.
22331         * modules/unistdio/u32-vsprintf: New file.
22332         * modules/unistdio/u32-u32-asnprintf: New file.
22333         * modules/unistdio/u32-u32-asprintf: New file.
22334         * modules/unistdio/u32-u32-snprintf: New file.
22335         * modules/unistdio/u32-u32-sprintf: New file.
22336         * modules/unistdio/u32-u32-vasnprintf: New file.
22337         * modules/unistdio/u32-u32-vasprintf: New file.
22338         * modules/unistdio/u32-u32-vsnprintf: New file.
22339         * modules/unistdio/u32-u32-vsprintf: New file.
22340         * modules/unistdio/ulc-asnprintf-tests: New file.
22341         * modules/unistdio/ulc-vasnprintf-tests: New file.
22342         * modules/unistdio/ulc-vasprintf-tests: New file.
22343         * modules/unistdio/ulc-vsnprintf-tests: New file.
22344         * modules/unistdio/ulc-vsprintf-tests: New file.
22345         * modules/unistdio/u8-asnprintf-tests: New file.
22346         * modules/unistdio/u8-vasnprintf-tests: New file.
22347         * modules/unistdio/u8-vasprintf-tests: New file.
22348         * modules/unistdio/u8-vsnprintf-tests: New file.
22349         * modules/unistdio/u8-vsprintf-tests: New file.
22350         * modules/unistdio/u16-asnprintf-tests: New file.
22351         * modules/unistdio/u16-vasnprintf-tests: New file.
22352         * modules/unistdio/u16-vasprintf-tests: New file.
22353         * modules/unistdio/u16-vsnprintf-tests: New file.
22354         * modules/unistdio/u16-vsprintf-tests: New file.
22355         * modules/unistdio/u32-asnprintf-tests: New file.
22356         * modules/unistdio/u32-vasnprintf-tests: New file.
22357         * modules/unistdio/u32-vasprintf-tests: New file.
22358         * modules/unistdio/u32-vsnprintf-tests: New file.
22359         * modules/unistdio/u32-vsprintf-tests: New file.
22360         * MODULES.html.sh (Unicode string functions): Add the new modules.
22361
22362 2007-07-01  Bruno Haible  <bruno@clisp.org>
22363
22364         * lib/sprintf.c (sprintf): Limit the available length estimation,
22365         to avoid address wraparound.
22366         * lib/vsprintf.c (vsprintf): Likewise.
22367         * modules/sprintf-posix (Dependencies): Add stdint.
22368         * modules/vsprintf-posix (Dependencies): Likewise.
22369
22370 2007-07-01  Bruno Haible  <bruno@clisp.org>
22371
22372         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
22373         Windows PATH as well. Conservative double-quoting. Comments.
22374
22375 2007-07-01  Bruno Haible  <bruno@clisp.org>
22376             Eric Blake  <ebb9@byu.net>
22377             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22378
22379         * gnulib-tool (self_abspathname): Fix algorithm to cope with
22380         empty components in $PATH, denoting '.'.
22381
22382 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22383
22384         * gnulib-tool: Fix indentation.
22385         (func_create_megatestdir): Likewise.
22386         Report by Bruno Haible.
22387
22388 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22389
22390         Sync from Automake.
22391         * build-aux/gnupload: Fix shell portability issues with for loops.
22392         Report by Karl Berry.
22393
22394 2007-06-29  Simon Josefsson  <simon@josefsson.org>
22395
22396         * build-aux/maint.mk (POURL): Use translationproject.org.
22397
22398 2007-06-27  Simon Josefsson  <simon@josefsson.org>
22399             Bruno Haible  <bruno@clisp.org>
22400
22401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
22402         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
22403         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
22404         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
22405         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
22406
22407 2007-06-27  Bruno Haible  <bruno@clisp.org>
22408
22409         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
22410         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
22411
22412 2007-06-26  Karl Berry  <karl@gnu.org>
22413
22414         * MODULES.html.sh: remove xreadlink-with-size.
22415
22416 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22417
22418         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
22419         method that I hope also handles the double-include problem noted
22420         by Bruno Haible in
22421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
22422
22423 2007-06-23  Bruno Haible  <bruno@clisp.org>
22424
22425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22426         Don't let the 'mostlyclean' target fail if the last subdirectory could
22427         not be removed.
22428         Reported by Karl Berry.
22429
22430 2007-06-23  Bruno Haible  <bruno@clisp.org>
22431
22432         * gnulib-tool (echo): Add a speedier workaround for ksh.
22433         * tests/test-echo.sh: Likewise.
22434
22435 2007-06-23  Bruno Haible  <bruno@clisp.org>
22436
22437         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
22438         * tests/test-echo.sh: Likewise.
22439
22440 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22441
22442         * gnulib-tool (IFS): Initialize early, so we don't set it to
22443         empty later.
22444         (self_abspathname): Rewrite algorithm to set it, reindent.
22445         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
22446         (func_create_megatestdir): Merge some sed scripts.
22447
22448 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22449
22450         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
22451         exposed by Sun Studio 11 cc on Solaris 8.
22452
22453 2007-06-22  Bruno Haible  <bruno@clisp.org>
22454
22455         * gnulib-tool (echo): Ensure the echo primitive does not interpret
22456         backslashes.
22457         * tests/test-echo.sh: New file.
22458
22459 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22460
22461         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
22462         simplify `sed_replace_build_aux' scripts, they are portable but
22463         echoing them with `echo' is not.
22464         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
22465
22466 2007-06-21  Karl Berry  <karl@gnu.org>
22467
22468         * config/srclist.txt: guess we can't handle the licenses via
22469         srclist at the moment.
22470
22471 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22472
22473         * MODULES.html.sh: Add include_next.
22474         * modules/include_next: New file.
22475
22476 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22477
22478         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
22479         INCLUDE_NEXT.
22480         (gl_CHECK_NEXT_HEADERS): New macro.
22481         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
22482         the obsolescent gl_ABSOLUTE_HEADER.
22483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22484         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22485         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22486         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22487         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22488         * m4/math_h.m4 (gl_MATH_H): Likewise.
22489         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22490         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22491         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22492         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22493         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22494         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22495         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22496         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22497         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22499         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22500         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22501         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
22502         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22503         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22504         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22505         * m4/inttypes.m4 (gl_INTTYPES_H): Define
22506         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
22507         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
22508         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
22509         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
22510         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
22511         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
22512         * lib/float_.h: Likewise.
22513         * lib/inttypes_.h: Likewise.
22514         * lib/math_.h: Likewise.
22515         * lib/search_.h: Likewise.
22516         * lib/signal_.h: Likewise.
22517         * lib/stdint_.h: Likewise.
22518         * lib/stdio_.h: Likewise.
22519         * lib/stdlib_.h: Likewise.
22520         * lib/string_.h: Likewise.
22521         * lib/sys_stat_.h: Likewise.
22522         * lib/sys_time_.h: Likewise.
22523         * lib/time_.h: Likewise.
22524         * lib/unistd_.h: Likewise.
22525         * lib/wchar_.h: Likewise.
22526         * lib/wctype_.h: Likewise.
22527         * lib/dirent_.h: Likewise.
22528         * lib/iconv_.h: Likewise.
22529         * lib/locale_.h: Likewise.
22530         * lib/netinet_in_.h: Likewise.
22531         * lib/sys_select_.h: Likewise.
22532         * lib/sys_socket_.h: Likewise.
22533         * lib/sysexits_.h: Likewise.
22534         * modules/fcntl (Depends-on): Depend on include_next, not
22535         absolute_header.
22536         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
22537         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
22538         * modules/fchdir: Likewise.
22539         * modules/float: Likewise.
22540         * modules/iconv_open: Likewise.
22541         * modules/inttypes: Likewise.
22542         * modules/locale: Likewise.
22543         * modules/math: Likewise.
22544         * modules/netinet_in: Likewise.
22545         * modules/search: Likewise.
22546         * modules/signal: Likewise.
22547         * modules/stdint: Likewise.
22548         * modules/stdio: Likewise.
22549         * modules/stdlib: Likewise.
22550         * modules/string: Likewise.
22551         * modules/sys_select: Likewise.
22552         * modules/sys_socket: Likewise.
22553         * modules/sys_stat: Likewise.
22554         * modules/sys_time: Likewise.
22555         * modules/sysexits: Likewise.
22556         * modules/time: Likewise.
22557         * modules/unistd: Likewise.
22558         * modules/wchar: Likewise.
22559         * modules/wctype: Likewise.
22560         * modules/sys_stat: Change maintainer to "all".
22561         * modules/unistd: Likewise.
22562
22563 2007-06-20  Karl Berry  <karl@gnu.org>
22564
22565         * config/srclist.txt: track www changes in license files.
22566
22567 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
22568
22569         * build-aux/bootstrap: Remove stray dot.
22570         Make sure build_aux settings are honored when linking
22571         gnulib_extra_files.
22572
22573 2007-06-19  Eric Blake  <ebb9@byu.net>
22574
22575         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22576         Allow compilation on cygwin.
22577
22578 2007-06-19  Jim Meyering  <jim@meyering.net>
22579
22580         xreadlink-with-size: Remove module.  No longer used.
22581         Ex-callers now use xreadlink or mreadlink-with-size.
22582         * modules/xreadlink-with-size: Remove module.
22583         * lib/xreadlink-with-size.c: Remove file.
22584         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
22585         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
22586         just before the function definition *is* accurate.
22587
22588         Eliminate one way canonicalize_filename_mode could exit.
22589         * lib/canonicalize.c (canonicalize_filename_mode):
22590         Use mreadlink_with_size, not xreadlink_with_size.
22591
22592 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
22593
22594         Detect porting problems to FreeBSD/arm, which has time_t wider than
22595         long int.  Original problem reported for GNU diff by Xin Li in
22596         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
22597         * modules/getdate (Depends-on): Add intprops, verify.
22598         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
22599         is an integer type no wider than long int.
22600
22601 2007-06-18  Jim Meyering  <jim@meyering.net>
22602
22603         New module: mreadlink-with-size.
22604         * MODULES.html.sh: Add mreadlink-with-size.
22605         * modules/mreadlink-with-size: New module
22606         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
22607         not xreadlink-with-size.
22608         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
22609
22610 2007-06-16  Bruno Haible  <bruno@clisp.org>
22611
22612         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
22613         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
22614         Reported by Gary V. Vaughan <gary@gnu.org>.
22615
22616 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
22617
22618         Revamp lchown so that it lives in unistd.h where it belongs.
22619         * lib/lchown.h: Remove.
22620         * lib/dirchownmod.c: Don't include lib/lchown.h.
22621         * lib/fchownat.c: Likewise.
22622         * lib/openat.c: Likewise.
22623         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
22624         does not follow symlinks.
22625         (EOPNOTSUPP): Define if not defined.
22626         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
22627         is defined to 0.
22628         (lchown): New decl.
22629         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
22630         Do not check for lchown decl.
22631         Set REPLACE_LCHOWN.
22632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
22633         REPLACE_LCHOWN.
22634         * modules/chown: Make it clear it follows symlinks.
22635         * modules/lchown: Make it clear it doesn't follow symlinks.
22636         (Files): Remove lib/lchown.h
22637         (Depends-on): Add unistd.
22638         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
22639         (Include): Include <unistd.h>, not "lchown.h".
22640         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
22641         REPLACE_LCHOWN.
22642
22643 2007-06-15  Jim Meyering  <jim@meyering.net>
22644
22645         Change license (GPL to LGPL) of fsusage and dependents.
22646         * modules/fsusage (License): Change to LGPL.
22647         * modules/full-read (License): Likewise.
22648         * modules/full-write (License): Likewise.
22649         * modules/safe-read (License): Likewise.
22650         * modules/safe-write (License): Likewise.
22651
22652 2007-06-14  Ben Pfaff  <blp@gnu.org>
22653
22654         Missing part of allocsa -> malloca transition.
22655         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
22656         gl_MALLOCA.
22657
22658 2007-06-12  Bruno Haible  <bruno@clisp.org>
22659
22660         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
22661         to ia64, x86_64, i386.
22662         Reported by Eric Blake.
22663
22664 2007-06-12  Bruno Haible  <bruno@clisp.org>
22665
22666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
22667         cross-compiling to x86_64.
22668
22669 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
22670
22671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
22672         glitch reported by Ralf Wildenhues in
22673         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
22674
22675         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
22676         Vin Shelton.
22677
22678 2007-06-11  Bruno Haible  <bruno@clisp.org>
22679
22680         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
22681         replacement string.
22682         Reported by Eric Blake.
22683
22684 2007-06-10  Bruno Haible  <bruno@clisp.org>
22685
22686         Prepare vasnprintf code for use with Unicode strings.
22687         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
22688         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
22689         TYPE_U32_STRING.
22690         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
22691         a_u32_string variants.
22692         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22693         * lib/printf-args.c: Don't include config.h and the specification
22694         header if PRINTF_FETCHARGS is already defined.
22695         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22696         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
22697         TYPE_U16_STRING, TYPE_U32_STRING.
22698         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
22699         u16_directive, u16_directives, u32_directive, u32_directives): New
22700         types.
22701         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
22702         New declarations.
22703         * lib/printf-parse.c: Don't include config.h and the specification
22704         header if PRINTF_PARSE is already defined. Eliminate the set of
22705         parameters for WIDE_CHAR_VERSION; the user of this file must provide
22706         them now. Include c-ctype.h.
22707         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
22708         directive and CHAR_T_ONLY_ASCII.
22709         * lib/vasnprintf.c: Don't include config.h and the specification header
22710         if VASNPRINTF is already defined.
22711         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
22712         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
22713         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
22714         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
22715         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
22716         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
22717         code accordingly.
22718         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
22719         pad_ourselves also in this case, with the 'c' and 's' directives, and
22720         with a different notion of "width".
22721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
22722
22723 2007-06-10  Bruno Haible  <bruno@clisp.org>
22724
22725         * modules/unistr/u32-mbsnlen: New file.
22726         * lib/unistr/u32-mbsnlen.c: New file.
22727
22728         * modules/unistr/u16-mbsnlen: New file.
22729         * lib/unistr/u16-mbsnlen.c: New file.
22730
22731         * modules/unistr/u8-mbsnlen: New file.
22732         * lib/unistr/u8-mbsnlen.c: New file.
22733
22734         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
22735         declarations.
22736
22737 2007-06-10  Bruno Haible  <bruno@clisp.org>
22738
22739         * lib/string_.h (mbsnlen): New declaration.
22740         * lib/mbsnlen.c: New file.
22741         * m4/mbsnlen.m4: New file.
22742         * modules/mbsnlen: New file.
22743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
22744         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
22745         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
22746
22747 2007-06-10  Bruno Haible  <bruno@clisp.org>
22748
22749         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
22750
22751 2007-06-10  Bruno Haible  <bruno@clisp.org>
22752
22753         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
22754         * lib/mbuiter.h: Likewise.
22755
22756 2007-06-10  Bruno Haible  <bruno@clisp.org>
22757
22758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
22759         declaration.
22760
22761 2007-06-10  Karl Berry  <karl@gnu.org>
22762
22763         * config/srclist.txt: remove gettext entries, Bruno prefers
22764         to update individually.
22765
22766 2007-06-10  Bruno Haible  <bruno@clisp.org>
22767
22768         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
22769         'maxlen'. Ensure only length + width bytes are allocated, not
22770         length + 1 + width.
22771
22772 2007-06-09  Bruno Haible  <bruno@clisp.org>
22773
22774         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
22775         (CHAR_T): Remove macro.
22776         (VASNPRINTF): Update.
22777
22778 2007-06-09  Bruno Haible  <bruno@clisp.org>
22779
22780         * MODULES.html.sh (Unicode string functions): Add the new modules.
22781
22782         * modules/uniconv/u32-conv-to-enc: New file.
22783         * lib/uniconv/u32-conv-to-enc.c: New file.
22784         * modules/uniconv/u32-conv-to-enc-tests: New file.
22785         * tests/uniconv/test-u32-conv-to-enc.c: New file.
22786
22787         * modules/uniconv/u16-conv-to-enc: New file.
22788         * lib/uniconv/u16-conv-to-enc.c: New file.
22789         * lib/uniconv/u-conv-to-enc.h: New file.
22790         * modules/uniconv/u16-conv-to-enc-tests: New file.
22791         * tests/uniconv/test-u16-conv-to-enc.c: New file.
22792
22793         * modules/uniconv/u8-conv-to-enc: New file.
22794         * lib/uniconv/u8-conv-to-enc.c: New file.
22795         * modules/uniconv/u8-conv-to-enc-tests: New file.
22796         * tests/uniconv/test-u8-conv-to-enc.c: New file.
22797
22798         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22799         u32_conv_to_encoding): New declarations.
22800
22801 2007-06-09  Bruno Haible  <bruno@clisp.org>
22802
22803         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
22804
22805 2007-06-09  Bruno Haible  <bruno@clisp.org>
22806
22807         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
22808         * modules/malloca: Renamed from modules/allocsa, updated.
22809         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
22810         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
22811         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
22812         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
22813         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
22814         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
22815         * modules/xmalloca: Renamed from modules/xallocsa, updated.
22816         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
22817         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
22818         * modules/c-strcasestr (Depends-on): Update.
22819         * lib/c-strcasestr.c: Update.
22820         * modules/c-strstr (Depends-on): Update.
22821         * lib/c-strstr.c: Update.
22822         * modules/canonicalize-lgpl (Depends-on): Update.
22823         * lib/canonicalize-lgpl.c: Update.
22824         * modules/clean-temp (Depends-on): Update.
22825         * lib/clean-temp.c: Update.
22826         * modules/csharpcomp (Depends-on): Update.
22827         * lib/csharpcomp.c: Update.
22828         * modules/csharpexec (Depends-on): Update.
22829         * lib/csharpexec.c: Update.
22830         * modules/javacomp (Depends-on): Update.
22831         * lib/javacomp.c: Update.
22832         * modules/javaexec (Depends-on): Update.
22833         * lib/javaexec.c: Update.
22834         * modules/mbscasestr (Depends-on): Update.
22835         * lib/mbscasestr.c: Update.
22836         * modules/mbsstr (Depends-on): Update.
22837         * lib/mbsstr.c: Update.
22838         * modules/setenv (Depends-on): Update.
22839         * lib/setenv.c: Update.
22840         * modules/strcasestr (Depends-on): Update.
22841         * lib/strcasestr.c: Update.
22842         * modules/striconveha (Depends-on): Update.
22843         * lib/striconveha.c: Update.
22844         * modules/relocatable-prog-wrapper (Files): Update.
22845         * lib/relocwrapper.c: Update.
22846         * build-aux/install-reloc: Update.
22847         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
22848
22849 2007-06-08  Bruno Haible  <bruno@clisp.org>
22850
22851         Port to uClibc.
22852         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
22853         * lib/fpurge.c (fpurge): Likewise.
22854         * lib/freading.c (freading): Likewise.
22855         * lib/fseeko.c (rpl_fseeko): Likewise.
22856         * lib/fseterr.c (fseterr): Likewise.
22857         * lib/fwriting.c (fwriting): Likewise.
22858         * tests/test-fflush.c (main): Avoid a failure on uClibc.
22859
22860 2007-06-08  Bruno Haible  <bruno@clisp.org>
22861
22862         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
22863         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
22864         * modules/gettext (Files): Add m4/intlmacosx.m4.
22865
22866 2007-06-07  Bruno Haible  <bruno@clisp.org>
22867
22868         * modules/localename-tests: New file.
22869         * tests/test-localename.c: New file.
22870
22871         New module 'localename'.
22872         * lib/localename.h: New file.
22873         * lib/localename.c: New file, from GNU gettext.
22874         * m4/localename.m4: New file.
22875         * modules/localename: New file.
22876
22877 2007-06-07  Bruno Haible  <bruno@clisp.org>
22878
22879         Work around the lack of <wchar.h> on some builds of uClibc.
22880         * doc/headers/wchar.texi: Update.
22881         * lib/wchar_.h: Include <wchar.h> only if it exists.
22882         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
22883         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
22884         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
22885         doesn't exist.
22886         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
22887         * modules/mbfile (Depends-on): Add wchar.
22888         * modules/mbiter (Depends-on): Likewise.
22889         * modules/mbuiter (Depends-on): Likewise.
22890         Reported by Simon Josefsson.
22891
22892 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22893
22894         Work around problem reported by Steven M. Schweda in
22895         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
22896         Tru64 5.1B with the Compaq compiler environment installed declares
22897         an 'isblank' function but does not define it in the C library.
22898         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
22899         * lib/regex_internal.h (isblank): Likewise.
22900         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
22901         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22902
22903 2007-06-05  Bruno Haible  <bruno@clisp.org>
22904
22905         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
22906         ia64.
22907         * modules/printf-safe: New file.
22908         * modules/fprintf-posix (Depends-on): Add printf-safe.
22909         * modules/printf-posix (Depends-on): Likewise.
22910         * modules/snprintf-posix (Depends-on): Likewise.
22911         * modules/sprintf-posix (Depends-on): Likewise.
22912         * modules/vasnprintf-posix (Depends-on): Likewise.
22913         * modules/vasprintf-posix (Depends-on): Likewise.
22914         * modules/vfprintf-posix (Depends-on): Likewise.
22915         * modules/vprintf-posix (Depends-on): Likewise.
22916         * modules/vsnprintf-posix (Depends-on): Likewise.
22917         * modules/vsprintf-posix (Depends-on): Likewise.
22918         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
22919         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
22920         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
22921         "no" on i386, x86_64, ia64.
22922         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
22923         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22924         on i386, x86_64, ia64.
22925         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
22926         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22927         on i386, x86_64, ia64.
22928         * tests/test-vasnprintf-posix.c: Include float.h.
22929         (LDBL80_WORDS): New macro.
22930         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22931         on i386, x86_64, ia64.
22932         * tests/test-vasprintf-posix.c: Include float.h.
22933         (LDBL80_WORDS): New macro.
22934         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22935         on i386, x86_64, ia64.
22936         * tests/test-snprintf-posix.c: Include float.h.
22937         * tests/test-sprintf-posix.c: Likewise.
22938         * tests/test-vsnprintf-posix.c: Likewise.
22939         * tests/test-vsprintf-posix.c: Likewise.
22940
22941 2007-06-05  Bruno Haible  <bruno@clisp.org>
22942
22943         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
22944         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
22945         non-IEEE numbers on i386, x86_64, ia64.
22946         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
22947         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
22948         * tests/test-isnanl.h: Include float.h.
22949         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
22950
22951 2007-06-05  Bruno Haible  <bruno@clisp.org>
22952
22953         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
22954         also the %a / %A. Handle the %a / %A code before this extra handling.
22955
22956 2007-06-05  Bruno Haible  <bruno@clisp.org>
22957
22958         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
22959         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
22960
22961 2007-06-05  Bruno Haible  <bruno@clisp.org>
22962
22963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
22964         typo in variable name.
22965
22966 2007-06-05  Eric Blake  <ebb9@byu.net>
22967
22968         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
22969         Reported by Simon Josefsson.
22970
22971 2007-06-04  Bruno Haible  <bruno@clisp.org>
22972
22973         Avoid test failures on some PowerPC platforms.
22974         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
22975         Define differently for PowerPC.
22976         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
22977         Reported by Gary V. Vaughan <gary@gnu.org>.
22978
22979 2007-06-02  Bruno Haible  <bruno@clisp.org>
22980
22981         Fix test-stdint failure on FreeBSD/ia64.
22982         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
22983         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
22984         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
22985         * doc/headers/stdint.texi: Update.
22986
22987 2007-06-01  Bruno Haible  <bruno@clisp.org>
22988
22989         * tests/test-binary-io.c (main): Pass a third argument to open().
22990         Reported by Gary V. Vaughan <gary@gnu.org>.
22991
22992 2007-06-01  Bruno Haible  <bruno@clisp.org>
22993
22994         * doc/functions/frexpl.texi: Update for mingw.
22995
22996 2007-06-01  Bruno Haible  <bruno@clisp.org>
22997
22998         * tests/test-lseek.c (main): Disable test of errno for invalid third
22999         argument.
23000         * doc/functions/lseek.texi: Update.
23001         Reported by Gary V. Vaughan <gary@gnu.org>.
23002
23003 2007-05-28  Bruno Haible  <bruno@clisp.org>
23004
23005         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
23006
23007 2007-05-31  Eric Blake  <ebb9@byu.net>
23008
23009         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
23010         cross compiling.
23011
23012 2007-05-30  Eric Blake  <ebb9@byu.net>
23013         and Bruno Haible  <bruno@clisp.org>
23014
23015         Work around mingw test failures exposed by m4-1.4.9b.
23016         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
23017         * tests/test-unistd.c: Disable uid_t and git_t tests for the
23018         moment.
23019
23020 2007-05-30  Bruno Haible  <bruno@clisp.org>
23021
23022         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
23023         assuming that they are closed. Needed on HP-UX 11.
23024
23025 2007-05-29  Bruno Haible  <bruno@clisp.org>
23026
23027         Fix a problem with #include_next.
23028         * lib/dirent_.h: Split the double-inclusion guard.
23029         * lib/fcntl_.h: Likewise.
23030         * lib/float_.h: Likewise.
23031         * lib/iconv_.h: Likewise.
23032         * lib/inttypes_.h: Likewise.
23033         * lib/locale_.h: Likewise.
23034         * lib/math_.h: Likewise.
23035         * lib/netinet_in_.h: Likewise.
23036         * lib/search_.h: Likewise.
23037         * lib/signal_.h: Likewise.
23038         * lib/stdint_.h: Likewise.
23039         * lib/stdio_.h: Likewise.
23040         * lib/stdlib_.h: Likewise.
23041         * lib/string_.h: Likewise.
23042         * lib/sys_select_.h: Likewise.
23043         * lib/sys_socket_.h: Likewise.
23044         * lib/sys_stat_.h: Likewise.
23045         * lib/sys_time_.h: Likewise.
23046         * lib/sysexits_.h: Likewise.
23047         * lib/time_.h: Likewise.
23048         * lib/unistd_.h: Likewise.
23049         * lib/wchar_.h: Likewise.
23050         * lib/wctype_.h: Likewise.
23051
23052 2007-05-29  Bruno Haible  <bruno@clisp.org>
23053
23054         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
23055         for the moment.
23056
23057 2007-05-29  Bruno Haible  <bruno@clisp.org>
23058
23059         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
23060         invocation.
23061         Reported by Eric Blake.
23062
23063 2007-05-29  Bruno Haible  <bruno@clisp.org>
23064
23065         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
23066         compiling case.
23067
23068 2007-05-29  Eric Blake  <ebb9@byu.net>
23069             Bruno Haible  <bruno@clisp.org>
23070
23071         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
23072         cross compiles.
23073
23074 2007-05-28  Eric Blake  <ebb9@byu.net>
23075
23076         * modules/closein-tests (test_closein_LDADD): Support test on
23077         cygwin with libtool.
23078
23079 2007-05-28  Bruno Haible  <bruno@clisp.org>
23080
23081         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
23082         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23083         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23084         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23085         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23086         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23087         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23088         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23089         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23090
23091 2007-05-28  Eric Blake  <ebb9@byu.net>
23092
23093         Unconditionally include <config.h> in unit tests.
23094         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
23095         * tests/test-allocsa.c, tests/test-arcfour.c,
23096         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
23097         tests/test-array_list.c, tests/test-array_oset.c,
23098         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
23099         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
23100         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
23101         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
23102         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
23103         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
23104         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
23105         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
23106         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
23107         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
23108         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
23109         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
23110         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
23111         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
23112         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
23113         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
23114         test-md5.c, test-memmem.c, test-printf-posix.c,
23115         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
23116         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
23117         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
23118         test-strcasestr.c, test-striconv.c, test-striconveh.c,
23119         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
23120         test-vasnprintf-posix2.c, test-vasnprintf.c,
23121         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
23122         test-vfprintf-posix.c, test-vprintf-posix.c,
23123         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
23124         test-xvasprintf.c: Likewise.
23125
23126 2007-05-28  Bruno Haible  <bruno@clisp.org>
23127
23128         * gnulib-tool (func_import): Remember the --with-tests command-line
23129         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
23130         Reported by Eric Blake.
23131
23132 2007-05-28  Bruno Haible  <bruno@clisp.org>
23133
23134         * modules/ftell-tests: New file.
23135         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
23136         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
23137
23138         * lib/ftell.c: New file.
23139         * modules/ftell: New file.
23140         * m4/ftell.m4: New file.
23141         * doc/functions/ftell.texi: Update.
23142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
23143         REPLACE_FTELL.
23144         * lib/stdio_.h (rpl_ftell): New declaration.
23145         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
23146         REPLACE_FTELL.
23147
23148 2007-05-28  Eric Blake  <ebb9@byu.net>
23149
23150         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
23151
23152 2007-05-28  Bruno Haible  <bruno@clisp.org>
23153
23154         * modules/fseek-tests: New file.
23155         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
23156         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
23157
23158         * lib/fseek.c: New file.
23159         * modules/fseek: New file.
23160         * m4/fseek.m4: New file.
23161         * doc/functions/fseek.texi: Update.
23162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
23163         REPLACE_FSEEK.
23164         * lib/stdio_.h (rpl_fseek): New declaration.
23165         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
23166         REPLACE_FSEEK.
23167
23168 2007-05-28  Bruno Haible  <bruno@clisp.org>
23169
23170         * lib/stdio_.h (fflush): More comments.
23171
23172 2007-05-28  Bruno Haible  <bruno@clisp.org>
23173
23174         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
23175         runtime test.
23176
23177 2007-05-28  Eric Blake  <ebb9@byu.net>
23178
23179         Improve lseek module.
23180         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
23181         * lib/unistd_.h (lseek): Scale back link warning message.
23182         * tests/test-lseek.c: Beef up test.
23183         * tests/test-lseek.sh: Exercise more facets of lseek.
23184         Reported by Bruno Haible.
23185
23186 2007-05-28  Bruno Haible  <bruno@clisp.org>
23187
23188         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
23189         to define.
23190
23191 2007-05-27  Bruno Haible  <bruno@clisp.org>
23192
23193         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
23194
23195 2007-05-27  Bruno Haible  <bruno@clisp.org>
23196
23197         * modules/openmp: New file.
23198         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
23199         Noah Misch.
23200
23201 2007-05-26  Bruno Haible  <bruno@clisp.org>
23202
23203         * modules/chdir-long (Depends-on): Add fchdir.
23204         * modules/chdir-safer (Depends-on): Likewise.
23205         * modules/fts (Depends-on): Likewise.
23206         * modules/fts-lgpl (Depends-on): Likewise.
23207         * modules/openat (Depends-on): Likewise.
23208         * modules/savewd (Depends-on): Likewise.
23209
23210 2007-05-24  Eric Blake  <ebb9@byu.net>
23211
23212         Fix lseek on mingw.
23213         * modules/lseek: New module.
23214         * m4/lseek.m4: New file.
23215         * lib/lseek.c: New file.
23216         * modules/lseek-tests: New file.
23217         * tests/test-lseek.c: New file.
23218         * tests/test-lseek.sh: New file.
23219         * MODULES.html.sh: Document lseek module.
23220         * modules/fflush (Depends-on): Add lseek, fseeko.
23221         * modules/fseeko (Depends-on): Likewise.
23222         * modules/ftello (Depends-on): Likewise.
23223         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
23224         broken.
23225         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
23226         broken.
23227         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
23228         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
23229         * lib/ftello.c (rpl_ftello): Likewise.
23230         * tests/test-fseeko.c (main): Test this.
23231         * tests/test-fseeko.sh: Likewise.
23232         * tests/test-ftello.c (main): Likewise.
23233         * tests/test-ftello.sh: Likewise.
23234         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
23235         implies replacing fseek.
23236         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
23237         HAVE_FTELLO.
23238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
23239         * modules/unistd (Makefile.am): Likewise.
23240         * lib/unistd_.h (lseek): Declare a replacement.
23241         * doc/functions/lseek.texi (lseek): Document this fix.
23242         * doc/functions/fseek.texi (fseek): Likewise.
23243         * doc/functions/ftell.texi (ftell): Likewise.
23244
23245 2007-05-24  Bruno Haible  <bruno@clisp.org>
23246
23247         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
23248         in the printed representation of a NaN.
23249         * tests/test-vasprintf-posix.c (test_function): Likewise.
23250         * tests/test-snprintf-posix.h (test_function): Likewise.
23251         * tests/test-sprintf-posix.h (test_function): Likewise.
23252         Reported by Eric Blake.
23253
23254 2007-05-23  Eric Blake  <ebb9@byu.net>
23255
23256         Fix fseeko/ftello on cygwin 1.5.24.
23257         * doc/functions/fseeko.texi (fseeko): Document the fix.
23258         * doc/functions/ftello.texi (ftello): Document the fix.
23259         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
23260         * doc/functions/stdout.text (stdout): New file.
23261         * doc/functions/stderr.text (stderr): New file.
23262         * doc/gnulib.texi (Function Substitutes): Use new files.
23263         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
23264         prior to 1.7.0.
23265         * tests/test-ftello.c (main): Likewise for ftello.
23266         * tests/test-fseeko.sh: New file.
23267         * tests/test-ftello.sh: New file.
23268         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
23269         with seekable stdin.
23270         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
23271         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
23272         (gl_REPLACE_FSEEKO): New macro.
23273         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
23274         * modules/fseeko (Files): Distribute fseeko.c.
23275         * modules/ftello (Files): Distribute ftello.c.
23276         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
23277         mode.
23278         * lib/ftello.c (rpl_ftello): New file.
23279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
23280         fseeko, ftello.
23281         (gl_STDIN_LARGE_OFFSET): New macro.
23282         * modules/stdio (Makefile.am): Perform the replacement.
23283         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
23284
23285 2007-05-23  Bruno Haible  <bruno@clisp.org>
23286
23287         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
23288         GNULIB_POSIXCHECK is defined.
23289
23290 2007-05-21  Bruno Haible  <bruno@clisp.org>
23291
23292         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
23293         Check also the output for NaN arguments. When cross-compiling, guess
23294         no on IRIX.
23295         * lib/vasnprintf.c: Update comments.
23296         * tests/test-vasnprintf-posix.c (strisnan): New function.
23297         (test_function): Use it.
23298         * tests/test-vasprintf-posix.c (strisnan): New function.
23299         (test_function): Use it.
23300         * tests/test-snprintf-posix.h (strisnan): New function.
23301         (test_function): Use it.
23302         * tests/test-sprintf-posix.h (strisnan): New function.
23303         (test_function): Use it.
23304         Reported by Eric Blake.
23305
23306 2007-05-20  Bruno Haible  <bruno@clisp.org>
23307
23308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
23309         numbers that fails on BeOS.
23310         * doc/functions/frexpl.texi: Update.
23311
23312 2007-05-20  Jim Meyering  <jim@meyering.net>
23313
23314         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
23315         forced upon us by glibc-2.6.
23316
23317 2007-05-20  Bruno Haible  <bruno@clisp.org>
23318
23319         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
23320         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
23321         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
23322         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
23323         NEED_PRINTF_INFINITE.
23324         (is_infinitel): New function.
23325         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
23326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
23327         gl_PREREQ_VASNPRINTF_INFINITE.
23328         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
23329         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23330         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
23331         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
23332         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
23333         gl_PREREQ_VASNPRINTF_INFINITE.
23334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23335         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23341         * doc/functions/fprintf.texi: Update.
23342         * doc/functions/printf.texi: Update.
23343         * doc/functions/snprintf.texi: Update.
23344         * doc/functions/sprintf.texi: Update.
23345         * doc/functions/vfprintf.texi: Update.
23346         * doc/functions/vprintf.texi: Update.
23347         * doc/functions/vsnprintf.texi: Update.
23348         * doc/functions/vsprintf.texi: Update.
23349
23350 2007-05-20  Bruno Haible  <bruno@clisp.org>
23351
23352         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
23353         was not found in libc.
23354         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23355
23356 2007-05-20  Bruno Haible  <bruno@clisp.org>
23357
23358         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23359         printed as "-nan" instead of "nan".
23360         * tests/test-vasprintf-posix.c (test_function): Likewise.
23361         * tests/test-snprintf-posix.h (test_function): Likewise.
23362         * tests/test-sprintf-posix.h (test_function): Likewise.
23363         Needed for HP-UX 11.
23364
23365 2007-05-20  Jim Meyering  <jim@meyering.net>
23366
23367         Fix buggy test for the fchownat-deref bug.
23368         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
23369         symlink required for the run-test.  Without it, this test would
23370         always declare that fchownat doesn't work, and client code would
23371         unnecessarily use the replacement function with fixed libc.
23372         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
23373         Reported by Greg Schafer.
23374
23375 2007-05-19  Bruno Haible  <bruno@clisp.org>
23376
23377         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
23378         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
23379         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
23380         Needed for IRIX 6.5 and Solaris 2.5.1.
23381
23382 2007-05-19  Bruno Haible  <bruno@clisp.org>
23383
23384         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
23385         (test_function): Skip tests involving -0.0 on platforms where
23386         -0.0 = 0.0.
23387         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
23388         (test_function): Skip tests involving -0.0 on platforms where
23389         -0.0 = 0.0.
23390         * tests/test-snprintf-posix.h (have_minus_zero): New function.
23391         (test_function): Skip tests involving -0.0 on platforms where
23392         -0.0 = 0.0.
23393         * tests/test-sprintf-posix.h (have_minus_zero): New function.
23394         (test_function): Skip tests involving -0.0 on platforms where
23395         -0.0 = 0.0.
23396         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
23397         tests.
23398         * tests/test-printf-posix.h (test_function): Likewise.
23399         * tests/test-printf-posix.output: Remove all -0.0 related results.
23400         Needed for IRIX 6.5.
23401
23402 2007-05-19  Bruno Haible  <bruno@clisp.org>
23403
23404         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23405         printed as "nan0x7fffffff" instead of "nan".
23406         * tests/test-vasprintf-posix.c (test_function): Likewise.
23407         * tests/test-snprintf-posix.h (test_function): Likewise.
23408         * tests/test-sprintf-posix.h (test_function): Likewise.
23409         * tests/test-fprintf-posix.h (NaN): Remove macro.
23410         (test_function): Remove all NaN related tests.
23411         * tests/test-printf-posix.h (NaN): Remove macro.
23412         (test_function): Remove all NaN related tests.
23413         * tests/test-printf-posix.output: Remove all NaN related results.
23414         Needed for IRIX 6.5.
23415
23416 2007-05-19  Bruno Haible  <bruno@clisp.org>
23417
23418         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
23419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23420
23421 2007-05-19  Bruno Haible  <bruno@clisp.org>
23422
23423         * lib/float_.h: New file.
23424         * m4/float_h.m4: New file.
23425         * modules/float: New file.
23426         * modules/isnanl (Dependencies): Add float.
23427         * modules/isnanl-nolibm (Dependencies): Likewise.
23428         * modules/mathl (Dependencies): Likewise.
23429         * modules/printf-frexpl (Dependencies): Likewise.
23430         * modules/signbit (Dependencies): Likewise.
23431         * modules/vasnprintf (Dependencies): Likewise.
23432         * doc/headers/float.texi: Update.
23433
23434 2007-05-19  Jim Meyering  <jim@meyering.net>
23435
23436         * lib/utimens.c (gl_futimens): Rename from futimens,
23437         now that glibc-2.6 declares futimens.
23438         * lib/utimens.h: Likewise.
23439
23440 2007-05-19  Bruno Haible  <bruno@clisp.org>
23441
23442         Avoid test failures on mingw.
23443         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
23444         * tests/test-printf-posix.sh: Likewise.
23445         * tests/test-vfprintf-posix.sh: Likewise.
23446         * tests/test-vprintf-posix.sh: Likewise.
23447
23448 2007-05-19  Bruno Haible  <bruno@clisp.org>
23449
23450         Fix *printf result for NaN, Inf, -0.0 on mingw.
23451         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
23452         * lib/vasnprintf.c: Include math.h and isnan.h.
23453         (is_infinite_or_zero): New function.
23454         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
23455         values in the %f, %F, %e, %E, %g, %G directives.
23456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
23457         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23458         gl_PRINTF_INFINITE and test its result. Invoke
23459         gl_PREREQ_VASNPRINTF_INFINITE.
23460         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23461         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23467         * doc/functions/fprintf.texi: Update.
23468         * doc/functions/printf.texi: Update.
23469         * doc/functions/snprintf.texi: Update.
23470         * doc/functions/sprintf.texi: Update.
23471         * doc/functions/vfprintf.texi: Update.
23472         * doc/functions/vprintf.texi: Update.
23473         * doc/functions/vsnprintf.texi: Update.
23474         * doc/functions/vsprintf.texi: Update.
23475
23476 2007-05-19  Bruno Haible  <bruno@clisp.org>
23477
23478         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
23479         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
23480         Instead of multiplying with 10^k, set extra_zeroes to k.
23481         (scale10_round_long_double): Remove function.
23482
23483 2007-05-18  Bruno Haible  <bruno@clisp.org>
23484
23485         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
23486         introduced on 2007-05-06.
23487
23488 2007-05-18  Bruno Haible  <bruno@clisp.org>
23489
23490         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
23491         %g directives.
23492         * tests/test-vasprintf-posix.c (test_function): Likewise.
23493         * tests/test-snprintf-posix.h (test_function): Likewise.
23494         * tests/test-sprintf-posix.h (test_function): Likewise.
23495
23496 2007-05-18  Bruno Haible  <bruno@clisp.org>
23497
23498         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
23499         (strmatch): New function.
23500         (test_function): Test the %f directive on numbers of various exponents.
23501         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
23502         (strmatch): New function.
23503         (test_function): Test the %f directive on numbers of various exponents.
23504         * tests/test-snprintf-posix.h (strmatch): New function.
23505         (test_function): Test the %f directive on numbers of various exponents.
23506         * tests/test-sprintf-posix.h (strmatch): New function.
23507         (test_function): Test the %f directive on numbers of various exponents.
23508         * tests/test-snprintf-posix.c (SIZEOF): New macro.
23509         * tests/test-sprintf-posix.c (SIZEOF): New macro.
23510         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
23511         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
23512
23513 2007-05-18  Bruno Haible  <bruno@clisp.org>
23514
23515         Add support for 'long double' number output.
23516         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
23517         * lib/vasnprintf.c: Include math.h and float+.h.
23518         (mp_limb_t): New type.
23519         (GMP_LIMB_BITS): New macro.
23520         (mp_twolimb_t): New type.
23521         (GMP_TWOLIMB_BITS): New macro.
23522         (mpn_t): New type.
23523         (multiply, divide, convert_to_decimal, decode_long_double,
23524         scale10_round_long_double, scale10_round_decimal_long_double,
23525         floorlog10l): New functions.
23526         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
23527         for the %f, %F, %e, %E, %g, %G directives.
23528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
23529         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23530         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
23531         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
23532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23535         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23536         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23537         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23538         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23539         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
23540         * modules/snprintf-posix (Depends-on): Likewise.
23541         * modules/sprintf-posix (Depends-on): Likewise.
23542         * modules/vasnprintf-posix (Depends-on): Likewise.
23543         * modules/vasprintf-posix (Depends-on): Likewise.
23544         * modules/vfprintf-posix (Depends-on): Likewise.
23545         * modules/vsnprintf-posix (Depends-on): Likewise.
23546         * modules/vsprintf-posix (Depends-on): Likewise.
23547         * modules/vasnprintf (Files): Add lib/float+.h.
23548         * doc/functions/fprintf.texi: Update.
23549         * doc/functions/printf.texi: Update.
23550         * doc/functions/snprintf.texi: Update.
23551         * doc/functions/sprintf.texi: Update.
23552         * doc/functions/vfprintf.texi: Update.
23553         * doc/functions/vprintf.texi: Update.
23554         * doc/functions/vsnprintf.texi: Update.
23555         * doc/functions/vsprintf.texi: Update.
23556
23557 2007-05-18  Bruno Haible  <bruno@clisp.org>
23558
23559         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
23560
23561 2007-05-18  Bruno Haible  <bruno@clisp.org>
23562
23563         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
23564         for printing 64-bit integers. Needed for mingw.
23565
23566 2007-05-18  Bruno Haible  <bruno@clisp.org>
23567
23568         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23569         gl_FUNC_FREXPL_WORKS.
23570         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
23571
23572 2007-05-18  Bruno Haible  <bruno@clisp.org>
23573
23574         * modules/frexpl-nolibm-tests: New file.
23575
23576         * modules/frexpl-nolibm: New file.
23577         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
23578
23579 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23580
23581         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
23582         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23583         GCC 4.2, which otherwise issues a lot of warnings.
23584         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
23585         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
23586         Likewise.
23587         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
23588         * modules/iconv_open (iconv.h): Likewise.
23589         * modules/locale (locale.h): Likewise.
23590         * modules/netinet_in (netinet/in.h): Likewise.
23591         * modules/sys_select (sys_select.h): Likewise.
23592         * modules/sys_socket (sys/socket.h): Likewise.
23593         * modules/sys_stat (sys/stat.h): Likewise.
23594         * modules/sysexits (sysexits.h): Likewise.
23595         * modules/unistd (unistd.h): Likewise.
23596
23597 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23598
23599         * modules/closein-tests (Makefile.am): Distribute
23600         `test-closein.sh'.
23601
23602 2007-05-17  Bruno Haible  <bruno@clisp.org>
23603
23604         * tests/test-printf-posix.output: Renamed from
23605         tests/test-fprintf-posix.out.
23606         * modules/fprintf-posix-tests: Update.
23607         * modules/printf-posix-tests: Update.
23608         * modules/vfprintf-posix-tests: Update.
23609         * modules/vprintf-posix-tests: Update.
23610         * tests/test-fprintf-posix.sh: Update.
23611         * tests/test-printf-posix.sh: Update.
23612         * tests/test-vfprintf-posix.sh: Update.
23613         * tests/test-vprintf-posix.sh: Update.
23614         Reported by Ralf Wildenhues.
23615
23616 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23617
23618         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
23619         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23620         GCC 4.2, which otherwise issues a lot of warnings.
23621         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
23622         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
23623         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
23624         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
23625         it should no longer be needed.
23626         * lib/string_.h: Likewise.
23627         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
23628         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
23629         * modules/inttypes (inttypes.h): Likewise.
23630         * modules/math (math.h): Likewise.
23631         * modules/search (search.h): Likewise.
23632         * modules/signal (signal.h): Likewise.
23633         * modules/stdint (stdint.h): Likewise.
23634         * modules/stdio (stdio.h): Likewise.
23635         * modules/stdlib (stdlib.h): Likewise.
23636         * modules/string (string.h): Likewise.
23637         * modules/sys_time (sys/time.h): Likewise.
23638         * modules/time (time.h): Likewise.
23639         * modules/wchar (wchar.h): Likewise.
23640         * modules/wctype (wtype.h): Likewise.
23641
23642 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23643
23644         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
23645
23646 2007-05-13  Bruno Haible  <bruno@clisp.org>
23647
23648         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
23649         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23650         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
23651         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23652         (gl_PREREQ_STRTOK_R): Don't require it here.
23653
23654 2007-05-13  Bruno Haible  <bruno@clisp.org>
23655
23656         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
23657         when used in C++ mode.
23658
23659 2007-05-12  Bruno Haible  <bruno@clisp.org>
23660
23661         * lib/linebuffer.h: Tweak doc.
23662         * lib/linebuffer.c: Likewise.
23663
23664 2007-05-12  James Youngman  <jay@gnu.org>
23665
23666         * lib/linebuffer.c (readlinebuffer_delim): New function,
23667         like readlinebuffer, but use a caller-specified delimiter.
23668         (readlinebuffer): Just call readlinebuffer_delim with '\n'
23669         as the delimiter.
23670         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
23671
23672 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23673
23674         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
23675         * modules/openat (Files): Remove openat-die.c.
23676         (Depends-on): Add openat-die.
23677         * modules/openat-die: New module.
23678
23679 2007-05-06  Bruno Haible  <bruno@clisp.org>
23680
23681         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
23682         Update with info about Cygwin.
23683         * doc/functions/fprintf.texi: Update.
23684         * doc/functions/printf.texi: Update.
23685         * doc/functions/snprintf.texi: Update.
23686         * doc/functions/sprintf.texi: Update.
23687         * doc/functions/vfprintf.texi: Update.
23688         * doc/functions/vprintf.texi: Update.
23689         * doc/functions/vsnprintf.texi: Update.
23690         * doc/functions/vsprintf.texi: Update.
23691         Reported by Eric Blake.
23692
23693 2007-05-06  Bruno Haible  <bruno@clisp.org>
23694
23695         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
23696         padding ourselves for the floating-point directives.
23697         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
23698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
23699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23700         gl_PRINTF_FLAG_ZERO and test its result. Invoke
23701         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
23702         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23705         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23706         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23709         * tests/test-snprintf-posix.h (test_function): Also check the width
23710         and some flags in the %f directive.
23711         * tests/test-sprintf-posix.h (test_function): Likewise.
23712         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23713         * tests/test-vasprintf-posix.c (test_function): Likewise.
23714         * doc/functions/fprintf.texi: Update.
23715         * doc/functions/printf.texi: Update.
23716         * doc/functions/snprintf.texi: Update.
23717         * doc/functions/sprintf.texi: Update.
23718         * doc/functions/vfprintf.texi: Update.
23719         * doc/functions/vprintf.texi: Update.
23720         * doc/functions/vsnprintf.texi: Update.
23721         * doc/functions/vsprintf.texi: Update.
23722
23723 2007-05-06  Bruno Haible  <bruno@clisp.org>
23724
23725         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
23726         pass the ' flag character to sprintf or snprintf.
23727         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
23728         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
23729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23730         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
23731         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
23732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23739         * tests/test-snprintf-posix.h (test_function): Also check the grouping
23740         flag.
23741         * tests/test-sprintf-posix.h (test_function): Likewise.
23742         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23743         * tests/test-vasprintf-posix.c (test_function): Likewise.
23744         * doc/functions/fprintf.texi: Update.
23745         * doc/functions/printf.texi: Update.
23746         * doc/functions/snprintf.texi: Update.
23747         * doc/functions/sprintf.texi: Update.
23748         * doc/functions/vfprintf.texi: Update.
23749         * doc/functions/vprintf.texi: Update.
23750         * doc/functions/vsnprintf.texi: Update.
23751         * doc/functions/vsprintf.texi: Update.
23752
23753 2007-05-01  Bruno Haible  <bruno@clisp.org>
23754
23755         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
23756
23757 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
23758
23759         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
23760         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
23761
23762 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23763
23764         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
23765         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
23766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
23767
23768 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
23769
23770         * lib/argp-help.c (struct hol_entry): New member `ord'.
23771         (HOL_ENTRY_PTRCMP): Use ord for comparison
23772         (hol_sort): Initialize ord.
23773
23774 2007-05-01  Bruno Haible  <bruno@clisp.org>
23775
23776         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
23777         Reported by Eric Blake.
23778         * doc/gnulib.texi (Function Substitutes): Update.
23779
23780 2007-05-01  Bruno Haible  <bruno@clisp.org>
23781
23782         * doc/functions.texi: Remove file, now redundant through
23783         doc/functions/*.texi.
23784
23785 2007-05-01  Bruno Haible  <bruno@clisp.org>
23786
23787         * modules/argp (Depends-on): Add sleep.
23788
23789 2007-05-01  Bruno Haible  <bruno@clisp.org>
23790
23791         * modules/sleep-tests: New file.
23792         * tests/test-sleep.c: New file.
23793
23794         * modules/sleep: New file.
23795         * lib/sleep.c: New file.
23796         * m4/sleep.m4: New file.
23797         * lib/unistd_.h (sleep): New declaration.
23798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
23799         HAVE_SLEEP.
23800         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
23801         * doc/functions/sleep.texi: Document the sleep module.
23802
23803 2007-05-01  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/sigprocmask.h: Remove file.
23806         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
23807         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
23808         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
23809         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
23810         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
23811         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
23812         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
23813         HAVE_SIGSET_T as a shell variable.
23814         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
23815         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
23816         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
23817         (Depends-on): Add signal. Remove verify.
23818         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
23819         (Include): Mention <signal.h> instead of sigprocmask.h.
23820         * NEWS: Mention the change.
23821         * lib/fatal-signal.c: Don't include sigprocmask.h.
23822
23823 2007-05-01  Bruno Haible  <bruno@clisp.org>
23824
23825         * modules/signal: New file.
23826         * lib/signal_.h: New file.
23827         * m4/signal_h.m4: New file.
23828
23829 2007-05-01  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
23832         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
23833         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
23834         HAVE_WCTYPE_CTMP_BUG into wctype.h.
23835
23836 2007-05-01  Bruno Haible  <bruno@clisp.org>
23837
23838         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
23839         configure time.
23840         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
23841         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
23842         * modules/sys_stat (Makefile.am): Substitute their values into
23843         sys/stat.h.
23844
23845 2007-05-01  Bruno Haible  <bruno@clisp.org>
23846
23847         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
23848         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
23849         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
23850
23851 2007-05-01  Bruno Haible  <bruno@clisp.org>
23852
23853         * doc/header/assert.texi: Undo last change: don't mention the gnulib
23854         'assert' module here.
23855
23856 2007-05-01  Bruno Haible  <bruno@clisp.org>
23857
23858         * doc/functions/*.texi: New files.
23859         * doc/functions/google-ranking.txt: New file.
23860         * doc/gnulib.texi (Function Substitutes): New chapter.
23861         (ctime, inet_ntoa): Remove sections.
23862         * doc/ctime.texi: Remove file.
23863         * doc/inet_ntoa.texi: Remove file.
23864         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
23865         dependencies.
23866         (%.info): New rule, specifying a --reference-limit.
23867
23868 2007-05-01  Bruno Haible  <bruno@clisp.org>
23869
23870         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
23871
23872 2007-05-01  Bruno Haible  <bruno@clisp.org>
23873
23874         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
23875         the portability of 'mkdir' to mingw systems.
23876
23877 2007-05-01  Bruno Haible  <bruno@clisp.org>
23878
23879         * doc/headers/google-ranking.txt: New file.
23880
23881 2007-04-30  Eric Blake  <ebb9@byu.net>
23882
23883         Prefer fseeko to fseek.
23884         * modules/getpass (Depends-on): Add fseeko.
23885         * lib/getpass.c (getpass): Use fseeko, not fseek.
23886
23887 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
23888
23889         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
23890         assumes the sorting is stable, while most qsort implementations
23891         are not.  Use argument addresses to ensure they never compare as
23892         equal.
23893
23894         * tests/test-argp-2.sh (usage-indent test): Fix output
23895         (func_compare): Restore diff options
23896         * tests/test-argp.c: Restore #include "progname.h"
23897
23898 2007-04-29  Bruno Haible  <bruno@clisp.org>
23899
23900         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
23901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23902         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
23903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23904         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
23905         (configure.ac): Define CHECK_SNPRINTF_POSIX.
23906         (TESTS, check_PROGRAMS): Add test-snprintf.
23907         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
23908         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
23909         (TESTS, check_PROGRAMS): Add test-vsnprintf.
23910         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
23911         assertions that fail on HP-UX, OSF/1, or IRIX.
23912         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
23913
23914 2007-04-29  Bruno Haible  <bruno@clisp.org>
23915
23916         * MODULES.html.sh (posix_functions): Remove 'contents'.
23917
23918 2007-04-29  Karl Berry  <karl@gnu.org>
23919
23920         * config/srclist.txt (gendocs_template_min): new entry.
23921
23922 2007-04-29  Bruno Haible  <bruno@clisp.org>
23923
23924         Work around fpurge bug on BSD systems.
23925         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
23926         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
23927         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
23928         fpurge to rpl_fpurge if the system already has this function.
23929         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
23930         the case where the system already has this function. Correct invariants
23931         on BSD systems.
23932         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
23933         BSD systems.
23934
23935 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23936
23937         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
23938         proposed by Sven Verdoolaege.
23939
23940         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
23941         options.
23942         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
23943         (usage and help tests): Update
23944
23945 2007-04-29  Bruno Haible  <bruno@clisp.org>
23946
23947         * tests/test-fflush.c (main): Use a file of size 17, not 10.
23948         Print more information in case of failure. Disable a test on BeOS.
23949
23950 2007-04-29  Bruno Haible  <bruno@clisp.org>
23951
23952         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
23953         This helps debugging on systems on which no gdb is available.
23954
23955 2007-04-29  Bruno Haible  <bruno@clisp.org>
23956
23957         * lib/freading.h: Improve comments.
23958         * lib/fwriting.h: Likewise.
23959         * tests/test-freading.c (main): Don't check freading immediately after
23960         repositioning. Needed for glibc.
23961
23962 2007-04-29  Bruno Haible  <bruno@clisp.org>
23963
23964         * lib/freading.c (freading): Trivial simplification.
23965
23966 2007-04-28  Bruno Haible  <bruno@clisp.org>
23967
23968         * tests/test-fwriting.c (main): Also test the interaction between
23969         fflush and fwriting.
23970         * modules/fwriting-tests (Depends-on): Add fflush.
23971
23972         * tests/test-freading.c (main): Also test the interaction between
23973         fflush and freading.
23974         * modules/freading-tests (Depends-on): Add fflush.
23975
23976 2007-04-28  Bruno Haible  <bruno@clisp.org>
23977
23978         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
23979         fseeko and ftello.
23980         Suggested by Eric Blake.
23981
23982 2007-04-28  Jim Meyering  <jim@meyering.net>
23983
23984         Avoid false-negative in gl_STDINT_H's C99 conformance test.
23985         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
23986         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
23987
23988 2007-04-27  Eric Blake  <ebb9@byu.net>
23989
23990         * doc/headers/assert.texi (assert.h): Document assert module use.
23991
23992 2007-04-27  Bruno Haible  <bruno@clisp.org>
23993
23994         * doc/headers/*.texi: New files.
23995         * doc/gnulib.texi (Header File Substitutes): New chapter.
23996         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
23997         dependencies.
23998         (standards.info ,standards.html, standards.dvi): Update dependencies.
23999         (mostlyclean, clean): New targets.
24000
24001 2007-04-27  Bruno Haible  <bruno@clisp.org>
24002
24003         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
24004         * modules/sysexits (Files, Makefile.am): Update.
24005
24006         * lib/sys_socket_.h: Renamed from lib/socket_.h.
24007         * modules/sys_socket (Files, Makefile.am): Update.
24008
24009         * lib/sys_stat_.h: Renamed from lib/stat_.h.
24010         * modules/sys_stat (Files, Makefile.am): Update.
24011
24012 2007-04-27  Eric Blake  <ebb9@byu.net>
24013
24014         * lib/freading.h: Improve comments.
24015         * lib/fwriting.h: Likewise.
24016         * lib/fflush.c: Likewise.
24017
24018         Fix closein for mingw.
24019         * modules/closein-tests: Add tests for closein.
24020         * tests/test-closein.c: New file.
24021         * tests/test-closein.sh: Likewise.
24022         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
24023         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
24024
24025 2007-04-27  Bruno Haible  <bruno@clisp.org>
24026
24027         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
24028         version is < 6.
24029         * lib/math_.h [__DECC]: Likewise.
24030         * lib/stdio_.h [__DECC]: Likewise.
24031         * lib/stdlib_.h [__DECC]: Likewise.
24032         * lib/string_.h [__DECC]: Likewise.
24033         * lib/time_.h [__DECC]: Likewise.
24034         * lib/wchar_.h [__DECC]: Likewise.
24035         * lib/wctype_.h [__DECC]: Likewise.
24036
24037 2007-04-27  Bruno Haible  <bruno@clisp.org>
24038
24039         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
24040
24041 2007-04-27  Bruno Haible  <bruno@clisp.org>
24042
24043         * lib/fflush.c: Add comments.
24044         * modules/fpurge-tests (Depends-on): Add fflush.
24045         * modules/freadable-tests (Depends-on): Likewise.
24046         * modules/fwritable-tests (Depends-on): Likewise.
24047
24048 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
24049
24050         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
24051         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
24052         Report by Bruno Haible <bruno@clisp.org>.
24053
24054 2007-04-26  Eric Blake  <ebb9@byu.net>
24055
24056         Fix fflush on mingw.
24057         * modules/fflush (Depends-on): Add freading.
24058         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
24059         but unread data.
24060
24061 2007-04-26  Eric Blake  <ebb9@byu.net>
24062         and Bruno Haible  <bruno@clisp.org>
24063
24064         Implement freading and fwriting.
24065         * lib/freading.c: New file.
24066         * lib/freading.h: Likewise.
24067         * m4/freading.m4: Likewise.
24068         * modules/freading: Likewise.
24069         * modules/freading-tests: Likewise.
24070         * tests/test-freading.c: Likewise.
24071         * lib/fwriting.c: New file.
24072         * lib/fwriting.h: Likewise.
24073         * m4/fwriting.m4: Likewise.
24074         * modules/fwriting: Likewise.
24075         * modules/fwriting-tests: Likewise.
24076         * tests/test-fwriting.c: Likewise.
24077         * MODULES.html.sh (File stream based Input/Output): Mention them.
24078
24079 2007-04-26  Bruno Haible  <bruno@clisp.org>
24080
24081         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
24082         'long' when we assume it.
24083         Suggested by Eric Blake.
24084
24085 2007-04-26  Bruno Haible  <bruno@clisp.org>
24086
24087         Ensure fseeko, ftello are declared on glibc systems.
24088         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
24089         * modules/fseeko (configure.ac-early): Likewise.
24090         * modules/ftello (configure.ac-early): Likewise.
24091         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
24092         AC_FUNC_FSEEKO for this.
24093         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
24094         (gl_CHECK_FSEEKO): Remove macro.
24095
24096 2007-04-26  Bruno Haible  <bruno@clisp.org>
24097
24098         * tests/test-fflush.c (main): Also check the ftell result after
24099         fflush and fseek/fseeko.
24100         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
24101         file descriptor position cache in the stream.
24102         * lib/fseeko.c (rpl_fseeko): Likewise.
24103
24104 2007-04-26  Bruno Haible  <bruno@clisp.org>
24105
24106         * modules/fflush-tests (Depends-on): Add fseeko.
24107
24108 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
24109             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24110
24111         * lib/argz_.h: ensure error_t definition is obtained in same
24112         mechanism system argz.h would have.
24113         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
24114         argz facilities are known bad.  Err on the side of caution if
24115         cross-compiling.
24116
24117 2007-04-25  Eric Blake  <ebb9@byu.net>
24118
24119         * lib/fpurge.c (includes): Use stdlib.h for free.
24120         * tests/test-fflush.c (main): Also test fflush-fseeko.
24121
24122 2007-04-25  Bruno Haible  <bruno@clisp.org>
24123
24124         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
24125         * lib/fseeko.c: New file.
24126         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
24127         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
24128         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
24129         gl_FUNC_FSEEKO.
24130         (gl_FUNC_FSEEKO): Invoke it.
24131         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
24132         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
24133         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
24134
24135 2007-04-25  Bruno Haible  <bruno@clisp.org>
24136
24137         * modules/fflush (Depends-on): Add ftello.
24138
24139 2007-04-25  Bruno Haible  <bruno@clisp.org>
24140
24141         * modules/ftello-tests: New file.
24142         * tests/test-ftello.c: New file.
24143
24144         * modules/ftello: New file.
24145         * m4/ftello.m4: New file.
24146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
24147         HAVE_FTELLO.
24148         * lib/stdio_.h (ftello): New declaration.
24149         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
24150         HAVE_FTELLO.
24151
24152 2007-04-25  Bruno Haible  <bruno@clisp.org>
24153
24154         * modules/fseeko-tests: New file.
24155         * tests/test-fseeko.c: New file.
24156
24157         * modules/fseeko: New file.
24158         * m4/fseeko.m4: New file.
24159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
24160         HAVE_FSEEKO.
24161         * lib/stdio_.h (fseeko): New declaration.
24162         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
24163         HAVE_FSEEKO.
24164
24165 2007-04-25  Bruno Haible  <bruno@clisp.org>
24166
24167         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
24168
24169 2007-04-25  Bruno Haible  <bruno@clisp.org>
24170
24171         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
24172         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
24173         * tests/test-unistd.c: Likewise.
24174         * tests/test-fcntl.c: Likewise.
24175
24176 2007-04-23  Eric Blake  <ebb9@byu.net>
24177
24178         * lib/fflush.c: Fix missing include.
24179         Reported by Bruno Haible.
24180
24181 2007-04-23  Bruno Haible  <bruno@clisp.org>
24182
24183         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
24184         Reported by Eric Blake.
24185
24186 2007-04-23  Bruno Haible  <bruno@clisp.org>
24187
24188         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
24189
24190 2007-04-23  Bruno Haible  <bruno@clisp.org>
24191
24192         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
24193
24194 2007-04-23  Bruno Haible  <bruno@clisp.org>
24195
24196         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
24197         Needed on HP-UX 11.
24198
24199 2007-04-16  Eric Blake  <ebb9@byu.net>
24200
24201         Make fflush rely on fpurge.
24202         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
24203         open coding all variants.
24204         * modules/fflush (Depends-on): Add fpurge and unistd.
24205         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
24206         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
24207
24208         Fix --with-tests compilation on cygwin.
24209         * modules/argmatch-tests (Makefile.am): List gnulib library first
24210         in LDADD.
24211         * modules/argp-tests (Makefile.am): Likewise.
24212         * modules/array-list-tests (Makefile.am): Likewise.
24213         * modules/array-oset-tests (Makefile.am): Likewise.
24214         * modules/avltree-list-tests (Makefile.am): Likewise.
24215         * modules/avltree-oset-tests (Makefile.am): Likewise.
24216         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24217         * modules/carray-list-tests (Makefile.am): Likewise.
24218         * modules/dirname-tests (Makefile.am): Likewise.
24219         * modules/frexp-tests (Makefile.am): Likewise.
24220         * modules/isnanl-tests (Makefile.am): Likewise.
24221         * modules/linked-list-tests (Makefile.am): Likewise.
24222         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24223         * modules/lock-tests (Makefile.am): Likewise.
24224         * modules/rbtree-list-tests (Makefile.am): Likewise.
24225         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24226         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24227         * modules/tls-tests (Makefile.am): Likewise.
24228         * modules/tsearch-tests (Makefile.am): Likewise.
24229         * modules/xvasprintf-tests (Makefile.am): Likewise.
24230
24231         Fix fpurge for cygwin.
24232         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
24233         value.
24234         * modules/fpurge-tests (Depends-on): Clean up trash.
24235
24236 2007-04-16  Simon Josefsson  <simon@josefsson.org>
24237
24238         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
24239
24240         * m4/autobuild.m4: Re-indent.
24241
24242 2007-04-13  Bruno Haible  <bruno@clisp.org>
24243
24244         * modules/fpurge-tests: New file.
24245         * tests/test-fpurge.c: New file.
24246
24247         * modules/fpurge: New file.
24248         * lib/fpurge.h: New file.
24249         * lib/fpurge.c: New file.
24250         * m4/fpurge.m4: New file.
24251
24252 2007-04-13  Bruno Haible  <bruno@clisp.org>
24253
24254         * modules/fbufmode-tests: New file.
24255         * tests/test-fbufmode.c: New file.
24256
24257         * modules/fbufmode: New file.
24258         * lib/fbufmode.h: New file.
24259         * lib/fbufmode.c: New file.
24260         * m4/fbufmode.m4: New file.
24261
24262 2007-04-13  Bruno Haible  <bruno@clisp.org>
24263
24264         * modules/fwritable-tests: New file.
24265         * tests/test-fwritable.c: New file.
24266
24267         * modules/fwritable: New file.
24268         * lib/fwritable.h: New file.
24269         * lib/fwritable.c: New file.
24270         * m4/fwritable.m4: New file.
24271
24272 2007-04-13  Bruno Haible  <bruno@clisp.org>
24273
24274         * modules/freadable-tests: New file.
24275         * tests/test-freadable.c: New file.
24276
24277         * modules/freadable: New file.
24278         * lib/freadable.h: New file.
24279         * lib/freadable.c: New file.
24280         * m4/freadable.m4: New file.
24281
24282 2007-04-13  Bruno Haible  <bruno@clisp.org>
24283
24284         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
24285         MOSTLYCLEANFILES.
24286
24287 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24288
24289         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
24290         gzip bootstrap.conf to avoid dragging in i18n machinery.
24291         (gnulib_tool_option): Use it.
24292
24293 2007-04-13  Bruno Haible  <bruno@clisp.org>
24294
24295         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
24296         %F directives.
24297         * tests/test-vasprintf-posix.c (test_function): Likewise.
24298         * tests/test-snprintf-posix.h (test_function): Likewise.
24299         * tests/test-sprintf-posix.h (test_function): Likewise.
24300         * tests/test-fprintf-posix.h (test_function): Likewise.
24301         * tests/test-printf-posix.h (test_function): Likewise.
24302         * tests/test-fprintf-posix.out: Likewise.
24303
24304 2007-04-13  Bruno Haible  <bruno@clisp.org>
24305
24306         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
24307         * modules/tls-tests (configure.ac): Likewise.
24308         Reported by Arto C. Nirkko <anirkko@insel.ch>.
24309
24310 2007-04-13  Bruno Haible  <bruno@clisp.org>
24311
24312         * lib/tls.c (glthread_tls_get): Fix return type.
24313         Patch by Arto C. Nirkko <anirkko@insel.ch>.
24314
24315 2007-04-12  Eric Blake  <ebb9@byu.net>
24316
24317         * modules/gettime (Depends-on): Remove gettime.
24318         Reported by Dmitry V. Levin.
24319
24320 2007-04-12  Bruno Haible  <bruno@clisp.org>
24321
24322         * modules/fflush (Include): Mention <stdio.h>.
24323         * modules/strtoimax (Include): Mention <inttypes.h>.
24324         * modules/strtoumax (Include): Likewise.
24325
24326 2007-04-12  Eric Blake  <ebb9@byu.net>
24327
24328         * .cvsignore: New file.
24329         * .gitignore: Likewise.
24330
24331 2007-04-12  Bruno Haible  <bruno@clisp.org>
24332
24333         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
24334         not before, since $(LDADD) often contains libgnu.a.
24335         * modules/striconv-tests (test_striconv_LDADD): Likewise.
24336         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
24337         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
24338         Needed on Cygwin.
24339
24340 2007-04-12  Eric Blake  <ebb9@byu.net>
24341
24342         Work around glibc's failure to flush stdin on fclose.
24343         * lib/closein.c (close_stdin): Flush stdin before closing.
24344
24345         Work around glibc's failure to reset seekable stdin on exit.
24346         * modules/closein: New module.
24347         * lib/closein.c: New file.
24348         * lib/closein.h: Likewise.
24349         * m4/closein.m4: Likewise.
24350         * MODULES.html.sh (File stream based Input/Output): Document it.
24351
24352 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24353
24354         * gnulib-tool: Rename generated 'autobuild' script to
24355         'do-autobuild' in --create-megatestdir output.
24356
24357         * doc/gnulib.texi (Build robot for gnulib): Fix.
24358
24359 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24360
24361         * modules/sysexits (Depends-on): Add absolute-header.
24362
24363 2007-04-12  Eric Blake  <ebb9@byu.net>
24364
24365         No need to preserve errno on success.
24366         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
24367         Reported by Bruno Haible.
24368
24369 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24370
24371         * MODULES.html.sh (Support for maintaining and releasing
24372         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
24373
24374 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24375
24376         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
24377
24378 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24379
24380         * modules/autobuild: New module.
24381
24382         * m4/autobuild.m4: New file.
24383
24384 2007-04-11  Bruno Haible  <bruno@clisp.org>
24385
24386         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
24387         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
24388         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
24389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
24390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24391         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24392         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24393         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24394         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24395         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
24397         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24398         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
24400         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24401         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
24403         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24404         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24405         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
24406         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24407         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24408         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
24409         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24410         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
24412         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24413         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24414         Reported by Eric Blake.
24415
24416 2007-04-11  Bruno Haible  <bruno@clisp.org>
24417
24418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
24419
24420 2007-04-10  Bruno Haible  <bruno@clisp.org>
24421
24422         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
24423         for NaN and Infinity. Needed on FreeBSD 6.1.
24424         * tests/test-vasnprintf-posix.c (test_function): Undo last change
24425         regarding results for "%010a" of Infinity and NaN.
24426         * tests/test-vasprintf-posix.c (test_function): Likewise.
24427         * tests/test-snprintf-posix.h (test_function): Likewise.
24428         * tests/test-sprintf-posix.h (test_function): Likewise.
24429         * tests/test-fprintf-posix.h (test_function): Likewise.
24430         * tests/test-printf-posix.h (test_function): Likewise.
24431         * tests/test-fprintf-posix.out: Likewise.
24432
24433 2007-04-10  Bruno Haible  <bruno@clisp.org>
24434
24435         * modules/locale-tests: New file.
24436         * tests/test-locale.c: New file.
24437
24438         * modules/locale: New file.
24439         * lib/locale_.h: New file.
24440         * m4/locale_h.m4: New file.
24441
24442 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
24443             Bruno Haible  <bruno@clisp.org>
24444
24445         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
24446         be determined, test for availability of the copysignf, copysign,
24447         copysignl functions.
24448         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
24449         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
24450         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
24451
24452 2007-04-09  Eric Blake  <ebb9@byu.net>
24453
24454         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
24455         * modules/stdio (Makefile.am): Support fflush.
24456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24457         * modules/fflush: New file.
24458         * lib/fflush.c: Likewise.
24459         * m4/fflush.m4: Likewise.
24460         * modules/fflush-tests: New test.
24461         * tests/test-fflush.c: Likewise.
24462         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
24463
24464 2007-04-06  Bruno Haible  <bruno@clisp.org>
24465
24466         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
24467         (VASNPRINTF): Use signbit for faster determination whether to print a
24468         minus sign.
24469         * modules/vasnprintf (Files): Remove lib/float+.h.
24470         * modules/fprintf-posix (Depends-on): Add signbit.
24471         * modules/snprintf-posix (Depends-on): Likewise.
24472         * modules/sprintf-posix (Depends-on): Likewise.
24473         * modules/vasnprintf-posix (Depends-on): Likewise.
24474         * modules/vasprintf-posix (Depends-on): Likewise.
24475         * modules/vfprintf-posix (Depends-on): Likewise.
24476         * modules/vsnprintf-posix (Depends-on): Likewise.
24477         * modules/vsprintf-posix (Depends-on): Likewise.
24478
24479 2007-04-06  Bruno Haible  <bruno@clisp.org>
24480
24481         * tests/test-frexp.c (main): Test also the sign bit of zero results.
24482         * tests/test-frexpl.c (main): Likewise.
24483         * tests/test-ldexpl.c (main): Likewise.
24484         * modules/frexp-tests (Depends-on): Add signbit.
24485         * modules/frexpl-tests (Depdends-on): Likewise.
24486         * modules/ldexpl-tests (Depdends-on): Likewise.
24487
24488 2007-04-06  Bruno Haible  <bruno@clisp.org>
24489
24490         * modules/signbit-tests: New file.
24491         * tests/test-signbit.c: New file.
24492
24493         * modules/signbit: New file.
24494         * lib/signbitf.c: New file.
24495         * lib/signbitd.c: New file.
24496         * lib/signbitl.c: New file.
24497         * m4/signbit.m4: New file.
24498         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
24499         (signbit): New macro.
24500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
24501         REPLACE_SIGNBIT.
24502         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
24503         REPLACE_FREXPL into math.h.
24504
24505 2007-04-06  Bruno Haible  <bruno@clisp.org>
24506
24507         * modules/isnanf-nolibm-tests: New file.
24508         * tests/test-isnanf.c: New file.
24509
24510         * modules/isnanf-nolibm: New file.
24511         * lib/isnanf.h: New file.
24512         * lib/isnanf.c: New file.
24513         * lib/isnan.c: Consider the USE_FLOAT macro.
24514         * m4/isnanf.m4: New file.
24515
24516 2007-04-06  Bruno Haible  <bruno@clisp.org>
24517
24518         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
24519         (Link): New section.
24520
24521         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
24522
24523 2007-04-06  Bruno Haible  <bruno@clisp.org>
24524
24525         Assume the 'long double' type.
24526         * m4/longdouble.m4: Remove file.
24527         * config/srclist.txt: Don't mention longdouble.m4.
24528         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
24529         * lib/float+.h: Likewise.
24530         * lib/frexp.c: Likewise.
24531         * lib/printf-args.h: Likewise.
24532         * lib/printf-args.c: Likewise.
24533         * lib/printf-frexp.c: Likewise.
24534         * lib/printf-parse.c: Likewise.
24535         * lib/vasnprintf.c: Likewise.
24536         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
24537         * m4/intl.m4: Likewise.
24538         * m4/isnanl.m4: Likewise.
24539         * m4/printf.m4: Likewise.
24540         * m4/printf-frexpl.m4: Likewise.
24541         * m4/vasnprintf.m4: Likewise.
24542         * modules/allocsa (Files): Remove m4/longdouble.m4.
24543         * modules/gettext (Files): Likewise.
24544         * modules/relocatable-prog-wrapper (Files): Likewise.
24545         * modules/vasnprintf (Files): Likewise.
24546         * modules/isnanl (Files): Likewise.
24547         (Include): Simplify.
24548         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
24549         (Include): Simplify.
24550         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
24551         (Include): Simplify.
24552         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
24553         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24554         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
24555         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24556         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24557         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24558         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
24559         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24560         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24561         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24562         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
24563         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24564         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
24565         * tests/test-isnanl.c: Likewise.
24566         * tests/test-snprintf-posix.h: Likewise.
24567         * tests/test-sprintf-posix.h: Likewise.
24568         * tests/test-vasnprintf-posix.c: Likewise.
24569         * tests/test-vasnprintf-posix2.c: Likewise.
24570         * tests/test-vasprintf-posix.c: Likewise.
24571
24572 2007-04-06  Bruno Haible  <bruno@clisp.org>
24573
24574         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
24575         * lib/math_.h [__DECC]: Include the overridden include file through
24576         #include_next, outside the double-inclusion guard.
24577         * lib/stdio_.h [__DECC]: Likewise.
24578         * lib/stdlib_.h [__DECC]: Likewise.
24579         * lib/string_.h [__DECC]: Likewise.
24580         * lib/time_.h [__DECC]: Likewise.
24581         * lib/wchar_.h [__DECC]: Likewise.
24582         * lib/wctype_.h [__DECC]: Likewise.
24583         * lib/inttypes_.h [__DECC]: Likewise.
24584         Reported by Albert Chin <china@thewrittenword.com> in
24585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
24586
24587 2007-04-04  Eric Blake  <ebb9@byu.net>
24588
24589         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
24590         1.5.x.
24591
24592 2007-04-04  Bruno Haible  <bruno@clisp.org>
24593
24594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
24595         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
24596
24597 2007-04-04  Bruno Haible  <bruno@clisp.org>
24598
24599         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
24600         results for "%010a" of Infinity and NaN.
24601         * tests/test-vasprintf-posix.c (test_function): Likewise.
24602         * tests/test-snprintf-posix.h (test_function): Likewise.
24603         * tests/test-sprintf-posix.h (test_function): Likewise.
24604         * tests/test-fprintf-posix.h (test_function): Remove these tests.
24605         * tests/test-printf-posix.h (test_function): Likewise.
24606         * tests/test-fprintf-posix.out: Update.
24607         Needed for FreeBSD 6.1.
24608
24609 2007-04-04  Bruno Haible  <bruno@clisp.org>
24610
24611         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
24612         directly used by the gnulib modules nor by gnulib-tool.
24613
24614 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24615
24616         * DEPENDENCIES: Give overall description of version dependency
24617         desirability.  Use more-typical names for apps.
24618         Add shell, coreutils, diffutils, grep, tar, gzip.
24619
24620 2007-04-04  Simon Josefsson  <simon@josefsson.org>
24621
24622         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
24623
24624 2007-04-04  Karl Berry  <karl@gnu.org>
24625
24626         * MODULES.html.sh (func_module): missing '.
24627
24628 2007-04-03  Bruno Haible  <bruno@clisp.org>
24629
24630         * modules/argmatch-tests (Makefile.am): New variable
24631         test_argmatch_LDADD.
24632         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
24633         * modules/array-list-tests (Makefile.am): New variable
24634         test_array_list_LDADD.
24635         * modules/array-oset-tests (Makefile.am): New variable
24636         test_array_oset_LDADD.
24637         * modules/avltree-list-tests (Makefile.am): New variable
24638         test_avltree_list_LDADD.
24639         * modules/avltree-oset-tests (Makefile.am): New variable
24640         test_avltree_oset_LDADD.
24641         * modules/avltreehash-list-tests (Makefile.am): New variable
24642         test_avltreehash_list_LDADD.
24643         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
24644         test_canonicalize_lgpl_LDADD.
24645         * modules/carray-list-tests (Makefile.am): New variable
24646         test_carray_list_LDADD.
24647         * modules/dirname-tests (Makefile.am): New variable
24648         test_dirname_LDADD.
24649         * modules/linked-list-tests (Makefile.am): New variable
24650         test_linked_list_LDADD.
24651         * modules/linkedhash-list-tests (Makefile.am): New variable
24652         test_linkedhash_list_LDADD.
24653         * modules/rbtree-list-tests (Makefile.am): New variable
24654         test_rbtree_list_LDADD.
24655         * modules/rbtree-oset-tests (Makefile.am): New variable
24656         test_rbtree_oset_LDADD.
24657         * modules/rbtreehash-list-tests (Makefile.am): New variable
24658         test_rbtreehash_list_LDADD.
24659         * modules/xvasprintf-tests (Makefile.am): New variable
24660         test_xvasprintf_LDADD.
24661         Reported by Eric Blake.
24662
24663 2007-04-03  Eric Blake  <ebb9@byu.net>
24664
24665         * DEPENDENCIES: Weaken m4 requirements.
24666
24667 2007-04-03  Bruno Haible  <bruno@clisp.org>
24668
24669         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
24670         * modules/isnanl-tests (configure.ac): Likewise.
24671
24672 2007-04-03  Ben Pfaff  <blp@gnu.org>
24673
24674         * modules/iconv_open: Add $(srcdir)/ to source directory
24675         references in Makefile fragments that call gperf, to fix VPATH
24676         builds.
24677
24678 2007-04-03  Bruno Haible  <bruno@clisp.org>
24679
24680         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
24681         * lib/ldexpl.c: Undo last change.
24682
24683 2007-04-03  Bruno Haible  <bruno@clisp.org>
24684
24685         * modules/printf-frexpl (Depends-on): Undo last change.
24686         (Files): Add m4/ldexpl.m4.
24687
24688 2007-04-03  Bruno Haible  <bruno@clisp.org>
24689
24690         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
24691         * modules/isnanl (Link): New section.
24692
24693         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
24694         * modules/frexp (Link): New section.
24695
24696         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
24697         * modules/frexpl (Link): New section.
24698
24699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
24700         * modules/ldexpl (Link): New section.
24701
24702 2007-04-03  Bruno Haible  <bruno@clisp.org>
24703
24704         * modules/TEMPLATE-EXTENDED: New file.
24705         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
24706
24707 2007-04-03  Bruno Haible  <bruno@clisp.org>
24708
24709         * DEPENDENCIES: New file.
24710         Suggested by Simon Josefsson.
24711
24712 2007-04-03  Bruno Haible  <bruno@clisp.org>
24713
24714         * doc/gnulib.texi: Escape @.
24715
24716 2007-04-03  James Youngman  <jay@gnu.org>
24717         and Paul Eggert  <eggert@cs.ucla.edu>
24718
24719         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
24720         birthtime on all systems that have birthtime, not just those which
24721         use st_birthtimensec rather than st_birthtim.  Putting zero in
24722         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
24723         that the birth time is not available for files on an NFS mount.
24724
24725 2007-04-03  Simon Josefsson  <simon@josefsson.org>
24726
24727         * modules/memxor: Move back from crypto/, suggested by Bruno.
24728         * modules/crypto/hmac-sha1: Fix memxor dependency.
24729
24730         * modules/crypto/gc: Moved from ../.
24731
24732 2007-04-02  Eric Blake  <ebb9@byu.net>
24733
24734         * lib/ldexpl.c (includes): Avoid libm.
24735
24736         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
24737
24738 2007-04-02  Bruno Haible  <bruno@clisp.org>
24739
24740         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
24741         on IRIX.
24742
24743 2007-04-02  Bruno Haible  <bruno@clisp.org>
24744
24745         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
24746         x86 or x86_64 platforms running MacOS X.
24747         Reported by Ryan Schmidt <@ryandesign.com>.
24748
24749 2007-04-02  Bruno Haible  <bruno@clisp.org>
24750
24751         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
24752         i386.
24753
24754 2007-04-01  Simon Josefsson  <simon@josefsson.org>
24755
24756         * modules/crypto/arcfour: Moved from ../.
24757         * modules/crypto/arcfour-tests: Moved from ../.
24758         * modules/crypto/arctwo: Moved from ../.
24759         * modules/crypto/arctwo-tests: Moved from ../.
24760         * modules/crypto/des: Moved from ../.
24761         * modules/crypto/des-tests: Moved from ../.
24762         * modules/crypto/gc-arcfour: Moved from ../.
24763         * modules/crypto/gc-arcfour-tests: Moved from ../.
24764         * modules/crypto/gc-arctwo: Moved from ../.
24765         * modules/crypto/gc-arctwo-tests: Moved from ../.
24766         * modules/crypto/gc-des: Moved from ../.
24767         * modules/crypto/gc-des-tests: Moved from ../.
24768         * modules/crypto/gc-hmac-md5: Moved from ../.
24769         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
24770         * modules/crypto/gc-hmac-sha1: Moved from ../.
24771         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
24772         * modules/crypto/gc-md2: Moved from ../.
24773         * modules/crypto/gc-md2-tests: Moved from ../.
24774         * modules/crypto/gc-md4: Moved from ../.
24775         * modules/crypto/gc-md4-tests: Moved from ../.
24776         * modules/crypto/gc-md5: Moved from ../.
24777         * modules/crypto/gc-md5-tests: Moved from ../.
24778         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
24779         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
24780         * modules/crypto/gc-random: Moved from ../.
24781         * modules/crypto/gc-rijndael: Moved from ../.
24782         * modules/crypto/gc-rijndael-tests: Moved from ../.
24783         * modules/crypto/gc-sha1: Moved from ../.
24784         * modules/crypto/gc-sha1-tests: Moved from ../.
24785         * modules/crypto/gc-tests: Moved from ../.
24786         * modules/crypto/hmac-md5: Moved from ../.
24787         * modules/crypto/hmac-md5-tests: Moved from ../.
24788         * modules/crypto/hmac-sha1: Moved from ../.
24789         * modules/crypto/hmac-sha1-tests: Moved from ../.
24790         * modules/crypto/md2: Moved from ../.
24791         * modules/crypto/md2-tests: Moved from ../.
24792         * modules/crypto/md4: Moved from ../.
24793         * modules/crypto/md4-tests: Moved from ../.
24794         * modules/crypto/md5: Moved from ../.
24795         * modules/crypto/md5-tests: Moved from ../.
24796         * modules/crypto/memxor: Moved from ../.
24797         * modules/crypto/rijndael: Moved from ../.
24798         * modules/crypto/rijndael-tests: Moved from ../.
24799         * modules/crypto/sha1: Moved from ../.
24800
24801 2007-03-30  James Youngman  <jay@gnu.org>
24802
24803         * tests/test-stat-time.c (prepare_test): use chmod() rather than
24804         rename() to change the ctime of a file (because ctime is unaffected
24805         by rename on jfs2 on AIX 5.1).
24806         (main): Start by doing cleanup, in case a previous run failed leaving
24807         test files behind.
24808
24809 2007-03-31  Bruno Haible  <bruno@clisp.org>
24810
24811         Support old proprietary implementations of iconv.
24812         * modules/iconv_open: New file.
24813         * lib/iconv_.h: New file.
24814         * m4/iconv_h.m4: New file.
24815         * lib/iconv_open.c: New file.
24816         * lib/iconv_open-aix.gperf: New file.
24817         * lib/iconv_open-hpux.gperf: New file.
24818         * lib/iconv_open-irix.gperf: New file.
24819         * lib/iconv_open-osf.gperf: New file.
24820         * m4/iconv_open.m4: New file.
24821         * modules/linebreak (Depends-on): Add iconv_open.
24822         * modules/striconv (Depends-on): Likewise.
24823         * modules/striconveh (Depends-on): Likewise.
24824         * modules/unicodeio (Depends-on): Likewise.
24825         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
24826         (iconv_t)(-1).
24827         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
24828         conversion if cd is (iconv_t)(-1).
24829         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
24830         is not possible.
24831
24832 2007-03-31  Bruno Haible  <bruno@clisp.org>
24833
24834         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24835         work on Solaris either. Protect also second use of "autodetect_jp".
24836
24837 2007-03-31  Bruno Haible  <bruno@clisp.org>
24838
24839         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
24840         the function is not present.
24841
24842 2007-03-31  Bruno Haible  <bruno@clisp.org>
24843
24844         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
24845         the function is not present.
24846
24847 2007-03-31  Bruno Haible  <bruno@clisp.org>
24848
24849         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
24850         a bug in HP-UX iconv_open().
24851
24852 2007-03-31  Bruno Haible  <bruno@clisp.org>
24853
24854         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
24855         (Mathematics <math.h>): New section, add fpieee.
24856         (Input/output <stdio.h>): Add fseterr.
24857         (Mathematics <math.h>): New section, add printf-frexp.
24858         (Container data structures): Add sublist.
24859         (Core language properties): Add fpucw, inline.
24860         (Functions for greatest-width integer types <inttypes.h>): Add
24861         imaxabs, imaxdiv, inttypes.
24862         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
24863         isnanl-nolibm, ldexp.
24864         (Mathematics <math.h>): New section, add printf-frexpl.
24865         (Support for systems lacking POSIX:2001): Add fprintf-posix,
24866         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
24867         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
24868         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
24869         (Unicode string functions): Add unistr/u*-mbtoucr.
24870         (Java): Add javacomp-script, javaexec-script.
24871         (C#): Add csharpcomp-script, csharpexec-script.
24872         (Support for building libraries and executables): Add havelib,
24873         relocatable-*.
24874         (Support for maintaining and releasing projects): Renamed from
24875         'Support for maintaining and release projects'. Add announce-gen.
24876
24877 2007-03-31  Bruno Haible  <bruno@clisp.org>
24878
24879         * README: Talk primarily about git.
24880         (git and CVS): Renamed from CVS.
24881         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
24882         gnulib is available through git.
24883         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
24884
24885 2007-03-30  Bruno Haible  <bruno@clisp.org>
24886
24887         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
24888         * lib/poll_.h: Likewise.
24889         * lib/stat_.h: Likewise.
24890         * lib/sys_time_.h: Likewise.
24891         * lib/sysexit_.h: Likewise.
24892         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
24893         * lib/stdbool_.h: Likewise.
24894         * lib/byteswap_.h: Add double-inclusion guard.
24895
24896 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
24897
24898         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
24899
24900 2007-03-30  Karl Berry  <karl@gnu.org>
24901
24902         * config/srclist-update: double space after USA in the license
24903         substitution, since that's how it's usually (?) written.
24904
24905 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24906
24907         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
24908         reported by Bruno Haible.
24909
24910 2007-03-29  Bruno Haible  <bruno@clisp.org>
24911
24912         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
24913         a bug in AIX iconv().
24914
24915 2007-03-29  Bruno Haible  <bruno@clisp.org>
24916
24917         * modules/ldexpl-tests: New file.
24918         * tests/test-ldexpl.c: New file.
24919
24920 2007-03-29  Bruno Haible  <bruno@clisp.org>
24921
24922         * lib/ldexpl.c: Include fpucw.h.
24923         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
24924         multiplication.
24925         * modules/ldexpl (Depends-on): Add fpucw.
24926
24927 2007-03-29  Bruno Haible  <bruno@clisp.org>
24928
24929         * modules/ldexpl: New file.
24930         * m4/ldexpl.m4: New file.
24931         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
24932         set.
24933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
24934         REPLACE_LDEXPL.
24935         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
24936         REPLACE_LDEXPL.
24937         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24938         gl_FUNC_LDEXPL_WORKS.
24939         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
24940         * modules/mathl (Files): Remove lib/ldexpl.c.
24941         (Depends-on): Add ldexpl.
24942
24943 2007-03-29  Bruno Haible  <bruno@clisp.org>
24944
24945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
24946
24947 2007-03-29  Bruno Haible  <bruno@clisp.org>
24948
24949         * tests/test-striconveh.c (main): Don't assume that a direct conversion
24950         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
24951         and possibly also HP-UX.
24952         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24953         work on AIX, IRIX, HP-UX, OSF/1.
24954         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24955         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24956         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24957         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24958         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
24959         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24960
24961 2007-03-29  Bruno Haible  <bruno@clisp.org>
24962
24963         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
24964
24965 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24966
24967         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
24968         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
24969
24970 2007-03-29  Eric Blake  <ebb9@byu.net>
24971
24972         * lib/acl-internal.h: Remove redundant include.
24973         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
24974         Cygwin when a file is locked.
24975
24976 2007-03-29  Bruno Haible  <bruno@clisp.org>
24977
24978         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
24979         file.
24980         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
24981
24982 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24983
24984         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
24985         try to remove a parent directory if the child couldn't be removed
24986         (except for the first rmdir, which could fail because the child
24987         doesn't exist).  Problem reported by Jeff Blaine in
24988         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
24989
24990 2007-03-28  Bruno Haible  <bruno@clisp.org>
24991
24992         * lib/striconveh.c (utf8conv_carefully): New function.
24993         (mem_cd_iconveh_internal): Invoke it.
24994
24995 2007-03-28  Bruno Haible  <bruno@clisp.org>
24996
24997         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
24998         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
24999         input.
25000         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
25001         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
25002         unistr/u8-uctomb.
25003
25004 2007-03-28  Bruno Haible  <bruno@clisp.org>
25005
25006         * modules/unistr/u8-mbtoucr: New file.
25007         * lib/unistr/u8-mbtoucr.c: New file.
25008         * modules/unistr/u16-mbtoucr: New file.
25009         * lib/unistr/u16-mbtoucr.c: New file.
25010         * modules/unistr/u16-mbtoucr: New file.
25011         * lib/unistr/u16-mbtoucr.c: New file.
25012         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
25013
25014 2007-03-27  Simon Josefsson  <simon@josefsson.org>
25015             Bruno Haible  <bruno@clisp.org>
25016
25017         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
25018         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
25019         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
25020
25021         * m4/stdio_h.m4: Add stubs for vasprintf too.
25022
25023         * modules/stdio: Support vasprintf in sed command.
25024
25025         * modules/vasprintf: Depend on stdio for prototypes.  Remove
25026         vasprintf.h.  Add stdio module indicator.
25027
25028         * lib/stdio_.h: Declare asprintf and vasprintf, based on
25029         vasprintf.h.
25030
25031         * lib/vasprintf.h: File removed.
25032
25033         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
25034         * lib/vasprintf.c: Ditto.
25035         * lib/xvasprintf.c: Ditto.
25036         * tests/test-vasprintf-posix.c: Ditto.
25037         * tests/test-vasprintf.c: Ditto.
25038
25039 2007-03-27  Bruno Haible  <bruno@clisp.org>
25040
25041         Make vasnprintf multithread-safe.
25042         * lib/vasnprintf.c (decimal_point_char): New function.
25043         (VASNPRINTF): Use it.
25044         Suggested by Simon Josefsson.
25045
25046 2007-03-27  Eric Blake  <ebb9@byu.net>
25047
25048         Support sub-second birthtime on cygwin.
25049         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
25050         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
25051         (get_stat_birthtime): Also work with st_birthtim.
25052
25053 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
25054
25055         * lib/stat-time.h (USE_BIRTHTIME): Remove.
25056         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
25057         (get_stat_birthtime_ns): Do not try to use "spare" fields.
25058         (get_stat_birthtime_ns): Simplify compile-time tests.
25059         (get_stat_birthtime): Change the API to look like
25060         get_stat_mtime etc., except return a negative tv_nsec on error.
25061         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
25062         Don't check for "spare" fields.
25063         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
25064         or for struct stat.st_birthtime, as these tests aren't used.
25065         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
25066
25067 2007-03-27  Bruno Haible  <bruno@clisp.org>
25068
25069         * lib/stat-time.h: Include <sys/stat.h>.
25070
25071 2007-03-27  James Youngman  <jay@gnu.org>
25072
25073         * lib/stat-time.h (get_stat_birthtime): New function for
25074           retrieving st_birthtime as provided by UFS2 (hence *BSD).
25075         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
25076           and its variants.
25077         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
25078         * modules/stat-time-test: New file.
25079         * tests/test-stat-time.c: New test, devised by Bruno Haible.
25080
25081 2007-03-26  Bruno Haible  <bruno@clisp.org>
25082
25083         Better support of signalling NaNs.
25084         * lib/atanl.c: Include isnanl.h.
25085         (atanl): Perform test for NaN at the beginning of the function and
25086         through a call to isnanl.
25087         * lib/cosl.c: Include isnanl.h.
25088         (cosl): Perform test for NaN at the beginning of the function and
25089         through a call to isnanl.
25090         * lib/ldexpl.c: Include isnanl.h.
25091         (ldexpl): Perform test for NaN through a call to isnanl.
25092         * lib/logl.c: Include isnanl.h.
25093         (logl): Perform test for NaN at the beginning of the function and
25094         through a call to isnanl.
25095         * lib/sinl.c: Include isnanl.h.
25096         (sinl): Perform test for NaN at the beginning of the function and
25097         through a call to isnanl.
25098         * lib/sqrtl.c: Include isnanl.h.
25099         (sqrtl): Perform test for NaN at the beginning of the function and
25100         through a call to isnanl.
25101         * lib/tanl.c: Include isnanl.h.
25102         (tanl): Perform test for NaN at the beginning of the function and
25103         through a call to isnanl.
25104         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
25105         * modules/mathl (Depends-on): Add isnanl.
25106
25107 2007-03-26  Eric Blake  <ebb9@byu.net>
25108
25109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
25110         regression in logic sense of previous patch.
25111
25112 2007-03-26  Bruno Haible  <bruno@clisp.org>
25113
25114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
25115         unportable shell command "if ! ...".
25116         Reported by Ralf Wildenhues.
25117
25118 2007-03-25  Bruno Haible  <bruno@clisp.org>
25119
25120         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
25121         <sysexits.h> file, and only add EX_CONFIG.
25122         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
25123         absolute file name and whether it is sufficient. Substitute also
25124         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
25125         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
25126         ABSOLUTE_SYSEXITS_H into sysexits.h.
25127
25128 2007-03-25  Bruno Haible  <bruno@clisp.org>
25129
25130         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
25131         hints is NULL.
25132
25133 2007-03-25  Bruno Haible  <bruno@clisp.org>
25134
25135         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
25136         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25137
25138 2007-03-25  Bruno Haible  <bruno@clisp.org>
25139
25140         * lib/vasnprintf.c: Include langinfo.h.
25141         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
25142         multithread-safe.
25143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
25144         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
25145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25146         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25149         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
25151         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25152         Reported by Simon Josefsson.
25153
25154 2007-03-25  Bruno Haible  <bruno@clisp.org>
25155
25156         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
25157         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
25158         * modules/vasnprintf (Depends-on): Add stdint.
25159
25160 2007-03-25  Bruno Haible  <bruno@clisp.org>
25161
25162         * modules/fpieee: New file.
25163         * m4/fpieee.m4: New file.
25164         * modules/isnan-nolibm (Depends-on): Add fpieee.
25165         * modules/isnanl-nolibm (Depends-on): Add fpieee.
25166         * modules/isnanl (Depends-on): Add fpieee.
25167
25168 2007-03-25  Bruno Haible  <bruno@clisp.org>
25169
25170         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
25171
25172 2007-03-25  Bruno Haible  <bruno@clisp.org>
25173
25174         Avoid test failures on IRIX 6.5.
25175         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
25176         (main): Use it.
25177         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
25178         macros.
25179         (main): Use them.
25180
25181 2007-03-25  Bruno Haible  <bruno@clisp.org>
25182
25183         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
25184         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
25185         exists but doesn't work.
25186         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
25187         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
25188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
25189         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
25190
25191 2007-03-25  Bruno Haible  <bruno@clisp.org>
25192
25193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
25194         returns inf. Needed on IRIX 6.5.
25195
25196 2007-03-25  Bruno Haible  <bruno@clisp.org>
25197
25198         * tests/test-frexpl.c: Include isnanl-nolibm.h.
25199         (main): Use isnanl instead of x != x idiom.
25200         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
25201
25202         * tests/test-frexp.c: Include isnan.h.
25203         (main): Use isnan instead of x != x idiom.
25204         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
25205
25206 2007-03-25  Bruno Haible  <bruno@clisp.org>
25207
25208         * tests/test-frexp.c (NaN): New function/macro.
25209         (main): Use it instead of 0.0 / 0.0.
25210         * tests/test-isnan.c (NaN): New function/macro.
25211         (main): Use it instead of 0.0 / 0.0.
25212         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
25213         (test_function): Use it instead of 0.0 / 0.0.
25214         * tests/test-vasprintf-posix.c (NaN): New function/macro.
25215         (test_function): Use it instead of 0.0 / 0.0.
25216         * tests/test-snprintf-posix.h (NaN): New function/macro.
25217         (test_function): Use it instead of 0.0 / 0.0.
25218         * tests/test-sprintf-posix.h (NaN): New function/macro.
25219         (test_function): Use it instead of 0.0 / 0.0.
25220         * tests/test-fprintf-posix.h (NaN): New function/macro.
25221         (test_function): Use it instead of 0.0 / 0.0.
25222         * tests/test-printf-posix.h (NaN): New function/macro.
25223         (test_function): Use it instead of 0.0 / 0.0.
25224
25225         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
25226
25227 2007-03-25  Bruno Haible  <bruno@clisp.org>
25228
25229         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
25230
25231 2007-03-25  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/regexec.c (merge_state_with_log): Make static.
25234
25235 2007-03-25  Bruno Haible  <bruno@clisp.org>
25236
25237         * lib/trigl.c (kernel_rem_pio2): Make static.
25238
25239 2007-03-25  Bruno Haible  <bruno@clisp.org>
25240
25241         * lib/sincosl.c (sincosl_table): Make static.
25242
25243 2007-03-25  Bruno Haible  <bruno@clisp.org>
25244
25245         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
25246         if the compiler does not support C99.
25247
25248 2007-03-25  Bruno Haible  <bruno@clisp.org>
25249
25250         * modules/time (Makefile.am): Ensure all rule action lines start with a
25251         tab.
25252
25253 2007-03-24  Bruno Haible  <bruno@clisp.org>
25254
25255         * modules/tsearch-tests: New file.
25256         * tests/test-tsearch.sh: New file.
25257         * tests/test-tsearch.c: New file, mostly copied from glibc.
25258
25259         * modules/search-tests: New file.
25260         * tests/test-search.c: New file.
25261
25262         * modules/search: New file.
25263         * lib/search_.h: New file, incorporating lib/tsearch.h.
25264         * m4/search_h.m4: New file.
25265         * lib/tsearch.h: Remove file.
25266         * lib/tsearch.c: Include search.h instead of tsearch.h.
25267         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
25268         HAVE_TSEARCH.
25269         * modules/tsearch (Files): Remove lib/tsearch.h.
25270         (Depends-on): Add search.
25271         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
25272         (Include): Change tsearch.h into search.h.
25273
25274 2007-03-24  Bruno Haible  <bruno@clisp.org>
25275
25276         * modules/fpucw: New file.
25277         * lib/fpucw.h: New file.
25278         * lib/frexp.c: Include fpucw.h.
25279         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25280         (FUNC): Use them.
25281         * lib/printf-frexp.c: Include fpucw.h.
25282         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25283         (FUNC): Use them.
25284         * lib/vasnprintf.c: Include fpucw.h.
25285         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
25286         'long double' calculations.
25287         * tests/test-frexpl.c: Include fpucw.h.
25288         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25289         * tests/test-printf-frexpl.c: Include fpucw.h.
25290         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25291         * modules/frexpl (Depends-on): Add fpucw.
25292         * modules/printf-frexpl (Depends-on): Likewise.
25293         * modules/fprintf-posix (Depends-on): Likewise.
25294         * modules/snprintf-posix (Depends-on): Likewise.
25295         * modules/sprintf-posix (Depends-on): Likewise.
25296         * modules/vasnprintf-posix (Depends-on): Likewise.
25297         * modules/vasprintf-posix (Depends-on): Likewise.
25298         * modules/vfprintf-posix (Depends-on): Likewise.
25299         * modules/vsnprintf-posix (Depends-on): Likewise.
25300         * modules/vsprintf-posix (Depends-on): Likewise.
25301         * modules/frexpl-tests (Depends-on): Likewise.
25302         * modules/printf-frexpl-tests (Depends-on): Likewise.
25303
25304 2007-03-24  Bruno Haible  <bruno@clisp.org>
25305
25306         * lib/float+.h: New file.
25307         * lib/isnan.c: Include float+.h.
25308         (SIZE): New macro.
25309         (FUNC): Compare only SIZE bytes of the value.
25310         * lib/vasnprintf.c: Include float+.h.
25311         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
25312         SIZEOF_LDBL or SIZEOF_DBL bytes.
25313         * modules/isnan-nolibm (Files): Add lib/float+.h.
25314         * modules/isnanl-nolibm (Files): Add lib/float+.h.
25315         * modules/isnanl (Files): Add lib/float+.h.
25316         * modules/vasnprintf (Files): Add lib/float+.h.
25317
25318 2007-03-24  Bruno Haible  <bruno@clisp.org>
25319
25320         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
25321         include isnanl-nolibm.h.
25322
25323 2007-03-24  Bruno Haible  <bruno@clisp.org>
25324
25325         * tests/test-read-file.c (main): Don't produce spurious output for
25326         expected situations. Make the test fail if it encountered unexpected
25327         results.
25328
25329 2007-03-24  Bruno Haible  <bruno@clisp.org>
25330
25331         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
25332         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
25333
25334 2007-03-24  Bruno Haible  <bruno@clisp.org>
25335
25336         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
25337
25338 2007-03-24  Bruno Haible  <bruno@clisp.org>
25339
25340         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
25341         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
25342
25343         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
25344         * modules/utf8-ucs4: Turn into a symbolic link to module
25345         unistr/u8-mbtouc.
25346
25347         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
25348         utf8-ucs4-unsafe.
25349         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
25350         unistr/u8-mbtouc-unsafe.
25351
25352         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
25353         * modules/utf16-ucs4: Turn into a symbolic link to module
25354         unistr/u16-mbtouc.
25355
25356         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
25357         utf16-ucs4-unsafe.
25358         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
25359         unistr/u16-mbtouc-unsafe.
25360
25361         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
25362         * modules/ucs4-utf8: Turn into a symbolic link to module
25363         unistr/u8-ubtomb.
25364
25365         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
25366         * modules/ucs4-utf16: Turn into a symbolic link to module
25367         unistr/u16-ubtomb.
25368
25369 2007-03-24  Bruno Haible  <bruno@clisp.org>
25370
25371         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
25372         Enable the function only if HAVE_INLINE.
25373         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
25374         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25375         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
25376         Enable the function only if HAVE_INLINE.
25377         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
25378         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25379         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
25380         Enable the function only if HAVE_INLINE.
25381         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
25382         Enable the function only if HAVE_INLINE.
25383         * modules/utf8-ucs4: Update.
25384         * modules/utf8-ucs4-unsafe: Update.
25385         * modules/utf16-ucs4: Update.
25386         * modules/utf16-ucs4-unsafe: Update.
25387         * modules/ucs4-utf8: Update.
25388         * modules/ucs4-utf16: Update.
25389
25390 2007-03-24  Bruno Haible  <bruno@clisp.org>
25391
25392         * lib/utf8-ucs4.h: Remove file.
25393         * lib/utf8-ucs4-unsafe.h: Remove file.
25394         * lib/utf16-ucs4.h: Remove file.
25395         * lib/utf16-ucs4-unsafe.h: Remove file.
25396         * lib/ucs4-utf8.h: Remove file.
25397         * lib/ucs4-utf16.h: Remove file.
25398         * lib/unistr.h: Include their previous contents.
25399         * m4/utf-ucs4.m4: Remove file.
25400         * m4/ucs4-utf.m4: Remove file.
25401         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
25402         (Depends-on): Add unistr/base.
25403         (configure.ac): Remove gl_UTF_UCS4.
25404         (Makefile.am): Update.
25405         (Include): Change to unistr.h.
25406         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
25407         (Depends-on): Add unistr/base.
25408         (configure.ac): Remove gl_UTF_UCS4.
25409         (Makefile.am): Update.
25410         (Include): Change to unistr.h.
25411         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
25412         (Depends-on): Add unistr/base.
25413         (configure.ac): Remove gl_UTF_UCS4.
25414         (Makefile.am): Update.
25415         (Include): Change to unistr.h.
25416         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
25417         (Depends-on): Add unistr/base.
25418         (configure.ac): Remove gl_UTF_UCS4.
25419         (Makefile.am): Update.
25420         (Include): Change to unistr.h.
25421         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
25422         (Depends-on): Add unistr/base.
25423         (configure.ac): Remove gl_UCS4_UTF.
25424         (Makefile.am): Update.
25425         (Include): Change to unistr.h.
25426         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
25427         (Depends-on): Add unistr/base.
25428         (configure.ac): Remove gl_UCS4_UTF.
25429         (Makefile.am): Update.
25430         (Include): Change to unistr.h.
25431         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
25432         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
25433         utf8-ucs4-unsafe.h.
25434         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
25435         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
25436         utf16-ucs4-unsafe.h.
25437         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
25438         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
25439         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
25440         * lib/unistr/u8-strchr.c: Likewise.
25441         * lib/unistr/u8-strrchr.c: Likewise.
25442         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
25443         * lib/unistr/u16-strchr.c: Likewise.
25444         * lib/unistr/u16-strrchr.c: Likewise.
25445         * lib/striconveh.c: Update.
25446         * lib/linebreak.c: Update.
25447
25448 2007-03-24  Bruno Haible  <bruno@clisp.org>
25449
25450         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
25451         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
25452
25453 2007-03-22  Bruno Haible  <bruno@clisp.org>
25454
25455         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
25456
25457 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
25458
25459         * MODULES.html.sh (File system functions): New module write-any-file.
25460         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
25461         * m4/write-any-file.m4: New files.
25462
25463 2007-03-23  Eric Blake  <ebb9@byu.net>
25464
25465         * gnulib-tool: Rearrange space-tab sequences, since some editors
25466         like to eat them.
25467
25468 2007-03-23  Eric Blake  <ebb9@byu.net>
25469
25470         * lib/version-etc.c (version_etc_va): Update license wording to
25471         be more concise.  Recommended by Richard Stallman.
25472
25473 2007-03-22  Bruno Haible  <bruno@clisp.org>
25474
25475         * lib/poll.c (MSG_PEEK): New fallback definition.
25476
25477 2007-03-22  Bruno Haible  <bruno@clisp.org>
25478
25479         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
25480         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
25481         (main): Update.
25482         Fixes a compilation error on BeOS.
25483
25484 2007-03-22  Bruno Haible  <bruno@clisp.org>
25485
25486         * modules/frexpl-tests: New file.
25487         * tests/test-frexpl.c: New file.
25488
25489         * modules/frexpl: New file.
25490         * m4/frexpl.m4: New file.
25491         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
25492         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
25493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
25494         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
25495         (Depends-on): Add frexpl. Remove isnanl-nolibm.
25496         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
25497
25498 2007-03-22  Bruno Haible  <bruno@clisp.org>
25499
25500         * lib/frexpl.c: Share code with lib/frexp.c.
25501         * modules/mathl (Files): Add lib/frexp.c.
25502         (Depends-on): Add isnanl-nolibm.
25503
25504 2007-03-22  Bruno Haible  <bruno@clisp.org>
25505
25506         * modules/printf-frexp (Files): Add m4/frexp.m4.
25507         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
25508         only if the found frexp function actually works.
25509
25510 2007-03-22  Bruno Haible  <bruno@clisp.org>
25511
25512         * lib/frexp.c: Remove older implementation that uses divisions.
25513
25514 2007-03-21  Bruno Haible  <bruno@clisp.org>
25515
25516         * modules/frexp-tests: New file.
25517         * tests/test-frexp.c: New file.
25518
25519         * modules/frexp: New file.
25520         * lib/frexp.c: New file.
25521         * m4/frexp.m4: New file.
25522         * lib/math_.h (frexp): New declaration.
25523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
25524         REPLACE_FREXP.
25525         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
25526
25527 2007-03-21  Bruno Haible  <bruno@clisp.org>
25528
25529         * modules/isnanl-tests: New file.
25530         * tests/test-isnanl.c: New file.
25531
25532         * modules/isnanl: New file.
25533         * lib/isnanl.h: New file.
25534         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
25535         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
25536         gl_FUNC_ISNANL_WORKS.
25537         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
25538         New macros.
25539
25540 2007-03-21  Bruno Haible  <bruno@clisp.org>
25541
25542         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
25543         lib/isnanl.h.
25544         (Include): Update.
25545         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
25546         * lib/vasnprintf.c: Update.
25547         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
25548         tests/test-isnanl.h, remove tests/test-isnanl.c.
25549         (Makefile.am): Update.
25550         * tests/test-isnanl-nolibm.c: New file.
25551         * tests/test-isnanl.h: New file.
25552         * tests/test-isnanl.c: Remove file.
25553
25554 2007-03-21  Jim Meyering  <jim@meyering.net>
25555
25556         When trying to open ".", treat ESTALE like EACCES.
25557         * lib/savewd.c (savewd_save): Resort to forking not just upon
25558         failure with EACCES, but also when errno is ESTALE.
25559
25560 2007-03-20  Bruno Haible  <bruno@clisp.org>
25561
25562         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
25563         Needed on AIX 5.1. Reported by Matthew Woehlke.
25564
25565 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25566
25567         Suggestions by Bruno Haible:
25568         * lib/acl-internal.h: Include "gettext.h" rather than rolling
25569         our own.
25570         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
25571         * modules/acl (Depends-on): Add gettext.
25572
25573 2007-03-19  Bruno Haible  <bruno@clisp.org>
25574
25575         * modules/iconvme: Remove file.
25576         * lib/iconvme.h: Remove file.
25577         * lib/iconvme.c: Remove file.
25578         * m4/iconvme.m4: Remove file.
25579
25580 2007-03-19  Bruno Haible  <bruno@clisp.org>
25581
25582         * doc/relocatable-maint.texi: Break long shell script line.
25583         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25584
25585 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25586
25587         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
25588         handle file_has_acl.
25589         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
25590         * lib/acl.c: Move header inclusions and related macro defns into
25591         lib/acl-internal.h.
25592         (S_ISLNK): Remove defn, since that's now done for us.
25593         (file_has_acl): Move to lib/file-has-acl.c.
25594         Call acl_trivial if available.  This is the crucial part of the fix.
25595         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
25596         shared within the library.  Rewrite a bit, partly to make it compatible
25597         with the GNU coding style.
25598         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
25599         Remove unnecessary double-quotes.
25600         Don't test for acl_to_text; the build will catch that.
25601         Replace acl_entries if it doesn't exist and it is needed.
25602         Check for -lsec and acl_trivial (as used on Solaris 10).
25603         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
25604         lib/file-has-acl.c.
25605         (Depends-on): Add sys_stat, for S_ISLNK.
25606
25607 2007-03-19  Ben Pfaff  <blp@gnu.org>
25608
25609         * doc/gnulib.texi: Fix typos.
25610         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25611
25612 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25613
25614         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
25615         If size is zero here, buf must be zero.
25616
25617 2007-03-19  Simon Josefsson  <simon@josefsson.org>
25618
25619         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
25620         <bruno@clisp.org>.
25621
25622 2007-03-18  Bruno Haible  <bruno@clisp.org>
25623
25624         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
25625         Suggested by Eric Blake.
25626
25627 2007-03-18  Ben Pfaff  <blp@gnu.org>
25628
25629         * doc/relocatable.texi: Recommend using as prefix a directory
25630         that does not exist and will never be created.  Based on
25631         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
25632         and others.
25633
25634 2007-03-17  Bruno Haible  <bruno@clisp.org>
25635
25636         * lib/fchownat.c: Include lchown.h.
25637
25638 2007-03-17  Bruno Haible  <bruno@clisp.org>
25639
25640         Fix endless loop when the given allocated size was > INT_MAX.
25641         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
25642         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
25643         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
25644         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
25645         * lib/sprintf.c (sprintf): Likewise.
25646
25647 2007-03-17  Bruno Haible  <bruno@clisp.org>
25648
25649         * tests/test-argp-2.sh (func_compare): Output a context diff.
25650
25651 2007-03-17  Bruno Haible  <bruno@clisp.org>
25652
25653         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
25654         locale's decimal-point character.
25655
25656 2007-03-17  Bruno Haible  <bruno@clisp.org>
25657
25658         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
25659         before comparing it. Needed because on some platforms (e.g. x86) a
25660         'long double' occupies less bytes than sizeof (long double).
25661
25662 2007-03-17  Bruno Haible  <bruno@clisp.org>
25663
25664         * tests/test-crc.c (main): Make printf statements 64-bit clean.
25665         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
25666         * tests/test-getaddrinfo.c (simple): Likewise.
25667         * tests/test-read-file.c (main): Likewise.
25668
25669 2007-03-17  Bruno Haible  <bruno@clisp.org>
25670
25671         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
25672
25673 2007-03-17  Bruno Haible  <bruno@clisp.org>
25674
25675         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
25676         unused variable.
25677
25678 2007-03-17  Bruno Haible  <bruno@clisp.org>
25679
25680         * tests/test-c-strcasecmp.c: Include c-strcase.h.
25681         * tests/test-c-strncasecmp.c: Likewise.
25682
25683 2007-03-17  Bruno Haible  <bruno@clisp.org>
25684
25685         * modules/stdlib (Depends-on): Add unistd.
25686         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
25687         Needed for MacOS X 10.3.
25688
25689 2007-03-17  Bruno Haible  <bruno@clisp.org>
25690
25691         * lib/unistr/u-strdup.h: Include <stdlib.h>.
25692
25693 2007-03-17  Bruno Haible  <bruno@clisp.org>
25694
25695         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
25696
25697 2007-03-17  Bruno Haible  <bruno@clisp.org>
25698
25699         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
25700         to reflect files copied from gnulib (with or without modifications).
25701         Suggested by Jim Meyering.
25702
25703 2007-03-17  Eric Blake  <ebb9@byu.net>
25704
25705         * NEWS: Document stdlib change from 2007-02-18.
25706
25707 2007-03-17  Jim Meyering  <jim@meyering.net>
25708
25709         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
25710         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
25711         someone uses a name containing shell meta-characters.
25712         Reported by Alfred M. Szmidt.
25713
25714         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
25715
25716 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25717
25718         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
25719         and copy gettext configuration files only if configure.ac contains
25720         a use of AM_GNU_GETTEXT_VERSION.
25721
25722 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25723
25724         * build-aux/bootstrap (gnulib_name): New variable.
25725         (gnulib_tool_options): Use it.
25726
25727 2007-03-13  Simon Josefsson  <simon@josefsson.org>
25728
25729         * tests/test-des.c: Use new namespace.
25730
25731 2007-03-15  Bruno Haible  <bruno@clisp.org>
25732
25733         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
25734         Reported by James Youngman <jay@gnu.org>.
25735
25736 2007-03-15  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
25739         declared prototype. Needed with cc on OSF/1 5.1.
25740
25741 2007-03-15  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
25744         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
25745         (struct gl_list_implementation): Add dispose_fn argument to the
25746         'create_empty', 'create' methods.
25747         (struct gl_list_impl_base): Add field 'dispose_fn'.
25748         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
25749         argument.
25750         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
25751         dispose_fn argument.
25752         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
25753         dispose_fn on the dropped values.
25754         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
25755         dispose_fn argument.
25756         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
25757         dropped values.
25758         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
25759         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25760         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
25761         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25762         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
25763         argument.
25764         (gl_tree_list_free): Call dispose_fn on the dropped values.
25765         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
25766         the dropped values.
25767         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
25768         Add dispose_fn argument.
25769         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
25770         Call dispose_fn on the dropped values.
25771         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
25772         Add dispose_fn argument.
25773         (gl_sublist_create): Initialize the 'dispose_fn' field.
25774         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
25775         * tests/test-array_list.c (main): Update.
25776         * tests/test-carray_list.c (main): Update.
25777         * tests/test-avltree_list.c (main): Update.
25778         * tests/test-rbtree_list.c (main): Update.
25779         * tests/test-avltreehash_list.c (main): Update.
25780         * tests/test-rbtreehash_list.c (main): Update.
25781         * tests/test-linked_list.c (main): Update.
25782         * tests/test-linkedhash_list.c (main): Update.
25783         * tests/test-array_oset.c (main): Update.
25784
25785 2007-03-15  Bruno Haible  <bruno@clisp.org>
25786
25787         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
25788         (gl_oset_create_empty): Add dispose_fn argument.
25789         (struct gl_oset_implementation): Add dispose_fn argument to
25790         'create_empty' method.
25791         (struct gl_oset_impl_base): Add dispose_fn field.
25792         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
25793         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
25794         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
25795         values.
25796         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
25797         (gl_tree_oset_free): Call dispose_fn on the dropped values.
25798         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25799         dropped value.
25800         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25801         dropped value.
25802         * tests/test-array_oset.c (main): Update.
25803         * tests/test-avltree_oset.c (main): Update.
25804         * tests/test-rbtree_oset.c (main): Update.
25805         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
25806
25807 2007-03-13  Bruno Haible  <bruno@clisp.org>
25808
25809         * tests/test-stdbool.c (i): Update after last patch.
25810
25811 2007-03-12  Bruno Haible  <bruno@clisp.org>
25812
25813         * lib/quotearg.c: Include <wctype.h> early, before the definition of
25814         the iswprint macro. Needed on Solaris 2.5.1.
25815
25816 2007-03-12  Bruno Haible  <bruno@clisp.org>
25817
25818         * tests/test-printf-frexp.c (main): Declare x as volatile.
25819
25820 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25821
25822         * doc/gnulib.texi (Build robot for gnulib): New section.
25823
25824 2007-03-12  Jim Meyering  <jim@meyering.net>
25825
25826         * build-aux/bootstrap: New file.
25827         * build-aux/bootstrap.conf: New file, from coreutils.
25828
25829 2007-03-11  Bruno Haible  <bruno@clisp.org>
25830
25831         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
25832
25833 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25834
25835         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
25836         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
25837         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
25838
25839 2007-03-11  Bruno Haible  <bruno@clisp.org>
25840
25841         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
25842         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
25843
25844 2007-03-11  Bruno Haible  <bruno@clisp.org>
25845
25846         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
25847         formula. Needed for SunPRO C 5.0.
25848
25849 2007-03-11  Bruno Haible  <bruno@clisp.org>
25850
25851         * modules/long-options (Depends-on): Add getopt.
25852
25853 2007-03-11  Bruno Haible  <bruno@clisp.org>
25854
25855         * modules/modechange (Depends-on): Add stdbool.
25856
25857 2007-03-11  Bruno Haible  <bruno@clisp.org>
25858
25859         * modules/i-ring (Depends-on): Add stdbool.
25860
25861 2007-03-11  Bruno Haible  <bruno@clisp.org>
25862
25863         * modules/gc-des (Depends-on): Add stdbool.
25864
25865 2007-03-11  Bruno Haible  <bruno@clisp.org>
25866
25867         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
25868
25869 2007-03-11  Bruno Haible  <bruno@clisp.org>
25870
25871         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
25872
25873 2007-03-11  Bruno Haible  <bruno@clisp.org>
25874
25875         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
25876
25877 2007-03-11  Bruno Haible  <bruno@clisp.org>
25878
25879         * lib/vasnprintf.c (sprintf): Undefine.
25880
25881 2007-03-11  Bruno Haible  <bruno@clisp.org>
25882
25883         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
25884         initializers in SunPRO C and Compaq C compilers.
25885
25886 2007-03-11  Bruno Haible  <bruno@clisp.org>
25887
25888         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
25889         decrementing code ANSI C compliant.
25890
25891 2007-03-11  Bruno Haible  <bruno@clisp.org>
25892
25893         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
25894         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
25895
25896 2007-03-11  Bruno Haible  <bruno@clisp.org>
25897
25898         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
25899         <stdbool.h> substitute doesn't pass.
25900
25901 2007-03-11  Bruno Haible  <bruno@clisp.org>
25902
25903         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
25904
25905 2007-03-11  Bruno Haible  <bruno@clisp.org>
25906
25907         * gnulib-tool (func_create_megatestdir): Create also an autobuild
25908         script, for submission to autobuild.josefsson.org.
25909
25910 2007-03-10  Bruno Haible  <bruno@clisp.org>
25911
25912         * modules/canonicalize-lgpl-tests: New file.
25913         * tests/test-canonicalize-lgpl.sh: New file.
25914         * tests/test-canonicalize-lgpl.c: New file.
25915
25916         * modules/c-strcase-tests: New file.
25917         * tests/test-c-strcase.sh: New file.
25918         * tests/test-c-strcasecmp.c: New file.
25919         * tests/test-c-strncasecmp.c: New file.
25920
25921         * modules/atexit-tests: New file.
25922         * tests/test-atexit.sh: New file.
25923         * tests/test-atexit.c: New file.
25924
25925 2007-03-10  Bruno Haible  <bruno@clisp.org>
25926
25927         * tests/test-binary-io.sh: Use temporary filenames that are not so
25928         likely to clash with those of other tests (in a parallel make).
25929         * tests/test-binary-io.c: Likewise.
25930
25931 2007-03-10  Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
25934         fallback; use #error instead.
25935         Suggested by Simon Josefsson.
25936
25937 2007-03-10  Bruno Haible  <bruno@clisp.org>
25938
25939         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
25940         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
25941         first and the last.
25942
25943 2007-03-10  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
25946
25947 2007-03-10  Bruno Haible  <bruno@clisp.org>
25948
25949         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
25950         "make distcheck".
25951         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
25952         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
25953         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
25954
25955 2007-03-10  Bruno Haible  <bruno@clisp.org>
25956
25957         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
25958         variable.
25959         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
25960         variable.
25961
25962 2007-03-09  Eric Blake  <ebb9@byu.net>
25963         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
25964
25965         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
25966         types are not being provided by gnulib.
25967         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
25968         types are supported.
25969
25970 2007-03-10  Bruno Haible  <bruno@clisp.org>
25971
25972         * lib/stdio_.h (__attribute__): New macro.
25973         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
25974         vsprintf): Specify __attribute__ __format__ for GCC.
25975         Suggested by Eric Blake.
25976
25977 2007-03-09  Bruno Haible  <bruno@clisp.org>
25978
25979         * modules/printf-posix-tests: New file.
25980         * tests/test-printf-posix.sh: New file.
25981         * tests/test-printf-posix.c: New file.
25982
25983         * modules/printf-posix: New file.
25984         * lib/printf.c: New file.
25985         * m4/printf-posix-rpl.m4: New file.
25986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
25987         REPLACE_PRINTF.
25988         * lib/stdio_.h (printf): New declaration.
25989         (format, __format__, ____printf____, ____scanf____, ____strftime____,
25990         ____strfmon____): New macros.
25991         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
25992         REPLACE_PRINTF.
25993
25994 2007-03-09  Bruno Haible  <bruno@clisp.org>
25995
25996         * tests/test-vasnprintf-posix2.sh: New file.
25997         * tests/test-vasnprintf-posix2.c: New file.
25998         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
25999         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
26000         (Makefile.am): Activate test-vasnprintf-posix2.sh.
26001
26002         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
26003         a locale dependent decimal point, rather than always '.'.
26004
26005 2007-03-09  Eric Blake  <ebb9@byu.net>
26006
26007         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
26008         spite of platforms like Tandem/NSK that define it to -1.
26009
26010 2007-03-08  Bruno Haible  <bruno@clisp.org>
26011
26012         * modules/vprintf-posix-tests: New file.
26013         * tests/test-vprintf-posix.sh: New file.
26014         * tests/test-vprintf-posix.c: New file.
26015         * tests/test-printf-posix.h: New file.
26016
26017         * modules/vprintf-posix: New file.
26018         * lib/vprintf.c: New file.
26019         * m4/vprintf-posix.m4: New file.
26020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
26021         REPLACE_VPRINTF.
26022         * lib/stdio_.h (vprintf): New declaration.
26023         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
26024         REPLACE_VPRINTF.
26025
26026 2007-03-08  Bruno Haible  <bruno@clisp.org>
26027
26028         * modules/fprintf-posix-tests: New file.
26029         * tests/test-fprintf-posix.sh: New file.
26030         * tests/test-fprintf-posix.c: New file.
26031
26032         * modules/fprintf-posix: New file.
26033         * lib/fprintf.c: New file.
26034         * m4/fprintf-posix.m4: New file.
26035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
26036         REPLACE_FPRINTF.
26037         * lib/stdio_.h (fprintf): New declaration.
26038         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
26039         REPLACE_FPRINTF.
26040
26041 2007-03-08  Bruno Haible  <bruno@clisp.org>
26042
26043         * modules/vfprintf-posix-tests: New file.
26044         * tests/test-vfprintf-posix.sh: New file.
26045         * tests/test-vfprintf-posix.c: New file.
26046         * tests/test-fprintf-posix.h: New file.
26047         * tests/test-fprintf-posix.out: New file.
26048
26049         * modules/vfprintf-posix: New file.
26050         * lib/vfprintf.c: New file.
26051         * m4/vfprintf-posix.m4: New file.
26052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
26053         REPLACE_VFPRINTF.
26054         * lib/stdio_.h (vfprintf): New declaration.
26055         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
26056         REPLACE_VFPRINTF.
26057
26058 2007-03-08  Bruno Haible  <bruno@clisp.org>
26059
26060         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
26061
26062 2007-03-08  Bruno Haible  <bruno@clisp.org>
26063
26064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
26065         instead of 'expr' invocations.
26066         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26067         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26068         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26071         Suggested by Paul Eggert.
26072
26073 2007-03-08  Bruno Haible  <bruno@clisp.org>
26074
26075         * modules/fseterr-tests: New file.
26076         * tests/test-fseterr.c: New file.
26077
26078         * modules/fseterr: New file.
26079         * lib/fseterr.h: New file.
26080         * lib/fseterr.c: New file.
26081
26082 2007-03-08  Bruno Haible  <bruno@clisp.org>
26083
26084         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
26085         * lib/getopt_.h: Likewise.
26086         * lib/mbswidth.h: Likewise.
26087         * lib/setenv.h: Likewise.
26088         * lib/vasnprintf.h: Likewise.
26089         * lib/vasprintf.h: Likewise.
26090         * lib/verror.h: Likewise.
26091         * lib/xsetenv.h: Likewise.
26092         * lib/xvasprintf.h: Likewise.
26093
26094 2007-03-08  Jim Meyering  <jim@meyering.net>
26095
26096         * users.txt: Add parted.
26097
26098         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
26099
26100 2007-03-07  Bruno Haible  <bruno@clisp.org>
26101
26102         * m4/printf.m4: Make the shell script snippets copy&pastable.
26103
26104 2007-03-02  Bruno Haible  <bruno@clisp.org>
26105
26106         * lib/netinet_in_.h: New file.
26107         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
26108         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
26109         * modules/netinet_in (Files): Add lib/netinet_in_.h.
26110         (Depends-on): Add absolute-header.
26111         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
26112         into netinet/in.h.
26113
26114 2007-03-03  Bruno Haible  <bruno@clisp.org>
26115
26116         * lib/sys_select_.h: New file.
26117         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
26118         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
26119         * modules/sys_select (Files): Add lib/sys_select_.h.
26120         (Depends-on): Add absolute-header.
26121         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
26122         into sys/select.h.
26123
26124 2007-03-02  Bruno Haible  <bruno@clisp.org>
26125
26126         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
26127         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
26128         values.
26129         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
26130         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
26131         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
26132         * modules/sys_socket (Depends-on): Add absolute-header.
26133         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
26134         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
26135         (Include): Remove requirement of inclusion of <sys/types.h>.
26136
26137 2007-03-02  Bruno Haible  <bruno@clisp.org>
26138
26139         * lib/byteswap_.h (bswap_32): Fix formula.
26140
26141 2007-03-06  Bruno Haible  <bruno@clisp.org>
26142
26143         * modules/sprintf-posix-tests: New file.
26144         * tests/test-sprintf-posix.c: New file.
26145
26146         * modules/sprintf-posix: New file.
26147         * lib/sprintf.c: New file.
26148         * m4/sprintf-posix.m4: New file.
26149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
26150         REPLACE_SPRINTF.
26151         * lib/stdio_.h (sprintf): New declaration.
26152         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
26153         REPLACE_SPRINTF.
26154
26155 2007-03-06  Bruno Haible  <bruno@clisp.org>
26156
26157         * modules/vsprintf-posix-tests: New file.
26158         * tests/test-vsprintf-posix.c: New file.
26159         * tests/test-sprintf-posix.h: New file.
26160
26161         * modules/vsprintf-posix: New file.
26162         * lib/vsprintf.c: New file.
26163         * m4/vsprintf-posix.m4: New file.
26164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
26165         REPLACE_VSPRINTF.
26166         * lib/stdio_.h (vsprintf): New declaration.
26167         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
26168         REPLACE_VSPRINTF.
26169
26170 2007-03-06  Bruno Haible  <bruno@clisp.org>
26171
26172         * modules/vsnprintf (Depend-on): Remove minmax.
26173
26174 2007-03-06  Bruno Haible  <bruno@clisp.org>
26175
26176         * modules/snprintf-posix-tests: New file.
26177         * tests/test-snprintf-posix.c: New file.
26178
26179         * modules/snprintf-posix: New file.
26180         * m4/snprintf-posix.m4: New file.
26181         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
26182         gl_FUNC_SNPRINTF.
26183         (gl_FUNC_SNPRINTF): Invoke it.
26184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
26185         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
26186         is set.
26187         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
26188
26189 2007-03-06  Bruno Haible  <bruno@clisp.org>
26190
26191         * modules/vsnprintf-posix-tests: New file.
26192         * tests/test-vsnprintf-posix.c: New file.
26193         * tests/test-snprintf-posix.h: New file.
26194
26195         * modules/vsnprintf-posix: New file.
26196         * m4/vsnprintf-posix.m4: New file.
26197         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
26198         gl_FUNC_VSNPRINTF.
26199         (gl_FUNC_VSNPRINTF): Invoke it.
26200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
26201         * lib/stdio_.h (vsnprintf): Define as a replacement if
26202         REPLACE_VSNPRINTF is set.
26203         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
26204
26205 2007-03-06  Bruno Haible  <bruno@clisp.org>
26206
26207         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
26208         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
26209
26210 2007-03-06  Bruno Haible  <bruno@clisp.org>
26211
26212         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
26213         (asinl): Declare also if HAVE_DECL_ASINL is set.
26214         (atanl): Declare also if HAVE_DECL_ATANL is set.
26215         (ceill): Declare also if HAVE_DECL_CEILL is set.
26216         (cosl): Declare also if HAVE_DECL_COSL is set.
26217         (expl): Declare also if HAVE_DECL_EXPL is set.
26218         (floorl): Declare also if HAVE_DECL_FLOORL is set.
26219         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
26220         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
26221         (logl): Declare also if HAVE_DECL_LOGL is set.
26222         (sinl): Declare also if HAVE_DECL_SINL is set.
26223         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
26224         (tanl): Declare also if HAVE_DECL_TANL is set.
26225         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
26226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
26227         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
26228         declaration of frexpl, ldexpl.
26229         * modules/printf-frexpl (Depends-on): Add math.
26230         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
26231
26232 2007-03-05  Bruno Haible  <bruno@clisp.org>
26233
26234         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
26235         frexpl and ldexpl are declared.
26236         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
26237
26238 2007-03-05  Bruno Haible  <bruno@clisp.org>
26239
26240         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
26241         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
26242
26243 2007-03-05  Bruno Haible  <bruno@clisp.org>
26244
26245         * lib/stdio_.h: Include <stddef.h>.
26246
26247 2007-03-05  Bruno Haible  <bruno@clisp.org>
26248
26249         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
26250
26251 2007-03-05  Bruno Haible  <bruno@clisp.org>
26252
26253         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
26254         NetBSD 4, from Ralf Wildenhues.
26255
26256 2007-03-04  Bruno Haible  <bruno@clisp.org>
26257
26258         * lib/vasprintf.h: Update #if logic for the case when the functions
26259         exist but are overridden.
26260
26261 2007-03-04  Bruno Haible  <bruno@clisp.org>
26262
26263         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
26264         implementations: glibc-2.4 and MacOS X 10.3.
26265         * tests/test-vasnprintf-posix.c (test_function): Test also the case
26266         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
26267         * tests/test-vasprintf-posix.c (test_function): Likewise.
26268
26269 2007-03-04  Bruno Haible  <bruno@clisp.org>
26270
26271         * modules/vasprintf-posix-tests: New file.
26272         * tests/test-vasprintf-posix.c: New file.
26273
26274         * modules/vasprintf-posix: New file.
26275         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
26276         defined.
26277         * m4/vasprintf-posix.m4: New file.
26278         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
26279         gl_FUNC_VASPRINTF.
26280         (gl_FUNC_VASPRINTF): Invoke it.
26281         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
26282         here.
26283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
26284
26285 2007-03-04  Bruno Haible  <bruno@clisp.org>
26286
26287         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
26288         REPLACE_GETTIMEOFDAY.
26289         * modules/sys_time (Makefile.am): Likewise.
26290         * m4/sys_time_h.m4: Likewise.
26291         * m4/gettimeofday.m4: Likewise.
26292
26293 2007-03-04  Bruno Haible  <bruno@clisp.org>
26294
26295         * modules/vasnprintf-posix-tests: New file.
26296         * tests/test-vasnprintf-posix.c: New file.
26297
26298         * modules/vasnprintf-posix: New file.
26299         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
26300         printf-frexpl.h.
26301         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
26302         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
26303         REPLACE_VASNPRINTF is defined.
26304         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
26305         gl_FUNC_VASNPRINTF.
26306         (gl_FUNC_VASNPRINTF): Invoke it.
26307         * m4/vasnprintf-posix.m4: New file.
26308         * m4/printf.m4: New file.
26309
26310 2007-03-04  Bruno Haible  <bruno@clisp.org>
26311
26312         Compile progreloc.c only if --enable-relocatable is specified.
26313         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
26314         if --enable-relocatable was specified.
26315         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
26316         lib_SOURCES.
26317
26318 2007-03-04  Jim Meyering  <jim@meyering.net>
26319
26320         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
26321         Use it consistently, rather than enumerating errno constants.
26322
26323 2007-03-04  Bruno Haible  <bruno@clisp.org>
26324
26325         * modules/xvasprintf-tests: New file.
26326         * tests/test-xvasprintf.c: New file.
26327
26328         * modules/vasprintf-tests: New file.
26329         * tests/test-vasprintf.c: New file.
26330
26331         * modules/vasnprintf-tests: New file.
26332         * tests/test-vasnprintf.c: New file.
26333
26334         * modules/vsnprintf-tests: New file.
26335         * tests/test-vsnprintf.c: New file.
26336
26337         * modules/snprintf-tests: New file.
26338         * tests/test-snprintf.c: New file.
26339
26340 2007-03-04  Bruno Haible  <bruno@clisp.org>
26341
26342         Compile relocatable.c only if --enable-relocatable is specified.
26343         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
26344         gl_RELOCATABLE_LIBRARY.
26345         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
26346         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
26347         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
26348         gl_RELOCATABLE_LIBRARY.
26349         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
26350         (Makefile.am): Remove lib_SOURCES.
26351         * modules/relocatable-lib-lgpl (configure.ac): Invoke
26352         gl_RELOCATABLE_LIBRARY.
26353         (Makefile.am): Remove lib_SOURCES.
26354         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
26355         always.
26356         * modules/relocatable-prog-wrapper (configure.ac): Invoke
26357         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
26358
26359 2007-03-04  Bruno Haible  <bruno@clisp.org>
26360
26361         * modules/argmatch-tests: New file.
26362         * tests/test-argmatch.c: New file.
26363
26364         * tests/test-allocsa.c (main): Halve the number of loop runs.
26365
26366         * modules/alloca-opt-tests: New file.
26367         * tests/test-alloca-opt.c: New file.
26368
26369 2007-03-04  Jim Meyering  <jim@meyering.net>
26370
26371         Work around difference between Linux ACLs and Solaris 10 ZFS.
26372         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
26373         for EINVAL.
26374
26375 2007-03-03  Bruno Haible  <bruno@clisp.org>
26376
26377         * modules/relocatable-prog (Depends-on): Add back progreloc's
26378         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
26379
26380 2007-03-03  Bruno Haible  <bruno@clisp.org>
26381
26382         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
26383         * modules/relocatable-lib: New file.
26384
26385 2007-03-03  Bruno Haible  <bruno@clisp.org>
26386
26387         * modules/relocatable-prog: Renamed from modules/relocatable.
26388         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
26389
26390 2007-03-03  Bruno Haible  <bruno@clisp.org>
26391
26392         * modules/relocatable-script (Files): Add doc/relocatable.texi,
26393         m4/relocatable-lib.m4.
26394         (Depends-on): Remove 'relocatable'.
26395         (configure.ac): Add gl_RELOCATABLE_NOP.
26396
26397 2007-03-03  Bruno Haible  <bruno@clisp.org>
26398
26399         * modules/relocatable-prog-wrapper: New file.
26400         * modules/relocatable (Depends-on): Add it. Remove all other
26401         dependencies except progname.
26402         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
26403
26404         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
26405         (gl_FUNC_STRERROR): Nop.
26406         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
26407
26408         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
26409         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
26410
26411         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
26412         (gl_FUNC_READLINK): Update.
26413
26414         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
26415
26416 2007-03-03  Bruno Haible  <bruno@clisp.org>
26417
26418         * lib/xreadlink.c: Include <unistd.h> unconditionally.
26419         * modules/xreadlink (Depends-on): Add unistd.
26420         * modules/xreadlink-with-size (Depends-on): Likewise.
26421
26422 2007-03-03  Bruno Haible  <bruno@clisp.org>
26423
26424         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
26425         extracted from gt_FUNC_SETENV.
26426         (gt_FUNC_SETENV): Remove macro.
26427         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
26428         remove gt_FUNC_SETENV.
26429
26430 2007-03-03  Bruno Haible  <bruno@clisp.org>
26431
26432         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
26433         ENABLE_RELOCATABLE here.
26434         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
26435
26436 2007-03-03  Bruno Haible  <bruno@clisp.org>
26437
26438         * modules/rbtreehash-list-tests (Depends-on): Add progname.
26439         * tests/test-rbtreehash_list.c: Include progname.h.
26440         (main): Call set_program_name.
26441
26442         * modules/rbtree-oset-tests (Depends-on): Add progname.
26443         * tests/test-rbtree_oset.c: Include progname.h.
26444         (main): Call set_program_name.
26445
26446         * modules/rbtree-list-tests (Depends-on): Add progname.
26447         * tests/test-rbtree_list.c: Include progname.h.
26448         (main): Call set_program_name.
26449
26450         * modules/linked-list-tests (Depends-on): Add progname.
26451         * tests/test-linked_list.c: Include progname.h.
26452         (main): Call set_program_name.
26453
26454 2007-03-03  Bruno Haible  <bruno@clisp.org>
26455
26456         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
26457         All uses of __restrict changed to _Restrict_.
26458         * lib/glob_.h (__restrict): Remove macro.
26459
26460 2007-03-02  Bruno Haible  <bruno@clisp.org>
26461
26462         * modules/gettext (configure.ac): Require gettext infrastructure
26463         from version 0.16.1.
26464
26465 2007-03-02  Bruno Haible  <bruno@clisp.org>
26466
26467         * modules/linkedhash-list-tests (Depends-on): Add progname.
26468         * tests/test-linkedhash_list.c: Include progname.h.
26469         (main): Call set_program_name.
26470
26471         * modules/carray-list-tests (Depends-on): Add progname.
26472         * tests/test-carray_list.c: Include progname.h.
26473         (main): Call set_program_name.
26474
26475         * modules/avltreehash-list-tests (Depends-on): Add progname.
26476         * tests/test-avltreehash_list.c: Include progname.h.
26477         (main): Call set_program_name.
26478
26479         * modules/avltree-oset-tests (Depends-on): Add progname.
26480         * tests/test-avltree_oset.c: Include progname.h.
26481         (main): Call set_program_name.
26482
26483         * modules/avltree-list-tests (Depends-on): Add progname.
26484         * tests/test-avltree_list.c: Include progname.h.
26485         (main): Call set_program_name.
26486
26487         * modules/array-oset-tests (Depends-on): Add progname.
26488         * tests/test-array_oset.c: Include progname.h.
26489         (main): Call set_program_name.
26490
26491         * modules/array-list-tests (Depends-on): Add progname.
26492         * tests/test-array_list.c: Include progname.h.
26493         (main): Call set_program_name.
26494
26495         * modules/argp-tests (Depends-on): Add progname.
26496         * tests/test-argp.c: Include argp.h first. Include progname.h.
26497         (main): Call set_program_name.
26498
26499 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
26500
26501         * doc/gnulib-tool.texi (Initial import): Reword description of
26502         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
26503         limited effect even if defined after the first system include.
26504
26505 2007-03-01  Bruno Haible  <bruno@clisp.org>
26506
26507         * build-aux/config.libpath: Update to libtool-1.5.22.
26508         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26509
26510 2007-03-01  Bruno Haible  <bruno@clisp.org>
26511
26512         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
26513         foo_CFLAGS.
26514         Reported by Ralf Wildenhues.
26515
26516 2007-03-01  Bruno Haible  <bruno@clisp.org>
26517
26518         * build-aux/install-reloc: Remove object files left over by some
26519         compilers.
26520         Reported by Ralf Wildenhues.
26521
26522 2007-03-01  Bruno Haible  <bruno@clisp.org>
26523
26524         * build-aux/install-reloc: Break long lines.
26525
26526 2007-03-01  Bruno Haible  <bruno@clisp.org>
26527
26528         * doc/relocatable.texi: Document that it may not work on OpenBSD.
26529         Reported by Ralf Wildenhues.
26530
26531 2007-03-01  Bruno Haible  <bruno@clisp.org>
26532
26533         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
26534         include ordering constraints.
26535
26536 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
26539         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
26540         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
26541         as another example.
26542         * lib/time_.h: Fix misspelling.
26543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
26544         Require gl_HEADER_TIME_H_DEFAULTS.
26545         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
26546         * m4/time_r.m4 (gl_TIME_R): Likewise.
26547         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
26548
26549 2007-03-01  Bruno Haible  <bruno@clisp.org>
26550
26551         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
26552         * m4/utimens.m4 (gl_UTIMENS): Likewise.
26553
26554 2007-03-01  Jim Meyering  <jim@meyering.net>
26555
26556         * modules/xreadlink (Maintainer): Add my name.
26557         * modules/xreadlink-with-size (Depends-on): Alphabetize.
26558
26559 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
26560             Bruno Haible  <bruno@clisp.org>
26561
26562         * build-aux/install-reloc: Compile also c-ctype.c.
26563         * build-aux/relocatable.sh.in: New file.
26564         * doc/relocatable.texi: New file.
26565         * doc/relocatable-maint.texi: New file.
26566         * doc/gnulib.texi: Include relocatable-maint.texi.
26567         * lib/progreloc.c: Include unistd.h unconditionally.
26568         * lib/relocwrapper.c: Include unistd.h unconditionally.
26569         Include c-ctype.h.
26570         (add_dotbin): Use c_tolower.
26571         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
26572         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
26573         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
26574         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
26575         to m4/relocatable-lib.m4.
26576         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
26577         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
26578         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
26579         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
26580         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
26581         * modules/relocatable: New file.
26582         * modules/relocatable-lib: New file.
26583         * modules/relocatable-script: New file.
26584
26585 2007-02-28  Bruno Haible  <bruno@clisp.org>
26586
26587         Import --enable-relocatable infrastructure.
26588         * build-aux/config.libpath: New file, from GNU gettext.
26589         * build-aux/install-reloc: New file, from GNU gettext.
26590         * build-aux/reloc-ldflags: New file, from GNU gettext.
26591         * lib/relocatable.h: New file, from GNU gettext.
26592         * lib/relocatable.c: New file, from GNU gettext.
26593         * lib/relocwrapper.c: New file, from GNU gettext.
26594         * m4/relocatable.m4: New file, from GNU gettext.
26595
26596 2007-02-28  Bruno Haible  <bruno@clisp.org>
26597
26598         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
26599
26600         * modules/xreadlink: New file, from GNU gettext with modifications.
26601         * lib/xreadlink.c: New file, from GNU gettext.
26602         * lib/xreadlink.h: Add comments.
26603         (xreadlink): New declaration.
26604
26605         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
26606         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
26607         lib/xreadlink-with-size.c.
26608         (configure.ac): Remove gl_XREADLINK invocation.
26609         (Makefile.am): Augment lib_SOURCES.
26610         * m4/xreadlink.m4: Remove file.
26611         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
26612         (xreadlink_with_size): Renamed from xreadink.
26613         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
26614         * modules/canonicalize (Depends-on): Replace xreadlink with
26615         xreadlink-with-size.
26616         * lib/canonicalize.c (canonicalize_filename_mode): Update.
26617
26618 2007-02-25  Jim Meyering  <jim@meyering.net>
26619
26620         * build-aux/announce-gen: When complaining about excess arguments,
26621         list them.
26622
26623 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26624
26625         * README: Document signed integer overflow situation more
26626         accurately.
26627
26628 2007-02-25  Bruno Haible  <bruno@clisp.org>
26629
26630         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
26631         'a' or 'A' conversion.
26632
26633 2007-02-25  Bruno Haible  <bruno@clisp.org>
26634
26635         * modules/filename: Renamed from modules/pathname.
26636         (Files): Replace lib/pathname.h with lib/filename.h. Replace
26637         lib/concatpath.c with lib/concat-filename.c.
26638         (Makefile.am): Update.
26639         (Include): Replace pathname.h with filename.h.
26640         * lib/filename.h: Renamed from lib/pathname.h.
26641         (concatenated_filename): Renamed from concatenated_pathname.
26642         * lib/concat-filename.c: Renamed from lib/concatpath.c.
26643         (concatenated_filename): Renamed from concatenated_pathname.
26644         * lib/findprog.c: Include filename.h instead of pathname.h.
26645         (find_in_path): Update.
26646         * lib/javacomp.c: Include filename.h instead of pathname.h.
26647         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26648         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26649         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26650         is_oldgcj_14_13_usable, is_javac_usable): Update.
26651         * lib/javaexec.c: Include filename.h instead of pathname.h.
26652         (execute_java_class): Update.
26653         * modules/findprog: Update.
26654         * modules/javacomp: Update.
26655         * modules/javaexec: Update.
26656         * MODULES.html.sh (File system functions): Add 'filename', remove
26657         'pathname'.
26658
26659 2007-02-25  Bruno Haible  <bruno@clisp.org>
26660
26661         * modules/printf-frexpl-tests: New file.
26662         * tests/test-printf-frexpl.c: New file.
26663
26664         * modules/printf-frexpl: New file.
26665         * lib/printf-frexpl.h: New file.
26666         * lib/printf-frexpl.c: New file.
26667         * m4/printf-frexpl.m4: New file.
26668
26669 2007-02-25  Bruno Haible  <bruno@clisp.org>
26670
26671         * modules/printf-frexp-tests: New file.
26672         * tests/test-printf-frexp.c: New file.
26673
26674         * modules/printf-frexp: New file.
26675         * lib/printf-frexp.h: New file.
26676         * lib/printf-frexp.c: New file.
26677         * m4/printf-frexp.m4: New file.
26678
26679 2007-02-25  Bruno Haible  <bruno@clisp.org>
26680
26681         Assume automake >= 1.10 for the tests.
26682         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
26683         * modules/arctwo-tests: Likewise.
26684         * modules/argp-tests: Likewise.
26685         * modules/avltree-list-tests: Likewise.
26686         * modules/avltree-oset-tests: Likewise.
26687         * modules/avltreehash-list-tests: Likewise.
26688         * modules/carray-list-tests: Likewise.
26689         * modules/crc-tests: Likewise.
26690         * modules/des-tests: Likewise.
26691         * modules/gc-arcfour-tests: Likewise.
26692         * modules/gc-arctwo-tests: Likewise.
26693         * modules/gc-des-tests: Likewise.
26694         * modules/gc-hmac-md5-tests: Likewise.
26695         * modules/gc-hmac-sha1-tests: Likewise.
26696         * modules/gc-md2-tests: Likewise.
26697         * modules/gc-md4-tests: Likewise.
26698         * modules/gc-md5-tests: Likewise.
26699         * modules/gc-pbkdf2-sha1-tests: Likewise.
26700         * modules/gc-rijndael-tests: Likewise.
26701         * modules/gc-sha1-tests: Likewise.
26702         * modules/gc-tests: Likewise.
26703         * modules/getaddrinfo-tests: Likewise.
26704         * modules/hmac-md5-tests: Likewise.
26705         * modules/hmac-sha1-tests: Likewise.
26706         * modules/linked-list-tests: Likewise.
26707         * modules/linkedhash-list-tests: Likewise.
26708         * modules/lock-tests: Likewise.
26709         * modules/md2-tests: Likewise.
26710         * modules/md4-tests: Likewise.
26711         * modules/md5-tests: Likewise.
26712         * modules/rbtree-list-tests: Likewise.
26713         * modules/rbtree-oset-tests: Likewise.
26714         * modules/rbtreehash-list-tests: Likewise.
26715         * modules/read-file-tests: Likewise.
26716         * modules/rijndael-tests: Likewise.
26717         * modules/stdint-tests: Likewise.
26718         * modules/tls-tests: Likewise.
26719
26720 2007-02-24  Bruno Haible  <bruno@clisp.org>
26721
26722         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
26723         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
26724         function; instead check whether isnan with a double argument links.
26725         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
26726         function; instead check whether isnan with a 'long double' argument
26727         links.
26728         Reported by Eric Blake <ebb9@byu.net>.
26729
26730 2007-02-24  Bruno Haible  <bruno@clisp.org>
26731
26732         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
26733         defined.
26734         * lib/isnanl.c: Remove all code. Just include isnan.c.
26735         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
26736
26737 2007-02-25  Jim Meyering  <jim@meyering.net>
26738
26739         Avoid conflicting types for 'unsetenv' on FreeBSD.
26740         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
26741         conflicting with FreeBSD's (5.0 and 6.1) function declaration
26742         in stdlib.h.
26743
26744 2007-02-24  Bruno Haible  <bruno@clisp.org>
26745
26746         * modules/isnanl-nolibm-tests: New file.
26747         * tests/test-isnanl.c: New file.
26748
26749         * modules/isnanl-nolibm: New file.
26750         * lib/isnanl.h: New file.
26751         * lib/isnanl.c: New file.
26752         * m4/isnanl.m4: New file.
26753
26754 2007-02-24  Bruno Haible  <bruno@clisp.org>
26755
26756         * modules/isnan-nolibm-tests: New file.
26757         * tests/test-isnan.c: New file.
26758
26759         * modules/isnan-nolibm: New file.
26760         * lib/isnan.h: New file.
26761         * lib/isnan.c: New file.
26762         * m4/isnan.m4: New file.
26763
26764 2007-02-24  Bruno Haible  <bruno@clisp.org>
26765
26766         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
26767         assume that an exponent fits in 20 bits.
26768
26769 2007-02-24  Jim Meyering  <jim@meyering.net>
26770
26771         * m4/regex.m4: Update the description of the configure-time option,
26772         --without-included-regex, to state accurately what the defaults are,
26773         and perhaps to give people an idea why using this option is risky.
26774
26775 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26776
26777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
26778         loops on small arguments.  This attempts to avoid the problem
26779         Bruno Haible reported for AIX 4.3.2 in
26780         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
26781
26782 2007-02-23  Bruno Haible  <bruno@clisp.org>
26783
26784         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
26785         Needed for help2man.
26786
26787 2007-02-23  Karl Berry  <karl@gnu.org>
26788
26789         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
26790         exists, foo.h should be cvs-ignored, not committed.
26791
26792 2007-02-23  Eric Blake  <ebb9@byu.net>
26793
26794         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
26795         * lib/stat-time.h (includes): Likewise.
26796         * lib/utimecmp.c (includes): Likewise.
26797         * lib/utimens.h (includes): Likewise.
26798         * lib/getdate.y (includes): Also include "timespec.h" for use
26799         internal to the module.
26800         * modules/utimens (Depends-on): Revert yesterday's patch.
26801         * modules/nanosleep (Depends-on): Add missing dependency.
26802
26803 2007-02-22  Bruno Haible  <bruno@clisp.org>
26804
26805         * lib/glob.c: Don't include getlogin_r.h.
26806
26807 2007-02-22  Jim Meyering  <jim@meyering.net>
26808
26809         * modules/utimens (Depends-on): Add timespec, required for
26810         utimens.h's inclusion of timespec.h.
26811
26812 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26813
26814         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
26815         long unreadable paths in GNU/Linux.  Problem reported by Andreas
26816         Schwab in
26817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
26818         I'll try to think of a better way to fix the Solaris problem.
26819
26820         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
26821         like glibc; on Solaris 10, it fails with errno == EINVAL.
26822         POSIX says the behavior is unspecified if the first argument is NULL,
26823         so play it safe and never pass NULL to the system getcwd.
26824
26825 2007-02-21  Jim Meyering  <jim@meyering.net>
26826
26827         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
26828         of gettimeofday.  It would conflict with the one now always
26829         provided via sys_time_.h.  Reported by Matthew Woehlke, as
26830         an IRIX 6.5 build failure.
26831
26832 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26833
26834         Minor fixups to port to Solaris 10 with Sun C 5.8.
26835         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
26836         * modules/getcwd (Depends-on): Add dirfd.
26837         * lib/putenv.c (putenv): #undef it.
26838         (rpl_putenv): New decl.
26839         (malloc, free): Include <stdlib.h> rather than prototyping separately.
26840
26841 2007-02-20  Bruno Haible  <bruno@clisp.org>
26842
26843         * modules/stdio-tests: New file.
26844         * tests/test-stdio.c: New file.
26845
26846         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
26847         (Depends-on): Add stdio.
26848         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26849         (Include): Use <stdio.h> instead of vsnprintf.h.
26850         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26851         HAVE_DECL_VSNPRINTF.
26852         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
26853
26854         * modules/snprintf (Files): Remove lib/snprintf.h.
26855         (Depends-on): Add stdio.
26856         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26857         (Include): Use <stdio.h> instead of snprintf.h.
26858         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26859         HAVE_DECL_SNPRINTF.
26860         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
26861         * lib/getaddrinfo.c: Likewise.
26862
26863         * modules/stdio: New file.
26864         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
26865         * lib/snprintf.h: Remove file.
26866         * lib/vsnprintf.h: Remove file.
26867         * lib/.cppi-disable: Remove snprintf.h.
26868         * m4/stdio_h.m4: New file.
26869         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
26870
26871 2007-02-20  Jim Meyering  <jim@meyering.net>
26872
26873         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
26874         used by e.g., mingw.  From Bruno Haible.
26875
26876 2007-02-19  Bruno Haible  <bruno@clisp.org>
26877
26878         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
26879         warnings.
26880         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26881
26882 2007-02-19  Bruno Haible  <bruno@clisp.org>
26883
26884         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
26885         from mingw users.
26886
26887 2007-02-19  Bruno Haible  <bruno@clisp.org>
26888
26889         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
26890         warnings.
26891         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
26892
26893 2007-02-19  Jim Meyering  <jim@meyering.net>
26894
26895         Don't use FD after a successful "fdopendir (fd)".
26896         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
26897         Reset it by calling dirfd on the just-obtained DIR*.
26898
26899         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
26900         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
26901
26902 2007-02-18  Bruno Haible  <bruno@clisp.org>
26903
26904         * lib/readlink.c: Include <unistd.h>.
26905         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
26906         HAVE_READLINK.
26907         * modules/readlink (Depends-on): Add unistd.
26908         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26909         (Include): Add <unistd.h>.
26910
26911         * lib/getlogin_r.h: Remove file.
26912         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
26913         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
26914         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
26915         HAVE_DECL_GETLOGIN_R.
26916         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
26917         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26918         (Include): Use <unistd.h> instead of getlogin_r.h.
26919
26920         * lib/getcwd.h: Remove file.
26921         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
26922         * lib/xgetcwd.c: Likewise.
26923         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
26924         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
26925         * modules/getcwd (Files): Remove lib/getcwd.h.
26926         (Depends-on): Add unistd.
26927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26928         (Include): Use <unistd.h> instad of getcwd.h.
26929
26930         * lib/ftruncate.c: Include <unistd.h> first.
26931         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
26932         Set HAVE_FTRUNCATE.
26933         * modules/ftruncate (Depends-on): Add unistd.
26934         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26935
26936         * lib/fchdir.c: Include <unistd.h> first.
26937         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
26938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
26939         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
26940         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26941         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
26942
26943         * lib/dup2.c: Include <unistd.h> first.
26944         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
26945         HAVE_DUP2.
26946         * modules/dup2 (Depends-on): Add unistd.
26947         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26948
26949         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
26950         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
26951         REPLACE_CHOWN. Don't define chown as a macro here.
26952         * modules/chown (Depends-on): Add unistd.
26953         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26954
26955         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
26956         Add definition for GL_LINK_WARNING.
26957         (chown, dup2): New declarations.
26958         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
26959         link warning.
26960         (ftruncate): New declaration.
26961         (getcwd): New declaration, taken from old getcwd.h.
26962         (getlogin_r): New declaration, taken from old getlogin_r.h.
26963         (readlink): New declaration.
26964         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
26965         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
26966         (gl_PREREQ_UNISTD): Remove macro.
26967         (gl_UNISTD_MODULE_INDICATOR): New macro.
26968         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
26969         many new variables. Don't set UNISTD_H.
26970         * modules/unistd (Description): Change.
26971         (Depends-on): Add link-warning.
26972         (configure.ac): Update.
26973         (Makefile.am): Create unistd.h always. Substitute many new variables
26974         into it.
26975
26976 2007-02-18  Bruno Haible  <bruno@clisp.org>
26977
26978         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
26979         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
26980         HAVE_GETSUBOPT.
26981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
26982         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
26983         * lib/getsubopt.h: Remove file.
26984         * modules/getsubopt (Files): Remove lib/getsubopt.h.
26985         (Depends-on): Add stdlib.
26986         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26987         (Includes): Use <stdlib.h> instead of getsubopt.h.
26988         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
26989         Set HAVE_GETSUBOPT.
26990         * lib/getsubopt.c: Don't include getsubopt.h.
26991
26992 2007-02-18  Bruno Haible  <bruno@clisp.org>
26993
26994         * modules/fchdir (Depends-on): Add dup2.
26995
26996 2007-02-18  Bruno Haible  <bruno@clisp.org>
26997
26998         * lib/stdlib_.h: Handle glibc's special invocation convention
26999         specially.
27000
27001 2007-02-18  Bruno Haible  <bruno@clisp.org>
27002
27003         * modules/stdlib-tests: New file.
27004         * tests/test-stdlib.c: New file.
27005
27006         * modules/mkstemp (Files): Remove lib/mkstemp.h.
27007         (Depends-on): Add stdlib.
27008         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27009         (Includes): Use <stdlib.h> instead of mkstemp.h.
27010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27011         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
27012         * lib/mkstemp.c: Don't include mkstemp.h.
27013         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
27014         * lib/stdlib--.h: Don't include mkstemp.h.
27015
27016         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
27017         (Depends-on): Add stdlib.
27018         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27019         (Includes): Use <stdlib.h> instead of mkdtemp.h.
27020         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
27021         HAVE_MKDTEMP.
27022         * lib/mkdtemp.c: Don't include mkdtemp.h.
27023         * lib/clean-temp.c: Don't include mkdtemp.h.
27024
27025         * modules/exit (Files): Remove lib/exit.h.
27026         (Depends-on): Add stdlib.
27027         (Makefile.am): Remove lib_SOURCES.
27028         (Include): Use <stdlib.h> instead of exit.h.
27029         * lib/argmatch.c: Don't include exit.h.
27030         * lib/execute.c: Likewise.
27031         * lib/pagealign_alloc.c: Likewise.
27032         * lib/pipe.c: Likewise.
27033         * lib/wait-process.c: Likewise.
27034         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
27035         * lib/exitfail.c: Likewise.
27036         * lib/savewd.c: Likewise.
27037         * lib/xsetenv.c: Likewise.
27038
27039         * modules/stdlib: New file.
27040         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
27041         and extra comments about mkstemp().
27042         * lib/exit.h: Remove file.
27043         * lib/mkdtemp.h: Remove file.
27044         * lib/mkstemp.h: Remove file.
27045         * m4/stdlib_h.m4: New file.
27046         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
27047
27048 2007-02-18  Bruno Haible  <bruno@clisp.org>
27049
27050         * modules/math-tests: New file.
27051         * tests/test-math.c: New file.
27052
27053         * modules/math: New file.
27054         * modules/mathl (Files): Remove lib/mathl.h.
27055         (Depends-on): Add math.
27056         (Makefile.am): Don't mention mathl.h.
27057         (Include): Use <math.h> instead of mathl.h.
27058         * lib/math_.h: New file.
27059         * lib/mathl.h: Remove file.
27060         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
27061         mathl.h.
27062         * lib/asinl.c: Likewise.
27063         * lib/atanl.c: Likewise.
27064         * lib/ceill.c: Likewise.
27065         * lib/cosl.c: Likewise.
27066         * lib/expl.c: Likewise.
27067         * lib/floorl.c: Likewise.
27068         * lib/frexpl.c: Likewise.
27069         * lib/ldexpl.c: Likewise.
27070         * lib/logl.c: Likewise.
27071         * lib/sincosl.c: Likewise.
27072         * lib/sinl.c: Likewise.
27073         * lib/sqrtl.c: Likewise.
27074         * lib/tanl.c: Likewise.
27075         * lib/trigl.c: Likewise.
27076         * m4/math_h.m4: New file.
27077         * MODULES.html.sh (Mathematics): Add math.
27078
27079 2007-02-17  Bruno Haible  <bruno@clisp.org>
27080
27081         * modules/wctype-tests: New file.
27082         * tests/test-wctype.c: New file.
27083
27084         * modules/wchar-tests: New file.
27085         * tests/test-wchar.c: New file.
27086
27087         * modules/unistd-tests: New file.
27088         * tests/test-unistd.c: New file.
27089
27090         * modules/time-tests: New file.
27091         * tests/test-time.c: New file.
27092
27093         * modules/sysexits-tests: New file.
27094         * tests/test-sysexits.c: New file.
27095
27096         * modules/sys_time-tests: New file.
27097         * tests/test-sys_time.c: New file.
27098
27099         * modules/sys_stat-tests: New file.
27100         * tests/test-sys_stat.c: New file.
27101
27102         * modules/sys_socket-tests: New file.
27103         * tests/test-sys_socket.c: New file.
27104
27105         * modules/sys_select-tests: New file.
27106         * tests/test-sys_select.c: New file.
27107
27108         * modules/string-tests: New file.
27109         * tests/test-string.c: New file.
27110
27111         * modules/stdbool-tests: New file.
27112         * tests/test-stdbool.c: New file.
27113
27114         * modules/netinet_in-tests: New file.
27115         * tests/test-netinet_in.c: New file.
27116
27117         * modules/inttypes-tests: New file.
27118         * tests/test-inttypes.c: New file.
27119
27120         * modules/fcntl-tests: New file.
27121         * tests/test-fcntl.c: New file.
27122
27123         * modules/byteswap-tests: New file.
27124         * tests/test-byteswap.c: New file.
27125
27126         * modules/arpa_inet-tests: New file.
27127         * tests/test-arpa_inet.c: New file.
27128
27129 2007-02-17  Bruno Haible  <bruno@clisp.org>
27130
27131         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
27132         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
27133         if the corresponding module is not enabled. Emit link warnings if
27134         the function is used nevertheless.
27135         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
27136         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
27137         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
27138         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
27139         * modules/inttypes (Depends-on): Add link-warning.
27140         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27141         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
27142         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
27143         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
27144         * modules/imaxdiv (configure.ac): Likewise.
27145         * modules/strtoimax (configure.ac): Likewise.
27146         * modules/strtoumax (configure.ac): Likewise.
27147
27148 2007-02-17  Bruno Haible  <bruno@clisp.org>
27149
27150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
27151         gl_STRING_MODULE_INDICATOR_DEFAULTS.
27152         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
27153         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
27154
27155 2007-02-17  Bruno Haible  <bruno@clisp.org>
27156
27157         * modules/link-warning: New file.
27158         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
27159         * lib/string_.h (GL_LINK_WARNING): Remove definition.
27160         * modules/string (Depends-on): Add link-warning.
27161         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27162         string.h.
27163         * MODULES.html.sh (Support for building libraries and executables): Add
27164         link-warning.
27165
27166 2007-02-17  Bruno Haible  <bruno@clisp.org>
27167
27168         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
27169         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
27170         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
27171         long lines.
27172
27173 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
27174             Bruno Haible  <bruno@clisp.org>
27175
27176         * modules/tmpfile: New file.
27177         * lib/tmpfile.c: New file.
27178         * m4/tmpfile.m4: New file.
27179         * MODULES.html.sh (func_all_modules): New section "Input/output".
27180
27181 2007-02-15  Bruno Haible  <bruno@clisp.org>
27182
27183         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
27184         (supports_delete_on_close): New function.
27185         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
27186
27187 2007-02-14  Bruno Haible  <bruno@clisp.org>
27188
27189         * modules/mbspcasecmp-tests: New file.
27190         * tests/test-mbspcasecmp.sh: New file.
27191         * tests/test-mbspcasecmp.c: New file.
27192
27193         New module mbspcasecmp.
27194         * modules/mbspcasecmp: New file.
27195         * lib/mbspcasecmp.c: New file.
27196         * lib/string_.h (strncasecmp): Change warning message.
27197         (mbspcasecmp): New declaration.
27198         * m4/mbspcasecmp.m4: New file.
27199         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27200         GNULIB_MBSPCASECMP.
27201         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
27202         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
27203
27204 2007-02-14  Bruno Haible  <bruno@clisp.org>
27205
27206         * modules/mbsncasecmp-tests: New file.
27207         * tests/test-mbsncasecmp.sh: New file.
27208         * tests/test-mbsncasecmp.c: New file.
27209
27210         New module mbsncasecmp.
27211         * modules/mbsncasecmp: New file.
27212         * lib/mbsncasecmp.c: New file.
27213         * lib/string_.h (mbsncasecmp): New declaration.
27214         * m4/mbsncasecmp.m4: New file.
27215         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27216         GNULIB_MBSNCASECMP.
27217         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
27218         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
27219
27220 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27221
27222         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
27223         Verify that it doesn't overlap with our flags.
27224         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
27225         do not have the desired effect in multibyte locales; instead, use
27226         mbscasecmp.
27227         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
27228         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
27229         we don't require GNU fnmatch ourselves (if our users require it, they
27230         should do so explicitly).
27231
27232         Fix regex code so it doesn't rely on strcasecmp.
27233         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
27234         Otherwise, include gnulib's langinfo.h.
27235         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
27236         undesirable behavior in non-C locales.  Instead, rely on localecharset.
27237         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
27238         * modules/regex (FILES): Remove m4/codeset.m4.
27239         (Depends-on): Add localcharset.  Remove strcase.
27240
27241 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27242
27243         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
27244         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27245
27246 2007-02-13  Bruno Haible  <bruno@clisp.org>
27247
27248         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
27249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27250
27251 2007-02-12  Bruno Haible  <bruno@clisp.org>
27252
27253         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27254         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
27255         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
27256         time warning rather than a link error.
27257
27258 2007-02-12  Bruno Haible  <bruno@clisp.org>
27259
27260         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
27261         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27263
27264 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27265
27266         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
27267         args, not 2.
27268
27269 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27270
27271         New module 'time', so that apps can include <time.h> as per
27272         POSIX and GNU instead of separate include files like time_r.h
27273         and timegm.h.  This implementation tries out a simpler approach
27274         for replacing decls in standard include files (as compared to
27275         the string module), somewhat as an experiment.
27276
27277         * config/srclist.txt: Comment out mktime.c for now.
27278         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
27279         since it doesn't apply any more.  Use generic wording instead.
27280         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
27281         'time'.
27282         * lib/time_.h, m4/time_h.m4, modules/time: New files.
27283         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
27284         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
27285         Don't include <sys/types.h>; no longer needed since we assume C89.
27286         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
27287         * lib/strftime.c: Likewise.
27288         * lib/time_r.c: Likewise.
27289         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
27290         * lib/nanosleep.c: Include <time.h> first, to check interface.
27291         * lib/strptime.c: Likewise.
27292         * lib/time_r.c: Likewise.
27293         * lib/timegm.c: Likewise.
27294         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
27295         needed.
27296         * lib/timegm.c: Don't include timegm.h; no longer needed.
27297         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
27298         time.h now handles any problems in that area.
27299         (struct timespec, nanosleep): Remove; time.h now arranges for these.
27300         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
27301         that time.h defines struct timespec.
27302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
27303         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
27304         handles that.
27305         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
27306         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
27307         needed.  Set REPLACE_LOCALTIME.
27308         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
27309         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
27310         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
27311         nanosleep; time_h.m4 now does that.  Don't require
27312         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
27313         module handles this now.
27314         * modules/getdate (Depends-on): Remove timespec.  Add time.
27315         * modules/nanosleep (Depends-on): Likewise.
27316         * modules/stat-time (Depends-on): Likewise.
27317         * modules/nanosleep (Include): Include time.h, not timespec.h.
27318         * modules/strptime (Files): Remove lib/strptime.h.
27319         (Depends-on): Add extensions, time.
27320         (Include): Include time.h, not strptime.h.
27321         * modules/time_r (Files): Remove lib/time_r.h.
27322         (Depends-on): Add time.
27323         (Include): Include time.h, not time_r.h.
27324         * modules/timegm: Likewise.
27325         * modules/timespec (Description): Now does timespec-related decls
27326         of our own, instead of struct timespec itself.
27327         (Depends-on): Add time; remove extensions.
27328         (Maintainer): Add self.
27329         * modules/utimecmp (Depends-on): Add time; remove timespec.
27330         * modules/utimens (Depends-on): Likewise.
27331         * modules/xnanosleep (Depends-on): Likewise.
27332
27333 2007-02-11  Bruno Haible  <bruno@clisp.org>
27334
27335         * lib/c-strstr.c: Include allocsa.h.
27336         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27337         * lib/c-strcasestr.c: Include allocsa.h.
27338         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27339         * lib/strcasestr.c: Include allocsa.h.
27340         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27341         * lib/mbsstr.c: Include allocsa.h.
27342         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27343         allocsa/freesa instead of malloc/free.
27344         * lib/mbscasestr.c: Include allocsa.h.
27345         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27346         allocsa/freesa instead of malloc/free.
27347         * modules/c-strstr (Depends-on): Add allocsa.
27348         * modules/c-strcasestr (Depends-on): Likewise.
27349         * modules/strcasestr (Depends-on): Likewise.
27350         * modules/mbsstr (Depends-on): Likewise.
27351         * modules/mbscasestr (Depends-on): Likewise.
27352
27353 2007-02-11  Bruno Haible  <bruno@clisp.org>
27354
27355         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
27356
27357         * modules/mbsspn-tests: New file.
27358         * tests/test-mbsspn.sh: New file.
27359         * tests/test-mbsspn.c: New file.
27360
27361 2007-02-11  Bruno Haible  <bruno@clisp.org>
27362
27363         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
27364
27365         * modules/mbspbrk-tests: New file.
27366         * tests/test-mbspbrk.sh: New file.
27367         * tests/test-mbspbrk.c: New file.
27368
27369 2007-02-11  Bruno Haible  <bruno@clisp.org>
27370
27371         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
27372         unneeded cast.
27373
27374         * modules/mbscspn-tests: New file.
27375         * tests/test-mbscspn.sh: New file.
27376         * tests/test-mbscspn.c: New file.
27377
27378 2007-02-11  Bruno Haible  <bruno@clisp.org>
27379
27380         * modules/mbscasecmp-tests: New file.
27381         * tests/test-mbscasecmp.sh: New file.
27382         * tests/test-mbscasecmp.c: New file.
27383
27384 2007-02-11  Bruno Haible  <bruno@clisp.org>
27385
27386         Ensure O(n) worst-case complexity of mbscasestr.
27387         * lib/mbscasestr.c: Include stdbool.h.
27388         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27389         functions.
27390         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
27391         the bookkeeping indicates that it's worth it.
27392         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
27393
27394         * modules/mbscasestr-tests: New file.
27395         * tests/test-mbscasestr1.c: New file.
27396         * tests/test-mbscasestr2.sh: New file.
27397         * tests/test-mbscasestr2.c: New file.
27398         * tests/test-mbscasestr3.sh: New file.
27399         * tests/test-mbscasestr3.c: New file.
27400         * tests/test-mbscasestr4.sh: New file.
27401         * tests/test-mbscasestr4.c: New file.
27402         * m4/locale-tr.m4: New file.
27403
27404 2007-02-11  Bruno Haible  <bruno@clisp.org>
27405
27406         Ensure O(n) worst-case complexity of mbsstr.
27407         * lib/mbsstr.c: Include stdbool.h.
27408         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27409         functions.
27410         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
27411         bookkeeping indicates that it's worth it.
27412         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
27413
27414         * modules/mbsstr-tests: New file.
27415         * tests/test-mbsstr1.c: New file.
27416         * tests/test-mbsstr2.sh: New file.
27417         * tests/test-mbsstr2.c: New file.
27418         * tests/test-mbsstr3.sh: New file.
27419         * tests/test-mbsstr3.c: New file.
27420         * m4/locale-fr.m4: New file.
27421
27422 2007-02-11  Bruno Haible  <bruno@clisp.org>
27423
27424         * lib/mbsrchr.c (mbsrchr): Fix bug.
27425
27426         * modules/mbsrchr-tests: New file.
27427         * tests/test-mbsrchr.sh: New file.
27428         * tests/test-mbsrchr.c: New file.
27429
27430 2007-02-11  Bruno Haible  <bruno@clisp.org>
27431
27432         * lib/mbschr.c (mbschr): Fix bug.
27433
27434         * modules/mbschr-tests: New file.
27435         * tests/test-mbschr.sh: New file.
27436         * tests/test-mbschr.c: New file.
27437         * m4/locale-zh.m4: New file.
27438
27439 2007-02-11  Bruno Haible  <bruno@clisp.org>
27440
27441         Support for copying multibyte string iterators.
27442         * lib/mbiter.h: Include <string.h>.
27443         (mbiter_multi_copy): New function.
27444         (mbi_copy): New macro.
27445         * lib/mbuiter.h: Include <string.h>.
27446         (mbuiter_multi_copy): New function.
27447         (mbui_copy): New macro.
27448
27449 2007-02-11  Bruno Haible  <bruno@clisp.org>
27450
27451         New module mbslen.
27452         * modules/mbslen: New file.
27453         * lib/mbslen.c: New file.
27454         * lib/string_.h (mbslen): New declaration.
27455         * m4/mbslen.m4: New file.
27456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27457         GNULIB_MBSLEN.
27458         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
27459         * MODULES.html.sh (Internationalization functions): Add mbslen.
27460
27461 2007-02-11  Bruno Haible  <bruno@clisp.org>
27462
27463         Ensure O(n) worst-case complexity of strcasestr substitute.
27464         * lib/strcasestr.c: Include stdbool.h.
27465         (knuth_morris_pratt): New function.
27466         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
27467         bookkeeping indicates that it's worth it.
27468         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
27469
27470         * modules/strcasestr-tests: New file.
27471         * tests/test-strcasestr.c: New file.
27472
27473 2007-02-11  Bruno Haible  <bruno@clisp.org>
27474
27475         Ensure O(n) worst-case complexity of c_strcasestr.
27476         * lib/c-strcasestr.c: Include stdbool.h, string.h.
27477         (knuth_morris_pratt): New function.
27478         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
27479         the bookkeeping indicates that it's worth it.
27480         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
27481
27482         * modules/c-strcasestr-tests: New file.
27483         * tests/test-c-strcasestr.c: New file.
27484
27485 2007-02-11  Bruno Haible  <bruno@clisp.org>
27486
27487         Ensure O(n) worst-case complexity of c_strstr.
27488         * lib/c-strstr.c: Include stdbool.h, string.h.
27489         (knuth_morris_pratt): New function.
27490         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
27491         bookkeeping indicates that it's worth it.
27492         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
27493
27494         * lib/c-strstr.c: Complete rewrite for maintainability.
27495
27496         * modules/c-strstr-tests: New file.
27497         * tests/test-c-strstr.c: New file.
27498
27499 2007-02-11  Bruno Haible  <bruno@clisp.org>
27500
27501         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
27502         5.2.1 and earlier, whereby \055 was treated just like the range
27503         delimiter '-'.
27504         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27505
27506 2007-02-08  Bruno Haible  <bruno@clisp.org>
27507
27508         * modules/regex (Depends-on): Add stdbool.
27509         Reported by Dalibor Topic <robilad@kaffe.org>.
27510
27511 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27512
27513         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
27514         Prefer returning from main to exiting from it.
27515         Remove unnecessary parens after sizeof.
27516
27517 2007-02-05  Bruno Haible  <bruno@clisp.org>
27518
27519         New module mbssep.
27520         * modules/mbssep: New file.
27521         * lib/mbssep.c: New file.
27522         * lib/string_.h (strsep): Add a conditional link warning.
27523         (mbssep): New declaration.
27524         * m4/mbssep.m4: New file.
27525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27526         GNULIB_MBSSEP.
27527         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
27528         * MODULES.html.sh (Internationalization functions): Add mbssep.
27529
27530 2007-02-05  Bruno Haible  <bruno@clisp.org>
27531
27532         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
27533         Optimize search in case of 1 delimiter.
27534
27535 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27536
27537         * lib/acl.h: Include sys/types.h before sys/acl.h.
27538
27539 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27540
27541         Merge upstream fix for glibc bugzilla #3957:
27542
27543         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
27544
27545         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
27546         bit for RE_HAT_LISTS_NOT_NEWLINE.
27547         (build_charclass_op): Remove bogus comment.
27548
27549 2007-02-05  Simon Josefsson  <simon@josefsson.org>
27550
27551         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
27552
27553 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27554
27555         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
27556         * lib/memmem.c [!defined _LIBC]: Include config.h.
27557
27558 2007-02-04  Bruno Haible  <bruno@clisp.org>
27559
27560         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
27561         warning message.
27562
27563 2007-02-04  Bruno Haible  <bruno@clisp.org>
27564
27565         New module mbstok_r.
27566         * modules/mbstok_r: New file.
27567         * lib/mbstok_r.c: New file.
27568         * lib/string_.h (strtok_r): Change argument names to match the
27569         comments. Add a conditional link warning.
27570         (mbstok_r): New declaration.
27571         * m4/mbstok_r.m4: New file.
27572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27573         GNULIB_MBSTOK_R.
27574         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
27575         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
27576
27577 2007-02-04  Bruno Haible  <bruno@clisp.org>
27578
27579         New module mbsspn.
27580         * modules/mbsspn: New file.
27581         * lib/mbsspn.c: New file.
27582         * lib/string_.h (strspn): Add a conditional link warning.
27583         (mbsspn): New declaration.
27584         * m4/mbsspn.m4: New file.
27585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27586         GNULIB_MBSSPN.
27587         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
27588         * MODULES.html.sh (Internationalization functions): Add mbsspn.
27589
27590 2007-02-04  Bruno Haible  <bruno@clisp.org>
27591
27592         New module mbspbrk.
27593         * modules/mbspbrk: New file.
27594         * lib/mbspbrk.c: New file.
27595         * lib/string_.h (strpbrk): Add a conditional link warning.
27596         (mbspbrk): New declaration.
27597         * m4/mbspbrk.m4: New file.
27598         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27599         GNULIB_MBSPBRK.
27600         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
27601         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
27602
27603 2007-02-04  Bruno Haible  <bruno@clisp.org>
27604
27605         New module mbscspn.
27606         * modules/mbscspn: New file.
27607         * lib/mbscspn.c: New file.
27608         * lib/string_.h (strcspn): Add a conditional link warning.
27609         (mbscspn): New declaration.
27610         * m4/mbscspn.m4: New file.
27611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27612         GNULIB_MBSCSPN.
27613         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
27614         * MODULES.html.sh (Internationalization functions): Add mbscspn.
27615
27616 2007-02-04  Bruno Haible  <bruno@clisp.org>
27617
27618         New module mbscasestr, reduced goal of strcasestr.
27619         * modules/mbscasestr: New file.
27620         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
27621         (mbscasestr): Renamed from strcasestr.
27622         * lib/strcasestr.c: Don't include mbuiter.h.
27623         (strcasestr): Remove support for multibyte locales.
27624         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
27625         Change the conditional link warning.
27626         (mbscasestr): New declaration.
27627         * m4/mbscasestr.m4: New file.
27628         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
27629         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
27630         REPLACE_STRCASESTR.
27631         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
27632         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27633         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27634         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
27635         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
27636         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27637         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
27638         (Depends-on): Remove mbuiter.
27639         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
27640
27641 2007-02-04  Bruno Haible  <bruno@clisp.org>
27642
27643         Simplify handling of strncasecmp.
27644         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
27645         the conditional link warning.
27646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27647         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
27648         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
27649         * modules/strcase (configure.ac): Don't invoke
27650         gl_STRING_MODULE_INDICATOR.
27651         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
27652
27653 2007-02-04  Bruno Haible  <bruno@clisp.org>
27654
27655         New module mbscasecmp, reduced goal of strcasecmp.
27656         * modules/mbscasecmp: New file.
27657         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
27658         (mbscasecmp): Renamed from strcasecmp.
27659         * lib/strcasecmp.c: Don't include mbuiter.h.
27660         (strcasecmp): Remove support for multibyte locales.
27661         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
27662         Change the conditional link warning.
27663         (mbscasecmp): New declaration.
27664         * m4/mbscasecmp.m4: New file.
27665         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
27666         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
27667         REPLACE_STRCASECMP.
27668         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
27669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27670         GNULIB_MBSCASECMP.
27671         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
27672         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
27673         * modules/strcase (Files): Remove m4/mbrtowc.m4.
27674         (Depends-on): Remove mbuiter.
27675         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
27676
27677 2007-02-04  Bruno Haible  <bruno@clisp.org>
27678
27679         New module mbsstr. Remove module strstr.
27680         * modules/mbsstr: New file.
27681         * modules/strstr: Remove file.
27682         * lib/mbsstr.c: Renamed from lib/strstr.c.
27683         (mbsstr): Renamed from strstr.
27684         * lib/string_.h (strstr): Remove declaration. Change the conditional
27685         link warning.
27686         (mbsstr): New declaration.
27687         * m4/mbsstr.m4: New file.
27688         * m4/strstr.m4: Remove file.
27689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27690         REPLACE_STRSTR.
27691         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
27692         Don't initialize GNULIB_STRSTR.
27693         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
27694         substitute GNULIB_STRSTR and REPLACE_STRSTR.
27695         * MODULES.html.sh (Internationalization functions): Add mbsstr.
27696         (Support for systems lacking ANSI C 89): Remove strstr.
27697
27698 2007-02-04  Bruno Haible  <bruno@clisp.org>
27699
27700         New module mbsrchr.
27701         * modules/mbsrchr: New file.
27702         * lib/mbsrchr.c: New file.
27703         * lib/string_.h (strrchr): Add a conditional link warning.
27704         (mbsrchr): New declaration.
27705         * m4/mbsrchr.m4: New file.
27706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27707         GNULIB_MBSRCHR.
27708         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
27709         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
27710
27711 2007-02-04  Bruno Haible  <bruno@clisp.org>
27712
27713         New module mbschr.
27714         * modules/mbschr: New file.
27715         * lib/mbschr.c: New file.
27716         * lib/string_.h (strchr): Add a conditional link warning.
27717         (mbschr): New declaration.
27718         * m4/mbschr.m4: New file.
27719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27720         GNULIB_MBSCHR.
27721         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
27722         * MODULES.html.sh (Internationalization functions): Add mbschr.
27723
27724 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27725
27726         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
27727
27728         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
27729
27730 2007-02-04  Bruno Haible  <bruno@clisp.org>
27731
27732         New module description section 'configure.ac-early'.
27733         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
27734         (func_get_autoconf_early_snippet): New function.
27735         (func_import, func_create_testdir): Use it. Remove special cases for
27736         modules 'extensions' and 'lock'.
27737         * modules/extensions (configure.ac-early): Require
27738         gl_USE_SYSTEM_EXTENSIONS.
27739         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
27740
27741 2007-02-04  Bruno Haible  <bruno@clisp.org>
27742
27743         Make use of gcj-4.3's -fsource and -ftarget option.
27744         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
27745         and if so try the options -fsource and -ftarget.
27746         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
27747         source_version, ftarget_option, target_version arguments.
27748         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
27749         (is_envjavac_oldgcj_14_14_usable): Renamed from
27750         is_envjavac_gcj_14_14_usable.
27751         (is_envjavac_oldgcj_14_13_usable): Renamed from
27752         is_envjavac_gcj_14_13_usable.
27753         (is_gcj_present): Update.
27754         (is_gcj_43, is_gcj43_usable): New functions.
27755         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
27756         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
27757         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
27758         try the options -fsource and -ftarget.
27759
27760 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27761
27762         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
27763         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
27764         larger value.
27765
27766 2007-02-03  Jim Meyering  <jim@meyering.net>
27767
27768         Give tools a better chance to allocate space for very large buffers.
27769         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
27770
27771         Make pwd and readlink work also when run with an unreadable parent dir
27772         on systems with openat support.
27773         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
27774         provided getcwd function, even when we have openat support.
27775         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
27776
27777 2007-02-02  Bruno Haible  <bruno@clisp.org>
27778
27779         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27780         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
27781         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
27782         portability problems if one of these functions is only used on specific
27783         platforms.
27784         Reported by Paul Eggert.
27785
27786 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27787
27788         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
27789         is causing more trouble than it's curing.
27790         * lib/regex_internal.h (__mempcpy): Remove.
27791         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
27792         (and make the code a tad smaller to boot).
27793         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
27794
27795 2007-02-02  Jim Meyering  <jim@meyering.net>
27796
27797         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
27798         section, not in the Makefile.am: one.
27799
27800 2007-02-02  Eric Blake  <ebb9@byu.net>
27801
27802         * lib/strchrnul.c: Always include config.h first.
27803
27804         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
27805         gnulib strstr is not necessary here.
27806
27807 2007-02-02  Simon Josefsson  <simon@josefsson.org>
27808
27809         * m4/socklen.m4: Fix typo.
27810
27811 2007-02-02  Eric Blake  <ebb9@byu.net>
27812
27813         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
27814         * modules/netinet_in (Makefile.am): Likewise.
27815
27816 2007-02-01  Bruno Haible  <bruno@clisp.org>
27817
27818         * lib/string_.h (GL_LINK_WARNING): New macro.
27819         (strcasecmp, strstr, strcasestr): If provided by the system,
27820         conditionally define as a macro that leads to a warning instead of to
27821         an error.
27822         (strncasecmp): Conditionally define as a macro that leads to a warning.
27823
27824 2007-02-01  Karl Berry  <karl@gnu.org>
27825
27826         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
27827
27828 2007-02-01  Bruno Haible  <bruno@clisp.org>
27829
27830         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
27831         renamings.
27832
27833 2007-02-01  Eric Blake  <ebb9@byu.net>
27834
27835         * modules/regex (Depends-on): Revert dependence on mempcpy.
27836         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
27837         module's definition of mempcpy.
27838         Reported by Paul Eggert.
27839
27840 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27841
27842         * lib/string_.h: If the gnulib module XYZ is not present, undefine
27843         the symbol XYZ before redefining it.  This fixes a problem with
27844         programs that don't use XYZ, when compiled on systems that define
27845         XYZ to something else.
27846
27847 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27848
27849         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
27850         occurs when "mkdir -m foo" creates a setgid directory that is (1)
27851         writeable to group or other and (2) is intended to have a special
27852         mode bit that is set or cleared.  In such a case, the directory
27853         should be neither group- nor other-writeable until the special
27854         mode bits are right.
27855
27856 2007-01-31  Eric Blake  <ebb9@byu.net>
27857
27858         * modules/mountlist (Depends-on): Add strstr.
27859
27860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
27861         bug.
27862         * modules/string (Makefile.am): Remove redundant replacement.
27863         * modules/regex (Depends-on): Add mempcpy.
27864
27865 2007-01-31  Bruno Haible  <bruno@clisp.org>
27866
27867         New module description field 'Link'.
27868         * gnulib-tool (func_usage): Document --extract-link-directive.
27869         (sed_extract_prog): Recognize 'Link' directive.
27870         (func_get_link_directive): New function.
27871         (func_import): Show summary of link directives.
27872         Handle --extract-link-directive option.
27873         * modules/acl (Link): New section.
27874         * modules/clock-time (Link): New section.
27875         * modules/euidaccess (Link): New section.
27876         * modules/gettext (Link): New section.
27877         * modules/iconv (Link): New section.
27878         * modules/lock (Link): New section.
27879         * modules/nanosleep (Link): New section.
27880         * modules/readline (Link): New section.
27881
27882 2007-01-27  Bruno Haible  <bruno@clisp.org>
27883
27884         Enforce the use of gnulib modules for unportable <string.h> functions.
27885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
27886         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
27887         (gl_HEADER_STRING_H_BODY): Require it.
27888         * lib/string_.h: If the gnulib module XYZ is not present, redefine
27889         the symbol XYZ to one that gives a link error.
27890         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
27891         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
27892         * modules/mempcpy (configure.ac): Likewise.
27893         * modules/memrchr (configure.ac): Likewise.
27894         * modules/stpcpy (configure.ac): Likewise.
27895         * modules/stpncpy (configure.ac): Likewise.
27896         * modules/strcase (configure.ac): Likewise.
27897         * modules/strcasestr (configure.ac): Likewise.
27898         * modules/strchrnul (configure.ac): Likewise.
27899         * modules/strdup (configure.ac): Likewise.
27900         * modules/strndup (configure.ac): Likewise.
27901         * modules/strnlen (configure.ac): Likewise.
27902         * modules/strpbrk (configure.ac): Likewise.
27903         * modules/strsep (configure.ac): Likewise.
27904         * modules/strstr (configure.ac): Likewise.
27905         * modules/strtok_r (configure.ac): Likewise.
27906
27907 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
27908
27909         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
27910
27911 2007-01-30  Jim Meyering  <jim@meyering.net>
27912
27913         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
27914
27915 2007-01-29  Bruno Haible  <bruno@clisp.org>
27916
27917         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
27918         * lib/execute.c: Likewise.
27919         * lib/pipe.c: Likewise.
27920         * lib/printf-args.h: Likewise.
27921         * lib/printf-args.c: Likewise.
27922         * lib/printf-parse.c: Likewise.
27923         * lib/vasnprintf.c: Likewise.
27924
27925 2007-01-29  Eric Blake  <ebb9@byu.net>
27926
27927         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
27928         declaration.
27929
27930 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27931
27932         * lib/strptime.h (strptime): Use 'restrict' for args where
27933         POSIX requires this.
27934         * lib/strptime.c (strptime): Likewise.
27935         Change license notice from LGPL to GPL, since gnulib-tool will
27936         change this as needed.
27937         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
27938         defined.
27939         Include "strptime.h" first, to check interface.
27940         Do not #undef _LIBC and _NL_CURRENT.
27941         Do not include <stdlib.h>; no longer needed.
27942         Include "time_r.h" and declare ptime_locale_status
27943         only if _LIBC is not defined.
27944         (__P): Remove unused macro.
27945         (match_string): Bring back glibc version, but use it only if _LIBC
27946         is defined.
27947         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
27948         Remove unnecessary assertion and abort() call.
27949         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
27950         * m4/strptime.m4: Fix serial number comment.
27951         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
27952         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
27953         (Depends-on): Add time_r.
27954
27955 2007-01-29  Bruno Haible  <bruno@clisp.org>
27956
27957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27958         strptime.
27959         * modules/strptime (Depends-on): Add stdbool.
27960         * lib/strptime.h: Include <time.h> always. Add comments.
27961
27962 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27963
27964         * modules/strptime: New file.
27965         * lib/strptime.h: New file.
27966         * lib/strptime.c: New file.
27967         * m4/strptime.m4: New file.
27968
27969 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27970
27971         * MODULES.html.sh: New module mpsort.
27972         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
27973
27974         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
27975         a circularity problem with HP-UX ia64 reported by Bob Proulx in
27976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
27977         All uses changed.
27978         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
27979         All uses changed.
27980         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
27981         to _Restrict_.
27982         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
27983         the parameter matches the prototype.
27984
27985 2007-01-28  Jim Meyering  <jim@meyering.net>
27986
27987         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
27988         sys/time.h here, reverting that part of the previous patch:
27989         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
27990
27991 2007-01-28  Bruno Haible  <bruno@clisp.org>
27992
27993         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
27994         value of $(SYS_TIME_H).
27995         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
27996         remove it conditionally, too. [added by Jim Meyering]
27997         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
27998         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27999         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
28000         GETTIMEOFDAY_REPLACEMENT to 1.
28001
28002 2007-01-28  Bruno Haible  <bruno@clisp.org>
28003
28004         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
28005         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
28006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
28007         Set UNISTD_H instead of UNISTD_H2.
28008         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
28009
28010 2007-01-28  Bruno Haible  <bruno@clisp.org>
28011
28012         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
28013         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
28014
28015 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28016
28017         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
28018         (func_create_testdir): Ensure C locale for `grep' and `tr'
28019         character ranges.
28020         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
28021         ACLOCAL_AMFLAGS parsing state machine.
28022
28023 2007-01-27  Bruno Haible  <bruno@clisp.org>
28024
28025         * modules/unistr/base: Update.
28026
28027 2007-01-27  Bruno Haible  <bruno@clisp.org>
28028
28029         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
28030         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
28031         * modules/unistr/u32-mbtouc-unsafe: Renamed from
28032         modules/unistr/u32-mbtouc.
28033         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
28034         * lib/unistr.h: Update.
28035         * lib/linebreak.c: Update.
28036         * modules/unistr/u32-mbtouc: Renamed from
28037         modules/unistr/u32-mbtouc-safe.
28038         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
28039         * lib/unistr.h: Update.
28040         * lib/unistr/u32-to-u8.c: Update.
28041         * lib/unistr/u32-to-u16.c: Update.
28042
28043 2007-01-27  Bruno Haible  <bruno@clisp.org>
28044
28045         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
28046         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
28047         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
28048         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
28049         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
28050         * modules/unistr/u16-mbtouc-unsafe: Renamed from
28051         modules/unistr/u16-mbtouc.
28052         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
28053         * lib/unistr.h: Update.
28054         * lib/linebreak.c: Update.
28055         * modules/linebreak: Update.
28056         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
28057         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
28058         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
28059         * modules/unistr/u16-mbtouc: Renamed from
28060         modules/unistr/u16-mbtouc-safe.
28061         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
28062         * lib/unistr.h: Update.
28063         * lib/unistr/u16-to-u8.c: Update.
28064         * modules/unistr/u16-to-u8: Update.
28065         * lib/unistr/u16-to-u32.c: Update.
28066         * modules/unistr/u16-to-u32: Update.
28067
28068 2007-01-27  Bruno Haible  <bruno@clisp.org>
28069
28070         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
28071         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
28072         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
28073         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
28074         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
28075         * modules/unistr/u8-mbtouc-unsafe: Renamed from
28076         modules/unistr/u8-mbtouc.
28077         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
28078         * lib/unistr.h: Update.
28079         * lib/striconveh.c: Update.
28080         * modules/striconveh: Update.
28081         * lib/linebreak.c: Update.
28082         * modules/linebreak: Update.
28083         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
28084         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
28085         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
28086         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
28087         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
28088         * lib/unistr.h: Update.
28089         * lib/striconveh.c: Update.
28090         * modules/striconveh: Update.
28091         * lib/unistr/u8-to-u16.c: Update.
28092         * modules/unistr/u8-to-u16: Update.
28093         * lib/unistr/u8-to-u32.c: Update.
28094         * modules/unistr/u8-to-u32: Update.
28095
28096 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28097
28098         Sync from Libtool.
28099         * lib/argz.c: Do not include strings.h nor memory.h, include
28100         string.h unconditionally.  Patch by Simon Josefsson.
28101
28102 2007-01-27  Bruno Haible  <bruno@clisp.org>
28103
28104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
28105         from gl_HEADER_STRING_H_BODY.
28106         (gl_HEADER_STRING_H_BODY): Require it.
28107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
28108         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28109         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28110         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28111         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28112         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
28113         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28114         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28115         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
28116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28118         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
28119         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28120         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28122
28123 2007-01-27  Bruno Haible  <bruno@clisp.org>
28124
28125         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
28126         check_PROGRAMS into noinst_PROGRAMS.
28127         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
28128         check_PROGRAMS in this case.
28129         (func_import): Set for_test to false.
28130         (func_create_testdir): Set for_test to true.
28131
28132 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28133             Bruno Haible  <bruno@clisp.org>
28134
28135         * modules/strcasestr (Files): Remove lib/strcasestr.h.
28136         (Depends-on): Add string.
28137         (Includes): Use <string.h> instead of strcasestr.h.
28138         * modules/string (Makefile.am): Also substitute the value of
28139         REPLACE_STRCASESTR.
28140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
28141         assume strcasestr is declared in <string.h> not <strings.h>. Also
28142         set REPLACE_STRCASESTR.
28143         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
28144         REPLACE_STRCASESTR.
28145         * lib/strcasestr.h: Remove file.
28146         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
28147         * lib/string_.h (strcasestr): New declaration.
28148
28149 2007-01-27  Bruno Haible  <bruno@clisp.org>
28150
28151         * lib/string_.h: Use 'extern'.
28152
28153 2007-01-27  Jim Meyering  <jim@meyering.net>
28154
28155         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
28156         of set-but-not-used local, "q".
28157
28158         * lib/mempcpy.c: Include <config.h> before <string.h>.
28159         This fixes a compilation error on HP-UX, due to the system's
28160         "restrict"-using mempcpy prototype.
28161
28162 2007-01-26  Bruno Haible  <bruno@clisp.org>
28163
28164         Small optimization.
28165         * lib/javacomp.c: Include c-strstr.h.
28166          (is_envjavac_gcj): Use c_strstr instead of strstr.
28167         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
28168
28169 2007-01-26  Bruno Haible  <bruno@clisp.org>
28170
28171         * MODULES.html.sh (Unicode string functions): Add the new modules.
28172
28173         * modules/uniconv/u32-strconv-to-locale: New file.
28174         * lib/uniconv/u32-strconv-to-locale.c: New file.
28175
28176         * modules/uniconv/u16-strconv-to-locale: New file.
28177         * lib/uniconv/u16-strconv-to-locale.c: New file.
28178
28179         * modules/uniconv/u8-strconv-to-locale: New file.
28180         * lib/uniconv/u8-strconv-to-locale.c: New file.
28181
28182         * modules/uniconv/u32-strconv-from-locale: New file.
28183         * lib/uniconv/u32-strconv-from-locale.c: New file.
28184
28185         * modules/uniconv/u16-strconv-from-locale: New file.
28186         * lib/uniconv/u16-strconv-from-locale.c: New file.
28187
28188         * modules/uniconv/u8-strconv-from-locale: New file.
28189         * lib/uniconv/u8-strconv-from-locale.c: New file.
28190
28191         * modules/uniconv/u32-strconv-to-enc: New file.
28192         * lib/uniconv/u32-strconv-to-enc.c: New file.
28193         * modules/uniconv/u32-strconv-to-enc-tests: New file.
28194         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
28195
28196         * modules/uniconv/u16-strconv-to-enc: New file.
28197         * lib/uniconv/u16-strconv-to-enc.c: New file.
28198         * lib/uniconv/u-strconv-to-enc.h: New file.
28199         * modules/uniconv/u16-strconv-to-enc-tests: New file.
28200         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
28201
28202         * modules/uniconv/u8-strconv-to-enc: New file.
28203         * lib/uniconv/u8-strconv-to-enc.c: New file.
28204         * modules/uniconv/u8-strconv-to-enc-tests: New file.
28205         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
28206
28207         * modules/uniconv/u32-strconv-from-enc: New file.
28208         * lib/uniconv/u32-strconv-from-enc.c: New file.
28209         * modules/uniconv/u32-strconv-from-enc-tests: New file.
28210         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
28211
28212         * modules/uniconv/u16-strconv-from-enc: New file.
28213         * lib/uniconv/u16-strconv-from-enc.c: New file.
28214         * modules/uniconv/u16-strconv-from-enc-tests: New file.
28215         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
28216
28217         * modules/uniconv/u8-strconv-from-enc: New file.
28218         * lib/uniconv/u8-strconv-from-enc.c: New file.
28219         * lib/uniconv/u-strconv-from-enc.h: New file.
28220         * modules/uniconv/u8-strconv-from-enc-tests: New file.
28221         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
28222
28223         * modules/uniconv/u32-conv-from-enc: New file.
28224         * lib/uniconv/u32-conv-from-enc.c: New file.
28225         * modules/uniconv/u32-conv-from-enc-tests: New file.
28226         * tests/uniconv/test-u32-conv-from-enc.c: New file.
28227
28228         * modules/uniconv/u16-conv-from-enc: New file.
28229         * lib/uniconv/u16-conv-from-enc.c: New file.
28230         * lib/uniconv/u-conv-from-enc.h: New file.
28231         * modules/uniconv/u16-conv-from-enc-tests: New file.
28232         * tests/uniconv/test-u16-conv-from-enc.c: New file.
28233
28234         * modules/uniconv/u8-conv-from-enc: New file.
28235         * lib/uniconv/u8-conv-from-enc.c: New file.
28236         * modules/uniconv/u8-conv-from-enc-tests: New file.
28237         * tests/uniconv/test-u8-conv-from-enc.c: New file.
28238
28239         * modules/uniconv/base: New file.
28240         * lib/uniconv.h: New file.
28241
28242 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28243
28244         * doc/gnulib-tool.texi (Initial import): Update to match current
28245         behavior with strdup module.
28246         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
28247         * lib/memmem.h: Remove; all uses removed.  This is now done
28248         by <string.h>.
28249         * lib/mempcpy.h: Likewise.
28250         * lib/memrchr.h: Likewise.
28251         * lib/stpcpy.h: Likewise.
28252         * lib/stpncpy.h: Likewise.
28253         * lib/strcase.h: Likewise.
28254         * lib/strchrnul.h: Likewise.
28255         * lib/strdup.h: Likewise.
28256         * lib/strndup.h: Likewise.
28257         * lib/strnlen.h: Likewise.
28258         * lib/strpbrk.h: Likewise.
28259         * lib/strsep.h: Likewise.
28260         * lib/strstr.h: Likewise.
28261         * lib/strtok_r.h: Likewise.
28262         * lib/string_.h: New file.
28263         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
28264         Rely on <string.h> instead.
28265         * lib/canon-host.c: Likewise.
28266         * lib/chdir-long.c: Likewise.
28267         * lib/concatpath.c: Likewise.
28268         * lib/exclude.c: Likewise.
28269         * lib/fchdir.c: Likewise.
28270         * lib/getaddrinfo.c: Likewise.
28271         * lib/getcwd.c: Likewise.
28272         * lib/getsubopt.c: Likewise.
28273         * lib/glob.c: Likewise.
28274         * lib/hard-locale.c: Likewise.
28275         * lib/iconvme.c: Likewise.
28276         * lib/javacomp.c: Likewise.
28277         * lib/mempcpy.c: Likewise.
28278         * lib/memrchr.c: Likewise.
28279         * lib/regex_internal.h: Likewise.
28280         * lib/stpncpy.c: Likewise.
28281         * lib/strcasecmp.c: Likewise.
28282         * lib/strchrnul.c: Likewise.
28283         * lib/strdup.c: Likewise.
28284         * lib/striconv.c: Likewise.
28285         * lib/striconveh.c: Likewise.
28286         * lib/striconveha.c: Likewise.
28287         * lib/strncasecmp.c: Likewise.
28288         * lib/strndup.c: Likewise.
28289         * lib/strnlen.c: Likewise.
28290         * lib/strsep.c: Likewise.
28291         * lib/strstr.c: Likewise.
28292         * lib/strtok_r.c: Likewise.
28293         * lib/userspec.c: Likewise.
28294         * lib/w32spawn.h: Likewise.
28295         * lib/xstrndup.c: Likewise.
28296         * lib/mountlist.c (strstr): Remove decl.
28297         * m4/string_h.m4: New file.
28298         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
28299         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
28300         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
28301         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
28302         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
28303         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
28304         Set REPLACE_STRCASECMP if necessary.
28305         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
28306         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
28307         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
28308         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
28309         HAVE_DECL_STRDUP if necessary.
28310         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
28311         since gl_FUNC_STRNDUP does that now.
28312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
28313         Check for decl here...
28314         (gl_PREREQ_STRNLEN): ... not here.
28315         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
28316         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
28317         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
28318         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
28319         necessary.
28320         * modules/string: New file.
28321         * modules/memmem (Files): Remove special-purpose include file.
28322         (Depends-on): Add string.
28323         (Include): Include <string.h>, not the removed file.
28324         * modules/mempcpy: Likewise.
28325         * modules/memrchr: Likewise.
28326         * modules/stpcpy: Likewise.
28327         * modules/stpncpy: Likewise.
28328         * modules/strcase: Likewise.
28329         * modules/strchrnul: Likewise.
28330         * modules/strdup: Likewise.
28331         * modules/strndup: Likewise.
28332         * modules/strnlen: Likewise.
28333         * modules/strpbrk: Likewise.
28334         * modules/strsep: Likewise.
28335         * modules/strstr: Likewise.
28336         * modules/strtok_r: Likewise.
28337         * tests/test-dirname.c: Don't include "strdup.h", since
28338         <string.h> now suffices.
28339         * tests/test-memmem.c: Don't include "memmem.h", since
28340         <string.h> now suffices.
28341
28342 2007-01-25  Bruno Haible  <bruno@clisp.org>
28343
28344         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
28345         *resultp is 0.
28346
28347         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
28348         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
28349         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
28350         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
28351
28352         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
28353         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
28354         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
28355         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
28356         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
28357         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
28358
28359 2007-01-24  Bruno Haible  <bruno@clisp.org>
28360
28361         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
28362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
28363         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
28364         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
28365         gl_FUNC_FTS_CORE.
28366         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
28367         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
28368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28369         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
28370         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
28371         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
28372         gl_FUNC_FCHOWNAT.
28373         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
28374         gl_FUNC_STRFTIME.
28375         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
28376         Reported by Ralf Wildenhues.
28377
28378 2007-01-24  Bruno Haible  <bruno@clisp.org>
28379
28380         Drop AC_REQUIRE calls that are redundant with the module dependencies.
28381         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
28382         gl_GETADDRINFO.
28383         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
28384         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
28385         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
28386
28387 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28388
28389         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
28390         Don't use 'exit'; just return from 'main'.
28391         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
28392
28393         * lib/fnmatch_.h: Readjust white space and comments to match
28394         glibc, to avoid spurious diffs.
28395
28396 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28397
28398         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
28399         2004-12-01 change by Jakub Jelinek, since this code won't compile
28400         if !LIBC.  Problem reported by Bob Proulx.
28401
28402 2007-01-23  Bruno Haible  <bruno@clisp.org>
28403
28404         * lib/striconveh.c: Include c-strcaseeq.h.
28405         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
28406         * modules/striconveh (Depends-on): Add c-strcaseeq.
28407
28408 2007-01-23  Bruno Haible  <bruno@clisp.org>
28409
28410         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
28411
28412         * modules/c-strcaseeq: New file.
28413         * lib/c-strcaseeq.h: New file.
28414
28415         * modules/streq: New file.
28416         * lib/streq.h: New file.
28417
28418 2007-01-23  Bruno Haible  <bruno@clisp.org>
28419
28420         * modules/striconveha-tests: New file.
28421         * tests/test-striconveha.c: New file.
28422
28423         * lib/striconveha.h: Include <stdbool.h>.
28424         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
28425         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
28426         (mem_iconveha_notranslit): Renamed from mem_iconveha.
28427         (mem_iconveha): New function.
28428         (str_iconveha_notranslit): Renamed from str_iconveha.
28429         (str_iconveha): New function.
28430         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
28431         c-strcase.
28432
28433 2007-01-23  Bruno Haible  <bruno@clisp.org>
28434
28435         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
28436         encodings without forgiving before trying any encoding with handler.
28437         (str_iconveha): Try all encodings without forgiving before trying any
28438         encoding with handler.
28439
28440 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28441
28442         Import the following changes from libc.
28443
28444         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
28445
28446         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
28447
28448         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28449
28450         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
28451         normal_bracket label.
28452
28453         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
28454
28455         [BZ #361]
28456         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
28457         to normal_bracket after fetching the next character.
28458
28459 2007-01-22  Bruno Haible  <bruno@clisp.org>
28460
28461         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
28462         argument.
28463         * lib/striconveh.c (iconv_carefully_1): New function.
28464         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
28465         argument.
28466         (str_cd_iconveh): Update.
28467         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
28468         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
28469         * tests/test-striconveh.c (MAGIC): New macro.
28470         (new_offsets): New function.
28471         (main): Test call with and without offsets.
28472
28473 2007-01-22  Bruno Haible  <bruno@clisp.org>
28474
28475         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
28476         * modules/sys_select (Makefile.am): Likewise.
28477         * modules/sys_socket (Makefile.am): Likewise.
28478         * modules/sys_time (Makefile.am): Likewise.
28479
28480 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28481
28482         * modules/gettimeofday (License): Change from GPL to LGPL, since
28483         gettimeofday is a library function.
28484
28485 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28486
28487         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
28488
28489 2007-01-21  Bruno Haible  <bruno@clisp.org>
28490
28491         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
28492
28493 2007-01-21  Bruno Haible  <bruno@clisp.org>
28494
28495         * modules/striconveha: New file.
28496         * lib/striconveha.h: New file.
28497         * lib/striconveha.c: New file.
28498         * MODULES.html.sh (Internationalization functions): Add striconveha.
28499         * lib/striconv.c (str_iconv): Optimize the case of an empty input
28500         string.
28501         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
28502
28503 2007-01-21  Bruno Haible  <bruno@clisp.org>
28504
28505         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
28506         * lib/striconveh.c (str_iconveh): Likewise.
28507
28508 2007-01-21  Bruno Haible  <bruno@clisp.org>
28509
28510         * lib/striconveh.h (mem_iconveh): New declaration.
28511         * lib/striconveh.c (mem_iconveh): New function.
28512         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
28513
28514 2007-01-21  Bruno Haible  <bruno@clisp.org>
28515
28516         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
28517
28518         * lib/striconveh.h (mem_cd_iconveh): Change specification.
28519         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
28520         original result buffer.
28521         (str_cd_iconveh): Update.
28522         * tests/test-striconveh.c (main): Update.
28523
28524         * lib/striconv.h (mem_cd_iconv): Change specification.
28525         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
28526         result buffer.
28527         (str_cd_iconv): Update.
28528         * tests/test-striconv.c (main): Update.
28529
28530 2007-01-21  Bruno Haible  <bruno@clisp.org>
28531
28532         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
28533
28534 2007-01-20  Jim Meyering  <jim@meyering.net>
28535
28536         * lib/userspec.c (parse_with_separator): If a user or group string
28537         starts with "+", skip the corresponding name-to-ID look-up, since
28538         such a look-up must fail: user and group names may not include "+".
28539
28540 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28541
28542         * lib/poll.c: Include sys/time.h and time.h unconditionally,
28543         since we now assume the sys_time module.
28544         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
28545         check for sys/time.h; no longer needed.
28546         * modules/poll (Depends-on): Depend on sys_time.
28547
28548 2007-01-18  Bruno Haible  <bruno@clisp.org>
28549
28550         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
28551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28552
28553         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
28554         gettimeofday.
28555
28556         * tests/test-gettimeofday.c: Include <time.h>.
28557         (dummy): Remove variable.
28558
28559         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
28560         gl_HEADER_SYS_TIME_H.
28561         (gl_HEADER_SYS_TIME_H): New macro.
28562
28563         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
28564         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28565         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
28566         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
28567         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28568         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
28569         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
28570         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28571         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
28572         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
28573         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28574
28575         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
28576         last change; it caused a compilation error when cross-compiling to
28577         Cygwin.
28578
28579 2007-01-18  Jim Meyering  <jim@meyering.net>
28580
28581         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
28582         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
28583         than the race-prone "test -d sys || mkdir sys".
28584         (configure.ac): Use AC_PROG_MKDIR_P.
28585         * modules/sys_select: Likewise.
28586         * modules/sys_socket: Likewise.
28587         * modules/sys_time: Likewise.
28588
28589 2007-01-18  Eric Blake  <ebb9@byu.net>
28590
28591         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
28592         replace gettimeofday.
28593         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
28594         name, to avoid infinite recursion.
28595
28596 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
28597
28598         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
28599         module sys_time.
28600         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
28601         assume timespec.h defines struct timeval.
28602         * lib/settime.c: Likewise.
28603         * lib/utimens.c: Likewise.
28604         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
28605         since we now assume the gettimeofday module.
28606         * lib/tempname.c (__gen_tempname): Likewise.
28607         * lib/gettimeofday.h: Remove.
28608         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
28609         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
28610         Include <time.h>, for 'time()'.
28611         (localtime_buffer_addr): Also use this workaround if
28612         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
28613         to simplify the uses.  All uses changed.
28614         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
28615         that #undef is inside {}, and 'const' follows type name consistently.
28616         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
28617         (gettimeofday): Do not use the maximum possible value for
28618         tv->tv_usec, since that might break usages other than ls.c.
28619         Instead, we'll leave ls.c alone.  This undoes today's patch
28620         by Bruno.  Add a compile-time warning for 1s-clock resolution;
28621         we've never observed the problem but might as well keep the
28622         canary.
28623         * lib/nanosleep.c: Include timespec.h first, for interface check.
28624         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
28625         now assume the sys_time module.
28626         * lib/tempname.c: Likewise.
28627         * lib/timespec.h: Likewise.
28628         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
28629         needed.
28630         * lib/strftime.c: Likewise.
28631         * lib/timespec.h: Likewise.
28632         * lib/posixtm.c: Include posixtm.h first, for interface check.
28633         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
28634         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
28635         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
28636         * lib/sys_time_.h: New file.
28637         * lib/timespec.h (struct timespec): Use long int, not long.
28638         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28639         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
28640         Remove obsolescent call to AC_HEADER_TIME.
28641         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28643         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28644         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
28645         Likewise.
28646         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
28647         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
28648         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
28649         into the sys_time module.  Check for gettimeofday just once.
28650         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
28651         for gettimeofday signature to just check the signature.  Merely
28652         compile it, since linking doesn't test signature.  Improve test for
28653         whether gettimeofday.o is actually needed.
28654         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
28655         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
28656         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
28657         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28658         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
28659         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
28660         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
28661         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
28662         than worrying about sys/time.h.
28663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28664         Don't bother worrying about TIME_WITH_SYS_TIME.
28665         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28666         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
28667         * m4/sys_time_h.m4: New file.
28668         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
28669         Don't include sys/time.h.  Return from main rather than exiting.
28670         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
28671         all uses changed.
28672         * modules/gethrxtime (Depends-on): Add sys_time.
28673         * modules/gettime (Depends-on): Likewise.
28674         * modules/gettimeofday (Depends-on): Likewise.
28675         * modules/nanosleep (Depends-on): Likewise.
28676         * modules/settime (Depends-on): Likewise.
28677         * modules/tempname (Depends-on): Likewise.
28678         * modules/utimens (Depends-on): Likewise.
28679         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
28680         (Include:) Change back to <sys/time.h>.
28681         (Maintainer:) Add self.
28682         * modules/sys_time: New file.
28683         * modules/tempname (Depends-on): Add gettimeofday.
28684         * tests/test-gettimeofday.c: Include <sys/time.h>
28685         rather than gettimeofday.h.
28686
28687 2007-01-17  Bruno Haible  <bruno@clisp.org>
28688
28689         * gnulib-tool (func_get_license): Revert last patch. Instead, let
28690         the license default to GPL.
28691         (func_create_testdir): Don't complain if a module is LGPL and its
28692         tests module depends on GPLed modules.
28693
28694 2007-01-17  Bruno Haible  <bruno@clisp.org>
28695
28696         * lib/gettimeofday.c (gettimeofday): Add code for the case
28697         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
28698         maximum possible value for tv->tv_usec, rather than the minimum one.
28699
28700 2005-10-08  Martin Lambers  <marlam@marlam.de>
28701 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28702 2007-01-16  Bruno Haible  <bruno@clisp.org>
28703
28704         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
28705         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
28706         gl_FUNC_GETTIMEOFDAY.
28707         (Include): Add gettimeofday.h.
28708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
28709         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
28710         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
28711         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
28712         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
28713         * lib/gettimeofday.h: New file.
28714         * lib/gettimeofday.c: Include <sys/timeb.h>.
28715         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
28716         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28717         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
28718         fall back on time().
28719
28720         * tests/test-gettimeofday.c: New file.
28721         * modules/gettimeofday-tests: New file.
28722
28723 2007-01-16  Eric Blake  <ebb9@byu.net>
28724
28725         * modules/fnmatch (Depends-on): Depend on wchar.
28726         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
28727         * m4/fnmatch.m4: Likewise.
28728         * modules/mbchar (Makefile.am): Assume <wchar.h>.
28729         * m4/mbchar.m4: Likewise.
28730         * modules/mbswidth (Depends-on): Depend on wchar.
28731         * lib/mbswidth.c: Assume <wchar.h>.
28732         * m4/mbswidth.m4: Likewise.
28733         * modules/quotearg (Depends-on): Depend on wchar.
28734         * lib/quotearg.c: Assume <wchar.h>.
28735         * m4/quotearg.m4: Likewise.
28736         * modules/regex (Depends-on): Depend on wchar.
28737         * lib/regex_internal.h: Assume <wchar.h>.
28738         * m4/regex.m4: Likewise.
28739         * modules/stdint (Depends-on): Depend on wchar.
28740         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
28741         * m4/stdint.m4: Likewise.
28742         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
28743         * modules/strftime (Depends-on): Depend on wchar.
28744         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
28745         * modules/strtol (Depends-on): Depend on wchar.
28746         * lib/strtol.c: Assume <wchar.h>.
28747         * modules/wcwidth (Depends-on): Depend on wchar.
28748         * lib/wcwidth.h: Assume <wchar.h>.
28749         * m4/wcwidth.m4: Likewise.
28750
28751 2007-01-16  Bruno Haible  <bruno@clisp.org>
28752
28753         * modules/csharpexec-script: New, created from...
28754         * modules/csharpexec: ... this.
28755
28756 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28757
28758         * modules/javaexec-script: New, created from...
28759         * modules/javaexec: ... this.
28760
28761 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28762
28763         * modules/poll (Dependencies): Add sys_select.
28764
28765 2007-01-15  Jim Meyering  <jim@meyering.net>
28766
28767         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
28768         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
28769         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
28770         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
28771
28772 2007-01-15  Bruno Haible  <bruno@clisp.org>
28773
28774         * modules/striconveh: New file.
28775         * lib/striconveh.h: New file.
28776         * lib/striconveh.c: New file.
28777         * MODULES.html.sh (Internationalization functions): Add striconveh.
28778
28779         * modules/striconveh-tests: New file.
28780         * tests/test-striconveh.c: New file.
28781
28782 2007-01-15  Bruno Haible  <bruno@clisp.org>
28783
28784         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
28785         not from GNU libiconv or GNU libc.
28786
28787 2007-01-15  Bruno Haible  <bruno@clisp.org>
28788
28789         * doc/gnulib-intro.texi (Copyright): Explain the different license
28790         terms for module descriptions, autoconf macros, tests, documentation.
28791
28792 2007-01-14  Bruno Haible  <bruno@clisp.org>
28793
28794         * modules/striconv-tests: New file.
28795         * tests/test-striconv.c: New file.
28796
28797 2007-01-14  Bruno Haible  <bruno@clisp.org>
28798
28799         * modules/iconv-tests: New file.
28800         * tests/test-iconv.c: New file.
28801
28802 2007-01-14  Bruno Haible  <bruno@clisp.org>
28803
28804         * gnulib-tool (func_get_license): For test modules, use the license of
28805         the main module.
28806
28807 2007-01-14  Bruno Haible  <bruno@clisp.org>
28808
28809         * modules/iconv (Include): Clarify that <iconv.h> can only be included
28810         if iconv is found to exist.
28811
28812 2007-01-14  Bruno Haible  <bruno@clisp.org>
28813
28814         * modules/c-ctype-tests: New file.
28815         * tests/test-c-ctype.c: New file.
28816
28817 2007-01-14  Bruno Haible  <bruno@clisp.org>
28818
28819         * modules/binary-io-tests: New file.
28820         * tests/test-binary-io.sh: New file.
28821         * tests/test-binary-io.c: New file.
28822
28823 2007-01-14  Bruno Haible  <bruno@clisp.org>
28824
28825         * modules/array-oset-tests: New file.
28826         * tests/test-array_oset.c: New file.
28827
28828 2007-01-14  Bruno Haible  <bruno@clisp.org>
28829
28830         * modules/array-list-tests: New file.
28831         * tests/test-array_list.c: New file.
28832
28833 2007-01-14  Bruno Haible  <bruno@clisp.org>
28834
28835         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
28836         and make.
28837         Reported by Simon Josefsson in
28838         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
28839
28840 2007-01-14  Bruno Haible  <bruno@clisp.org>
28841
28842         * modules/allocsa-tests: New file.
28843         * tests/test-allocsa.c: New file.
28844
28845 2007-01-14  Bruno Haible  <bruno@clisp.org>
28846
28847         * modules/fchdir (Depends-on): Add absolute-header.
28848         * modules/unistd (Depends-on): Likewise.
28849
28850 2006-12-30  Bruno Haible  <bruno@clisp.org>
28851
28852         * modules/fchdir: New file.
28853         * modules/unistd (Files): Add lib/unistd_.h.
28854         (Makefile.am): Generate unistd.h from unistd_.h.
28855         * lib/fchdir.c: New file.
28856         * lib/dirent_.h: New file.
28857         * lib/unistd_.h: New file.
28858         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
28859         * m4/fchdir.m4: New file.
28860         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
28861         (gl_HEADER_UNISTD): Invoke it.
28862         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
28863         function.
28864         * lib/backupfile.c (opendir, closedir): Undefine.
28865         * lib/chown.c (open, close): Undefine.
28866         * lib/clean-temp.c (open, close): Undefine.
28867         * lib/copy-file.c (open, close): Undefine.
28868         * lib/execute.c (open, close): Undefine.
28869         * lib/fsusage.c (open, close): Undefine.
28870         * lib/gc-gnulib.c (open, close): Undefine.
28871         * lib/getcwd.c (opendir, closedir): Undefine.
28872         * lib/glob.c (opendir, closedir): Undefine.
28873         * lib/javacomp.c (open, close): Undefine.
28874         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
28875         * lib/openat-proc.c (open, close): Undefine.
28876         * lib/pagealign_alloc.c (open, close): Undefine.
28877         * lib/pipe.c (open, close): Undefine.
28878         * lib/progreloc.c (open, close): Undefine.
28879         * lib/savedir.c (opendir, closedir): Undefine.
28880         * lib/utime.c (open, close): Undefine.
28881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
28882
28883 2007-01-10  Bruno Haible  <bruno@clisp.org>
28884
28885         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
28886
28887 2007-01-12  Eric Blake  <ebb9@byu.net>
28888
28889         Provide a robust <wchar.h>.  Further simplifications are now
28890         possible in other modules, but not included here.
28891         * modules/wchar: New module.
28892         * m4/wchar.m4: New file.
28893         * lib/wchar_.h: Likewise.
28894         * modules/mbchar (Depends-on): Depend on wchar, as the first use
28895         of the new module.
28896         * MODULES.html.sh (Extended multibyte and wide character utilities):
28897         New section.
28898
28899 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28900
28901         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
28902         to a reasonable default for memory allocation.
28903         (xreadlink): Don't allocate a huge buffer, to work around a buggy
28904         file system that reports garbage st_size values for symlinks.
28905         Problem reported by Liyang Hu.
28906
28907 2007-01-11  Simon Josefsson  <simon@josefsson.org>
28908
28909         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
28910         Emacs .#* auto-save files).
28911
28912 2007-01-11  Bruno Haible  <bruno@clisp.org>
28913
28914         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
28915         directory.
28916
28917 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28918
28919         Use @...@ consistently in lib/wctype_.h.
28920         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
28921         on it being set to 1 or 0.
28922         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
28923         go back to AC_SUBSTing it.
28924         * modules/wctype (Makefile.am): Undo previous change.
28925
28926 2007-01-10  Eric Blake  <ebb9@byu.net>
28927
28928         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
28929         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
28930         * modules/wctype (Makefile.am): Likewise.
28931         Reported by Chris McGuire.
28932
28933 2007-01-10  Jim Meyering  <jim@meyering.net>
28934
28935         fts.c: a small readability/maintainability improvement
28936         * lib/fts.c (fts_read): Make this code slightly more readable and
28937         maintainable by hoisting the "sp->fts_cur = p" assignments to
28938         immediately follow the statements that set P.  Derived from
28939         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
28940
28941 2007-01-10  Eric Blake  <ebb9@byu.net>
28942
28943         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
28944         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
28945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28946         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28947         Reported by Chris McGuire.
28948
28949 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28950
28951         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
28952         in sed script.
28953
28954 2007-01-09  Bruno Haible  <bruno@clisp.org>
28955
28956         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
28957         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
28958         variables.
28959         (func_module): Use them.
28960
28961 2007-01-09  Bruno Haible  <bruno@clisp.org>
28962
28963         * modules/unistr/base: New file.
28964         * lib/unistr.h: New file.
28965
28966         * modules/unistr/u8-to-u16: New file.
28967         * lib/unistr/u8-to-u16.c: New file.
28968
28969         * modules/unistr/u8-to-u32: New file.
28970         * lib/unistr/u8-to-u32.c: New file.
28971
28972         * modules/unistr/u16-to-u8: New file.
28973         * lib/unistr/u16-to-u8.c: New file.
28974
28975         * modules/unistr/u16-to-u32: New file.
28976         * lib/unistr/u16-to-u32.c: New file.
28977
28978         * modules/unistr/u32-to-u8: New file.
28979         * lib/unistr/u32-to-u8.c: New file.
28980
28981         * modules/unistr/u32-to-u16: New file.
28982         * lib/unistr/u32-to-u16.c: New file.
28983
28984         * modules/unistr/u8-check: New file.
28985         * modules/unistr/u16-check: New file.
28986         * modules/unistr/u32-check: New file.
28987         * lib/unistr/u8-check.c: New file.
28988         * lib/unistr/u16-check.c: New file.
28989         * lib/unistr/u32-check.c: New file.
28990
28991         * modules/unistr/u8-chr: New file.
28992         * modules/unistr/u16-chr: New file.
28993         * modules/unistr/u32-chr: New file.
28994         * lib/unistr/u8-chr.c: New file.
28995         * lib/unistr/u16-chr.c: New file.
28996         * lib/unistr/u32-chr.c: New file.
28997
28998         * modules/unistr/u8-cmp: New file.
28999         * modules/unistr/u16-cmp: New file.
29000         * modules/unistr/u32-cmp: New file.
29001         * lib/unistr/u8-cmp.c: New file.
29002         * lib/unistr/u16-cmp.c: New file.
29003         * lib/unistr/u32-cmp.c: New file.
29004
29005         * modules/unistr/u8-cpy: New file.
29006         * modules/unistr/u16-cpy: New file.
29007         * modules/unistr/u32-cpy: New file.
29008         * lib/unistr/u8-cpy.c: New file.
29009         * lib/unistr/u16-cpy.c: New file.
29010         * lib/unistr/u32-cpy.c: New file.
29011         * lib/unistr/u-cpy.h: New file.
29012
29013         * modules/unistr/u8-cpy-alloc: New file.
29014         * modules/unistr/u16-cpy-alloc: New file.
29015         * modules/unistr/u32-cpy-alloc: New file.
29016         * lib/unistr/u8-cpy-alloc.c: New file.
29017         * lib/unistr/u16-cpy-alloc.c: New file.
29018         * lib/unistr/u32-cpy-alloc.c: New file.
29019         * lib/unistr/u-cpy-alloc.h: New file.
29020
29021         * modules/unistr/u8-endswith: New file.
29022         * modules/unistr/u16-endswith: New file.
29023         * modules/unistr/u32-endswith: New file.
29024         * lib/unistr/u8-endswith.c: New file.
29025         * lib/unistr/u16-endswith.c: New file.
29026         * lib/unistr/u32-endswith.c: New file.
29027         * lib/unistr/u-endswith.h: New file.
29028
29029         * modules/unistr/u8-mblen: New file.
29030         * modules/unistr/u16-mblen: New file.
29031         * modules/unistr/u32-mblen: New file.
29032         * lib/unistr/u8-mblen.c: New file.
29033         * lib/unistr/u16-mblen.c: New file.
29034         * lib/unistr/u32-mblen.c: New file.
29035
29036         * modules/unistr/u8-mbtouc: New file.
29037         * modules/unistr/u16-mbtouc: New file.
29038         * modules/unistr/u32-mbtouc: New file.
29039         * lib/unistr/u8-mbtouc.c: New file.
29040         * lib/unistr/u16-mbtouc.c: New file.
29041         * lib/unistr/u32-mbtouc.c: New file.
29042
29043         * modules/unistr/u8-mbtouc-safe: New file.
29044         * modules/unistr/u16-mbtouc-safe: New file.
29045         * modules/unistr/u32-mbtouc-safe: New file.
29046         * lib/unistr/u8-mbtouc-safe.c: New file.
29047         * lib/unistr/u16-mbtouc-safe.c: New file.
29048         * lib/unistr/u32-mbtouc-safe.c: New file.
29049
29050         * modules/unistr/u8-move: New file.
29051         * modules/unistr/u16-move: New file.
29052         * modules/unistr/u32-move: New file.
29053         * lib/unistr/u8-move.c: New file.
29054         * lib/unistr/u16-move.c: New file.
29055         * lib/unistr/u32-move.c: New file.
29056         * lib/unistr/u-move.h: New file.
29057
29058         * modules/unistr/u8-next: New file.
29059         * modules/unistr/u16-next: New file.
29060         * modules/unistr/u32-next: New file.
29061         * lib/unistr/u8-next.c: New file.
29062         * lib/unistr/u16-next.c: New file.
29063         * lib/unistr/u32-next.c: New file.
29064
29065         * modules/unistr/u8-prev: New file.
29066         * modules/unistr/u16-prev: New file.
29067         * modules/unistr/u32-prev: New file.
29068         * lib/unistr/u8-prev.c: New file.
29069         * lib/unistr/u16-prev.c: New file.
29070         * lib/unistr/u32-prev.c: New file.
29071
29072         * modules/unistr/u8-set: New file.
29073         * modules/unistr/u16-set: New file.
29074         * modules/unistr/u32-set: New file.
29075         * lib/unistr/u8-set.c: New file.
29076         * lib/unistr/u16-set.c: New file.
29077         * lib/unistr/u32-set.c: New file.
29078         * lib/unistr/u-set.h: New file.
29079
29080         * modules/unistr/u8-startswith: New file.
29081         * modules/unistr/u16-startswith: New file.
29082         * modules/unistr/u32-startswith: New file.
29083         * lib/unistr/u8-startswith.c: New file.
29084         * lib/unistr/u16-startswith.c: New file.
29085         * lib/unistr/u32-startswith.c: New file.
29086         * lib/unistr/u-startswith.h: New file.
29087
29088         * modules/unistr/u8-stpcpy: New file.
29089         * modules/unistr/u16-stpcpy: New file.
29090         * modules/unistr/u32-stpcpy: New file.
29091         * lib/unistr/u8-stpcpy.c: New file.
29092         * lib/unistr/u16-stpcpy.c: New file.
29093         * lib/unistr/u32-stpcpy.c: New file.
29094         * lib/unistr/u-stpcpy.h: New file.
29095
29096         * modules/unistr/u8-stpncpy: New file.
29097         * modules/unistr/u16-stpncpy: New file.
29098         * modules/unistr/u32-stpncpy: New file.
29099         * lib/unistr/u8-stpncpy.c: New file.
29100         * lib/unistr/u16-stpncpy.c: New file.
29101         * lib/unistr/u32-stpncpy.c: New file.
29102         * lib/unistr/u-stpncpy.h: New file.
29103
29104         * modules/unistr/u8-strcat: New file.
29105         * modules/unistr/u16-strcat: New file.
29106         * modules/unistr/u32-strcat: New file.
29107         * lib/unistr/u8-strcat.c: New file.
29108         * lib/unistr/u16-strcat.c: New file.
29109         * lib/unistr/u32-strcat.c: New file.
29110         * lib/unistr/u-strcat.h: New file.
29111
29112         * modules/unistr/u8-strchr: New file.
29113         * modules/unistr/u16-strchr: New file.
29114         * modules/unistr/u32-strchr: New file.
29115         * lib/unistr/u8-strchr.c: New file.
29116         * lib/unistr/u16-strchr.c: New file.
29117         * lib/unistr/u32-strchr.c: New file.
29118
29119         * modules/unistr/u8-strcmp: New file.
29120         * modules/unistr/u16-strcmp: New file.
29121         * modules/unistr/u32-strcmp: New file.
29122         * lib/unistr/u8-strcmp.c: New file.
29123         * lib/unistr/u16-strcmp.c: New file.
29124         * lib/unistr/u32-strcmp.c: New file.
29125
29126         * modules/unistr/u8-strcpy: New file.
29127         * modules/unistr/u16-strcpy: New file.
29128         * modules/unistr/u32-strcpy: New file.
29129         * lib/unistr/u8-strcpy.c: New file.
29130         * lib/unistr/u16-strcpy.c: New file.
29131         * lib/unistr/u32-strcpy.c: New file.
29132         * lib/unistr/u-strcpy.h: New file.
29133
29134         * modules/unistr/u8-strcspn: New file.
29135         * modules/unistr/u16-strcspn: New file.
29136         * modules/unistr/u32-strcspn: New file.
29137         * lib/unistr/u8-strcspn.c: New file.
29138         * lib/unistr/u16-strcspn.c: New file.
29139         * lib/unistr/u32-strcspn.c: New file.
29140         * lib/unistr/u-strcspn.h: New file.
29141
29142         * modules/unistr/u8-strdup: New file.
29143         * modules/unistr/u16-strdup: New file.
29144         * modules/unistr/u32-strdup: New file.
29145         * lib/unistr/u8-strdup.c: New file.
29146         * lib/unistr/u16-strdup.c: New file.
29147         * lib/unistr/u32-strdup.c: New file.
29148         * lib/unistr/u-strdup.h: New file.
29149
29150         * modules/unistr/u8-strlen: New file.
29151         * modules/unistr/u16-strlen: New file.
29152         * modules/unistr/u32-strlen: New file.
29153         * lib/unistr/u8-strlen.c: New file.
29154         * lib/unistr/u16-strlen.c: New file.
29155         * lib/unistr/u32-strlen.c: New file.
29156         * lib/unistr/u-strlen.h: New file.
29157
29158         * modules/unistr/u8-strmblen: New file.
29159         * modules/unistr/u16-strmblen: New file.
29160         * modules/unistr/u32-strmblen: New file.
29161         * lib/unistr/u8-strmblen.c: New file.
29162         * lib/unistr/u16-strmblen.c: New file.
29163         * lib/unistr/u32-strmblen.c: New file.
29164
29165         * modules/unistr/u8-strmbtouc: New file.
29166         * modules/unistr/u16-strmbtouc: New file.
29167         * modules/unistr/u32-strmbtouc: New file.
29168         * lib/unistr/u8-strmbtouc.c: New file.
29169         * lib/unistr/u16-strmbtouc.c: New file.
29170         * lib/unistr/u32-strmbtouc.c: New file.
29171
29172         * modules/unistr/u8-strncat: New file.
29173         * modules/unistr/u16-strncat: New file.
29174         * modules/unistr/u32-strncat: New file.
29175         * lib/unistr/u8-strncat.c: New file.
29176         * lib/unistr/u16-strncat.c: New file.
29177         * lib/unistr/u32-strncat.c: New file.
29178         * lib/unistr/u-strncat.h: New file.
29179
29180         * modules/unistr/u8-strncmp: New file.
29181         * modules/unistr/u16-strncmp: New file.
29182         * modules/unistr/u32-strncmp: New file.
29183         * lib/unistr/u8-strncmp.c: New file.
29184         * lib/unistr/u16-strncmp.c: New file.
29185         * lib/unistr/u32-strncmp.c: New file.
29186
29187         * modules/unistr/u8-strncpy: New file.
29188         * modules/unistr/u16-strncpy: New file.
29189         * modules/unistr/u32-strncpy: New file.
29190         * lib/unistr/u8-strncpy.c: New file.
29191         * lib/unistr/u16-strncpy.c: New file.
29192         * lib/unistr/u32-strncpy.c: New file.
29193         * lib/unistr/u-strncpy.h: New file.
29194
29195         * modules/unistr/u8-strnlen: New file.
29196         * modules/unistr/u16-strnlen: New file.
29197         * modules/unistr/u32-strnlen: New file.
29198         * lib/unistr/u8-strnlen.c: New file.
29199         * lib/unistr/u16-strnlen.c: New file.
29200         * lib/unistr/u32-strnlen.c: New file.
29201         * lib/unistr/u-strnlen.h: New file.
29202
29203         * modules/unistr/u8-strpbrk: New file.
29204         * modules/unistr/u16-strpbrk: New file.
29205         * modules/unistr/u32-strpbrk: New file.
29206         * lib/unistr/u8-strpbrk.c: New file.
29207         * lib/unistr/u16-strpbrk.c: New file.
29208         * lib/unistr/u32-strpbrk.c: New file.
29209         * lib/unistr/u-strpbrk.h: New file.
29210
29211         * modules/unistr/u8-strrchr: New file.
29212         * modules/unistr/u16-strrchr: New file.
29213         * modules/unistr/u32-strrchr: New file.
29214         * lib/unistr/u8-strrchr.c: New file.
29215         * lib/unistr/u16-strrchr.c: New file.
29216         * lib/unistr/u32-strrchr.c: New file.
29217
29218         * modules/unistr/u8-strspn: New file.
29219         * modules/unistr/u16-strspn: New file.
29220         * modules/unistr/u32-strspn: New file.
29221         * lib/unistr/u8-strspn.c: New file.
29222         * lib/unistr/u16-strspn.c: New file.
29223         * lib/unistr/u32-strspn.c: New file.
29224         * lib/unistr/u-strspn.h: New file.
29225
29226         * modules/unistr/u8-strstr: New file.
29227         * modules/unistr/u16-strstr: New file.
29228         * modules/unistr/u32-strstr: New file.
29229         * lib/unistr/u8-strstr.c: New file.
29230         * lib/unistr/u16-strstr.c: New file.
29231         * lib/unistr/u32-strstr.c: New file.
29232         * lib/unistr/u-strstr.h: New file.
29233
29234         * modules/unistr/u8-strtok: New file.
29235         * modules/unistr/u16-strtok: New file.
29236         * modules/unistr/u32-strtok: New file.
29237         * lib/unistr/u8-strtok.c: New file.
29238         * lib/unistr/u16-strtok.c: New file.
29239         * lib/unistr/u32-strtok.c: New file.
29240         * lib/unistr/u-strtok.h: New file.
29241
29242         * modules/unistr/u8-uctomb: New file.
29243         * modules/unistr/u16-uctomb: New file.
29244         * modules/unistr/u32-uctomb: New file.
29245         * lib/unistr/u8-uctomb.c: New file.
29246         * lib/unistr/u16-uctomb.c: New file.
29247         * lib/unistr/u32-uctomb.c: New file.
29248
29249         * MODULES.html.sh (Unicode string functions): Add the new modules.
29250
29251 2007-01-08  Bruno Haible  <bruno@clisp.org>
29252
29253         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
29254         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
29255         subdirectories.
29256
29257 2007-01-08  Karl Berry  <karl@gnu.org>
29258
29259         * doc/error.texi: mention that main() fns must set program_name
29260         when progname is used.
29261
29262 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
29263
29264         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
29265         WCTYPE_H is empty, for the benefit of builds from non-distclean
29266         directories.  Problem reported by Eric Blake in
29267         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
29268
29269 2007-01-08  Bruno Haible  <bruno@clisp.org>
29270
29271         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
29272         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
29273         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
29274         PROVIDE_CANONICALIZE_FILENAME_MODE.
29275         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
29276
29277 2007-01-08  Bruno Haible  <bruno@clisp.org>
29278
29279         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
29280         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
29281         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
29282         * lib/fts.c: Likewise.
29283         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
29284
29285 2006-12-25  Bruno Haible  <bruno@clisp.org>
29286
29287         * modules/utf8-ucs4-safe: New file.
29288         * lib/utf8-ucs4-safe.h: New file.
29289         * lib/unistr/utf8-ucs4-safe.c: New file.
29290
29291         * modules/utf16-ucs4-safe: New file.
29292         * lib/utf16-ucs4-safe.h: New file.
29293         * lib/unistr/utf16-ucs4-safe.c: New file.
29294
29295         * MODULES.html.sh (Unicode string functions): Add the new modules.
29296
29297 2007-01-08  Bruno Haible  <bruno@clisp.org>
29298
29299         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
29300         (Depends-on): Add unitypes.
29301         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29302         (u8_mbtouc_aux): Move out to separate file.
29303         (u8_mbtouc): Use ucs4_t, uint8_t types.
29304         * lib/unistr/utf8-ucs4.c: New file.
29305
29306         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
29307         (Depends-on): Add unitypes.
29308         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29309         (u16_mbtouc_aux): Move out to separate file.
29310         (u16_mbtouc): Use ucs4_t, uint16_t types.
29311         * lib/unistr/utf16-ucs4.c: New file.
29312
29313         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
29314         (Depends-on): Add unitypes.
29315         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
29316         (u8_uctomb_aux): Move out to separate file.
29317         (u8_uctomb): Use ucs4_t, uint8_t types.
29318         * lib/unistr/ucs4-utf8.c: New file.
29319
29320         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
29321         (Depends-on): Add unitypes.
29322         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
29323         (u16_uctomb_aux): Move out to separate file.
29324         (u16_uctomb): Use ucs4_t, uint16_t types.
29325         * lib/unistr/ucs4-utf16.c: New file.
29326
29327 2006-12-25  Bruno Haible  <bruno@clisp.org>
29328
29329         * modules/unitypes: New file.
29330         * lib/unitypes.h: New file.
29331         * MODULES.html.sh (func_all_modules): New section "Unicode string
29332         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
29333         this section. Add unitypes.
29334
29335 2007-01-08  Bruno Haible  <bruno@clisp.org>
29336
29337         Avoid variable names that conflict with those from libtool.
29338         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
29339         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
29340         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
29341         library_names_spec to acl_library_names_spec, hardcode_* to
29342         acl_hardcode_*.
29343         Reported by Ralf Wildenhues.
29344
29345 2007-01-08  Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
29348         definition.
29349         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
29350         definition.
29351         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
29352         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
29353         definition.
29354         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
29355         definition.
29356         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
29357         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
29358         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
29359         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
29360         definition.
29361         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
29362         definition.
29363         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
29364         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
29365         GC_USE_<algorithm>.
29366         * lib/gc-libgcrypt.c: Likewise.
29367         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
29368         * modules/gc-arctwo (configure.ac): Likewise.
29369         * modules/gc-des (configure.ac): Likewise.
29370         * modules/gc-hmac-md5 (configure.ac): Likewise.
29371         * modules/gc-hmac-sha1 (configure.ac): Likewise.
29372         * modules/gc-md2 (configure.ac): Likewise.
29373         * modules/gc-md4 (configure.ac): Likewise.
29374         * modules/gc-md5 (configure.ac): Likewise.
29375         * modules/gc-random (configure.ac): Likewise.
29376         * modules/gc-rijndael (configure.ac): Likewise.
29377         * modules/gc-sha1 (configure.ac): Likewise.
29378
29379 2007-01-08  Bruno Haible  <bruno@clisp.org>
29380
29381         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
29382         macro definition.
29383         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
29384         definition.
29385         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
29386         definition.
29387         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
29388         * modules/fcntl-safer (configure.ac): Likewise.
29389         * modules/fopen-safer (configure.ac): Likewise.
29390         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
29391         GNULIB_FWRITEERROR macro definition.
29392
29393 2007-01-08  Bruno Haible  <bruno@clisp.org>
29394
29395         * m4/gnulib-common.m4: New file.
29396         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
29397         (func_get_filelist): Add m4/gnulib-common.m4.
29398
29399 2007-01-08  Bruno Haible  <bruno@clisp.org>
29400
29401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
29402         command.
29403
29404 2007-01-08  Jim Meyering  <jim@meyering.net>
29405
29406         Use a more robust test for a "can't happen" condition.
29407         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
29408         narrowed the st_size value.  Presuming the "can't happen" condition
29409         is true, that narrowing could conceivably convert an invalid st_size
29410         value into a valid one.  Instead, use a change based on Matthew
29411         Woehlke's original patch.
29412
29413         Slight readability improvement: use an assert-like macro
29414         in place of literal "abort ()" uses.
29415         * lib/fts.c (fts_assert): Define.
29416         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
29417         Use this macro instead of a bare 'abort'.
29418
29419 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
29420
29421         Don't worry about using IRIX 5.3's wctype.h broken definitions;
29422         simply work around them.
29423         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
29424         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
29425         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
29426         declaring.
29427         Don't bother to define as macros, since the standard doesn't require it.
29428         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
29429         longer worry about IRIX 5.3.
29430         (HAVE_WCTYPE_CTMP_BUG): Remove.
29431
29432 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29433
29434         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
29435         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
29436         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29437         Problems reported by Georg Schwarz for IRIX 5.3.
29438
29439         * gnulib-tool (autoconf_minversion): Take the maximum version number
29440         found, not the minimum.  Problem reported by James Youngman.
29441
29442 2007-01-03  Karl Berry  <karl@gnu.org>
29443
29444         * doc/error.texi: new file, explaining interaction with progname.
29445         * doc/gnulib.texi: include it.  Update copyright.
29446
29447 2007-01-03  Simon Josefsson  <simon@josefsson.org>
29448
29449         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
29450         AC_CANONICAL_HOST, to improve autobuild outputs.
29451
29452 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
29453             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29454
29455         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
29456         sockets, server sockets, and other file descriptors.  Count errors
29457         to compute the return value.  Reorder the code a bit to be easier
29458         to follow.  Don't set event bits that were not requested (except
29459         POLLERR and POLLHUP).
29460
29461 2007-01-01  Bruno Haible  <bruno@clisp.org>
29462
29463         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
29464
29465 2007-01-03  Jim Meyering  <jim@meyering.net>
29466
29467         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
29468
29469 2007-01-02  Bruno Haible  <bruno@clisp.org>
29470
29471         * modules/settime (Include): Require timespec.h.
29472         * modules/nanosleep (Include): Likewise.
29473
29474 2007-01-01  Bruno Haible  <bruno@clisp.org>
29475
29476         * gnulib-tool (func_emit_copyright_notice): Bump year.
29477         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
29478
29479 2007-01-01  Bruno Haible  <bruno@clisp.org>
29480
29481         Improve support for OpenBSD.
29482         * build-aux/config.rpath (libname_spec): Export.
29483         (library_names_spec): New variable. Export.
29484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
29485         library_names_spec from the config.rpath output. Locate shared library
29486         through the name pattern in library_names_spec.
29487
29488 2007-01-01  Eric Blake  <ebb9@byu.net>
29489
29490         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
29491
29492 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
29493
29494         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
29495         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
29496         assume the C locale, and avoid an "eval" that could cause trouble.
29497         Problem with SORT reported by Bob Proulx.
29498
29499         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
29500         Define.  Trivial patch from Henning Nielsen Lund, originally
29501         sent to bug-grep@gnu.org today.
29502
29503 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
29504
29505         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
29506         struct stat.  Problem reported by Henning Nielsen Lund.
29507         * lib/acl.c: Include acl.h first, to check interface.  Don't
29508         bother to include sys/types.h and sys/stat.h again.
29509
29510 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29511
29512         Import the following change from libc; problem reported by
29513         Sven Verdoolaege.
29514
29515         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
29516
29517         [BZ #1373]
29518         * lib/argp.h: Remove __NTH for __argp_usage inline function.
29519
29520 2006-12-28  Jim Meyering  <jim@meyering.net>
29521
29522         * build-aux/announce-gen: Do not assume that the package
29523         builds any of tar.gz, tar.bz2, and .xdelta files.
29524         Suggestion from Simon Josefsson.
29525
29526 2006-12-28  Simon Josefsson  <simon@josefsson.org>
29527
29528         * modules/announce-gen: New file.
29529
29530 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
29531
29532         * lib/mbchar.h: Just include <wctype.h>; the wctype module
29533         handles its gotchas now.
29534         * lib/mbswidth.c: Likewise.
29535         * lib/wcwidth.h: Likewise.
29536         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
29537         and iswcntrl; the wctype module does this stuff now.
29538         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29540         * modules/mbchar (Depends-on): Add wctype.
29541         * modules/mbswidth (Depends-on): Likewise.
29542         * modules/wcwidth (Depends-on): Likewise.
29543
29544 2006-12-27  Eric Blake  <ebb9@byu.net>
29545
29546         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
29547         module uses more than what <wctype.h> is required to provide.
29548
29549 2006-12-26  Eric Blake  <ebb9@byu.net>
29550
29551         * gnulib-tool (sed_extract_prog): Avoid space-tab.
29552
29553 2006-12-26  Eric Blake  <ebb9@byu.net>
29554
29555         * modules/absolute-header: New module.
29556         * modules/fcntl (Depends-on): Depend on it.
29557         * modules/inttypes (Depends-on): Likewise.
29558         * modules/stdint (Depends-on): Likewise.
29559         * modules/sys_stat (Depends-on): Likewise.
29560         * modules/wctype (Depends-on): Likewise.
29561         * MODULES.html.sh (Support for building libraries and
29562         executables): Document it.
29563
29564 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
29565
29566         * gnulib-tool (SED): Remove, undoing previous change.
29567         The problem was that it broke coreutils on Solaris, because
29568         "sed --posix" leaked into a makefile.
29569         (sed): New alias, if 'alias' and GNU sed.
29570
29571 2006-12-24  Jim Meyering  <jim@meyering.net>
29572
29573         Work around an fchownat bug in glibc-2.4:
29574         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
29575         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
29576         in spite of the -P option.
29577         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
29578         New macros.
29579         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
29580         * modules/openat (Files): Add lib/fchownat.c.
29581         * lib/openat.c (fchownat): Don't define here.  Move to...
29582         * lib/fchownat.c: ...this new file.
29583
29584 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29585
29586         Fix bug reported by Bruno Haible in
29587         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
29588         where quotearg.c didn't compile on Mac OS X 10.2 because it
29589         lacks <wchar.h> and wint_t.
29590         * lib/wctype_.h (__wctype_wint_t): New type.
29591         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
29592         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
29593         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
29594         Arg is now of type __wctype_wint_t, not wint_t.
29595         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
29596         substitute HAVE_WINT_T.
29597         * modules/wctype (Files): Add m4/wint_t.m4.
29598         (wctype.h): Substitute HAVE_WINT_T.
29599
29600 2006-12-23  Bruno Haible  <bruno@clisp.org>
29601
29602         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
29603
29604 2006-12-23  Bruno Haible  <bruno@clisp.org>
29605
29606         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
29607         S_ISLNK.
29608         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
29609         mingw.
29610
29611 2006-12-22  Bruno Haible  <bruno@clisp.org>
29612
29613         * lib/copy-file.c: Include acl.h.
29614         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
29615         Close the file descriptors only after being done with copy_acl.
29616         * modules/copy-file (Depends-on): Add acl.
29617
29618 2006-12-22  Bruno Haible  <bruno@clisp.org>
29619
29620         * gnulib-tool (SED): New variable.
29621         Use $SED instead of sed everywhere.
29622
29623 2006-12-22  Bruno Haible  <bruno@clisp.org>
29624
29625         * modules/no-c++: New file.
29626         * m4/no-c++.m4: New file.
29627         * MODULES.html.sh (Support for building libraries and executables):
29628         Add no-c++.
29629
29630 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
29631
29632         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29633         Include <limits.h>, and use its INT_MAX to rewrite the
29634         j loop so that it does not overflow 'int'.  Problem reported by
29635         Ralf Wildenhues in
29636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
29637         Play it safe by shifting left by 1 rather than multiplying by 2,
29638         as GCC is less likely to optimize this away when the value
29639         is signed (when it assumes overflow leads to undefined behavior).
29640         Also, don't assume time_t uses two's complement.
29641
29642 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
29643
29644         * MODULES.html.sh: New module wctype.
29645         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
29646         * lib/fnmatch.c: Don't bother to include <wchar.h> before
29647         <wctype.h>, since the new wctype module should fix this.
29648         * lib/quotearg.c: Include <wctype.h> unconditionally, since
29649         the wctype module should arrange for it.
29650         * lib/regex_internal.h: Likewise.
29651         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
29652         since the wctype module should handle this now.
29653         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
29654         * modules/fnmatch (Depends-on): Add wctype.
29655         * modules/quotearg (Depends-on): Likewise.
29656         * modules/regex (Depends-on): Likewise.
29657
29658 2006-12-19  Bruno Haible  <bruno@clisp.org>
29659
29660         * lib/strdup.h [C++]: Wrap definitions in extern "C".
29661         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
29662
29663 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29664
29665         * modules/savewd (Depends-on): Fix dependency on fcntl.
29666
29667 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29668
29669         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
29670         conforms to C99, rather than relying on the user's environment
29671         setting of STDINT_H.
29672
29673 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29674         and Eric Blake  <ebb9@byu.net>
29675
29676         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
29677         This is more consistent with the other defines here.
29678         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
29679         Port to z/OS.  Problem reported by Paul Gilmartin.
29680         Change local vars to use gl_ prefix rather than ac_.
29681         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
29682         with other defines.
29683         * modules/double-slash-root: New module.
29684         * modules/dirname (Files): Remove m4/double-slash-root.m4.
29685         (Depends-on): Add double-slash-root.
29686         * MODULES.html.sh (File system functions): Mention new module.
29687
29688 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
29689
29690         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
29691         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
29692         This is for the benefit of gzip, which doesn't do i18n.
29693
29694 2006-12-12  Jim Meyering  <jim@meyering.net>
29695
29696         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
29697         Reported by Andreas Schwab <schwab@suse.de>.
29698
29699 2006-12-12  Bruno Haible  <bruno@clisp.org>
29700
29701         Merge these changes.
29702         2006-09-05  Bruno Haible  <bruno@clisp.org>
29703         * lib/iconvme.c (iconv_string): No need to save and restore errno when
29704         iconv_alloc succeeded.
29705         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
29706         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
29707         test for " && dest " at the end - dest is always != NULL there. Call
29708         iconv with 4xNULL arguments initially, to reset the state. Call iconv
29709         with 2xNULL arguments, also to flush the state storage. Handle the
29710         IRIX iconv behaviour. Realloc the final result, to throw away unused
29711         memory.
29712
29713 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
29714
29715         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
29716         and fchmodat unconditionally, since glibc 2.4 has them.
29717         Problem reported by Arkadiusz Miskiewicz.
29718
29719 2006-12-10  Bruno Haible  <bruno@clisp.org>
29720
29721         * gnulib-tool (func_import): Show the include files only for those
29722         modules that are copied and specified.
29723         Reported by Karl Berry.
29724
29725 2006-12-08  Jim Meyering  <jim@meyering.net>
29726
29727         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
29728         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
29729
29730         * build-aux/announce-gen: Add two new options, both optional:
29731         --bootstrap-tools=TOOL_LIST
29732               a comma-separated list of tools, e.g.,
29733               autoconf,automake,bison,gnulib
29734         --gnulib-snapshot-date=DATE
29735               if gnulib is in the bootstrap tool list,
29736               then report this as the snapshot date.
29737               If not specified, use the current date/time.
29738               If you specify a date here, be sure it's UTC.
29739
29740 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29741
29742         * tests/test-argp-2.sh: Fix test to match actual output.
29743         (func_compare): Fix sed script to be portable.
29744
29745 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29746
29747         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
29748         workaround for this case.  It is not autoconfigured now; offhand
29749         it's hard to see how to autoconfigure it.
29750
29751 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29752
29753         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
29754         a directory that is about to be chowned.  Such a directory's
29755         initial file permissions should permit the owner only and this
29756         should not be changed until after the chown, since the group and
29757         other bits would be incorrect if they granted permission before
29758         the chown.
29759
29760         Fix porting problem for iswctype reported by Georg Schwarz in:
29761         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
29762         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
29763         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
29764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
29765         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29766
29767 2006-12-03  Jim Meyering  <jim@meyering.net>
29768
29769         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
29770         p->fts_statp may not yet be defined.
29771         (fts_read): Instead, set it in the caller, once p->fts_statp is
29772         sure to be defined, and corresponds to a top-level directory.
29773         This bug made du -x fail.  Here's the coreutils test case:
29774         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
29775         Reported by Mike Frysinger.
29776
29777 2006-12-01  Jim Meyering  <jim@meyering.net>
29778
29779         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
29780         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
29781         Reported by Simon Josefsson.
29782
29783 2006-11-30  Jim Meyering  <jim@meyering.net>
29784
29785         * m4/warning.m4: Use the all-permissive copyright notice
29786         recommended by RMS (rather than LGPL).
29787         * m4/vararrays.m4: Likewise.
29788         * m4/flexmember.m4: Likewise.
29789
29790 2006-11-29  Bruno Haible  <bruno@clisp.org>
29791
29792         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29793         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
29794         using +=.
29795         Reported by Simon Josefsson <simon@josefsson.org>.
29796
29797 2006-11-28  James Youngman <jay@gnu.org>
29798
29799         * README: Advise users that they might find the bug-gnulib@gnu.org
29800         and autotools-announce@gnu.org mailing lists useful.
29801
29802 2006-11-28  Bruno Haible  <bruno@clisp.org>
29803
29804         * m4/ptrdiff_max.m4: Remove file.
29805
29806 2006-11-21  Bruno Haible  <bruno@clisp.org>
29807
29808         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
29809         _AC_COMPUTE_INT.
29810         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29811         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
29812         _AC_COMPUTE_INT.
29813         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29814         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
29815         _AC_COMPUTE_INT.
29816         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29817
29818 2006-11-28  Jim Meyering  <jim@meyering.net>
29819
29820         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
29821         warning from "gcc -Wshadow" about shadowing the builtin.
29822
29823 2006-11-27  Bruno Haible  <bruno@clisp.org>
29824
29825         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
29826         _AC_COMPUTE_INT.
29827         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29828
29829 2006-11-27  Bruno Haible  <bruno@clisp.org>
29830             Paul Eggert  <eggert@cs.ucla.edu>
29831
29832         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
29833
29834 2006-11-26  Bruno Haible  <bruno@clisp.org>
29835
29836         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29837         noinst_LTLIBRARIES.
29838
29839 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29840             Bruno Haible  <bruno@clisp.org>
29841
29842         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
29843         if compiling with "gcc -ansi".
29844
29845 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29846
29847         Fix some incompatibilities with gcc -ansi -pedantic.
29848         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
29849         if compiling pedantically with GCC, unless it's C99 or later.
29850         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
29851         it mishandles gcc -ansi -pedantic as well.
29852         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
29853         if gcc -pedantic.
29854         * lib/regexec.c (check_node_accept_bytes): Don't use auto
29855         initializers for struct if -pedantic, unless it's C99 or later.
29856
29857 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
29858
29859         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
29860         Don't close an fd more than once. Identical atimes indicate
29861         success, not failure.
29862
29863 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
29864
29865         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
29866
29867 2006-11-23  Jim Meyering  <jim@meyering.net>
29868
29869         * build-aux/announce-gen: New file.  From coreutils.
29870
29871 2006-11-22  Jim Meyering  <jim@meyering.net>
29872
29873         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
29874         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
29875         (fts_read): Use a temporary to narrow the overused st_size member
29876         before using it in a switch statement.  Reported by Matthew Woehlke.
29877
29878         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
29879         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29880
29881 2006-11-20  Bruno Haible  <bruno@clisp.org>
29882
29883         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
29884         changequote instead of pairs of brackets.
29885         Reported by Andreas Schwab <schwab@suse.de>.
29886
29887 2006-11-21  Jim Meyering  <jim@meyering.net>
29888
29889         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
29890         so as to remain compatible with older compilers.
29891         Patch from Michael Deutschmann.
29892
29893 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29894
29895         * MODULES.html.sh (File system functions): Add openat.
29896
29897         * lib/openat.h (rpl_fstatat): New macro, if
29898         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
29899         (fstatat): Define to rpl_fstatat under the same conditions,
29900         unless COMPILING_FSTATAT.
29901         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
29902         seems to have the bug.
29903         * lib/fstatat.c: New file.
29904         * modules/openat (Files): Add it.
29905
29906 2006-11-20  Bruno Haible  <bruno@clisp.org>
29907
29908         * Makefile: New file.
29909
29910 2006-11-20  Jim Meyering  <jim@meyering.net>
29911
29912         The beginnings of syntax-related checks for gnulib.
29913         * lib/Makefile: New file.
29914         * lib/t-idcache: New script.  Ensure that the two halves of
29915         idcache.c stay in sync.
29916
29917         * lib/idcache.c: Adjust comments in user- and group- portions to
29918         be more accurate, and to be consistent with one another.
29919
29920 2006-11-20  Jim Meyering  <jim@meyering.net>
29921
29922         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
29923         continue using the flexible array member (thus, this module performs
29924         half as many malloc calls), with the addition that...
29925         (getgroup, getuser): Consistently record a non-match via an empty
29926         "name" string, and map an empty string match to a NULL return value.
29927         * modules/idcache (Depends-on): Re-add flexmember.
29928
29929         * lib/idcache.c (getuser): Remove all uses of the register keyword.
29930         (getuidbyname, getgroup, getgidbyname): Likewise.
29931
29932         Use cleaner syntax: NULL rather than 0.
29933         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
29934
29935 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29936
29937         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
29938         It mishandled the case where the group was missing.
29939         Problem reported by Greg Schafer.
29940         * modules/idcache: Likewise.
29941
29942 2006-11-18  Jim Meyering  <jim@meyering.net>
29943
29944         * check-module (%exempt_header): Add exception for some
29945         conditionally-included headers.
29946
29947         * modules/i-ring (Depends-on): Add verify.
29948         (License): Change to LGPL.
29949
29950 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29951
29952         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
29953         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
29954         and inttostr.h.  Use snprintf rather than uinttostr, so that
29955         LGPLed code doesn't depend on GPLed.
29956
29957 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29958
29959         * modules/inline (License): Change from GPL to LGPL.
29960
29961 2006-11-17  Jim Meyering  <jim@meyering.net>
29962
29963         * modules/d-type (License): Switch to LGPL.
29964
29965 2006-11-15  Bruno Haible  <bruno@clisp.org>
29966
29967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
29968
29969 2006-11-15  Eric Blake  <ebb9@byu.net>
29970
29971         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
29972         the module dependency.
29973
29974 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29975             Bruno Haible  <bruno@clisp.org>
29976
29977         * gnulib-tool (func_create_testdir): Add license consistency check.
29978
29979 2006-11-15  Eric Blake  <ebb9@byu.net>
29980
29981         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
29982         random "(cached)" in configure output.
29983
29984 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29985
29986         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
29987         test for conforming inttypes.h is both announced and cached.
29988
29989         * MODULES.html.sh (seen_modules, seen_files): New variables.
29990         (func_module): Rewrite to use a few less gnulib-tool and sed
29991         invocations.  Avoid a couple of quadratic algorithms for ...
29992         (missed_modules, missed_files): ... these, with ...
29993         (func_append, func_tmpdir): ... these new functions, from
29994         gnulib-tool.  Analogously, install traps for cleanup.
29995
29996         * tests/test-gc.c (main): Remove unused variables.
29997         * tests/test-read-file.c: Include stdlib.h, for 'free'.
29998
29999 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30000
30001         * modules/inttostr (License): Change to LGPL.
30002
30003 2006-11-14  Eric Blake  <ebb9@byu.net>
30004
30005         * modules/tempname (License): Change to LGPL.
30006
30007 2006-11-14  Eric Blake  <ebb9@byu.net>
30008
30009         * doc/functions.texi (Function Portability): *printf functions on
30010         Cygwin now understand all POSIX size specifiers.
30011
30012 2006-11-14  Bruno Haible  <bruno@clisp.org>
30013
30014         * modules/c-ctype (License): Change to LGPL.
30015
30016 2006-11-12  Bruno Haible  <bruno@clisp.org>
30017
30018         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30019         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
30020         for GNOME libraries, for which the include files are installed in
30021         subdirectories of $prefix/include.
30022
30023 2006-11-12  Bruno Haible  <bruno@clisp.org>
30024
30025         * m4/lib-link.m4: Require at least autoconf-2.54.
30026         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
30027         name to underscores for the --with option.
30028
30029 2006-11-13  Bruno Haible  <bruno@clisp.org>
30030
30031         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
30032         the tests directory.
30033         Reported by Ralf Wildenhues.
30034
30035 2006-11-13  Bruno Haible  <bruno@clisp.org>
30036
30037         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
30038         (func_emit_initmacro_end): Undo the override here.
30039         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
30040         Works around the famous automake error in coreutils.
30041
30042 2006-11-13  Eric Blake  <ebb9@byu.net>
30043
30044         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
30045         element, not its node.
30046
30047 2006-11-12  Bruno Haible  <bruno@clisp.org>
30048
30049         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
30050         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
30051
30052 2006-11-12  Bruno Haible  <bruno@clisp.org>
30053
30054         * gnulib-tool: New option --local-symlink.
30055         (func_usage): Document it.
30056         (lsymbolic): New variable.
30057         (func_import, func_create_testdir): If --symlink was not specified,
30058         test whether --local-symlink was specified and the file comes from
30059         the local_gnulib_dir.
30060
30061 2006-11-12  Bruno Haible  <bruno@clisp.org>
30062
30063         * gnulib-tool (func_ln): New function.
30064         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
30065
30066 2006-11-12  Bruno Haible  <bruno@clisp.org>
30067
30068         Finish support for source files in subdirectories.
30069         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
30070         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
30071         AUTOMAKE_OPTIONS.
30072         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
30073
30074 2006-11-12  Bruno Haible  <bruno@clisp.org>
30075
30076         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30077         EXTRA_lib_SOURCES augmentation.
30078         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
30079
30080 2006-11-12  Jim Meyering  <jim@meyering.net>
30081
30082         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
30083         file descriptors.  This also averts a failure on systems with
30084         native openat support when a traversed directory lacks "x" access.
30085         * lib/fts_.h: Include "i-ring.h"
30086         (struct FTS) [fts_fd_ring]: New member.
30087         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
30088         (FCHDIR): Add parentheses.
30089         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
30090         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
30091         When descending, rather than simply closing the previous
30092         fts_cwd_fd value, push that file descriptor onto the ring.
30093         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
30094         (fts_open): Initialize the new fd_ring member.
30095         (fts_close): Clear the ring.
30096         (fts_safe_changedir): When possible, use our new fd_ring to skip
30097         the diropen and fstat and dev/ino comparison that would normally
30098         accompany a virtual `chdir ("..")'.
30099
30100         * modules/fts (Depends-on): Add i-ring.
30101         * modules/i-ring: New module.
30102         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
30103         * m4/i-ring.m4: New file.
30104
30105 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30106
30107         * gnulib-tool (func_create_testdir): Fix replacement of
30108         `build-aux' in configure.ac.  Run autotools in gltests
30109         subdirectory.
30110         (func_create_testdir, func_create_megatestdir, test): There is
30111         no need for '--force' in most autotool invocations in a new
30112         tree.  Actually fail the whole test if any of the tools, or the
30113         configure or make stages fail.
30114
30115         Sync from Automake.
30116         * build-aux/gnupload: Revert last change.  Add pointer to upload
30117         instructions of the GNU Maintenance Instructions.
30118         Suggestion by Karl Berry.
30119
30120 2006-11-10  Jim Meyering  <jim@meyering.net>
30121
30122         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
30123
30124 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30125
30126         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
30127         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
30128         (bind_textdomain_codeset) [! ENABLE_NLS]:
30129         Evaluate all the arguments.  That way, callers get compatible behavior
30130         if the arguments have side effects.  Also, it avoids some GCC
30131         diagnostics in some cases; Joel E. Denny reported problems when Bison
30132         was configured with --enable-gcc-warnigs.
30133
30134 2006-11-10  Jim Meyering  <jim@meyering.net>
30135
30136         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
30137         relevant options in CFLAGS (like -O, -fno-inline) are taken into
30138         account.
30139
30140 2006-11-10  Jim Meyering  <jim@meyering.net>
30141
30142         * modules/inline: New file/module.
30143         * modules/xalloc (Files): Remove m4/inline.m4.
30144         (Depends-on): Add inline, instead.
30145         * modules/oset: Likewise.
30146         * modules/list: Likewise.
30147
30148 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30149
30150         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
30151         Problem reported by Matthew Woehlke.
30152
30153 2006-11-09  Bruno Haible  <bruno@clisp.org>
30154
30155         * lib/tempname.c (gen_tempname): Remove variant that invokes
30156         __gen_tempname.
30157         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
30158         __gen_tempname.
30159
30160 2006-11-08  Bruno Haible  <bruno@clisp.org>
30161
30162         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
30163         to 'yes' instead of 'cross-compiling'.
30164
30165 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30166
30167         * lib/quotearg.h (quotearg_free): New decl.
30168         * lib/quotearg.c (quotearg_free): New function.
30169         (slot0, nslots, slotvec0, slotvec):
30170         Now file-scope so that quotearg_free can get at them.
30171
30172 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30173
30174         Sync from Automake.
30175         * build-aux/gnupload: Add missing 'gnu' to example URL.
30176         Report by Karl Berry.
30177
30178 2006-11-08  Bruno Haible  <bruno@clisp.org>
30179
30180         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
30181         Suggested by Paul Eggert.
30182
30183 2006-11-08  Jim Meyering  <jim@meyering.net>
30184
30185         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
30186         It's already included if !_LIBC.
30187         (fts_safe_changedir): Add a comment.
30188
30189 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30190
30191         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
30192         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
30193         Matthew Woehlke.
30194
30195         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
30196         definitions up, to avoid colliding with change below.
30197         (static_inline) [HAVE_INLINE]: New macro.
30198         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
30199         Provide extern decls when !HAVE_INLINE.  Do not define unless
30200         static_inline is defined, either by us or by xmalloc.c.  Use
30201         static_inline rather than static inline.
30202         (XCALLOC): Optimize sizeof(T) = 1 case.
30203         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
30204
30205 2006-11-07  Bruno Haible  <bruno@clisp.org>
30206
30207         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
30208         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
30209         AC_C_INLINE.
30210         * modules/xalloc (Files): Add m4/inline.m4.
30211
30212 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30213
30214         * README: Fix typo.
30215         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
30216         (Miscellanous Notes): ...from this.
30217
30218 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30219
30220         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
30221         Mention that offsetof should be used instead of sizeof.
30222         From Bruno Haible.
30223
30224 2006-11-07  Bruno Haible  <bruno@clisp.org>
30225
30226         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
30227
30228 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30229
30230         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30231         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
30232         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30233         (gl_tree_add_before, gl_tree_add_after):
30234         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
30235         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
30236         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30237         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
30238         (gl_linked_add_after, gl_linked_add_at): Likewise.
30239         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
30240         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30241         (gl_tree_add_before, gl_tree_add_after): Likewise.
30242         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
30243         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
30244         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30245
30246 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30247
30248         * lib/gl_oset.h: Use C comment style, not C++ comment style.
30249
30250 2006-11-06  Bruno Haible  <bruno@clisp.org>
30251
30252         * m4/inline.m4: New file.
30253         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
30254         * modules/list (Files): Add m4/inline.m4.
30255         * modules/oset (Files): Likewise.
30256
30257 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30258
30259         * lib/idcache.c: Include <stddef.h>, for offsetof.
30260         (struct userid.name): Change from char * to a flexible array member.
30261         All uses changed.
30262         * modules/idcache (Depends-on): Add flexmember.
30263
30264         * MODULES.html.sh (Core language properties): New module flexmember.
30265         * modules/flexmember, m4/flexmember.m4: New files.
30266
30267         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
30268         inline functions that are identical with the old xnmalloc_inline,
30269         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
30270         that we can avoid some unnecessary integer multiplications and
30271         divisions in the common case where the element size is known at
30272         compile time.
30273         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
30274         needed.
30275         (xnboundedmalloc): Remove.
30276         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
30277         arguments, for consistency with rest of this header.
30278         (xcharalloc): Rewrite using XNMALLOC.
30279         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
30280         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
30281         versions have been moved to lib/xalloc.h and renamed to be the
30282         non-*_inline versions.
30283         (xmalloc, xrealloc): Implement without reference to the xnmalloc
30284         and xnrealloc functions, since those functions are now inline and
30285         now call us.
30286         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
30287         renaming described above.
30288         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
30289         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
30290         captures the dependency in AC_C_INLINE.
30291
30292         New module canonicalize-lgpl, proposed by Charles Wilson in
30293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
30294         with a few small changes afterwards.
30295         * MODULES.html.sh (File system functions): New module
30296         canonicalize-lgpl.
30297         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
30298         and canonicalize_file_name.
30299         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
30300         * modules/canonicalize-lgpl: New files.
30301
30302 2006-11-05  Bruno Haible  <bruno@clisp.org>
30303
30304         * gnulib-tool (func_import, func_create_testdir): Create directories
30305         also for files in subdirectories of lib/.
30306
30307 2006-11-05  Bruno Haible  <bruno@clisp.org>
30308
30309         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
30310         ANSI C compliant.
30311
30312 2006-11-03  Bruno Haible  <bruno@clisp.org>
30313
30314         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30315         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
30316         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
30317         (xnboundedmalloc): New inline function.
30318         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
30319         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
30320         xmalloc.
30321         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
30322         xmalloc.
30323         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
30324         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
30325         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
30326         xmalloc.
30327         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30328         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
30329         xmalloc.
30330         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
30331         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30332         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
30333         xmalloc.
30334         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30335         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
30336         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30337         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
30338         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
30339         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
30340         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
30341
30342 2006-11-03  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/c-ctype.h [C++]: Define functions without name mangling.
30345         * lib/fwriteerror.h [C++]: Likewise.
30346         * lib/gcd.h [C++]: Likewise.
30347         * lib/linebreak.h [C++]: Likewise.
30348
30349 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30350
30351         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
30352         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
30353         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
30354         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30355         Check for functions and headers just once.
30356         Check for declaration of canonicalize_file_name.
30357         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
30358
30359 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30360
30361         * gnulib-tool (func_import): Fix typo in actioncmd.
30362
30363 2006-11-02  Bruno Haible  <bruno@clisp.org>
30364
30365         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
30366         newline sequence in the Makefile.am snippet as a space, like "make"
30367         does.
30368         Reported by Roger Persson <perrog@gmail.com>.
30369
30370 2006-11-01  Bruno Haible  <bruno@clisp.org>
30371
30372         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
30373         already declared in <string.h>.
30374         * lib/strcase.h (strncasecmp): Don't declare it if yes.
30375
30376 2006-11-01  Bruno Haible  <bruno@clisp.org>
30377
30378         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
30379         * lib/strcase.h: Include <string.h>.
30380         (strcasecmp): Define to rpl_strcasecmp here.
30381
30382 2006-11-01  Bruno Haible  <bruno@clisp.org>
30383
30384         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
30385
30386 2006-11-01  Eric Blake  <ebb9@byu.net>
30387
30388         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
30389
30390         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
30391
30392 2006-10-29  Bruno Haible  <bruno@clisp.org>
30393
30394         Make it compile in C++ mode.
30395         * lib/full-write.c (full_rw): Add a cast.
30396
30397 2006-11-01  Bruno Haible  <bruno@clisp.org>
30398
30399         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
30400         be POSIX compliant.
30401         Reported by Roger Persson <perrog@gmail.com>.
30402
30403 2006-11-01  Eric Blake  <ebb9@byu.net>
30404
30405         * lib/getopt_.h: Fix comments.
30406
30407 2006-10-31  Eric Blake  <ebb9@byu.net>
30408
30409         * modules/tmpdir (Depends-on): Add sys_stat.
30410         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
30411         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
30412         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
30413         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
30414         tempname.
30415
30416 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30417
30418         Avoid some C++ diagnostics reported by Bruno Haible.
30419         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
30420         xmalloc.
30421         (quotearg_alloc): Use xcharalloc rather than xmalloc.
30422         (struct slotvec): Move to top level.
30423         (quotearg_n_options): Rewrite to avoid xmalloc.
30424         * lib/xalloc.h (xcharalloc): New function.
30425         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
30426         [defined __cplusplus]: Add function template that provides result
30427         type propagation.  This part of the change is from Bruno Haible.
30428
30429 2006-10-29  Bruno Haible  <bruno@clisp.org>
30430
30431         Make it compile in C++ mode.
30432         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
30433         * lib/strnlen1.c (strnlen1): Cast memchr result.
30434         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
30435         * lib/clean-temp.c (string_equals, string_hash): Add casts.
30436         (create_temp_dir): Rename local variable 'template'.
30437         (compile_csharp_using_sscli): Add cast.
30438         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
30439         * lib/findprog.c (find_in_path): Likewise.
30440         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
30441         * lib/wait-process.c (register_slave_subprocess): Likewise.
30442
30443 2006-10-22  Bruno Haible  <bruno@clisp.org>
30444
30445         * modules/tsearch: New file.
30446         * lib/tsearch.h: New file.
30447         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
30448         * m4/tsearch.m4: New file.
30449         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
30450
30451 2006-10-29  Eric Blake  <ebb9@byu.net>
30452
30453         * lib/arcfour.c: Assume config.h.
30454         * lib/arctwo.c: Likewise.
30455         * lib/base64.c: Likewise.
30456         * lib/check-version.c: Likewise.
30457         * lib/crc.c: Likewise.
30458         * lib/des.c: Likewise.
30459         * lib/gc-gnulib.c: Likewise.
30460         * lib/gc-libgcrypt.c: Likewise.
30461         * lib/gc-pbkdf2-sha1.c: Likewise.
30462         * lib/getaddrinfo.c: Likewise.
30463         * lib/getdelim.c: Likewise.
30464         * lib/getline.c: Likewise.
30465         * lib/hmac-md5.c: Likewise.
30466         * lib/hmac-sha1.c: Likewise.
30467         * lib/iconvme.c: Likewise.
30468         * lib/md2.c: Likewise.
30469         * lib/md4.c: Likewise.
30470         * lib/memxor.c: Likewise.
30471         * lib/read-file.c: Likewise.
30472         * lib/readline.c: Likewise.
30473         * lib/rijndael-alg-fst.c: Likewise.
30474         * lib/rijndael-api-fst.c: Likewise.
30475         * lib/xgetdomainname.c: Likewise.
30476
30477 2006-10-28  Eric Blake  <ebb9@byu.net>
30478
30479         * lib/xstrndup.c: Assume config.h.
30480
30481 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30482
30483         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
30484         stat-macros.h is now for our own macros, whereas stat_h is for
30485         macros in the <sys/stat.h> name space.
30486         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
30487         (STAT_MACROS_H): Remove.
30488         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
30489         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
30490         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
30491         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
30492         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
30493         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
30494         Move these macros to ...
30495         * lib/stat_.h: here.  Don't include stat-macros.h.
30496         * lib/canonicalize.c: Don't include stat-macros.h.
30497         * lib/chown.c: Likewise.
30498         * lib/euidaccess.c: Likewise.
30499         * lib/file-type.c: Likewise.
30500         * lib/filemode.c: Likewise.
30501         * lib/glob.c: Likewise.
30502         * lib/isapipe.c: Likewise.
30503         * lib/lchown.c: Likewise.
30504         * lib/lstat.c: Likewise.
30505         * lib/mkdir-p.c: Likewise.
30506         * lib/rmdir.c: Likewise.
30507         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
30508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
30509         unless mkdir isn't declared, to speed up 'configure'.
30510         Always create sys/stat.h, since it's unlikely any real sys/stat.h
30511         would define all the S_* symbols.
30512         * modules/canonicalize (Depends-on):
30513         Depend on sys_stat, not stat-macros.
30514         * modules/chown: Likewise.
30515         * modules/euidaccess: Likewise.
30516         * modules/filemode: Likewise.
30517         * modules/file-type: Likewise.
30518         * modules/glob: Likewise.
30519         * modules/isapipe: Likewise.
30520         * modules/lchown: Likewise.
30521         * modules/lstat: Likewise.
30522         * modules/mkancesdirs: Likewise.
30523         * modules/rmdir: Likewise.
30524         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
30525         * modules/modechange: Likewise.
30526         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
30527         (configure.ac): Remove gl_STAT_MACROS.
30528         * modules/sys_stat (Depends-on): Remove stat-macros.
30529
30530 2006-10-27  Bruno Haible  <bruno@clisp.org>
30531
30532         * m4/signed.m4: Remove file.
30533         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
30534         invocation.
30535         * modules/vasnprintf (Files): Remove m4/signed.m4.
30536
30537 2006-10-27  Bruno Haible  <bruno@clisp.org>
30538
30539         Update to GNU gettext 0.16.
30540         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
30541         m4/inttypes-h.m4, m4/signed.m4.
30542         * m4/gettext.m4: Update to GNU gettext 0.16.
30543         * m4/intl.m4: New file, from GNU gettext.
30544         * m4/intldir.m4: New file, from GNU gettext.
30545         * config/srclist.txt: Update
30546
30547 2006-10-27  Eric Blake  <ebb9@byu.net>
30548
30549         * MODULES.html.sh: Document tempname.
30550         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
30551         dependencies.
30552         (Files): Move lib/tempname.c...
30553         * modules/tempname: ...to this new module.
30554         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
30555         (gl_PREREQ_TEMPNAME): Move...
30556         * m4/tempname.m4: ...to this new file.
30557         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
30558         * modules/sys_stat (Depends-on): Add stat-macros.
30559         * lib/stat_.h (includes): Pick up stat macros.
30560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
30561         if stat macros are broken.
30562         * lib/tempname.c (includes): No need to include "stat-macros.h".
30563         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
30564         (direxists, __path_search) [!_LIBC]: Don't compile these in
30565         gnulib; the tmpdir module covers that.
30566         * lib/tempname.h: New file.
30567
30568 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30569
30570         * COPYING: Explain how gnulib-tool converts licence headers.
30571         Almost all wording by Eric Blake.
30572
30573 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
30574
30575         * lib/mbchar.h (is_basic_table): Make read-only.
30576         * lib/mbchar.c (is_basic_table): Likewise.
30577         Reported by John Darrington.
30578
30579 2006-10-25  Bruno Haible  <bruno@clisp.org>
30580
30581         * lib/progname.h (set_program_name): Undefine before defining.
30582
30583 2006-10-25  Bruno Haible  <bruno@clisp.org>
30584
30585         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
30586         false for non-gcc C++ compilers.
30587         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30588
30589 2006-10-24  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
30592         iconv implementations like Irix iconv.
30593
30594 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30595
30596         * modules/vararrays: New file.
30597         * m4/vararrays.m4: New file, taken from diffutils.
30598         * MODULES.html.sh: New module vararrays.
30599
30600 2006-10-24  Karl Berry  <karl@gnu.org>
30601
30602         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
30603         Don't call GNU Unix.
30604
30605 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30606
30607         * users.txt: Add Libtool.
30608
30609         Sync from Libtool:
30610
30611         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30612
30613         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
30614         to gnulib's policy of including config.h unconditionally.
30615
30616 2006-10-24  Bruno Haible  <bruno@clisp.org>
30617
30618         * modules/wcwidth (Files): Add m4/wint_t.m4.
30619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
30620         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
30621
30622 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30623
30624         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
30625         to pacify GCC with some -W flags enabled.  Problem reported by
30626         Bruno Haible.
30627
30628 2006-10-24  Jim Meyering  <jim@meyering.net>
30629
30630         * MODULES.html.sh: Remove uinttostr.  It's not a module.
30631         Reported by Karl Berry.
30632
30633 2006-10-23  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
30636
30637 2006-10-24  Bruno Haible  <bruno@clisp.org>
30638
30639         * lib/gl_list.h: Use C comment style, not C++ comment style.
30640
30641 2006-10-23  Eric Blake  <ebb9@byu.net>
30642
30643         * lib/getaddrinfo.c (includes): Add missing include.
30644
30645 2006-10-23  Bruno Haible  <bruno@clisp.org>
30646             Paul Eggert  <eggert@cs.ucla.edu>
30647
30648         Ability to rename obstack_free.
30649         * lib/obstack.h (__obstack_free): New macro. Declare instead of
30650         obstack_free.
30651         (obstack_free): Invoke the __obstack_free macro.
30652         * lib/obstack.c (obstack_free): Use __obstack_free macro.
30653
30654 2006-10-23  Bruno Haible  <bruno@clisp.org>
30655             Paul Eggert  <eggert@cs.ucla.edu>
30656
30657         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
30658         __argc, __argv from the declaration. (They are defined as macros on
30659         mingw.)
30660
30661 2006-10-22  Bruno Haible  <bruno@clisp.org>
30662
30663         * doc/gnulib-intro.texi: New file.
30664         * doc/gnulib.texi: Include it.
30665
30666 2006-10-21  Bruno Haible  <bruno@clisp.org>
30667
30668         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
30669         "Introduction", "Miscellanous Notes", "Particular Modules".
30670
30671 2006-10-21  Bruno Haible  <bruno@clisp.org>
30672
30673         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30674         Change mostlyclean-local rule to avoid sh syntax error from bash
30675         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
30676
30677 2006-10-23  Jim Meyering  <jim@meyering.net>
30678
30679         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
30680         in place of snprintf.
30681
30682         * modules/inttostr (Files): Add lib/uinttostr.c.
30683         * lib/uinttostr.c (inttostr): New file/function.
30684         * lib/inttostr.h (uinttostr): Declare.
30685         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
30686         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
30687         Add uinttostr.
30688         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
30689
30690 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30691
30692         * lib/canonicalize.c (ELOOP): Define if not already defined.
30693         Problem reported by Bruno Haible in
30694         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
30695
30696 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30697
30698         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
30699         Problem reported by Perry Smith and Ville Laurikari.
30700
30701         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
30702         uses.
30703
30704 2006-10-19  Bruno Haible  <bruno@clisp.org>
30705
30706         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
30707         for mingw.
30708
30709 2006-10-19  Bruno Haible  <bruno@clisp.org>
30710
30711         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
30712         Needed for mingw.
30713
30714 2006-10-19  Bruno Haible  <bruno@clisp.org>
30715
30716         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
30717
30718 2006-10-19  Bruno Haible  <bruno@clisp.org>
30719
30720         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
30721         it.
30722
30723 2006-10-19  Bruno Haible  <bruno@clisp.org>
30724
30725         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
30726         invocation.
30727
30728 2006-10-19  Bruno Haible  <bruno@clisp.org>
30729
30730         * gnulib-tool (func_create_testdir): Don't include ftruncate and
30731         mountlist by default.
30732
30733 2006-10-16  Bruno Haible  <bruno@clisp.org>
30734
30735         * lib/c-strstr.c: Include c-strstr.h.
30736
30737 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30738
30739         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
30740         in a slash.
30741
30742 2006-10-18  Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/lock.h [C++]: Wrap definitions in extern "C".
30745
30746 2006-10-18  Bruno Haible  <bruno@clisp.org>
30747
30748         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
30749         gl_LIBOBJS list.
30750
30751 2006-10-18  Bruno Haible  <bruno@clisp.org>
30752
30753         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
30754
30755 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
30756
30757         * lib/xstrtol.h: Include gettext.h.
30758         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
30759         Problem reported by Eric Blake.
30760         * modules/xstrtol (Depends-on): Add gettext-h.
30761
30762 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
30763
30764         * lib/strftime.c (advance): New macro.
30765         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
30766         incomplete type, so you can't add 0 to it.  Problem and patch
30767         reported by Eelco Dolstra for dietlibc.
30768
30769 2006-10-18  Jim Meyering  <jim@meyering.net>
30770
30771         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
30772         type for a local, and rename it: s/up/user_proc/.
30773
30774 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
30775
30776         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
30777         READ_UTMP_USER_PROCESS.
30778         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
30779
30780 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30781
30782         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
30783         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
30784
30785 2006-10-17  Eric Blake  <ebb9@byu.net>
30786
30787         * lib/sigprocmask.c (sigprocmask): Fix typo.
30788
30789         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
30790
30791         * modules/clean-temp (Makefile.am): Don't add to make output...
30792         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
30793         config.h.
30794
30795 2006-10-17  Bruno Haible  <bruno@clisp.org>
30796
30797         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
30798         differently if DEFAULT_TEXT_DOMAIN is set.
30799
30800 2006-10-16  Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/clean-temp.c: Include fwriteerror.h.
30803
30804 2006-10-16  Bruno Haible  <bruno@clisp.org>
30805
30806         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
30807
30808 2006-10-16  Bruno Haible  <bruno@clisp.org>
30809
30810         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
30811         * lib/sigprocmask.h: Include <sys/types.h>.
30812         (sigset_t): Use the system's definition if present.
30813
30814 2006-10-17  Eric Blake  <ebb9@byu.net>
30815
30816         * lib/xvasprintf.c (includes): Assume config.h.
30817         * lib/xasprintf.c (includes): Likewise.
30818
30819 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30820
30821         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
30822         at least as wide as intmax_t.
30823
30824 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
30825
30826         (Imported from Automake.)
30827         * build-aux/gnupload: Update to version 1.1 of directive file.
30828
30829 2006-10-16  Eric Blake  <ebb9@byu.net>
30830
30831         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
30832         match Automake 1.10a.
30833
30834 2006-10-14  Bruno Haible  <bruno@clisp.org>
30835
30836         * modules/sigprocmask: New file.
30837         * lib/sigprocmask.h: New file.
30838         * lib/sigprocmask.c: New file.
30839         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
30840         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
30841         request sigprocmask.o.
30842         (gl_PREREQ_SIGPROCMASK): New macro.
30843         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
30844         (Depends-on): Add sigprocmask.
30845         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
30846         gt_SIGNALBLOCKING. Test for 'raise' only once.
30847         * lib/fatal-signal.c: Include sigprocmask.h.
30848         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
30849         unblock_fatal_signals): Define always.
30850         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30851         sigprocmask.
30852
30853 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30854
30855         Sync from Automake.
30856         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
30857         which incorrectly sets the mode of an existing destination
30858         directory.  In some cases the unpatched install-sh could do the
30859         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
30860         system.  We hope this is rare in practice, but it's clearly worth
30861         fixing.  Problem reported by Alex Unleashed in
30862         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
30863         Also, don't bother to check for -m bugs unless we're using -m;
30864         suggested by Stepan Kasal.
30865
30866 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30867
30868         Sync from Automake.
30869         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
30870         `-c' flag, so they appear at the same position as in %FASTDEP%
30871         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
30872         which ignores unknown options only after the first non-option.
30873         Bug report against M4 by Nelson H. F. Beebe.
30874
30875 2006-10-13  Jim Meyering  <jim@meyering.net>
30876
30877         Fix a bug in yesterday's change.
30878         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
30879         p->fts_statp->st_dev would be used uninitialized.
30880         Ensures that we always call fts_stat on the very first entry.
30881         Miklos Szeredi reported that find -xdev stopped working.
30882
30883 2006-10-12  Bruno Haible  <bruno@clisp.org>
30884
30885         * gnulib-tool (func_get_automake_snippet): Append an automatically
30886         computed EXTRA_DIST augmentation.
30887         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
30888         * modules/alloca-opt (Makefile.am): Likewise.
30889         * modules/allocsa (Makefile.am): Likewise.
30890         * modules/arcfour (Makefile.am): Likewise.
30891         * modules/arctwo (Makefile.am): Likewise.
30892         * modules/argmatch (Makefile.am): Likewise.
30893         * modules/argz (Makefile.am): Likewise.
30894         * modules/atexit (Makefile.am): Likewise.
30895         * modules/backupfile (Makefile.am): Likewise.
30896         * modules/byteswap (Makefile.am): Likewise.
30897         * modules/c-strtod (Makefile.am): Likewise.
30898         * modules/c-strtold (Makefile.am): Likewise.
30899         * modules/calloc (Makefile.am): Likewise.
30900         * modules/canon-host (Makefile.am): Likewise.
30901         * modules/canonicalize (Makefile.am): Likewise.
30902         * modules/chdir-long (Makefile.am): Likewise.
30903         * modules/chdir-safer (Makefile.am): Likewise.
30904         * modules/check-version (Makefile.am): Likewise.
30905         * modules/chown (Makefile.am): Likewise.
30906         * modules/cloexec (Makefile.am): Likewise.
30907         * modules/close-stream (Makefile.am): Likewise.
30908         * modules/closeout (Makefile.am): Likewise.
30909         * modules/crc (Makefile.am): Likewise.
30910         * modules/csharpexec (Makefile.am): Likewise.
30911         * modules/cycle-check (Makefile.am): Likewise.
30912         * modules/des (Makefile.am): Likewise.
30913         * modules/dev-ino (Makefile.am): Likewise.
30914         * modules/dirfd (Makefile.am): Likewise.
30915         * modules/dirname (Makefile.am): Likewise.
30916         * modules/dup2 (Makefile.am): Likewise.
30917         * modules/eealloc (Makefile.am): Likewise.
30918         * modules/error (Makefile.am): Likewise.
30919         * modules/euidaccess (Makefile.am): Likewise.
30920         * modules/exclude (Makefile.am): Likewise.
30921         * modules/exitfail (Makefile.am): Likewise.
30922         * modules/fcntl-safer (Makefile.am): Likewise.
30923         * modules/fcntl (Makefile.am): Likewise.
30924         * modules/file-type (Makefile.am): Likewise.
30925         * modules/fileblocks (Makefile.am): Likewise.
30926         * modules/filemode (Makefile.am): Likewise.
30927         * modules/filenamecat (Makefile.am): Likewise.
30928         * modules/fnmatch (Makefile.am): Likewise.
30929         * modules/fopen-safer (Makefile.am): Likewise.
30930         * modules/fpending (Makefile.am): Likewise.
30931         * modules/fprintftime (Makefile.am): Likewise.
30932         * modules/free (Makefile.am): Likewise.
30933         * modules/fsusage (Makefile.am): Likewise.
30934         * modules/ftruncate (Makefile.am): Likewise.
30935         * modules/fts (Makefile.am): Likewise.
30936         * modules/gc-arcfour (Makefile.am): Likewise.
30937         * modules/gc-des (Makefile.am): Likewise.
30938         * modules/gc-hmac-md5 (Makefile.am): Likewise.
30939         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
30940         * modules/gc-md4 (Makefile.am): Likewise.
30941         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30942         * modules/gc-sha1 (Makefile.am): Likewise.
30943         * modules/gc (Makefile.am): Likewise.
30944         * modules/getaddrinfo (Makefile.am): Likewise.
30945         * modules/getcwd (Makefile.am): Likewise.
30946         * modules/getdelim (Makefile.am): Likewise.
30947         * modules/getdomainname (Makefile.am): Likewise.
30948         * modules/getgroups (Makefile.am): Likewise.
30949         * modules/gethostname (Makefile.am): Likewise.
30950         * modules/gethrxtime (Makefile.am): Likewise.
30951         * modules/getline (Makefile.am): Likewise.
30952         * modules/getloadavg (Makefile.am): Likewise.
30953         * modules/getlogin_r (Makefile.am): Likewise.
30954         * modules/getndelim2 (Makefile.am): Likewise.
30955         * modules/getopt (Makefile.am): Likewise.
30956         * modules/getpagesize (Makefile.am): Likewise.
30957         * modules/getpass-gnu (Makefile.am): Likewise.
30958         * modules/getpass (Makefile.am): Likewise.
30959         * modules/getsubopt (Makefile.am): Likewise.
30960         * modules/gettime (Makefile.am): Likewise.
30961         * modules/gettimeofday (Makefile.am): Likewise.
30962         * modules/getugroups (Makefile.am): Likewise.
30963         * modules/getusershell (Makefile.am): Likewise.
30964         * modules/glob (Makefile.am): Likewise.
30965         * modules/group-member (Makefile.am): Likewise.
30966         * modules/hard-locale (Makefile.am): Likewise.
30967         * modules/hash (Makefile.am): Likewise.
30968         * modules/hmac-md5 (Makefile.am): Likewise.
30969         * modules/hmac-sha1 (Makefile.am): Likewise.
30970         * modules/human (Makefile.am): Likewise.
30971         * modules/idcache (Makefile.am): Likewise.
30972         * modules/imaxabs (Makefile.am): Likewise.
30973         * modules/imaxdiv (Makefile.am): Likewise.
30974         * modules/inet_ntop (Makefile.am): Likewise.
30975         * modules/inet_pton (Makefile.am): Likewise.
30976         * modules/intprops (Makefile.am): Likewise.
30977         * modules/inttostr (Makefile.am): Likewise.
30978         * modules/inttypes (Makefile.am): Likewise.
30979         * modules/isapipe (Makefile.am): Likewise.
30980         * modules/javaversion (Makefile.am): Likewise.
30981         * modules/lchmod (Makefile.am): Likewise.
30982         * modules/lchown (Makefile.am): Likewise.
30983         * modules/localcharset (Makefile.am): Likewise.
30984         * modules/long-options (Makefile.am): Likewise.
30985         * modules/lstat (Makefile.am): Likewise.
30986         * modules/malloc (Makefile.am): Likewise.
30987         * modules/mathl (Makefile.am): Likewise.
30988         * modules/mbchar (Makefile.am): Likewise.
30989         * modules/md2 (Makefile.am): Likewise.
30990         * modules/md4 (Makefile.am): Likewise.
30991         * modules/md5 (Makefile.am): Likewise.
30992         * modules/memcasecmp (Makefile.am): Likewise.
30993         * modules/memchr (Makefile.am): Likewise.
30994         * modules/memcmp (Makefile.am): Likewise.
30995         * modules/memcoll (Makefile.am): Likewise.
30996         * modules/memcpy (Makefile.am): Likewise.
30997         * modules/memmem (Makefile.am): Likewise.
30998         * modules/memmove (Makefile.am): Likewise.
30999         * modules/mempcpy (Makefile.am): Likewise.
31000         * modules/memrchr (Makefile.am): Likewise.
31001         * modules/memset (Makefile.am): Likewise.
31002         * modules/memxor (Makefile.am): Likewise.
31003         * modules/mkancesdirs (Makefile.am): Likewise.
31004         * modules/mkdir-p (Makefile.am): Likewise.
31005         * modules/mkdir (Makefile.am): Likewise.
31006         * modules/mkdtemp (Makefile.am): Likewise.
31007         * modules/mkstemp (Makefile.am): Likewise.
31008         * modules/mktime (Makefile.am): Likewise.
31009         * modules/modechange (Makefile.am): Likewise.
31010         * modules/mountlist (Makefile.am): Likewise.
31011         * modules/nanosleep (Makefile.am): Likewise.
31012         * modules/obstack (Makefile.am): Likewise.
31013         * modules/openat (Makefile.am): Likewise.
31014         * modules/pagealign_alloc (Makefile.am): Likewise.
31015         * modules/pathmax (Makefile.am): Likewise.
31016         * modules/physmem (Makefile.am): Likewise.
31017         * modules/poll (Makefile.am): Likewise.
31018         * modules/posixtm (Makefile.am): Likewise.
31019         * modules/posixver (Makefile.am): Likewise.
31020         * modules/putenv (Makefile.am): Likewise.
31021         * modules/quote (Makefile.am): Likewise.
31022         * modules/quotearg (Makefile.am): Likewise.
31023         * modules/raise (Makefile.am): Likewise.
31024         * modules/read-file (Makefile.am): Likewise.
31025         * modules/readline (Makefile.am): Likewise.
31026         * modules/readlink (Makefile.am): Likewise.
31027         * modules/readtokens (Makefile.am): Likewise.
31028         * modules/readutmp (Makefile.am): Likewise.
31029         * modules/realloc (Makefile.am): Likewise.
31030         * modules/regex (Makefile.am): Likewise.
31031         * modules/rename-dest-slash (Makefile.am): Likewise.
31032         * modules/rename (Makefile.am): Likewise.
31033         * modules/rijndael (Makefile.am): Likewise.
31034         * modules/rmdir (Makefile.am): Likewise.
31035         * modules/rpmatch (Makefile.am): Likewise.
31036         * modules/safe-read (Makefile.am): Likewise.
31037         * modules/safe-write (Makefile.am): Likewise.
31038         * modules/same-inode (Makefile.am): Likewise.
31039         * modules/same (Makefile.am): Likewise.
31040         * modules/save-cwd (Makefile.am): Likewise.
31041         * modules/savedir (Makefile.am): Likewise.
31042         * modules/setenv (Makefile.am): Likewise.
31043         * modules/settime (Makefile.am): Likewise.
31044         * modules/sha1 (Makefile.am): Likewise.
31045         * modules/sig2str (Makefile.am): Likewise.
31046         * modules/snprintf (Makefile.am): Likewise.
31047         * modules/stat-macros (Makefile.am): Likewise.
31048         * modules/stat-time (Makefile.am): Likewise.
31049         * modules/stdbool (Makefile.am): Likewise.
31050         * modules/stdint (Makefile.am): Likewise.
31051         * modules/stdlib-safer (Makefile.am): Likewise.
31052         * modules/stpcpy (Makefile.am): Likewise.
31053         * modules/stpncpy (Makefile.am): Likewise.
31054         * modules/strcase (Makefile.am): Likewise.
31055         * modules/strcasestr (Makefile.am): Likewise.
31056         * modules/strchrnul (Makefile.am): Likewise.
31057         * modules/strcspn (Makefile.am): Likewise.
31058         * modules/strdup (Makefile.am): Likewise.
31059         * modules/strerror (Makefile.am): Likewise.
31060         * modules/strftime (Makefile.am): Likewise.
31061         * modules/strndup (Makefile.am): Likewise.
31062         * modules/strnlen (Makefile.am): Likewise.
31063         * modules/strpbrk (Makefile.am): Likewise.
31064         * modules/strsep (Makefile.am): Likewise.
31065         * modules/strstr (Makefile.am): Likewise.
31066         * modules/strtod (Makefile.am): Likewise.
31067         * modules/strtoimax (Makefile.am): Likewise.
31068         * modules/strtok_r (Makefile.am): Likewise.
31069         * modules/strtol (Makefile.am): Likewise.
31070         * modules/strtoll (Makefile.am): Likewise.
31071         * modules/strtoul (Makefile.am): Likewise.
31072         * modules/strtoull (Makefile.am): Likewise.
31073         * modules/strtoumax (Makefile.am): Likewise.
31074         * modules/strverscmp (Makefile.am): Likewise.
31075         * modules/sys_socket (Makefile.am): Likewise.
31076         * modules/sys_stat (Makefile.am): Likewise.
31077         * modules/sysexits (Makefile.am): Likewise.
31078         * modules/time_r (Makefile.am): Likewise.
31079         * modules/timegm (Makefile.am): Likewise.
31080         * modules/timespec (Makefile.am): Likewise.
31081         * modules/tmpfile-safer (Makefile.am): Likewise.
31082         * modules/trim (Makefile.am): Likewise.
31083         * modules/unistd-safer (Makefile.am): Likewise.
31084         * modules/unlinkdir (Makefile.am): Likewise.
31085         * modules/unlocked-io (Makefile.am): Likewise.
31086         * modules/userspec (Makefile.am): Likewise.
31087         * modules/utime (Makefile.am): Likewise.
31088         * modules/utimecmp (Makefile.am): Likewise.
31089         * modules/utimens (Makefile.am): Likewise.
31090         * modules/vasnprintf (Makefile.am): Likewise.
31091         * modules/vasprintf (Makefile.am): Likewise.
31092         * modules/vsnprintf (Makefile.am): Likewise.
31093         * modules/xalloc (Makefile.am): Likewise.
31094         * modules/xgetcwd (Makefile.am): Likewise.
31095         * modules/xnanosleep (Makefile.am): Likewise.
31096         * modules/xreadlink (Makefile.am): Likewise.
31097         * modules/xstrtod (Makefile.am): Likewise.
31098         * modules/xstrtol (Makefile.am): Likewise.
31099         * modules/xstrtold (Makefile.am): Likewise.
31100         * modules/yesno (Makefile.am): Likewise.
31101         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
31102
31103 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31104
31105         * modules/error (Makefile.am): Distribute files through
31106         EXTRA_DIST, not lib_SOURCES.
31107
31108 2006-10-12  Eric Blake  <ebb9@byu.net>
31109
31110         * modules/error (Makefile.am): Distribute files in /lib.
31111         * modules/obstack (Makefile.am): Likewise.
31112
31113 2006-10-12  Bruno Haible  <bruno@clisp.org>
31114
31115         * modules/acl (Makefile.am): Distribute all files in lib/ through
31116         EXTRA_DIST.
31117         * modules/arcfour (Makefile.am): Likewise.
31118         * modules/arctwo (Makefile.am): Likewise.
31119         * modules/argmatch (Makefile.am): Likewise.
31120         * modules/argz (Makefile.am): Likewise.
31121         * modules/atexit (Makefile.am): Likewise.
31122         * modules/backupfile (Makefile.am): Likewise.
31123         * modules/c-strtod (Makefile.am): Likewise.
31124         * modules/c-strtold (Makefile.am): Likewise.
31125         * modules/calloc (Makefile.am): Likewise.
31126         * modules/canon-host (Makefile.am): Likewise.
31127         * modules/canonicalize (Makefile.am): Likewise.
31128         * modules/chdir-long (Makefile.am): Likewise.
31129         * modules/chdir-safer (Makefile.am): Likewise.
31130         * modules/check-version (Makefile.am): Likewise.
31131         * modules/chown (Makefile.am): Likewise.
31132         * modules/cloexec (Makefile.am): Likewise.
31133         * modules/close-stream (Makefile.am): Likewise.
31134         * modules/closeout (Makefile.am): Likewise.
31135         * modules/crc (Makefile.am): Likewise.
31136         * modules/cycle-check (Makefile.am): Likewise.
31137         * modules/des (Makefile.am): Likewise.
31138         * modules/dirfd (Makefile.am): Likewise.
31139         * modules/dirname (Makefile.am): Likewise.
31140         * modules/dup2 (Makefile.am): Likewise.
31141         * modules/euidaccess (Makefile.am): Likewise.
31142         * modules/exclude (Makefile.am): Likewise.
31143         * modules/exitfail (Makefile.am): Likewise.
31144         * modules/fcntl-safer (Makefile.am): Likewise.
31145         * modules/file-type (Makefile.am): Likewise.
31146         * modules/fileblocks (Makefile.am): Likewise.
31147         * modules/filemode (Makefile.am): Likewise.
31148         * modules/filenamecat (Makefile.am): Likewise.
31149         * modules/fnmatch (Makefile.am): Likewise.
31150         * modules/fopen-safer (Makefile.am): Likewise.
31151         * modules/fpending (Makefile.am): Likewise.
31152         * modules/fprintftime (Makefile.am): Likewise.
31153         * modules/free (Makefile.am): Likewise.
31154         * modules/fsusage (Makefile.am): Likewise.
31155         * modules/ftruncate (Makefile.am): Likewise.
31156         * modules/fts (Makefile.am): Likewise.
31157         * modules/gc (Makefile.am): Likewise.
31158         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31159         * modules/getaddrinfo (Makefile.am): Likewise.
31160         * modules/getcwd (Makefile.am): Likewise.
31161         * modules/getdelim (Makefile.am): Likewise.
31162         * modules/getdomainname (Makefile.am): Likewise.
31163         * modules/getgroups (Makefile.am): Likewise.
31164         * modules/gethostname (Makefile.am): Likewise.
31165         * modules/gethrxtime (Makefile.am): Likewise.
31166         * modules/getline (Makefile.am): Likewise.
31167         * modules/getloadavg (Makefile.am): Likewise.
31168         * modules/getlogin_r (Makefile.am): Likewise.
31169         * modules/getopt (Makefile.am): Likewise.
31170         * modules/getpass (Makefile.am): Likewise.
31171         * modules/getpass-gnu (Makefile.am): Likewise.
31172         * modules/getsubopt (Makefile.am): Likewise.
31173         * modules/gettime (Makefile.am): Likewise.
31174         * modules/gettimeofday (Makefile.am): Likewise.
31175         * modules/getugroups (Makefile.am): Likewise.
31176         * modules/getusershell (Makefile.am): Likewise.
31177         * modules/glob (Makefile.am): Likewise.
31178         * modules/group-member (Makefile.am): Likewise.
31179         * modules/hard-locale (Makefile.am): Likewise.
31180         * modules/hash (Makefile.am): Likewise.
31181         * modules/hmac-md5 (Makefile.am): Likewise.
31182         * modules/hmac-sha1 (Makefile.am): Likewise.
31183         * modules/human (Makefile.am): Likewise.
31184         * modules/idcache (Makefile.am): Likewise.
31185         * modules/imaxabs (Makefile.am): Likewise.
31186         * modules/imaxdiv (Makefile.am): Likewise.
31187         * modules/inet_ntop (Makefile.am): Likewise.
31188         * modules/inet_pton (Makefile.am): Likewise.
31189         * modules/inttostr (Makefile.am): Likewise.
31190         * modules/isapipe (Makefile.am): Likewise.
31191         * modules/lchown (Makefile.am): Likewise.
31192         * modules/long-options (Makefile.am): Likewise.
31193         * modules/lstat (Makefile.am): Likewise.
31194         * modules/malloc (Makefile.am): Likewise.
31195         * modules/mathl (Makefile.am): Likewise.
31196         * modules/mbchar (Makefile.am): Likewise.
31197         * modules/md2 (Makefile.am): Likewise.
31198         * modules/md4 (Makefile.am): Likewise.
31199         * modules/md5 (Makefile.am): Likewise.
31200         * modules/memcasecmp (Makefile.am): Likewise.
31201         * modules/memchr (Makefile.am): Likewise.
31202         * modules/memcmp (Makefile.am): Likewise.
31203         * modules/memcoll (Makefile.am): Likewise.
31204         * modules/memcpy (Makefile.am): Likewise.
31205         * modules/memmem (Makefile.am): Likewise.
31206         * modules/memmove (Makefile.am): Likewise.
31207         * modules/mempcpy (Makefile.am): Likewise.
31208         * modules/memrchr (Makefile.am): Likewise.
31209         * modules/memset (Makefile.am): Likewise.
31210         * modules/memxor (Makefile.am): Likewise.
31211         * modules/mkancesdirs (Makefile.am): Likewise.
31212         * modules/mkdir (Makefile.am): Likewise.
31213         * modules/mkdir-p (Makefile.am): Likewise.
31214         * modules/mkdtemp (Makefile.am): Likewise.
31215         * modules/mkstemp (Makefile.am): Likewise.
31216         * modules/mktime (Makefile.am): Likewise.
31217         * modules/modechange (Makefile.am): Likewise.
31218         * modules/mountlist (Makefile.am): Likewise.
31219         * modules/nanosleep (Makefile.am): Likewise.
31220         * modules/openat (Makefile.am): Likewise.
31221         * modules/pagealign_alloc (Makefile.am): Likewise.
31222         * modules/physmem (Makefile.am): Likewise.
31223         * modules/poll (Makefile.am): Likewise.
31224         * modules/posixtm (Makefile.am): Likewise.
31225         * modules/posixver (Makefile.am): Likewise.
31226         * modules/putenv (Makefile.am): Likewise.
31227         * modules/quote (Makefile.am): Likewise.
31228         * modules/quotearg (Makefile.am): Likewise.
31229         * modules/raise (Makefile.am): Likewise.
31230         * modules/read-file (Makefile.am): Likewise.
31231         * modules/readline (Makefile.am): Likewise.
31232         * modules/readlink (Makefile.am): Likewise.
31233         * modules/readtokens (Makefile.am): Likewise.
31234         * modules/readutmp (Makefile.am): Likewise.
31235         * modules/realloc (Makefile.am): Likewise.
31236         * modules/regex (Makefile.am): Likewise.
31237         * modules/rename (Makefile.am): Likewise.
31238         * modules/rename-dest-slash (Makefile.am): Likewise.
31239         * modules/rijndael (Makefile.am): Likewise.
31240         * modules/rmdir (Makefile.am): Likewise.
31241         * modules/rpmatch (Makefile.am): Likewise.
31242         * modules/safe-read (Makefile.am): Likewise.
31243         * modules/safe-write (Makefile.am): Likewise.
31244         * modules/same (Makefile.am): Likewise.
31245         * modules/save-cwd (Makefile.am): Likewise.
31246         * modules/savedir (Makefile.am): Likewise.
31247         * modules/setenv (Makefile.am): Likewise.
31248         * modules/settime (Makefile.am): Likewise.
31249         * modules/sha1 (Makefile.am): Likewise.
31250         * modules/sig2str (Makefile.am): Likewise.
31251         * modules/snprintf (Makefile.am): Likewise.
31252         * modules/stdlib-safer (Makefile.am): Likewise.
31253         * modules/stpcpy (Makefile.am): Likewise.
31254         * modules/stpncpy (Makefile.am): Likewise.
31255         * modules/strcase (Makefile.am): Likewise.
31256         * modules/strcasestr (Makefile.am): Likewise.
31257         * modules/strchrnul (Makefile.am): Likewise.
31258         * modules/strcspn (Makefile.am): Likewise.
31259         * modules/strdup (Makefile.am): Likewise.
31260         * modules/strerror (Makefile.am): Likewise.
31261         * modules/strftime (Makefile.am): Likewise.
31262         * modules/strndup (Makefile.am): Likewise.
31263         * modules/strnlen (Makefile.am): Likewise.
31264         * modules/strpbrk (Makefile.am): Likewise.
31265         * modules/strsep (Makefile.am): Likewise.
31266         * modules/strstr (Makefile.am): Likewise.
31267         * modules/strtod (Makefile.am): Likewise.
31268         * modules/strtoimax (Makefile.am): Likewise.
31269         * modules/strtok_r (Makefile.am): Likewise.
31270         * modules/strtol (Makefile.am): Likewise.
31271         * modules/strtoll (Makefile.am): Likewise.
31272         * modules/strtoul (Makefile.am): Likewise.
31273         * modules/strtoull (Makefile.am): Likewise.
31274         * modules/strtoumax (Makefile.am): Likewise.
31275         * modules/strverscmp (Makefile.am): Likewise.
31276         * modules/time_r (Makefile.am): Likewise.
31277         * modules/timegm (Makefile.am): Likewise.
31278         * modules/tmpfile-safer (Makefile.am): Likewise.
31279         * modules/unistd-safer (Makefile.am): Likewise.
31280         * modules/unlinkdir (Makefile.am): Likewise.
31281         * modules/userspec (Makefile.am): Likewise.
31282         * modules/utime (Makefile.am): Likewise.
31283         * modules/utimecmp (Makefile.am): Likewise.
31284         * modules/utimens (Makefile.am): Likewise.
31285         * modules/vasnprintf (Makefile.am): Likewise.
31286         * modules/vasprintf (Makefile.am): Likewise.
31287         * modules/vsnprintf (Makefile.am): Likewise.
31288         * modules/xalloc (Makefile.am): Likewise.
31289         * modules/xgetcwd (Makefile.am): Likewise.
31290         * modules/xnanosleep (Makefile.am): Likewise.
31291         * modules/xreadlink (Makefile.am): Likewise.
31292         * modules/xstrtod (Makefile.am): Likewise.
31293         * modules/xstrtol (Makefile.am): Likewise.
31294         * modules/xstrtold (Makefile.am): Likewise.
31295         * modules/yesno (Makefile.am): Likewise.
31296
31297 2006-10-12  Jim Meyering  <jim@meyering.net>
31298
31299         * m4/getloadavg.m4: Revert the change below.
31300
31301         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
31302         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
31303         fail with a symlink, which is what coreutils' ./bootstrap now
31304         creates by default.
31305
31306 2006-10-12  Bruno Haible  <bruno@clisp.org>
31307
31308         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
31309         mingw.
31310         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
31311         MSVC and mingw explicitly.
31312
31313 2006-10-11  Simon Josefsson  <jas@extundo.com>
31314             Bruno Haible  <bruno@clisp.org>
31315
31316         Add support for multiple gnulib-tool invocations in the scope of a
31317         single configure.ac file.
31318         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
31319         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
31320         with the same contents as the _LIBADD variable.
31321         (func_emit_initmacro_start, func_emit_initmacro_end,
31322         func_emit_initmacro_done): New functions.
31323         (func_import, func_create_testdir): Invoke them. Allow the identifiers
31324         gl_LIBOBJS and gl_LTLIBOBJS.
31325
31326 2006-10-11  Bruno Haible  <bruno@clisp.org>
31327
31328         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
31329         (func_create_testdir): Don't create po/Makefile.am, don't invoke
31330         autoreconf. Instead, invoke autopoint explicitly but move back the
31331         *.m4 files from gnulib.
31332
31333 2006-10-11  Bruno Haible  <bruno@clisp.org>
31334
31335         * gnulib-tool (func_usage): Make module names after --create-testdir
31336         optional.
31337         (func_create_testdir): If no module was specified, use nearly all
31338         modules.
31339
31340 2006-10-12  Jim Meyering  <jim@meyering.net>
31341
31342         Big performance improvement for fts-based tools that use FTS_NOSTAT.
31343         Avoid spurious inode-mismatch problems on non-POSIX file systems.
31344         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
31345         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
31346         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
31347         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
31348         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
31349         (fts_set_stat_required): New function.
31350         (fts_open): Defer the calls to fts_stat, if possible or requested.
31351         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
31352         into fts_stat itself.
31353         (fts_read): Perform any required (deferred) fts_stat call.
31354         (fts_build): Likewise, for the directory we're about to open and read.
31355         In the readdir loop, carefully decide whether each entry will require
31356         an eventual call to fts_stat, using dirent.d_type info if available.
31357         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
31358         a command line argument into this function.  Update all callers.
31359         Map a return value of FTS_DOT to FTS_D for a command line argument.
31360         * modules/fts (Depends-on): Add d-type.  Alphabetize.
31361         Thanks to Miklos Szeredi for his tenacity and for the initial
31362         bug report about "find" failing on a FUSE-based file system.
31363
31364         * lib/fts.c (fts_open): Use consistent indentation.
31365
31366 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31367
31368         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
31369         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
31370         reported by Jim Meyering.  All uses of cache variables renamed
31371         to match Autoconf's.
31372         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
31373         the other one.
31374
31375         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31376         Fix misspelling in diagnostic.
31377
31378 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31379
31380         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
31381         defined.  Problem reported by Matthew Woehlke.
31382
31383         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
31384         Add support for Tandem NonStop R series.
31385         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
31386         Use new macro.
31387
31388         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
31389         (has_trailing_slash): Omit size arg; all callers changed.
31390         Omit 'inline', since it doesn't help performance and we'd
31391         need to configure it.
31392         Don't count //, ///, etc. as having a trailing slash.
31393         As a side effect, this removes a C99ism reported by Matthew Woehlke.
31394         (rpl_rename_dest_slash): On failure, use rename's errno rather
31395         than (in some cases) an incorrect or junk errno.
31396         Simplify code by removing need to compute length; this does
31397         cause it to make two passes instead of one over the file name,
31398         but it's worth it.
31399
31400         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
31401         change, since Autoconf's version may no longer be appropriate now
31402         that we are using CVS Autoconf's version.  Add support for Tandem.
31403
31404 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31405             Bruno Haible  <bruno@clisp.org>
31406
31407         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
31408         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
31409         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
31410         gl_AC_TYPE_LONG_LONG.
31411
31412         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
31413         instead of HAVE_LONG_LONG.
31414         * lib/printf-args.c (printf_fetchargs): Likewise.
31415         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
31416         * lib/vasnprintf.c (VASNPRINTF): Likewise.
31417         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
31418         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
31419         gl_AC_TYPE_LONG_LONG.
31420
31421 2006-10-11  Bruno Haible  <bruno@clisp.org>
31422
31423         * m4/longlong.m4: Add comments.
31424         * m4/ulonglong.m4: Likewise.
31425
31426 2006-10-10  Bruno Haible  <bruno@clisp.org>
31427
31428         Make it possible to #define stpcpy, strdup to aliases.
31429         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
31430         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
31431
31432 2006-10-10  Bruno Haible  <bruno@clisp.org>
31433
31434         Make it possible to #define gcd to an alias.
31435         * lib/gcd.c: Include config.h.
31436
31437 2006-10-10  Bruno Haible  <bruno@clisp.org>
31438
31439         Make it possible to #define c_isascii to an alias.
31440         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
31441         defined. Undefine the macros before defining them, to avoid gcc
31442         warnings.
31443         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
31444         define NO_C_CTYPE_MACROS early.
31445
31446 2006-10-10  Bruno Haible  <bruno@clisp.org>
31447
31448         Make it possible to #define set_program_name to an alias.
31449         * lib/progname.c: Don't undefine set_program_name; instead, undefine
31450         ENABLE_RELOCATABLE early.
31451
31452 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31453
31454         Port to Tandem NSK OSS, which has 64-bit signed int but at most
31455         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
31456         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
31457         More generally, don't assume that 64-bit signed int is available
31458         if unsigned int is, and vice versa.
31459         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
31460         unsigned symbols, not on their signed counterparts.
31461         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
31462         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
31463         (UINT64_C, UINTMAX_C):
31464         Likewise.
31465         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
31466         unsigned counterparts.
31467         (Have_long_long, Unsigned): New macros.
31468         (Int): Renamed from INT.
31469         (strtoimax): Use the new macros.
31470         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
31471         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
31472         * modules/inttypes (inttypes.h): Substitute
31473         HAVE_UNSIGNED_LONG_LONG_INT.
31474         * modules/stdint (stdint.h): Likewise.
31475         (Files): Add m4/ulonglong.m4.
31476
31477 2006-10-10  Bruno Haible  <bruno@clisp.org>
31478
31479         Fix a gcc -Wshadow warning.
31480         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
31481         to 'bucket'.
31482         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
31483         gl_linked_indexof_from_to): Likewise.
31484         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
31485         Likewise.
31486         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
31487         Likewise.
31488         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
31489         Reported by Eric Blake.
31490
31491 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31492
31493         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
31494         for NetBSD.  Problem reported by Bruno Haible.
31495
31496 2006-10-09  Jim Meyering  <jim@meyering.net>
31497
31498         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
31499         Patch from Bruno Haible.
31500
31501 2006-10-09  Jim Meyering  <jim@meyering.net>
31502
31503         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
31504         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
31505         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
31506
31507 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31508
31509         Don't include <config.h> twice; this doesn't work in some cases,
31510         e.g., when config.h has "#define intmax_t long long int" and
31511         we include <config.h>, <inttypes.h>, <config.h> in that order.
31512         Problem reported by Matthew Woehlke in:
31513         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
31514         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
31515         * lib/fts-cycle.c: Don't include config.h.
31516         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
31517         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
31518         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
31519         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
31520         inttypes.h.
31521         * lib/xstrtoumax.c: Likewise.
31522         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
31523         __strtol and the like, so that this module is more like its siblings.
31524         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
31525         Remove; no longer needed now that we assume gnulib inttypes.h.
31526
31527 2006-10-08  Bruno Haible  <bruno@clisp.org>
31528
31529         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
31530         option.
31531
31532 2006-10-07  Jim Meyering  <jim@meyering.net>
31533
31534         * modules/inttypes (inttypes.h): Revert what seems to have been
31535         an inadvertent part of today's change: use "|", not "/" in the
31536         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
31537
31538 2006-10-07  Bruno Haible  <bruno@clisp.org>
31539
31540         * modules/sublist: New file.
31541
31542 2006-10-07  Bruno Haible  <bruno@clisp.org>
31543
31544         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
31545         * modules/argz (argz.h): Likewise.
31546         * modules/arpa_inet (arpa/inet.h): Likewise.
31547         * modules/byteswap (byteswap.h): Likewise.
31548         * modules/configmake (configmake.h): Likewise.
31549         * modules/fcntl (fcntl.h): Likewise.
31550         * modules/fnmatch (fnmatch.h): Likewise.
31551         * modules/getopt (getopt.h): Likewise.
31552         * modules/glob (glob.h): Likewise.
31553         * modules/inttypes (inttypes.h): Likewise.
31554         * modules/netinet_in (netinet/in.h): Likewise.
31555         * modules/poll (poll.h): Likewise.
31556         * modules/stdbool (stdbool.h): Likewise.
31557         * modules/stdint (stdint.h): Likewise.
31558         * modules/sys_select (sys/select.h): Likewise.
31559         * modules/sys_socket (sys/socket.h): Likewise.
31560         * modules/sys_stat (sys/stat.h): Likewise.
31561         * modules/sysexits (sysexits.h): Likewise.
31562         * modules/unistd (unistd.h): Likewise.
31563         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31564         Add a "DO NOT EDIT" comment to the generated file.
31565         (func_import): Likewise for gnulib-comp.m4.
31566
31567 2006-10-07  Bruno Haible  <bruno@clisp.org>
31568
31569         * lib/gl_sublist.h: New file.
31570         * lib/gl_sublist.c: New file.
31571
31572 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31573
31574         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
31575         name (relative to the original working directory) and the file
31576         name component (relative to the temporary working directory).  All
31577         callers changed.
31578         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
31579         * lib/mkdir-p.c (make_dir_parents): Likewise.
31580         * lib/mkdir-p.h (make_dir_parents): Likewise.
31581
31582 2006-10-06  Eric Blake  <ebb9@byu.net>
31583
31584         Define several macros for use by the clean-temp module.
31585         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
31586         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
31587         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
31588
31589         * lib/clean-temp.h (close_stream_temp): New declaration.
31590         * lib/clean-temp.c (includes): Pull in headers according to what
31591         other modules are in use.
31592         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
31593
31594 2006-10-06  Bruno Haible  <bruno@clisp.org>
31595
31596         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
31597         instead of fopen, fwriteerror.
31598
31599 2006-10-06  Bruno Haible  <bruno@clisp.org>
31600
31601         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
31602         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
31603         int.
31604         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
31605         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
31606         Return an error indicator.
31607         Suggested by Eric Blake.
31608
31609 2006-10-06  Bruno Haible  <bruno@clisp.org>
31610
31611         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
31612         Reported by Eric Blake.
31613
31614 2006-10-06  Bruno Haible  <bruno@clisp.org>
31615
31616         * modules/closeout (Description): Mention stderr too.
31617
31618 2006-10-06  Bruno Haible  <bruno@clisp.org>
31619         and Paul Eggert  <eggert@cs.ucla.edu>
31620
31621         * lib/closeout.c (close_stdout): Also close stderr.
31622         * lib/closeout.h: Update comment.
31623
31624 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
31625
31626         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
31627         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
31628         * lib/dirchownmod.c: Include lchown.h.
31629         * lib/lchown.c: Don't include files that lchown.h now includes.
31630         Don't declare chown, since lchown.h now does that.
31631         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
31632         (lchown): Define to rpl_chown if lchown is declared but
31633         does not exist.  Declare using a prototype if lchown is not
31634         declared.  Add a copyright notice.
31635         * lib/mkstemp.h: Include <unistd.h>.
31636         * lib/openat.c: Include lchown.h.
31637
31638         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
31639         we now test for that separately.
31640         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
31641         rather than O_NOFOLLOW, when testing whether it's possible to
31642         avoid a race condition reliably.
31643         * lib/savewd.c (savewd_chdir): Likewise.
31644
31645         Remove macros that are no longer needed now that stdint.h is
31646         reliable.
31647         * lib/fsusage.c (UINTMAX_MAX): Remove.
31648         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
31649         * lib/utimecmp.c (SIZE_MAX): Remove.
31650
31651         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
31652
31653         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
31654         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
31655         O_NOATIME works.
31656
31657 2006-10-05  Bruno Haible  <bruno@clisp.org>
31658
31659         * lib/gl_list.h (gl_sortedlist_search_from_to,
31660         gl_sortedlist_indexof_from_to): New declarations.
31661         (gl_list_implementation): New fields sortedlist_search_from_to,
31662         sortedlist_indexof_from_to.
31663         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
31664         inline functions.
31665         * lib/gl_list.c (gl_sortedlist_search_from_to,
31666         gl_sortedlist_indexof_from_to): New functions.
31667         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
31668         function.
31669         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
31670         (gl_array_sortedlist_search_from_to): New function.
31671         (gl_array_list_implementation): Update.
31672         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
31673         function.
31674         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
31675         (gl_carray_sortedlist_search_from_to): New function.
31676         (gl_carray_list_implementation): Update.
31677         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
31678         gl_linked_sortedlist_indexof_from_to): New functions.
31679         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31680         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31681         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
31682         gl_tree_sortedlist_indexof_from_to): New functions.
31683         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31684         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31685         Update.
31686         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31687         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
31688         Update.
31689
31690 2006-10-05  Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
31693         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
31694         (struct gl_list_implementation): Add fields search_from_to,
31695         indexof_from_to. Remove fields search, indexof.
31696         (gl_list_search): Use the search_from_to method.
31697         (gl_list_search_from, gl_list_search_from_to): New functions.
31698         (gl_list_indexof): Use the indexof_from_to method.
31699         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31700         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
31701         (gl_list_search_from, gl_list_search_from_to): New functions.
31702         (gl_list_indexof): Use the indexof_from_to method.
31703         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31704         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
31705         gl_array_indexof. Add start_index, end_index arguments.
31706         (gl_array_search_from_to): Renamed from gl_array_search. Add
31707         start_index, end_index arguments.
31708         (gl_array_remove, gl_array_list_implementation): Update.
31709         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
31710         gl_carray_indexof. Add start_index, end_index arguments.
31711         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
31712         start_index, end_index arguments.
31713         (gl_carray_remove, gl_carray_list_implementation): Update.
31714         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
31715         gl_linked_search. Add start_index, end_index arguments.
31716         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
31717         start_index, end_index arguments.
31718         (gl_linked_remove): Update.
31719         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31720         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31721         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
31722         field to 'size_t'.
31723         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
31724         gl_tree_search. Add start_index, end_index arguments.
31725         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31726         start_index, end_index arguments.
31727         (gl_tree_remove): Update.
31728         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31729         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31730         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
31731         function.
31732         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
31733         gl_tree_search. Add start_index, end_index arguments.
31734         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31735         start_index, end_index arguments.
31736         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31737         Update.
31738         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31739
31740 2006-10-05  Bruno Haible  <bruno@clisp.org>
31741
31742         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
31743
31744         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
31745         fwriteerror_temp): New declarations.
31746         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
31747         (descriptors): New variable.
31748         (cleanup): First, close the descriptors.
31749         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
31750         fclose_temp, fwriteerror_temp): New functions.
31751
31752 2006-10-04  Jim Meyering  <jim@meyering.net>
31753
31754         * lib/fts.c (fts_open): Tiny comment change.
31755
31756 2006-10-04  Bruno Haible  <bruno@clisp.org>
31757
31758         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
31759         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
31760         gl_LOCK_BODY.
31761         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
31762         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
31763         gl_LOCK_EARLY_BODY.
31764         (gl_LOCK): Require gl_LOCK_BODY.
31765
31766 2006-10-04  Bruno Haible  <bruno@clisp.org>
31767
31768         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
31769         (gl_oset_search_atleast): New declaration.
31770         (struct gl_oset_implementation): Add field 'search_atleast'.
31771         (gl_oset_search_atleast): New inline function.
31772         * lib/gl_oset.c (gl_oset_search_atleast): New function.
31773         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
31774         (gl_array_oset_implementation): Update.
31775         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
31776         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
31777         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
31778
31779 2006-10-04  Bruno Haible  <bruno@clisp.org>
31780
31781         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
31782
31783 2006-10-03  Bruno Haible  <bruno@clisp.org>
31784
31785         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
31786         from gl_avltreehash_list_implementation.
31787
31788 2006-10-03  Bruno Haible  <bruno@clisp.org>
31789
31790         * lib/gl_oset.c (gl_oset_add): Fix return type.
31791
31792 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
31793
31794         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
31795
31796 2006-10-02  Eric Blake  <ebb9@byu.net>
31797
31798         * modules/strnlen (Depends-on): Add extensions.
31799
31800 2006-10-02  Eric Blake  <ebb9@byu.net>
31801
31802         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
31803         definition in 2.60+.
31804
31805 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
31806
31807         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
31808         checks.
31809
31810 2006-10-02  Bruno Haible  <bruno@clisp.org>
31811
31812         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
31813         to the AUTOMAKE_OPTIONS.
31814         Reported by Jim Meyering.
31815
31816 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
31817
31818         Work around bug in Solaris 10 /proc file system:
31819         /proc/self/fd/NNN/.. isn't the parent directory of
31820         the directory whose file descriptor is NNN.  This needs to
31821         be worked around at run time, not compile time, since a
31822         program might be built on Solaris 8, where things work, and
31823         run on Solaris 10.
31824         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
31825         to use the following interface instead:
31826         (OPENAT_BUFFER_SIZE): New macro.
31827         (openat_proc_name): New function.
31828         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
31829         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
31830         Likewise.
31831         * lib/openat-proc.c: New file.
31832         * modules/openat (Files): Add lib/openat-proc.c.
31833         (Depends-on): Add same-inode, stdbool.
31834         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
31835
31836 2006-09-29  Bruno Haible  <bruno@clisp.org>
31837
31838         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
31839         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
31840         argument. Set stdout_closed before testing for ferror, not after.
31841         (fwriteerror, fwriteerror_no_ebadf): New functions.
31842
31843 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31844
31845         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
31846
31847 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
31848
31849         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
31850         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
31851
31852 2006-09-28  Jim Meyering  <jim@meyering.net>
31853
31854         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
31855         Include <unistd.h>.
31856
31857 2006-09-28  Bruno Haible  <bruno@clisp.org>
31858
31859         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
31860         * modules/linkedhash-list (Depends-on): Likewise.
31861         * modules/rbtreehash-list (Depends-on): Likewise.
31862
31863 2006-09-28  Bruno Haible  <bruno@clisp.org>
31864
31865         * lib/strndup.h: Simplify the redefinition of strndup.
31866         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
31867         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
31868
31869 2006-09-28  Bruno Haible  <bruno@clisp.org>
31870
31871         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
31872         * lib/gl_linkedhash_list.c: Likewise.
31873         * lib/gl_rbtreehash_list.c: Likewise.
31874
31875 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
31876
31877         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
31878         getaddrinfo.
31879
31880         * lib/__fpending.h: Don't include <stdio_ext.h> unless
31881         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
31882         it causes <stdio_ext.h> to cause a compile-time error.
31883         Problem reported by Nelson H. F. Beebe.
31884         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
31885         of HAVE_DECL___PENDING.
31886
31887         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
31888         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
31889         declaration.
31890
31891 2006-09-27  Jim Meyering  <jim@meyering.net>
31892
31893         This file could end up with a definition for a function
31894         named __strndup, rather than rpl_strndup on a system with
31895         incomplete weak_alias support.
31896         * lib/strndup.c (strndup): Rename from __strndup.
31897         Remove #defines that used to map __strndup to strndup.
31898         Don't use K&R prototypes.
31899         Remove LIBC-related code, since this file is not sync'd with glibc.
31900         * lib/strndup.h: Revamp, accordingly.
31901         * m4/strndup.m4: Modernize.
31902
31903 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31904
31905         * modules/savewd (Depends-on): Add 'raise'.
31906         * lib/savewd.c: Include <signal.h>, for 'raise'.
31907
31908 2006-09-26  Jim Meyering  <jim@meyering.net>
31909
31910         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
31911         when we detect Darwin 8.7.0's acl_get_file bug.
31912         Rearrange to perform the new (below) run-test while $LIBS
31913         contains any acl-related library.  Set USE_ACL at the end.
31914         (gl_ACL_GET_FILE): New function.
31915
31916 2006-09-26  Eric Blake  <ebb9@byu.net>
31917
31918         * lib/verror.c: Include <config.h> unconditionally.
31919
31920 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
31921
31922         * modules/clock-time (Maintainer): Add self.
31923         * modules/getlogin_r (Depends-on): Add extensions.
31924
31925 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31926
31927         * modules/clock-time: New module.
31928         * modules/nanosleep (Depends-on): Add clock-time.
31929         * modules/gethrxtime (Depends-on): Likewise.
31930         * modules/gettime (Depends-on): Likewise.
31931         * modules/settime (Depends-on): Likewise.
31932
31933         * modules/fts-lgpl: Depend on openat.
31934         * modules/mkancesdirs: Depend on savewd.
31935         * modules/mkdir-p: Likewise.
31936
31937 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31938
31939         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
31940
31941         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
31942         `gl_have_arbitrary_file_name_length_limit' to
31943         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
31944         actually works between configure runs.
31945
31946 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31947             Bruno Haible  <bruno@clisp.org>
31948
31949         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
31950
31951 2006-09-25  Jim Meyering  <jim@meyering.net>
31952
31953         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
31954         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
31955
31956 2006-09-25  Eric Blake  <ebb9@byu.net>
31957
31958         * gnulib-tool (func_import, func_create_testdir): Fix typos in
31959         exec's in 2006-09-18 patch when shuffling fds.
31960
31961 2006-09-25  Bruno Haible  <bruno@clisp.org>
31962
31963         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
31964         Reported by Jim Meyering.
31965
31966 2006-09-24  Jim Meyering  <jim@meyering.net>
31967
31968         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
31969         compare a pointer against a literal "0".  That caused failures with
31970         at least HP-UX's hpcc.
31971
31972 2006-09-22  Simon Josefsson  <jas@extundo.com>
31973
31974         * modules/gc-sha1:
31975         * modules/gc-md4:
31976         * modules/gc-hmac-sha1:
31977         * modules/gc-hmac-md5:
31978         * modules/gc-des:
31979         * modules/gc-arcfour: Distribute more files.
31980
31981 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31982
31983         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
31984         (gl_linked_iterator_from_to): Initialize struct completely.
31985         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
31986         (gl_tree_iterator_from_to): Likewise
31987         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
31988         * lib/gl_array_list.c [lint] (gl_array_iterator)
31989         (gl_array_iterator_from_to): Likewise.
31990         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
31991         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
31992         (gl_carray_iterator_from_to): Likewise.
31993
31994         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
31995         * lib/md4.c (md4_process_block): Remove unused variable.
31996         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
31997         parentheses for clarity.
31998
31999 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32000
32001         * modules/bison-i18n (Depends-on): Add gettext.
32002
32003 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32004
32005         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
32006         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32007         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
32008         also add missing comma that caused broken test.
32009         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
32010         stdlib.h, for `abort'.
32011         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
32012         variables.
32013         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
32014         include unistd.h if present, for `rmdir'.
32015         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
32016         variables.
32017         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
32018         in the process include standard headers for prototypes.
32019         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
32020         gets declared on GNU/Linux.
32021         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
32022         unistd.h, for `rmdir'.
32023         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
32024
32025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
32026         always true.
32027         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
32028
32029         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
32030
32031 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32032
32033         * gnulib-tool (func_version): Create output all at once.  This
32034         may help avoid triggering unnecessary SIGPIPEs, and at any
32035         rate it doesn't hurt.
32036
32037 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32038             Bruno Haible  <bruno@clisp.org>
32039
32040         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
32041         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32042         * m4/signed.m4 (bh_C_SIGNED): Likewise.
32043
32044         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
32045         (gl_FUNC_VASPRINTF): Invoke it.
32046
32047 2006-09-22  Bruno Haible  <bruno@clisp.org>
32048
32049         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
32050         getloadavg.c as first argument.
32051
32052 2006-09-22  Bruno Haible  <bruno@clisp.org>
32053
32054         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
32055         at the beginning of the gl_INIT macro.
32056         * modules/getloadavg (configure.ac): Pass $gl_source_base to
32057         gl_GETLOADAVG.
32058
32059 2006-09-22  Bruno Haible  <bruno@clisp.org>
32060
32061         * gnulib-tool (func_create_megatestdir): Don't include the config-h
32062         module.
32063         Suggested by Ralf Wildenhues.
32064
32065 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
32066
32067         Import this patch from libc:
32068
32069         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
32070
32071         * lib/regex_internal.c (re_string_reconstruct): Handle
32072         offset < pstr->valid_raw_len && pstr->offsets_needed case.
32073         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
32074         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
32075         re_string_context_at.
32076
32077         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
32078         now requires it.
32079         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
32080         gl_REGEX now does it for us.
32081         (gl_REGEX): Add test taken from
32082         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
32083
32084         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
32085         Check that large offsets work.  Modernize Autoconf usages.
32086         Prefer "yes" to mean a good thing rather than a bad.
32087         Don't put "#define mkstemp" in config.h, as this might interfere
32088         with standard system headers that "#define mkstemp mkstemp64".
32089
32090         * modules/mkstemp (Depends-on): Add extensions, so that
32091         mkstemp is visible on some platforms.
32092         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
32093         (Include): Change to "mkstemp.h" from <stdlib.h>.
32094         (Files): Add mkstemp.h.
32095
32096         * lib/mkstemp.h: New file, since some standard headers
32097         #define mkstemp.
32098         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
32099         Include "mkstemp.h".
32100         Make the _LIBC code resemble glibc original more,
32101         e.g., use K&R style.
32102         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
32103         (mkstemp): Remove, since mkstemp.h does this for us.
32104         * lib/stdlib--.h: Include mkstemp.h.
32105
32106         Import this patch from libc:
32107
32108         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32109
32110         * lib/tempname.c (__gen_tempname): Change attempts_min
32111         into a macro.  Use preprocessor to decide how to initialize
32112         attempts [Coverity CID 67].
32113
32114 2006-09-20  Bruno Haible  <bruno@clisp.org>
32115
32116         * lib/mkdtemp.c: Import from libc.
32117         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32118                 * sysdeps/posix/tempname.c (__gen_tempname): Change
32119                 attempts_min into a macro.  Use preprocessor to decide how to
32120                 initialize attempts [Coverity CID 67].
32121         2001-11-27  Paul Eggert  <eggert@twinsun.com>
32122                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
32123                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
32124
32125 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32126
32127         * gnulib-tool (func_exit): New function, to allow to pass the
32128         exit status portably through the trap.  Use everywhere.
32129         (--help, --version): Signal a write error.
32130         (trap): catch SIGPIPE, for write errors.
32131         Exit at the end of the trap, with the correct exit status.
32132
32133 2006-09-19  Karl Berry  <karl@gnu.org>
32134
32135         * doc/gnulib.texi: note about the license texinfo files.
32136
32137 2006-09-19  Eric Blake  <ebb9@byu.net>
32138
32139         * gnulib-tool: Avoid space-tab.
32140
32141 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32142
32143         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
32144         that prevented coreutils 6.1 from building.  Problem reported
32145         by Petter Reinholdtsen.
32146
32147 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32148
32149         * gnulib-tool (avoidlist): Fix typo that broke options like
32150         --avoid=lock that are used by coreutils bootstrap.
32151
32152 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
32153
32154         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
32155         more systematically.
32156
32157 2006-09-18  Jim Meyering  <jim@meyering.net>
32158
32159         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
32160
32161 2006-09-18  Bruno Haible  <bruno@clisp.org>
32162
32163         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
32164
32165 2006-09-18  Bruno Haible  <bruno@clisp.org>
32166
32167         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
32168         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
32169         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
32170         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
32171         * m4/gettext.m4: Require autoconf >= 2.52.
32172         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
32173         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
32174         of gl_cv_header_inttypes_h.
32175
32176 2006-09-18  Bruno Haible  <bruno@clisp.org>
32177
32178         * lib/javaversion.c: Include configmake.h.
32179
32180 2006-09-18  Bruno Haible  <bruno@clisp.org>
32181
32182         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
32183         avoid that the while loops be executed in a subshell.
32184
32185 2006-09-18  Bruno Haible  <bruno@clisp.org>
32186
32187         * MODULES.html.sh (func_module): Break long lines.
32188         Suggested by Bruce Korb <bkorb@gnu.org>.
32189
32190 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32191
32192         Speed up by a factor of 1.12.
32193         * gnulib-tool (nl): New variable.
32194         (func_import): Rewrite include directive extraction to only read each
32195         directive once.
32196
32197 2006-09-17  Bruno Haible  <bruno@clisp.org>
32198
32199         * modules/javaversion (Makefile.am): Remove DEFS setting.
32200         (Depends-on): Add configmake, for PKGDATADIR definition.
32201
32202 2006-09-17  Bruno Haible  <bruno@clisp.org>
32203
32204         * gnulib-tool (func_create_testdir): Rewrite all files at once.
32205
32206 2006-09-17  Bruno Haible  <bruno@clisp.org>
32207
32208         * gnulib-tool (func_append): New function, stolen from libtool.m4.
32209         (func_modules_transitive_closure, func_modules_add_dummy,
32210         func_modules_to_filelist, func_import, func_create_testdir,
32211         func_create_megatestdir, ...): Use it wherever possible.
32212         Suggested by Ralf Wildenhues.
32213
32214 2006-09-16  Karl Berry  <karl@gnu.org>
32215
32216         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
32217         to avoid sectioning errors.
32218         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
32219         [ifinfo]: blank line after @center-ed titles.
32220         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
32221         Spell FSF address consistently with others.
32222         (These changes approved by rms.)
32223
32224 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32225
32226         Speed up by a factor of 1.61.
32227         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
32228         already checked module names again.
32229
32230 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32231
32232         Speed up by a factor of 1.13.
32233         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
32234         for new_files, and the input to func_add_or_update.
32235
32236 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32237
32238         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
32239         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
32240
32241 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32242
32243         * modules/mkancesdirs (Depends-on): Add fcntl.
32244         * modules/savewd: New file.
32245         * MODULES.html.sh (File system functions): Add savewd.
32246
32247         * modules/configmake (Makefile.am): Add support for the
32248         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
32249
32250 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32251
32252         * m4/savewd.m4: New file.
32253
32254 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32255
32256         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
32257         (dirchownmod): New arg FD.  All callers changed.
32258         Use FD rather than opening the directory ourself, as opening is
32259         now the caller's responsibility.
32260         * lib/dirchownmod.h: Likewise.
32261         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
32262         hosts that require <sys/types.h> before <sys/stat.h>.  Include
32263         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
32264         (test_dir): Remove.
32265         (mkancesdirs): Return length of prefix of FILE that has already
32266         been made, or -2 if there is a child doing the work.  Redo
32267         algorithm so that it is O(N) rather than O(N**2).  Optimize away
32268         ".", and treat ".." specially since it might stray back into
32269         already-created areas.  Use a subprocess if necessary.  New arg
32270         WD; all users changed.  MAKE_DIR function should now return 1
32271         if it creates a directory that is not readable.  Return -2 if
32272         a child process is spun off.
32273         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
32274         Adjust signature to match code.
32275         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
32276         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
32277         all users changed.
32278         * lib/savewd.c, lib/savewd.h: New files.
32279
32280 2006-09-15  Jim Meyering  <jim@meyering.net>
32281
32282         * modules/rename-dest-slash: New module.
32283         * MODULES.html.sh (posix_compat): Add it here.
32284
32285         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
32286
32287 2006-09-15  Jim Meyering  <jim@meyering.net>
32288
32289         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
32290         file.
32291
32292         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
32293
32294 2006-09-15  Jim Meyering  <jim@meyering.net>
32295
32296         * lib/rename-dest-slash.c (has_trailing_slash): Use
32297         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
32298         (rpl_rename_dest_slash): Perform the cheaper trailing slash
32299         test before testing whether SRC is a directory.
32300         Suggestions from Bruno Haible.
32301
32302         Avoid a warning about an unused variable.
32303         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
32304         into the #ifdef block where it's used.
32305
32306         * lib/rename-dest-slash.c: New file.
32307
32308 2006-09-14  Bruno Haible  <bruno@clisp.org>
32309
32310         * lib/allocsa.c: Include <config.h> unconditionally.
32311         * lib/asnprintf.c: Likewise.
32312         * lib/asprintf.c: Likewise.
32313         * lib/c-strcasecmp.c: Likewise.
32314         * lib/c-strcasestr.c: Likewise.
32315         * lib/c-strncasecmp.c: Likewise.
32316         * lib/c-strstr.c: Likewise.
32317         * lib/classpath.c: Likewise.
32318         * lib/clean-temp.c: Likewise.
32319         * lib/concatpath.c: Likewise.
32320         * lib/copy-file.c: Likewise.
32321         * lib/csharpcomp.c: Likewise.
32322         * lib/csharpexec.c: Likewise.
32323         * lib/execute.c: Likewise.
32324         * lib/fatal-signal.c: Likewise.
32325         * lib/findprog.c: Likewise.
32326         * lib/fwriteerror.c: Likewise.
32327         * lib/gl_array_list.c: Likewise.
32328         * lib/gl_array_oset.c: Likewise.
32329         * lib/gl_avltree_list.c: Likewise.
32330         * lib/gl_avltree_oset.c: Likewise.
32331         * lib/gl_avltreehash_list.c: Likewise.
32332         * lib/gl_carray_list.c: Likewise.
32333         * lib/gl_linked_list.c: Likewise.
32334         * lib/gl_linkedhash_list.c: Likewise.
32335         * lib/gl_list.c: Likewise.
32336         * lib/gl_oset.c: Likewise.
32337         * lib/gl_rbtree_list.c: Likewise.
32338         * lib/gl_rbtree_oset.c: Likewise.
32339         * lib/gl_rbtreehash_list.c: Likewise.
32340         * lib/imaxabs.c: Likewise.
32341         * lib/imaxdiv.c: Likewise.
32342         * lib/javacomp.c: Likewise.
32343         * lib/javaexec.c: Likewise.
32344         * lib/javaversion.c: Likewise.
32345         * lib/linebreak.c: Likewise.
32346         * lib/localcharset.c: Likewise.
32347         * lib/lock.c: Likewise.
32348         * lib/mbchar.c: Likewise.
32349         * lib/mbswidth.c: Likewise.
32350         * lib/mkdtemp.c: Likewise.
32351         * lib/pipe.c: Likewise.
32352         * lib/printf-args.c: Likewise.
32353         * lib/printf-parse.c: Likewise.
32354         * lib/progname.c: Likewise.
32355         * lib/progreloc.c: Likewise.
32356         * lib/readlink.c: Likewise.
32357         * lib/sh-quote.c: Likewise.
32358         * lib/stpcpy.c: Likewise.
32359         * lib/stpncpy.c: Likewise.
32360         * lib/strcasecmp.c: Likewise.
32361         * lib/strcasestr.c: Likewise.
32362         * lib/strcspn.c: Likewise.
32363         * lib/striconv.c: Likewise.
32364         * lib/strncasecmp.c: Likewise.
32365         * lib/strnlen1.c: Likewise.
32366         * lib/strstr.c: Likewise.
32367         * lib/strtok_r.c: Likewise.
32368         * lib/tls.c: Likewise.
32369         * lib/tmpdir.c: Likewise.
32370         * lib/unicodeio.c: Likewise.
32371         * lib/unsetenv.c: Likewise.
32372         * lib/vasnprintf.c: Likewise.
32373         * lib/vasprintf.c: Likewise.
32374         * lib/wait-process.c: Likewise.
32375         * lib/xallocsa.c: Likewise.
32376         * lib/xsetenv.c: Likewise.
32377         * lib/xstriconv.c: Likewise.
32378
32379 2006-09-13  Simon Josefsson  <jas@extundo.com>
32380
32381         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
32382         that internally, suggested by Ralf Wildenhues
32383         <Ralf.Wildenhues@gmx.de>.
32384
32385 2006-09-13  Simon Josefsson  <jas@extundo.com>
32386
32387         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
32388         @LIBOBJS@.
32389         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32390
32391 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32392
32393         * lib/_fpending.c: Include <config.h> unconditionally, since we no
32394         longer worry about uses that don't define HAVE_CONFIG_H.
32395         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
32396         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
32397         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
32398         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
32399         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
32400         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
32401         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
32402         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
32403         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
32404         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
32405         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
32406         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
32407         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
32408         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
32409         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
32410         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
32411         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
32412         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
32413         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
32414         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
32415         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
32416         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
32417         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
32418         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
32419         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
32420         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
32421         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
32422         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
32423         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
32424         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
32425         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
32426         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
32427         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
32428         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
32429         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
32430         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
32431         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
32432         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
32433         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
32434         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
32435         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
32436         Likewise.
32437
32438 2006-09-13  Eric Blake  <ebb9@byu.net>
32439
32440         * lib/getopt.c: Fix typo in last commit.
32441
32442 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32443
32444         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
32445         dgettext.
32446
32447 2006-09-12  Jim Meyering  <jim@meyering.net>
32448
32449         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
32450         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
32451         Reported by Nelson H. F. Beebe.
32452
32453 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32454
32455         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
32456         program_invocation_name and program_invocation_short_name are
32457         initialized.
32458         * lib/argp-namefrob.h: Move declarations of program_invocation_name
32459         and program_invocation_short_name to argp.h, so they are visible
32460         to user programs.
32461         * lib/argp.h: Likewise
32462
32463 2006-09-10  Bruno Haible  <bruno@clisp.org>
32464
32465         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32466         m4/inttypes_h.m4, m4/uintmax_t.m4.
32467
32468 2006-09-10  Bruno Haible  <bruno@clisp.org>
32469
32470         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
32471         gl_AC_TYPE_UINTMAX_T.
32472
32473 2006-09-10  Bruno Haible  <bruno@clisp.org>
32474
32475         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
32476
32477 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32478
32479         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
32480         convention.  Text proposed by Bruno Haible.
32481         (struct argp_option): Document the use of N_() wrappers.
32482
32483         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
32484         '\v', and translate the two parts separately, instead of feeding
32485         the whole string to gettext.  This allows to exclude
32486         '\v' from the strings visible to the translator by writing doc
32487         strings as N_("..") "\v" N_("..").
32488
32489 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
32490
32491         * config/srclist.txt: Undo latest change; the bug was fixed.
32492
32493 2006-09-09  Bruno Haible  <bruno@clisp.org>
32494
32495         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
32496         assignments if building a library without libtool.
32497         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
32498         in func_emit_lib_Makefile_am.
32499         (func_import): When building a static library libfoo.a, arrange to
32500         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
32501         (func_create_testdir): Likewise.
32502         * modules/gc (configure.ac, Makefile.am): If building statically,
32503         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
32504         * modules/iconvme (configure.ac, Makefile.am): Likewise.
32505         * modules/striconv (configure.ac, Makefile.am): Likewise.
32506         Based on a suggestion by Ralf Wildenhues.
32507
32508 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32509
32510         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
32511         Check for unistd.h too, since Autoconf doesn't assume POSIX.
32512         Also:
32513
32514         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32515         Add year_2050_test to catch glibc bug 2821
32516         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
32517
32518         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32519         Prefer #ifdef to #if.
32520
32521         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
32522         Return from 'main' instead of calling 'exit'.
32523
32524 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32525
32526         * lib/mktime.c (guess_time_tm): Fix bug where mktime
32527         returned the maximum time_t value rather than (time_t) -1.
32528         Problem originally reported by William Bardwell
32529         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
32530
32531         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32532         Moved to here ...
32533         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32534         ... from here.
32535
32536 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32537
32538         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
32539         2821 is fixed.
32540
32541 2006-09-08  Jim Meyering  <jim@meyering.net>
32542
32543         Don't make generated files read-only.  That would bother too many
32544         people.  However, do retain the ability to work when targets are
32545         read-only: remove the destination and temporary files before writing
32546         them (when generated via sed or echo), or by using the -f option for
32547         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
32548         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32549         * modules/byteswap, modules/configmake, modules/fcntl:
32550         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32551         * modules/localcharset, modules/netinet_in, modules/poll:
32552         * modules/stdbool, modules/stdint, modules/sys_select:
32553         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32554
32555 2006-09-08  Jim Meyering  <jim@meyering.net>
32556
32557         Avoid new build failure on FreeBSD 6.0.
32558         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
32559         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
32560         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
32561
32562 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32563
32564         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
32565
32566 2006-09-07  Jim Meyering  <jim@meyering.net>
32567
32568         Fix global typo in last change: use chmod u-w, not chmod u-x.
32569         Spotted by Paul Eggert and Bruce Korb.
32570         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32571         * modules/byteswap, modules/configmake, modules/fcntl:
32572         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32573         * modules/localcharset, modules/netinet_in, modules/poll:
32574         * modules/stdbool, modules/stdint, modules/sys_select:
32575         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32576
32577 2006-09-06  Jim Meyering  <jim@meyering.net>
32578
32579         Make generated files be read-only.
32580         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
32581         Ensure that each generated file is now read-only.
32582         * modules/argz: Likewise.
32583         * modules/arpa_inet: Likewise.
32584         * modules/byteswap: Likewise.
32585         * modules/configmake: Likewise.
32586         * modules/fcntl: Likewise.
32587         * modules/fnmatch: Likewise.
32588         * modules/getopt: Likewise.
32589         * modules/glob: Likewise.
32590         * modules/inttypes: Likewise.
32591         * modules/netinet_in: Likewise.
32592         * modules/poll: Likewise.
32593         * modules/stdbool: Likewise.
32594         * modules/stdint: Likewise.
32595         * modules/sys_select: Likewise.
32596         * modules/sys_socket: Likewise.
32597         * modules/sys_stat: Likewise.
32598         * modules/sysexits: Likewise.
32599         * modules/localcharset: Same as above, but continue using temporary
32600         file named "t-$@" (why different?) rather than the "$@-t" used
32601         everywhere else.
32602
32603         * modules/sysexits (Makefile.am): Replace literal occurrences
32604         of "sysexit.h" more readable, and more consistent, "$@".
32605
32606 2006-09-06  Bruno Haible  <bruno@clisp.org>
32607
32608         * modules/striconv: New file.
32609         * modules/xstriconv: New file.
32610         * MODULES.html.sh (Internationalization functions): Add striconv,
32611         xstriconv.
32612
32613 2006-09-06  Bruno Haible  <bruno@clisp.org>
32614
32615         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
32616         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
32617         not using libtool correctly.
32618
32619 2006-09-06  Bruno Haible  <bruno@clisp.org>
32620
32621         * lib/striconv.h: New file.
32622         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
32623         iconvstring.c.
32624         * lib/xstriconv.h: New file.
32625         * lib/xstriconv.c: New file.
32626
32627 2006-09-06  Bruno Haible  <bruno@clisp.org>
32628
32629         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32630         lib_..._LDFLAGS.
32631
32632 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32633
32634         * lib/argz_.h: Sync from Libtool.
32635
32636         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
32637                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32638
32639         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
32640
32641 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
32642
32643         * modules/trim: New file.
32644
32645 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
32646
32647         * lib/trim.h: New file.
32648         * lib/trim.c: New file.
32649
32650 2006-09-05  Bruno Haible  <bruno@clisp.org>
32651
32652         * MODULES.html.sh (String handling): Add trim.
32653
32654 2006-09-04  Karl Berry  <karl@gnu.org>
32655
32656         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
32657         until next release.
32658
32659 2006-09-03  Bruno Haible  <bruno@clisp.org>
32660
32661         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
32662         correctly.
32663
32664 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32665
32666         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
32667         not gl_GETLOADAVG.  Omit unneeded semicolons.
32668         Problems reported by Ralf Wildenhues in
32669         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32670         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
32671         at the end, which is the usual gnulib style.
32672
32673         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
32674         of doing all the work ourselves.
32675         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
32676         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
32677
32678 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32679
32680         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
32681         Problem reported by Ralf Wildenhues in
32682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32683
32684         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
32685         HAVE_STRUCT_STATFS_F_FSTYPENAME.
32686
32687 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32688
32689         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
32690         yesterday's patch by changing test -n to test -z.
32691
32692 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32693
32694         * modules/getloadavg (Files): Add m4/getloadavg.m4.
32695         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
32696         the former is now obsolescent.
32697
32698         * modules/chdir-long (Depends-on): Add fcntl.
32699
32700 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32701
32702         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
32703         obsolescent, and programs should use gnulib instead.
32704         * m4/getloadavg.m4: New file, with contents taken from Autoconf
32705         but with prefixes changed.
32706
32707 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32708
32709         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
32710         or stdbool.h, because they might not exist while configuring.
32711
32712         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
32713         Don't include unistd.h or limits.h; not needed, since chdir-long.h
32714         does that for us.
32715         (O_DIRECTORY): Remove.
32716
32717 2006-08-31  Eric Blake  <ebb9@byu.net>
32718
32719         * gnulib-tool: Don't let emacs change spaces to TAB.
32720
32721 2006-08-31  Bruno Haible  <bruno@clisp.org>
32722
32723         * gnulib-tool: When calling func_import more than once, do it in a
32724         subshell.
32725         Reported by Eric Blake <ebb9@byu.net>.
32726
32727 2006-08-31  Bruno Haible  <bruno@clisp.org>
32728
32729         * gnulib-tool (nl): Remove variable.
32730         (sed_transform_lib_file): Use more robust test for config-h module.
32731         (func_import): Fix typo in 2006-08-25 patch.
32732
32733 2006-08-31  Bruno Haible  <bruno@clisp.org>
32734
32735         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
32736         specified, augment Makefile.am variables instead of assigning them.
32737
32738 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32739
32740         Work around a bug in both the Linux and SunOS 64-bit kernels:
32741         nanosleep mishandles sleeps for longer than 2**31 seconds.
32742         Problem reported by Frank v Waveren in
32743         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32744         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
32745         Check for nanosleep bug.
32746         (LIB_NANOSLEEP): Append clock_gettime library if needed.
32747
32748 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32749
32750         Work around a bug in both the Linux and SunOS 64-bit kernels:
32751         nanosleep mishandles sleeps for longer than 2**31 seconds.
32752         Problem reported by Frank v Waveren in
32753         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32754         * lib/nanosleep.c (BILLION): New constant.
32755         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
32756         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
32757         implementation.
32758
32759 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32760
32761         * modules/nanosleep (Depends-on): Add gettime.
32762
32763 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32764         and Simon Josefsson  <jas@extundo.com>
32765         and Oskar Liljeblad  <oskar@osk.mine.nu>
32766
32767         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
32768         * gnulib-tool (func_import): New license type 'unmodifiable license
32769         text'.
32770         * modules/fdl: Use it.  Longer description.
32771         * module/gpl, module/lgpl: New files.
32772
32773 2006-08-30  Jim Meyering  <jim@meyering.net>
32774
32775         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
32776         shadowing the parameter.
32777
32778 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32779
32780         Sync from Libtool:
32781
32782         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32783
32784         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
32785         sharing with gnulib.  Report by Eric Blake.
32786
32787 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32788
32789         * modules/isapipe: New file.
32790         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
32791
32792 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32793
32794         * modules/configmake (Makefile.am): Add a comment, and omit
32795         the CONFIGMAKE_ prefix from generated macro names.  Suggested
32796         by Bruno Haible.
32797
32798 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32799
32800         * m4/isapipe.m4: New file.
32801
32802 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32803
32804         * lib/isapipe.c, lib/isapipe.h: New files.
32805
32806 2006-08-29  Jim Meyering  <jim@meyering.net>
32807
32808         * modules/configmake (Makefile.am): Make configmake.h depend on
32809         Makefile.  Otherwise, a stale configmake.h could hang around.
32810
32811 2006-08-29  Eric Blake  <ebb9@byu.net>
32812
32813         * lib/error.c (error_at_line, print_errno_message): Match libc, after
32814         resolution of upstream bug 3044.
32815
32816 2006-08-29  Bruno Haible  <bruno@clisp.org>
32817
32818         * modules/localcharset (Depends-on): Add configmake.
32819         (Makefile.am): Remove setting of LIBDIR through DEFS.
32820
32821 2006-08-29  Bruno Haible  <bruno@clisp.org>
32822
32823         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
32824         defined.
32825
32826 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32827
32828         * modules/fcntl: New file.
32829         * modules/chdir-safer (Depends-on): Add fcntl.
32830         * modules/fts: Likewise.
32831         * modules/mkdir-p: Likewise.
32832
32833         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
32834         This undoes the most recent change, since we're now addressing the
32835         problem in a different way.
32836
32837         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
32838         into output, since the output might be called Makefile.am even
32839         if $makefile_name is something different.
32840         (func_import): Use $makefile_am rather than
32841         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
32842         empty.
32843
32844         * modules/inttypes (Files): Add m4/inttypes-h.m4.
32845
32846 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32847
32848         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
32849         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
32850         recent change to stdint.m4, since we're now addressing the problem in a
32851         different way.
32852
32853 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32854
32855         * m4/fcntl_h.m4: New file.
32856
32857 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32858
32859         * lib/fcntl_.h: New file.
32860         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
32861         the fcntl module.
32862         * lib/dirchownmod.c: Likewise.
32863         * lib/fts.c: Likewise.
32864
32865         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
32866         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
32867         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
32868         just before including <inttypes.h>, to avoid circular inclusion.
32869
32870 2006-08-28  Jim Meyering  <jim@meyering.net>
32871
32872         * doc/visibility.texi: Actually read and correct the grammar of the
32873         sentence affected by yesterday's change.
32874
32875 2006-08-28  Eric Blake  <ebb9@byu.net>
32876
32877         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
32878         needs wrapper.
32879
32880 2006-08-28  Eric Blake  <ebb9@byu.net>
32881
32882         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
32883
32884 2006-08-28  Eric Blake  <ebb9@byu.net>
32885
32886         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
32887
32888 2006-08-28  Bruno Haible  <bruno@clisp.org>
32889
32890         * modules/c-strstr: New file, from GNU gettext.
32891         * MODULES.html.sh (String handling): Add c-strstr.
32892
32893 2006-08-28  Bruno Haible  <bruno@clisp.org>
32894
32895         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
32896         macros.
32897         Reported by Eric Blake.
32898
32899 2006-08-28  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
32902         (VASNPRINTF): Return a string of length > INT_MAX without failing.
32903         * lib/vasprintf.c: Include errno.h, limits.h.
32904         (EOVERFLOW): New fallback definition.
32905         (vasprintf): Test here whether the string length is > INT_MAX.
32906         * lib/vsnprintf.c: Include errno.h, limits.h.
32907         (EOVERFLOW): New fallback definition.
32908         (vsnprintf): Fix bug when generated string was too long for the buffer.
32909         Test here whether the string length is > INT_MAX.
32910
32911 2006-08-28  Bruno Haible  <bruno@clisp.org>
32912
32913         * lib/inttypes_.h (SCNX*): Remove definitions.
32914         Reported by Eric Blake.
32915
32916 2006-08-28  Bruno Haible  <bruno@clisp.org>
32917
32918         * lib/c-strstr.h: New file, from GNU gettext.
32919         * lib/c-strstr.c: New file, from GNU gettext.
32920
32921 2006-08-28  Bruno Haible  <bruno@clisp.org>
32922
32923         * gnulib-tool: Reorder some statements.
32924
32925 2006-08-28  Bruno Haible  <bruno@clisp.org>
32926
32927         * gnulib-tool: New option --makefile-name.
32928         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
32929         $makefile_name.
32930         (func_import): Write $makefile_name to the cache file, and read it from
32931         there unless explicitly specified. Use $makefile_name as file name
32932         instead of Makefile.am. Adjust the recommendations accordingly.
32933
32934 2006-08-28  Bruno Haible  <bruno@clisp.org>
32935
32936         * gnulib-tool (func_verify_module): Check against misapplying patch.
32937
32938 2006-08-28  Bruno Haible  <bruno@clisp.org>
32939
32940         * gnulib-tool (func_relativize, func_relconcat): New functions.
32941         Give an error if --local-dir is given with --update.
32942         Remove trailing slashes from $local_gnulib_dir.
32943         (func_import): Store the relativized $local_gnulib_dir in
32944         gnulib-cache.m4, and read it from there if not specified explicitly.
32945
32946 2006-08-28  Bruno Haible  <bruno@clisp.org>
32947
32948         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
32949         is the current directory. Respect also $local_gnulib_dir.
32950
32951 2006-08-28  Bruno Haible  <bruno@clisp.org>
32952             Simon Josefsson  <jas@extundo.com>
32953
32954         BeOS portability.
32955         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
32956
32957 2006-08-27  Jim Meyering  <jim@meyering.net>
32958
32959         * doc/visibility.texi: Remove duplicate word: "pointer".
32960
32961 2006-08-26  Bruno Haible  <bruno@clisp.org>
32962
32963         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
32964         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
32965         (Makefile.am): Create inttypes.h from inttypes_.h.
32966         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
32967
32968         * modules/imaxabs: New file.
32969
32970         * modules/imaxdiv: New file.
32971
32972 2006-08-26  Bruno Haible  <bruno@clisp.org>
32973
32974         * m4/inttypes.m4: New file.
32975         * m4/_inttypes_h.m4: Remove file.
32976         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
32977         PRI_MACROS_BROKEN.
32978         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
32979
32980         * m4/imaxabs.m4: New file.
32981
32982         * m4/imaxdiv.m4: New file.
32983
32984 2006-08-26  Bruno Haible  <bruno@clisp.org>
32985
32986         * lib/inttypes_.h: New file.
32987         * lib/inttypes.h: Remove file.
32988         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
32989
32990         * lib/imaxabs.c: New file.
32991
32992         * lib/imaxdiv.c: New file.
32993
32994 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32995
32996         New config-h module, so that "make" output needn't be cluttered
32997         by -DHAVE_CONFIG_H.
32998         * MODULES.html.sh (Support for building libraries and executables):
32999         Add config-h.
33000         * modules/config-h: New file.
33001         * gnulib-tool (nl, sed_transform_lib_file): New vars.
33002         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
33003         the config-h module is used.
33004
33005         New configmake module, so that "make" output needn't be cluttered
33006         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
33007         * MODULES.html.sh (Support for building libraries and executables):
33008         Add configmake.
33009         * modules/configmake: New file.
33010
33011 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
33012
33013         * m4/config-h.m4: New file.
33014
33015 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33016
33017         * config/srclist.txt: Add elisp-comp.
33018
33019 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33020
33021         * MODULES.html.sh (Support for building libraries and executables):
33022         Add elisp-comp.
33023         * build-aux/elisp-comp: New file.
33024         * modules/elisp-comp: New file.
33025
33026 2006-08-24  Bruno Haible  <bruno@clisp.org>
33027
33028         * gnulib-tool (func_create_testdir): Use non-default values of
33029         sourcebase and m4base.
33030
33031 2006-08-24  Bruno Haible  <bruno@clisp.org>
33032
33033         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
33034         HTML structure.
33035
33036 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33037
33038         * modules/openat (Depends-on): Add lchown.
33039
33040 2006-08-23  Bruno Haible  <bruno@clisp.org>
33041
33042         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
33043         of gl_LOCK_EARLY instead of gl_LOCK.
33044
33045 2006-08-23  Bruno Haible  <bruno@clisp.org>
33046
33047         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
33048         on OSF/1 to no.
33049         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
33050
33051 2006-08-23  Bruno Haible  <bruno@clisp.org>
33052
33053         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
33054         as unusable.
33055
33056         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
33057         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
33058         (gl_LOCK): New macro.
33059
33060 2006-08-22  Simon Josefsson  <jas@extundo.com>
33061
33062         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
33063         to md5 module.
33064
33065 2006-08-22  Simon Josefsson  <jas@extundo.com>
33066
33067         * MODULES.html.sh: Add "Support for maintaining and release
33068         projects".
33069
33070         * build-aux/gnupload: New file, from coreutils.
33071
33072 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33073
33074         Avoid the need for AC_LIBSOURCES in m4 macros.
33075         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
33076         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
33077         * modules/check-version (EXTRA_DIST): Add check-version.h.
33078         * modules/crc (EXTRA_DIST): Add crc.h.
33079         * modules/des (EXTRA_DIST): Add des.h.
33080         * modules/gc (EXTRA_DIST): Add gc.h.
33081         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
33082         * modules/getline (EXTRA_DIST): Add getline.h.
33083         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
33084         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
33085         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
33086         * modules/md2 (EXTRA_DIST): Add md2.h.
33087         * modules/md4 (EXTRA_DIST): Add md4.h.
33088         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
33089         * modules/read-file (EXTRA_DIST): Add read-file.h.
33090         * modules/readline (EXTRA_DIST): Add readline.h.
33091         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
33092         rijndael-api-fst.h.
33093
33094 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33095
33096         * m4/rijndael.m4 (gl_ARCFOUR):
33097         * m4/arctwo.m4 (gl_ARCTWO):
33098         * m4/check-version.m4 (gl_CHECK_VERSION):
33099         * m4/crc.m4 (gl_CRC):
33100         * m4/des.m4 (gl_DES):
33101         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
33102         * m4/gc.m4 (gl_GC):
33103         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
33104         * m4/getline.m4 (gl_FUNC_GETLINE):
33105         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
33106         * m4/hmac-md5.m4 (gl_HMAC_MD5):
33107         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
33108         * m4/md2.m4 (gl_MD2):
33109         * m4/md4.m4 (gl_MD4):
33110         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
33111         * m4/read-file.m4 (gl_FUNC_READ_FILE):
33112         * m4/readline.m4 (gl_FUNC_READLINE):
33113         * m4/rijndael.m4 (gl_RIJNDAEL):
33114         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33115         to get the necessary .h files and whatnot.
33116
33117 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33118
33119         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
33120         gnulib rather than the other way around.
33121         * config/srclistvars.sh (COREUTILS): Remove.
33122
33123 2006-08-22  Jim Meyering  <jim@meyering.net>
33124
33125         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
33126
33127         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
33128
33129 2006-08-22  Eric Blake  <ebb9@byu.net>
33130
33131         * modules/regexprops-generic: New file.
33132         * MODULES.html.sh (Support for building documentation): List it.
33133
33134 2006-08-22  Eric Blake  <ebb9@byu.net>
33135
33136         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
33137         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33138         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
33139         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
33140
33141 2006-08-22  Bruno Haible  <bruno@clisp.org>
33142
33143         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
33144         and lib_LTLIBRARIES like the other lib_* variables.
33145
33146 2006-08-22  Bruno Haible  <bruno@clisp.org>
33147
33148         * build-aux/x-to-1.in: New file, from GNU gettext.
33149
33150 2006-08-22  Bruno Haible  <bruno@clisp.org>
33151
33152         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
33153         <utmpx.h> exists.
33154
33155 2006-08-22  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
33158         <utmpx.h> exists.
33159
33160 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33161
33162         BeOS portability.
33163         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
33164         exist.
33165         Problem reported by Bruno Haible.
33166
33167 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33168
33169         Avoid the need for AC_LIBSOURCES in m4 macros.
33170         * modules/acl (EXTRA_DIST): Add acl.h.
33171         * modules/argmatch (Files): Add m4/argmatch.m4.
33172         (configure.ac): Add gl_ARGMATCH.
33173         (EXTRA_DIST): Renamed from lib_SOURCES, for
33174         consistency with the other modules.  Remove argmatch.c.
33175         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
33176         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
33177         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
33178         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
33179         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
33180         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
33181         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
33182         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
33183         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
33184         * modules/closeout (EXTRA_DIST): Add closeout.h.
33185         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
33186         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
33187         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
33188         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
33189         dirname.h; remove basename.c and stripslash.c.
33190         * modules/exclude (EXTRA_DIST): Add exclude.h.
33191         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
33192         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
33193         * modules/file-type (EXTRA_DIST): Add file-type.h.
33194         * modules/filemode (EXTRA_DIST): Add filemode.h.
33195         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
33196         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33197         * modules/fpending (EXTRA_DIST): Add __fpending.h.
33198         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
33199         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
33200         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
33201         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
33202         * modules/getdate (EXTRA_DIST): Add getdate.c.
33203         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
33204         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
33205         * modules/getpass (EXTRA_DIST): Add getpass.h.
33206         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
33207         * modules/group-member (EXTRA_DIST): Add group-member.h.
33208         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
33209         * modules/hash (EXTRA_DIST): Add hash.h.
33210         * modules/human (EXTRA_DIST): Add human.h.
33211         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
33212         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
33213         * modules/lchown (EXTRA_DIST): Add lchown.h.
33214         * modules/long-options (EXTRA_DIST): Add long-options.h.
33215         * modules/lstat (EXTRA_DIST): Add lstat.h.
33216         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
33217         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
33218         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
33219         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
33220         * modules/memxor (EXTRA_DIST): Add memxor.h.
33221         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
33222         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
33223         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
33224         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
33225         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
33226         * modules/physmem (EXTRA_DIST): Add physmem.h.
33227         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
33228         * modules/posixver (EXTRA_DIST): Add posixver.h.
33229         * modules/quote (EXTRA_DIST): Add quote.h.
33230         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
33231         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
33232         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
33233         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
33234         regex_internal.h regexec.c.
33235         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
33236         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
33237         * modules/same (EXTRA_DIST): Add same.h.
33238         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
33239         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
33240         * modules/savedir (EXTRA_DIST): Add savedir.h.
33241         * modules/sha1 (EXTRA_DIST): Add sha1.h.
33242         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
33243         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
33244         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
33245         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
33246         * modules/strdup (EXTRA_DIST): Add strdup.h.
33247         * modules/strftime (EXTRA_DIST): Add strftime.h.
33248         * modules/strndup (EXTRA_DIST): Add strndup.h.
33249         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
33250         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
33251         * modules/time_r (EXTRA_DIST): Add time_r.h.
33252         * modules/timespec (EXTRA_DIST): Add timespec.h.
33253         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33254         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
33255         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
33256         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
33257         * modules/userspec (EXTRA_DIST): Add userspec.h.
33258         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
33259         * modules/utimens (EXTRA_DIST): Add utimens.h.
33260         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
33261         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
33262         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
33263         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
33264         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
33265         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
33266         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
33267         * modules/yesno (EXTRA_DIST): Add yesno.h.
33268
33269 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33270
33271         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
33272
33273         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
33274         * m4/dev-ino.m4, same-inode.m4: Remove.
33275
33276         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
33277         * m4/acl.m4 (AC_FUNC_ACL):
33278         * m4/backupfile.m4 (gl_BACKUPFILE):
33279         * m4/c-strtod.m4 (gl_C99_STRTOLD):
33280         * m4/canon-host.m4 (gl_CANON_HOST):
33281         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
33282         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
33283         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
33284         * m4/cloexec.m4 (gl_CLOEXEC):
33285         * m4/close-stream.m4 (gl_CLOSE_STREAM):
33286         * m4/closeout.m4 (gl_CLOSEOUT):
33287         * m4/dirfd.m4 (gl_FUNC_DIRFD):
33288         * m4/dirname.m4 (gl_DIRNAME):
33289         * m4/exclude.m4 (gl_EXCLUDE):
33290         * m4/exitfail.m4 (gl_EXITFAIL):
33291         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
33292         * m4/file-type.m4 (gl_FILE_TYPE):
33293         * m4/filemode.m4 (gl_FILEMODE):
33294         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
33295         * m4/fpending.m4 (gl_FUNC_FPENDING):
33296         * m4/fprintftime.m4 (gl_FPRINTFTIME):
33297         * m4/fts.m4 (gl_FUNC_FTS):
33298         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
33299         * m4/getdate.m4 (gl_GETDATE):
33300         * m4/gethrxtime.m4 (gl_GETHRXTIME):
33301         * m4/getpagesize.m4 (gl_GETPAGESIZE):
33302         * m4/getpass.m4 (gl_FUNC_GETPASS):
33303         * m4/gettime.m4 (gl_GETTIME):
33304         * m4/getugroups.m4 (gl_GETUGROUPS):
33305         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
33306         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
33307         * m4/hard-locale.m4 (gl_HARD_LOCALE):
33308         * m4/hash.m4 (gl_HASH):
33309         * m4/idcache.m4 (gl_IDCACHE):
33310         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
33311         * m4/lchown.m4 (gl_FUNC_LCHOWN):
33312         * m4/long-options.m4 (gl_LONG_OPTIONS):
33313         * m4/lstat.m4 (gl_FUNC_LSTAT):
33314         * m4/md5.m4 (gl_MD5):
33315         * m4/memcasecmp.m4 (gl_MEMCASECMP):
33316         * m4/memcoll.m4 (gl_MEMCOLL):
33317         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
33318         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
33319         * m4/memxor.m4 (gl_MEMXOR):
33320         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
33321         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
33322         * m4/modechange.m4 (gl_MODECHANGE):
33323         * m4/mountlist.m4 (gl_MOUNTLIST):
33324         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33325         * m4/openat.m4 (gl_FUNC_OPENAT):
33326         * m4/pathmax.m4 (gl_PATHMAX):
33327         * m4/physmem.m4 (gl_PHYSMEM):
33328         * m4/posixtm.m4 (gl_POSIXTM):
33329         * m4/posixver.m4 (gl_POSIXVER):
33330         * m4/quote.m4 (gl_QUOTE):
33331         * m4/quotearg.m4 (gl_QUOTEARG):
33332         * m4/readtokens.m4 (gl_READTOKENS):
33333         * m4/readutmp.m4 (gl_READUTMP):
33334         * m4/regex.m4 (gl_REGEX):
33335         * m4/safe-read.m4 (gl_SAFE_READ):
33336         * m4/safe-write.m4 (gl_SAFE_WRITE):
33337         * m4/same.m4 (gl_SAME):
33338         * m4/save-cwd.m4 (gl_SAVE_CWD):
33339         * m4/savedir.m4 (gl_SAVEDIR):
33340         * m4/settime.m4 (gl_SETTIME):
33341         * m4/sha1.m4 (gl_SHA1):
33342         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
33343         * m4/stat-macros.m4 (gl_STAT_MACROS):
33344         * m4/stat-time.m4 (gl_STAT_TIME):
33345         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
33346         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
33347         * m4/strdup.m4 (gl_FUNC_STRDUP):
33348         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
33349         * m4/strndup.m4 (gl_FUNC_STRNDUP):
33350         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
33351         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
33352         * m4/time_r.m4 (gl_TIME_R):
33353         * m4/timespec.m4 (gl_TIMESPEC):
33354         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
33355         * m4/unlinkdir.m4 (gl_UNLINKDIR):
33356         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
33357         * m4/userspec.m4 (gl_USERSPEC):
33358         * m4/utimecmp.m4 (gl_UTIMECMP):
33359         * m4/utimens.m4 (gl_UTIMENS):
33360         * m4/xalloc.m4 (gl_XALLOC):
33361         * m4/xgetcwd.m4 (gl_XGETCWD):
33362         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
33363         * m4/xreadlink.m4 (gl_XREADLINK):
33364         * m4/xstrtod.m4 (gl_XSTRTOD):
33365         * m4/yesno.m4 (gl_YESNO):
33366         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33367         to get the necessary .h files and whatnot.
33368
33369 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
33370             Bruno Haible  <bruno@clisp.org>
33371
33372         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
33373         /bin/sh understanding of '!' conditional negation.
33374
33375 2006-08-21  Jim Meyering  <jim@meyering.net>
33376
33377         * modules/openat (Depends-on): Really alphabetize.
33378
33379         * modules/acl (Depends-on): Add error and quote.
33380
33381         * check-module (find_included_lib_files): Add at-func.c to the
33382         ok-to-include-more-than-once white list.
33383
33384         * modules/openat (Depends-on): Add lstat.  Alphabetize.
33385
33386 2006-08-21  Bruno Haible  <bruno@clisp.org>
33387
33388         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33389         Emit a pkgdata_DATA variable only if some snippets add contents to it.
33390         Reported by Martin Lambers <marlam@marlam.de>.
33391
33392 2006-08-21  Bruno Haible  <bruno@clisp.org>
33393
33394         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
33395         specify an installation location, don't emit a noinst_LIBRARIES or
33396         noinst_LTLIBRARIES assignment.
33397
33398 2006-08-21  Bruno Haible  <bruno@clisp.org>
33399
33400         BeOS portability.
33401         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
33402         BeOS has mbrtowc() but no <wctype.h>.
33403
33404 2006-08-21  Bruno Haible  <bruno@clisp.org>
33405
33406         BeOS portability.
33407         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
33408         exist.
33409
33410 2006-08-21  Bruno Haible  <bruno@clisp.org>
33411
33412         BeOS portability.
33413         * lib/mbchar.h: Include <wctype.h> only if it exists.
33414
33415 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33416
33417         Remove files that are no longer needed by their respective modules.
33418         * m4/obstack.m4: Remove.
33419         * m4/strerror_r.m4: Remove.
33420         * m4/uint32_t.m4: Remove.
33421         * m4/uintptr_t.m4: Remove.
33422         * m4/ullong_max.m4: Remove.
33423         * m4/xstrtoimax.m4: Remove.
33424         * m4/xstrtoumax.m4: Remove.
33425
33426         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
33427         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
33428         dependencies now capture this.
33429
33430         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33431         Do not use AC_LIBSOURCES, since gnulib modules now do this.
33432         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
33433         * m4/human.m4 (gl_HUMAN): Likewise.
33434         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
33435         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
33436
33437         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
33438
33439         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
33440         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
33441         stdint.
33442         * m4/human.m4 (gl_HUMAN): Likewise.
33443         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
33444         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
33445         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33446         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
33447         * m4/xstrtol (gl_XSTRTOL): Likewise.
33448
33449         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
33450         AC_TYPE_LONG_LONG_INT.
33451         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33452         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
33453         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
33454         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
33455
33456         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
33457         on stdbool.
33458
33459         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
33460         (gl_PREREQ_XSTRTOUL): Remove.
33461
33462         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
33463
33464         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
33465         mode.
33466
33467 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33468
33469         Add and change modules to make it easier for coreutils to use
33470         gnulib-tool.
33471         * modules/backupfile (Files): Remove m4/d-ino.m4.
33472         (Depends-on): Add d-ino.
33473         * modules/cycle-check (Depends-on): Add stdint.
33474         (lib_SOURCES): Add cycle-check.h.
33475         * modules/d-ino: New module.
33476         * modules/d-type: New module.
33477         * modules/error (Files): Remove m4/strerror_r.m4.
33478         * modules/filemode (Files): Add m4/st_dm_mode.m4.
33479         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33480         m4/inttypes_h.m4, m4/uintmax_t.m4.
33481         (Depends-on): Add stdint.
33482         (lib_SOURCES): Add fsusage.h.
33483         * modules/getcwd (Files): Remove d-ino.m4.
33484         (Depends-on): Add d-ino.
33485         * modules/getndelim2 (Depends-on): Add stdint.
33486         * modules/glob (Files): Remove m4/d-type.m4.
33487         (Depends-on): Add d-type.
33488         * modules/host-os: New module.
33489         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
33490         m4/inttypes_h.m4, m4/uintmax_t.m4.
33491         * Depends-on: Add stdint.
33492         (lib_SOURCES): Add human.h.
33493         * modules/inttostr (Files): Remove m4/intmax_t.m4,
33494         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
33495         m4/uintmax_t.m4, m4/ulonglong.m4.
33496         (Depends-on): Add stdint.
33497         (EXTRA_DIST): Add inttostr.h.
33498         * modules/lchmod: New module.
33499         * modules/link-follow: New module.
33500         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
33501         (Depends-on): Add lchmod.
33502         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
33503         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
33504         (Depends-on): Add stdint.
33505         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
33506         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
33507         (Depends-on): Add stdint.
33508         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
33509         * modules/perl: New module.
33510         * modules/regex (Depends-on): Add stdint.
33511         * modules/rmdir-errno: New module.
33512         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
33513         m4/intmax_t.m4.
33514         (Depends-on): Add stdint.
33515         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
33516         m4/uintmax_t.m4.
33517         (Depends-on): Add stdint.
33518         * modules/unlink-busy: New module.
33519         * modules/utimecmp (Depends-on): Add stdint.
33520         * modules/uptime: New module.
33521         * modules/winsz-ioctl: New module.
33522         * modules/winsz-termios: New module.
33523         * modules/xnanosleep (Depends-on): Add nanosleep.
33524         * modules/ullong_max: Remove.
33525         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
33526         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
33527         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
33528         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
33529         (Depends-on): Add inttypes.
33530         (lib_SOURCES): Add xstrtol.h.
33531         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
33532         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
33533         * MODULES.html.sh: Move 'assert' into the assert section.
33534         Move 'dummy' into the linking section.
33535         Remove ullong_max.
33536         Add section for compatibility checks for POSIX:2001 functions,
33537         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
33538         winsz-ioctl, and winsz-termios into it.
33539         Add lchmod.
33540         Add top-level Misc section and put host-os, perl, and uptime
33541         into it.
33542
33543 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33544
33545         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
33546         now assume the stdint module.  Do not include inttypes.h.
33547         * lib/fsusage.h: Likewise.
33548         * lib/getndelim2.c: Likewise.
33549         * lib/human.h: Likewise.
33550         * lib/inttostr.h: Likewise.
33551         * lib/obstack.c: Likewise.
33552         * lib/regex_internal.h: Likewise.
33553         * lib/tempname.c: Likewise.
33554         * lib/utimecmp.c: Likewise.
33555         * lib/xstrtol.h: Likewise.
33556
33557         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
33558
33559         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
33560         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
33561         * lib/xtime.h: Likewise.
33562
33563 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33564
33565         * modules/openat (Files): Add lib/fchmodat.c.
33566         Fixes problem reported by Jay Youngman.
33567
33568 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
33571         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
33572
33573 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33574             Bruno Haible  <bruno@clisp.org>
33575
33576         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
33577         and is a script that invokes bison. Tighten the code. Add comments.
33578
33579 2006-08-18  Jim Meyering  <jim@meyering.net>
33580
33581         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
33582         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
33583         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
33584         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
33585
33586 2006-08-18  Bruno Haible  <bruno@clisp.org>
33587
33588         * modules/bison-i18n: New file.
33589         * MODULES.html.sh (Internationalization functions): Add it.
33590
33591 2006-08-18  Bruno Haible  <bruno@clisp.org>
33592
33593         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
33594         sys/statvfs.h. When getmntinfo was found, check its declaration and
33595         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
33596
33597 2006-08-18  Bruno Haible  <bruno@clisp.org>
33598
33599         * m4/bison-i18n.m4: New file, from bison.
33600
33601 2006-08-18  Bruno Haible  <bruno@clisp.org>
33602
33603         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
33604         (ME_DUMMY): Treat "kernfs" as a dummy.
33605         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
33606
33607 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33608
33609         Update from coreutils.
33610
33611         2006-08-15  Jim Meyering  <jim@meyering.net>
33612
33613         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
33614
33615         2006-01-17  Jim Meyering  <jim@meyering.net>
33616
33617         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
33618
33619         2006-01-11  Jim Meyering  <jim@meyering.net>
33620
33621         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
33622         Check for the lchmod function.
33623
33624 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33625
33626         Update from coreutils.
33627
33628         * lib/__fpending.h: Add copyright notice.
33629         * lib/fprintftime.h: Likewise.
33630         * lib/savedir.c: Use (C) in copyright notice.
33631         * lib/savedir.h: Likewise.
33632
33633         2006-08-15  Jim Meyering  <jim@meyering.net>
33634
33635         * lib/at-func.c: New file, with the logic of all emulated at-functions.
33636         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
33637         in support of the EXPECTED_ERRNO macro.
33638         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
33639         definitions.  Instead, define the appropriate symbols and include
33640         "at-func.c".
33641         * lib/mkdirat.c (mkdirat): Likewise.
33642         * lib/fchmodat.c (fchmodat): Likewise.
33643         (ENOSYS): Remove definition.
33644         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
33645         it.  Don't include "unistd--.h" -- it wasn't ever used.
33646
33647         2006-01-17  Jim Meyering  <jim@meyering.net>
33648
33649         Rewrite fts.c not to change the current working directory,
33650         by using openat, fstatat, fdopendir, etc..
33651
33652         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
33653         (HAVE_OPENAT_SUPPORT): Define.
33654         [_LIBC] (fchdir): Don't undef or define; no longer used.
33655         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
33656         Now, this `function' always succeeds, and consumes its file descriptor
33657         parameter -- so callers must not close such FDs.  Update callers.
33658         (diropen_fd, opendirat, cwd_advance_fd): New functions.
33659         (diropen): Add parameter, SP.  Adjust all callers.
33660         Implement using diropen_fd, rather than open.
33661         (fts_open): Initialize new member, fts_cwd_fd.
33662         Remove fts_rft-setting code.
33663         (fts_close): Close fts_cwd_fd, if necessary.
33664         (__opendir2): Define in terms of opendir or opendirat,
33665         depending on whether the FST_NOCHDIR flag is set.
33666         (fts_build): Since fts_safe_changedir consumes its FD, and since
33667         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
33668         and close the dup'd file descriptor upon failure.
33669         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
33670         (fts_safe_changedir): Tweak semantics to reflect that this function
33671         now calls cwd_advance_fd and hence consumes its FD argument.
33672         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
33673         [struct FTS] (fts_rft): Remove now-unused member.
33674         [struct FTS] (fts_cycle.state): Improve comment.
33675
33676         * lib/openat.c (openat_needs_fchdir): New function.
33677         * lib/openat.h (openat_needs_fchdir): Declare it.
33678
33679 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
33680
33681         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
33682         Problem and fix reported by Pádraig Brady in
33683         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
33684
33685 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33686
33687         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
33688
33689 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33690
33691         * lib/memcoll.c (memcoll): Optimize for the common case where the
33692         arguments are bytewise equal.
33693
33694 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33695
33696         * doc/regexprops-generic.texi: Add a copyright notice.
33697
33698 2006-08-15  Bruno Haible  <bruno@clisp.org>
33699
33700         * modules/tmpdir (License): Change to LGPL.
33701
33702 2006-08-15  Bruno Haible  <bruno@clisp.org>
33703
33704         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
33705         module.
33706
33707 2006-08-14  Simon Josefsson  <jas@extundo.com>
33708
33709         * config/srclist.txt: Add gnupload.
33710
33711 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33712
33713         Change copyright notice from LGPL 2 to GPL 2, since that's the
33714         standard form used in the gnulib repository.
33715         * tests/test-lock.c: Likewise.
33716         * tests/test-stdint.c: Likewise.
33717         * tests/test-tls.c: Likewise.
33718
33719         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
33720         prelude-manager.  User shorter URLs for GNU projects, without '?'.
33721         Add copyright notice.
33722
33723         * check-module: Add copyright notice.  Output a copyright
33724         notice if "--version" is specified.
33725         * modules/COPYING: New file.
33726         * tests/test-getaddrinfo.c: Add copyright notice.
33727         * tests/test-verify.c: Likewise.
33728
33729 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33730
33731         Change copyright notice from LGPL 2 to GPL 2, since that's the
33732         standard form used in the gnulib repository.
33733         * lib/lock.c: LGPL -> GPL.
33734         * lib/lock.h: Likewise.
33735         * lib/strnlen1.c: Likewise.
33736         * lib/strnlen1.h: Likewise.
33737         * lib/tls.c: Likewise.
33738         * lib/tls.h: Likewise.
33739         * lib/tmpdir.c: Likewise.
33740
33741         * lib/TODO: Remove; this belongs only in coreutils.
33742
33743 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33744
33745         Add copyright notices to long-enough files that lack them, since
33746         otherwise the files aren't clearly free.  Use the same notice that
33747         getdate.texi already uses.
33748         * doc/alloca-opt.texi: Add copyright notice.
33749         * doc/alloca.texi: Likewise.
33750         * doc/ctime.texi: Likewise.
33751         * doc/functions.texi: Likewise.
33752         * doc/gcd.texi: Likewise.
33753         * doc/gnulib-tool.texi: Likewise.
33754         * doc/inet_ntoa.texi: Likewise.
33755         * doc/visibility.texi: Likewise.
33756
33757         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
33758         * doc/quote.texi: Add copyright notice.
33759
33760         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
33761         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
33762         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
33763         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
33764         is now obsolete, and give a pointer to the Sun list.
33765         Add copyright notice.
33766
33767 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33768
33769         * config/srclistvars.sh: Add copyright notice.
33770
33771 2006-08-14  Eric Blake  <ebb9@byu.net>
33772
33773         Import the following change from libc:
33774
33775         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
33776
33777         Upstream bug 2997.
33778         * lib/misc/error.c: Add space between program name and message if file
33779         name is missing.
33780
33781 2006-08-12  Karl Berry  <karl@gnu.org>
33782
33783         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
33784         remove, these originate in gnulib now.
33785
33786 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33787
33788         * doc/Makefile (standards.info standards.html standards.dvi):
33789         Also depend on make-stds.texi.
33790
33791 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33792
33793         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
33794         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
33795
33796         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
33797         in wchar_t.  Problem reported by Eric Blake.
33798
33799         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
33800         LEN is smaller than SIZE.  Suggested by Bruno Haible.
33801         Also, help the compiler to keep LEN in a register.
33802
33803 2006-08-11  Eric Blake  <ebb9@byu.net>
33804
33805         * users.txt: Sort.  Add tar.
33806
33807 2006-08-11  Bruno Haible  <bruno@clisp.org>
33808
33809         * users.txt: New file.
33810
33811 2006-08-11  Bruno Haible  <bruno@clisp.org>
33812
33813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
33814         before <wchar.h>. Needed for OSF/1 and BSD/OS.
33815
33816 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33817
33818         * modules/snprintf (Depends-on): Remove minmax.
33819         (Maintainer): Add self and Bruno.
33820
33821 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33822
33823         * lib/.cppi-disable: Add snprintf.h, socket_.h.
33824         * lib/snprintf.c: Include <errno.h> and <limits.h>.
33825         (EOVERFLOW): Define if the system does not.
33826         Do not include "minmax.h"; it wasn't used.
33827         (snprintf): Don't assume size_t promotes to an unsigned type.
33828         Fix bug when generated string was too long for the buffer: the
33829         buffer's contents are supposed to be the initial prefix of the
33830         output.  Don't assume vasnprintf returns EOVERFLOW if the size
33831         exceeds INT_MAX; do the check ourselves.
33832
33833         Import the following changes from libc:
33834
33835         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
33836
33837         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
33838         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
33839         set wc to the byte which couldn't be converted.
33840         (re_string_reconstruct): Don't clear valid_raw_len before calling
33841         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
33842         tip_context using re_string_context_at.
33843
33844         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
33845
33846         * lib/posix/regex.h: g++ still cannot handled [restrict].
33847
33848         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
33849
33850         * lib/posix/regex.h: Remove special handling for VMS.
33851
33852 2006-08-10  Jim Meyering  <jim@meyering.net>
33853
33854         * modules/same-inode: New module.
33855         * modules/dev-ino: New module.
33856         * modules/cycle-check: Depend on these modules, rather than simply
33857         including their .h files.
33858         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
33859         required via m4/cycle-check.m4.
33860         * modules/same: Depend on new same-inode module, rather than
33861         including same-inode.h.
33862         * modules/chdir-safer: New file.
33863
33864         * modules/chown (Depends-on): Add stat-macros.
33865
33866 2006-08-10  Jim Meyering  <jim@meyering.net>
33867
33868         * m4/cycle-check.m4: New file.
33869         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
33870         * m4/dev-ino.m4, m4/same-inode.m4: New files.
33871
33872 2006-08-10  Eric Blake  <ebb9@byu.net>
33873
33874         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
33875         in from original proposal.
33876
33877 2006-08-10  Eric Blake  <ebb9@byu.net>
33878         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33879
33880         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
33881         namespace.
33882
33883 2006-08-10  Bruno Haible  <bruno@clisp.org>
33884
33885         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
33886         as well.
33887
33888 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33889
33890         Sync from coreutils.
33891
33892         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
33893
33894         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
33895         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
33896
33897 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33898
33899         * modules/restrict: Remove; no longer needed now that we assume
33900         Autoconf 2.59 or later.
33901         * MODULES.html.sh: Remove 'restrict'.
33902         * modules/argp (Depends-on): Remove 'restrict'.
33903         * modules/base64 (Depends-on): Likewise.
33904         * modules/gc (Depends-on): Likewise.
33905         * modules/getaddrinfo (Depends-on): Likewise.
33906         * modules/glob (Depends-on): Likewise.
33907         * modules/inet_ntop (Depends-on): Likewise.
33908         * modules/inet_pton (Depends-on): Likewise.
33909         * modules/memxor (Depends-on): Likewise.
33910         * modules/regex (Depends-on): Likewise.
33911         * modules/strtok_r (Depends-on): Likewise.
33912         * modules/time_r (Depends-on): Likewise.
33913
33914 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33915
33916         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
33917         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
33918         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33919         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
33920         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
33921         * m4/memxor.m4 (gl_MEMXOR): Likewise.
33922         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
33923         gl_C_RESTRICT replaced by AC_C_RESTRICT.
33924
33925         Merge from coreutils.
33926         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
33927         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
33928         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33929         * m4/time_r.m4 (gl_TIME_R): Likewise.
33930
33931 2006-08-09  Karl Berry  <karl@gnu.org>
33932
33933         * config/srclist.txt: no more gettext-tools, per Bruno.
33934
33935 2006-08-08  Eric Blake  <ebb9@byu.net>
33936
33937         * modules/verror: New module.
33938         * MODULES.html.sh: Document it.
33939
33940 2006-08-08  Eric Blake  <ebb9@byu.net>
33941
33942         * lib/verror.h, lib/verror.c: New files.
33943
33944 2006-08-08  Eric Blake  <ebb9@byu.net>
33945
33946         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
33947         verror_at_line output complies with GNU Coding Standards even when
33948         file is NULL.
33949
33950 2006-08-07  Bruno Haible  <bruno@clisp.org>
33951
33952         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
33953         versions of AIX.
33954         Reported by Ralf Wildenhues.
33955
33956 2006-08-07  Bruno Haible  <bruno@clisp.org>
33957
33958         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
33959         in an AC_DEFUN. Needed so that the autoconf snippets can use
33960         AC_REQUIRE.
33961
33962 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33963
33964         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33965         Initialize pkgdata_DATA.
33966         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
33967         overriding it.
33968
33969 2006-08-06  Eric Blake  <ebb9@byu.net>
33970
33971         * lib/error.h: Fold in some upstream changes from glibc.
33972         * lib/error.c: Likewise.
33973
33974 2006-08-04  Bruno Haible  <bruno@clisp.org>
33975
33976         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33977         Make the mostlyclean-local rule depend on mostlyclean-generic.
33978         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
33979
33980 2006-07-31  Bruno Haible  <bruno@clisp.org>
33981
33982         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
33983         <stdlib.h>, <string.h>.
33984
33985 2006-07-30  Bruno Haible  <bruno@clisp.org>
33986
33987         * modules/readlink (License): Change to LGPL.
33988
33989 2006-07-30  Bruno Haible  <bruno@clisp.org>
33990
33991         * modules/javaversion (Makefile.am): Distribute javaversion.java and
33992         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
33993         set PKGDATADIR to point to it.
33994
33995 2006-07-30  Bruno Haible  <bruno@clisp.org>
33996
33997         * modules/csharpexec (configure.ac): Comment out macro invocation.
33998         * modules/javaexec (configure.ac): Likewise.
33999         * modules/javacomp-script (configure.ac): Likewise.
34000
34001         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
34002
34003 2006-07-30  Bruno Haible  <bruno@clisp.org>
34004
34005         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
34006         linked-list.
34007
34008 2006-07-30  Bruno Haible  <bruno@clisp.org>
34009
34010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
34011
34012 2006-07-30  Bruno Haible  <bruno@clisp.org>
34013
34014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34015         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
34016         get removed.
34017
34018 2006-07-29  Bruno Haible  <bruno@clisp.org>
34019
34020         Make it possible for gnulib-tool to work with locally modified or
34021         augmented gnulib repositories.
34022         * gnulib-tool (func_usage): Document --local-dir option.
34023         (local_gnulib_dir): New variable.
34024         Handle --local-dir option.
34025         (func_lookup_file): New function.
34026         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
34027         (func_get_description, func_get_filelist, func_get_description,
34028         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
34029         func_get_automake_snippet, func_get_include_directive,
34030         func_get_license, func_get_maintainer): Use func_lookup_file.
34031         (func_import, func_create_testdir): Use func_lookup_file.
34032
34033 2006-07-29  Bruno Haible  <bruno@clisp.org>
34034
34035         * modules/setenv (Depends-on): Add unistd.
34036
34037 2006-07-29  Bruno Haible  <bruno@clisp.org>
34038
34039         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
34040
34041 2006-07-29  Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
34044
34045 2006-07-29  Bruno Haible  <bruno@clisp.org>
34046
34047         * gnulib-tool (import, update): If there is no Makefile.am, look at
34048         aclocal.m4, instead of bailing out.
34049
34050 2006-07-29  Bruno Haible  <bruno@clisp.org>
34051
34052         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
34053         Categorize the options by when they are useful.
34054
34055 2006-07-29  Bruno Haible  <bruno@clisp.org>
34056
34057         * gnulib-tool (func_usage): Document option --no-libtool.
34058         Handle option --no-libtool.
34059         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
34060         for changed semantics of $libtool variable.
34061         (func_import): Likewise. If libtool is not used, show this through
34062         an option --no-libtool.
34063         (func_create_testdir): Update.
34064
34065 2006-07-29  Bruno Haible  <bruno@clisp.org>
34066
34067         * gnulib-tool (func_import): Extend error message about missing
34068         --doc-base.
34069
34070 2006-07-29  Bruno Haible  <bruno@clisp.org>
34071
34072         * gnulib-tool (func_import): Don't create the $docbase directory if
34073         there is no file to store there.
34074
34075 2006-07-29  Bruno Haible  <bruno@clisp.org>
34076
34077         * gnulib-tool (autoconf_minversion): If a --dir option is given and
34078         relevant, look for configure.ac there, not in the current directory.
34079         Also use a simple search for AC_PREREQ, not "autoconf --trace".
34080
34081 2006-07-29  Bruno Haible  <bruno@clisp.org>
34082
34083         * gnulib-tool (SORT): New variable.
34084         (func_usage): Undocument --assume-autoconf option.
34085         Remove --assume-autoconf option handling.
34086         (autoconf_minversion): Determine from the contents of configure.ac.
34087         (func_import): Remove autoconf_minversion handling.
34088         Suggested by Eric Blake.
34089
34090 2006-07-29  Bruno Haible  <bruno@clisp.org>
34091
34092         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
34093
34094 2006-07-29  Bruno Haible  <bruno@clisp.org>
34095
34096         * config/srclist.txt (*setenv.[ch]): Remove rules.
34097
34098 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34099
34100         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
34101
34102 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34103
34104         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
34105         arpa/inet.h.
34106
34107 2006-07-28  Simon Josefsson  <jas@extundo.com>
34108
34109         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
34110         * modules/inet_pton (Depends-on): Likewise.
34111
34112 2006-07-28  Simon Josefsson  <jas@extundo.com>
34113
34114         * m4/netinet_in_h.m4: New file.
34115
34116 2006-07-28  Simon Josefsson  <jas@extundo.com>
34117
34118         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
34119         #include's.
34120
34121 2006-07-28  Simon Josefsson  <jas@extundo.com>
34122
34123         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
34124         #include's.
34125
34126 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
34127
34128         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
34129         setgid on directories only if they set these bits.
34130         * lib/modechange.h: Remove obsolete comment about masks.
34131
34132 2006-07-28  Eric Blake  <ebb9@byu.net>
34133
34134         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
34135         macro expansion.
34136
34137 2006-07-28  Bruno Haible  <bruno@clisp.org>
34138
34139         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
34140
34141 2006-07-28  Bruno Haible  <bruno@clisp.org>
34142
34143         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
34144
34145 2006-07-28  Bruno Haible  <bruno@clisp.org>
34146
34147         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34148         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34149         Define fallbacks.
34150         Avoids link error on FreeBSD 4.x.
34151         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34152
34153         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
34154         encoding.
34155         * lib/mbswidth.c (iswcntrl): Likewise.
34156
34157 2006-07-27  Bruno Haible  <bruno@clisp.org>
34158
34159         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
34160         test.
34161
34162 2006-07-27  Bruno Haible  <bruno@clisp.org>
34163
34164         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
34165         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
34166         defined.
34167
34168 2006-07-26  Eric Blake  <ebb9@byu.net>
34169
34170         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
34171
34172 2006-07-26  Eric Blake  <ebb9@byu.net>
34173
34174         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
34175         like mingw that lack mkstemp.
34176         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
34177         avoid compilation warning on mingw.
34178
34179 2006-07-26  Bruno Haible  <bruno@clisp.org>
34180
34181         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
34182         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
34183         INT_FAST*_MIN, INTPTR_MIN.
34184
34185 2006-07-25  Bruno Haible  <bruno@clisp.org>
34186
34187         * modules/version-etc (Depends-on): Add stdarg.
34188
34189 2006-07-25  Bruno Haible  <bruno@clisp.org>
34190
34191         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
34192         complex commands.
34193
34194 2006-07-25  Bruno Haible  <bruno@clisp.org>
34195
34196         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
34197         defined in <stdarg.h> or config.h.
34198
34199 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34200
34201         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
34202         (gl_STDIO_SAFER): Remove.
34203
34204 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34205
34206         * MODULES.html.sh (File stream based Input/Output):
34207         Add fopen-safer, tmpfile-safer; remove stdio-safer.
34208         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
34209         * modules/fopen-safer, modules/tmpfile-safer: New files.
34210         * modules/stdio-safer: Remove.
34211
34212 2006-07-24  Bruno Haible  <bruno@clisp.org>
34213
34214         * modules/tmpdir: New file.
34215         * MODULES.html.sh (File system functions): Add it.
34216
34217 2006-07-24  Bruno Haible  <bruno@clisp.org>
34218
34219         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
34220         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
34221
34222 2006-07-24  Bruno Haible  <bruno@clisp.org>
34223
34224         * modules/clean-temp: New file.
34225
34226 2006-07-24  Bruno Haible  <bruno@clisp.org>
34227
34228         * m4/tmpdir.m4: New file, from GNU gettext.
34229
34230 2006-07-24  Bruno Haible  <bruno@clisp.org>
34231
34232         * lib/tmpdir.h: New file, from GNU gettext.
34233         * lib/tmpdir.c: New file, from GNU gettext.
34234
34235 2006-07-24  Bruno Haible  <bruno@clisp.org>
34236
34237         * lib/clean-temp.h: New file, from GNU gettext.
34238         * lib/clean-temp.c: New file, from GNU gettext.
34239
34240 2006-07-23  Eric Blake  <ebb9@byu.net>
34241
34242         * modules/stdio-safer (Files): Add tmpfile-safer.c.
34243         (Depends-on): Add binary-io.
34244
34245 2006-07-23  Eric Blake  <ebb9@byu.net>
34246
34247         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
34248
34249 2006-07-23  Eric Blake  <ebb9@byu.net>
34250
34251         * lib/tmpfile-safer.c: New file.
34252         * lib/stdio-safer.h (fopen_safer): Add prototype.
34253         * lib/stdio--.h (tmpfile): Make safer.
34254
34255 2006-07-23  Bruno Haible  <bruno@clisp.org>
34256
34257         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
34258         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
34259         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
34260         gl_linked_remove_at): Use it.
34261
34262 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34263         and Simon Josefsson <jas@extundo.com>
34264
34265         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
34266
34267         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
34268
34269 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34270
34271         * modules/close-stream: New file.
34272         * modules/closeout (Description): Make it clear that it exits
34273         with a diagnostic on error.
34274         (Depends-on): Add close-stream.  Remove fpending, stdbool.
34275         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
34276
34277 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34278
34279         * m4/close-stream.m4: New file.
34280
34281 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34282
34283         * lib/close-stream.c, lib/close-stream.h: New files.
34284
34285 2006-07-22  Bruno Haible  <bruno@clisp.org>
34286
34287         Merge from GNU gettext 0.15.
34288
34289         2006-05-01  Bruno Haible  <bruno@clisp.org>
34290
34291                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
34292
34293         2006-07-22  Bruno Haible  <bruno@clisp.org>
34294
34295                 * modules/javaversion: New file.
34296                 * MODULES.html.sh (Java): Add javaversion.
34297
34298         2006-03-12  Bruno Haible  <bruno@clisp.org>
34299
34300                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
34301
34302         2005-12-04  Bruno Haible  <bruno@clisp.org>
34303
34304                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
34305                 (untested).
34306
34307         2006-06-21  Bruno Haible  <bruno@clisp.org>
34308
34309                 Avoid warnings from recent versions of mcs.
34310                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
34311                 -o, -L, -r any more. Use options documented since mcs-1.0
34312                 instead. Similarly for -g.
34313
34314         2005-12-04  Bruno Haible  <bruno@clisp.org>
34315
34316                 * build-aux/csharpcomp.sh.in: Suffix for resources is
34317                 .resources, not .resource.
34318
34319         2005-07-09  Bruno Haible  <bruno@clisp.org>
34320
34321                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
34322                 add a .dll suffix.
34323                 Reported by Mark Junker <mjscod@gmx.de>.
34324
34325         2006-07-22  Bruno Haible  <bruno@clisp.org>
34326
34327                 * modules/gettext: Upgrade to gettext-0.15.
34328                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
34329                 m4/visibility.m4.
34330                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
34331
34332 2006-07-22  Bruno Haible  <bruno@clisp.org>
34333
34334         Merge from GNU gettext 0.15.
34335
34336         2006-03-25  Bruno Haible  <bruno@clisp.org>
34337
34338                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
34339
34340         2006-07-21  Bruno Haible  <bruno@clisp.org>
34341
34342                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
34343                 "1.1".
34344
34345         2006-05-09  Bruno Haible  <bruno@clisp.org>
34346
34347                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
34348                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
34349                 for the conftestver execution.
34350
34351         2006-05-01  Bruno Haible  <bruno@clisp.org>
34352
34353                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
34354                 optional target-version argument. Verify that the compiler
34355                 groks source of the specified source-version, or add -source
34356                 option as necessary. Verify that the compiler produces
34357                 bytecode in the specified target-version, or add -target and
34358                 -source options as necessary. Make the result of the test
34359                 available as variable CONF_JAVAC. Also log error output in
34360                 config.log.
34361
34362         2006-03-11  Bruno Haible  <bruno@clisp.org>
34363
34364                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
34365
34366         2006-05-09  Bruno Haible  <bruno@clisp.org>
34367
34368                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
34369                 CLASSPATH_SEPARATOR to a semicolon.
34370
34371         2006-03-12  Bruno Haible  <bruno@clisp.org>
34372
34373                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
34374                 available as variable CONF_JAVA, for subsequent autoconf
34375                 tests. Also log error output in config.log.
34376
34377         2006-07-19  Bruno Haible  <bruno@clisp.org>
34378
34379                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
34380                 that getline works on glibc2 systems. Needed to avoid trouble
34381                 in relocatable.c.
34382                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
34383
34384         2005-12-04  Bruno Haible  <bruno@clisp.org>
34385
34386                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
34387                 launcher (untested).
34388
34389         2005-12-04  Bruno Haible  <bruno@clisp.org>
34390
34391                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
34392
34393         2006-07-22  Bruno Haible  <bruno@clisp.org>
34394
34395                 * gettext.m4: Update from GNU gettext-0.15.
34396                 * nls.m4: Likewise.
34397                 * po.m4: Likewise.
34398                 * inttypes-pri.m4: Likewise.
34399                 * inttypes-h.m4: Renamed from inttypes.m4.
34400                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
34401
34402 2006-07-22  Bruno Haible  <bruno@clisp.org>
34403
34404         Merge from GNU gettext 0.15.
34405
34406         2005-07-05  Bruno Haible  <bruno@clisp.org>
34407
34408                 * printf-args.c (printf_fetchargs): Work around broken
34409                 definition of wint_t on mingw.
34410
34411         2005-02-12  Bruno Haible  <bruno@clisp.org>
34412
34413                 * xallocsa.h: Add extern "C" for C++.
34414
34415         2006-05-17  Bruno Haible  <bruno@clisp.org>
34416
34417                 Cygwin portability.
34418                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
34419
34420         2006-04-30  Bruno Haible  <bruno@clisp.org>
34421
34422                 * progreloc.c: Include <mach-o/dyld.h> if available.
34423                 (find_executable): Use _NSGetExecutablePath when possible.
34424
34425         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34426
34427                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
34428                 function.
34429
34430         2005-12-29  Bruno Haible  <bruno@clisp.org>
34431
34432                 * progreloc.c (set_program_name_and_installdir): Fix
34433                 compilation error.
34434
34435         2005-12-04  Bruno Haible  <bruno@clisp.org>
34436
34437                 Cygwin portability.
34438                 * progreloc.c: Include <windows.h> also on Cygwin.
34439                 (find_executable): Add support for Cygwin.
34440                 (set_program_name_and_installdir): Handle also platforms with
34441                 nonempty EXEEXT.
34442
34443         2006-07-11  Bruno Haible  <bruno@clisp.org>
34444
34445                 * javacomp.c: Fix a comment.
34446                 Reported by Jim Meyering.
34447
34448         2006-04-30  Bruno Haible  <bruno@clisp.org>
34449
34450                 * javacomp.h (compile_java_class): Add source_version,
34451                 target_version arguments.
34452                 * javacomp.c: Rewritten to choose only a compiler that
34453                 respects the specified source_version and target_version.
34454
34455         2006-06-27  Bruno Haible  <bruno@clisp.org>
34456
34457                 Assume correct S_ISDIR macro.
34458                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
34459
34460         2006-07-22  Bruno Haible  <bruno@clisp.org>
34461
34462                 * javaversion.h: New file, from GNU gettext.
34463                 * javaversion.c: New file, from GNU gettext.
34464                 * javaversion.java: New file, from GNU gettext.
34465                 * javaversion.class: New file, from GNU gettext.
34466
34467         2006-05-17  Bruno Haible  <bruno@clisp.org>
34468
34469                 Cygwin portability.
34470                 * javaexec.c (execute_java_class): Test for jview program
34471                 also on Cygwin.
34472
34473         2006-04-09  Bruno Haible  <bruno@clisp.org>
34474
34475                 * fatal-signal.c: Don't include string.h.
34476                 (at_fatal_signal): Use a copying loop instead of memcpy.
34477
34478         2005-12-04  Bruno Haible  <bruno@clisp.org>
34479
34480                 * csharpexec.c: Add support for 'clix' launcher (untested).
34481                 (execute_csharp_using_sscli): New function.
34482                 (execute_csharp_program): Call it.
34483
34484         2006-06-21  Bruno Haible  <bruno@clisp.org>
34485
34486                 Avoid warnings from recent versions of mcs.
34487                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
34488                 -o, -L, -r any more. Use options documented since mcs-1.0
34489                 instead. Similarly for -g.
34490
34491         2005-07-09  Bruno Haible  <bruno@clisp.org>
34492
34493                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
34494                 add a .dll suffix.
34495                 Reported by Mark Junker <mjscod@gmx.de>.
34496
34497         2006-06-17  Bruno Haible  <bruno@clisp.org>
34498
34499                 * config.charset: Update for NetBSD 3.0.
34500
34501         2006-05-17  Bruno Haible  <bruno@clisp.org>
34502
34503                 Cygwin portability.
34504                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
34505
34506         2006-05-16  Bruno Haible  <bruno@clisp.org>
34507
34508                 * localcharset.c [CYGWIN]: Include <windows.h>.
34509                 (get_charset_aliases): For Cygwin, return the same CPxxx
34510                 aliases list as under WIN32.
34511                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
34512                 the environment variables. Fall back to GetACP().
34513
34514         2006-04-05  Bruno Haible  <bruno@clisp.org>
34515
34516                 * config.charset: Update Juan Manuel Guerrero's address.
34517
34518         2005-02-12  Bruno Haible  <bruno@clisp.org>
34519
34520                 * allocsa.h: Add extern "C" for C++.
34521
34522         2005-02-10  Bruno Haible  <bruno@clisp.org>
34523
34524                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
34525                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
34526
34527         2006-07-22  Bruno Haible  <bruno@clisp.org>
34528
34529                 * gettext.h: Update to GNU gettext-0.15.
34530
34531 2006-07-22  Bruno Haible  <bruno@clisp.org>
34532
34533         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
34534         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
34535         lib-prefix.m4, longdouble.m4, ssize_t.m4.
34536
34537 2006-07-21  Eric Blake  <ebb9@byu.net>
34538
34539         * modules/stdlib-safer: New file.
34540         * MODULES.html.sh (File stream based Input/Output): Add
34541         stdlib-safer.
34542
34543 2006-07-21  Eric Blake  <ebb9@byu.net>
34544
34545         * lib/stdlib-safer.h: New file from coreutils, required by
34546         stdlib--.h.
34547
34548 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34549
34550         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
34551
34552 2006-07-20  Bruno Haible  <bruno@clisp.org>
34553
34554         * gnulib-tool: Recognize new option --assume-autoconf.
34555         (autoconf_minversion): New variable.
34556         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
34557
34558 2006-07-20  Bruno Haible  <bruno@clisp.org>
34559
34560         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
34561
34562 2006-07-19  Derek R. Price  <derek@ximbiot.com>
34563
34564         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
34565         Reindent and repaginate.
34566
34567 2006-07-19  Derek Price  <derek@ximbiot.com>
34568
34569         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
34570         Correct grammar.
34571
34572 2006-07-17  Bruno Haible  <bruno@clisp.org>
34573
34574         * modules/list: New file.
34575         * modules/array-list: New file.
34576         * modules/carray-list, modules/carray-list-tests: New files.
34577         * modules/linked-list, modules/linked-list-tests: New files.
34578         * modules/avltree-list, modules/avltree-list-tests: New files.
34579         * modules/rbtree-list, modules/rbtree-list-tests: New files.
34580         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
34581         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
34582         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
34583         * modules/oset: New file.
34584         * modules/array-oset: New file.
34585         * modules/avltree-oset, modules/avltree-oset-tests: New files.
34586         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
34587         * tests/test-carray_list.c: New file.
34588         * tests/test-linked_list.c: New file.
34589         * tests/test-avltree_list.c: New file.
34590         * tests/test-rbtree_list.c: New file.
34591         * tests/test-linkedhash_list.c: New file.
34592         * tests/test-avltreehash_list.c: New file.
34593         * tests/test-rbtreehash_list.c: New file.
34594         * tests/test-avltree_oset.c: New file.
34595         * tests/test-rbtree_oset.c: New file.
34596         * MODULES.html.sh (Container data structures): New section.
34597
34598 2006-07-17  Bruno Haible  <bruno@clisp.org>
34599
34600         * m4/gl_list.m4: New file.
34601
34602 2006-07-17  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/gl_list.h: New file.
34605         * lib/gl_list.c: New file.
34606         * lib/gl_array_list.h: New file.
34607         * lib/gl_array_list.c: New file.
34608         * lib/gl_carray_list.h: New file.
34609         * lib/gl_carray_list.c: New file.
34610         * lib/gl_linked_list.h: New file.
34611         * lib/gl_linked_list.c: New file.
34612         * lib/gl_anylinked_list1.h: New file.
34613         * lib/gl_anylinked_list2.h: New file.
34614         * lib/gl_avltree_list.h: New file.
34615         * lib/gl_avltree_list.c: New file.
34616         * lib/gl_anyavltree_list1.h: New file.
34617         * lib/gl_anyavltree_list2.h: New file.
34618         * lib/gl_rbtree_list.h: New file.
34619         * lib/gl_rbtree_list.c: New file.
34620         * lib/gl_anyrbtree_list1.h: New file.
34621         * lib/gl_anyrbtree_list2.h: New file.
34622         * lib/gl_anytree_list1.h: New file.
34623         * lib/gl_anytree_list2.h: New file.
34624         * lib/gl_linkedhash_list.h: New file.
34625         * lib/gl_linkedhash_list.c: New file.
34626         * lib/gl_anyhash_list1.h: New file.
34627         * lib/gl_anyhash_list2.h: New file.
34628         * lib/gl_avltreehash_list.h: New file.
34629         * lib/gl_avltreehash_list.c: New file.
34630         * lib/gl_rbtreehash_list.h: New file.
34631         * lib/gl_rbtreehash_list.c: New file.
34632         * lib/gl_anytreehash_list1.h: New file.
34633         * lib/gl_anytreehash_list2.h: New file.
34634
34635         * lib/gl_oset.h: New file.
34636         * lib/gl_oset.c: New file.
34637         * lib/gl_array_oset.h: New file.
34638         * lib/gl_array_oset.c: New file.
34639         * lib/gl_avltree_oset.h: New file.
34640         * lib/gl_avltree_oset.c: New file.
34641         * lib/gl_rbtree_oset.h: New file.
34642         * lib/gl_rbtree_oset.c: New file.
34643         * lib/gl_anytree_oset.h: New file.
34644
34645 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34646
34647         * m4/mkancesdirs.m4: New file.
34648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
34649         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
34650         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
34651         it.
34652
34653 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34654
34655         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
34656         * lib/mkancesdirs.h: New files.
34657         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
34658         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
34659         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
34660         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
34661         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
34662         callers changed.  Revamp internals significantly, by not
34663         attempting to create directories that are temporarily more
34664         permissive than the final results.  Do not attempt to use
34665         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
34666         This removes some race conditions, fixes some bugs, and simplifies
34667         things.  Use new dirchownmod function to do owner and mode changes.
34668         * lib/mkdir-p.h: Likewise.
34669         * lib/modechange.c (octal_to_mode): New function.
34670         (struct mode_change): New member mentioned.
34671         (make_node_op_equals): New arg mentioned.  All callers changed.
34672         (mode_compile): Keep track of which mode bits the user has explicitly
34673         mentioned.
34674         (mode_adjust): New arg DIR, so that we implement the X op correctly.
34675         New arg PMODE_BITS, to keep track of which mode bits the user
34676         mentioned; it treats S_ISUID and S_ISGID speciall.
34677         All callers changed.
34678         * lib/modechange.h: Likewise.
34679
34680 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34681
34682         * MODULES.html.sh: Add mkancestors.
34683         * modules/mkancesdirs: New module.
34684         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
34685         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
34686         The chdir-safer and afs files are now orphans; I'll remove them
34687         unless someone speaks up.
34688         Add lib/dirchownmod.c, lib/dirchownmod.h.
34689         (Depends-on): Remove alloca, chown, save-cwd, dirname.
34690         Add lchown, mkancesdirs.
34691         (Maintainer): Add self.
34692
34693 2006-07-15  Karl Berry  <karl@gnu.org>
34694
34695         * gnulib-tool: help message wording/arrangement.
34696
34697 2006-07-14  Simon Josefsson  <jas@extundo.com>
34698
34699         * doc/gnulib.texi (Libtool and Windows): New section.
34700
34701 2006-07-12  Simon Josefsson  <jas@extundo.com>
34702
34703         * modules/gendocs (License): Fix license, approved by Karl.
34704
34705 2006-07-12  Eric Blake  <ebb9@byu.net>
34706
34707         * MODULES.html.sh: Add gendocs.
34708
34709 2006-07-11  Eric Blake  <ebb9@byu.net>
34710
34711         * modules/fdl: New module, to install doc/fdl.texi.
34712         * MODULES.html.sh: Add new section for documentation modules.
34713         * gnulib-tool: Avoid space-tab.
34714         (--doc-base): New option, to manage files from doc.
34715
34716 2006-07-11  Eric Blake  <ebb9@byu.net>
34717
34718         * m4/absolute-header.m4: Fix comments to match recent change.
34719
34720 2006-07-11  Eric Blake  <ebb9@byu.net>
34721
34722         * gnulib-tool: List --doc-base before --tests-base.
34723
34724 2006-07-11  Derek R. Price  <derek@ximbiot.com>
34725
34726         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
34727
34728 2006-07-11  Bruno Haible  <bruno@clisp.org>
34729
34730         * README: Mention where to put documentation.
34731
34732 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34733
34734         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
34735
34736 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34737
34738         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
34739         to stdint.m4.
34740
34741 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34742
34743         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
34744         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
34745         "no/such/file/stdint.h" when there is no such file, so that
34746         the resulting C code can be parsed by dodgy compilers.
34747         Problems reported by Bob Proulx.
34748
34749 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34750
34751         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
34752         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34753         macros into the GNU _D_EXACT_NAMLEN.
34754         * lib/savedir.c:  Likewise.
34755         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
34756
34757 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34758         and Paul Eggert  <eggert@cs.ucla.edu>
34759
34760         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
34761         * m4/savedir.m4:
34762         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34763         macros into the GNU _D_EXACT_NAMLEN.
34764
34765 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34766
34767         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
34768         around the absolute name, to work around a problem with the HP-UX
34769         11.23 native C compiler, reported by Bob Proulx.
34770
34771 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34772
34773         * doc/maintain.texi, make-stds.texi: Sync from
34774         <http://savannah.gnu.org/projects/gnustandards>.
34775
34776 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34777
34778         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
34779
34780 2006-07-09  Jim Meyering  <jim@meyering.net>
34781
34782         * m4/glob.m4: Remove a doubled word in a comment.
34783
34784 2006-07-09  Jim Meyering  <jim@meyering.net>
34785
34786         * lib/argp-pv.c: Remove a doubled word in a comment.
34787         * lib/check-version.c (check_version): Likewise.
34788         * lib/javacomp.c (compile_java_class): Likewise.
34789
34790 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34791
34792         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
34793         for the benefit of people using Autoconf 2.60.  If you want to
34794         support older Autoconf versions you can copy m4/onceonly_2_57.m4
34795         (or m4/onceonly.m4, if pre-2.57) manually.
34796
34797 2006-07-08  Jim Meyering  <jim@meyering.net>
34798
34799         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
34800         comment.
34801         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
34802         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
34803         comment.
34804
34805 2006-07-08  Jim Meyering  <jim@meyering.net>
34806
34807         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
34808
34809 2006-07-07  Simon Josefsson  <jas@extundo.com>
34810
34811         * tests/test-crc.c: Change expected crc value, the test vector
34812         were probably computed using the old broken crc.c?
34813
34814 2006-07-06  Simon Josefsson  <jas@extundo.com>
34815
34816         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
34817         now the canonical place for the M4 file).
34818
34819         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
34820         from the sys_socket dependency now.
34821
34822         * modules/inet_pton (Files): Ditto.
34823
34824         * modules/inet_ntop (Files): Ditto.
34825
34826 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34827
34828         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
34829         not gl_PREREQ_GETUSERSHELL.
34830
34831 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34832
34833         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
34834         with only one argument, for Autoconf 2.60.
34835         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
34836         expand to nothing, so add a shell command to avoid syntax error.
34837         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
34838
34839 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34840
34841         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
34842
34843 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34844
34845         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
34846         no longer needed.  Check for isblank decl.
34847         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
34848         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
34849         of existence.
34850
34851 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34852
34853         * lib/getloadavg.c: Use __VMS, not VMS.
34854         * lib/getopt.c: Likewise.
34855         * lib/getpagesize.h: Likewise.
34856         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
34857         and probably does not work.
34858
34859 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34860
34861         * lib/.cppi-disable: Add wcwidth.
34862         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
34863         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
34864         (ISGRAPH): Remove.  All uses changed to isgraph.
34865         (FOLD) [!defined _LIBC]: Remove special case.
34866         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
34867         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
34868         HAVE_ISBLANK.
34869         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
34870         case.
34871
34872 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34873
34874         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
34875         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
34876         brackets.  Other minor changes to suppress some compiler
34877         warnings.
34878
34879 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34880         and Paul Eggert  <eggert@cs.ucla.edu>
34881
34882         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
34883         of invoking obsolescent AC_HEADER_DIRENT macro.
34884         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
34885         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
34886         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34888         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
34889         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34890         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
34891         * m4/readdir.m4: Remove; no longer needed.
34892
34893 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34894         and Paul Eggert  <eggert@cs.ucla.edu>
34895
34896         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
34897         Don't worry about this obsolete case any more.
34898         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
34899         directories.
34900         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
34901         worry about this obsolete case any more.
34902         * lib/fts.c: Likewise.
34903         * lib/getcwd.c: Likewise.
34904         * lib/glob.h: Likewise.
34905         * lib/savedir.c: Likewise.
34906
34907 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34908
34909         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
34910         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
34911         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
34912         needed.
34913         All uses removed.
34914         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34915         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34916         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
34917         needed.
34918         * m4/getdate.m4 (gl_GETDATE): Likewise.
34919         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34920         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34921         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34922         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34923         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34924         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34925         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
34926         needed.
34927
34928 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34929
34930         * lib/memcasecmp.c: Include <limits.h>.
34931         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
34932         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
34933         Don't assume isdigit succeeds only on '0' through '9'.
34934
34935 2006-07-05  Eric Blake  <ebb9@byu.net>
34936
34937         * modules/getaddrinfo (Depends-on): Add snprintf.
34938
34939 2006-07-05  Eric Blake  <ebb9@byu.net>
34940
34941         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
34942         to avoid 'header present but could not be compiled' on cygwin.
34943
34944 2006-07-05  Eric Blake  <ebb9@byu.net>
34945
34946         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
34947         missing from netdb.h.
34948         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
34949
34950 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34951
34952         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
34953         no longer needed.
34954         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
34955         * m4/getdate.m4 (gl_GETDATE): Likewise.
34956         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34957         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34958         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34959         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34960         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34961
34962 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34963
34964         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
34965         All uses of is_space replaced by isspace.
34966         * lib/exit.h: Don't talk about STDC_HEADERS.
34967         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
34968         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
34969         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
34970         replaced by isprint etc.
34971         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
34972         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34973         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
34974         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
34975         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
34976         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34977
34978 2006-07-05  Bruno Haible  <bruno@clisp.org>
34979
34980         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
34981         the function exists, before testing against AIX.
34982         Reported by Martin Lambers <marlam@marlam.de>.
34983
34984 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34985
34986         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
34987         From Mark D. Baushke.
34988
34989 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34990
34991         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
34992         to the absolute name, not just one, to bypass Sun C 5.8's
34993         "warning: #include of /usr/include/... may be non-portable".
34994
34995 2006-07-04  Eric Blake  <ebb9@byu.net>
34996
34997         * modules/dirname-tests: New test module.
34998         * tests/test-dirname.c: New file, replacing dirname.c
34999         TEST_DIRNAME section that was recently deleted.
35000
35001 2006-07-04  Bruno Haible  <bruno@clisp.org>
35002
35003         Assume ANSI C header files and <ctype.h> functions.
35004         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
35005         (mbsnwidth): Use isprint, iscntrl instead.
35006
35007 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35008
35009         Merge from coreutils.
35010         * MODULES.html.sh: Add xstrtold.
35011         * modules/xstrtold: New file.
35012         * modules/cycle-check (Files): Add lib/same-inode.h.
35013         * modules/dirname (Files): Add m4/double-slash-root.m4.
35014         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
35015         * modules/mkdir-p (Files): Add lib/same-inode.h.
35016         * modules/same (Files): Add lib/same-inode.h.
35017
35018 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35019
35020         * m4/absolute-header.m4: Renamed from full-header-path.m4.
35021         This is to keep the terminology clean; POSIX talks about
35022         "absolute pathnames", not "full pathnames", but the GNU
35023         Coding Standards say to use "path" for something else;
35024         so use "absolute" to keep both sides happy.
35025         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
35026         Set gl_absolute_header, not gl_full_header_path.
35027         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
35028         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
35029         All uses changed.
35030
35031         Merge from coreutils.
35032
35033         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35034
35035         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
35036         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
35037         want to require the building of c-strtod.o.
35038         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
35039         needs -lm directly.
35040         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
35041
35042         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35043
35044         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
35045         --as-needed option if available.  Problem reported by Albert Chin in
35046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
35047         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
35048         cc merely issues a bunch of annoying warnings for --as-needed
35049         (this problem was reported by Bob Proulx).  Also, try linking with
35050         -lm to detect a bug in binutils 2.16 (this problem was reported
35051         by Ralf Wildenhues).
35052
35053         2006-06-18  Jim Meyering  <jim@meyering.net>
35054
35055         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
35056         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
35057         macro.
35058         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
35059         also check for glibc-2.4's abort-inducing bug.
35060
35061         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
35062         Low-probability clean-up should be to use rmdir to get rid of
35063         the just-created directory, not unlink.
35064
35065         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
35066         configure fail, and request a bug report to inform us about it.
35067         Add a comment that, barring reports to the contrary, in 2007 we'll
35068         assume ftruncate is universally available.
35069
35070         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35071
35072         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
35073
35074         2006-03-12  Jim Meyering  <jim@meyering.net>
35075
35076         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
35077         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
35078         * m4/same.m4 (gl_SAME): Likewise.
35079         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
35080
35081         2006-03-11  Eric Blake  <ebb9@byu.net>
35082
35083         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
35084         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
35085         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
35086         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
35087
35088 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35089
35090         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
35091         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
35092         reported by Mark D. Baushke, one in
35093         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
35094
35095         Merge from coreutils.
35096
35097         * lib/.cppi-disable: Add stdint_.h.
35098         * lib/.cvsignore: Add stdint.h.
35099
35100         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35101
35102         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
35103         both double and long double versions.
35104         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
35105         * lib/xstrtold.c: New file.
35106         * lib/xstrtod.h (xstrtold): New decl.
35107
35108         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35109
35110         * lib/filemode.c (setst): Remove.
35111         (strmode): Rewrite to avoid setst.  This makes the code shorter,
35112         (arguably) clearer, and the generated code is a bit smaller on my
35113         Debian GNU/Linux stable x86 host.
35114
35115         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35116
35117         * lib/filemode.c: Include "filemode.h" first, to test the interface.
35118         Assume that filemode.h includes sys/types.h and sys/stat.h.
35119         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
35120         (ftypelet): Reorder to put common cases first, for efficiency.
35121         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
35122         to do 'M'.
35123         (strmode): Renamed from mode_string, and now stores 12 bytes instead
35124         of 10, for compatibility with FreeBSD.  All callers changed.
35125         (filemodestring): Now stores 12 bytes instead of 10, and sets file
35126         types that can't be deduced solely from st_mode.  First arg is now a
35127         const pointer.
35128         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
35129         (strmode): Renamed from mode_string.
35130         (filemodestring): New decl.
35131         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
35132         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
35133         needed.
35134         (S_ISPORT, S_ISWHT): New macros, if not already defined.
35135
35136         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35137
35138         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
35139         fsusage.h now does that.  Include fsusage.h first, to test interface.
35140         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
35141         at most one method (the old code could have generated decls that
35142         didn't conform to C89, not that this was ever exercised).
35143         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
35144
35145         2006-03-19  Jim Meyering  <jim@meyering.net>
35146
35147         Work even in a chroot where d_ino values for entries in "/"
35148         don't match the stat.st_ino values for the same names.
35149         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
35150         number, iterate through all entries again, using lstat instead.
35151         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
35152         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
35153
35154         * lib/getcwd.c (__getcwd): Clarify a comment.
35155         Use memcpy in place of a call to strcpy.
35156
35157         2006-03-12  Jim Meyering  <jim@meyering.net>
35158
35159         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
35160         matches that of the current directory (which we're about to chdir ".."
35161         out of), then save the dev-ino of the parent, instead.
35162
35163         * lib/same-inode.h (SAME_INODE): New file/macro.
35164         * lib/chdir-safer.c (SAME_INODE): Remove definition.
35165         Include "same-inode.h", instead.
35166         * lib/same.c: Likewise.
35167         * lib/cycle-check.h: Include "same-inode.h".
35168         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
35169         * lib/cycle-check.c (SAME_INODE): Remove definition.
35170         * lib/root-dev-ino.h: Include "same-inode.h".
35171
35172         2006-03-11  Eric Blake  <ebb9@byu.net>
35173
35174         * lib/same.c (same_name): s/base_name/last_component/
35175         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
35176         * lib/filenamecat.c (file_name_concat): Likewise.
35177
35178         2006-03-11  Eric Blake  <ebb9@byu.net>,
35179                     Paul Eggert  <eggert@cs.ucla.edu>
35180
35181         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
35182         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
35183         drive prefix.
35184         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
35185         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
35186         (last_component): New method.
35187         * lib/dirname.c (dir_len): Determine when drive letters need a
35188         subsequent slash.  Preserve // when it is special.
35189         (dir_name): Don't append dot when drive letter is absolute.
35190         [TEST_DIRNAME]: Move into a full-blown gnulib test.
35191         * lib/basename.c (base_name): New semantics - malloc the result.
35192         Preserve // when it is special.  Preserve relative files that look
35193         like drive letters.
35194         (base_len): Preserve // when it is special.
35195         (last_component): New method, similar to old base_name semantics.
35196         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
35197         base_name.  Strip redundant slashes from ///.
35198
35199 2006-07-03  Jim Meyering  <jim@meyering.net>
35200
35201         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
35202         macro is used before the first cycle_check call.
35203
35204 2006-07-03  Eric Blake  <ebb9@byu.net>
35205
35206         * modules/dirname (Depends-on): Add xstrndup.
35207
35208 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35209
35210         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
35211         test cases, so that config.log is a bit easier to follow.
35212
35213 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35214
35215         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
35216         both are 64 bits, since this seems to be the tradition, and this
35217         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
35218         we ever run into a host that prefers long long to long in this
35219         case, we'll need another configure-time test.  Problem reported by
35220         Jim Meyering.
35221
35222 2006-07-02  Eric Blake  <ebb9@byu.net>
35223
35224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
35225
35226 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35227
35228         * modules/inttypes (Depends-on): No longer depends on stdint.
35229         * modules/stdint (Description): Say more about assumptions.
35230         Say that the fast types might differ.  Say macros are used.
35231         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
35232         (Makefile.am): Revise list of substituted symbols to match
35233         new stdint.m4.
35234         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
35235         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
35236         * tests/test-stdint.c (verify_same_types)
35237         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
35238         the code conforms to C99/C89.
35239         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
35240         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
35241
35242 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35243
35244         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
35245         but fix a bug, by requiring at least 64 bits.
35246         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35247         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
35248         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
35249         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
35250
35251         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
35252         changes.  Make 2.59 a prerequisite.  Check and substitute for
35253         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
35254         inttypes.h.  Do not use special include files; just use the
35255         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
35256         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
35257         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
35258         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
35259         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
35260         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
35261         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
35262         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
35263         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
35264         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
35265         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
35266         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
35267         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
35268         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
35269         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
35270         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
35271         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
35272         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
35273         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
35274         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
35275         WINT_MAX.  Check for C99 conformance more strictly, by detecting
35276         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
35277         not check for things that C99 does not require, e.g., int8_t.  If
35278         a test isn't needed unless <stdint.h> isn't working, and is
35279         unlikely to be needed for any other reason, then don't do it
35280         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
35281         size_t, since we assume C89 freestanding at least.  Do not check
35282         for sig_atomic_t, wchar_t, or wint_t, since the code now does
35283         the right thing even if the types are not defined.  Instead use:
35284         (gl_STDINT_TYPE_PROPERTIES): New macro.
35285         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
35286         testing whether <sys/types.h> clashes, as Autoconf does this for
35287         us now.  All uses removed.
35288         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
35289         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
35290         (gl_CHECK_TYPE_SAME):
35291         Remove; no longer needed.
35292         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
35293         exists, since we'll return 0 anyway in that case.
35294         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
35295
35296 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35297
35298         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
35299         possible collision with system files.
35300         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
35301         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
35302         WCHAR_MIN and WCHAR_MAX in this case.
35303         (<stddef.h>): Do not include; no longer needed.
35304         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
35305         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
35306         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
35307         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
35308         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
35309         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
35310         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
35311         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
35312         !defined(__c99))]: Include in this case too, since it's harmless
35313         now.
35314         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
35315         dangerous to do so.
35316         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
35317         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
35318         (_STDINT_MIN, _STDINT_MAX): New macros.
35319         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
35320         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
35321         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
35322         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
35323         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
35324         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
35325         macros, not typedefs; this simplifies things quite a bit.
35326         Use long int for all types narrower than int64_t.
35327         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
35328         Define in terms of long long int or int64_t or long int,
35329         not int64_t or int32_t.  This saves some compile-time testing.
35330         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
35331         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
35332         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
35333         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
35334         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
35335         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
35336         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
35337         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35338         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
35339         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
35340         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35341         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35342         undef any previous version and define our own version, for
35343         simplicity and consistency with the new macros for types.
35344         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35345         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35346         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
35347         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
35348         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
35349         @WINT_T_SUFFIX@ to keep things simple here.
35350         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
35351         Simplify by assuming typical 8/16/32/64 host, since we're
35352         already doing that elsewhere anyway.
35353         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
35354         and assume long long int is 64 bits if available.  This
35355         speeds up 'configure'.
35356
35357 2006-07-01  Eric Blake  <ebb9@byu.net>
35358
35359         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
35360         Reported by Andreas Buening.
35361
35362 2006-07-01  Eric Blake  <ebb9@byu.net>
35363
35364         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
35365
35366 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35367
35368         * lib/getaddrinfo.c: fixed typo
35369
35370 2006-06-29  Jim Meyering  <jim@meyering.net>
35371
35372         * modules/strftime (Maintainer): Add my name, since with the
35373         FPRINTFTIME changes strftime.c has forked from glibc.
35374
35375 2006-06-29  Eric Blake  <ebb9@byu.net>
35376
35377         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
35378
35379 2006-06-29  Eric Blake  <ebb9@byu.net>
35380
35381         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
35382
35383 2006-06-29  Eric Blake  <ebb9@byu.net>
35384
35385         * lib/stat_.h: New file.
35386
35387 2006-06-29  Eric Blake  <ebb9@byu.net>
35388
35389         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
35390         unused static function.
35391
35392 2006-06-29  Eric Blake  <ebb9@byu.net>
35393
35394         * doc/functions.texi (Function Portability): Document missing lstat
35395         on mingw.
35396
35397 2006-06-29  Eric Blake  <ebb9@byu.net>
35398
35399         * MODULES.html.sh: Add sys_stat.
35400         * modules/sys_stat: New module.
35401         * modules/mkstemp (Depends-on): Add sys_stat.
35402
35403 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35404
35405         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
35406
35407 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35408
35409         * m4/c-bs-a.m4: Removed.
35410
35411 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35412
35413         * lib/strftime.c: Assume strftime() exists.
35414
35415 2006-06-29  Derek Price  <derek@ximbiot.com>
35416
35417         * modules/c-bs-a: Removed - \a is C89.
35418         * MODULES.html.sh: Remove c-bs-a.
35419
35420 2006-06-29  Bruno Haible  <bruno@clisp.org>
35421
35422         * modules/wcwidth (License): Change to LGPL.
35423
35424 2006-06-28  Simon Josefsson  <jas@extundo.com>
35425
35426         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
35427         on _WIN32.
35428
35429         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
35430         getnameinfo.
35431
35432 2006-06-28  Simon Josefsson  <jas@extundo.com>
35433
35434         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
35435
35436 2006-06-28  Simon Josefsson  <jas@extundo.com>
35437
35438         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
35439         functions there.  It will succeed on Windows XP, but on Windows
35440         2000 and (presumably) earlier, it will fail, and use the internal
35441         re-implementation.
35442         (use_win32_p): New function.
35443         (getaddrinfo): Use strtoul on servname, to support numeric ports.
35444         Support AI_NUMERICSERV to disable getservbyname.
35445         (getnameinfo): New function, only supports
35446         NI_NUMERICHOST|NI_NUMERICSERV for now.
35447
35448         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
35449         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
35450         getnameinfo.
35451
35452 2006-06-28  Eric Blake  <ebb9@byu.net>
35453
35454         * modules/wcwidth: New file.
35455         * modules/mbchar (Depends-on): Add wcwidth.
35456         * modules/mbswidth (Depends-on): Add wcwidth.
35457         * MODULES.html.sh: Add wcwidth.
35458
35459 2006-06-28  Eric Blake  <ebb9@byu.net>
35460
35461         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
35462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
35463
35464 2006-06-28  Eric Blake  <ebb9@byu.net>
35465
35466         * lib/xvasprintf.h: Fix comments.
35467
35468 2006-06-28  Eric Blake  <ebb9@byu.net>
35469
35470         * lib/mbchar.h (wcwidth): Include wcwidth.h.
35471         * lib/mbswidth.c (wcwidth): Move from here...
35472         * lib/wcwidth.h: ...to this new file.
35473
35474 2006-06-28  Derek R. Price  <derek@ximbiot.com>
35475
35476         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
35477
35478         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
35479         it's obsolete.
35480         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
35481
35482 2006-06-28  Derek R. Price  <derek@ximbiot.com>
35483
35484         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
35485         Autoconf 2.60 says this stuff was obsolete.
35486
35487 2006-06-28  Bruno Haible  <bruno@clisp.org>
35488
35489         * modules/wcwidth (Files): Add m4/wchar_t.m4.
35490
35491 2006-06-28  Bruno Haible  <bruno@clisp.org>
35492
35493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
35494         gt_TYPE_WCHAR_T.
35495
35496 2006-06-28  Bruno Haible  <bruno@clisp.org>
35497
35498         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
35499         declaration for wcwidth.
35500         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
35501
35502 2006-06-28  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/mkdtemp.c [MINGW]: Include <io.h>.
35505         (mkdir): Define using _mkdir.
35506
35507 2006-06-28  Bruno Haible  <bruno@clisp.org>
35508
35509         * lib/getaddrinfo.h: Fix POSIX URL.
35510         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
35511         _WIN32.
35512         (use_win32_p): Make static.
35513         (getaddrinfo): Reject service name if it is empty or does not consist
35514         solely of decimal digits, or if its value is > 65535.
35515         (getnameinfo): Remove useless casts.
35516
35517 2006-06-27  Simon Josefsson  <jas@extundo.com>
35518
35519         * modules/sys_select: New file, suggested by Bruno Haible, Paul
35520         Eggert and Martin Lambers.
35521
35522 2006-06-27  Simon Josefsson  <jas@extundo.com>
35523
35524         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
35525         Eggert and Martin Lambers.
35526
35527 2006-06-27  Bruno Haible  <bruno@clisp.org>
35528
35529         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
35530         result to 0, not to empty.
35531         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
35532
35533 2006-06-27  Bruno Haible  <bruno@clisp.org>
35534
35535         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
35536
35537 2006-06-26  Simon Josefsson  <jas@extundo.com>
35538
35539         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
35540         present.
35541
35542 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
35545         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
35546         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
35547
35548 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
35549
35550         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
35551
35552 2006-06-26  Bruno Haible  <bruno@clisp.org>
35553
35554         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
35555
35556 2006-06-26  Bruno Haible  <bruno@clisp.org>
35557
35558         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
35559
35560 2006-06-26  Bruno Haible  <bruno@clisp.org>
35561
35562         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
35563         SGI C compiler in pre-C99 mode.
35564         Suggested by Mark D. Baushke and Larry Jones.
35565
35566 2006-06-26  Bruno Haible  <bruno@clisp.org>
35567
35568         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
35569         WCHAR_MAX.
35570         Reported by Mark D. Baushke and Larry Jones.
35571
35572 2006-06-26  Bruno Haible  <bruno@clisp.org>
35573
35574         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
35575         in pre-C99 mode.
35576         Suggested by Mark D. Baushke and Larry Jones.
35577
35578 2006-06-23  Simon Josefsson  <jas@extundo.com>
35579             Bruno Haible  <bruno@clisp.org>
35580
35581         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
35582         Emit mostlyclean-local rule.
35583         (func_emit_tests_Makefile_am): Likewise.
35584         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
35585
35586 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
35587
35588         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
35589
35590 2006-06-23  Bruno Haible  <bruno@clisp.org>
35591
35592         * tests/test-stdint.c: Update to match ISO C 99 Technical
35593         Corrigendum 1.
35594
35595 2006-06-23  Bruno Haible  <bruno@clisp.org>
35596
35597         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
35598
35599 2006-06-23  Bruno Haible  <bruno@clisp.org>
35600
35601         * lib/stdint_.h: Treat IRIX like OpenBSD.
35602
35603 2006-06-23  Bruno Haible  <bruno@clisp.org>
35604
35605         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
35606         ISO C 99 Technical Corrigendum 1.
35607
35608 2006-06-22  Simon Josefsson  <jas@extundo.com>
35609
35610         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
35611         MinGW.
35612
35613 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35614
35615         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
35616         needed.  Some compiler complained about some of them.  Problem reported
35617         by Larry Jones in
35618         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
35619
35620 2006-06-21  Simon Josefsson  <jas@extundo.com>
35621
35622         * tests/test-getaddrinfo.c: New file.
35623
35624         * modules/getaddrinfo-tests: New file.
35625
35626         * MODULES.html.sh: Add inet_pton.
35627
35628         * modules/inet_pton: New file.
35629
35630 2006-06-21  Simon Josefsson  <jas@extundo.com>
35631
35632         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
35633         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
35634         of using the (limited) gnulib implementation on Windows XP.
35635
35636         * m4/inet_pton.m4: New file.
35637
35638 2006-06-21  Simon Josefsson  <jas@extundo.com>
35639
35640         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
35641         variable.
35642
35643         * lib/socket_.h: Don't define WINVER.
35644
35645         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
35646         slightly modified to work in gnulib.
35647
35648 2006-06-21  Simon Josefsson  <jas@extundo.com>
35649
35650         * doc/gnulib.texi (Windows sockets): Add.
35651
35652 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35653
35654         * lib/read-file.c (fread_file): Start with buffer allocation of
35655         0 bytes rather than 1 byte; this simplifies the code.
35656         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
35657         code to free buffer and save/restore errno.
35658         (internal_read_file): Remove unused local.
35659
35660 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35661
35662         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
35663         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
35664         Problem reported by Denis Excoffier in
35665         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
35666
35667 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35668
35669         * modules/sys_socket, modules/socklen: Include sys/types since
35670         FreeBSD 4.x's sys/socket.h needs it.
35671
35672 2006-06-19  Simon Josefsson  <jas@extundo.com>
35673
35674         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
35675
35676 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35677
35678         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
35679
35680 2006-06-19  Bruno Haible  <bruno@clisp.org>
35681
35682         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
35683         and FULL_PATH_INTTYPES_H in angle brackets.
35684         Reported by Mark D. Baushke <mdb@gnu.org>.
35685
35686 2006-06-17  Eric Blake  <ebb9@byu.net>
35687
35688         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
35689         errno.
35690
35691 2006-06-17  Bruno Haible  <bruno@clisp.org>
35692
35693         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
35694         <sys/inttypes.h>.
35695
35696 2006-06-17  Bruno Haible  <bruno@clisp.org>
35697
35698         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
35699         whether errno is declared. Assume <errno.h> declares errno.
35700
35701 2006-06-17  Bruno Haible  <bruno@clisp.org>
35702
35703         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
35704
35705 2006-06-17  Bruno Haible  <bruno@clisp.org>
35706
35707         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
35708         problem on Solaris 2.5.1.
35709
35710 2006-06-16  Eric Blake  <ebb9@byu.net>
35711
35712         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
35713         * lib/unicodeio.c [!defined errno]: Likewise.
35714         * lib/strtol.c [!defined errno]: Likewise.
35715         * lib/strtod.c [!defined errno]: Likewise.
35716
35717 2006-06-15  Eric Blake  <ebb9@byu.net>
35718
35719         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
35720
35721 2006-06-15  Eric Blake  <ebb9@byu.net>
35722
35723         * config/srclist.txt (ssize_t.m4): Lose sync.
35724
35725 2006-06-15  Bruno Haible  <bruno@clisp.org>
35726
35727         * modules/stdint (Files): Include m4/full-header-path.m4,
35728         m4/size_max.m4, m4/wchar_t.m4.
35729         (Makefile.am): Many more substitutions.
35730         * modules/stdint-tests: New file.
35731         * tests/test-stdint.c: New file.
35732
35733 2006-06-15  Bruno Haible  <bruno@clisp.org>
35734
35735         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
35736         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
35737         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
35738         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
35739         gl_CHECK_TYPE_SAME): New macros.
35740
35741 2006-06-15  Bruno Haible  <bruno@clisp.org>
35742
35743         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
35744
35745 2006-06-15  Bruno Haible  <bruno@clisp.org>
35746
35747         * lib/stdint_.h: Rewritten to be fully auto-configured.
35748         Fixes bug on HP-UX/IA64.
35749
35750 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35751
35752         * lib/getdate.y (__attribute__): Don't define if already defined.
35753         Problem reported by Larry Jones.
35754         * lib/utimens.c (__attribute__): Likewise.
35755
35756 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
35757
35758         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
35759         reported by Andreas Schwab.
35760
35761 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35762             Bruno Haible  <bruno@clisp.org>
35763
35764         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
35765         check for the declaration of strnlen and a run test that exposes the
35766         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
35767         rpl_strndup.
35768
35769 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35770             Bruno Haible  <bruno@clisp.org>
35771
35772         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
35773
35774 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35775
35776         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
35777         compile test, for Tru64 4.0D.
35778
35779 2006-05-28  Karl Berry  <karl@gnu.org>
35780
35781         * config/srclist.txt (printf-args.c): lose sync.
35782
35783 2006-05-26  Martin Lambers  <marlam@marlam.de>
35784
35785         * lib/getpass.c: Updates the test for the native W32 API, and adds
35786         missing includes, thus fixing compilation warnings.
35787
35788 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35789
35790         * lib/exclude.c (exclude_fnmatch): New function.
35791         (excluded_file_name): Call exclude_fnmatch.
35792         * lib/exclude.h (excluded_file_name): New prototype
35793
35794 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
35795
35796         * lib/tempname.c (small_open, large_open): New macros.
35797         (__open, __open64) [!_LIBC]: Remove.
35798         (__gen_tempname): Use small_open and large_open instead of __open
35799         and __open64.  This fixes a portability bug on HP-UX 11.11i
35800         reported by Simon Wing-Tang in
35801         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
35802
35803 2006-05-24  Bruno Haible  <bruno@clisp.org>
35804
35805         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
35806         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
35807         Reported by Thorsten Maerz <torte@netztorte.de> via
35808         Aaron Stone <aaron@serendipity.cx>.
35809
35810 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35811
35812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
35813         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
35814         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
35815         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
35816         not really conditional on the cache.
35817         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
35818
35819 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35820
35821         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
35822         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
35823         (my_usleep): Don't mishandle maximum value.
35824
35825 2006-05-19  Jim Meyering  <jim@meyering.net>
35826
35827         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
35828
35829 2006-05-17  Bruno Haible  <bruno@clisp.org>
35830
35831         Cygwin portability.
35832         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
35833
35834 2006-05-17  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/stdint_.h: Fix recognition of Cygwin.
35837
35838 2006-05-15  Bruno Haible  <bruno@clisp.org>
35839
35840         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
35841         on libtool patch by Ralf Wildenhues.
35842
35843 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35844
35845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
35846         test for C99 conformance; (bool) 0.5 is an integer constant
35847         expression, but (bool) -0.5 is not.  Problem reported by Fedor
35848         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
35849
35850 2006-05-11  Simon Josefsson  <jas@extundo.com>
35851
35852         * m4/xvasprintf.m4: Fix obvious typo.
35853
35854 2006-05-11  Jim Meyering  <jim@meyering.net>
35855
35856         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
35857         James Lemley.
35858
35859 2006-05-10  Simon Josefsson  <jas@extundo.com>
35860
35861         * lib/md4.c: Typo fix, update copyright years.
35862         (K1, K2): Don't use L because it turn computations into 64-bit on
35863         64-bit platforms.
35864
35865 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35866
35867         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
35868         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
35869         unwanted sign propagation, e.g., on hosts with 64-bit int.
35870         There still are some problems with reeelly weird theoretical hosts
35871         (e.g., 33-bit int) but it's not worth worrying about now.
35872         * lib/sha1.c (rol): Likewise.
35873         (K1, K2, K3, K4): Remove unnecessary L suffix.
35874
35875 2006-05-10  Bruno Haible  <bruno@clisp.org>
35876
35877         * lib/des.c: Cast to avoid warnings.
35878
35879 2006-05-09  Bruno Haible  <bruno@clisp.org>
35880
35881         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
35882         (Depends-on): Depend also on xsize, stdarg.
35883         (configure.ac): Add gl_XVASPRINTF.
35884
35885 2006-05-09  Bruno Haible  <bruno@clisp.org>
35886
35887         * m4/xvasprintf.m4: New file.
35888
35889 2006-05-09  Bruno Haible  <bruno@clisp.org>
35890
35891         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
35892         (EOVERFLOW): Define fallback value.
35893         (xstrcat): New function.
35894         (xvasprintf): Recognize the special case of a string concatenation.
35895
35896 2006-05-08  Eric Blake  <ebb9@byu.net>
35897
35898         * gnulib-tool (func_version): Base copyright year on CVS date.
35899         (func_emit_copyright_notice): New function.
35900         (func_emit_lib_Makefile_am): Use it.
35901         (func_emit_tests_Makefile_am): Likewise.
35902         (func_import): Likewise.
35903
35904 2006-05-08  Bruno Haible  <bruno@clisp.org>
35905
35906         * modules/stdarg: New file.
35907         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
35908
35909 2006-05-08  Bruno Haible  <bruno@clisp.org>
35910
35911         * m4/stdarg.m4: New file, from GNU gettext.
35912
35913 2006-05-08  Bruno Haible  <bruno@clisp.org>
35914
35915         * config/srclist.txt (build-aux/config.rpath): different from latest
35916         release.
35917
35918 2006-05-08  Bruno Haible  <bruno@clisp.org>
35919
35920         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
35921
35922 2006-05-05  Jim Meyering  <jim@meyering.net>
35923
35924         * m4/warning.m4: New file, derived from bison's file by the same name.
35925
35926 2006-05-03  Bruno Haible  <bruno@clisp.org>
35927
35928         * lib/stdint_.h: Shorter URL.
35929         * lib/inttypes.h: Likewise.
35930
35931 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35932
35933         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
35934
35935 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35936
35937         * lib/verify.h: Document the internals better.  Most of this change
35938         was written by Bruno Haible.
35939
35940 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35941
35942         * doc/verify.texi: New file, partly based on a proposal by
35943         Bruno Haible.
35944
35945 2006-05-02  Bruno Haible  <bruno@clisp.org>
35946
35947         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
35948         test from here...
35949         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
35950
35951 2006-04-29  Bruno Haible  <bruno@clisp.org>
35952
35953         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
35954         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
35955
35956 2006-04-29  Bruno Haible  <bruno@clisp.org>
35957
35958         * gnulib-tool: Make --update option actually work.
35959
35960 2006-04-29  Bruno Haible  <bruno@clisp.org>
35961
35962         * doc/gcd.texi: New file.
35963         * doc/gnulib.texi: Include it.
35964
35965 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
35966
35967         * lib/getdate.y (get_date): When adding relative date, start with the
35968         initial time, not with the result of the first mktime call.
35969
35970 2006-04-25  Bruno Haible  <bruno@clisp.org>
35971
35972         * gnulib-tool (func_import): Output the include directives in three
35973         blocks, sorted separately.
35974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35975
35976 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35977
35978         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
35979         to define main with arguments, for C++.  Reported by Eric Blake.
35980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35981         Prefer 'int main ()' to 'int main (void)', for C++.
35982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
35983         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
35984         for 'main', for C99 and C++.
35985
35986 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35987
35988         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
35989         Don't assume that exit status -1 is valid.
35990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35991         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35992         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35993         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
35994         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
35995         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
35996         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
35997         functions can be used without declaring them, or that you can
35998         exit with status -1.
35999         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36000
36001 2006-04-24  Karl Berry  <karl@gnu.org>
36002
36003         * config/srclist.txt (longdouble.m4): sync lost.
36004
36005 2006-04-24  Eric Blake  <ebb9@byu.net>
36006
36007         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
36008
36009 2006-04-24  Bruno Haible  <bruno@clisp.org>
36010
36011         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
36012         poll() implementation in AIX.
36013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36014
36015 2006-04-24  Bruno Haible  <bruno@clisp.org>
36016
36017         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
36018         assigned exactly once.
36019
36020 2006-04-23  Claudio Fontana  <claudio@gnu.org>
36021             Bruno Haible  <bruno@clisp.org>
36022
36023         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
36024         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
36025         for AM_CPPFLAGS.
36026
36027 2006-04-23  Bruno Haible  <bruno@clisp.org>
36028
36029         * modules/copy-file: Depend on unistd.
36030         * modules/execute: Likewise.
36031         * modules/fatal-signal: Likewise.
36032         * modules/findprog: Likewise.
36033         * modules/mkdtemp : Likewise.
36034         * modules/pipe: Likewise.
36035         * modules/wait-process: Likewise.
36036
36037 2006-04-23  Bruno Haible  <bruno@clisp.org>
36038
36039         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
36040         condition was already detected.
36041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36042
36043 2006-04-23  Bruno Haible  <bruno@clisp.org>
36044
36045         * lib/copy-file.c: Include <unistd.h> unconditionally.
36046         * lib/execute.c: Likewise.
36047         * lib/fatal-signal.c: Likewise.
36048         * lib/findprog.c: Likewise.
36049         * lib/mkdtemp.c: Likewise.
36050         * lib/pipe.h: Likewise.
36051         * lib/pipe.c: Likewise.
36052         * lib/wait-process.h: Likewise.
36053
36054 2006-04-23  Bruno Haible  <bruno@clisp.org>
36055
36056         * gnulib-tool (func_usage): Fix --import description. Document
36057         --update.
36058         (func_import): Create temporary file in a temporary directory, if
36059         --dry-run is specified. Silence errors from 'grep' when there are no
36060         m4 files in $m4dir.
36061         (func_create_testdir): Silence errors from 'grep' when there are no
36062         m4 files in $m4dir.
36063         Reported by Karl Berry <karl@freefriends.org>.
36064
36065 2006-04-20  Bruno Haible  <bruno@clisp.org>
36066
36067         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
36068         one argument, so that the code will be portable to Autoconf 2.60.
36069         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
36070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36071         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
36072
36073 2006-04-19  Derek Price  <derek@ximbiot.com>
36074             Eric Blake  <ebb9@byu.net>
36075
36076         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
36077         rather than "/full/path.h".  Update comment to match.  Shorten &
36078         generalize m4_translit call via AS_TR_CPP.
36079
36080 2006-04-19  Derek Price  <derek@ximbiot.com>
36081             Eric Blake  <ebb9@byu.net>
36082
36083         * lib/inttypes.h: Correct grammar in comment.
36084
36085 2006-04-18  Derek Price  <derek@ximbiot.com>
36086             Paul Eggert  <eggert@cs.ucla.edu>
36087
36088         * modules/inttypes: New file.
36089         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
36090
36091 2006-04-18  Derek Price  <derek@ximbiot.com>
36092             Paul Eggert  <eggert@cs.ucla.edu>
36093
36094         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
36095         New files.
36096
36097 2006-04-18  Derek Price  <derek@ximbiot.com>
36098             Paul Eggert  <eggert@cs.ucla.edu>
36099
36100         * lib/inttypes.h: New file.
36101         * lib/strtoimax.c: Assume <inttypes.h>.
36102
36103 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
36104
36105         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
36106         isn't mounted.  Problem reported by Kir Kolyshkin.
36107
36108 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36109
36110         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
36111         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
36112         Derek R. Price.
36113         * lib/regex.h (RE_DUP_MAX): Update comment to match current
36114         implementation.
36115
36116 2006-04-12  Eric Blake  <ebb9@byu.net>
36117
36118         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
36119         is now done automatically by the corresponding Autoconf macro.
36120
36121 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
36122
36123         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
36124         time_r.h.
36125
36126 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36127
36128         Merge regex changes from libc, removing some of our
36129         POSIX-conformance changes that were rejected and redoing them in a
36130         less-intrusive way.
36131
36132         * lib/regcomp.c (re_compile_internal, init_dfa):
36133         Length arg is now size_t, not Idx.  All uses changed.
36134         (peek_token): Forward decl now says internal_function.
36135         (__re_error_msgid, __re_error_msgid_idx):
36136         Now static rather than extern with attribute_hidden.
36137         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
36138         For some reason libc prefers K&R style defns for external functions.
36139         (regerror) [!defined _LIBC]: Likewise.
36140         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
36141         (seek_collating_symbol_entry, lookup_collation_sequence_value):
36142         (build_range_exp, build_collating_symbol):
36143         Use K&R-style defn.
36144         (re_compile_fastmap): Use '\0' to memset, not 0.
36145         (utf8_sb_map): Make the calculations more obvious.
36146         (init_dfa, parse_bracket_exp, build_charclass_op):
36147         Call calloc and cast result, as glibc does.
36148         (init_word_char, fetch_token, peek_token, peek_token_bracket):
36149         (build_range_exp, build_collating_symbol):
36150         Now internal functions.
36151
36152         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
36153
36154         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
36155         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
36156         Don't depend on VMS; depend on __VMS instead, for POSIX
36157         namespace cleanness.
36158         (regoff_t): Define to ssize_t, not long int.
36159
36160         Remove the REG_ macros named below.  Instead, make the old names
36161         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
36162         __USE_GNU_REGEX.
36163         (REG_BACKSLASH_ESCAPE_IN_LISTS):
36164         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
36165         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
36166         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
36167         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
36168         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
36169         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
36170         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
36171         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
36172         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
36173         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
36174         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
36175         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
36176         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
36177         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
36178         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
36179         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
36180         (REG_NREGS):
36181         Remove.  All uses replaced by the old RE_* names.
36182         (RE_BACKSLASH_ESCAPE_IN_LISTS):
36183         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
36184         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
36185         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
36186         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
36187         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
36188         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
36189         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
36190         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
36191         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
36192         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
36193         Don't bother having these macros be independent of each others'
36194         values, since they no longer exist in the POSIX name space.
36195
36196         Rename the following member names back to their old names,
36197         unless !__USE_GNU_REGEX.  All uses changed back.
36198         (buffer): Renamed from re_buffer.
36199         (allocated): Renamed from re_allocated.
36200         (used): Renamed from re_used.
36201         (syntax): Renamed from re_syntax.
36202         (fastmap): Renamed from re_fastmap.
36203         (translate): Renamed from re_translate.
36204         (can_be_null): Renamed from re_can_be_null.
36205         (regs_allocated): Renamed from re_regs_allocated.
36206         (fastmap_accurate): Renamed from re_fastmap_accurate.
36207         (no_sub): Renamed from re_no_sub.
36208         (not_bol): Renamed from re_not_bol.
36209         (not_eol): Renamed from re_not_eol.
36210         (newline_anchor): Renamed from re_newline_anchor.
36211         (num_regs): Renamed from rm_num_regs.
36212         (start): Renamed from rm_start.
36213         (end): Renamed from rm_end.
36214
36215         (free_state): Move up a bit.
36216
36217         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
36218         #define to be empty.
36219         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
36220         when that is what is intended.
36221         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
36222         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
36223         (MAX): New macro.
36224         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
36225         All uses changed back to re_malloc, etc.  It's now the caller's
36226         responsibility to check for overflow; all callers changed.
36227         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
36228         (re_x2nrealloc): Remove.
36229         (free_state): Remove decl.
36230
36231         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
36232         (re_set_registers, re_exec):
36233         Use K&R-style defn.
36234
36235         2006-01-31  Roland McGrath  <roland@redhat.com>
36236
36237         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
36238         Reported by Mike Frysinger <vapier@gentoo.org>.
36239
36240         2006-01-15  Andreas Jaeger  <aj@suse.de>
36241
36242         [BZ #1950]
36243         * lib/regex_internal.c (re_string_reconstruct): Adjust for
36244         build_wcs_upper_buffer change.
36245         (build_wcs_upper_buffer): Change return type.
36246
36247         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
36248
36249         * lib/regex_internal.h: Include <stdint.h> if available.
36250
36251         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
36252
36253         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
36254
36255         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36256
36257         * lib/regcomp.c: Adjust for changed secondary hash function.
36258
36259         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
36260
36261         * lib/regex.h: Pretty printing.
36262         Clean up namespace a bit.
36263
36264         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
36265
36266         * lib/regexec.c (update_cur_sifted_state, check_arrival,
36267         check_arrival_add_next_nodes): Avoid using uninitialized variable.
36268
36269         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36270                     Ulrich Drepper  <drepper@redhat.com>
36271
36272         [BZ #1302]
36273         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
36274         changed.
36275         (bitset_word_t): Renamed from bitset_word.  All uses changed.
36276
36277         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
36278
36279         [BZ #281]
36280         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
36281         * lib/regcomp.c: Remove unnecessary uses of
36282         unsigned RE_TRANSLATE_TYPE.
36283         * lib/regex_internal.h: Likewise.
36284         * lib/regex_internal.c: Likewise.
36285         * lib/regexec.c: Likewise.
36286         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
36287
36288         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
36289
36290         * lib/regexec.c (find_recover_state): Remove unnecessary
36291         initialization.
36292         (transit_state_bkref): Make DFA a const pointer.
36293         (get_subexp): Likewise.
36294         (check_arrival): Likewise.
36295         (update_cur_sifted_state): Likewise.
36296         (re_search_internal): Likewise.
36297         (prune_impossible_nodes): Likewise.
36298         (acquire_init_state_context): Likewise.
36299         (proceed_next_node): Likewise.
36300         (set_regs): Likewise.
36301         (free_fail_stack_return): Likewise.
36302         (check_arrival_expand_ecl): Mark DFA parameter as const.
36303         (check_arrival_expand_ecl_sub): Likewise.
36304         (check_subexp_limits): Likewise.
36305         (sub_epsilon_src_nodes):  Likewise.
36306         (add_epsilon_src_nodes):  Likewise.
36307         (merge_state_array): Likewise.
36308         (update_regs): Likewise.
36309         (build_trtable): Likewise.
36310         (sift_states_backward): Mark MCTX parameter as const.
36311         (build_sifted_states): Likewise.
36312         (update_cur_sifted_state): Likewise.
36313         (sift_states_mkref): Likewise.
36314         (check_arrival_expand_ecl): Mark eclosure as const.
36315         (check_dst_limits_calc_pos_1): Likewise.
36316         * lib/regex_internal.h (re_match_context_t): Make dfa a const
36317         pointer.
36318
36319         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
36320
36321         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
36322         (transit_state_sb): Likewise.
36323         (transit_state_mb): Likewise.
36324         (sift_states_iter_mb): Likewise.
36325         (check_arrival_add_next_nodes): Likewise.
36326         (check_node_accept_bytes): Change first parameter to pointer-to-const.
36327         [_LIBC] (re_search_2_stub): Use mempcpy.
36328
36329         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
36330         mbrtowc for very simple UTF-8 case.
36331
36332         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
36333         a pointer-to-const.
36334         (re_acquire_state_context): Likewise.
36335         * lib/regex_internal.h: Adjust prototypes.
36336
36337         * lib/regex.c: Prevent using C++ compilers.
36338
36339         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
36340         (re_acquire_state_context): Likewise.
36341
36342 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36343
36344         * modules/regex (Depends-on): Add ssize_t.
36345
36346 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36347
36348         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
36349         translation table.
36350
36351 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36352
36353         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
36354
36355 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
36356             Bruno Haible  <bruno@clisp.org>
36357
36358         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
36359         <sys/types.h> and <inttypes.h>.
36360
36361 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36362
36363         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
36364         `__error_t_defined', so argp.h will not typedef the former.
36365
36366 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36367
36368         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
36369         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
36370         glibc names.  Even if glibc is changed to conform to POSIX, the
36371         traditional names will be available anyway, since regex depends on
36372         the extensions module.  Also, fix a longstanding typo in the
36373         implementation of Spencer ERE test #75 from grep 2.3.  Problems
36374         reported by Emanuele Giaquinta.  Also, change sense of cached
36375         variable, so that the message makes sense.
36376
36377 2006-03-24  Simon Josefsson  <jas@extundo.com>
36378
36379         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
36380         including some doc fixes.
36381         (base64_encode_alloc): Fix +1 bug on allocation failures.
36382
36383 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36384
36385         * lib/base64.c (base64_encode): Do not read past end of array with
36386         unsanitized input on systems with CHAR_BIT > 8.
36387
36388 2006-03-24  Eric Blake  <ebb9@byu.net>
36389
36390         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
36391
36392 2006-03-22  Karl Berry  <karl@gnu.org>
36393
36394         * config/srclist.txt (*setenv.[ch]): get from coreutils.
36395         * config/srclistvars.sh (COREUTILS): new var.
36396
36397 2006-03-17  Jim Meyering  <jim@meyering.net>
36398
36399         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
36400         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
36401
36402 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36403
36404         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
36405         no longer needs it.  Instead, check that regoff_t is as least
36406         as wide as ptrdiff_t.
36407
36408         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
36409         so that our regex.h stays compatible with the installed regex.
36410         This is helpful for installers who configure --without-included-regex.
36411         Problem reported by Emanuele Giaquinta.
36412
36413 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36414
36415         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
36416         Typedef to long int, not to off_, as POSIX will likely change
36417         in that direction.
36418
36419 2006-03-15  Eric Blake  <ebb9@byu.net>
36420
36421         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
36422
36423 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36424
36425         * lib/argp-help.c (validate_uparams): Fix typo
36426         * lib/argp-parse.c (argp_default_options): Consistently begin help
36427         messages with a lowercase letter.
36428
36429 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
36430
36431         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
36432         overrun buffers and shouldn't be used (much as gets shouldn't be
36433         used).
36434         * lib/time_r.c (asctime_r, ctime_r): Likewise.
36435
36436 2006-03-08  Simon Josefsson  <jas@extundo.com>
36437
36438         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
36439         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36440
36441 2006-03-08  Simon Josefsson  <jas@extundo.com>
36442
36443         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
36444         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36445
36446 2006-03-08  Simon Josefsson  <jas@extundo.com>
36447
36448         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
36449         signal that configure disabled the device.
36450
36451 2006-03-08  Simon Josefsson  <jas@extundo.com>
36452
36453         * build-aux/maint.mk: Fix refresh-po, to handle no translated
36454         languages.
36455
36456 2006-03-07  Simon Josefsson  <jas@extundo.com>
36457
36458         * modules/getopt (Depends-on): Add unistd.
36459
36460         * modules/unistd: New file.
36461
36462 2006-03-07  Simon Josefsson  <jas@extundo.com>
36463
36464         * modules/gc-random: New file.
36465
36466 2006-03-07  Simon Josefsson  <jas@extundo.com>
36467
36468         * m4/unistd_h.m4: New file.
36469
36470 2006-03-07  Simon Josefsson  <jas@extundo.com>
36471
36472         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
36473         test to be side-effect free by storing the result in the cache
36474         variable gl_cv_lib_readline, and moving the assignment of
36475         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
36476         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36477
36478 2006-03-07  Simon Josefsson  <jas@extundo.com>
36479
36480         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
36481         error on missing devices (the functions will return an error).
36482
36483         * m4/gc.m4: Move random stuff to gc-random.m4
36484
36485 2006-03-07  Simon Josefsson  <jas@extundo.com>
36486
36487         * lib/unistd_.h: New file.
36488
36489 2006-03-07  Simon Josefsson  <jas@extundo.com>
36490
36491         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
36492
36493 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36494
36495         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
36496         Problem reported by Juan Manuel Guerrero.
36497
36498 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36499
36500         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
36501         the unistd module.
36502         * lib/getlogin_r.c: Likewise.
36503         * lib/getlogin_r.h: Likewise.
36504         * lib/glob.c: Likewise.
36505         * lib/pagealign_alloc.c: Likewise.
36506         * lib/unistd_.h: Remove; no longer needed.
36507
36508 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36509
36510         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36511         Add unistd.
36512         * modules/c-stack (Depends-on): Add unistd.
36513         * modules/getlogin_r: Likewise.
36514         * modules/glob: Likewise.
36515         * modules/pagealign_alloc: Likewise.
36516         * modules/unistd (Files): Remove lib/unistd_.h.
36517         (EXTRA_DIST): Remove.
36518         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
36519         need unistd_.h.
36520         (MOSTLYCLEANFILES): Remove unistd.h-t.
36521
36522 2006-03-03  Simon Josefsson  <jas@extundo.com>
36523
36524         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
36525
36526 2006-03-03  Simon Josefsson  <jas@extundo.com>
36527
36528         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
36529         libidn and bison.
36530
36531 2006-03-03  Simon Josefsson  <jas@extundo.com>
36532
36533         * build-aux/maint.mk: Add indent target.
36534
36535 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
36536
36537         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
36538         our replacement poll.h in any case, to avoid a differing
36539         declaration from a system header.  Seen on AIX.
36540
36541 2006-03-01  Simon Josefsson  <jas@extundo.com>
36542
36543         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
36544         <kasal@ucw.cz>.
36545
36546 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36547
36548         * modules/gettime (Depends-on): Add extensions module.
36549         * modules/nanosleep (Depends-on): Likewise.
36550         * modules/settime (Depends-on): Likewise.
36551
36552 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36553
36554         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
36555         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
36556         pedantically.
36557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36558         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
36559
36560         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
36561         not "==".  Reported by Ralf Wildenhues.
36562
36563 2006-03-01  Karl Berry  <karl@gnu.org>
36564
36565         * doc/Copyright/request-*: new files, synced from gnuorg.
36566
36567 2006-03-01  Karl Berry  <karl@gnu.org>
36568
36569         * config/srclist.txt (Copyright/*): new entries.
36570
36571 2006-02-28  Simon Josefsson  <jas@extundo.com>
36572
36573         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
36574
36575 2006-02-27  Simon Josefsson  <jas@extundo.com>
36576
36577         * lib/base64.h: Indent #define's.  From Jim Meyering
36578         <jim@meyering.net>.
36579
36580 2006-02-27  Jim Meyering  <jim@meyering.net>
36581
36582         Revert the change of 2006-02-24, so these files can continue
36583         to be sync'd from gettext.
36584         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
36585         of `config.h'.
36586
36587 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
36588
36589         * modules/intprops: New file.
36590         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
36591         Add intprops.
36592         * modules/getloadavg (Files): Remove lib/intprops.h.
36593         (Depends-on): Add intprops.
36594         * modules/human: Likewise.
36595         * modules/inttostr: Likewise.
36596         * modules/openat: Likewise.
36597         * modules/sig2str: Likewise.
36598         * modules/userspec: Likewise.
36599         * modules/utimecmp: Likewise.
36600         * modules/xnanosleep: Likewise.
36601         * modules/xstrtol: Likewise.
36602
36603 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
36604
36605         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
36606         * modules/lock-tests (TESTS): Use $(EXEEXT).
36607         * modules/tls-tests: Likewise.
36608         * modules/argp-tests: Likewise.
36609         (check_PROGRAMS): New var, replacing...
36610         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
36611
36612 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36613
36614         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
36615         `config.h'.
36616
36617 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36618
36619         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
36620
36621 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36622
36623         Sync from coreutils.
36624         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
36625         gl_CHDIR_SAFER.
36626
36627 2006-02-22  Jim Meyering  <jim@meyering.net>
36628
36629         Sync from coreutils.
36630         * m4/chdir-safer.m4: New file.
36631
36632 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36633
36634         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
36635         AT_FDCWD exceeds INT_MAX.
36636         * lib/openat.h (AT_FDCWD): Likewise.
36637
36638 2006-02-17  Eric Blake  <address@hidden>
36639
36640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
36641
36642 2006-02-16  Simon Josefsson  <jas@extundo.com>
36643
36644         * modules/getaddrinfo (Depends-on): Add sys_socket.
36645
36646 2006-02-15  Simon Josefsson  <jas@extundo.com>
36647
36648         * build-aux/maint.mk: Add dsyntax-check rule.
36649
36650 2006-02-15  Eric Blake  <ebb9@byu.net>
36651
36652         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
36653         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
36654         'present but cannot compile' warnings on cygwin.
36655         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
36656         use ws2tcpip.h if sys/socket.h works.
36657         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
36658         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
36659
36660 2006-02-14  Simon Josefsson  <jas@extundo.com>
36661
36662         * modules/maintainer-makefile (Files): Rename.
36663
36664         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
36665         and (the local) Makefile.cfg to maint-cfg.mk.
36666
36667         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
36668         to the latter.
36669
36670         * modules/maintainer-makefile: New module.
36671
36672         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
36673         severaly stripped to make it possible to build it up from scratch
36674         with reliable tests.
36675
36676         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
36677         fixes to permit overriding the default actions when configure and
36678         makefile are not available.
36679
36680 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36681
36682         Sync from coreutils.
36683         * modules/lstat (Depends-on): Don't depend on xalloc.
36684         (License): Change from GPL to LGPL, since this is now simply a
36685         replacement for a libc function.
36686
36687 2006-02-14  Jim Meyering  <jim@meyering.net>
36688
36689         Sync from coreutils.
36690
36691         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
36692         failure on deficient systems, and simplify gnulib lgpl dependencies.
36693         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
36694         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
36695
36696         * lib/xalloc-die.c: Remove unused definition of N_.
36697
36698 2006-02-14  Jim Meyering  <jim@meyering.net>
36699
36700         Sync from coreutils.
36701         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
36702         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
36703         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
36704         double-quote uses of that variable, to accommodate the rare case in
36705         which getmntent is available in none of the libraries checked.  This
36706         happens at least on FreeBSD 5.0.
36707
36708 2006-02-13  Simon Josefsson  <jas@extundo.com>
36709
36710         * gnulib-tool (Usage): Fix --import, from
36711         karl@freefriends.org (Karl Berry).
36712
36713 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36714
36715         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
36716
36717 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
36718
36719         * lib/argp-namefrob.h: Restore changes accidentally lost during the
36720         "autoupdate" on 2005-12-12.
36721
36722 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36723
36724         * modules/closeout (Depends-on): Remove atexit.
36725
36726 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36727
36728         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
36729         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
36730
36731 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36732
36733         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
36734         __EXTENSIONS__ if this causes compilation to fail.  Problem
36735         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
36736         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
36737
36738 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36739
36740         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
36741         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
36742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
36743         All uses changed.
36744
36745 2006-01-26  Simon Josefsson  <jas@extundo.com>
36746
36747         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
36748         prototype is visible on mingw32.
36749
36750         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
36751         for mingw32.
36752
36753         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
36754         mingw32).
36755
36756 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
36757
36758         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
36759         attempt to open for write; this always fails, at least on POSIX
36760         hosts.  This reinstates the 2006-01-09 change, which was
36761         inadvertently removed.
36762
36763 2006-01-26  Bruno Haible  <bruno@clisp.org>
36764
36765         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
36766         Reported by Paul Eggert.
36767
36768 2006-01-26  Bruno Haible  <bruno@clisp.org>
36769             Paul Eggert  <eggert@cs.ucla.edu>
36770
36771         * lib/stdbool_.h (_Bool)
36772         [(! (defined __cplusplus || defined __BEOS__)
36773           && !defined __GNUC__
36774           && !(defined __HP_cc || defined __xlc__
36775                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
36776                || defined __sgi))]:
36777         #define to signed char in these cases too; this simplifies
36778         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
36779         etc., separately) and makes it more conservative.
36780
36781 2006-01-25  Simon Josefsson  <jas@extundo.com>
36782
36783         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
36784         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
36785         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
36786
36787 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36788
36789         * lib/argp-namefrob.h: Bugfix. Remove stray #
36790
36791 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36792
36793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
36794         so that we test the test.
36795         Check for yet another HP-UX cc bug involving *bool |= bool.
36796
36797 2006-01-25  Karl Berry  <karl@gnu.org>
36798
36799         * config/srclist.txt (vasnprintf.c): sync lost.
36800
36801 2006-01-25  Jim Meyering  <jim@meyering.net>
36802
36803         Sync from the stable (b5) branch of coreutils:
36804
36805         * lib/fts.c (fts_children): Don't let close() clobber errno from
36806         failed fchdir().
36807
36808         * lib/fts.c (fts_stat): When following a symlink-to-directory,
36809         don't necessarily interpret stat-fails+lstat-succeeds as indicating
36810         a dangling symlink.  That can also happen at least for ELOOP.
36811         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
36812         FYI, this bug predates the inclusion of fts.c in coreutils.
36813
36814         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
36815         in their own block, so pre-c99 compilers don't object.
36816
36817         Avoid the double-free (first in fts_read, second in fts_close) that
36818         would occur when an `active' directory is made inaccessible (e.g.,
36819         via chmod a-x) during a traversal.
36820         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36821         before returning.  Reproduce this failure by
36822         mkdir -p a/b; cd a; chmod a-x . b
36823         Reported by Stavros Passas.
36824
36825 2006-01-25  Jim Meyering  <jim@meyering.net>
36826
36827         * lib/fileblocks.c: Remove more useless parentheses.
36828         * lib/readutmp.h: Likewise.
36829
36830 2006-01-25  Bruno Haible  <bruno@clisp.org>
36831
36832         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
36833         warnings.
36834         Reported by Paul Eggert.
36835
36836 2006-01-25  Bruno Haible  <bruno@clisp.org>
36837
36838         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
36839         rid of a trap command. For Solaris sh.
36840         Reported by Mark D. Baushke <mdb@gnu.org>.
36841
36842 2006-01-24  Simon Josefsson  <jas@extundo.com>
36843
36844         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
36845         Bruno.
36846
36847 2006-01-24  Karl Berry  <karl@gnu.org>
36848
36849         * config/srclist.txt (argp-namefrob.h): sync lost.
36850
36851 2006-01-24  Jim Meyering  <jim@meyering.net>
36852
36853         * modules/openat (Files): Add lib/intprops.h.
36854         From Mark D. Baushke.
36855
36856 2006-01-24  Jim Meyering  <jim@meyering.net>
36857
36858         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
36859         Reported by Mark D. Baushke.
36860
36861 2006-01-24  Jim Meyering  <jim@meyering.net>
36862
36863         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
36864
36865 2006-01-24  Bruno Haible  <bruno@clisp.org>
36866
36867         * modules/strnlen (Maintainer): Change from glibc to all.
36868
36869 2006-01-24  Bruno Haible  <bruno@clisp.org>
36870
36871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
36872         Patch by Paul Eggert.
36873
36874 2006-01-24  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
36877         already has it.
36878         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
36879         2005-11-26.
36880
36881         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
36882         'signed char' to avoid problems with the built-in _Bool type.
36883         Reported by Paul Eggert on 2005-11-26.
36884
36885 2006-01-24  Bruno Haible  <bruno@clisp.org>
36886
36887         * gnulib-tool (func_import): Avoid constructing complicated sed
36888         expressions inside backquote.
36889         Report and solution by Mark D. Baushke <mdb@gnu.org>.
36890
36891 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
36892
36893         These changes imported from libc.
36894         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
36895         test and two separate function calls.
36896         * lib/strndup.c (__strndup): Add libc_hidden_def.
36897
36898 2006-01-23  Simon Josefsson  <jas@extundo.com>
36899
36900         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
36901         Remove the test_*_SOURCES variable: automake infers it by default.
36902         * modules/tls-tests: Likewise.
36903
36904 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36905
36906         Work around porting bugs reported by Dieter in
36907         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
36908         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
36909         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
36910         Include "getopt.h" first, to check interface.
36911         (getenv): Declare only if defined HAVE_DECL_GETENV &&
36912         !HAVE_DECL_GETENV.
36913         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
36914         (__strndup): Revert to K&R-style function dfns, the glibc style.
36915         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
36916         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
36917         Include strnlen.h first, to get prototype properly.
36918         (strnlen): Renamed from __strnlen.
36919         Remove weak alias.
36920
36921 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36922
36923         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
36924
36925 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36926
36927         * config/srclist.txt: Adjust to reflect glibc reorganization.
36928         This affects only comments.
36929
36930 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36931
36932          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
36933          Reported by Bruce Korb <bkorb@gnu.org>.
36934
36935 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36936
36937         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
36938         to pacify gcc -Wswitch-default.
36939
36940 2006-01-22  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
36943         temporary buffer for sprintf, take into account the precision also
36944         for 'd', 'i', 'u', 'o', 'x', 'X'.
36945
36946 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36947
36948         * modules/argp-tests: New module
36949         * tests/test-argp.c: New file
36950         * tests/test-argp-2.sh: New file
36951
36952 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36953
36954         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
36955         (__argp_base_name): Removed
36956         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
36957         typo.
36958         (__argp_base_name): Provide macro definition or extern declaration
36959         depending on the configuration
36960
36961 2006-01-20  Simon Josefsson  <jas@extundo.com>
36962
36963         * modules/inet_ntop (Depends-on): Depend on sys_socket.
36964
36965 2006-01-20  Simon Josefsson  <jas@extundo.com>
36966
36967         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
36968
36969 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
36970
36971         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
36972         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
36973         Suggested by Bruno Haible.
36974
36975 2006-01-20  Karl Berry  <karl@gnu.org>
36976
36977         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
36978         until changes propagate, I guess.
36979
36980 2006-01-19  Simon Josefsson  <jas@extundo.com>
36981
36982         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
36983
36984 2006-01-19  Simon Josefsson  <jas@extundo.com>
36985
36986         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
36987
36988 2006-01-19  Simon Josefsson  <jas@extundo.com>
36989
36990         * gnulib-tool: Set check_PROGRAMS.
36991
36992         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36993         modules/des-tests, modules/gc-arcfour-tests,
36994         modules/gc-arctwo-tests, modules/gc-des-tests,
36995         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36996         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36997         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36998         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36999         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37000         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
37001         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
37002         test_*_SOURCES.
37003
37004 2006-01-18  Simon Josefsson  <jas@extundo.com>
37005
37006         * modules/socklen (Depends-on): Depend on sys_socket.
37007
37008 2006-01-18  Simon Josefsson  <jas@extundo.com>
37009
37010         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
37011         modules/des-tests, modules/gc-arcfour-tests,
37012         modules/gc-arctwo-tests, modules/gc-des-tests,
37013         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
37014         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
37015         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
37016         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
37017         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
37018         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
37019         $(EXEEXT) to automake TESTS variable, for mingw32.
37020
37021 2006-01-17  Simon Josefsson  <jas@extundo.com>
37022
37023         * modules/socklen (Include): Need sys/socket.h.
37024
37025 2006-01-17  Bruno Haible  <bruno@clisp.org>
37026
37027         * modules/ssize_t (Include): Add <sys/types.h>.
37028
37029 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
37030
37031         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
37032         it's not portable and it doesn't work with cross-compiles.
37033         Problem reported by Bruno Haible.  Fix missing-$ typo in
37034         'test "gl_cv_ignore_unused_libraries" ...' that prevented
37035         -zignore from being used with Sun's C compiler.
37036
37037 2006-01-12  Simon Josefsson  <jas@extundo.com>
37038
37039         * lib/base64.c: Fix warning, reported by Bruno Haible
37040         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
37041
37042 2006-01-12  Bruno Haible  <bruno@clisp.org>
37043
37044         * modules/ldd: New file.
37045         * build-aux/ldd.sh.in: New file.
37046         * MODULES.html.sh (Support for building libraries and executables): Add
37047         ldd.
37048
37049 2006-01-12  Bruno Haible  <bruno@clisp.org>
37050
37051         * m4/ldd.m4: New file.
37052
37053 2006-01-12  Bruno Haible  <bruno@clisp.org>
37054
37055         * gnulib-tool (func_import, func_create_testdir): Don't go into an
37056         endless loop while replacing $auxdir with build-aux.
37057
37058 2006-01-11  Simon Josefsson  <jas@extundo.com>
37059
37060         * lib/stdint_.h (SIZE_MAX): Add missing (.
37061
37062 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
37063
37064         Sync from coreutils.
37065         * lib/md5.c: Fix commentary typos.
37066         (alignof, UNALIGNED_P): No need for a GCC-specific version.
37067         * lib/md5.h (__attribute__): Remove; unused.
37068         * lib/sha1.c: Fix commentary to match md5 better.
37069         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
37070         so that we don't need to worry about alignment.  All uses changed.
37071         This merges the 2005-10-28 md5 change into sha1.
37072
37073 2006-01-11  Jim Meyering  <jim@meyering.net>
37074
37075         Sync from coreutils.
37076         * lib/md5.c (OP): Fix spacing.
37077
37078 2006-01-11  Bruno Haible  <bruno@clisp.org>
37079
37080         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37081         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
37082         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
37083
37084 2006-01-11  Bruno Haible  <bruno@clisp.org>
37085
37086         Ensure automatic ordering between gl_LOCK and gl_ARGP.
37087         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
37088         the "early" section as well.
37089
37090 2006-01-11  Bruno Haible  <bruno@clisp.org>
37091
37092         Avoid "ar: no archive members specified" error on MacOS X.
37093         * gnulib-tool (func_modules_add_dummy): New function.
37094         (func_import, func_create_testdir): Invoke it.
37095
37096 2006-01-11  Bruno Haible  <bruno@clisp.org>
37097
37098         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
37099         with $auxdir in AC_CONFIG_FILES statements.
37100
37101 2006-01-11  Bruno Haible  <bruno@clisp.org>
37102
37103         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37104         Initialize also noinst_HEADERS to empty.
37105
37106 2006-01-11  Bruno Haible  <bruno@clisp.org>
37107
37108         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
37109         variables.
37110         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
37111         autoreconf.
37112
37113 2006-01-11  Bruno Haible  <bruno@clisp.org>
37114
37115         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
37116         overridable by the user.
37117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37118
37119 2006-01-10  Simon Josefsson  <jas@extundo.com>
37120
37121         * modules/sys_socket: New file.
37122
37123 2006-01-10  Simon Josefsson  <jas@extundo.com>
37124
37125         * m4/sys_socket_h.m4: New file.
37126
37127 2006-01-10  Simon Josefsson  <jas@extundo.com>
37128
37129         * lib/socket_.h: New file.
37130
37131 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37132
37133         * modules/readutmp (Maintainer): Add myself.
37134
37135 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37136
37137         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
37138         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
37139         People who are still concerned with buggy memcmp implementations
37140         can invoke gl_FUNC_MEMCMP themselves.
37141
37142 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37143
37144         * lib/regex_internal.h (BITSET_WORD_BITS):
37145         Work around a bug in 64-bit PGC (before version 6.1-2), where the
37146         preprocessor mishandles large unsigned values as if they were signed.
37147         Problem reported by Claudio Fontana in
37148         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
37149
37150 2006-01-10  Jim Meyering  <jim@meyering.net>
37151
37152         Avoid the double-free (first in fts_read, second in fts_close) that
37153         would occur when an `active' directory is made inaccessible (e.g.,
37154         via chmod a-x) during a traversal.
37155         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37156         before returning.  Reproduce this failure by
37157         mkdir -p a/b; cd a; chmod a-x . b
37158         Reported by Stavros Passas.
37159
37160         Sync from coreutils.
37161         * lib/sha1.c: Tweak grammar in a comment.
37162
37163 2006-01-10  Jim Meyering  <jim@meyering.net>
37164
37165         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
37166         Patch by Joerg Sonnenberger.
37167
37168 2006-01-10  Bruno Haible  <bruno@clisp.org>
37169
37170         * modules/readutmp: Depend on module free.
37171         * modules/strtok_r: Depend on module restrict.
37172
37173 2006-01-10  Bruno Haible  <bruno@clisp.org>
37174
37175         * modules/gettext (configure.ac): Add an invocation of
37176         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
37177
37178 2006-01-10  Bruno Haible  <bruno@clisp.org>
37179
37180         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
37181         Reported by Werner Lemberg <wl@gnu.org>.
37182
37183 2006-01-10  Bruno Haible  <bruno@clisp.org>
37184
37185         * lib/localcharset.c: Update from GNU gettext.
37186
37187 2006-01-10  Bruno Haible  <bruno@clisp.org>
37188
37189         * lib/argp.h (__const): Remove macro. Use const instead.
37190         * lib/argp-fmtstream.h (__const): Likewise.
37191         * lib/glob_.h (__const): Remove macro.
37192         * lib/glob-libc.h: Use const instead of __const.
37193
37194 2006-01-10  Bruno Haible  <bruno@clisp.org>
37195
37196         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
37197         variable.
37198         Needed to avoid an automake error regarding the 'gettext' module.
37199
37200 2006-01-09  Simon Josefsson  <jas@extundo.com>
37201
37202         * modules/inet_ntop (Depends-on): Add restrict.
37203
37204 2006-01-09  Simon Josefsson  <jas@extundo.com>
37205
37206         * modules/gc-rijndael-tests (License): Put under LGPL.
37207
37208         * modules/gc-des-tests (License): Likewise.
37209
37210         * modules/gc-arcfour-tests (License): Likewise.
37211
37212         * modules/gc-arctwo-tests (License): Likewise.
37213
37214         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
37215
37216         * modules/gc-hmac-sha1-tests (Files): Likewise.
37217
37218         * modules/gc-hmac-md5-tests (License): Likewise.
37219
37220         * modules/gc-sha1-tests (License): Likewise.
37221
37222         * modules/gc-md5-tests (License): Likewise.
37223
37224         * modules/gc-md4-tests (License): Likewise.
37225
37226         * modules/gc-md2-tests (License): Likewise.
37227
37228         * modules/gc-tests (License): Likewise.
37229
37230         * modules/des-tests (License): Likewise.
37231
37232         * modules/md4-tests (License): Likewise.
37233
37234         * modules/md2-tests (License): Likewise.
37235
37236 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37237
37238         Sync from coreutils:
37239
37240         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
37241         * modules/lib-ignore: New file.
37242         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
37243         chdir-safer.m4, lchmod.m4.
37244         * modules/openat: Add mkdirat.c, openat-priv.h.
37245
37246 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37247
37248         Sync from coreutils.
37249         * m4/lib-ignore.m4: New file.
37250         * m4/lchmod.m4: New file.
37251
37252 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37253
37254         Sync from coreutils.
37255         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
37256         for write access: POSIX says that must fail.
37257         * lib/fts.c (diropen): Likewise.
37258         * lib/save-cwd.c (save_cwd): Likewise.
37259         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
37260         well, for minor improvements on hosts that lack O_DIRECTORY.
37261         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
37262         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
37263         Fall back on chown if open failed with EACCES.
37264
37265         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
37266         Report an error at compile-time if only a 1-second nominal clock
37267         resolution is found.
37268
37269         * lib/lchmod.h: New file.
37270         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
37271         (make_dir_parents): Use lchown rather than chown, and
37272         lchmod rather than chmod.
37273
37274         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
37275         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
37276         "proc" reported by n0dalus.
37277
37278         * lib/mountlist.c: Include <limits.h>.
37279         (dev_from_mount_options)
37280         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
37281         New function.  It no longer assumes "dev=" has the System V meaning
37282         on Linux (since it doesn't).  It also parses "dev=" more carefully.
37283         (read_file_system_list)
37284         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
37285         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
37286         dev= in that case.
37287
37288         * lib/posixtm.h (PDS_PRE_2000): New macro.
37289         * lib/posixtm.c (year): Arg is now syntax_bits rather than
37290         allow_century.  All usages changed.  Reject dates outside the range
37291         1969-1999 if PDS_PRE_2000 is used.
37292
37293 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37294
37295         Sync from coreutils.
37296         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
37297         (Time of day items): Mention the possibility of leap seconds.
37298         Problem reported by Dr. David Alan Gilbert.
37299
37300 2006-01-09  Jim Meyering  <jim@meyering.net>
37301
37302         Sync from coreutils.
37303
37304         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
37305
37306         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
37307
37308         * lib/modechange.c (mode_compile): Reject an invalid mode string
37309         that starts with an octal digit.  From Andreas Gruenbacher.
37310
37311         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
37312         and dup to open_safer and dup_safer, respectively.
37313         (openat_permissive): Fix typo in comment.
37314
37315         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
37316         "gettext.h"; either no longer needed or are guaranteed by openat.h.
37317         (_): Remove; no longer needed.
37318         (openat): Renamed from rpl_openat; no need for rpl_openat
37319         since openat.h renames openat for us.
37320         Replace most of the body with a call to openat_permissive,
37321         to avoid duplicate code.
37322         Port to (probably hypothetical) environments were mode_t is
37323         wider than int.
37324         (openat_permissive): Require mode arg, so that we can check
37325         types better.  Put it just after flags.  Change cwd failure
37326         indicator from pointer-to-bool to pointer-to-errno-value.
37327         All callers changed.
37328         Invoke openat_save_fail and/or openat_restore_fail if
37329         cwd_errno is null, so that openat can call us.
37330         (openat_permissive, fdopendir, fstatat, unlinkat):
37331         Simplify errno handling to avoid some duplicate code,
37332         as it's OK to set errno on success.
37333         * lib/openat.h: Revamp code so that function macros depend on
37334         __OPENAT_PREFIX only, not also on AT_FDCWD.
37335         (openat_ro): Remove.  Caller changed to use openat_permissive.
37336         (openat_permissive): Now a macro, if not a function.
37337         (openat_restore_fail, openat_save_fail): Now always functions,
37338         since mkdirat needs them even if __OPENAT_PREFIX is defined.
37339
37340         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
37341         and openat.c.
37342         * lib/mkdirat.c: Include openat-priv.h.
37343         Remove definitions of macros defined therein.
37344         * lib/openat.c: Likewise.
37345
37346         * lib/mkdirat.c (mkdirat): New file and function.
37347         * lib/openat.h (mkdirat): Declare.
37348
37349         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
37350
37351         * lib/openat.h (openat_permissive): Declare.
37352         (openat_ro): Define.
37353
37354         * lib/openat.c (EXPECTED_ERRNO): New macro.
37355         (openat_permissive): New function -- used in remove.c rewrite.
37356         (all functions): Set errno just before returning, only if there
37357         was an actual failure.
37358         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
37359
37360         Emulate openat-family functions using Linux's procfs, if possible.
37361         Idea and some code based on Ulrich Drepper's glibc changes.
37362
37363         * lib/openat.c: (BUILD_PROC_NAME): New macro.
37364         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
37365         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
37366         before falling back on save_cwd and restore_cwd.
37367         (fdopendir, fstatat, unlinkat): Likewise.
37368
37369         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
37370         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
37371
37372         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
37373         as second argument to va_arg.  Otherwise, some versions of gcc
37374         warn that `if this code is reached, the program will abort'.
37375
37376 2006-01-09  Jim Meyering  <jim@meyering.net>
37377
37378         Sync from coreutils.
37379         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
37380         Require openat-priv.h.
37381
37382 2006-01-09  Bruno Haible  <bruno@clisp.org>
37383
37384         * modules/strnlen (Include): Use strnlen.h.
37385
37386 2006-01-09  Bruno Haible  <bruno@clisp.org>
37387
37388         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
37389
37390 2006-01-09  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/sysexit_.h (EX_OK): New macro.
37393         Suggested by Martin Lambers <marlam@marlam.de>.
37394
37395 2006-01-09  Bruno Haible  <bruno@clisp.org>
37396
37397         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
37398         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
37399
37400 2006-01-09  Bruno Haible  <bruno@clisp.org>
37401
37402         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
37403         numbers.
37404
37405 2006-01-09  Bruno Haible  <bruno@clisp.org>
37406
37407         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
37408         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
37409         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
37410         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
37411
37412 2006-01-09  Bruno Haible  <bruno@clisp.org>
37413
37414         * build-aux/javacomp.sh.in: New file, moved from lib/.
37415         * modules/javacomp-script (Files): Update.
37416         (configure.ac): Add AC_CONFIG_FILES invocation.
37417         (EXTRA_DIST): Remove variable.
37418
37419         * build-aux/javaexec.sh.in: New file, moved from lib/.
37420         * modules/javaexec (Files): Update.
37421         (configure.ac): Add AC_CONFIG_FILES invocation.
37422         (EXTRA_DIST): Remove javaexec.sh.in.
37423
37424         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
37425         * modules/csharpcomp-script (Files): Update.
37426         (configure.ac): Add AC_CONFIG_FILES invocation.
37427         (EXTRA_DIST): Remove variable.
37428
37429         * build-aux/csharpexec.sh.in: New file, moved from lib/.
37430         * modules/csharpexec (Files): Update.
37431         (configure.ac): Add AC_CONFIG_FILES invocation.
37432         (EXTRA_DIST): Remove csharpexec.sh.in.
37433
37434 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37435
37436         Sync from coreutils.
37437
37438         Add POSIX ACL support
37439         * lib/acl.h (copy_acl, set_acl): Add declarations.
37440         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
37441         systems other than Linux.
37442         (chmod_or_fchmod): New function: use fchmod when possible,
37443         and chmod otherwise.
37444         (file_has_acl): Add a POSIX ACL implementation, with a
37445         Linux-specific subcase.
37446         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
37447         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
37448         acls are unsupported.
37449         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
37450         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
37451         are unsupported.
37452
37453 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37454
37455         Sync from coreutils.
37456         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
37457
37458 2006-01-07  Bruno Haible  <bruno@clisp.org>
37459
37460         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
37461         gl_EARLY.
37462
37463 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37464
37465         * lib/strftime.c (tzname): Don't declare if it is already #defined.
37466         Problem reported for Mingw by Mark Junker.
37467
37468 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37469
37470         * README: Gnulib normally doesn't generate a tarball.
37471
37472 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
37473
37474         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
37475         long int, not int, for nanosecond counts, so that people who are
37476         used to POSIX struct timespec won't be surprised.  Reported by Jim
37477         Meyering.
37478
37479 2005-12-28  Bruno Haible  <bruno@clisp.org>
37480
37481         * build-aux/config.rpath: Update from GNU gettext.
37482
37483 2005-12-16  Jim Meyering  <jim@meyering.net>
37484
37485         * modules/fprintftime: New module.
37486         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
37487
37488 2005-12-16  Jim Meyering  <jim@meyering.net>
37489
37490         * m4/fprintftime.m4: New file.
37491
37492 2005-12-16  Jim Meyering  <jim@meyering.net>
37493
37494         * lib/fprintftime.c, lib/fprintftime.h: New files.
37495
37496 2005-12-15  Simon Josefsson  <jas@extundo.com>
37497
37498         * modules/socklen (configure.ac): Fix M4 macro name, to align with
37499         new m4/socklen.m4.
37500
37501 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37502
37503         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
37504         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
37505
37506 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37507
37508         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
37509         * lib/argp-help.c (fill_in_uparams): Check if the constructed
37510         struct uparams is valid. Fall back to the default values if it is
37511         not.
37512
37513 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37514
37515         * modules/argp (Files): Add argp-pin.c
37516         (Depends-on): dirname
37517         (lib_SOURCES): Add argp-pin.c
37518
37519 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37520
37521         * m4/argp.m4:  Check if program_invocation_name and
37522         program_invocation_short_name are declared and define appropriate
37523         macros if they are not.
37524
37525 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37526
37527         * lib/argp-help.c (__argp_base_name): New function
37528         (__argp_short_program_name): Rewrite using __argp_base_name
37529         * lib/argp-namefrob.h: Define program_invocation_name and
37530         program_invocation_short_name if requested
37531         (__argp_base_name): Add prototype
37532         * lib/argp-parse.c (argp_def): Use gettext wrappers
37533         (argp_default_parser): Use __argp_base_name
37534         * lib/argp-pin.c: New file. Defines program_invocation_name and
37535         program_invocation_short_name on systems that lack them.
37536
37537 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37538
37539         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
37540         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37541         porting problem reported by Georg Schwarz in
37542         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37543
37544 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37545
37546         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
37547         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37548         porting problem reported by Georg Schwarz in
37549         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37550
37551 2005-12-05  Bruno Haible  <bruno@clisp.org>
37552
37553         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
37554         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
37555         Reported by Mark Junker <mjscod@gmx.de>.
37556
37557 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
37558
37559         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
37560         Use implementation from Albert Chin, with some
37561         comments/corrections by Stepan Kasal and myself.
37562
37563 2005-12-02  Bruno Haible  <bruno@clisp.org>
37564
37565         * gnulib-tool (func_import): Accept GPLed build tool modules when
37566         --lgpl is given.
37567         * modules/csharpcomp-script: New file.
37568         * modules/csharpcomp: Depend on it.
37569         * modules/javacomp-script: New file.
37570         * modules/javacomp: Depend on it.
37571         Suggested by Simon Josefsson.
37572
37573 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
37574
37575         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
37576         statement, to work around an HP-UX 10.20 compiler bug reported by
37577         Peter O'Gorman.
37578
37579 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37580
37581         * modules/savedir (Depends-on): Add openat.
37582
37583 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37584
37585         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
37586         (uintmax_t) [defined uintmax_t]: Do not declare.
37587         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
37588         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
37589         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
37590         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
37591         sake of portability to weird hosts that C allows (though we don't
37592         know of any practical examples).
37593
37594         * lib/savedir.h (fdsavedir): New decl.
37595         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
37596         contains most of the former guts of savedir.
37597         (savedir): Use savedirstream.
37598         Include "openat.h".
37599
37600 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37601
37602         * modules/obstack (Files): Add m4/ulonglong.m4.
37603         Problem reported by Davide Angelocola.
37604
37605 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37606
37607         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
37608         coreutils no longer futzes with rounding modes.
37609
37610 2005-11-14  Jim Meyering  <jim@meyering.net>
37611
37612         * lib/mkstemp-safer.c: Include <config.h>, required for possible
37613         replacement of mkstemp.
37614
37615 2005-11-10  Simon Josefsson  <jas@extundo.com>
37616
37617         * lib/readline.c: Remove EOL.
37618
37619 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37620
37621         * modules/gethrxtime (Depends-on): Add gettime.
37622
37623 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37624
37625         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
37626         or gettimeofday; no longer needed.
37627
37628 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37629
37630         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
37631         time business.
37632         (gethrxtime) [! (HAVE_NANOUPTIME
37633         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
37634         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
37635         our own approximation.
37636
37637 2005-11-08  Eric Blake  <ebb9@byu.net>
37638
37639         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
37640
37641 2005-11-08  Eric Blake  <ebb9@byu.net>
37642
37643         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
37644
37645 2005-11-04  Bruno Haible  <bruno@clisp.org>
37646
37647         * gnulib-tool: Implement --update mode.
37648
37649 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37650
37651         Fix porting problem reported by Theodoros V. Kalamatianos.
37652         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
37653         Don't assume that futimes failing means we must fail.
37654
37655 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37656
37657         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
37658         variables to suggest the intended function of the PATH_MAX check.
37659
37660 2005-10-30  Kean Johnston  <jkj@sco.com>
37661
37662         Trivial changes to support SCO systems.
37663         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
37664         as PATH_MAX.
37665         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
37666         where __ptr is null when no I/O is pending.
37667
37668 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
37669
37670         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
37671         leave errno alone.  Problem reported by Dmitry V. Levin.
37672
37673 2005-10-28  Simon Josefsson  <jas@extundo.com>
37674
37675         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
37676         Test more.
37677
37678         * tests/test-gc-md2.c, tests/test-md2.c: New files.
37679
37680         * modules/md2, modules/md2-tests: New files.
37681
37682 2005-10-28  Simon Josefsson  <jas@extundo.com>
37683
37684         * m4/inet_ntop.m4: More tests.
37685
37686         * m4/gc-md2.m4, md2.m4: New file.
37687
37688 2005-10-28  Simon Josefsson  <jas@extundo.com>
37689
37690         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
37691         "restrict" keywords, as per POSIX.  Protect the function
37692         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
37693         Don't use K&R prototypes.  Check the sprintf return values.
37694         Re-define EAFNOSUPPORT if not present.  Indent.
37695
37696         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
37697         suggested by Bruno Haible <bruno@clisp.org>.
37698
37699         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
37700
37701         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
37702
37703         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
37704         libgcrypt).
37705
37706         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
37707
37708         * lib/md2.h, lib/md2.c: New files.
37709
37710 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
37711
37712         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
37713         errno alone.  Problem reported by Frederic Jolliton.
37714
37715 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37716
37717         * modules/verify (License): Change from GPL to LGPL.  This is a
37718         tiny module and there are apparently near-equivalents that are
37719         under the BSD license.
37720
37721 2005-10-24  Simon Josefsson  <jas@extundo.com>
37722
37723         * modules/sha1: Relicense to LGPL.
37724
37725 2005-10-24  Simon Josefsson  <jas@extundo.com>
37726
37727         * lib/md4.h: Shrink buffer size, now that we changed the type.
37728
37729 2005-10-23  Simon Josefsson  <jas@extundo.com>
37730
37731         * gnulib-tool (func_import): Fix --tests-base.
37732
37733 2005-10-22  Simon Josefsson  <jas@extundo.com>
37734
37735         * modules/arcfour (Depends-on): Need stdint.
37736
37737 2005-10-22  Simon Josefsson  <jas@extundo.com>
37738
37739         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
37740         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
37741
37742 2005-10-22  Simon Josefsson  <jas@extundo.com>
37743
37744         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
37745         suggested by Bruno Haible <bruno@clisp.org>.
37746
37747 2005-10-22  Simon Josefsson  <jas@extundo.com>
37748
37749         * lib/crc.h: Include stddef.h, for size_t.
37750
37751 2005-10-22  Simon Josefsson  <jas@extundo.com>
37752
37753         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
37754         arcfour_context struct (simplify test vector testing in GNU
37755         Shishi).
37756
37757 2005-10-21  Simon Josefsson  <jas@extundo.com>
37758
37759         * modules/des, modules/des-tests: New files.
37760
37761         * modules/gc-des, modules/gc-des-tests: New files.
37762
37763         * tests/test-des.c, tests/test-gc-des.c: New file.
37764
37765 2005-10-21  Simon Josefsson  <jas@extundo.com>
37766
37767         * modules/arctwo, modules/arctwo-tests: New files.
37768
37769         * tests/test-arctwo.c: New file.
37770
37771         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
37772
37773         * tests/test-gc-arctwo.c: New file.
37774
37775 2005-10-21  Simon Josefsson  <jas@extundo.com>
37776
37777         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
37778         Bruno Haible <bruno@clisp.org>.
37779
37780         * m4/gc-des.m4: New file.
37781
37782 2005-10-21  Simon Josefsson  <jas@extundo.com>
37783
37784         * m4/arctwo.m4: New file.
37785
37786         * m4/gc-arctwo.m4: New file.
37787
37788 2005-10-21  Simon Josefsson  <jas@extundo.com>
37789
37790         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
37791         block.
37792
37793 2005-10-21  Simon Josefsson  <jas@extundo.com>
37794
37795         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
37796         <bruno@clisp.org>.
37797
37798         * lib/hmac-sha1.c (hmac_sha1): Likewise.
37799
37800         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
37801         Bruno Haible <bruno@clisp.org>.
37802
37803         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
37804         <bruno@clisp.org>.
37805
37806 2005-10-21  Simon Josefsson  <jas@extundo.com>
37807
37808         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
37809
37810 2005-10-21  Simon Josefsson  <jas@extundo.com>
37811
37812         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
37813
37814 2005-10-21  Simon Josefsson  <jas@extundo.com>
37815
37816         * lib/des.h, lib/des.c: New files.
37817
37818         * lib/gc-gnulib.c: Support DES.c
37819
37820 2005-10-21  Simon Josefsson  <jas@extundo.com>
37821
37822         * lib/arctwo.h, lib/arctwo.c: New files.
37823
37824         * lib/gc-gnulib.c: Support ARCTWO.
37825
37826 2005-10-21  Simon Josefsson  <jas@extundo.com>
37827
37828         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
37829         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37830
37831 2005-10-21  Simon Josefsson  <jas@extundo.com>
37832
37833         * gnulib-tool (func_import, func_create_testdir): Define automake
37834         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
37835         Makefile.am snippet),
37836         suggested by Bruno Haible <bruno@clisp.org>.
37837
37838         * modules/gc (Makefile.am): Use it.
37839
37840 2005-10-21  Bruno Haible  <bruno@clisp.org>
37841
37842         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
37843         patch.
37844
37845 2005-10-19  Simon Josefsson  <jas@extundo.com>
37846
37847         * tests/test-gc-rijndael.c: New file.
37848
37849         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
37850
37851 2005-10-19  Simon Josefsson  <jas@extundo.com>
37852
37853         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
37854         interface too.
37855
37856 2005-10-19  Simon Josefsson  <jas@extundo.com>
37857
37858         * tests/test-gc-arcfour.c: New file.
37859
37860         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
37861
37862 2005-10-19  Simon Josefsson  <jas@extundo.com>
37863
37864         * modules/gc-md4, modules/gc-md4-tests: New file.
37865
37866         * tests/test-gc-md4.c: New file.
37867
37868 2005-10-19  Simon Josefsson  <jas@extundo.com>
37869
37870         * m4/gc-md4.m4: New file.
37871
37872 2005-10-19  Simon Josefsson  <jas@extundo.com>
37873
37874         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
37875         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
37876         <kasal@ucw.cz>.
37877
37878 2005-10-19  Simon Josefsson  <jas@extundo.com>
37879
37880         * m4/gc-arcfour.m4: New file.
37881
37882         * m4/gc-rijndael.m4: New file.
37883
37884 2005-10-19  Simon Josefsson  <jas@extundo.com>
37885
37886         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
37887
37888 2005-10-19  Simon Josefsson  <jas@extundo.com>
37889
37890         * lib/gc-gnulib.c: Support ARCFOUR.
37891
37892 2005-10-19  Simon Josefsson  <jas@extundo.com>
37893
37894         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
37895         support.
37896
37897         * lib/gc.h: Add ECB enum type.
37898
37899         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
37900
37901 2005-10-18  Simon Josefsson  <jas@extundo.com>
37902
37903         * tests/test-md5.c: New file.
37904
37905         * modules/md5-tests: New file.
37906
37907 2005-10-18  Simon Josefsson  <jas@extundo.com>
37908
37909         * tests/test-md4.c: New file.
37910
37911         * modules/md4, modules/md4-tests: New files.
37912
37913 2005-10-18  Simon Josefsson  <jas@extundo.com>
37914
37915         * m4/md4.m4: New file.
37916
37917 2005-10-18  Simon Josefsson  <jas@extundo.com>
37918
37919         * lib/md4.h, lib/md4.c: New files, based on md5.?.
37920
37921 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
37922
37923         * gnulib-tool (func_create_testdir): Omit the second check whether
37924         BUILT_SOURCES in nonempty.
37925
37926 2005-10-17  Simon Josefsson  <jas@extundo.com>
37927
37928         * tests/test-rijndael.c: New file.
37929
37930 2005-10-17  Simon Josefsson  <jas@extundo.com>
37931
37932         * modules/sha1: Depend on stdint instead of md5.
37933
37934         * modules/md5: Depend on stdint, remove uint32_t.
37935
37936 2005-10-17  Simon Josefsson  <jas@extundo.com>
37937
37938         * modules/gc-sha1-tests: New file.
37939
37940         * tests/test-gc-sha1.c: New file.
37941
37942 2005-10-17  Simon Josefsson  <jas@extundo.com>
37943
37944         * m4/md5.m4: Remove call to uint32_t.m4.
37945
37946 2005-10-17  Simon Josefsson  <jas@extundo.com>
37947
37948         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
37949
37950         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
37951         md5.h.
37952
37953         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
37954
37955         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
37956
37957 2005-10-17  Simon Josefsson  <jas@extundo.com>
37958
37959         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
37960
37961 2005-10-17  Simon Josefsson  <jas@extundo.com>
37962
37963         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
37964
37965 2005-10-17  Simon Josefsson  <jas@extundo.com>
37966
37967         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
37968
37969         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
37970
37971 2005-10-17  Bruno Haible  <bruno@clisp.org>
37972
37973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
37974         that it can also be used in a test.
37975
37976 2005-10-16  Bruno Haible  <bruno@clisp.org>
37977
37978         * gnulib-tool (func_emit_tests_Makefile_am): Also define
37979         TESTS_ENVIRONMENT, so that individual tests can augment it.
37980
37981         * gnulib-tool (func_create_testdir): Use an intermediate target for
37982         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
37983         macros, like $(ALLOCA_H), which cannot be passed through the command
37984         line.
37985
37986 2005-10-15  Simon Josefsson  <jas@extundo.com>
37987
37988         * modules/rijndael-tests: New file.
37989
37990         * modules/rijndael: New file.
37991
37992 2005-10-15  Simon Josefsson  <jas@extundo.com>
37993
37994         * m4/rijndael.m4: New file.
37995
37996 2005-10-15  Simon Josefsson  <jas@extundo.com>
37997
37998         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
37999
38000         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
38001
38002 2005-10-14  Simon Josefsson  <jas@extundo.com>
38003
38004         * tests/test-arcfour.c: New file.
38005
38006         * modules/arcfour, modules/arcfour-tests: New files.
38007
38008 2005-10-14  Simon Josefsson  <jas@extundo.com>
38009
38010         * m4/arcfour.m4: New file.
38011
38012 2005-10-14  Simon Josefsson  <jas@extundo.com>
38013
38014         * lib/arcfour.h, lib/arcfour.c: New files.
38015
38016 2005-10-14  Roland McGrath  <roland@redhat.com>
38017
38018         Import from libc.  [BZ #1331]
38019         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
38020         macro argument.
38021         Reported by Matej Vela <vela@debian.org>.
38022
38023 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38024
38025         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
38026         include <wchar.h>; no longer needed.
38027
38028 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38029
38030         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
38031
38032 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
38033         and  Ulrich Drepper  <drepper@redhat.com>
38034
38035         Import from libc.
38036         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
38037         instead of inline stream orientation test and two separate
38038         function calls.  Pay no attention to USE_IN_LIBIO.
38039
38040 2005-10-13  Simon Josefsson  <jas@extundo.com>
38041
38042         * modules/gc-hmac-md5-tests: New file.
38043
38044         * tests/test-gc-hmac-sha1.c: New file.
38045
38046         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
38047
38048         * modules/gc-hmac-md5-tests: New file.
38049
38050         * tests/test-gc-md5.c: New file.
38051
38052         * modules/gc-md5-tests: New file.
38053
38054 2005-10-13  Simon Josefsson  <jas@extundo.com>
38055
38056         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
38057         Move memory allocation outside of loop.
38058
38059 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
38060
38061         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
38062         intermediate directory is in a read-only file system.  Problem
38063         reported by Eric Blake.
38064
38065 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
38066
38067         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
38068
38069 2005-10-12  Simon Josefsson  <jas@extundo.com>
38070
38071         * tests/test-hmac-sha1.c: New file.
38072
38073         * modules/hmac-sha1-tests: New file.
38074
38075         * modules/hmac-sha1: New file.
38076
38077 2005-10-12  Simon Josefsson  <jas@extundo.com>
38078
38079         * modules/gc-sha1: New file.
38080
38081 2005-10-12  Simon Josefsson  <jas@extundo.com>
38082
38083         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
38084
38085         * tests/test-gc-pbkdf2-sha1.c: New file.
38086
38087 2005-10-12  Simon Josefsson  <jas@extundo.com>
38088
38089         * modules/gc-md5, modules/gc-hmac-md5: New files.
38090
38091         * modules/gc (Files): Remove md5, memxor and hmac files.
38092
38093 2005-10-12  Simon Josefsson  <jas@extundo.com>
38094
38095         * m4/gc-pbkdf2-sha1.m4: New file.
38096
38097         * m4/gc-hmac-sha1.m4: New file.
38098
38099         * m4/gc-sha1: New file.
38100
38101         * m4/hmac-sha1.m4: New file.
38102
38103 2005-10-12  Simon Josefsson  <jas@extundo.com>
38104
38105         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
38106
38107         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
38108
38109 2005-10-12  Simon Josefsson  <jas@extundo.com>
38110
38111         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
38112         suggested by Bruno Haible <bruno@clisp.org>.
38113
38114 2005-10-12  Simon Josefsson  <jas@extundo.com>
38115
38116         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
38117
38118 2005-10-12  Simon Josefsson  <jas@extundo.com>
38119
38120         * lib/gc-pbkdf2-sha1.c: New file.
38121
38122         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
38123
38124 2005-10-12  Simon Josefsson  <jas@extundo.com>
38125
38126         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
38127
38128         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
38129
38130 2005-10-12  Simon Josefsson  <jas@extundo.com>
38131
38132         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
38133         GC_USE_HMAC_MD5, respectively.
38134
38135         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
38136         (gc_md5): Fix typo.
38137
38138         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
38139
38140         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
38141
38142         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
38143
38144 2005-10-12  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
38147         Reported by Stepan Kasal <kasal@ucw.cz>.
38148
38149 2005-10-11  Simon Josefsson  <jas@extundo.com>
38150
38151         * tests/test-crc.c: New file.
38152
38153         * modules/crc, modules/crc-tests: New files.
38154
38155 2005-10-11  Simon Josefsson  <jas@extundo.com>
38156
38157         * m4/crc.m4: New file.
38158
38159 2005-10-11  Simon Josefsson  <jas@extundo.com>
38160
38161         * lib/gc.h: Add gc_hash and gc_hash_buffer.
38162
38163         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
38164
38165         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
38166
38167 2005-10-11  Simon Josefsson  <jas@extundo.com>
38168
38169         * lib/crc.h, lib/crc.c: New files.
38170
38171         * lib/gc.h (gc_hash_buffer): Add doc.
38172
38173 2005-10-11  Bruno Haible  <bruno@clisp.org>
38174
38175         * modules/c-strcasestr: New file.
38176         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
38177
38178 2005-10-11  Bruno Haible  <bruno@clisp.org>
38179
38180         * modules/c-strcase: New file.
38181         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
38182
38183 2005-10-11  Bruno Haible  <bruno@clisp.org>
38184
38185         * lib/strcasecmp.c: Include limits.h.
38186         (strcasecmp): Avoid integer overflow on exotic platforms.
38187         * lib/strncasecmp.c: Include limits.h.
38188         (strncasecmp): Avoid integer overflow on exotic platforms.
38189         Reported by Paul Eggert.
38190
38191 2005-10-11  Bruno Haible  <bruno@clisp.org>
38192
38193         * lib/c-strcasestr.h: New file, from GNU gettext.
38194         * lib/c-strcasestr.c: New file, from GNU gettext.
38195
38196 2005-10-11  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/c-strcase.h: New file, from GNU gettext.
38199         * lib/c-strcasecmp.c: New file, from GNU gettext.
38200         * lib/c-strncasecmp.c: New file, from GNU gettext.
38201
38202 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38203
38204         * modules/mempcpy (License): GPL -> LGPL.
38205         * modules/strchrnul (License): Likewise.
38206         * modules/sysexits (License): Likewise.
38207
38208 2005-10-08  Simon Josefsson  <jas@extundo.com>
38209
38210         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
38211
38212 2005-10-07  Simon Josefsson  <jas@extundo.com>
38213
38214         * m4/memxor.m4: Remove gl_C_RESTRICT call.
38215
38216 2005-10-06  Simon Josefsson  <jas@extundo.com>
38217
38218         * tests/test-hmac-md5.c: New file.
38219
38220         * modules/hmac-md5-tests: New file.
38221
38222         * modules/hmac-md5: New file.
38223
38224 2005-10-06  Simon Josefsson  <jas@extundo.com>
38225
38226         * m4/hmac-md5.m4: New file.
38227
38228         * m4/memxor.m4: Require gl_C_RESTRICT.
38229
38230 2005-10-06  Simon Josefsson  <jas@extundo.com>
38231
38232         * lib/memxor.c (memxor): Avoid casts and warnings.
38233
38234 2005-10-06  Simon Josefsson  <jas@extundo.com>
38235
38236         * lib/hmac-md5.c: New file.
38237
38238         * lib/hmac.h: New file.
38239
38240 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38241
38242         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
38243         promotes to int, not unsigned int, to catch the AIX 5.3
38244         compiler bug.
38245
38246 2005-10-05  Simon Josefsson  <jas@extundo.com>
38247
38248         * modules/memxor: New file.
38249
38250         * modules/iconv (Files): Move config.rpath to havelib, it is used
38251         there.
38252
38253         * modules/havelib (Files): Add config.rpath.
38254
38255 2005-10-05  Simon Josefsson  <jas@extundo.com>
38256
38257         * m4/memxor.m4: New file.
38258
38259 2005-10-05  Simon Josefsson  <jas@extundo.com>
38260
38261         * lib/memxor.c (memxor): Fix compiler error.
38262
38263         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
38264         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
38265
38266         * lib/memxor.h, lib/memxor.c: New files.
38267
38268         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
38269         we assume all systems have it, suggested by Jim Meyering
38270         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
38271         any systems lack sys/socket.h; mingw32 is known to lack it, but we
38272         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
38273         same reasons.
38274
38275 2005-10-05  Simon Josefsson  <jas@extundo.com>
38276
38277         * config/srclist.txt: Add glibc bug 1423 for md5.h.
38278
38279 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38280
38281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
38282         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
38283         needed, since the source code now assumes these .h files.
38284
38285 2005-10-05  Derek Price  <derek@ximbiot.com>
38286
38287         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
38288
38289 2005-10-05  Bruno Haible  <bruno@clisp.org>
38290
38291         * modules/stdint (License): Change to LGPL.
38292
38293 2005-10-04  Simon Josefsson  <jas@extundo.com>
38294
38295         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
38296         D. Baushke" <mdb@gnu.org>.
38297
38298 2005-10-04  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/verify.h (verify_true): Provide alternative definition for C++.
38301
38302 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
38303
38304         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
38305         (SSIZE_MAX): New macro, if not already defined.
38306         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
38307         than 2 GiB.
38308
38309 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38310
38311         Sync from coreutils.
38312         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
38313         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
38314         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
38315         ULLONG_MAX doesn't work with 2.7.2.1.
38316
38317 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38318
38319         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
38320         From Ben Pfaff.
38321
38322         * modules/exclude (Depends-on): Depend on verify.
38323         * modules/strtoimax (Depends-on): Likewise.
38324         * modules/utimecmp (Depends-on): Likewise.
38325
38326 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38327
38328         * lib/exclude.c: Include verify.h.
38329         (verify): Remove.  All callers changed to use verify.h's version.
38330         * lib/strtoimax.c: Likewise.
38331         * lib/utimecmp.c: Likewis.e
38332
38333         Sync from coreutils.
38334         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
38335         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
38336         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
38337         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
38338         bother returning ENOSYS if settimeofday or stime fails; just let
38339         them return whatever errno they want to return.
38340         * lib/utimens.c: Include unistd.h, for dup2.
38341         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
38342         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
38343
38344 2005-10-02  Jim Meyering  <jim@meyering.net>
38345
38346         Sync from coreutils.
38347         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
38348         from glibc-2.2.5 that fails for read-only files.
38349
38350 2005-10-02  Jim Meyering  <jim@meyering.net>
38351
38352         Sync from coreutils.
38353         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
38354         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
38355         `#if HAVE_CONFIG_H'.
38356         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
38357         Remove AT_FDCWD test.
38358         Do not consume the fd unless successful.
38359         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
38360         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
38361         block, so that we don't even try to compile it if settimeofday is
38362         available.  This works around a compilation failure on OSF1 V5.1,
38363         due to stime requiring a `long int*' while tv_sec is `int'.
38364
38365 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
38366
38367         Sync from coreutils.
38368         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
38369         against `yes', rather than just testing for nonempty.
38370
38371 2005-10-01  Simon Josefsson  <jas@extundo.com>
38372
38373         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
38374         and Darwin.
38375
38376         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
38377         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
38378         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
38379         freeaddrinfo and gai_strerror are declared by the POSIX headers.
38380         Check if struct addrinfo is declared.
38381
38382 2005-10-01  Simon Josefsson  <jas@extundo.com>
38383
38384         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
38385         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
38386         AI_* and EAI_* definitions.  Protect function declarations.
38387
38388 2005-10-01  Jim Meyering  <jim@meyering.net>
38389
38390         Sync from coreutils.
38391
38392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
38393         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
38394         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
38395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38396         in the inet and nsl libraries.  Required on Solaris 5.7.
38397
38398 2005-10-01  Jim Meyering  <jim@meyering.net>
38399
38400         Sync from coreutils.
38401         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38402         in the inet and nsl libraries.  Required on Solaris 5.7.
38403
38404 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
38405
38406         * lib/getdelim.c (getdelim): Remove unused variables.
38407
38408 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
38409
38410         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
38411         so that the code works even with ancient cpp.  Portability problem
38412         with GCC 2.7.2.1 reported by Thomas M.Ott.
38413
38414 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
38415
38416         * modules/regex (Depends-on): Add strcase.
38417
38418         * modules/gethostname (Licence): Change from GPL to LGPL, since
38419         gethostname.c is a trivial implementation of a standard library
38420         function.
38421         * modules/poll (License): Change from GPL to LGPL, since it's
38422         derived from LGPL code.
38423
38424 2005-09-27  Jim Meyering  <jim@meyering.net>
38425
38426         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
38427         HAVE_CONFIG_H.
38428
38429         * lib/intprops.h (signed_type_or_expr__): Define.
38430         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
38431         for unsigned types.
38432
38433 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38434
38435         * lib/verify.h (verify_expr): Remove, replacing with:
38436         (verify_true): New macro that returns true instead of void.
38437         (verify_type__): Remove.
38438         (verify): Use verify_true rather than verify_type__.
38439
38440 2005-09-26  Bruno Haible  <bruno@clisp.org>
38441
38442         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
38443         is necessary.
38444         (lib_SOURCES): Remove mbchar.c.
38445         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
38446         (Files): Add m4/mbrtowc.m4.
38447         * modules/mbiter: Likewise.
38448         * modules/mbuiter: Likewise.
38449
38450 2005-09-26  Bruno Haible  <bruno@clisp.org>
38451
38452         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
38453         compile mbchar.c if they are not both present.
38454         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
38455         * m4/mbiter.m4 (gl_MBITER): Likewise.
38456         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
38457         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
38458         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
38459
38460 2005-09-25  Jim Meyering  <jim@meyering.net>
38461
38462         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
38463         also uses socklen_t.
38464
38465 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
38466
38467         * lib/utimens.c (ENOSYS): Define if not already defined.
38468         (futimens): Support having a null PATH if the file descriptor
38469         is nonnegative.
38470
38471         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
38472         Remove.
38473         (__attribute): Define to empty unless GCC 3.1 or later.
38474         This works around a core dump on OpenBSD 3.4, which has GCC
38475         2.95.3, which dumps core when given __attribute__(()).  It also
38476         simplifies other tests, since we really don't want to bother with
38477         worrying about which ancient version of GCC supported what.
38478         Original problem reported by Yoann Vandoorselaere, with part of
38479         the fix suggested by Derek Price.
38480
38481 2005-09-24  Jim Meyering  <jim@meyering.net>
38482
38483         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
38484         so we can once again use a positive bitfield width of 1 -- now we
38485         don't have to explain why we were using a bitfield width of 2.
38486
38487 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
38488
38489         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
38490         and similarly for the other external symbols.  Problem reported
38491         by James Gallager.
38492
38493         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
38494         bug reported by Jim Meyering.
38495
38496         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
38497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
38498         not needed, since socklen is a prerequisite module.
38499
38500 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
38501
38502         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
38503         Problem reported by Eric Blake.
38504         (getaddrinfo): Initialize se so that it's not garbage.
38505         Redo internal storage allocation so that it doesn't make unportable
38506         assumptions about alignment.
38507         Fix a memory leak.
38508
38509         * lib/utimens.c (futimens): Use futimesat if available.
38510         Prefer it to futimes since it doesn't have the futimes bug.
38511
38512         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
38513         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
38514         Instead, declare a function that returns a pointer to an array,
38515         and use verify_type__ to declare the size of the array.
38516         Problem and germ of a solution reported by Bruno Haible.
38517         (verify_type__): Use 2, not 1, for bitfield size, to avoid
38518         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
38519
38520 2005-09-23  Jim Meyering  <jim@meyering.net>
38521
38522         Sync from coreutils.
38523         Correct build failure (socklen_t not defined) on at least
38524         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
38525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
38526
38527 2005-09-23  Jim Meyering  <jim@meyering.net>
38528
38529         * modules/getaddrinfo (Depends-on): Add socklen.
38530
38531 2005-09-23  Bruno Haible  <bruno@clisp.org>
38532
38533         * tests/test-verify.c: New file.
38534
38535 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38536
38537         Sync from coreutils.
38538
38539         * modules/argmatch (Depends-on): Add verify.
38540         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
38541         unistd-safer.
38542         * modules/save-cwd (Depends-on): Likewise.
38543
38544         * modules/openat (Files): Add lib/openat-die.c.
38545         (Depends-on): Remove error, exitfail.
38546         Add dirname.
38547
38548         * modules/verify: New file.
38549         * MODULES.html.sh (Diagnostics <assert.h>): New section,
38550         with "verify" module.
38551
38552 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38553
38554         Sync from coreutils.
38555
38556         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
38557         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
38558         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
38559         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
38560         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
38561         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
38562         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
38563         Don't bother checking for string.h, stdlib.h, unistd.h.
38564         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
38565         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
38566         module's job.
38567         * m4/jm-macros.m4 (gl_MACROS): Likewise.
38568         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
38569
38570         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
38571         (gl_GETDATE): Use it.
38572
38573         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
38574
38575 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38576
38577         Sync from coreutils.
38578
38579         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
38580         stat-time.h.
38581         * lib/argmatch.h: Include verify.h
38582         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
38583         (ARGMATCH_ASSERT): Remove; unused.
38584         * lib/canonicalize.c: Assume STDC_HEADERS.
38585         * lib/exclude.c: Include "strcase.h".
38586         * lib/regex_internal.h [!defined _LIBC]: Likewise.
38587         * lib/getusershell.c: Include stdio--.h rather than stdio.h
38588         and stdio-safer.h.
38589         (getusershell): Call fopen, not fopen_safer.
38590         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
38591         Do not include unistd-safer.h.
38592         (save_cwd): Don't call fd_safer; no longer needed
38593         now that we include fcntl--.h.
38594
38595         * lib/getdate.y (relative_time): New type.
38596         (RELATIVE_TIME_0): New constant.
38597         (parser_control): Use relative_time instead of doing it ourselves.
38598         (%union): Add new relative_time rel member.
38599         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
38600         Now typeless.
38601         (relunit, relunit_snumber): Now of type rel.
38602         (zone, rel, relunit, get_date): Adjust to above changes.
38603
38604         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
38605         Do not include unistd-safer.h.
38606         (getloadavg): Don't call fd_safer; no longer needed
38607         now that we include fcntl--.h.
38608
38609         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
38610         (make_dir_parents): Treat ENOSYS like EEXIST.
38611
38612         Improve quality of diagnostics on restore_cwd failure.
38613         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
38614         (make_dir_parents): Last arg is now int * (for errno), not bool *.
38615         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
38616         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
38617         each time through the loop.  Do not diagnose restore_cwd failure;
38618         that is the caller's job (and perhaps the caller does not care).
38619
38620         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
38621         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
38622         If the file already exists but is not a directory, don't bother
38623         to try to make its parents.
38624         Close potential file descriptor leak if we can't chdir("/") (!).
38625         Don't always return true if chdir($PWD) fails; return true only
38626         if the requested action was done successfully (except for the
38627         chdir($PWD)).
38628         Don't log final directory unless we actually made it.
38629         Refactor to avoid duplicate code to fix up permissions.
38630         Don't attempt to fix up parent permissions if chdir($PWD) fails.
38631
38632         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
38633         to make it a bit faster and (I hope) clearer.
38634         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
38635         Fix bug in formats like %2N.
38636
38637         * lib/verify.h: New file.
38638
38639 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38640
38641         Sync from coreutils.
38642         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
38643
38644 2005-09-22  Jim Meyering  <jim@meyering.net>
38645
38646         Sync from coreutils.
38647
38648         * m4/lstat.m4 (gl_FUNC_LSTAT):
38649         Use AC_LIBSOURCES to require lstat.c and lstat.h.
38650         Remove obsolete comment.
38651         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
38652         * m4/xstrtod.m4: Likewise.
38653
38654         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
38655
38656 2005-09-22  Jim Meyering  <jim@meyering.net>
38657
38658         Sync from coreutils.
38659
38660         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
38661
38662         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
38663         the .tm_year member, since otherwise gcc-4.0 would now warn about
38664         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
38665
38666         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
38667         order to avoid an unsuppressible warning from gcc on 64-bit systems.
38668
38669         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
38670         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
38671         when run in a time zone for which daylight savings time is in effect
38672         for the starting date.
38673
38674         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
38675         stop us from restricting permissions of just-created absolute-named
38676         directories.
38677         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
38678         to restore initial working directory.
38679         * lib/mkdir-p.c (make_dir_parents): New parameter:
38680         different_working_dir, to tell caller if/when we change the working
38681         directory and are unable to return to the initial one.
38682         * lib/mkdir-p.h (make_dir_parents): Update prototype.
38683         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
38684         `return false'.  This fixes a bug introduced on 2004-07-30.
38685
38686         * lib/openat.c (fdopendir): Be sure to close the supplied
38687         file descriptor before returning.  This makes our replacement
38688         implementation a little closer to Solaris's, where fdopendir
38689         ties the file descriptor to the returned DIR* pointer.
38690         * lib/openat.c (unlinkat): New function.
38691         * lib/openat.h (unlinkat): Add prototype.
38692         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
38693         (openat_restore_fail): Rename from openat_restore_die.
38694         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
38695
38696         Provide an alternative to exiting immediately upon save_cwd or
38697         restore_cwd failure.  Now, an application can arrange e.g.,
38698         to perform a longjump in that case.
38699         * lib/openat.c: Include dirname.h.
38700         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
38701         (rpl_openat, fdopendir, fstatat): Call openat_save_die
38702         and openat_restore_die rather than calling error directly.
38703         Don't include "error.h" or "exitfail.h"; they're no longer needed.
38704
38705         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
38706         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
38707         define.
38708
38709         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
38710         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
38711                             int utc, int nanoseconds);
38712         Background:
38713         date should not have to allocate a megabyte of virtual memory to
38714         handle a format argument like +%1048575T.  When implemented with
38715         strftime, it must allocate such a buffer, use strftime to fill it
38716         in, print it, then free it.
38717         With fprintftime, it simply prints everything and exits.
38718         With no need for memory allocation, that's one fewer way to fail.
38719         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
38720         optional field width, not before, so we accept %9:z, not %:9z.
38721         (my_strftime): Be sure to use L_('x') for literals.
38722
38723         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
38724         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
38725         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
38726         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
38727         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
38728         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
38729         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
38730         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
38731         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
38732         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
38733         * lib/xgethostname.c, lib/xreadlink.c:
38734         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
38735
38736         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
38737         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
38738         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
38739         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
38740         and don't include <sys/file.h>).
38741
38742 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
38743
38744         Sync from coreutils.
38745
38746         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
38747         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
38748         [!LDAV_DONE]: Avoid unused variable warning.
38749
38750 2005-09-21  Bruno Haible  <bruno@clisp.org>
38751
38752         * lib/unicodeio.h (unicode_to_mb): New declaration.
38753
38754 2005-09-20  Derek Price  <derek@ximbiot.com>
38755
38756         * lib/getaddrinfo.c: Don't include <netdb.h> included from
38757         getaddrinfo.h.
38758
38759 2005-09-20  Bruno Haible  <bruno@clisp.org>
38760
38761         * gnulib-tool: Remove trailing slashes from the values specified for
38762         --source-base, --m4-base, --tests-base, --aux-dir.
38763         Suggested by Simon Josefsson <jas@extundo.com>.
38764
38765 2005-09-20  Bruno Haible  <bruno@clisp.org>
38766
38767         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
38768         func_modules_to_filelist, func_import, func_create_testdir): Make all
38769         sorting results locale-independent, so that gnulib-cache.m4 doesn't
38770         change when gnulib-tool is invoked in a different locale.
38771
38772 2005-09-19  Simon Josefsson  <jas@extundo.com>
38773
38774         * m4/socklen.m4: Fix typo.
38775
38776 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38777
38778         Use a consistent style for including <config.h>.
38779         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
38780         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
38781         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
38782         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
38783         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
38784         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
38785         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
38786         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
38787         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
38788         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
38789         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
38790         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
38791         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
38792         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
38793         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
38794         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
38795         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
38796         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
38797         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
38798         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
38799         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
38800         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
38801         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
38802         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
38803         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
38804         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
38805         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
38806         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
38807         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
38808         lib/xstrtoumax.c, lib/yesno.c:
38809         Standardize inclusion of config.h.
38810         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
38811         lib/inttostr.h:  Removed inclusion of config.h from header files.
38812         * lib/inttostr.c:  Adjusted in-tree users.
38813         * lib/timespec.h: Remove superfluous warning to include config.h.
38814         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
38815         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
38816         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
38817         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
38818         config.h with HAVE_CONFIG_H.
38819
38820 2005-09-19  Jim Meyering  <jim@meyering.net>
38821
38822         * modules/pathmax (License): Change to LGPL.
38823
38824 2005-09-19  Derek Price  <derek@ximbiot.com>
38825
38826         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
38827
38828 2005-09-19  Bruno Haible  <bruno@clisp.org>
38829
38830         * gnulib-tool (import): Provide default for --tests-base.
38831
38832 2005-09-19  Bruno Haible  <bruno@clisp.org>
38833
38834         * doc/quote.texi: New file, extracted from gnulib.texi.
38835         * doc/ctime.texi: New file, extracted from gnulib.texi.
38836         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
38837         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
38838         * doc/gnulib.texi: Include them.
38839
38840 2005-09-18  Bruno Haible  <bruno@clisp.org>
38841
38842         Portability fix.
38843         * gnulib-tool (func_readlink): New function.
38844         (func_ln_if_changed): Use it.
38845
38846 2005-09-18  Bruno Haible  <bruno@clisp.org>
38847
38848         * gnulib-tool: Support --with-tests also with --import.
38849         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
38850         (func_import): Use variables $testsbase and $inctests. Emit a
38851         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
38852         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
38853         SUBDIRS += $testsdir.
38854         (func_create_testdir): Update.
38855
38856 2005-09-18  Bruno Haible  <bruno@clisp.org>
38857
38858         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
38859         instead of $dry_run.
38860         (func_cp_if_changed, func_mv_if_changed): Remove functions.
38861         (func_ln_if_changed): Don't handle dry-run here.
38862         (func_import): In dry-run mode, detect more precisely which actions
38863         would be performed, and don't use "...ing" verbs.
38864
38865 2005-09-18  Bruno Haible  <bruno@clisp.org>
38866
38867         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
38868         (func_import): Use join on two temporary files instead of three nested
38869         loops, in order to determine which files are new or old.
38870
38871 2005-09-18  Bruno Haible  <bruno@clisp.org>
38872
38873         * gnulib-tool (func_import): Comment out code that spits out the
38874         new files with --dry-run.
38875
38876 2005-09-18  Bruno Haible  <bruno@clisp.org>
38877
38878         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
38879
38880 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38881
38882         * lib/stat-time.h: New file.
38883         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
38884         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
38885         in a different way.
38886         (timespec_cmp): New function.
38887         * lib/utimecmp.c: Include stat-time.h.
38888         (SYSCALL_RESOLUTION): Depend on whether various struct stat
38889         members exist, not on the obsolescent ST_MTIM_NSEC.
38890         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
38891
38892 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38893
38894         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
38895
38896 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38897
38898         * MODULES.html.sh (File system functions): Add stat-time.
38899         * modules/stat-time: New file.
38900         * modules/timespec (Files): Remove m4/st_mtim.m4; this
38901         is now done in a different way, by the stat-time module.
38902         * modules/utimecmp (Depends-on): Add stat-time.
38903
38904 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
38905
38906         * m4/st_mtim.m4: Remove.  Superseded by...
38907         * m4/stat-time.m4: New file.
38908         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
38909         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
38910
38911 2005-09-15  Derek Price  <derek@ximbiot.com>
38912
38913         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
38914
38915 2005-09-15  Derek Price  <derek@ximbiot.com>
38916
38917         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
38918         * lib/regex_internal.c: Ditto, using this...
38919         (__GNUC_PREREQ): ...new macro.
38920         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
38921         using...
38922         (__GNUC_PREREQ): ...this new macro.
38923
38924         * lib/strstr.h: Include string.h. Define strstr as a macro here.
38925
38926 2005-09-15  Derek Price  <derek@ximbiot.com>
38927             Paul Eggert  <eggert@cs.ucla.edu>
38928
38929         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
38930         changes, consolidating in...
38931         * lib/regex_internal.h: ...this file.
38932
38933 2005-09-13  Jim Meyering  <jim@meyering.net>
38934
38935         * lib/canon-host.c: Filter through gnu indent and reword comments
38936         slightly.
38937         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
38938
38939 2005-09-13  Derek Price  <derek@ximbiot.com>
38940
38941         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
38942         failure.
38943         Reported by Jim Meyering  <jim@meyering.net>.
38944
38945 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
38946
38947         * lib/base64.c: Typo.
38948         (base64_encode): Put b64str in initialized data section.
38949
38950 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
38951
38952         Merge glibc and coreutils changes into gnulib, plus a few
38953         extra fixes.
38954         * lib/md5.c: Use #error rather than a string.
38955         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
38956         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
38957         (__attribute__): Define to empty for non recent-GCC.
38958         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
38959         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
38960         Renamed from their non-__ counterparts, with new macros replacing
38961         them if not _LIBC.  Add __THROW attribute.
38962         (rol): Remove.
38963         (struct md5_ctx): Align buffer if using GCC.
38964         * lib/sha1.h (struct sha1_ctx): Likewise.
38965         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
38966         The old name was backwards.
38967         (NOTSWAP): Remove; not used.
38968         (rol): New macro, moved here from md5.h.
38969         (sha1_process_block): Remove a FIXME that doesn't make sense.
38970
38971 2005-09-12  Derek Price  <derek@ximbiot.com>
38972
38973         Return usable errors from canon-host.
38974         * lib/canon-host.h: New file.
38975         * lib/canon-host.c (canon_host): Wrap...
38976         (canon_host_r): ...this new function, which now relies exclusively on
38977         getaddrinfo.
38978         (ch_strerror): New function.
38979         (last_cherror): New global.
38980         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
38981         interface.
38982         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
38983         void *.
38984         (freeaddrinfo): Free ai->ai_canonname when set.
38985
38986 2005-09-12  Derek Price  <derek@ximbiot.com>
38987
38988         Make canon-host require getaddrinfo.
38989         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
38990         AC_LIBSOURCE canon-host.h.  Call...
38991         (gl_PREREQ_CANON_HOST): ...this new function, which requires
38992         gl_GETADDRINFO.
38993         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
38994
38995 2005-09-12  Derek Price  <derek@ximbiot.com>
38996
38997         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
38998         LGPL.
38999         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
39000
39001 2005-09-12  Derek Price  <derek@ximbiot.com>
39002
39003         * lib/gai_strerror.c: Include config.h when available.  Include
39004         getaddrinfo.h before other headers to test interface.
39005         Reported by Larry Jones <lawrence.jones@ugs.com>.
39006
39007 2005-09-12  Derek Price  <derek@ximbiot.com>
39008             Paul Eggert  <eggert@cs.ucla.edu>
39009
39010         * modules/glob (Files): Add glob-libc.h.
39011
39012 2005-09-12  Derek Price  <derek@ximbiot.com>
39013             Paul Eggert  <eggert@cs.ucla.edu>
39014
39015         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
39016         glob_.h, glob-libc.h.
39017         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
39018
39019 2005-09-12  Derek Price  <derek@ximbiot.com>
39020             Paul Eggert  <eggert@cs.ucla.edu>
39021
39022         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
39023         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
39024         protecting things that should be done only in gnulib contexts.
39025         * lib/glob_.h: New file, containing only the glob things needed for
39026         gnulib.
39027         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
39028         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
39029         (glob, globfree, glob_pattern_p): Now defined simply in terms of
39030         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
39031         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
39032         and to respect the namespace rules better.
39033
39034 2005-09-08  Simon Josefsson  <jas@extundo.com>
39035
39036         * modules/socklen: New file.
39037
39038 2005-09-08  Simon Josefsson  <jas@extundo.com>
39039
39040         * m4/socklen.m4: New file.
39041
39042 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39043
39044         * modules/utimens (Files): Add m4/utimbuf.m4, since
39045         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
39046         Reported by Sergey Poznyakoff.
39047
39048 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39049
39050         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
39051         definitions, since that's the preferred style in glibc.
39052         Fix a minor spacing issue, and update copyright notice to match
39053         glibc's.
39054
39055 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39056
39057         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
39058
39059 2005-09-06  Simon Josefsson  <jas@extundo.com>
39060
39061         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
39062         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
39063
39064 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39065
39066         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
39067         warning.
39068
39069 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39070
39071         * config/srclist.txt: Add glibc bug 1302.
39072
39073 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
39074
39075         Change bitset word type from unsigned int to unsigned long int,
39076         as this has better performance on typical 64-bit hosts.
39077         Port bitset code to hosts with unusual word sizes.
39078         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
39079         (build_collating_symbol):
39080         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
39081         argument is a bitset.  This is merely a style issue, but it makes
39082         it clearer that an entire array is expected.
39083         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
39084         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
39085         Port to the case where bitset_word is not the same as unsigned int.
39086         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39087         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
39088         Likewise.
39089         * lib/regexec.c (check_dst_limits_calc_pos_1,
39090         check_subexp_matching_top):
39091         (build_trtable, group_nodes_into_DFAstates):
39092         Likewise.
39093         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
39094         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
39095         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
39096         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
39097         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
39098         * lib/regcomp.c (optimize_subexps, lower_subexp):
39099         Work even if bitset_word has holes in its bitwise representation.
39100         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
39101         * lib/regexec.c (check_dst_limits_calc_pos_1,
39102         check_subexp_matching_top):
39103         Likewise.
39104         * lib/regex_internal.c (re_string_reconstruct):
39105         Don't assume UCHAR_MAX == 255.
39106         * lib/regex_internal.h (bitset_set_all): Likewise.
39107         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
39108         All uses changed.
39109         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
39110         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
39111         All uses changed.
39112         (BITSET_WORD_MAX): New macro.
39113         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
39114         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
39115         (bitset_empty, bitset_copy):
39116         Prefer sizeof (bitset) to multiplying it out ourselves.
39117         (bitset_not_merge): Remove; unused.
39118         (bitset_contain): Return bool, not unsigned int with one bit on.
39119         All callers changed.
39120         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
39121         alignment than re_node_set; do this by defining a new internal
39122         type struct dests_alloc and using it to allocate memory.
39123
39124 2005-09-05  Bruno Haible  <bruno@clisp.org>
39125
39126         * gnulib-tool (func_import): Fix comparison in handling of symbolic
39127         links.
39128
39129 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
39130
39131         * modules/size_max (Makefile.am): Add size_max.h
39132
39133 2005-09-04  Derek Price  <derek@ximbiot.com>
39134
39135         * gnulib-tool (func_import): Fix reversed $symbolic logic.
39136
39137 2005-09-03  Simon Josefsson  <jas@extundo.com>
39138
39139         * gnulib-tool: Fix typo.
39140
39141 2005-09-03  Simon Josefsson  <jas@extundo.com>
39142
39143         * config/srclist.txt: Add glibc bug 1293.
39144
39145 2005-09-03  Derek Price  <derek@ximbiot.com>
39146
39147         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
39148         From Larry Jones <lawrence.jones@ugs.com>.
39149
39150 2005-09-02  Simon Josefsson  <jas@extundo.com>
39151
39152         * modules/socklen: New file.
39153
39154 2005-09-02  Simon Josefsson  <jas@extundo.com>
39155
39156         * modules/havelib: New module.
39157
39158         * modules/gettext, modules/iconv, modules/lock, modules/readline:
39159         Use havelib.
39160
39161 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39162
39163         Check for arithmetic overflow when calculating sizes, to prevent
39164         some buffer-overflow issues.  These patches are conservative, in the
39165         sense that when I couldn't determine whether an overflow was possible,
39166         I inserted a run-time check.
39167         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
39168         macros.
39169         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
39170         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
39171         (re_xnrealloc, re_x2nrealloc): New inline functions.
39172         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
39173         parse_bracket_exp):
39174         (build_equiv_class, build_charclass): Check for arithmetic overflow
39175         in size expression calculations.
39176         * lib/regex_internal.c (re_string_realloc_buffers):
39177         (build_wcs_upper_buffer, re_node_set_add_intersect):
39178         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
39179         (re_dfa_add_node, register_state): Likewise.
39180         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
39181         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
39182         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
39183         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
39184
39185 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39186
39187         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
39188         m4/ulonglong.m4.  Problem reported by Martin Lambers.
39189
39190 2005-09-02  Bruno Haible  <bruno@clisp.org>
39191
39192         Support for lib vs. lib64 distinction on biarch platforms.
39193         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
39194         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
39195         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
39196
39197 2005-09-02  Bruno Haible  <bruno@clisp.org>
39198
39199         * gnulib-tool (import): In the other first-use case, provide defaults
39200         as well.
39201
39202 2005-09-02  Bruno Haible  <bruno@clisp.org>
39203
39204         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
39205         patches not yet found in the latest gettext release.
39206
39207 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39208
39209         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
39210         to avoid a collision with bits/local_lim.h in glibc.
39211         All uses changed.  Problem reported by Dmitry V. Levin in
39212         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
39213
39214         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
39215         bugs in int versus size_t comparisons.
39216         (re_string_context_at): Fix bug where the code assumed that
39217         Idx is signed.
39218
39219         Use bool where appropriate.
39220         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
39221         All callers changed.
39222         (calc_eclosure_iter): Likewise, for ROOT arg.
39223         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
39224         (build_charclass_op): Likewise, for NON_MATCH arg.
39225         * lib/regex_internal.c (re_string_allocate, re_string_construct):
39226         (re_string_construct_common): Likewise, for ICASE arg.
39227         * lib/regexec.c (re_search_2_stub, re_search_stub):
39228         Likewise, for RET_LEN arg.
39229         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
39230         (set_regs): Likewise, for FL_BACKTRACK arg.
39231         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
39232         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
39233         (calc_eclosure_iter, parse_bracket_exp):
39234         Use bool for internal variables that are booleans.
39235         * lib/regexec.c (re_search_internal, check_matching,
39236         proceed_next_node):
39237         (set_regs, build_sifted_states, sift_states_bkref):
39238         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
39239         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39240         (find_collation_sequence_value):
39241         Likewise.
39242         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
39243         (re_node_set_compare):
39244         Return bool, not int. All callers changed.
39245         * lib/regexec.c (check_halt_node_context, check_dst_limits):
39246         (build_trtable, check_node_accept): Likewise.
39247         * lib/regex_internal.h: Include stdbool.h.
39248
39249         Fix bugs uncovered when converting to bool.
39250         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
39251         failure instead of charging ahead blindly.
39252         * lib/regex_internal.c (register_state): Likewise.
39253         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
39254         for freeing internal storage.
39255         (group_nodes_into_DFA_states): Use unsigned int, not int, for
39256         bitset pieces used as boolean, to avoid undefined behavior
39257         on hosts that do int overflow checking.
39258
39259 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39260
39261         * config/srclist.txt: Add glibc bugs 1285-1287.
39262
39263 2005-09-01  Jim Meyering  <jim@meyering.net>
39264
39265         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
39266         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
39267         Require gl_STAT_MACROS, too.
39268
39269 2005-09-01  Bruno Haible  <bruno@clisp.org>
39270
39271         * gnulib-tool (import): In the first-use case, provide defaults.
39272
39273 2005-09-01  Bruno Haible  <bruno@clisp.org>
39274
39275         * gnulib-tool (func_import): Remove the .tmp files.
39276
39277 2005-09-01  Bruno Haible  <bruno@clisp.org>
39278
39279         * gnulib-tool (func_import): Fix handling of symbolic links.
39280
39281 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39282
39283         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
39284         old glibc regex code mishandles strings longer than 2**31 bytes.
39285         This patch fixes this when the regex code is used in gnulib
39286         (i.e., outside glibc).
39287
39288         This patch should not affect the use of the regex code inside
39289         glibc.  No doubt this problem also needs to be handled for glibc
39290         as well, but the result will be an incompatible change to the
39291         glibc ABI, and the old ABI will have to be supported too.  That
39292         can be the the subject for another patch.
39293
39294         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
39295         governing whether the rest of this patch is active.  By default,
39296         the macro is disabled and the patch has no effect.
39297         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
39298         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
39299         (struct re_pattern_buffer, re_search, re_search_2, re_match):
39300         (re_match_2, re_set_registers): Use the new types.
39301         * lib/regex_internal.h (Idx, re_hashval_t): New types.
39302         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
39303         New macros.
39304         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
39305         (re_string_context_at, bin_tree_t, re_dfastate_t):
39306         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
39307         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
39308         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
39309         (re_string_char_size_at, re_string_wchar_at):
39310         (re_string_elem_size_at):
39311         Use the new types and macros to port to 64-bit hosts.
39312         Use unsigned types for internal values, so that the code
39313         mostly works even for arrays larger than SSIZE_MAX.
39314         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
39315         (search_duplicated_node, calc_eclosure_iter, fetch_number):
39316         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39317         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
39318         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
39319         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
39320         (calc_inveclosure, parse_dup_op, build_range_exp):
39321         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
39322         (fetch_number, create_token_tree, mark_opt_subexp):
39323         Likewise.
39324         * lib/regex_internal.c (re_string_construct_common,
39325         create_ci_newstate):
39326         (create_cd_newstate, re_string_allocate, re_string_construct):
39327         (re_string_realloc_buffers, build_wcs_upper_buffer):
39328         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39329         (re_string_reconstruct, re_string_peek_byte_case):
39330         (re_string_fetch_byte_case, re_string_context_at):
39331         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39332         (re_node_set_init_copy, re_node_set_add_intersect):
39333         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39334         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39335         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39336         (re_acquire_state, re_acquire_state_context, register_state):
39337         Likewise.
39338         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
39339         search_cur_bkref_entry):
39340         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
39341         (re_search_internal, re_search_2_stub, re_search_stub)
39342         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
39343         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
39344         (update_cur_sifted_state, check_dst_limits):
39345         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39346         (check_subexp_limits, sift_states_bkref, merge_state_array):
39347         (check_subexp_matching_top, get_subexp, get_subexp_sub):
39348         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
39349         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39350         (expand_bkref_cache, check_node_accept_bytes):
39351         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
39352         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
39353         (acquire_init_state_context, check_halt_node_context):
39354         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
39355         (sift_states_backward, clean_state_log_if_needed):
39356         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
39357         (find_recover_state, transit_state_sb, transit_state_mb):
39358         (transit_state_bkref, build_trtable, match_ctx_clean):
39359         Likewise.
39360         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
39361         to work around an assumption that REG_MISSING is negative.
39362
39363         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
39364         (seek_collating_symbol_entry) [defined _LIBC]:
39365         (lookup_collation_sequence_value) [defined _LIBC]:
39366         (build_range_exp, build_collating_symbol) [defined _LIBC]:
39367         Use prototypes rather than old-style function definitions.
39368         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
39369         (transit_state_sb) [0]:
39370         (find_collation_sequence_value) [defined _LIBC]: Likewise.
39371
39372         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
39373         rm_eo.
39374
39375         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
39376         (optimize_subexps, lower_subexp):
39377         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
39378         since the signed shift might overflow.  Use 1u<<31 instead.
39379         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39380         Likewise.
39381         * lib/regexec.c (check_dst_limits_calc_pos_1,
39382         check_subexp_matching_top): Likewise.
39383
39384         * lib/regcomp.c (optimize_subexps, lower_subexp):
39385         Use CHAR_BIT rather than 8, for clarity.
39386         * lib/regexec.c (check_dst_limits_calc_pos_1):
39387         (check_subexp_matching_top): Likewise.
39388         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
39389         have to worry about portability issues when shifting it left.
39390         Remove no-longer-needed test for table_size > 0.
39391         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
39392         in a word, as the resulting behavior is undefined.
39393         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
39394         in one case, a <= should have been an <, and in another case the
39395         whole test was missing.
39396         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
39397         the standard name CHAR_BIT.
39398         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
39399         this is not true on one's complement and signed-magnitude hosts.
39400
39401         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
39402         next_last_offset.
39403         (struct re_dfa_t): Remove unused member states_alloc.
39404         * lib/regcomp.c (init_dfa): Don't initialize unused members.
39405
39406 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39407
39408         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
39409         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
39410         and large-file glibc and in 32-bit large-file Solaris.
39411
39412 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39413
39414         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
39415         lengths fit in regoff_t; this isn't true if regoff_t is the same
39416         width as size_t.
39417         * lib/regex.c (re_search_internal): 5th arg is LAST_START
39418         (= START + RANGE) instead of RANGE.  This avoids overflow
39419         problems when regoff_t is the same width as size_t.
39420         All callers changed.
39421         (re_search_2_stub): Check for overflow when adding the
39422         sizes of the two strings.
39423         (re_search_stub): Check for overflow when adding START
39424         to RANGE; if it occurs, substitute the extreme value.
39425
39426 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39427
39428         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
39429
39430 2005-08-31  Jim Meyering  <jim@meyering.net>
39431
39432         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
39433         a pointer-to-const.
39434         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
39435         (register_state): Likewise.
39436         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
39437         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39438         (group_nodes_into_DFAstates): Likewise.
39439
39440 2005-08-31  Jim Meyering  <jim@meyering.net>
39441
39442         * check-module: Add a FIXME comment.
39443
39444 2005-08-31  Eric Blake  <ebb9@byu.net>
39445
39446         * modules/unistd-safer (Files): Add unistd--.h.
39447         * modules/stdio-safer (Files): Add stdio--.h.
39448
39449 2005-08-31  Derek Price  <derek@ximbiot.com>
39450
39451         * lib/getdelim.c (getdelim): Return EOF on EOF.
39452         Reported by Larry Jones <lawrence.jones@ugs.com>.
39453
39454 2005-08-31  Bruno Haible  <bruno@clisp.org>
39455
39456         Avoid unnecessary diffs in the generated lib/Makefile.am.
39457         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
39458         the generated files.
39459         (func_import): Don't set cmd.
39460
39461 2005-08-31  Bruno Haible  <bruno@clisp.org>
39462
39463         * lib/strstr.c: Include <stddef.h>, for NULL.
39464         * lib/strcasestr.c: Likewise.
39465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39466
39467 2005-08-31  Bruno Haible  <bruno@clisp.org>
39468
39469         * gnulib-tool: New option --macro-prefix.
39470         (func_import): Use macro_prefix.
39471         (import): Handle option --macro-prefix.
39472
39473 2005-08-31  Bruno Haible  <bruno@clisp.org>
39474
39475         * gnulib-tool (import): Rename most ac_* variables to cached_*.
39476         Also use new variables cached_lgpl, cached_libtool.
39477
39478 2005-08-31  Bruno Haible  <bruno@clisp.org>
39479
39480         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
39481         always instantiating them.
39482
39483 2005-08-31  Bruno Haible  <bruno@clisp.org>
39484
39485         * gnulib-tool (func_import): Read the previous cached settings
39486         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
39487         earlier added by gnulib but are now dropped. Warn when a gnulib file
39488         overwrites a non-gnulib file.
39489
39490 2005-08-31  Bruno Haible  <bruno@clisp.org>
39491
39492         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
39493         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
39494         projects that don't keep autogenerated files in CVS. Put into
39495         actioncmd only the specified modules, not the transitive closure.
39496
39497 2005-08-31  Bruno Haible  <bruno@clisp.org>
39498
39499         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
39500         Create directories that shall be filled.
39501         (import): Don't look for gl_* macros in configure.ac. Recurse across
39502         all directories containing a gnulib-cache.m4 files, if meaningful.
39503
39504 2005-08-31  Bruno Haible  <bruno@clisp.org>
39505
39506         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
39507         (import): Set seen_libtool when we see gl_LIBTOOL.
39508
39509 2005-08-31  Bruno Haible  <bruno@clisp.org>
39510
39511         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
39512         declaration macro definitions from generated gnulib.m4.
39513
39514 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
39515
39516         * lib/iconvme.h: Add prototype for iconv_alloc.
39517
39518 2005-08-29  Simon Josefsson  <jas@extundo.com>
39519
39520         * lib/iconvme.c: Fix errno.
39521
39522 2005-08-29  Bruno Haible  <bruno@clisp.org>
39523
39524         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
39525         that it works when the directory contains spaces.
39526
39527 2005-08-29  Bruno Haible  <bruno@clisp.org>
39528
39529         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
39530
39531 2005-08-29  Bruno Haible  <bruno@clisp.org>
39532
39533         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
39534         Emit more advice.
39535
39536 2005-08-29  Bruno Haible  <bruno@clisp.org>
39537         and Stepan Kasal  <kasal@ucw.cz>
39538
39539         * check-module: If more parameters are given, check each of them
39540         separately; add more exceptions, as noted by Jim Meyering.
39541         (check_module): New procedure.
39542         (%exempt_header): Now contains all exceptions.
39543
39544 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
39545
39546         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
39547
39548 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39549
39550         * lib/iconvme.c: Split iconv_string into iconv_alloc.
39551
39552 2005-08-28  Bruno Haible  <bruno@clisp.org>
39553
39554         * m4/gnulib-tool.m4: New file.
39555
39556 2005-08-27  Jim Meyering  <jim@meyering.net>
39557
39558         * modules/unistd-safer (Files): Add pipe-safer.c.
39559         * modules/fcntl-safer (Files): Add creat-safer.c.
39560
39561 2005-08-27  Jim Meyering  <jim@meyering.net>
39562
39563         * m4/stdlib-safer.m4: New file.  From coreutils.
39564         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
39565         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
39566         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
39567         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
39568         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
39569
39570 2005-08-27  Jim Meyering  <jim@meyering.net>
39571
39572         * lib/fopen-safer.c: Merge minor changes from coreutils.
39573         * lib/dup-safer.c: Likewise.
39574         * lib/fd-safer.c: Likewise.
39575
39576         Merge from coreutils.
39577         * lib/stdio--.h: New file.
39578         * lib/stdlib--.h: New file.
39579         * lib/mkstemp-safer.c: New file.
39580
39581         GNU tar needs these.
39582         * lib/pipe-safer.c: New file.
39583         * lib/creat-safer.c: New file.
39584         * lib/fcntl--.h (creat): Define to creat_safer.
39585         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
39586         * lib/unistd--.h (pipe): Define to pipe_safer.
39587         * lib/unistd-safer.h: Declare pipe_safer.
39588
39589 2005-08-26  Simon Josefsson  <jas@extundo.com>
39590
39591         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
39592         Haible <bruno@clisp.org>.
39593
39594 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
39595
39596         * lib/regex_internal.h: Remove all references to
39597         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
39598         or better.
39599         (bitset_not, bitset_merge, bitset_not_merge):
39600         (bitset_mask, re_string_allocate, re_string_construct):
39601         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
39602         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
39603         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
39604         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
39605         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39606         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39607         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
39608         (re_acquire_state_context):
39609         Remove unnecessary forward decls.
39610         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
39611         Put __attribute at function definition,
39612         now that the function decl has been removed.
39613         * lib/regex_internal.c (re_string_peek_byte_case):
39614         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
39615         Likewise.
39616
39617 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
39618
39619         * m4/regex.m4: Add AC_PREREQ(2.50).
39620         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
39621
39622 2005-08-25  Simon Josefsson  <jas@extundo.com>
39623
39624         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
39625         __fsetlocking.
39626
39627 2005-08-25  Simon Josefsson  <jas@extundo.com>
39628
39629         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
39630         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
39631         GLIBC specific code.
39632
39633 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39634
39635         Make regex safe for g++.  This fixes one real bug (an "err"
39636         that should have been "*err").  g++ problem reported by
39637         Sam Steingold.
39638         * lib/regex_internal.h (re_calloc): New macro, consistent with
39639         re_malloc etc.  All callers of calloc changed to use re_calloc.
39640         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
39641         not int.  All callers changed.
39642         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
39643         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
39644         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
39645         (find_recover_state): Change "err" to "*err"; this fixes what
39646         appears to be a real bug.
39647         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
39648         versus int.
39649
39650 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39651
39652         * modules/regex (Depends-on): Add malloc, since the code
39653         assumes that !malloc(0) means failure.
39654
39655 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39656
39657         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
39658
39659         alloca modernization/simplification for regex.
39660         * lib/regex.c: Remove portability cruft for alloca.  This no longer
39661         needs to be at the start of the file, and can be moved into
39662         regex_internal.h and simplified.
39663         * lib/regex_internal.h: Include <alloca.h>.
39664         (__libc_use_alloca) [!defined _LIBC]: New macro.
39665         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
39666         now works outside glibc.
39667
39668 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39669
39670         * config/srclist.txt: Add glibc bugs 1241, 1245.
39671
39672 2005-08-25  Jim Meyering  <jim@meyering.net>
39673
39674         * lib/open-safer.c: Include <config.h>.
39675         Otherwise, we'd lose LARGEFILE support in any file using
39676         e.g. "fcntl--.h"
39677
39678 2005-08-25  Bruno Haible  <bruno@clisp.org>
39679
39680         * m4/minmax.m4: Require autoconf 2.52.
39681         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
39682         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
39683         alternatives of translit over the alphabet.
39684         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
39685
39686 2005-08-24  Simon Josefsson  <jas@extundo.com>
39687
39688         * tests/test-getpass.c: New file.
39689
39690 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39691
39692         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
39693         for GNU regex features.
39694
39695 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39696
39697         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
39698         * lib/regex.h (regerror): Likewise.
39699
39700         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
39701         requires this.  (The code never needed it.)
39702
39703         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
39704         All uses of recently-renamed identifiers changed to use the new,
39705         POSIX-compliant names.  The code will build and run just fine
39706         without these changes, but it's better to eat our own dog food
39707         and use the standard-conforming names.
39708
39709         * lib/regex.h: Fix a multitude of POSIX name space violations.
39710         These changes have an effect only for programs that define
39711         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
39712         do not change anything for programs compiled in the normal way.
39713         Also, there is no effect on the ABI.
39714
39715         (_REGEX_SOURCE): New macro.
39716         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
39717         defined and _GNU_SOURCE is not; this fixes a name space violation.
39718
39719         Rename the following macros to obey POSIX requirements.
39720         The old names are still visible as macros if _REGEX_SOURCE is defined.
39721         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
39722         RE_BACKSLASH_ESCAPE_IN_LISTS.
39723         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
39724         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
39725         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
39726         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
39727         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
39728         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
39729         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
39730         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
39731         (REG_INTERVALS): renamed from RE_INTERVALS.
39732         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
39733         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
39734         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
39735         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
39736         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
39737         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
39738         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
39739         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
39740         RE_UNMATCHED_RIGHT_PAREN_ORD.
39741         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
39742         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
39743         (REG_DEBUG): renamed from RE_DEBUG.
39744         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
39745         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
39746         unusual, since we can't clash with the POSIX REG_ICASE.
39747         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
39748         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
39749         (REG_NO_SUB): renamed from RE_NO_SUB.
39750         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
39751         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
39752         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
39753         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
39754         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
39755         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
39756         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
39757         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
39758         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
39759         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
39760         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
39761         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
39762         RE_SYNTAX_POSIX_MINIMAL_BASIC.
39763         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
39764         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
39765         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
39766         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
39767         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
39768         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
39769         (REG_FIXED): Renamed from REGS_FIXED.
39770         (REG_NREGS): Renamed from RE_NREGS.
39771
39772         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
39773         of other REG_* macros, since POSIX says the user is allowed to
39774         #undef these macros selectively.
39775
39776         (reg_errcode_t): Update comment stating what other tables need
39777         to be consistent.
39778
39779         Rename the following enum values to obey POSIX requirements.
39780         The old names are still visible as macros.
39781         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
39782         is not defined, since GNU is supposed to be a superset of POSIX as
39783         much as possible, and since we want reg_errcode_t to be a signed
39784         type for implementation consistency.
39785         (_REG_NOERROR): Renamed from REG_NOERROR.
39786         (_REG_NOMATCH): Renamed from REG_NOMATCH.
39787         (_REG_BADPAT): Renamed from REG_BADPAT.
39788         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
39789         (_REG_ECTYPE): Renamed from REG_ECTYPE.
39790         (_REG_EESCAPE): Renamed from REG_EESCAPE.
39791         (_REG_ESUBREG): Renamed from REG_ESUBREG.
39792         (_REG_EBRACK): Renamed from REG_EBRACK.
39793         (_REG_EPAREN): Renamed from REG_EPAREN.
39794         (_REG_EBRACE): Renamed from REG_EBRACE.
39795         (_REG_BADBR): Renamed from REG_BADBR.
39796         (_REG_ERANGE): Renamed from REG_ERANGE.
39797         (_REG_ESPACE): Renamed from REG_ESPACE.
39798         (_REG_BADRPT): Renamed from REG_BADRPT.
39799         (_REG_EEND): Renamed from REG_EEND.
39800         (_REG_ESIZE): Renamed from REG_ESIZE.
39801         (_REG_ERPAREN): Renamed from REG_ERPAREN.
39802         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
39803         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
39804         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
39805         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
39806
39807         (_REG_RE_NAME, _REG_RM_NAME): New macros.
39808         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
39809         changed.  But support the old name if the new one is not defined
39810         and if _REGEX_SOURCE.
39811
39812         Change the following member names in struct re_pattern_buffer.
39813         The old names are still supported if !_REGEX_SOURCE.
39814         The new names are always supported, regardless of _REGEX_SOURCE.
39815         (re_buffer): Renamed from buffer.
39816         (re_allocated): Renamed from allocated.
39817         (re_used): Renamed from used.
39818         (re_syntax): Renamed from syntax.
39819         (re_fastmap): Renamed from fastmap.
39820         (re_translate): Renamed from translate.
39821         (re_can_be_null): Renamed from can_be_null.
39822         (re_regs_allocated): Renamed from regs_allocated.
39823         (re_fastmap_accurate): Renamed from fastmap_accurate.
39824         (re_no_sub): Renamed from no_sub.
39825         (re_not_bol): Renamed from not_bol.
39826         (re_not_eol): Renamed from not_eol.
39827         (re_newline_anchor): Renamed from newline_anchor.
39828
39829         Change the following member names in struct re_registers.
39830         The old names are still supported if !_REGEX_SOURCE.
39831         The new names are always supported, regardless of _REGEX_SOURCE.
39832         (rm_num_regs): Renamed from num_regs.
39833         (rm_start): Renamed from start.
39834         (rm_end): Renamed from end.
39835
39836         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
39837         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
39838         Prepend __ to parameter names.
39839
39840         Undo yesterday's changes.
39841
39842 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39843
39844         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
39845         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
39846         lib/regex.c.
39847
39848 2005-08-24  Jim Meyering  <jim@meyering.net>
39849
39850         Sync from coreutils.
39851         * m4/fcntl-safer.m4: New file.
39852
39853         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
39854         and object files for this module.
39855
39856 2005-08-24  Jim Meyering  <jim@meyering.net>
39857
39858         Sync from coreutils.
39859         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
39860
39861 2005-08-24  Jim Meyering  <jim@meyering.net>
39862
39863         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
39864         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
39865
39866 2005-08-24  Jim Meyering  <jim@meyering.net>
39867
39868         * modules/fcntl-safer: New module.
39869         * modules/fts (Depends-on): Add fcntl-safer.
39870         * MODULES.html.sh (File descriptor based Input/Output):
39871         Add fcntl-safer.
39872
39873 2005-08-24  Bruno Haible  <bruno@clisp.org>
39874
39875         Support for unit test modules.
39876         * modules/README: Mention tests modules.
39877         * modules/TEMPLATE-TESTS: New file.
39878         * gnulib-tool: New options --extract-tests-module, --with-tests and
39879         --tests-base (unused for the moment).
39880         (testsbase, inctests): New variables.
39881         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
39882         (func_verify_module): Exclude TEMPLATE-TESTS.
39883         (func_verify_nontests_module, func_verify_tests_module): New functions.
39884         (func_get_dependencies): Add implicit dependency for tests modules.
39885         (func_get_tests_module): New function.
39886         (func_modules_transitive_closure): When --with-tests was specified,
39887         include the unit tests as well, unless explicitly avoided.
39888         (func_emit_lib_Makefile_am): Ignore the tests modules here.
39889         (func_emit_tests_Makefile_am): New function.
39890         (func_create_testdir): When --with-tests was specified, emit a
39891         tests/ directory.
39892         * MODULES.html.sh (Future developments): Update.
39893
39894 2005-08-24  Bruno Haible  <bruno@clisp.org>
39895
39896         * modules/tls-tests: New file.
39897         * tests/test-tls.c: New file, from GNU gettext.
39898
39899 2005-08-24  Bruno Haible  <bruno@clisp.org>
39900
39901         * modules/lock-tests: New file.
39902         * tests/test-lock.c: New file, from GNU gettext.
39903
39904 2005-08-24  Bruno Haible  <bruno@clisp.org>
39905
39906         * lib/lock.h: Add multiple inclusion guard.
39907         * lib/tls.h: Add multiple inclusion guard.
39908
39909 2005-08-24  Bruno Haible  <bruno@clisp.org>
39910
39911         * gnulib-tool: Add support for the --aux-dir option to
39912         --create-testdir, --create-megatestdir, --test, --megatest.
39913         (func_create_testdir, func_create_megatestdir): Optionally emit a
39914         AC_CONFIG_AUX_DIR directive.
39915         (create-testdir, create-megatestdir, test, megatest): Provide a
39916         default value for $auxdir.
39917
39918 2005-08-24  Bruno Haible  <bruno@clisp.org>
39919
39920         * gnulib-tool (import): Use compound statement instead of subshell
39921         where possible.
39922
39923 2005-08-24  Bruno Haible  <bruno@clisp.org>
39924
39925         * gnulib-tool (import): Change --aux-dir default to "build-aux".
39926
39927 2005-08-24  Bruno Haible  <bruno@clisp.org>
39928
39929         * gnulib-tool (func_version): Update.
39930
39931 2005-08-24  Bruno Haible  <bruno@clisp.org>
39932
39933         * gnulib-tool (func_import, func_create_testdir,
39934         func_create_megatestdir): Quote all autoconf macro arguments.
39935
39936 2005-08-24  Bruno Haible  <bruno@clisp.org>
39937
39938         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
39939         option --force, because --force causes the aclocal.m4 of each
39940         subdirectory to be newer than the corresponding config.h.in.
39941
39942 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39943
39944         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
39945         All contents moved to gl_REGEX.
39946         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
39947         assume that it does.
39948
39949 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39950
39951         * lib/regex.h (REG_NOSYS)
39952         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
39953         Define, since POSIX requires it as of 2001.
39954         (_REG_ENOSYS)
39955         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
39956         New private symbol, used to keep the enum signed in all cases.
39957         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
39958         Youngman in
39959         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
39960
39961         * lib/regex_internal.c (re_string_skip_chars, register_state):
39962         (calc_state_hash):
39963         Remove forward decls; no longer needed now that we use prototypes.
39964         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
39965         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
39966         (clean_state_log_if_needed): Likewise.
39967
39968 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39969
39970         * config/srclist.txt: Add glibc bugs 1231-1233.
39971
39972 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39973
39974         Fix problems reported by Sam Steingold in
39975         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
39976         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
39977         assumed that reg_errcode_t is a signed type, which is not
39978         necessarily true if _XOPEN_SOURCE is not defined.
39979         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
39980         since some compilers warn about it otherwise.
39981
39982 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39983
39984         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
39985         (init_word_char, create_initial_state, duplicate_node_closure):
39986         (fetch_token, peek_token_bracket, build_range_exp):
39987         (build_collating_symbol): Remove forward decls; no longer needed
39988         now that we use prototypes.
39989
39990         * lib/regcomp.c:
39991         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
39992         (re_compile_fastmap_iter, regcomp, regerror, regfree):
39993         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
39994         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
39995         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
39996         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
39997         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
39998         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
39999         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
40000         (build_range_exp, build_collating_symbol, parse_bracket_exp):
40001         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
40002         (build_charclass, build_charclass_op, fetch_number, create_tree):
40003         (create_token_tree, mark_opt_subexp, duplicate_tree):
40004         Use prototypes rather than old-style definitions.
40005
40006         * lib/regex_internal.c:
40007         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
40008         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
40009         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40010         (re_string_reconstruct, re_string_peek_byte_case):
40011         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
40012         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40013         (re_node_set_init_copy, re_node_set_add_intersect):
40014         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40015         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40016         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40017         (re_acquire_state, re_acquire_state_context, register_state):
40018         (create_ci_newstate, create_cd_newstate, free_state):
40019         Likewise.
40020         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
40021         re_search_2):
40022         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
40023         (re_search_internal, prune_impossible_nodes):
40024         (acquire_init_state_context, check_matching, static):
40025         (check_halt_node_context, check_halt_state_context, proceed_next_node):
40026         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
40027         (update_regs, sift_states_backward, build_sifted_states):
40028         (clean_state_log_if_needed, merge_state_array):
40029         (update_cur_sifted_state, add_epsilon_src_nodes):
40030         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
40031         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
40032         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
40033         (find_recover_state, check_subexp_matching_top, transit_state_mb):
40034         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
40035         (check_arrival, check_arrival_add_next_nodes):
40036         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40037         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40038         (check_node_accept_bytes, check_node_accept, extend_buffers):
40039         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
40040         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
40041         (sift_ctx_init):
40042         Likewise.
40043
40044         * lib/regex_internal.h:
40045         (re_string_allocate, re_string_construct, re_string_reconstruct):
40046         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
40047         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
40048         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
40049         (re_string_context_at, re_string_peek_byte_case):
40050         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
40051         is defined, since we now use prototypes always.
40052
40053         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
40054         C89 or better.  All uses removed.
40055
40056 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40057
40058         * config/srclist.txt: Add glibc bugs 1220-1227.
40059
40060 2005-08-20  Jim Meyering  <jim@meyering.net>
40061
40062         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
40063         of unused local, dfa.
40064
40065 2005-08-20  Bruno Haible  <bruno@clisp.org>
40066
40067         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
40068
40069 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40070
40071         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
40072         (re_node_set_insert_last, re_dfa_add_node):
40073         Rename local variables to avoid GCC shadowing warnings.
40074
40075 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40076
40077         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
40078         [defined lint]: Suppress bogus uninitialized-variable warnings.
40079
40080         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
40081         and let the caller return REG_ESPACE if out of space.  This
40082         removes an uninitialied-variable warning with GCC 4.0.1, and also
40083         avoids taking the address of a local variable.  All callers
40084         changed.
40085
40086 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40087
40088         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
40089         $LIBCSRC/posix/regexec.c.
40090         Add glibc bug 1217 for regcomp.c.
40091
40092 2005-08-19  Jim Meyering  <jim@meyering.net>
40093
40094         * lib/regexec.c (proceed_next_node): Redo local variables to
40095         avoid GCC shadowing warnings.
40096
40097 2005-08-18  Bruno Haible  <bruno@clisp.org>
40098
40099         * lib/strstr.c (strstr): Fix return value in multibyte case.
40100         * lib/strcasestr.c (strcasestr): Likewise.
40101
40102 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
40105
40106 2005-08-17  Jim Meyering  <jim@meyering.net>
40107
40108         Make the %s format (seconds since the epoch) work for a negative
40109         number and when used with a zero-padded field width, e.g. %015s.
40110
40111         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
40112         label so that it precedes the code to set `digits'.  Otherwise,
40113         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
40114         print `00-22'.  Now, it prints `-0022', as it should.
40115
40116 2005-08-17  Bruno Haible  <bruno@clisp.org>
40117
40118         * modules/strstr (Files): Add m4/mbrtowc.m4.
40119         (Depends-on): Add mbuiter.
40120
40121 2005-08-17  Bruno Haible  <bruno@clisp.org>
40122
40123         * modules/strcasestr: New file.
40124         * MODULES.html.sh (String handling, based on ANSI C 89): Add
40125         strcasestr.
40126
40127 2005-08-17  Bruno Haible  <bruno@clisp.org>
40128
40129         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
40130
40131 2005-08-17  Bruno Haible  <bruno@clisp.org>
40132
40133         * modules/mbuiter: New file.
40134         * MODULES.html.sh (Extended multibyte and wide character utilities):
40135         Add mbuiter.
40136
40137 2005-08-17  Bruno Haible  <bruno@clisp.org>
40138
40139         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
40140         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
40141
40142 2005-08-17  Bruno Haible  <bruno@clisp.org>
40143
40144         * m4/strcasestr.m4: New file.
40145
40146 2005-08-17  Bruno Haible  <bruno@clisp.org>
40147
40148         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
40149         * lib/strstr.c: Completely rewritten, with multibyte locale support.
40150
40151 2005-08-17  Bruno Haible  <bruno@clisp.org>
40152
40153         * lib/strcasestr.h: New file.
40154         * lib/strcasestr.c: New file.
40155
40156 2005-08-17  Bruno Haible  <bruno@clisp.org>
40157
40158         * lib/strcasecmp.c: Use mbuiter.h.
40159
40160 2005-08-17  Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/mbuiter.h: New file.
40163
40164 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40165
40166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
40167         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
40168         and gl_GETOPT are both invoked via different paths (as happens
40169         with GNU tar CVS because it uses both argp and getopt), the former
40170         wins.
40171
40172 2005-08-16  Bruno Haible  <bruno@clisp.org>
40173
40174         * modules/tls: New file.
40175         * MODULES.html.sh (Multithreading): Add tls.
40176
40177 2005-08-16  Bruno Haible  <bruno@clisp.org>
40178
40179         * modules/strnlen1: New file.
40180         * MODULES.html.sh (String handling): Add strnlen1.
40181
40182 2005-08-16  Bruno Haible  <bruno@clisp.org>
40183
40184         * modules/strcase (Files): Add m4/mbrtowc.m4.
40185         (Depends-on): Add strnlen1, mbchar.
40186
40187 2005-08-16  Bruno Haible  <bruno@clisp.org>
40188
40189         * modules/mbiter: New file.
40190         * MODULES.html.sh (Extended multibyte and wide character utilities):
40191         Add mbiter.
40192
40193 2005-08-16  Bruno Haible  <bruno@clisp.org>
40194
40195         * modules/mbfile: New file.
40196         * MODULES.html.sh (Extended multibyte and wide character utilities):
40197         Add mbfile.
40198
40199 2005-08-16  Bruno Haible  <bruno@clisp.org>
40200
40201         * modules/mbchar: New file.
40202         * MODULES.html.sh (Extended multibyte and wide character utilities):
40203         New section.
40204
40205 2005-08-16  Bruno Haible  <bruno@clisp.org>
40206
40207         * m4/tls.m4: New file, from GNU gettext.
40208
40209 2005-08-16  Bruno Haible  <bruno@clisp.org>
40210
40211         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
40212         always.
40213         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
40214
40215 2005-08-16  Bruno Haible  <bruno@clisp.org>
40216
40217         * m4/mbiter.m4: New file.
40218
40219 2005-08-16  Bruno Haible  <bruno@clisp.org>
40220
40221         * m4/mbfile.m4: New file.
40222
40223 2005-08-16  Bruno Haible  <bruno@clisp.org>
40224
40225         * m4/mbchar.m4: New file.
40226
40227 2005-08-16  Bruno Haible  <bruno@clisp.org>
40228
40229         * lib/tls.h: New file, from GNU gettext.
40230         * lib/tls.c: New file, from GNU gettext.
40231
40232 2005-08-16  Bruno Haible  <bruno@clisp.org>
40233
40234         * lib/strnlen1.h: New file.
40235         * lib/strnlen1.c: New file.
40236
40237 2005-08-16  Bruno Haible  <bruno@clisp.org>
40238
40239         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
40240         (mbi_init): Update.
40241         (mbi_avail, mbi_advance): Let the iteration end before the terminating
40242         NUL byte, not after it.
40243
40244 2005-08-16  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/strcase.h (strcasecmp): Add note in comments.
40247         * lib/strncasecmp.c: Use code from strcasecmp.c.
40248         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
40249         (strcasecmp): Work correctly in multibyte locales.
40250
40251 2005-08-16  Bruno Haible  <bruno@clisp.org>
40252
40253         * lib/mbiter.h: New file.
40254
40255 2005-08-16  Bruno Haible  <bruno@clisp.org>
40256
40257         * lib/mbfile.h: New file.
40258
40259 2005-08-16  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/mbchar.h: New file.
40262         * lib/mbchar.c: New file.
40263
40264 2005-08-16  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
40267         the valid ones. Makes the comparison operations transitive:
40268         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
40269         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
40270
40271 2005-08-15  Simon Josefsson  <jas@extundo.com>
40272
40273         * modules/ssize_t (License): Change to 'unlimited'.
40274
40275         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
40276
40277 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40278
40279         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
40280         Add comments for each pending glibc patch.
40281
40282 2005-08-15  Bruno Haible  <bruno@clisp.org>
40283
40284         * lib/regex.h (__restrict_arr): Don't define to __restrict if
40285         __cplusplus is defined.
40286
40287 2005-08-14  Jim Meyering  <jim@meyering.net>
40288
40289         Sync from coreutils.
40290
40291         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
40292         Use the hash-table-based cycle-detection code not just when
40293         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
40294         Reported by James Youngman in
40295         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
40296         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
40297         FTS_TIGHT_CYCLE_CHECK.
40298         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
40299         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
40300         once again.
40301         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
40302         * lib/fts.c (fd_safer): Remove decl.
40303         Include fcntl--.h rather than unistd-safer.h
40304         (fts_safe_changedir): Don't call fd_safer; no longer needed
40305         now that we include fcntl--.h.
40306
40307 2005-08-12  Simon Josefsson  <jas@extundo.com>
40308
40309         * modules/getndelim2: Use ssize_t module.
40310         * modules/getnline: Likewise.
40311         * modules/safe-read: Likewise.
40312         * modules/xreadlink: Likewise.
40313
40314         * modules/ssize_t: New file.
40315
40316 2005-08-12  Simon Josefsson  <jas@extundo.com>
40317
40318         * m4/readline.m4: Look for termcap, curses or ncurses if required.
40319
40320 2005-08-12  Simon Josefsson  <jas@extundo.com>
40321
40322         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40323         ssize_t.
40324
40325 2005-08-12  Simon Josefsson  <jas@extundo.com>
40326
40327         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
40328         readline, getdelim and check_version.
40329         (Support for systems lacking ISO C 99: Sizes of integer types):
40330         Add size_max.
40331
40332 2005-08-12  Bruno Haible  <bruno@clisp.org>
40333
40334         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
40335
40336 2005-08-11  Simon Josefsson  <jas@extundo.com>
40337
40338         * modules/readline: New file.
40339
40340         * modules/strnlen (Files): Add strnlen.h.
40341
40342 2005-08-11  Simon Josefsson  <jas@extundo.com>
40343
40344         * m4/readline.m4: New file.
40345
40346 2005-08-11  Simon Josefsson  <jas@extundo.com>
40347
40348         * lib/readline.h, readline.c: New file.
40349
40350 2005-08-11  Simon Josefsson  <jas@extundo.com>
40351
40352         * doc/gnulib.texi (Initial import, Finishing touches): Mention
40353         gl_AVOID.
40354
40355 2005-08-11  Bruno Haible  <bruno@clisp.org>
40356
40357         * lib/strnlen.h (strnlen): Change parameter name to match comment.
40358
40359 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
40360
40361         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
40362
40363 2005-08-10  Simon Josefsson  <jas@extundo.com>
40364
40365         * tests/test-iconvme.c: New file.
40366
40367 2005-08-10  Simon Josefsson  <jas@extundo.com>
40368
40369         * m4/strnlen.m4: New file.
40370
40371         * m4/strndup.m4: Don't check for strnlen declaration, done in
40372         strnlen.m4.
40373
40374 2005-08-10  Simon Josefsson  <jas@extundo.com>
40375
40376         * lib/strndup.c: Use strnlen.h.
40377
40378         * lib/strnlen.h: New file.
40379
40380 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
40381
40382         * README: Typos.
40383
40384 2005-08-02  Simon Josefsson  <jas@extundo.com>
40385
40386         * modules/readline: New file.
40387
40388 2005-08-02  Simon Josefsson  <jas@extundo.com>
40389
40390         * modules/getdelim: New file.
40391
40392         * modules/getline: Rewrite, don't use getndelim2.
40393
40394 2005-08-02  Simon Josefsson  <jas@extundo.com>
40395
40396         * m4/getline.m4: Separate out getdelim stuff into separate module.
40397
40398         * m4/getdelim.m4: New file.
40399
40400 2005-08-02  Simon Josefsson  <jas@extundo.com>
40401
40402         * lib/getline.h, getline.c: Rewrite.
40403
40404         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
40405
40406 2005-07-31  Bruno Haible  <bruno@clisp.org>
40407
40408         * lib/lock.h (gl_lock_initializer): New macro.
40409         (gl_lock_define_initialized): Use it.
40410         (gl_rwlock_initializer): New macro.
40411         (gl_rwlock_define_initialized): Use it.
40412         (gl_recursive_lock_initializer): New macro.
40413         (gl_recursive_lock_define_initialized): Use it.
40414
40415 2005-07-30  Karl Berry  <karl@gnu.org>
40416
40417         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
40418         Report from Ben Pfaff, regarding getopt.
40419
40420 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
40423         normal way.
40424         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
40425         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
40426         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
40427         (gl_GETOPT): Use the new macros.  Most of the implementation
40428         is moved to the new macros.  This is for programs like Emacs
40429         that don't want all the functionality of gl_GETOPT.
40430
40431 2005-07-26  Bruno Haible  <bruno@clisp.org>
40432
40433         * m4/lock.m4: Update from GNU gettext.
40434
40435 2005-07-26  Bruno Haible  <bruno@clisp.org>
40436
40437         * lib/lock.h: Update from GNU gettext.
40438         * lib/lock.c: Update from GNU gettext.
40439
40440 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
40441
40442         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
40443         obsolescent AC_TRY_RUN.  Include the default includes files, for
40444         'exit'.
40445
40446 2005-07-24  Bruno Haible  <bruno@clisp.org>
40447
40448         * modules/visibility: New file.
40449         * MODULES.html.sh (Misc): Add visibility.
40450
40451 2005-07-24  Bruno Haible  <bruno@clisp.org>
40452
40453         * m4/visibility.m4: New file.
40454
40455 2005-07-24  Bruno Haible  <bruno@clisp.org>
40456
40457         * doc/visibility.texi: New file.
40458
40459 2005-07-22  Bruno Haible  <bruno@clisp.org>
40460
40461         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
40462         $(ALLOCA_H), redundant through BUILT_SOURCES.
40463         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
40464         redundant through BUILT_SOURCES.
40465         * modules/byteswap (Makefile.am): Remove explicit dependency on
40466         $(BYTESWAP_H), redundant through BUILT_SOURCES.
40467         * modules/fnmatch (Makefile.am): Remove explicit dependency on
40468         $(FNMATCH_H), redundant through BUILT_SOURCES.
40469         * modules/getopt (Makefile.am): Remove explicit dependency on
40470         $(GETOPT_H), redundant through BUILT_SOURCES.
40471         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
40472         redundant through BUILT_SOURCES.
40473         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
40474         redundant through BUILT_SOURCES.
40475         * modules/stdbool (Makefile.am): Remove explicit dependency on
40476         $(STDBOOL_H), redundant through BUILT_SOURCES.
40477         * modules/stdint (Makefile.am): Remove explicit dependency on
40478         $(STDINT_H), redundant through BUILT_SOURCES.
40479         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
40480         Remove explicit dependency on $(SYSEXITS_H).
40481         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
40482
40483 2005-07-18  Simon Josefsson  <jas@extundo.com>
40484
40485         * lib/check-version.c (check_version): Accept identical versions too.
40486
40487 2005-07-18  Bruno Haible  <bruno@clisp.org>
40488
40489         * modules/lock: New file.
40490         * MODULES.html.sh (Multithreading): New section.
40491
40492 2005-07-18  Bruno Haible  <bruno@clisp.org>
40493
40494         * m4/lock.m4: New file, from GNU gettext.
40495
40496 2005-07-18  Bruno Haible  <bruno@clisp.org>
40497
40498         * lib/lock.h: New file, from GNU gettext.
40499         * lib/lock.c: New file, from GNU gettext.
40500
40501 2005-07-18  Bruno Haible  <bruno@clisp.org>
40502
40503         * lib/lock.h (gl_once_t): New type.
40504         (gl_once_define, gl_once): New macros.
40505         * lib/lock.c (fresh_once): New variable.
40506         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
40507         functions.
40508
40509 2005-07-16  Simon Josefsson  <jas@extundo.com>
40510
40511         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
40512         workaround, suggested by Bruno.
40513
40514 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40515
40516         * modules/xalloc (Depends-on): Add xalloc-die.
40517         * modules/xvasprintf (Depends-on): Add xalloc-die.
40518
40519 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40520
40521         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
40522         with a minor change.
40523
40524 2005-07-15  Bruno Haible  <bruno@clisp.org>
40525
40526         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
40527         When using lib/poll.c, define poll as rpl_poll.
40528
40529 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
40530
40531         * modules/argp (Depends-on): Remove unlocked-io.
40532
40533 2005-07-14  Derek Price  <derek@ximbiot.com>
40534
40535         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
40536         for glob symlink bug.
40537
40538 2005-07-14  Bruno Haible  <bruno@clisp.org>
40539
40540         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
40541         Instead, test for *_unlocked function declarations directly.
40542
40543 2005-07-11  Simon Josefsson  <jas@extundo.com>
40544
40545         * modules/size_max: New file.
40546
40547         * modules/xsize: Depend on size_max module for size_max.m4.
40548
40549 2005-07-11  Simon Josefsson  <jas@extundo.com>
40550
40551         * lib/size_max.h: New file.
40552
40553 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
40554
40555         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
40556         copyright symbol and the year.
40557         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
40558         (version_etc_va): Use parameterized copyright notice.
40559         Reword to conform to the current GNU coding standards.
40560
40561 2005-07-11  Karl Berry  <karl@gnu.org>
40562
40563         * doc/gnulib.texi (Quoting): new node.
40564         (Initial import): more info, from Patrice.
40565
40566 2005-07-11  Bruno Haible  <bruno@clisp.org>
40567
40568         * gnulib-tool (func_usage): Document option --avoid.
40569         (Command line options): Handle --avoid.
40570         (func_acceptable): New function.
40571         (func_modules_transitive_closure): Use it.
40572
40573 2005-07-11  Bruno Haible  <bruno@clisp.org>
40574
40575         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
40576         Reported by Jim Meyering.
40577
40578 2005-07-10  Bruno Haible  <bruno@clisp.org>
40579
40580         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
40581         Needed when size_t is smaller than 'unsigned int'.
40582         Reported by Paul Eggert.
40583
40584 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40585
40586         * modules/argp (Depends-on): Add unlocked-io
40587
40588 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40589
40590         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
40591         block of defines.
40592
40593 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
40594
40595         * config/srclist.txt: Comment out regcomp.c, since we have a porting
40596         fix now.
40597
40598 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
40599         and Paul Eggert  <eggert@cs.ucla.edu>
40600
40601         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
40602         in wint_t, not wchar_t.  Remove now-unnecessary cast.
40603
40604 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40605
40606         * modules/regex (Files): Add lib/regex_internal.c,
40607         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
40608         (Depends-on): Add extensions.
40609         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
40610
40611 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40612
40613         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
40614         pathconf.
40615         * m4/same.m4 (gl_SAME): Likewise.
40616         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
40617
40618         * m4/regex.m4: Adjust to new libc regex implementation.
40619         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
40620         all the .c and .h parts of (the new) regex.
40621         Quote the m4 stuff better.
40622         Check for RE_ICASE bug of old gnulib.
40623         Check for REG_STARTEND of recent libc.
40624         Rename local variables from jm_* to gl_*.
40625         Quote operand of "test -f".
40626         Say "recent enough" version of libc, not "version 2".
40627         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
40628         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
40629         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
40630         Remove check for btowc, isascii.
40631         Require AM_LANGINFO_CODESET.
40632
40633 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40634
40635         * lib/regex.c, regex.h: Sync from libc.
40636         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
40637         * lib/regexec.c:
40638         New files, synced from libc, except that regex_internal.h
40639         currently has a small porting fix.
40640
40641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40642
40643         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
40644         regex_internal.c, regexec.c.
40645         Add regex_internal.h too, but as a comment, since the libc version
40646         is currently broken in gnulib mode.
40647
40648 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40649
40650         Support programs like Emacs that use gnulib but not gettext.
40651         * MODULES.html.sh (Internationalization functions): Add gettext-h.
40652         * modules/gettext-h: New file.
40653         * modules/gettext (Files): Remove lib/gettext.h.
40654         (Depends-on): Add gettext-h.
40655         (Makefile.am): Remove lib_SOURCES.
40656         * modules/argmatch, modules/c-stack, modules/closeout:
40657         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
40658         * modules/execute, modules/file-type, modules/getaddrinfo:
40659         * modules/getopt, modules/human, modules/javacomp:
40660         * modules/javaexec, modules/mkdir-p, modules/obstack:
40661         * modules/openat, modules/pagealign_alloc, modules/pipe:
40662         * modules/quotearg, modules/regex, modules/rpmatch:
40663         * modules/unicodeio, modules/userspec, modules/version-etc:
40664         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
40665         * modules/xsetenv:
40666         Depend on gettext-h, not gettext.
40667
40668 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40669
40670         * gnulib-tool (func_import): Add support for 'public domain' license.
40671         * modules/alloca, modules/atexit, modules/memmove:
40672         Now public domain, not GPL.
40673         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
40674         * modules/realloc, modules/strerror, modules/strtod:
40675         Now LGPL, not GPL.
40676
40677 2005-07-05  Bruno Haible  <bruno@clisp.org>
40678
40679         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
40680         autoconf CVS. Needed for mingw.
40681
40682 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40683
40684         Remove the dependency of the strftime module on the tzset module.
40685         * modules/strftime (Depends-on): Remove dependency on tzset.
40686
40687 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40688
40689         Remove the dependency of the strftime module on the tzset module.
40690         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
40691         gl_FUNC_TZSET_CLOBBER.
40692
40693 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40694
40695         Remove the dependency of the strftime module on the tzset module.
40696         * lib/strftime.c (my_strftime)
40697         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
40698         Copy the input structure, to work around some of the bug with
40699         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
40700         Solaris releases, you should also use the tzset module, but we won't
40701         require it as a dependency any more since we don't want LGPLed code
40702         to depend on GPLed code.
40703
40704 2005-07-02  Jim Meyering  <jim@meyering.net>
40705
40706         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
40707         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
40708         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
40709         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
40710
40711 2005-07-02  Jim Meyering  <jim@meyering.net>
40712
40713         * lib/backupfile.c (backup_args): Change a `0' to NULL.
40714
40715 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40716
40717         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
40718         declares only 'struct timespec;' (!).
40719
40720 2005-07-01  Jim Meyering  <jim@meyering.net>
40721
40722         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
40723         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
40724         * lib/save-cwd.c, tempname.c:
40725         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40726         and don't include <sys/file.h>).
40727
40728 2005-06-29  Jim Meyering  <jim@meyering.net>
40729
40730         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
40731         type name.  Use the variable name instead.
40732         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
40733         Likewise.
40734
40735 2005-06-28  Simon Josefsson  <jas@extundo.com>
40736
40737         * modules/check-version (Files): Add check-version.m4.
40738
40739 2005-06-28  Simon Josefsson  <jas@extundo.com>
40740
40741         * m4/check-version.m4: New file, suggested by Jim Meyering
40742         <jim@meyering.net>.
40743
40744 2005-06-28  Simon Josefsson  <jas@extundo.com>
40745
40746         * lib/check-version.h, lib/check-version.c: New files.
40747
40748 2005-06-28  Simon Josefsson  <jas@extundo.com>
40749
40750         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
40751         collision with global variable.  Better indentation.  Don't
40752         increment buffer pointer beyond buffer end.  Based on comments
40753         from Paul Eggert <eggert@cs.ucla.edu>.
40754
40755         * lib/base64.h: Indent.
40756
40757 2005-06-28  Simon Josefsson  <jas@extundo.com>
40758
40759         * doc/gnulib.texi (Library version handling): New section.
40760
40761 2005-06-28  Jim Meyering  <jim@meyering.net>
40762
40763         * check-module (find_included_lib_files): Hard-code another
40764         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
40765         but modules/fts-lgpl (correctly) does not list those files.
40766
40767         * modules/canonicalize (Files): Add lib/pathmax.h.
40768
40769 2005-06-25  Simon Josefsson  <jas@extundo.com>
40770
40771         * modules/check-version: New file.
40772
40773 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
40774
40775         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
40776         initializer of struct addrinfo, as an indication that we don't
40777         care how many members the structure has.
40778
40779 2005-06-24  Derek Price  <derek@ximbiot.com>
40780         and Bruno Haible  <bruno@clisp.org>
40781
40782         Remove stat module & update lstat.
40783         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
40784         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40785         * m4/stat.m4: Remove this file.
40786
40787 2005-06-24  Derek Price  <derek@ximbiot.com>
40788         and Bruno Haible  <bruno@clisp.org>
40789
40790         Remove stat module & update lstat.
40791         * lib/stat.c: Remove this file...
40792         (slash_aware_lstat): ...moving this content and its support...
40793         * lib/lstat.c (rpl_lstat): ...into here.
40794         * lib/lstat.h: New file.
40795
40796 2005-06-24  Derek Price  <derek@ximbiot.com>
40797         and Bruno Haible  <bruno@clisp.org>
40798
40799         Remove stat module & update lstat.
40800         * config/srclist.txt (libc sources): Remove stat.
40801
40802 2005-06-24  Derek Price  <derek@ximbiot.com>
40803         and Bruno Haible  <bruno@clisp.org>
40804
40805         Remove stat module & update lstat.
40806         * MODULES.html.sh (stat): Remove.
40807         * MODULES.html: Regenerated.
40808         * modules/lstat (Description): Correct function name.
40809         (Files): Add "lstat.h".
40810         (Depends-on): Remove stat, add xalloc, stat-macros.
40811         * modules/stat: Remove this file.
40812         (Include): Add "lstat.h", remove <sys/stat.h>.
40813
40814 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40815
40816         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
40817         (ranged_convert): Don't save conversion in a temporary struct.
40818         This causes a warning with GCC 4.0.0, and anyway in the typical
40819         case it's not worth the extra 100 bytes or so of code.
40820         (ranged_convert, __mktime_internal): When calling a function via a
40821         pointer P, use P () rather than (*P) (), as we now assume C89 or
40822         better.
40823
40824 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40825
40826         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
40827         "who -r" failed to give output.  Problem reported by Tim Waugh.
40828
40829         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
40830         (xcalloc): Use it to avoid needless tests.
40831         Problem reported by Jim Meyering.
40832
40833 2005-06-20  Derek Price  <derek@ximbiot.com>
40834
40835         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
40836         unnecessary for Autoconfs > 2.59c.
40837
40838 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40839
40840         * lib/argp.h (__option_is_short): Check upper limit of
40841         __key. Isprint() requires its argument to have the value
40842         of an unsigned char or EOF.
40843
40844 2005-06-16  Jim Meyering  <jim@meyering.net>
40845
40846         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
40847         when either N or S is zero.
40848
40849 2005-06-16  Derek Price  <derek@ximbiot.com>
40850
40851         * m4/bison.m4: Declare YACC & YFLAGS precious.
40852
40853 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
40854
40855         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
40856         multibyte string or pattern, fall back on unibyte matching.
40857         Problem reported by James Youngman.
40858
40859 2005-06-08  Bruno Haible  <bruno@clisp.org>
40860
40861         * modules/csharpcomp: New file.
40862         * MODULES.html.sh (C#): Add csharpcomp.
40863
40864 2005-06-08  Bruno Haible  <bruno@clisp.org>
40865
40866         * m4/csharpcomp.m4: New file, from GNU gettext.
40867
40868 2005-06-08  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/csharpcomp.h: New file, from GNU gettext.
40871         * lib/csharpcomp.c: New file, from GNU gettext.
40872         * lib/csharpcomp.sh.in: New file, from GNU gettext.
40873
40874 2005-06-08  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
40877         warning on mingw.
40878
40879 2005-06-07  Derek Price  <derek@ximbiot.com>
40880
40881         Sync from CVS.
40882         * lib/glob_.h: Indent nested #ifdef.
40883
40884 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40885
40886         Sync from coreutils.
40887         Use "file name" when talking about file names, instead of "filename"
40888         or "path", as per the GNU coding standards.
40889         * lib/mkdir-p.c: Renamed from makepath.c.
40890         (make_dir_parents): Renamed from make_path.  All callers changed.
40891         * lib/mkdir-p.h: Likewise.  All includers changed.
40892         * lib/filenamecat.c: Renamed from path-concat.c.
40893         (file_name_concat): Renamed from path_concat.  All callers changed.
40894         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
40895         * lib/filenamecat.h: Likewise.  All includers changed.
40896         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
40897         in comments or local variable names.
40898         * lib/basename.c: Likewise.
40899         * lib/canonicalize.c, canonicalize.h: Likewise.
40900         * lib/dirname.c, dirname.h: Likewise.
40901         * lib/euidaccess.c: Likewise.
40902         * lib/exclude.c: Likewise
40903         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
40904         * lib/fsusage.c, fsuage.h: Likewise.
40905         * lib/fts.c, fts_.h: Likewise.
40906         * lib/getcwd.c: Likewise.
40907         * lib/getloadavg.c: Likewise.
40908         * lib/mkstemp.c: Likewise.
40909         * lib/mountlist.c, mountlist.h: Likewise.
40910         * lib/openat.c, openat.h: Likewise.
40911         * lib/readlink-stub.c: Likewise.
40912         * lib/readutmp.c, readutmp.h: Likewise.
40913         * lib/rename.c: Likewise.
40914         * lib/rmdir.c: Likewise.
40915         * lib/same.c: Likewise.
40916         * lib/savedir.c: Likewise.
40917         * lib/stripslash.c: Likewise.
40918         * lib/tempname.c: Likewise.
40919         * lib/xreadlink.c: Likewise.
40920         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
40921         All uses changed.
40922         * lib/exclude.h: Likewise.
40923
40924         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
40925         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40926         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
40927         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40928         * lib/pathmax.h: Include <limits.h> unconditionally, since other
40929         files have been getting away with it for years (MORE/BSD 4.3
40930         is extinct now).
40931         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
40932         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40933
40934         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
40935         Define to 256, not 255, as per modern POSIX.
40936
40937 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40938
40939         Sync from coreutils.
40940         Use "file name" when talking about file names, instead of "filename"
40941         or "path", as per the GNU coding standards.
40942         * MODULES.html.sh: mkdir-p renamed from makepath.
40943         filenamecat renamed from path-concat.
40944         * modules/filenamecat: Renamed from modules/path-concat.
40945         (Files): filenamecat.h and filenamecat.c renamed from
40946         path-concat.h and path-concat.c.
40947         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
40948         (Include): filenamecat.h, not path-concat.h.
40949         * modules/mkdir-p: Renamed from modules/makepath.
40950         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
40951         makepath.c.
40952         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
40953         (Include): mkdir-p.h, not makepath.h.
40954
40955 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40956
40957         Sync from coreutils.
40958         * m4/mkdir-p.m4: Renamed from makepath.m4.
40959         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
40960         Rename files from makepath.c to mkdir-p.c, and from
40961         makepath.h to mkdir-p.h.
40962         * m4/filenamecat.m4: Renamed from path-concat.m4.
40963         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
40964         Rename files from path-concat.c to filenamecat.c,
40965         and from path-concat.h to filenamecat.h.
40966         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
40967         "file name" in local variables or comments.
40968         * m4/rename.m4: Likewise.
40969
40970 2005-06-01  Bruno Haible  <bruno@clisp.org>
40971
40972         * modules/csharpexec: New file.
40973         * MODULES.html.sh (C#): New section.
40974
40975 2005-06-01  Bruno Haible  <bruno@clisp.org>
40976
40977         * m4/csharp.m4: New file, from GNU gettext.
40978         * m4/csharpexec.m4: New file, from GNU gettext.
40979
40980 2005-06-01  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/csharpexec.h: New file, from GNU gettext.
40983         * lib/csharpexec.c: New file, from GNU gettext.
40984         * lib/csharpexec.sh.in: New file, from GNU gettext.
40985
40986 2005-05-31  Derek Price  <derek@ximbiot.com>
40987             Paul Eggert  <eggert@cs.ucla.edu>
40988
40989         Sync from cvs.
40990         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40991
40992 2005-05-31  Derek Price  <derek@ximbiot.com>
40993             Paul Eggert  <eggert@cs.ucla.edu>
40994
40995         Sync from cvs.
40996         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40997
40998 2005-05-29  Derek Price  <derek@ximbiot.com>
40999
41000         * config/srclist.txt (glob_.h, glob.c): Add these files.
41001
41002 2005-05-29  Derek Price  <derek@ximbiot.com>
41003
41004         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
41005         * modules/glob: New file.
41006         * modules/getlogin_r: Add link to POSIX spec in description.
41007
41008 2005-05-29  Derek Price  <derek@ximbiot.com>
41009             Paul Eggert  <eggert@cs.ucla.edu>
41010
41011         * m4/glob.m4: New file.
41012
41013 2005-05-29  Derek Price  <derek@ximbiot.com>
41014             Paul Eggert  <eggert@cs.ucla.edu>
41015
41016         * lib/glob_.h, lib/glob.c: New files.
41017
41018 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41019
41020         * modules/fts (Files): Remove m4/inttypes-pri.m4.
41021         * modules/fts-lgpl (Depends-on): Remove gettext.
41022
41023 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41024
41025         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
41026         and don't require gt_INTTYPES_PRI.
41027
41028 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
41029
41030         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
41031
41032         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
41033         the configuration hassle isn't worth it.
41034         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
41035         (LONGEST_MODIFIER, PRIuMAX): Remove.
41036
41037 2005-05-27  Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/getlogin_r.h: Remove second include of <stddef.h>.
41040
41041 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
41042
41043         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
41044         _POSIX_PTHREAD_SEMANTICS for Solaris.
41045
41046 2005-05-25  Derek Price  <derek@ximbiot.com>
41047
41048         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
41049
41050 2005-05-25  Derek Price  <derek@ximbiot.com>
41051             Paul Eggert  <eggert@cs.ucla.edu>
41052
41053         * modules/getlogin_r, m4/getlogin_r.m4: New files.
41054         * lib/getlogin_r.c, getlogin_r.h: New files.
41055
41056 2005-05-25  Bruno Haible  <bruno@clisp.org>
41057             Derek Price  <derek@ximbiot.com>
41058
41059         * lib/getlogin_r.h: Simplify API documentation.
41060
41061 2005-05-23  Derek Price  <derek@ximbiot.com>
41062
41063         * modules/minmax (Files): Add m4/minmax.m4.
41064         (configure.ac): Add gl_MINMAX.
41065
41066 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
41067
41068         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
41069         so that unistd-safer.h (GPL'ed code) need not be included.
41070
41071 2005-05-22  Bruno Haible  <bruno@clisp.org>
41072
41073         * m4/minmax.m4: New file.
41074         Based on a patch by Derek Price <derek@ximbiot.com>.
41075
41076 2005-05-22  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
41079         (INT64_MIN): Fix definition.
41080         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
41081
41082         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
41083         NEED_SIGNED_INT_TYPES.
41084
41085         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
41086         HAVE_SYSTEM_INTTYPES.
41087
41088 2005-05-22  Bruno Haible  <bruno@clisp.org>
41089
41090         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
41091         Also include <sys/param.h> if it defines MIN, MAX.
41092         Based on a patch by Derek Price <derek@ximbiot.com>.
41093
41094 2005-05-21  Jim Meyering  <jim@meyering.net>
41095
41096         * modules/fts (Files): Add m4/inttypes-pri.m4.
41097         (Depends-on): Add lstat and remove gettext.  Alphabetize.
41098
41099 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41100
41101         New fts module.
41102         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
41103         (setup_dir, free_dir): New functions.
41104         (enter_dir, leave_dir): Define trivial
41105         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
41106         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
41107         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
41108         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
41109         Move to fts-cycle.c.
41110         (fts_open): Use setup_dir.
41111         (fts_close): Use free_dir.
41112         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
41113         This adds a label and some gotos, but the alternatives were messier.
41114         Check for memory allocation failure when entering a dir.
41115         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
41116         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
41117         (FTS): New member fts_cycle, that is a union that contains the
41118         old active_dir_ht and cycle_state.  All uses changed to mention
41119         fts_cycle.ht and fts_cycle.state.
41120         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
41121         fts.c, with the following changes:
41122         (setup_dir, free_dir): New functions.
41123         (enter_dir): Now returns bool.  Return true if successful, false
41124         if memory exhausted.  All callers changed.
41125         Do not bother partly cleaning up on
41126         memory allocation failure; that is free_dir's job.
41127         However, free ad if hash_insert fails, to avoid memory leak.
41128         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
41129         fts->fts_options to see which union member to use.
41130
41131 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41132
41133         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
41134         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
41135
41136 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41137
41138         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
41139
41140 2005-05-20  Jim Meyering  <jim@meyering.net>
41141
41142         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
41143         Now a macro, to pacify GCC.
41144
41145 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41146
41147         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
41148         of -1.
41149
41150 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41151
41152         * lib/chown.c (rpl_chown): Return -1 on failure.
41153
41154 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41155
41156         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
41157         Don't check for stddef.h.
41158         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
41159         don't use its results.
41160         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
41161         since we include them unconditionally.  Don't require
41162         AM_STDBOOL_H, since stdbool is a prerequisite.
41163         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
41164         since we assume C89 or better.
41165         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
41166         as we don't use their results.
41167         Don't check for fchdir, memmove, memset, strrchr, as we use
41168         them unconditionally.
41169         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
41170         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
41171
41172 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41173
41174         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
41175         Include <stddef.h> unconditionally, since we assume C89 now.
41176         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
41177         * lib/fts.c: Include fts_.h first, to check interface.
41178         Do not include intprops.h; no longer needed.
41179         Include cycle-check.h and hash.h, since fts_.h no longer does.
41180         Remove unnecessary casts of closedir to void.
41181         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
41182         decide whether to decrement nlinks.
41183         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
41184         (FTS): Use struct hash_table * instead of Hash_table, so that
41185         we no longer need to include hash.h here.
41186
41187 2005-05-18  Jim Meyering  <jim@meyering.net>
41188
41189         * modules/dirfd (License): Change to LGPL.  Most of the code
41190         is already in the public domain.
41191
41192 2005-05-18  Jim Meyering  <jim@meyering.net>
41193
41194         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
41195         Reported by Yoann Vandoorselaere.
41196
41197 2005-05-17  Jim Meyering  <jim@meyering.net>
41198
41199         * m4/fts.m4: New file, from coreutils.
41200
41201 2005-05-17  Jim Meyering  <jim@meyering.net>
41202
41203         * lib/fts.c, lib/fts_.h: New files, from coreutils.
41204
41205 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41206
41207         Sync from coreutils.
41208         * m4/unlinkdir.m4: New file.
41209
41210 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41211
41212         Sync from coreutils.
41213         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
41214         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
41215         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
41216         White space changes only.
41217         * lib/makepath.c (make_path): Port to hosts where leading "//" is
41218         special.
41219         * lib/yesno.c: Include getline.h, not ctype.h.
41220         (yesno): Don't remove leading white space; POSIX doesn't allow it.
41221         Use getline to remove arbitrary restriction on response length.
41222
41223 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41224
41225         * config/srclist-update: Spell out "Street" in FSF postal
41226         mail address; this is the style the FSF seems to prefer.
41227
41228         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
41229         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
41230         this updates FSF postal mail address.
41231
41232         Sync from coreutils.
41233         * modules/unlinkdir: New file.
41234         * modules/yesno (Depends-on): Add getline.
41235         * MODULES.html.sh (File system functions): Add unlinkdir.
41236
41237 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41238
41239         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
41240         lib/strsep.h:
41241         Change the initial comment to refer to GPL, not LGPL.
41242         gnulib-tool will change it to LGPL as needed.
41243
41244         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
41245         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
41246         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
41247         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
41248         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
41249         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
41250         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
41251         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
41252         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
41253         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
41254         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
41255         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
41256         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
41257         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
41258         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
41259         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
41260         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
41261         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
41262         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
41263         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
41264         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
41265         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
41266         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
41267         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
41268         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
41269         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
41270         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
41271         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
41272         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
41273         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
41274         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
41275         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
41276         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
41277         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
41278         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
41279         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
41280         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
41281         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
41282         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
41283         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
41284         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
41285         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
41286         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
41287         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
41288         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
41289         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
41290         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
41291         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
41292         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
41293         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
41294         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
41295         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
41296         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
41297         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
41298         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
41299         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
41300         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
41301         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
41302         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
41303         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
41304         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
41305         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
41306         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
41307         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
41308         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
41309         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
41310         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
41311         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
41312         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
41313         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
41314         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
41315         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
41316         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
41317         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
41318         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
41319         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
41320         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
41321         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
41322         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
41323         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
41324         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
41325         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
41326         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
41327         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
41328         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
41329         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
41330         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
41331         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
41332         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
41333         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
41334         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
41335         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
41336         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
41337         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
41338         lib/yesno.c, lib/yesno.h:
41339         Update FSF postal mail address.
41340
41341 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41342
41343         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
41344         tests/test-memmem.c, tests/test-stpncpy.c:
41345         Update FSF postal mail address.
41346
41347 2005-05-13  Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
41350         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
41351         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
41352         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
41353         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
41354         Add support for 64-bit integers in the MSVC compiler.
41355
41356 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41357
41358         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
41359
41360 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
41361
41362         * gnulib-tool (func_import): Sort and uniquify recommended includes.
41363
41364 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
41365
41366         * doc/getdate.texi (General date syntax): Don't say that date
41367         date --iso-8601=ns generates acceptable dates; it doesn't yet.
41368         Problem reported by Nic Ferrier.
41369
41370 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41371
41372         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
41373         specified in ai_socktype. Fix invalid ai_protocol
41374         check. ai_protocol is usually set to 0 or depending on
41375         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
41376         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
41377         ai_socktype / ai_protocol in the returned addrinfo structure.
41378
41379 2005-05-10  Simon Josefsson  <jas@extundo.com>
41380
41381         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
41382         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41383
41384 2005-05-10  Karl Berry  <karl@gnu.org>
41385
41386         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
41387         (from http://www.gnu.org/licenses).
41388         * doc/COPYING.LIB: also rename to COPYING.LESSER.
41389         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
41390         fdl.texi suffices.
41391
41392 2005-05-10  Karl Berry  <karl@gnu.org>
41393
41394         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
41395         (COPYING.DOC): remove.
41396
41397         * config/srclist-update: new FSF address.
41398
41399 2005-05-10  Derek Price  <derek@ximbiot.com>
41400
41401         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
41402         possible.
41403
41404 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41405             Bruno Haible  <bruno@clisp.org>
41406
41407         * modules/inet_ntop: New file.
41408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41409         inet_ntop.
41410
41411 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41412             Bruno Haible  <bruno@clisp.org>
41413
41414         * m4/inet_ntop.m4: New file.
41415
41416 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41417             Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/inet_ntop.h: New file.
41420         * lib/inet_ntop.c: New file, from glibc with modifications.
41421
41422 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         * modules/time_r (License): Change to LGPL.
41425         * modules/extensions (License): Change to LGPL.  Actually,
41426         the license is more permissive than that, but currently gnulib-tool
41427         doesn't know how to handle more-permissive licenses.
41428
41429         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
41430         Problem reported by Dave Love.
41431
41432 2005-05-08  Jim Meyering  <jim@meyering.net>
41433
41434         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
41435         blank.
41436
41437 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41438
41439         * modules/argmatch (Depends-on): Add stdbool.
41440         * modules/backupfile (Depends-on): Likewise.
41441         * modules/chdir-long (Depends-on): Likewise.
41442         * modules/closeout (Depends-on): Likewise.
41443         * modules/cycle-check (Depends-on): Likewise.
41444         * modules/dirname (Depends-on): Likewise.
41445         * modules/fnmatch (Depends-on): Likewise.
41446         * modules/fsusage (Depends-on): Likewise.
41447         * modules/fwriteerror (Depends-on): Likewise.
41448         * modules/getcwd (Depends-on): Likewise.
41449         * modules/getloadavg (Depends-on): Likewise.
41450         * modules/hard-locale (Depends-on): Likewise.
41451         * modules/makepath (Depends-on): Likewise.
41452         * modules/mountlist (Depends-on): Likewise.
41453         * modules/nanosleep (Depends-on): Likewise.
41454         * modules/posixtm (Depends-on): Likewise.
41455         * modules/quotearg (Depends-on): Likewise.
41456         * modules/readtokens (Depends-on): Likewise.
41457         * modules/readtokens0 (Depends-on): Likewise.
41458         * modules/readutmp (Depends-on): Likewise.
41459         * modules/save-cwd (Depends-on): Likewise.
41460         * modules/strftime (Depends-on): Likewise.
41461         * modules/userspec (Depends-on): Likewise.
41462         * modules/utimecmp (Depends-on): Likewise.
41463         * modules/xgetcwd (Depends-on): Likewise.
41464         * modules/xnanosleep (Depends-on): Likewise.
41465         * modules/xstrtod (Depends-on): Likewise.
41466         * modules/yesno (Depends-on): Likewise.
41467
41468 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
41469
41470         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
41471         needless checks.
41472
41473 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41474
41475         Merge from coreutils.  Among other things,
41476         add bulletproofing for cases where stdin, stdout, or stderr are closed.
41477         * lib/fd-safer.c: New file.
41478         * lib/fcntl-safer.h, open-safer.c: Remove.
41479         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
41480         * lib/dup-safer.c: Include unistd-safer.h first.
41481         Don't include errno.h.
41482         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
41483         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
41484         * lib/file-type.c: Rely on file-type.h change.
41485         * lib/getloadavg.c: Include unistd-safer.h.
41486         (getloadavg): Use safer open.
41487         * lib/getusershell.c: Include "stdio-safer.h".
41488         (getusershell): Use safer fopen.
41489         * lib/long-options.c (long_options): Use NULL rather than 0.
41490         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
41491         'free'.
41492         * lib/modechange.c: Likewise.
41493         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
41494         (MODE_DONE): New constant.
41495         (struct mode_change): Remove 'next' member.
41496         (make_node_op_equals): New function; like the old one of the
41497         same name, except it allocates an array.
41498         (mode_compile, mode_create_from_ref): Use it.
41499         (mode_compile): Allocate result as an array, not a linked list.
41500         Parse octal string ourself, so that we catch mistakes like "+0".
41501         (mode_adjust): Arg is an array, not a linked list.
41502         * lib/modechange.c: Include stat-macros.h, xalloc.h.
41503         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
41504         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
41505         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
41506         Remove.  This is now stat-macros.h's job.
41507         (talloc): Remove.  All callers replaced by xalloc, so that
41508         our invokers don't have to worry about reporting memory failures.
41509         (make_node_op_equals): Remove.
41510         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
41511         New constants.
41512         (struct mode_change): Moved here from modechange.h.
41513         (mode_append_entry): Remove.
41514         (mode_compile): Remove MASKED_OPS arg, since it encouraged
41515         apps to have incorrect behavior.  Use simpler algorithm for head
41516         and tail.  Don't futz with umask; that's now the job of mode_adjust.
41517         Detect more invalid usages rather than having somewhat-random behavior.
41518         Don't insert an "a=" action, as that leads to incorrect behavior.
41519         (mode_compile, mode_create_from_ref): Return NULL on error instead
41520         of an enum, since now there's only one way to have an error.  All
41521         callers changed.
41522         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
41523         at the correct time.  Simplify calculation of "+u" and its ilk.
41524         Don't mishandle "+X".
41525         (mode_free): Remove "register" and localize decls.
41526         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
41527         (struct mode_change): Move to modechange.c; callers don't
41528         need to see this stuff.
41529         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
41530         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
41531         (mode_change, mode_adjust): Reflect the new signatures noted above.
41532         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
41533         that might redefine system include files.
41534         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
41535         (my_usleep): Use NULL rather than (void *) 0.
41536         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
41537         Use siginterrupt to specify that system calls should be interrupted.
41538         (rpl_nanosleep): Move initialization of suspended closer to call of
41539         my_usleep.
41540         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
41541         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
41542         (desirable_utmp_entry): New function.
41543         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
41544         using x2nrealloc, to simplify logic.
41545         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
41546         size calculation.  Do not assume utmp file is a regular file.
41547         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
41548         (READ_UTMP_CHECK_PIDS): New constant.
41549         * lib/save-cwd.c: Include unistd-safer.h.
41550         (save_cwd): Use fd_safer.
41551         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
41552         [!_LIBC] Include "stat-macros.h" instead.
41553         * lib/unistd-safer.h (fd_safer): New decl.
41554
41555 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41556
41557         * modules/getloadavg (Depends-on): Add unistd-safer.
41558         * modules/getusershell (Depends-on): Add stdio-safer.
41559         * modules/lstat (Depends-on): Remove xalloc.
41560         * modules/mkstemp (Depends-on): Add stat-macros.
41561         * modules/modechange (Depends-on): Remove xstrtol.
41562         Add stat-macros, xalloc.
41563         * modules/save-cwd (Depends-on): Add unistd-safer.
41564         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
41565         * modules/unistd-safer (Files): Add lib/fd-safer.c
41566         (Makefile.am): Remove lib_SOURCES.
41567
41568         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
41569         Remove fcntl-safer; unistd-safer supersedes it.
41570
41571 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41572
41573         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
41574         AC_HEADER_STAT.
41575         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
41576         (gl_PREREQ_CHOWN): Remove.
41577         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
41578         it.  Don't require AC_HEADER_STAT.
41579         (gl_PREREQ_LSTAT): Remove.
41580         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
41581         Don't require AC_HEADER_STAT.
41582         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
41583         (gl_PREREQ_RMDIR): Remove.
41584         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
41585         mention stat-macros.h or AC_HEADER_STAT, since we'll make
41586         the stat-macros module a prerequisite.
41587         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
41588         * m4/filemode.m4 (gl_FILEMODE): Likewise.
41589         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
41590         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
41591         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
41592         variable names.
41593         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
41594         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
41595         variable prefixes.
41596         * m4/fcntl-safer.m4: Remove.
41597         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
41598         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
41599         Invoke gl_PREREQ_FD_SAFER.
41600         (gl_PREREQ_FD_SAFER): New macro.
41601         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
41602         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
41603         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
41604         Remove duplicate call to AC_LIBOBJ(readutmp).
41605         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
41606
41607         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
41608         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
41609
41610 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         * MODULES.html.sh (Misc): Add byteswap.
41613
41614 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41615
41616         * modules/getcwd (Depends-on): Add extensions.
41617         * modules/openat (Depends-on): Likewise.
41618
41619 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41620
41621         * modules/byteswap: New file.
41622
41623 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41624
41625         * m4/byteswap.m4: New file.
41626
41627 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41628
41629         * lib/byteswap_.h: New file.
41630
41631 2005-04-25  Karl Berry  <karl@gnu.org>
41632
41633         * m4/gettext.m4: Update from GNU gettext 0.14.4.
41634
41635 2005-04-25  Albert Chin  <china@thewrittenword.com>
41636
41637         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
41638         Toolkit C bug.
41639
41640 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
41641
41642         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
41643         (func_ln_if_changed) Remove forcibly for no error message
41644         in case file does not exist.
41645
41646 2005-04-19  Simon Josefsson  <jas@extundo.com>
41647
41648         * gnulib-tool (Options): Make --symlink mean --symbolic.
41649
41650 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
41651
41652         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
41653
41654 2005-04-16  Simon Josefsson  <jas@extundo.com>
41655
41656         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
41657
41658 2005-04-15  Simon Josefsson  <jas@extundo.com>
41659
41660         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
41661
41662 2005-04-15  Simon Josefsson  <jas@extundo.com>
41663
41664         * gnulib-tool: Rename --symlink to --symbolic.
41665
41666 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
41667
41668         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
41669         symbolic links to files instead of copying/moving.  Add --aux-dir,
41670         specifying directory relative --dir where auxiliary build tools
41671         are placed.
41672
41673 2005-04-14  Bruno Haible  <bruno@clisp.org>
41674
41675         * modules/allocsa (License): Change to LGPL.
41676         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41677
41678 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41679
41680         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
41681         that "UTC +1 second" continues to work.  Problem reported
41682         by Dmitry V. Levin.
41683         (relunit_snumber): New rule.
41684         (relunit): Use it.
41685
41686 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
41687
41688         * lib/getdate.y (universal_time_zone_table): New constant.
41689         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
41690         universal_time_zone_table.
41691         (lookup_zone): Prefer universal_time_zone_table to
41692         local_time_zone_table, so that "GMT" time stamps are allowed in
41693         London during the summer.  Problem reported by Ian Abbott.
41694
41695 2005-04-12  Jim Meyering  <jim@meyering.net>
41696
41697         * lib/human.c (humblock): Set *options even when returning due to
41698         xstrtoumax conversion failure.  Thanks to a used-uninitialized
41699         warning from gcc-4.
41700
41701 2005-04-09  Jim Meyering  <jim@meyering.net>
41702
41703         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
41704         -Wuninitialized: initialize tm0.tm_year.
41705
41706 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41707
41708         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
41709         count, since there's no maximum.  All uses changed.
41710         Add member dsts_seen.
41711         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
41712         not being INT_MAX.
41713         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
41714         Use pc_rels_seen to decide whther a date is absolute.
41715
41716         * lib/getdate.y (number): Don't overwrite year.
41717         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
41718         check.
41719
41720 2005-04-02  Simon Josefsson  <jas@extundo.com>
41721
41722         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
41723         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
41724
41725 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
41726
41727         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
41728         where no absolute path name can be longer than PATH_MAX.
41729
41730 2005-03-27  Jim Meyering  <jim@meyering.net>
41731
41732         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
41733
41734 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
41735
41736         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
41737         "one's complement" -> "ones' complement" in comment, as per Knuth.
41738         "value of type" -> "type or expression" in comment.
41739         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
41740
41741 2005-03-26  Jim Meyering  <jim@meyering.net>
41742
41743         Comment nits.
41744         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
41745         Correct typos: s/or/of/.
41746
41747 2005-03-26  Jim Meyering  <jim@meyering.net>
41748
41749         * modules/check-include-files: Move to ../ and rename to...
41750         * check-module: ...this.
41751
41752 2005-03-25  Jim Meyering  <jim@meyering.net>
41753
41754         * modules/xvasprintf (Files): Add xalloc.h.
41755
41756 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41757
41758         * modules/gettext (Files): config/config.rpath ->
41759         build-aux/config.rpath
41760         * modules/iconv (Files): Likewise.
41761         Problem reported by Oskar Liljeblad.
41762
41763 2005-03-23  Jim Meyering  <jim@meyering.net>
41764
41765         * modules/check-include-files: New script to check for
41766         missing dependencies, multiple includes, etc.
41767
41768         * modules/c-strtold (Depends-on): Add xalloc.
41769         * modules/c-strtod (Depends-on): Add xalloc.
41770         * modules/hash (Depends-on): Add xalloc.
41771         (Files): Remove lib/xalloc.h.
41772
41773         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
41774         * modules/userspec (Files): Add lib/inttostr.h.
41775
41776 2005-03-23  Jim Meyering  <jim@meyering.net>
41777
41778         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
41779
41780 2005-03-22  Jim Meyering  <jim@meyering.net>
41781
41782         * modules/stat-macros: New module.
41783         * modules/canonicalize, modules/euidaccess, modules/file-type,
41784         * modules/filemode, modules/lchown, modules/makepath,
41785         * modules/rmdir, modules/stat: Depend on new stat-macros module
41786         rather than listing lib/stat-macros.h manually.
41787         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
41788
41789 2005-03-22  Jim Meyering  <jim@meyering.net>
41790
41791         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
41792
41793 2005-03-22  Bruno Haible  <bruno@clisp.org>
41794
41795         * config/srclist.txt: Replace target directory 'config' with
41796         'build-aux'.
41797         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
41798         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
41799         ../build-aux/.
41800
41801 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
41802
41803         * modules/chdir-long (Depends-on): Add mempcpy.
41804
41805         * modules/acl, modules/backupfile, modules/c-strtod,
41806         modules/c-strtold, modules/canon-host, modules/canonicalize,
41807         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
41808         modules/exclude, modules/exitfail, modules/file-type,
41809         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
41810         modules/getdate, modules/getline, modules/getpagesize,
41811         modules/getpass, modules/getugroups, modules/group-member,
41812         modules/hard-locale, modules/hash, modules/human, modules/idcache,
41813         modules/inttostr, modules/long-options, modules/makepath,
41814         modules/md5, modules/memcasecmp, modules/memcoll,
41815         modules/modechange, modules/mountlist, modules/path-concat,
41816         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
41817         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
41818         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
41819         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
41820         modules/strftime, modules/strndup, modules/strverscmp,
41821         modules/timespec, modules/unlocked-io, modules/userspec,
41822         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
41823         modules/yesno:
41824         Remove lib_SOURCES line from Makefile.am section, as this is now
41825         done automatically by the corresponding Autoconf macro.
41826
41827 2005-03-21  Jim Meyering  <jim@meyering.net>
41828
41829         Changes imported from coreutils.
41830
41831         * lib/cycle-check.c: Don't include xalloc.h.
41832
41833         * lib/path-concat.c: Don't include assert.h.
41834         (path_concat): Remove assertion that would have triggered
41835         for ABASE starting with more than one slash.
41836         Reported by Andreas Schwab.
41837
41838         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
41839         properly when ABASE is an absolute file name.
41840         Correct the description of this function.
41841         Include <assert.h>.
41842         Add an assertion and a test driver.
41843         This fixes a bug introduced on 2004-07-02.
41844         Andreas Schwab reported the resulting failure of cp --parents:
41845         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
41846
41847 2005-03-21  Jim Meyering  <jim@meyering.net>
41848
41849         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
41850         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
41851
41852 2005-03-21  Jim Meyering  <jim@meyering.net>
41853         and  Paul Eggert  <eggert@cs.ucla.edu>
41854
41855         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
41856         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
41857         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
41858         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
41859         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
41860         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
41861         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
41862         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
41863         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
41864         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
41865         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
41866         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
41867         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
41868         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
41869         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
41870         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
41871         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
41872         for these modules.
41873
41874 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
41875
41876         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
41877         (which shouldn't happen), generate nothing instead of returning 0
41878         immediately, so that nstrftime (NULL, ...) doesn't return 0.
41879
41880 2005-03-16  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
41883         HAVE_LONGLONG_64BIT.
41884
41885 2005-03-16  Bruno Haible  <bruno@clisp.org>
41886
41887         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
41888         HAVE_LONGLONG_64BIT.
41889
41890 2005-03-16  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
41893         HAVE_LONGLONG_64BIT.
41894
41895 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41896
41897         * lib/strftime.c (my_strftime): Prepend space to format so that we can
41898         reliably distinguish strftime failure from empty output on POSIX
41899         hosts.
41900
41901 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41902
41903         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
41904         (iconv_string): Don't guess a size-zero buffer, as that might cause
41905         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
41906         result would be 'too large', where 'too large' is (heuristically)
41907         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
41908         overflow concerns.  This will prevent some unwanted malloc failures
41909         when the inputs are very large.
41910
41911 2005-03-15  Karl Berry  <karl@gnu.org>
41912
41913         * config/srclist.txt (config.rpath): from gettext.
41914         * config/config.rpath: update.
41915
41916 2005-03-15  Bruno Haible  <bruno@clisp.org>
41917
41918         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
41919         to 'negate'.
41920
41921         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
41922         variable.
41923
41924         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
41925         results.
41926
41927 2005-03-14  Simon Josefsson  <jas@extundo.com>
41928
41929         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
41930         <fx@gnu.org>.
41931
41932 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
41933
41934         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
41935         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
41936         intprops.h.
41937         * lib/strtol.c: Likewise.
41938
41939 2005-03-14  Jim Meyering  <jim@meyering.net>
41940
41941         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
41942         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
41943         to be nonzero so that we (and caller) can detect the difference
41944         between a valid zero-length expansion and an error return, even
41945         when the underlying strftime fails before writing anything into
41946         that location.
41947
41948 2005-03-14  Bruno Haible  <bruno@clisp.org>
41949
41950         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
41951         Update from GNU gettext 0.14.3.
41952
41953 2005-03-10  Jim Meyering  <jim@meyering.net>
41954
41955         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
41956
41957 2005-03-10  Jim Meyering  <jim@meyering.net>
41958
41959         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
41960         so that this module works on systems without fchdir.
41961
41962 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
41963
41964         Factor int-properties macros into a single file, except for
41965         glibc-related files.
41966         * lib/intprops.h: New file.
41967         * lib/getloadavg.c: Include it instead of limits.h.
41968         (INT_STRLEN_BOUND): Remove.
41969         * lib/human.c: Include intprops.h.
41970         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
41971         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
41972         302/1000.
41973         * lib/inttostr.h: Include intprops.h instead of limits.h.
41974         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
41975         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
41976         for consistency with intprops.h.
41977         (time_t_is_integer, twos_complement_arithmetic): Use them.
41978         * lib/sig2str.h: Include <signal.h>, intprops.h.
41979         (INT_STRLEN_BOUND): Remove.
41980         * lib/strftime.c (TYPE_SIGNED): Remove.
41981         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
41982         * lib/strtol.c: Adjust comments to match intprops.h.
41983         * lib/userspec.c: Include intprops.h.
41984         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
41985         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
41986         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
41987         instead of rolling our own expressions.
41988         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
41989
41990         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
41991         instead of int.
41992         (my_strftime): Do not mishandle years close to INT_MAX, by doing
41993         the right thing even if adding 1900 would overflow.  Similarly
41994         for tm_mon + 1 and tm_yday + 1.
41995         Make %Y always equivalent to %C%y, and similarly for %G and %g.
41996         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
41997         (DO_SIGNED_NUMBER): New macro.
41998         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
41999
42000 2005-03-07  Bruno Haible  <bruno@clisp.org>
42001
42002         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
42003
42004 2005-03-07  Bruno Haible  <bruno@clisp.org>
42005
42006         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
42007
42008 2005-03-04  Derek R. Price  <derek@ximbiot.com>
42009
42010         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
42011         (func_import): Only replace files via --import when they have actually
42012         changed.
42013
42014 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42015
42016         * m4/mmap-anon.m4: New file.
42017         * m4/pagealign_alloc.m4: New file.
42018
42019 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42020             Bruno Haible  <bruno@clisp.org>
42021
42022         * modules/pagealign_alloc: New file.
42023         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
42024
42025 2005-03-03  Derek R. Price  <derek@ximbiot.com>
42026             Bruno Haible  <bruno@clisp.org>
42027
42028         * lib/pagealign_alloc.h: New file.
42029         * lib/pagealign_alloc.c: New file.
42030
42031 2005-03-03  Bruno Haible  <bruno@clisp.org>
42032
42033         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
42034         Use an all-permissive copyright notice, recommended by RMS.
42035
42036 2005-03-02  Bruno Haible  <bruno@clisp.org>
42037
42038         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
42039         of AIX, the replacement has to be done only after <string.h> is
42040         included, therefore not in config.h. stpncpy.h does the replacement,
42041         and stpncpy.c uses it.
42042
42043 2005-03-02  Bruno Haible  <bruno@clisp.org>
42044
42045         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
42046         stpncpy.c uses it.
42047
42048 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42049
42050         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
42051         The workaround isn't strictly needed for POSIX conformance, and
42052         it's too much of a pain to configure and maintain.  We'll ask
42053         people to fix their kernels instead.
42054         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
42055         (NANOSLEEP_BUG_WORKAROUND): Remove.
42056         (xnanosleep): Remove the workaround.
42057
42058 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42059
42060         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
42061         Reported by Derek Price.
42062         (Include): Add "timespec.h".
42063
42064         * modules/xnanosleep (Depends-on): Remove gethrxtime.
42065
42066 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42067
42068         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
42069         to detect nanosleep bug.
42070
42071 2005-03-01  Bruno Haible  <bruno@clisp.org>
42072
42073         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
42074
42075 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42076
42077         * modules/gethrxtime: New file.
42078         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
42079         (Depends-on): Add gethrxtime.
42080         (configure.ac): Add gl_XNANOSLEEP.
42081         (Makefile.am): Remove lib_SOURCES line.
42082
42083 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42084
42085         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
42086         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
42087
42088 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42089
42090         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
42091         * lib/timespec.h (gettime): Return void, since it always
42092         succeeds now.  All uses changed.
42093         * lib/gettime.c (gettime) Likewise.
42094         [HAVE_NANOTIME]: Prefer nanotime.
42095         Assume gettimeofday succeeds, as POSIX requires.
42096         Assime time () succeeds, since other code already does.
42097         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
42098         (timespec_subtract): Remove.
42099         (NANOSLEEP_BUG_WORKAROUND): New constant.
42100         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
42101         things considerably.  Use it only on GNU/Linux hosts, since the
42102         workaround shouldn't be needed elsewhere.
42103
42104 2005-02-24  Bruno Haible  <bruno@clisp.org>
42105
42106         * modules/gettext (Files): Add m4/glibc2.m4.
42107
42108 2005-02-24  Bruno Haible  <bruno@clisp.org>
42109
42110         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
42111         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
42112         * m4/progtest.m4:
42113         Update from GNU gettext 0.14.2.
42114         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
42115
42116 2005-02-24  Bruno Haible  <bruno@clisp.org>
42117
42118         * lib/localcharset.c: Update from GNU gettext 0.14.2.
42119         * lib/config.charset: Update from GNU gettext 0.14.2.
42120
42121 2005-02-24  Bruno Haible  <bruno@clisp.org>
42122
42123         * lib/gettext.h: Update from GNU gettext 0.14.2.
42124
42125 2005-02-23  Simon Josefsson  <jas@extundo.com>
42126
42127         * m4/iconvme.m4: New file.
42128
42129 2005-02-23  Jim Meyering  <jim@meyering.net>
42130
42131         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
42132         change.
42133         Thanks to Bruno Haible for catching it.
42134
42135 2005-02-22  Simon Josefsson  <jas@extundo.com>
42136
42137         * modules/iconvme: New file.
42138
42139         * MODULES.html.sh: Add iconvme.
42140
42141 2005-02-22  Simon Josefsson  <jas@extundo.com>
42142
42143         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
42144
42145 2005-02-22  Simon Josefsson  <jas@extundo.com>
42146
42147         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
42148
42149 2005-02-22  Jim Meyering  <jim@meyering.net>
42150
42151         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
42152         s/ifndef/ifdef/.
42153
42154 2005-02-20  Neil Conway  <neilc@samurai.com>
42155
42156         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
42157         returned by OSX/Darwin if the specified buffer is not large
42158         enough for the hostname.
42159
42160 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42161
42162         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
42163         pass it to _help, otherwise the latter coredumps trying to
42164         dereference state.root_argp.
42165
42166 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42167
42168         * modules/chdir-long (Depends-on): Add memrchr.
42169         * modules/memrchr (Files): Add lib/memrchr.h.
42170         (Include): "memrchr.h".
42171
42172 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42173
42174         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
42175
42176 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42177
42178         * lib/memrchr.h: New file.
42179         * lib/chdir-long.c: Include it.
42180         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
42181         Don't bother including stddef.h.
42182
42183 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42184
42185         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
42186         inclusion.
42187         Include <sys/types.h>, for dev_t.
42188         (ME_DUMMY, ME_REMOTE): Move from here....
42189         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
42190         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
42191         Dmitry V. Levin.
42192         Include mountlist.h first, to test the interface.
42193
42194 2005-01-29  Bruno Haible  <bruno@clisp.org>
42195
42196         * lib/progname.c (program_name): Initialize.
42197         Needed when linking statically on MacOS X.
42198
42199 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42200
42201         Sync from coreutils.
42202         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
42203         (Depends-on): Add c-strtod.
42204         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
42205
42206 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42207
42208         Sync from coreutils.
42209         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
42210
42211         Remove files that are specific to coreutils.
42212         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
42213
42214 2005-01-28  Bruno Haible  <bruno@clisp.org>
42215
42216         * modules/javacomp: New file.
42217         * MODULES.html.sh (Java): Add javacomp.
42218
42219 2005-01-28  Bruno Haible  <bruno@clisp.org>
42220
42221         * m4/javacomp.m4: New file, from GNU gettext.
42222
42223 2005-01-28  Bruno Haible  <bruno@clisp.org>
42224
42225         * lib/javacomp.sh.in: New file, from GNU gettext.
42226         * lib/javacomp.h: New file, from GNU gettext.
42227         * lib/javacomp.c: New file, from GNU gettext.
42228
42229 2005-01-26  Simon Josefsson  <jas@extundo.com>
42230
42231         * lib/gai_strerror.c: Use GPL in header.
42232
42233 2005-01-26  Bruno Haible  <bruno@clisp.org>
42234
42235         * modules/javaexec: New file.
42236         * MODULES.html.sh (Java): Add javaexec.
42237
42238 2005-01-26  Bruno Haible  <bruno@clisp.org>
42239
42240         * m4/javaexec.m4: New file, from GNU gettext.
42241
42242 2005-01-26  Bruno Haible  <bruno@clisp.org>
42243
42244         * lib/javaexec.sh.in: New file, from GNU gettext.
42245         * lib/javaexec.h: New file, from GNU gettext.
42246         * lib/javaexec.c: New file, from GNU gettext.
42247
42248 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42249
42250         * modules/lchown (Depends-on): Remove lchown.h
42251
42252 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42253
42254         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
42255         must be defined if the header file was not found, in order
42256         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
42257
42258 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42259
42260         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
42261         initializers for struct pentry_state.
42262         (__argp_error): Check return value of __asprintf
42263         (__argp_failure): Translate error message
42264
42265         * lib/argp-parse.c: Removed braces around the expansion of N_()
42266
42267 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42268
42269         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
42270         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
42271         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
42272         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
42273         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
42274         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
42275         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
42276         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
42277         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
42278         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
42279         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
42280         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
42281         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
42282         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
42283         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
42284         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
42285         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
42286         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
42287         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
42288         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
42289         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
42290         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
42291         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
42292         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
42293         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
42294         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
42295         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
42296         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
42297         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
42298         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
42299         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
42300         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
42301         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
42302         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
42303         xstrtol.m4, xstrtoumax.m4, yesno.m4:
42304         Use an all-permissive copyright notice, recommended by RMS.
42305
42306 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42307
42308         * modules/chdir-long (Depends-on): Remove mempcpy.
42309
42310 2005-01-21  Jim Meyering  <jim@meyering.net>
42311
42312         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
42313         same value as for Solaris 9.
42314
42315         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
42316         component length.  This included changing the parameter to be
42317         of type `char *' rather than `char const *'.
42318         * lib/chdir-long.h (chdir_long): Update prototype.
42319
42320         * lib/openat.c (fdopendir, fstatat): New functions.
42321         * lib/openat.h: Include headers required for use of DIR and struct
42322         stat.
42323         [AT_SYMLINK_NOFOLLOW]: Define.
42324         (fdopendir, fstatat): Add prototypes.
42325
42326 2005-01-21  Bruno Haible  <bruno@clisp.org>
42327
42328         * modules/classpath: New file.
42329         * MODULES.html.sh (Java): Add classpath.
42330
42331 2005-01-21  Bruno Haible  <bruno@clisp.org>
42332
42333         * lib/classpath.h: New file, from GNU gettext.
42334         * lib/classpath.c: New file, from GNU gettext.
42335
42336 2005-01-20  Simon Josefsson  <jas@extundo.com>
42337
42338         * modules/version-etc-fsf: New file.
42339
42340 2005-01-20  Simon Josefsson  <jas@extundo.com>
42341
42342         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
42343         * lib/version-etc.c: Remove version_etc_copyright.
42344         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
42345         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
42346
42347 2005-01-20  Simon Josefsson  <jas@extundo.com>
42348
42349         * lib/base64.h (isbase64): Add.
42350
42351         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
42352         using a unsigned prototype, don't inline.
42353         (base64_decode): Use it.
42354
42355 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42356
42357         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
42358         it.
42359
42360 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42361
42362         * lib/save-cwd.c (save_cwd): Remove code to support the case
42363         where fchdir is missing or flaky.
42364
42365 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42366
42367         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
42368
42369 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
42372         AC_LIBSOURCES now does this.
42373         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
42374         with new ullong_max module.
42375
42376 2005-01-19  Bruno Haible  <bruno@clisp.org>
42377
42378         * modules/sh-quote: New file.
42379         * MODULES.html.sh (Executing programs): Add sh-quote.
42380
42381 2005-01-19  Bruno Haible  <bruno@clisp.org>
42382
42383         * lib/sh-quote.h: New file, from GNU gettext.
42384         * lib/sh-quote.c: New file, from GNU gettext.
42385
42386 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42387
42388         Merge from coreutils.
42389         * m4/ullong_max.m4: New file.
42390         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
42391         (gl_MACROS): Assume localeconv exists.
42392
42393 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42394
42395         Merge changes from coreutils, as described below in several
42396         changelogs dated today.
42397
42398         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
42399         (O_DIRECTORY): Remove; not needed here, since "." must be
42400         a directory.  All uses removed.
42401         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
42402         universal on Suns, and we also need to test for IRIX.
42403         Revamp code to use 'if' rather than '#if'.
42404         Avoid unnecessary comparison of cwd->desc to 0.
42405
42406         * lib/utimens.c (futimens): Robustify the previous patch, by checking
42407         for known valid error numbers rather than observed invalid ones.
42408
42409 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42410
42411         * modules/ullong_max: New file.
42412
42413         * modules/chdir-long, modules/openat: New files.
42414         * modules/save-cwd (Depends-on): Depend on chdir-long.
42415         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
42416
42417 2005-01-18  Jim Meyering  <jim@meyering.net>
42418
42419         Merge from coreutils.
42420         * m4/chdir-long.m4, m4/openat.m4: New files.
42421         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
42422         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
42423         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
42424         is sane and DOES follow symlinks.  Besides, testing 20 different
42425         systems found no broken chown implementations.
42426         Prompted by a change in rsync's copy of this macro.
42427         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
42428
42429         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
42430
42431         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
42432         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
42433         NULL-means-set-to-current-time semantics.
42434         Remove temporary file immediately, rather than waiting
42435         for configure's at-exit trap code to do it.
42436
42437 2005-01-18  Jim Meyering  <jim@meyering.net>
42438
42439         * lib/version-etc.c (version_etc_copyright): Update copyright date.
42440
42441         * lib/utimens.c (futimens): Account for the fact that futimes
42442         can also fail with errno == ENOSYS or errno == ENOENT.
42443         Patch from Dmitry V. Levin.
42444
42445         Change the name of the robust chdir function from chdir to chdir_long.
42446         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
42447         (restore_cwd): Use chdir_long, not chdir.
42448         * lib/chdir-long.c: Renamed from chdir.c.
42449         * lib/chdir-long.h: Renamed from chdir.h.
42450         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
42451         Hurd.
42452
42453 2005-01-18  Bruno Haible  <bruno@clisp.org>
42454
42455         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
42456         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
42457         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
42458         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
42459         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
42460         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
42461         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
42462         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
42463         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
42464         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
42465         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
42466         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
42467         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
42468         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
42469         Use an all-permissive copyright notice, recommended by RMS.
42470
42471 2005-01-18  Bob Proulx  <bob@proulx.com>
42472
42473         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
42474         simplify offsetof() macro construct to avoid compile failure with
42475         native HP-UX 11.0 ANSI C compiler.
42476
42477 2005-01-17  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
42480         redundant because stpncpy.m4 takes care of it.
42481
42482 2005-01-17  Bruno Haible  <bruno@clisp.org>
42483
42484         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
42485
42486 2005-01-17  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
42489         used.
42490
42491 2005-01-17  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/fwriteerror.h (fwriteerror): Change specification to include
42494         fclose.
42495         * lib/fwriteerror.c: Include <stdbool.h>.
42496         (fwriteerror): At the end, close the file stream. Record whether
42497         stdout was already closed.
42498
42499 2005-01-17  Bruno Haible  <bruno@clisp.org>
42500
42501         * lib/execute.c (environ): Declare if needed.
42502         * lib/pipe.c (environ): Likewise.
42503         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
42504
42505 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42506
42507         * modules/argp: Depend on vsnprintf
42508
42509 2005-01-10  Jim Meyering  <jim@meyering.net>
42510
42511         * modules/closeout (Depends-on): Add atexit.
42512
42513 2005-01-06  Bruno Haible  <bruno@clisp.org>
42514
42515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
42516
42517 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42518
42519         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
42520         definitions to be after all include files, to avoid collisions.
42521         Problem reported by Bob Proulx.
42522
42523 2005-01-04  Jim Meyering  <jim@meyering.net>
42524
42525         Changes imported from coreutils.
42526         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
42527         as the mkstemp template, use a temporary directory and an
42528         8.3-friendly template to avoid trouble on systems like DJGPP.
42529         Reported by Juan M. Guerrero via Stepan Kasal.
42530         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
42531         close. Remove the temporary directory right away, rather than waiting
42532         for configure's at-exit trap code to do it.
42533         Suggestion from Stepan Kasal.
42534
42535 2005-01-01  Simon Josefsson  <jas@extundo.com>
42536
42537         * gnulib-tool: Print #include directives when --import'ing.
42538
42539 2004-12-28  Simon Josefsson  <jas@extundo.com>
42540
42541         * tests/test-base64.c: Include required header files.  Remove
42542         unused variables.
42543
42544 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42545
42546         * modules/error (Depends-on): Remove gettext.
42547
42548 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42549
42550         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
42551         not needed.  This removes a dependency on the gettext module.
42552         [defined _LIBC]: Do not include <libintl.h>; not needed.
42553
42554 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42555
42556         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
42557         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
42558
42559 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42560
42561         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
42562         HAVE_DECL_STRTOLD.
42563
42564 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42565
42566         * modules/getdate (Depends-on): Remove alloca-opt.
42567
42568 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42569
42570         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
42571
42572 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42573
42574         * lib/argp-parse.c: Include <stddef.h>.
42575         (alignof, alignto): New macros.
42576         (parser_init): Don't assume that void * is aligned sufficiently
42577         for struct option.
42578
42579         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
42580         need to extend the stack.
42581         (YYINITDEPTH): New macro, so that the initial stack isn't overly
42582         large.
42583
42584 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42585
42586         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
42587
42588 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42589
42590         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
42591         (2004-10-24) change.  Apparently this was a false alarm.
42592
42593         * modules/getdate: Depend on alloca-opt, not alloca.
42594
42595 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42596
42597         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
42598         Remove now-obsolete comment about AIX.
42599         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
42600         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
42601         (YYMAXDEPTH): New macro.
42602
42603 2004-12-18  Simon Josefsson  <jas@extundo.com>
42604
42605         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
42606
42607 2004-12-18  Bruno Haible  <bruno@clisp.org>
42608
42609         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
42610
42611 2004-12-18  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/fatal-signal.c (fatal_signals): Make non-const.
42614         (init_fatal_signals): New function.
42615         (uninstall_handlers, install_handlers): Ignore signals that were set to
42616         SIG_IGN.
42617         (at_fatal_signal): Call init_fatal_signals.
42618         (init_fatal_signal_set): Likewise. Ignore signals that were set to
42619         SIG_IGN.
42620         Reported by Paul Eggert.
42621
42622 2004-12-18  Bruno Haible  <bruno@clisp.org>
42623
42624         * doc/alloca.texi: New file.
42625         * doc/alloca-opt.texi: New file.
42626
42627 2004-12-17  Jim Meyering  <jim@meyering.net>
42628
42629         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
42630         Otherwise, install-sh could exit with improper exit status when
42631         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
42632
42633 2004-12-16  Simon Josefsson  <jas@extundo.com>
42634
42635         * tests/test-base64.c: Add license.
42636
42637 2004-12-15  Stepan Kasal  <address@hidden>
42638
42639         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
42640
42641 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
42642
42643         * modules/getcwd (Files): Add m4/d-ino.m4.
42644         Suggested by Mark D. Baushke.
42645
42646 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
42647
42648         * lib/getdate.y (textint): New member "negative".
42649         (time_zone_hhmm): New function.
42650         Expect 14 shift-reduce conflicts, not 13.
42651         (o_colon_minutes): New rule.
42652         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
42653         (yylex): Set the "negative" member of signed numbers.
42654
42655 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
42656
42657         * doc/getdate.texi (Time of day items, Time zone items):
42658         Describe new formats +00:00, UTC+00:00.
42659
42660 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42661
42662         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
42663         spurious "-l"s.  Problem reported by Stepan Kasal.
42664
42665 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
42666
42667         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
42668         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
42669
42670 2004-12-04  Simon Josefsson  <jas@extundo.com>
42671
42672         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
42673         Vandoorselaere <yoann@prelude-ids.org>.
42674
42675 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42676
42677         Changes imported from coreutils.
42678         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
42679         exist.
42680         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
42681
42682 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42683
42684         Changes imported from coreutils.
42685         * lib/hard-locale.c: Assume <locale.h> exists.
42686         Include "strdup.h".
42687         (GLIBC_VERSION): New macro.
42688         (hard_locale): Assume setlocale exists.
42689         Rewrite to avoid #ifdef.
42690         Use strdup rather than malloc + strcpy.
42691         * lib/human.c: Assume <locale.h> exists.
42692         (human_readable): Assume localeconv exists.
42693
42694 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42695
42696         * modules/hard-locale (Depends-on): Add strdup.
42697
42698 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42699
42700         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
42701         convert T2, not T.  (Imported from libc.)
42702
42703 2004-11-30  Simon Josefsson  <jas@extundo.com>
42704
42705         * modules/restrict (License): Change to LGPL.
42706
42707 2004-11-30  Simon Josefsson  <jas@extundo.com>
42708
42709         * m4/restrict.m4: Add copyright and copying conditions.
42710
42711 2004-11-30  Simon Josefsson  <jas@extundo.com>
42712
42713         * m4/base64.m4: New file.
42714
42715 2004-11-30  Simon Josefsson  <jas@extundo.com>
42716
42717         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
42718         base64.
42719
42720         * tests/test-base64.c: New file.
42721
42722         * modules/base64: New file.
42723
42724 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42725
42726         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
42727         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
42728
42729         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
42730
42731 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42732
42733         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
42734         (__getcwd.c): Don't restore errno; glibc doesn't.
42735         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
42736         first, falling back to our code only if its results look suspicious.
42737         Ensure that the resulting buffer is only as large as necessary.
42738
42739         * lib/readutmp.c: Include readutmp.h first.
42740         Include <errno.h>, since readutmp.h no longer does that.
42741         * lib/readutmp.h: Don't include <errno.h>,
42742         <sys/param.h>, <time.h>; not needed to establish interface.
42743         (errno): Remove decl.
42744         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
42745         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
42746         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
42747
42748 2004-11-28  Simon Josefsson  <jas@extundo.com>
42749
42750         * lib/base64.h, base64.c: New file.
42751
42752 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
42753
42754         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
42755
42756 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
42757
42758         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
42759         (Depends-on): Remove pathmax, same.  Add mempcpy.
42760         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
42761         (Makefile.am): Append getcwd.h to lib_SOURCES.
42762         (Include): Add getcwd.h.
42763         (Maintainer): Change from Jim Meyering to "all, glibc",
42764         since getdate now uses intended-for-glibc code.
42765         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
42766         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
42767
42768 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42769
42770         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
42771         HP's ANSI C compiler.
42772         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
42773         Declaring int functions causes warnings on some modern systems and
42774         shouldn't be needed to compile on ancient ones.
42775         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
42776         defined.
42777
42778         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
42779         with the following changes.
42780         (__set_errno): Parenthesize properly.
42781         Include <stdbool.h>.
42782         (MIN, MAX, MATCHING_INO): New macros.
42783         (__getcwd): Define with prototype, not K&R form.
42784         Use heuristics to allocate default buffer on stack if possible.
42785         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
42786         behavior, and to avoid the PATH_MAX limit when computing
42787         ../../../../...
42788         Use MATCHING_INO to compare inode number to file.
42789         Check for arithmetic overflow in size calculations.
42790         Fix bug in reallocation of dot array that caused getcwd to fail
42791         on directories nested deeper than 75.
42792         Be more careful about saving errno on error.
42793         Do not use realloc; use only free+malloc, as this is a bit
42794         more flexible and avoids a needless copy operation.
42795         Do not inspect st_dev and st_ino for symbolic links; POSIX
42796         doesn't specify the latter.
42797         Check for closedir errors.
42798         Avoid needless casts.
42799         Use "#ifdef weak_alias" around weak_alias, to be like other
42800         glibc code.
42801         The following changes to getcwd.c have effect only when used in
42802         gnulib; they have no effect inside glibc proper.
42803         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
42804         as alloca isn't used.
42805         (alloca, __alloca): Likewise.
42806         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
42807         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42808         unconditionally, as gnulib assumes C89 or better.
42809         Do not include <sys/param.h>.
42810         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
42811         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
42812         better.
42813         (NULL) [!defined NULL]: Remove; we assume C89 or better.
42814         Include <dirent.h> in a way that is compatible with modern Autoconf.
42815         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
42816         New macros, if not already defined.
42817         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
42818         Use "_LIBC", not "defined _LIBC", for consistency.
42819         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
42820         a mempcpy module.
42821         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
42822         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
42823         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
42824         credit only to Jim Meyering and adjust the copyright dates.
42825         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
42826         <stdlib.h>, <unistd.h>, "pathmax.h".
42827         Instead, include "xgetcwd.h" (first) and "getcwd.h".
42828         (INITIAL_BUFFER_SIZE): Remove.
42829         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
42830
42831 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
42834         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
42835         Use the _ONCE methods, for efficiency.
42836         Check for fcntl.h.  In test program, include <errno.h>
42837         and <fcntl.h> if available.  Remove old K&R cruft from
42838         test program.  Check for common errors in GNU/Linux,
42839         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
42840         don't do AC_LIBOBJ, as that's getcwd.m4's job.
42841         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
42842         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
42843         name accordingly.
42844         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
42845         accommodate new getcwd.c.
42846         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
42847         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
42848         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
42849         that's all we need now.
42850
42851 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42852
42853         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
42854         argp-parse.c depends on getopt internals, that means we should
42855         always use our getopt, to be on the safe side.
42856         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
42857         order not to spoil the result of an eventual previous invocation
42858         of gl_GETOPT_SUBSTITUTE.
42859
42860 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42861
42862         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
42863         redefinition warnings. To avoid them, include the defines
42864         in `#if !defined __need_getopt ... #endif'. The only place
42865         where __getopt_argv_const is used is in definitions
42866         of getopt_long and getopt_long_only below, which are as well
42867         protected by `#ifndef __need_getopt'.
42868         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
42869         __need_getopt after including <stdio.h> and <unistd.h> These
42870         headers might have defined it.
42871
42872 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42873
42874         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
42875
42876 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42877
42878         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
42879         (futimens): New function, which uses futimes if available.
42880         (futimens, utimens): Support timespec==NULL, with same semantics
42881         as utime and utimens.
42882         * lib/utimens.h (futimens): New decl.
42883
42884 2004-11-23  Jim Meyering  <jim@meyering.net>
42885
42886         * lib/getopt_.h: Remove trailing blanks.
42887
42888 2004-11-23  Jim Meyering  <jim@meyering.net>
42889
42890         * lib/__fpending.c: Add comment.
42891
42892 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
42893
42894         * modules/canonicalize (Depends-on): Add xreadlink.
42895         Problem reported by James Youngman.
42896
42897 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42898
42899         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
42900         New macros.
42901         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
42902         optopt): Use them instead of invoking ## directly; otherwise, the
42903         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
42904
42905 2004-11-19  Bruno Haible  <bruno@clisp.org>
42906
42907         * lib/strtok_r.c: Move comments from here...
42908         * lib/strtok_r.h: ... to here.
42909
42910 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42911
42912         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
42913         implementations that mishandle size_t overflow.
42914
42915 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42916
42917         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
42918         might fail.  Problem reported by Yoann Vandoorselaere.
42919         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
42920         implementations that mishandle size_t overflow.
42921
42922 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42923
42924         * modules/canon-host (Depends-on): Add strdup.
42925
42926 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42927
42928         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
42929
42930 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42931
42932         * lib/canon-host.c: Include "strdup.h".
42933         (canon_host): Use getaddrinfo if available, so that IPv6 works.
42934         Use strdup instead of malloc/strcpy to duplicate strings.
42935
42936         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
42937         (human_space_before_unit): New constant.
42938         * lib/human.c (human_readable): Support it.
42939
42940         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
42941         (xgetcwd): Set errno correctly when failing.
42942         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
42943         the failure is actually due to a PATH_MAX problem.
42944
42945         Further getopt changes to make it more likely that glibc will
42946         buy the changes back.
42947         * lib/getopt.c (POSIXLY_CORRECT): New constant.
42948         (getopt): Use it, so to preserve glibc semantic
42949         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
42950         when compiling for libc.
42951         * lib/getopt_.h (__getopt_argv_const): Bring it back.
42952         (getopt_long, getopt_long_only): Use it.
42953
42954         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42955         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
42956         (getopt): Argv is now char * const *, as per standard.
42957         (_getopt_internal_r, _getopt_internal): Argv is now char **,
42958         not char *__getopt_argv_const *.
42959         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42960         _getopt_long_only_r): Likewise.
42961         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
42962         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42963         _getopt_long_r, _getopt_long_only_r): Likewise.
42964         * lib/getopt_.h (__getopt_argv_const): Remove.
42965         (getopt): Argv is now char * const *, as per standard.
42966
42967         * lib/getdate.y (tORDINAL): New token.
42968         (day, relunit): Allow it for relative times.
42969         (relative_time_table): Use tORDINAL for ordinals.
42970
42971 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42972
42973         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
42974         Document that "second" isn't allowed as an ordinal number.
42975
42976 2004-11-16  Jim Meyering  <jim@meyering.net>
42977
42978         * modules/closeout (Depends-on): Add fpending.
42979
42980 2004-11-15  Jim Meyering  <jim@meyering.net>
42981
42982         * lib/closeout.c: Include "__fpending.h" once again.
42983         Include <stdbool.h>.
42984         (close_stdout): Don't fail just because stdout was closed initially,
42985         since some programs don't write to stdout in the normal course of
42986         operation (other than --version and --help), and we don't want this
42987         function to make e.g. `touch file >&-' fail.
42988         But do fail if it was closed and someone has tried to write to it.
42989         E.g., `printf foo >&-' must fail.
42990
42991 2004-11-13  Jim Meyering  <jim@meyering.net>
42992
42993         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
42994
42995 2004-11-12  Simon Josefsson  <jas@extundo.com>
42996
42997         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
42998         small doc fix is still pending.
42999
43000 2004-11-11  Simon Josefsson  <jas@extundo.com>
43001
43002         * modules/strtok_r: New file.
43003
43004         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43005         strtok_r.
43006
43007 2004-11-11  Simon Josefsson  <jas@extundo.com>
43008
43009         * m4/strtok_r.m4: New file.
43010
43011         * m4/getopt.m4: Replace opterr.
43012
43013 2004-11-11  Simon Josefsson  <jas@extundo.com>
43014
43015         * lib/strtok_r.h, strtok_r.c: New file.
43016
43017 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43018
43019         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
43020         of replacing opterr, getopt, etc.  This should handle the
43021         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
43022
43023 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43024
43025         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
43026         we can stop lying to compilers about the constness of argv when we
43027         are compiled outside glibc.
43028         (getopt, getopt_long, getopt_long_only): Use it.
43029         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
43030         _getopt_internal, getopt): Likewise.
43031         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
43032         _getopt_long_only_r): Likewise.
43033         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
43034         _getopt_long_r, _getopt_long_only_r): Likewise.
43035
43036         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
43037         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
43038         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
43039         the other external symbols.
43040         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
43041         declaration, since the above renaming now works around collisions.
43042
43043 2004-11-11  Jim Meyering  <jim@meyering.net>
43044
43045         * lib/linebreak.c: Remove trailing blanks.
43046         * lib/alloca_.h: Likewise.
43047         * lib/acosl.c: Likewise.
43048         * lib/euidaccess.c: Likewise.
43049         * lib/allocsa.h: Likewise.
43050
43051 2004-11-10  Simon Josefsson  <jas@extundo.com>
43052
43053         * m4/getaddrinfo.m4: New file.
43054
43055 2004-11-10  Simon Josefsson  <jas@extundo.com>
43056
43057         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
43058
43059 2004-11-10  Simon Josefsson  <jas@extundo.com>
43060
43061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43062         getaddrinfo.
43063
43064         * modules/getaddrinfo: New file.
43065
43066 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43067
43068         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
43069
43070 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
43071
43072         * lib/mktime.c (SHR): New macro, which is a portable
43073         substitute for >> that should work even on Crays.
43074         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
43075         Problem reported by Mark D. Baushke in
43076         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
43077         * lib/getdate.y (SHR): Likewise.
43078         (tm_diff): Use it.
43079         * lib/strftime.c (SHR): Likewise.
43080         (tm_diff): Use it.
43081         * lib/quotearg.c (struct quoting_options): Use unsigned int for
43082         quote_these_too, so that right shifts are well defined.  All uses
43083         changed.
43084
43085 2004-11-10  Jim Meyering  <jim@meyering.net>
43086
43087         Ensure that no close failure goes unreported.
43088         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
43089         return early when it seems there's nothing to flush.
43090         Don't include __fpending.h.
43091
43092 2004-11-10  Jim Meyering  <jim@meyering.net>
43093
43094         * modules/closeout (Depends-on): Remove fpending.
43095
43096 2004-11-10  Jim Meyering  <jim@meyering.net>
43097
43098         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
43099
43100 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43101
43102         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
43103         gl_FUNC_STRFTIME.
43104         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
43105         and AC_REQUIRE when possible, to avoid duplicate checks.
43106         Check for <wchar.h>.
43107
43108 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43109
43110         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
43111
43112 2004-11-09  Bruno Haible  <bruno@clisp.org>
43113
43114         * m4/sockpfaf.m4: New file.
43115
43116 2004-11-05  Bruno Haible  <bruno@clisp.org>
43117
43118         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
43119         Reported by Mark D. Baushke <mdb@cvshome.org>.
43120
43121 2004-11-04  Bruno Haible  <bruno@clisp.org>
43122
43123         2004-09-11  Bruno Haible  <bruno@clisp.org>
43124                 * allocsa.valgrind: New file.
43125         2004-02-06  Bruno Haible  <bruno@clisp.org>
43126                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
43127                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
43128                 Reported by Christopher Seip <chris.seip@hp.com>.
43129
43130 2004-11-04  Bruno Haible  <bruno@clisp.org>
43131
43132         * modules/allocsa (Files): Add lib/allocsa.valgrind.
43133         (Makefile.am): Distribute it.
43134
43135 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
43136
43137         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
43138         with errno == ERANGE if the buffer is too small.
43139         Problem reported by Mark D. Baushke.
43140
43141 2004-11-03  Albert Chin  <china@thewrittenword.com>
43142             Paul Eggert  <eggert@cs.ucla.edu>
43143
43144         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
43145         equivalent, substitute $ac_type for equivalent type rather than
43146         blindly using uint32_t *always* which won't work if uint32_t is not
43147         available.  Define _UINT32_T to work around typedef of uint32_t if
43148         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
43149         2.5.1.
43150
43151 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43152
43153         * m4/jm-macros.m4: Sync from coreutils.
43154         (gl_MACROS): Check for mbrlen, for pathchk.
43155         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
43156
43157 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43158
43159         * lib/xreadlink.c (MAXSIZE): New macro.
43160         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
43161         size does not exceed MAXSIZE.  Avoid cast.
43162         As suggested by Mark D. Baushke in
43163         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
43164         if readlink fails with buffer size just under MAXSIZE, try again
43165         with MAXSIZE.
43166
43167 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43168
43169         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
43170
43171 2004-11-02  Derek R. Price  <derek@ximbiot.com>
43172         and  Paul Eggert  <eggert@cs.ucla.edu>
43173
43174         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
43175         (get_date): Overparenthesize to avoid GCC warning.
43176
43177 2004-11-02  Bruno Haible  <bruno@clisp.org>
43178
43179         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
43180         returns void.
43181
43182 2004-11-02  Bruno Haible  <bruno@clisp.org>
43183
43184         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
43185         function returns void.
43186
43187 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43188
43189         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
43190         fflush_unlocked, flockfile, funlockfile, funlockfile,
43191         fputs_unlocked, putc_unlocked.
43192
43193 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43194
43195         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43196         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
43197         already declared.
43198
43199 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43200
43201         * modules/getdate (Files): Add doc/getdate.texi.
43202         (Depends-on): Add setenv, xalloc.
43203
43204 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43205
43206         * lib/getdate.y: Add support for TZ="foo" within a date string.
43207         Fix some bugs near time_t boundaries.  Reject dates with
43208         out-of-range components, e.g., "Sept 31".
43209         Include <stdlib.h>, "setenv.h", "xalloc.h".
43210         (ISDIGIT_LOCALE): Remove; unused.
43211         Note that the TZ and time functions used here are not reentrant.
43212         (mktime_ok, get_tz): New functions.
43213         (TZBUFSIZE): New constant.
43214         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
43215         This requires that we sometimes generate our own TZ="XXX..." setting.
43216
43217 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43218
43219         * doc/getdate.texi: New file, from coreutils with modifications for
43220         the new TZ parsing.
43221
43222 2004-10-27  Derek R. Price  <derek@ximbiot.com>
43223
43224         * lib/mktime.c (not_equal_tm): Remove redundant check.
43225
43226 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43227
43228         * modules/regex (lib_SOURCES): Add regex.c.
43229         Reported by James Youngman in
43230         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
43231
43232 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43233
43234         * lib/getdate.y: Use Bison 1.875 features, and some minor
43235         code cleanups.  This change does not affect semantics.
43236         Don't include <stdlib.h>; no longer needed.
43237         Don't include unlocked-io.h; only the "#if TEST" code uses
43238         stdio, and performance isn't crucial there.
43239         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
43240         Bison 1.875 features as described below.
43241         All uses of "PC." replaced by "pc->".
43242         (YYSTYPE): Add a forward declaration.
43243         (yylex, yyerror): Use full prototypes in forward decls.
43244         Use "%pure-parser" rather than obsolescent "%pure_parser".
43245         Use %parse-param and %lex-param instead of obsolescent
43246         YYPARSE_PARAM and YYLEX_PARAM.
43247         (meridian_table, month_and_day_table, time_units_table,
43248         relative_time_table, time_zone_table, military_table,
43249         lookup_zone, lookup_word, get_date):
43250         Use NULL instead of 0 where appropriate.
43251         (to_hour): Avoid abort (), to avoid a dependency on
43252         stdlib.h.
43253         (yyerror, yylex): Now accepts parser_control * arg.
43254         (main) [TEST]: Use '\0' rather than 0 for char.
43255
43256 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43257
43258         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
43259
43260 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43261
43262         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
43263         It's now the caller's responsibility to handle the case where
43264         !HAVE_GETPAGESIZE && !defined getpagesize.
43265
43266         * lib/mktime.c (leapyear): Arg is long int, not int.
43267
43268 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
43269
43270         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
43271
43272 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43273
43274         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
43275         missing.  Problem reported by James Youngman.
43276
43277 2004-10-16  Simon Josefsson  <jas@extundo.com>
43278
43279         * gnulib-tool: Fix comments.  Fix parse problem.
43280         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
43281
43282 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
43283
43284         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
43285         implementation of getopt_long.  Problem reported by Alexander Taler in:
43286         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
43287
43288 2004-10-15  Bruno Haible  <bruno@clisp.org>
43289
43290         * gnulib-tool: Untabify. Initialize supplied_libname.
43291         (func_usage): More homogenous output.
43292         (func_modules_transitive_closure, func_modules_to_filelist,
43293         func_emit_lib_Makefile_am): New functions.
43294         (func_import): New function, extracted from big case statement. Use
43295         func_get_license, func_modules_transitive_closure,
43296         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
43297         opt_lgpl. Don't use test -a, as it's not portable.
43298         (func_create_testdir): Use func_modules_transitive_closure,
43299         func_modules_to_filelist, func_emit_lib_Makefile_am.
43300
43301 2004-10-15  Bruno Haible  <bruno@clisp.org>
43302
43303         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
43304
43305 2004-10-15  Bruno Haible  <bruno@clisp.org>
43306
43307         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
43308         the portions belonging to each module.
43309         Suggested by Derek Robert Price <derek@ximbiot.com>.
43310
43311 2004-10-12  Simon Josefsson  <jas@extundo.com>
43312
43313         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43314         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
43315         to real functions.
43316
43317 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43318
43319         * modules/vsnprintf: New file.
43320
43321 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43322
43323         * m4/vsnprintf.m4: New file.
43324
43325 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43326
43327         * lib/vsnprintf.h: New file.
43328         * lib/vsnprintf.c: New file.
43329
43330 2004-10-11  Bruno Haible  <bruno@clisp.org>
43331
43332         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
43333         vsnprintf.
43334
43335 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43336
43337         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
43338
43339 2004-10-07  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
43342         fits into the provided buffer.
43343
43344 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43345
43346         * lib/diacrit.c, diacrit.h: Add GPL notice.
43347
43348         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
43349         notice.
43350         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
43351         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
43352         This avoids a potential constant-folding bug.
43353
43354 2004-10-05  Bruno Haible  <bruno@clisp.org>
43355
43356         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
43357         for the declaration of strsep.
43358
43359 2004-10-05  Bruno Haible  <bruno@clisp.org>
43360
43361         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
43362
43363 2004-10-04  Simon Josefsson  <jas@extundo.com>
43364
43365         * modules/memmem: New file.
43366         * tests/test-memmem.c: New file.
43367         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
43368
43369 2004-10-04  Simon Josefsson  <jas@extundo.com>
43370
43371         * m4/memmem.m4: New file.
43372
43373 2004-10-04  Simon Josefsson  <jas@extundo.com>
43374
43375         * lib/memmem.h: New file.
43376         * lib/memmem.c: New file, taken from glibc.
43377
43378 2004-10-04  Simon Josefsson  <jas@extundo.com>
43379
43380         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
43381         '#ifdef USE_UNLOCKED_IO'.
43382
43383 2004-10-04  Simon Josefsson  <jas@extundo.com>
43384
43385         * config/srclist.txt: Add memmem from glibc.
43386
43387 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43388
43389         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
43390
43391         * modules/argmatch, modules/argp, modules/closeout, modules/error,
43392         modules/exclude, modules/getdate, modules/getline,
43393         modules/getndelim2, modules/getpass, modules/getpass-gnu,
43394         modules/getusershell, modules/linebuffer, modules/md5,
43395         modules/mountlist, modules/posixtm, modules/readtokens,
43396         modules/readutmp, modules/regex, modules/sha1,
43397         modules/version-etc, modules/yesno:
43398         Remove dependency on unlocked-io.
43399
43400 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43401
43402         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
43403
43404         * m4/unlocked-io.m4: Add copyright notice.
43405         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
43406
43407 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43408
43409         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
43410         * lib/xmalloc.c (xmemdup): Likewise.
43411         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
43412         XFREE): Remove these long-obsolescent macros.
43413         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
43414         * lib/xstrdup.c: Remove.
43415
43416         * lib/regex.c (re_comp): Cast gettext return value to char *,
43417         Problem reported by Martin Neitzel via Mark D. Baushke.
43418
43419 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43420
43421         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
43422         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
43423         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
43424         regex.c, sha1.c, version-etc.c, yesno.c:
43425         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
43426         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
43427         the includer's responsibility.
43428
43429         Sync from coreutils.
43430
43431         * lib/modechange.c (mode_compile): Don't decrement a pointer that
43432         points to the start of a string, as the C Standard says the
43433         resulting behavior is undefined.
43434
43435         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
43436         simple -> simple_backups, numbered_existing ->
43437         numbered_existing_backups, numbered -> numbered_backups
43438         to avoid shadowing problems.  All uses changed.
43439         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
43440         * lib/backupfile.c (check_extension, numbered_backup):
43441         Rename locals to avoid shadowing 'basename'.
43442         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
43443         once.
43444
43445         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
43446         * lib/.cvsignore: Add getopt.h.
43447
43448 2004-10-04  Bruno Haible  <bruno@clisp.org>
43449
43450         * modules/README: New file.
43451         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
43452         not a module.
43453
43454 2004-10-02  Jim Meyering  <jim@meyering.net>
43455
43456         * lib/dirfd.h, getpagesize.h: Add copyright notice.
43457
43458 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43459
43460         * modules/strsep: New file.
43461
43462 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43463
43464         * m4/strsep.m4: New file.
43465
43466 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43467
43468         * lib/strsep.h: New file.
43469         * lib/strsep.c: New file.
43470
43471 2004-10-01  Simon Josefsson  <jas@extundo.com>
43472
43473         * lib/snprintf.c (snprintf): Handle size==0.
43474
43475 2004-10-01  Simon Josefsson  <jas@extundo.com>
43476             Bruno Haible  <bruno@clisp.org>
43477
43478         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
43479         (snprintf): Declare 'args'.
43480
43481 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
43482
43483         * lib/snprintf.c: Remove comments as to why each header is needed.
43484
43485 2004-10-01  Bruno Haible  <bruno@clisp.org>
43486
43487         * MODULES.html.sh: Add strsep.
43488
43489 2004-09-30  Simon Josefsson  <jas@extundo.com>
43490
43491         * modules/snprintf: New file.
43492
43493 2004-09-30  Simon Josefsson  <jas@extundo.com>
43494
43495         * m4/snprintf.m4: New file.
43496
43497 2004-09-30  Simon Josefsson  <jas@extundo.com>
43498
43499         * lib/snprintf.h, lib/snprintf.c: New files.
43500
43501 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43502
43503         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
43504         (hol_entry_help): Never translate an empty string.
43505         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
43506         * lib/argp.h (OPTION_NO_TRANS): New option.
43507
43508 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43509
43510         * modules/argp (Maintainer): Replace Simon Josefsson
43511         by Sergey Poznyakoff.
43512
43513 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43514
43515         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
43516         changes merged back into glibc.
43517
43518 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43519
43520         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
43521
43522 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
43523
43524         * lib/xvasprintf.c: Include xalloc.h.
43525         (xvasprintf): Use xalloc_die, not xmalloc_die.
43526
43527 2004-09-29  Bruno Haible  <bruno@clisp.org>
43528
43529         * modules/alloca-opt: New file, derived from modules/alloca.
43530         * modules/allocsa: Depend on alloca-opt instead of alloca.
43531         * modules/setenv: Likewise.
43532         * modules/vasnprintf: Likewise.
43533         * MODULES.html.sh: Add alloca-opt.
43534
43535 2004-09-28  Simon Josefsson  <jas@extundo.com>
43536
43537         * gnulib-tool: New parameter --lgpl, to asseert that modules are
43538         LGPL, and to replace license template from GPL to LGPL.
43539
43540 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43541
43542         * modules/dummy: Change license to LGPL.
43543
43544 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43545
43546         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
43547
43548 2004-09-24  Simon Josefsson  <jas@extundo.com>
43549
43550         * modules/minmax (License): Change from GPL to LGPL.
43551
43552 2004-09-23  Simon Josefsson  <jas@extundo.com>
43553
43554         * gnulib-tool (--import): Typo.
43555
43556 2004-09-23  Simon Josefsson  <jas@extundo.com>
43557
43558         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
43559
43560 2004-09-22  Bruno Haible  <bruno@clisp.org>
43561
43562         * modules/*: Add 'License' field.
43563         * gnulib-tool: Accept --extract-license option.
43564         (func_get_license): New function.
43565
43566 2004-09-21  Bruno Haible  <bruno@clisp.org>
43567
43568         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43569         Reported by Simon Josefsson.
43570
43571 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43572
43573         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
43574         gl_AC_TYPE_LONG_LONG.
43575
43576 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43577
43578         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
43579
43580 2004-09-18  Simon Josefsson  <jas@extundo.com>
43581         and  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
43584         calls with autoreconf.  Define GL_LIB.
43585
43586 2004-09-14  Karl Berry  <karl@gnu.org>
43587
43588         * config/srclist.txt: unsync setenv.c, sigh.
43589
43590 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43591
43592         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
43593         Problem reported by Bruno Haible in:
43594         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
43595
43596 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43597
43598         * config/srclist.txt: Comment out argp-pvh.c.
43599
43600 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
43601
43602         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
43603         in case some system header has #define'd it.  Problem reported by
43604         Soeren D. Schulze in
43605         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
43606
43607 2004-09-09  Karl Berry  <karl@gnu.org>
43608
43609         * regex.[ch]: delete from the root.  These were supposed to be
43610                 synced with emacs cvs, but this has not happened for about
43611                 a year, and anyway nothing else uses emacs regex.[ch].
43612                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
43613                 lib/regex[.ch] is untouched.
43614
43615 2004-09-09  Bruno Haible  <bruno@clisp.org>
43616
43617         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
43618
43619 2004-09-09  Bruno Haible  <bruno@clisp.org>
43620
43621         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
43622         modifications.
43623         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
43624
43625 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43626
43627         * modules/xvasprintf: New file.
43628         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
43629
43630 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43631
43632         * lib/xvasprintf.h: New file.
43633         * lib/xvasprintf.c: New file.
43634         * lib/xasprintf.c: New file.
43635
43636 2004-09-08  Bruno Haible  <bruno@clisp.org>
43637
43638         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
43639
43640 2004-09-08  Bruno Haible  <bruno@clisp.org>
43641
43642         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
43643         length is > INT_MAX.
43644         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
43645         more.
43646
43647 2004-09-08  Bruno Haible  <bruno@clisp.org>
43648
43649         * lib/stdint_.h: New file, taken from GNU clisp.
43650
43651 2004-09-08  Bruno Haible  <bruno@clisp.org>
43652             Oskar Liljeblad  <oskar@osk.mine.nu>
43653
43654         * modules/stdint: New file.
43655         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
43656
43657 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43658
43659         Import from coreutils.
43660         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
43661         strings on unbounded length.  alloca's performance benefits aren't
43662         that important here.
43663         (V_STRDUP): Remove.
43664         (parse_with_separator): New function, with most of the internals
43665         of the old parse_user_spec.  Allow user to omit both user and group,
43666         for compatibility with FreeBSD.
43667         Clone only the user name, not the entire spec.
43668         Do not set *uid, *gid unless entirely successful.
43669         Avoid memory leak in some failing cases.
43670         Fix regression for USER.GROUP reported by Dmitry V. Levin in
43671         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
43672         (parse_user_spec): Rewrite to use parse_with_separator.
43673
43674 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43675
43676         * modules/userspec: Don't depend on alloca.
43677
43678 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43679
43680         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
43681
43682 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43683
43684         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
43685         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
43686         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
43687
43688 2004-08-16  Simon Josefsson  <jas@extundo.com>
43689
43690         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
43691         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
43692         Add --dry-run for --import.
43693         Let user provided command line parameters override configure.ac
43694         settings.
43695
43696 2004-08-12  Simon Josefsson  <jas@extundo.com>
43697
43698         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
43699         as discussed with Paul Eggert in threads rooted at
43700         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
43701         and
43702         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
43703         Before, the test was empty, and relied on ELIDE_CODE in source
43704         code.)
43705         (gl_PREREQ_GETOPT): New macro.
43706         (gl_GETOPT): Use them.
43707
43708 2004-08-12  Simon Josefsson  <jas@extundo.com>
43709
43710         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
43711         * lib/getopt_.h: Renamed from getopt.h.
43712
43713 2004-08-12  Simon Josefsson  <jas@extundo.com>
43714
43715         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
43716         Change default library name from libfoo to libgnu.
43717         Now, if you have a configure.ac that says:
43718                 gl_SOURCE_BASE(gl)
43719                 gl_M4_BASE(gl/m4)
43720                 gl_MODULES(error getopt etcetera)
43721                 gl_INIT
43722         you can import all you need by running:
43723                 ../gnulib/gnulib-tool --import
43724
43725         * modules/getopt (Files): Rename getopt.h to getopt_.h.
43726         (Makefile.am): Rewrite, use logic from argz.
43727         (Include): Use <getopt.h> instead of "getopt.h".
43728
43729 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43730
43731         * modules/argp (Files): Add m4/unlocked-io.m4.
43732         (Depends-on): Add extensions.
43733
43734 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43735
43736         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
43737         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
43738         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
43739         Check for program_invocation_name, program_invocation_short_name,
43740         flockfile, funlockfile, features.h, _getopt_long_only_r.
43741
43742 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43743
43744         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
43745         its complicated substitute.
43746         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
43747         and program_invocation_name.
43748         (__argp_basename) [!_LIBC]: Remove; the only use was
43749         replaced by its body.
43750         (__argp_short_program_name): Change condition from
43751         !defined __argp_short_program_name to
43752         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
43753         to match argp-namefrob.h.
43754         (__argp_failure): Don't assume strerror_r returns char *.
43755         * lib/argp-parse.c (N_): Define unconditionally.
43756         (argp_default_options): Fill out initializers with 0 to avoid
43757         gcc warnings.
43758
43759 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43760
43761         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
43762         getopt1.c.
43763
43764 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43765
43766         Merge from coreutils.
43767
43768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
43769
43770         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
43771         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
43772
43773 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43774
43775         Merge from coreutils.
43776
43777         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
43778         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
43779         for Reliant Unix 5.43.
43780
43781         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
43782         (union fooround): Use uintmax_t, not long int.
43783         The rest is a merge from libc:
43784         [defined _LIBC]: Include <shlib-compat.h>.
43785         (_obstack) [defined _LIBC]: Remove after 2.3.4.
43786
43787         * lib/settime.c (settime): Recode to avoid warning with
43788         Sun Forte C 6U2.
43789
43790         * lib/strverscmp.c: Convert to UTF-8.
43791
43792 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43793
43794         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
43795         m4/uintmax_t.m4.
43796
43797 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43798
43799         * modules/xalloc-die: New file.
43800         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
43801
43802         * modules/md5 (Files): Add m4/uint32_t.m4.
43803         * modules/sha1: Renamed from modules/sha.
43804         (Files):
43805         Rename lib/sha.h to lib/sha1.h.
43806         Rename lib/sha.c to lib/sha1.c.
43807         Rename m4/sha.m4 to m4/sha1.m4.
43808         (lib_SOURCES): Likewise.
43809         (configure.ac): Rename gl_SHA to gl_SHA1.
43810         (Include): sha.h -> sha1.h.
43811
43812 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43813
43814         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
43815         * m4/sha1.m4: Renamed from sha.m4.
43816         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
43817
43818 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43819
43820         * lib/obstack.h (obstack_empty_p):
43821         Don't assume that chunk->contents is suitably aligned.
43822         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
43823         Likewise. Problem reported by Benno in
43824         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
43825
43826         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
43827         readable.  This could be improved further but it'd take some work.
43828
43829 2004-08-08  Simon Josefsson  <jas@extundo.com>
43830
43831         * modules/xgethostname (Depends-on): Remove exit and error (not
43832         used).
43833
43834         * modules/getpass-gnu: Add getpass.h.
43835         (Depends-on): Add stdbool.
43836         * modules/getpass: Add getpass.h.
43837
43838 2004-08-08  Simon Josefsson  <jas@extundo.com>
43839
43840         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
43841         Check getpass declaration.
43842
43843 2004-08-08  Simon Josefsson  <jas@extundo.com>
43844
43845         * lib/xgethostname.c: Don't include error.h (not used).
43846
43847         * lib/getpass.h: Add.
43848         * lib/getpass.c: Include getpass.h first.
43849
43850 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
43851
43852         * lib/xalloc-die.c: New file.
43853         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
43854         All uses removed.
43855         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
43856         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
43857         xalloc-die.c.
43858         (_, N_, xalloc_die): Move to xalloc-die.c.
43859         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
43860         so that we needn't mess with xalloc_msg_memory_exhausted.
43861
43862         * lib/sha1.h: Renamed from sha.h.
43863         (SHA1_H): Renamed from _SHA_H.
43864         (sha1_ctx): Renamed from sha_ctx.
43865         (sha1_init_ctx): Renamed from sha_init_ctx.
43866         (sha1_process_block): Renamed from sha_process_block.
43867         (sha1_process_bytes): Renamed from sha_process_bytes.
43868         (sha1_finish_ctx): Renamed from sha_finish_ctx.
43869         (sha1_read_ctx): Renamed from sha_read_ctx.
43870         (sha1_stream): Renamed from sha_stream.
43871         (sha1_buffer): Renamed from sha_buffer.
43872         * lib/sha1.c: Likewise; renamed from sha.c.
43873         Do not include <sys/types.h>.
43874         Include <stddef.h> rather than <stdlib.h>.
43875
43876 2004-08-08  Bruno Haible  <bruno@clisp.org>
43877
43878         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
43879         FILESYSTEM_PREFIX_LEN.
43880         * lib/progreloc.c: Likewise.
43881         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
43882
43883 2004-08-06  Simon Josefsson  <jas@extundo.com>
43884
43885         * modules/progname (Depends-on): Don't depend on stdbool.
43886
43887 2004-08-06  Simon Josefsson  <jas@extundo.com>
43888
43889         * modules/getsubopt: New file.
43890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43891         getsubopt.
43892
43893 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43894
43895         More merge from coreutils.
43896
43897         * m4/utimens.m4, m4/utimecmp.m4: New files.
43898         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
43899         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
43900         prereq.m4, sha.m4: Import changes from coreutils.
43901
43902 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43903
43904         More merge from coreutils.
43905         * modules/raise, modules/readtokens0, modules/utimens:
43906         * modules/utimecmp, module/xnanosleep: New files.
43907         * modules/strftime: Add lib/strftime.h.
43908         Change include from <time.h> to "strftime.h".
43909         * modules/yesno: Add lib/yesno.h.
43910         * modules/backupfile: Remove lib/addext.c.
43911         * modules/euidaccess: Add stat-macros.h.
43912         * modules/canonicalize, modules/euidaccess,
43913         modules/filemode, modules/lchown, modules/makepath,
43914         modules/rmdir, modules/stat: Likewise.
43915
43916 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43917
43918         Merge from tar.
43919         * lib/argp-help.c (make_hol, hol_append): Don't assume that
43920         SIZE_MAX is a valid preprocessor constant.
43921         (__argp_basename): Change from "#ifndef _LIBC"
43922         to "#ifndef __argp_short_program_name", so that
43923         we don't compile these functions for tar.
43924
43925         More merges from coreutils.
43926         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
43927         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
43928         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
43929         * lib/addext.c: Remove; no longer needed.
43930         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
43931         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
43932         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
43933         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
43934         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
43935         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
43936         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
43937         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
43938         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
43939         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43940         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
43941         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
43942         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
43943         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
43944         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
43945         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
43946         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
43947         Import changes from coreutils.
43948
43949 2004-08-05  Simon Josefsson  <jas@extundo.com>
43950
43951         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
43952
43953 2004-08-05  Simon Josefsson  <jas@extundo.com>
43954
43955         * m4/getsubopt.m4: New file.
43956
43957 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43958
43959         Merge from coreutils.
43960
43961         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
43962         * m4/getcwd-path-max.m4: New files.
43963
43964         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
43965         FILESYSTEM_PREFIX_LEN ->
43966         FILE_SYSTEM_PREFIX_LEN.
43967         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
43968         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
43969         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
43970         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
43971
43972         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
43973         prerequisite modules now handle the DOS stuff.
43974         Don't check for unistd.h.
43975
43976 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43977
43978         Merge from coreutils.
43979
43980         * lib/.gdb-history: Remove; this doesn't belong here.
43981
43982         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
43983         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
43984         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
43985         * lib/getcwd.c: New files.
43986
43987         * lib/dirname.h: Include <stdbool.h>.
43988         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
43989         for consistency with POSIX terminology.  All uses changed.
43990         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
43991         (strip_trailing_slashes): Use bool for booleans.
43992         * lib/stripslash.c (strip_trailing_slashes): Likewise.
43993
43994         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
43995         sometimes returns a positive errno value even when it succeeds.
43996         (print_errno_message) [!LIBC]: Fall back on strerror if
43997         __strerror_r fails.
43998
43999         * lib/path-concat.c (mempcpy): Don't define if a system header defines
44000         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
44001         (longest_relative_suffix): New function.
44002         (path_concat): Use it.  Assume first argument is not NULL.
44003         Port to DOS.  Omit redundant separators.
44004         Report an error instead of returning NULL.
44005         Use mempcpy instead of memcpy.
44006         (xpath_concat): Remove: not declared or used.
44007
44008         * lib/same.h: Include <stdbool.h>
44009         (same_name): Return bool, not int.
44010         * lib/same.c (same_name): Likewise.
44011         (errno): Don't declare; we assume C89 or better now.
44012
44013         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
44014         if not already defined.
44015
44016         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
44017         * lib/dup-safer.c (errno): Likewise.
44018
44019 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
44020
44021         Merge from coreutils.
44022         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
44023         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
44024         * modules/path-concat: Don't depend on strdup.
44025
44026 2004-08-03  Simon Josefsson  <jas@extundo.com>
44027
44028         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
44029         * lib/progname.h: Don't include stdbool.h.
44030
44031 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44032
44033         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
44034         * MODULES.html.sh (func_all_modules): Remove fatal.
44035
44036 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44037
44038         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
44039
44040 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
44041
44042         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
44043         working.
44044
44045 2004-08-02  Simon Josefsson  <jas@extundo.com>
44046
44047         * lib/getsubopt.h: New file, with comments from Bruno Haible.
44048         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
44049         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
44050
44051 2004-08-01  Simon Josefsson  <jas@extundo.com>
44052
44053         * lib/xgetdomainname.c: Include stdlib.h, for free().
44054
44055 2004-07-19  Bruno Haible  <bruno@clisp.org>
44056
44057         * MODULES.html.sh (func_all_modules): Add dummy.
44058
44059 2004-07-16  Simon Josefsson  <jas@extundo.com>
44060
44061         * modules/dummy: New file.
44062
44063 2004-07-16  Simon Josefsson  <jas@extundo.com>
44064
44065         * lib/dummy.c: New file.
44066
44067 2004-07-16  Bruno Haible  <bruno@clisp.org>
44068
44069         * lib/backupfile.h: Add extern "C" for C++.
44070         * lib/closeout.h: Likewise.
44071         * lib/copy-file.h: Likewise.
44072         * lib/findprog.h: Likewise.
44073         * lib/full-write.h: Likewise.
44074         * lib/pathname.h: Likewise.
44075         * lib/progname.h: Likewise.
44076         * lib/stpcpy.h: Likewise.
44077         * lib/stpncpy.h: Likewise.
44078         * lib/strcase.h: Likewise.
44079         * lib/strstr.h: Likewise.
44080         * lib/xalloc.h: Likewise.
44081
44082         * lib/mbswidth.h: Add extern "C" for C++.
44083         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
44084
44085 2004-07-13  Robert Millan  <robertmh@gnu.org>
44086
44087         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
44088
44089 2004-07-09  Simon Josefsson  <jas@extundo.com>
44090
44091         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
44092         failed without this.)
44093
44094 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44095
44096         * modules/chown (Files): Add lib/fchown-stub.c, since
44097         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
44098
44099 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44100
44101         * lib/fchown-stub.c: New file.
44102
44103 2004-06-24  Jim Meyering  <jim@meyering.net>
44104
44105         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
44106
44107 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44108
44109         * modules/argz: Omit "#include".
44110
44111         * MODULES.html.sh (func_all_modules): Add calloc, to match
44112         2004-06-01 addition of calloc module.
44113
44114 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44115
44116         * m4/argz.m4: New file, which is autoupdated from libtool.
44117
44118 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44119
44120         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
44121         libtool.
44122
44123 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         * config/srclist-update: Don't insist on "USA." before the
44126         close-comment, as libtool omits the period and puts the */ on a
44127         separate line.
44128         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
44129         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
44130
44131 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
44132
44133         * modules/argz: New file.
44134         * MODULES.html.sh (func_all_modules): Add argz.
44135
44136 2004-06-12  Jim Meyering  <jim@meyering.net>
44137         and  Paul Eggert  <eggert@cs.ucla.edu>
44138
44139         * modules/hash (Files): Add lib/xalloc.h.
44140         * modules/pipe (Depends-on): Add wait-process.
44141         * modules/stat (Depends-on): Add xalloc.
44142         * modules/userspec (Files): Add lib/userspec.h.
44143         * modules/xstrto
44144
44145         Upgrade from gettext-0.13.
44146         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
44147         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
44148         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
44149
44150 2004-06-10  Jim Meyering  <jim@meyering.net>
44151
44152         * lib/calloc.c: New file.
44153
44154 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44155
44156         * lib/getdate.y (yylex): Allow space between sign and number.
44157         Problem reported by Dan Jacobson.
44158
44159 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44160
44161         Merge from coreutils CVS.
44162
44163         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
44164         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
44165         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
44166         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
44167         xstrtol.m4: Fix copyright date and/or serial number.
44168
44169         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
44170         See if we need an fchown replacement.
44171         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
44172         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
44173         and use the replacement function if we detect either defect.
44174
44175         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
44176         gl_UTIMECMP.
44177
44178 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44179         and  Jim Meyering  <jim@meyering.net>
44180
44181         Merge from coreutils CVS.
44182
44183         * lib/stat-macros.h: New file, with contents from file-type.h
44184         and coreutils' system.h.
44185         * lib/file-type.c: Include "stat-macros.h".
44186         * lib/file-type.h (file_type): Move all macro definitions to new file,
44187         stat-macros.h.
44188
44189         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
44190         Wrap old code with this conditional.
44191         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
44192         function that does not dereference symlinks.
44193         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
44194
44195         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
44196         dependency problems.
44197         (xreadlink): Accept new arg SIZE, for efficiency.
44198         All decls and uses changed.
44199         * lib/xreadlink.h: Include <stddef.h>, for size_t.
44200
44201         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
44202         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
44203
44204         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
44205         sysexits.h.
44206
44207 2004-06-01  Jim Meyering  <jim@meyering.net>
44208
44209         * m4/calloc.m4: New file.
44210
44211 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
44212
44213         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
44214         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
44215         Also, fix a typo in a diagnostic.
44216
44217 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44218
44219         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
44220         or AC_FUNC_REALLOC.
44221
44222 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44223
44224         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
44225         macros to be defined.
44226         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
44227         the allocator returns NULL because the requested size is zero.
44228
44229 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44230
44231         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
44232         var.  Add comment explaining why libc still defines it.  This
44233         merges the following patch from glibc:
44234         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
44235
44236 2004-05-20  Andreas Schwab  <schwab@suse.de>
44237
44238         * m4/free.m4: Replace free if it not known to work, not the other
44239         way round.
44240
44241 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44242
44243         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
44244         present in glibc since revision 1.1 of this file.
44245         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
44246         obstack_alignment_mask, obstack_alloc, obstack_base,
44247         obstack_blank, obstack_blank_fast, obstack_chunk_size,
44248         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
44249         obstack_grow0, obstack_init, obstack_int_grow,
44250         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
44251         obstack_next_free, obstack_object_size, obstack_ptr_grow,
44252         obstack_ptr_grow_fast, obstack_room): Remove declarations of
44253         nonexistent functions.
44254
44255 2004-05-18  Karl Berry  <karl@gnu.org>
44256
44257         * config/srclist.txt: break link for vasnprintf.c.
44258
44259 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44260
44261         Port obstack to the AS/400, where pointers are 16 bytes wide and
44262         you cannot cast an integer to a valid pointer.  This patch is
44263         currently waiting to be integrated into glibc; see
44264         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
44265
44266         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
44267         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
44268         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
44269         (struct obstack): temp member is now a union of a pointer and
44270         an integer, instead of an integer.  All integer uses changed.
44271         This does not affect the physical layout of struct obstack,
44272         except on hosts (like the AS/400) where the size or alignment of
44273         void * is greater than that of ptrdiff_t.
44274         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
44275         __STDC__)]: Store temporary in pointer member of union, not
44276         integer member.
44277         * lib/obstack.c: Include <stddef.h>, for offsetof.
44278         (struct fooalign): Remove; it doesn't need a name.
44279         (union fooround): Change double to long double, and add void *.
44280         (DEFAULT_ALIGNMENT): Use offsetof to compute.
44281         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
44282         not a macro.  Hence the values are always int; so remove all
44283         casts-to-int in uses.
44284
44285 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44286
44287         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
44288         we can get this patch merged into glibc.
44289
44290 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44291             Paul Eggert  <eggert@cs.ucla.edu>
44292
44293         * m4/argp: Depend on alloca.
44294
44295 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44296             Paul Eggert  <eggert@cs.ucla.edu>
44297
44298         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
44299         freecoding.
44300
44301 2004-05-17  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
44304         precision that consists of a '.' followed by an empty digit string.
44305         Patch by Tor Lillqvist <tml@iki.fi>.
44306
44307 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44308
44309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
44310         for backward compatibility with older code.  We need our own
44311         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
44312         it under some other name, and our alloca.h will define it.
44313
44314 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44315             Derek Price  <derek@ximbiot.com>
44316
44317         * lib/alloca.c: Include <alloca.h>, to get our interface.
44318         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
44319         include <alloca.h> first.  Use C89 prototype for alloca; this
44320         requires including <stddef.h> for size_t.  Use extern "C" if C++.
44321         Use #elif for simplicity, since we can assume C89 now.
44322         Don't try to source the system alloca.h since it will not be found
44323         and to prevent recursively including its replacement.
44324         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
44325         * lib/regex.c: Likewise.
44326
44327 2004-05-16  Derek Price  <derek@ximbiot.com>
44328             Paul Eggert  <eggert@cs.ucla.edu>
44329
44330         getline cleanup.  This changes the getndelim2 API: both order of
44331         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
44332         no delimiter).
44333
44334         * lib/getline.c: Don't include stddef.h or stdio.h, since our
44335         interface does that.
44336         (getline): Always use getdelim, so that we don't have two
44337         copies of this code.
44338         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
44339         if available.
44340         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
44341         (GETNDELIM2_MAXIMUM): New macro.
44342         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
44343         instead of the old practice of delim2==0.  All callers changed.
44344         Return -1 on overflow, instead of returning junk.
44345         Do not set *linesize unless allocation succeeds.
44346         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
44347         that we include sys/types.h.
44348         * lib/getnline.h: Likewise.
44349         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
44350         (getndelim2): Reorder arguments.
44351         * lib/getnline.c (getnline, getndelim):
44352         Don't discard the NMAX argument.
44353         (getnline): Invoke getndelim, to avoid code duplication.
44354         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
44355         of (size_t) -1 by callers of the getnline family.
44356
44357 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44358
44359         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
44360         Check for gettimeofday.
44361         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
44362         Check for settimeofday, stime.
44363
44364 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44365
44366         * lib/nanosleep.c (suspended): Change its type from int to
44367         sig_atomic_t volatile.
44368         (first_call): Make it private to rpl_nanosleep, and have it
44369         be zero initially as that's a bit faster.
44370         (my_usleep): Round up fractional times instead of truncating them,
44371         as this is the usual meaning for 'sleep'.
44372
44373         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
44374         doesn't work.
44375         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
44376         (ENOSYS): Define if not defined.
44377         (settime): Fall back on stime if it exists and settimeofday fails.
44378         But don't bother with fallbacks if a method fails with errno == EPERM.
44379
44380 2004-05-11  Jim Meyering  <jim@meyering.net>
44381
44382         Prior to this change, the save_cwd caller required read access to the
44383         current directory on most systems (ones with the fchdir function).
44384
44385         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
44386         fails, try write-only, and finally, resort to using xgetcwd.
44387
44388 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
44389
44390         * lib/obstack.c, obstack.h: Import changes from libc.
44391
44392 2004-04-28  Bruno Haible  <bruno@clisp.org>
44393
44394         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
44395         also implicitly appends .exe to executables.
44396         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
44397         accepts Windows pathnames.
44398         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44399         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44400         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44401         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44402         Reported by Derek Robert Price <derek@ximbiot.com>.
44403
44404 2004-04-21  Karl Berry  <karl@gnu.org>
44405
44406         * config/srclist.txt (localcharset.c): break sync.
44407
44408 2004-04-20  Paul Eggert  <eggert@twinsun.com>
44409
44410         * m4/host-os.m4: Add a copyright notice.
44411
44412 2004-04-20  Jim Meyering  <jim@meyering.net>
44413
44414         Change UTILS_ to gl_ in AC_DEFINE'd names.
44415         Change utils_- and jm_-prefixed variables, too.
44416         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
44417         UTILS_FUNC_MKDIR_TRAILING_SLASH.
44418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
44419
44420         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
44421         Don't emit trailing blanks.
44422         Also rename jm_-prefixed variables to have gl_ prefix.
44423
44424         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
44425         Also rename jm_-prefixed variables to have gl_ prefix.
44426
44427         * m4/jm-macros.m4: Reflect the renamings.
44428         * m4/prereq.m4: Likewise.
44429
44430 2004-04-20  Jim Meyering  <jim@meyering.net>
44431
44432         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
44433         memory.
44434
44435 2004-04-20  Jim Meyering  <jim@meyering.net>
44436             Bruno Haible  <bruno@clisp.org>
44437
44438         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
44439         memory when realloc fails.
44440
44441 2004-04-19  Jim Meyering  <jim@meyering.net>
44442
44443         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
44444         now that readutmp.c may call `free (0)'.
44445
44446 2004-04-19  Bruno Haible  <bruno@clisp.org>
44447
44448         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
44449         * m4/inttypes_h.m4: Likewise.
44450         * m4/stdint_h.m4: Likewise.
44451         * m4/intmax_t.m4: Likewise.
44452         * m4/uintmax_t.m4: Likewise.
44453
44454 2004-04-18  Jim Meyering  <jim@meyering.net>
44455
44456         * m4/prereq.m4: Don't forbid jm_ prefix.
44457
44458         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
44459         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
44460         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
44461         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
44462         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
44463         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
44464         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
44465         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
44466         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
44467         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
44468         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
44469         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
44470         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
44471         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
44472         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
44473         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
44474         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
44475         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
44476         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
44477
44478 2004-04-18  Jim Meyering  <jim@meyering.net>
44479
44480         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
44481         failure, don't leak memory and do call END_UTMP_ENT.
44482
44483 2004-04-16  Jim Meyering  <jim@meyering.net>
44484
44485         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
44486         coreutils' stat program.
44487         (gl_PREREQ): Don't require jm_PREREQ_STAT.
44488
44489 2004-04-11  Paul Eggert  <eggert@twinsun.com>
44490
44491         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
44492         C89.
44493         (CHAR_BIT): Remove, since we assume C89.
44494         Include <stdint.h> if available, as per current Autoconf CVS advice.
44495
44496 2004-03-31  Jim Meyering  <jim@meyering.net>
44497
44498         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
44499         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
44500         * m4/xalloc.m4: Likewise.
44501
44502 2004-03-30  Paul Eggert  <eggert@twinsun.com>
44503
44504         Merge from coreutils.
44505
44506         * m4/inttostr.m4: New file.
44507         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
44508         Require AM_STDBOOL_H and gl_TIMESPEC instead.
44509         Require gl_CLOCK_TIME.
44510         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
44511
44512 2004-03-30  Paul Eggert  <eggert@twinsun.com>
44513
44514         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
44515         not bool, to be more consistent with Unix conventions.
44516         Suggested by Bruno Haible.
44517
44518         Merge from coreutils.
44519
44520         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
44521         * lib/umaxtostr.c: New files.
44522
44523         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
44524         the usual <time.h> dance.
44525         (get_date): Change signature to support fractional time stamps.
44526         All callers changed.
44527         * lib/getdate.y: Include "getdate.h" first, as we can now
44528         assume C89 and don't need to worry about 'const'.
44529         Similarly, include "unlocked-io.h" near start, not in middle.
44530         Include <limits.h>.
44531         (textint.value): Use long int rather than int.
44532         (textint.digits): Use size_t rather than int.
44533         (BILLION, LOG10_BILLION): New constants.
44534         (parser_control): New member rel_ns.  Members day_ordinal,
44535         time_zone, month, day, hour, minutes, rel_year, rel_month,
44536         rel_day, rel_hour, rel_minutes, rel_seconds
44537         are now long int, not int.  Member seconds is now struct timespec,
44538         not int.  New member timespec_seen.  Members dates_seen, days_seen,
44539         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
44540         not int.
44541         (%union.intval): Now long int, not int.
44542         New member timespec.
44543         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
44544         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
44545         (spec): Now is a timespec or an item list.
44546         (timespec, items): New nonterminals.
44547         (time, rel, relunit, number, get_date):
44548         Add support for fractional seconds.
44549         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
44550         (gmtime, localtime, mktime): Remove decls; not needed with C89.
44551         (to_hour): First arg is now long int, not int.
44552         (to_year): Returns long int, not int.
44553         Don't treat year -70 like 70.
44554         (tm_diff): Returns long int, not int.
44555         (lookup_word): Use bool instead of int when appropriate.
44556         (yylex): Use size_t for count, not int.
44557         Detect overflow when parsing large integer constants.
44558         Add support for fractions.
44559         (get_date): Make pointers 'const' if possible.
44560         Use more-portable code to detect integer overflow.
44561         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
44562         Don't use ctime; it's not reliable if the year has >4 digits.
44563
44564         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
44565         This is for compatibility with BSD.
44566
44567         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
44568         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
44569         From coreutils' system.h.
44570
44571         * lib/userspec.c: Don't include "posixver.h".
44572         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
44573         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
44574         compatible extension.  Simplify code by removing a boolean int
44575         that was always nonzero if a string was nonnull.
44576
44577 2004-03-30  Jim Meyering  <jim@meyering.net>
44578
44579         Merge from coreutils.
44580
44581         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
44582         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
44583         on some systems one must include <grp.h> before it.
44584         Reported by Christian Krackowizer.
44585
44586 2004-03-30  Jim Meyering  <jim@meyering.net>
44587
44588         Merge from coreutils.
44589
44590         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
44591
44592         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
44593         an empty input stream.
44594
44595         * lib/readtokens.c: Include <stdbool.h>.
44596         (readtoken): Use `size_t' rather than int/long.
44597         All callers adjusted.
44598         Use `bool' rather than `int' where appropriate.
44599         Use memset rather than an explicit loop.
44600         Use x2nrealloc rather than xrealloc.
44601         Allow the use of `\0' as a delimiter.
44602         (readtokens): Likewise.
44603         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
44604
44605 2004-03-30  Jim Meyering  <jim@meyering.net>
44606
44607         * m4/realloc.m4: Remove file, since now it does no more than
44608         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
44609         the `configure.ac' section of module/realloc.
44610         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
44611
44612 2004-03-30  Bruno Haible  <bruno@clisp.org>
44613
44614         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
44615         nonnull.
44616
44617 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44618
44619         Merge changes to getloadavg.c from coreutils and Emacs.
44620
44621         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
44622         Define to an expression, not to the empty string.
44623         Include cloexec.h and xalloc.h.
44624         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
44625         Use set_cloexec_flag rather than rolling our own.
44626         * lib/cloexec.c, lib/cloexec.h: New files.
44627
44628 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44629
44630         * m4/cloexec.m4: New file.
44631
44632 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44633
44634         * lib/getopt.h: Sync with libc CVS.
44635
44636 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44637             Bruno Haible  <bruno@clisp.org>
44638
44639         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
44640         mbswidth.
44641
44642 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44643             Bruno Haible  <bruno@clisp.org>
44644
44645         * lib/mbswidth.h: Include <wchar.h> only if
44646         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
44647         <wchar.h>.
44648         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
44649
44650 2004-03-09  Paul Eggert  <eggert@twinsun.com>
44651
44652         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
44653         Sync with libc CVS.
44654         * lib/getopt_int.h: New file, also synced from libc.
44655
44656 2004-03-09  Paul Eggert  <eggert@twinsun.com>
44657
44658         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
44659         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
44660         Bring back getopt.c, getopt.h, getopt1.c.
44661
44662 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44663
44664         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
44665         All uses changed.  Check for sa_sigaction member; this fixes
44666         a bug first reported by Jason Andrade in
44667         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44668
44669 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44670
44671         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
44672         '#if' expressions.  Unlike the code it replaces, it does not
44673         depend on (defined _SC_PAGESIZE).  However, it does depend on
44674         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
44675         first reported by Jason Andrade in
44676         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44677
44678 2004-02-25  Simon Josefsson  <jas@extundo.com>
44679
44680         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
44681
44682 2004-02-25  Simon Josefsson  <jas@extundo.com>
44683
44684         * lib/strdup.h: New file.
44685         * lib/strdup.c: Include it.
44686         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
44687         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
44688
44689 2004-02-23  Karl Berry  <karl@gnu.org>
44690
44691         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
44692         (from fencepost.gnu.org:/gd/gnuorg).
44693
44694 2004-02-23  Karl Berry  <karl@gnu.org>
44695
44696         * config/srclistvars.sh (GNUORG) [karl]: redefine.
44697         * config/srclist.txt: add maintain/standards documents.
44698
44699 2004-02-18  Bruno Haible  <bruno@clisp.org>
44700
44701         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
44702         Reported by Derek Robert Price <derek@ximbiot.com>.
44703
44704 2004-02-16  Karl Berry  <karl@gnu.org>
44705
44706         * config/mkinstalldirs, install-sh: update from automake.
44707
44708 2004-02-06  Karl Berry  <karl@gnu.org>
44709
44710         * m4/po.m4: update from gettext 0.14.1.
44711
44712 2004-02-06  Karl Berry  <karl@gnu.org>
44713
44714         * lib/config.charset: update from gettext 0.14.1.
44715
44716 2004-02-05  Paul Eggert  <eggert@twinsun.com>
44717
44718         Add comments and code, prompted by suggestions from Bruno Haible
44719         for sh-quote.
44720         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
44721         describing the enum quoting_style values.
44722         * lib/quotearg.c (quotearg_alloc): New function.
44723         (quotearg_buffer_restyled): Treat lone { and } as special.
44724         Treat = as special.  Work around bug with older shells
44725         that "see" a '\' that is really the 2nd byte of a multibyte char.
44726         Quote empty string with shell_quoting_style.
44727
44728 2004-02-03  Bruno Haible  <bruno@clisp.org>
44729
44730         * m4/pipe.m4: New file, from GNU gettext.
44731
44732 2004-02-03  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/pipe.h: New file, from GNU gettext.
44735         * lib/pipe.c: New file, from GNU gettext.
44736
44737 2004-01-27  Bruno Haible  <bruno@clisp.org>
44738
44739         * m4/execute.m4: New file, from GNU gettext.
44740
44741 2004-01-27  Bruno Haible  <bruno@clisp.org>
44742
44743         * lib/execute.h: New file, from GNU gettext.
44744         * lib/execute.c: New file, from GNU gettext.
44745         * lib/w32spawn.h: New file, from GNU gettext.
44746
44747 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44748
44749         Merge from diffutils.
44750
44751         * lib/file-type.c (file_type): Add typed memory objects.
44752         * lib/file-type.h (S_TYPEISTMO): New macro.
44753
44754         * lib/c-stack.h (c_stack_action): Remove argv argument.
44755         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
44756         (die): Don't calculate message unless segv_action returns.
44757         (get_stack_location, min_address_from_argv, max_address_from_argv,
44758         volatile stack_base, volatile_stack_size): Remove.
44759         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
44760         that every segmentation violation is a stack overflow.  (Ouch!)
44761         See Debian bug 136249 (still outstanding) for more info about why
44762         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
44763
44764 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44765
44766         Exit-status fix from coreutils.
44767
44768         Use exit_failure consistently in place of EXIT_FAILURE,
44769         so that program exit statuses are consistent on failure.
44770
44771         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
44772         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
44773         * lib/argmatch.h: Comment fix to match the above.
44774         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
44775         Now a macro referring to exit_failure, instead of a separate
44776         variable.  Include "exitfail.h" to get it.
44777         * lib/xstrtol.h: Include "exitfail.h".
44778         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
44779
44780         * lib/long-options.c (parse_long_options): Use prototype
44781         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
44782         for clarity.
44783
44784 2004-01-21  Jim Meyering  <jim@meyering.net>
44785
44786         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
44787         so as not to conflict with a different-sized __mktime_internal
44788         function in GNU libc.
44789         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
44790         Problem building statically-linked `ls' reported by Michael Brunnbauer.
44791
44792 2004-01-20  Karl Berry  <karl@gnu.org>
44793
44794         * config/config.guess: update from config.
44795
44796         * config/srclistvars.sh: GNUWWWLICENSES for karl.
44797
44798 2004-01-20  Bruno Haible  <bruno@clisp.org>
44799
44800         Safer stack allocation.
44801         * lib/setenv.c: Include allocsa.h.
44802         (alloca): Remove fallback definition.
44803         (freea): Remove macro.
44804         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
44805         instead of freea.
44806
44807 2004-01-20  Bruno Haible  <bruno@clisp.org>
44808
44809         * m4/eealloc.m4: New file, from GNU gettext.
44810
44811 2004-01-20  Bruno Haible  <bruno@clisp.org>
44812
44813         * m4/allocsa.m4: New file, from GNU gettext.
44814
44815 2004-01-20  Bruno Haible  <bruno@clisp.org>
44816
44817         * lib/xallocsa.h: New file, from GNU gettext.
44818         * lib/xallocsa.c: New file, from GNU gettext.
44819
44820 2004-01-20  Bruno Haible  <bruno@clisp.org>
44821
44822         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
44823
44824 2004-01-20  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
44827         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
44828         specially.
44829
44830 2004-01-20  Bruno Haible  <bruno@clisp.org>
44831
44832         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
44833         patch.
44834
44835 2004-01-20  Bruno Haible  <bruno@clisp.org>
44836
44837         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
44838
44839 2004-01-20  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/eealloc.h: New file.
44842
44843 2004-01-20  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/binary-io.h: Avoid warnings on Cygwin.
44846
44847 2004-01-20  Bruno Haible  <bruno@clisp.org>
44848
44849         * lib/allocsa.h: New file, from GNU gettext.
44850         * lib/allocsa.c: New file, from GNU gettext.
44851
44852 2004-01-18  Karl Berry  <karl@gnu.org>
44853
44854         * doc/gpl.texi, doc/lgpl.texi: new files.
44855
44856 2004-01-18  Karl Berry  <karl@gnu.org>
44857
44858         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
44859         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
44860
44861 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44862
44863         Merge from coreutils.
44864
44865         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
44866         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
44867         (gl_DEFAULT_POSIX2_VERSION): Move
44868         the documentation from 'configure' into 'config.hin',
44869         so that 'configure --help' isn't burdened by it and
44870         we don't have to worry about its formatting there.
44871         Reword the documentation so that it's more succinct
44872         and can be run together into a single paragraph.
44873         * m4/same.m4 (gl_SAME): Check for pathconf.
44874
44875 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44876
44877         Merge from coreutils.
44878
44879         * lib/posixver.c: Include posixver.h.
44880
44881         * lib/same.c: Include <stdbool.h>, <limits.h>.
44882         (_POSIX_NAME_MAX): Define if not defined.
44883         (MIN): New macro.
44884         (same_name): If file names are silently truncated, report
44885         that the file names are the same if they are the same after
44886         the silent truncation.
44887
44888         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
44889         conversion function.
44890         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
44891         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
44892         longer needed.
44893
44894 2004-01-15  Jim Meyering  <jim@meyering.net>
44895
44896         Merge from coreutils.
44897
44898         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
44899         if no library is required.
44900         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
44901         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
44902         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
44903         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
44904         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
44905         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
44906         value, $ac_cv_search_crypt, if it's "none required".
44907         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
44908         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
44909         not gl_FUNC_GETLOADAVG.
44910         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
44911         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
44912
44913 2004-01-15  Jim Meyering  <jim@meyering.net>
44914
44915         Merge from coreutils.
44916
44917         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
44918         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
44919         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
44920
44921         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
44922         optional configure-time default.
44923
44924         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44925
44926         * lib/xreadlink.c (xreadlink): Correct outdated comment.
44927
44928 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
44929
44930         Merge from coreutils.
44931
44932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
44933         value, $ac_cv_search_nanosleep, if it's "none required".
44934
44935 2004-01-14  Paul Eggert  <eggert@twinsun.com>
44936
44937         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
44938         with like-named macro in fnmatch.c.
44939         (EXT): Use an internal constant instead.
44940
44941         Merge fnmatch patches from glibc.
44942         * lib/fnmatch.c (mbsinit): Remove define.
44943         Add libc_hidden_ver (__fnmatch, fnmatch).
44944         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
44945         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
44946
44947 2004-01-14  Karl Berry  <karl@gnu.org>
44948
44949         * config/install-sh: update from automake.
44950
44951 2004-01-13  Karl Berry  <karl@gnu.org>
44952
44953         * config/install-sh: update from automake.
44954
44955 2004-01-09  Karl Berry  <karl@gnu.org>
44956
44957         * config/install-sh: update from automake.
44958
44959 2004-01-05  Karl Berry  <karl@gnu.org>
44960
44961         * config/config.{sub,guess}: update from config.
44962
44963 2003-12-31  Karl Berry  <karl@gnu.org>
44964
44965         * config/depcomp: update from automake.
44966
44967 2003-12-14  Karl Berry  <karl@gnu.org>
44968
44969         * lib/config.charset: update from gettext-runtime.
44970
44971 2003-12-03  Paul Eggert  <eggert@twinsun.com>
44972
44973         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
44974         Bug reported by Alfred M. Szmidt.
44975
44976 2003-12-03  Bruno Haible  <bruno@clisp.org>
44977
44978         * m4/gettext.m4: Upgrade from gettext-0.13.
44979         * m4/po.m4: Upgrade from gettext-0.13.
44980         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
44981         * m4/intmax.m4: New file, from gettext-0.13.
44982         * m4/printf-posix.m4: New file, from gettext-0.13.
44983
44984 2003-11-29  Karl Berry  <karl@gnu.org>
44985
44986         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
44987
44988 2003-11-25  Paul Eggert  <eggert@twinsun.com>
44989             Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/printf-parse.h: Don't include sys/types.h.
44992         (ARG_NONE): New macro.
44993         (char_directive): Change type of *arg_index fields to size_t.
44994         * lib/printf-parse.c: Don't include sys/types.h.
44995         (SSIZE_MAX): Remove macro.
44996         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
44997         Remove unnecessary overflow check.
44998         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
44999         fields.
45000
45001 2003-11-25  Bruno Haible  <bruno@clisp.org>
45002
45003         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
45004
45005 2003-11-25  Bruno Haible  <bruno@clisp.org>
45006
45007         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
45008         gt_TYPE_SSIZE_T.
45009
45010 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45011
45012         * modules/alloca: Remove dependency on xalloc.
45013
45014 2003-11-24  Paul Eggert  <eggert@twinsun.com>
45015
45016         * lib/alloca.c: Remove dependency on xalloc module.
45017         (xalloc_die): Remove.
45018         (memory_full) [!defined emacs]: New macro.
45019         [!defined emacs]: Don't include xalloc.h.
45020         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
45021         address arithmetic overflows.  Change datatypes a bit to avoid
45022         unnecessary casts.
45023
45024 2003-11-22  Jim Meyering  <jim@meyering.net>
45025
45026         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
45027         s/size/size_t/.
45028
45029 2003-11-21  Karl Berry  <karl@gnu.org>
45030
45031         * config/config.{sub,guess}: update from config.
45032
45033 2003-11-18  Karl Berry  <karl@gnu.org>
45034
45035         * config/config.{sub,guess}: update from config.
45036
45037         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
45038
45039 2003-11-17  Paul Eggert  <eggert@twinsun.com>
45040
45041         * README: Mention that S+T cannot overflow if S is the size of
45042         an existing object and T is sufficiently small.
45043
45044 2003-11-17  Jim Meyering  <jim@meyering.net>
45045
45046         On systems without utime and without a utimes function capable of
45047         dealing with a NULL struct utimbuf* argument, this utime replacement
45048         could -- in unusual circumstances -- leak a file descriptor.
45049         * lib/utime.c: Include <unistd.h> and <errno.h>.
45050         (utime_null): Be sure to close `fd' and to preserve errno.
45051         Reported by Geoff Collyer via Arnold Robbins.
45052
45053 2003-11-17  Bruno Haible  <bruno@clisp.org>
45054
45055         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
45056         (Depends-on): Add xsize.
45057
45058 2003-11-17  Bruno Haible  <bruno@clisp.org>
45059
45060         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
45061
45062 2003-11-17  Bruno Haible  <bruno@clisp.org>
45063
45064         * lib/vasnprintf.c (alloca): Remove fallback definition.
45065         (freea): Remove definition.
45066         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
45067         Reported by Paul Eggert.
45068
45069 2003-11-16  Paul Eggert  <eggert@twinsun.com>
45070             Bruno Haible  <bruno@clisp.org>
45071
45072         Protect against address arithmetic overflow.
45073         * lib/printf-args.h: Include stddef.h.
45074         (arguments): Change type of field 'count' to size_t.
45075         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
45076         'unsigned int' where appropriate.
45077         * lib/printf-parse.h: Include sys/types.h.
45078         (char_directive): Change type of *arg_index fields to ssize_t.
45079         (char_directives): Change type of fields 'count', max_*_length to
45080         size_t.
45081         * lib/printf-parse.c: Include sys/types.h and xsize.h.
45082         (SSIZE_MAX): Define fallback value.
45083         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
45084         instead of 'int' where appropriate. Check a_allocated, d_allocated
45085         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
45086         * lib/vasnprintf.c: Include xsize.h.
45087         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
45088         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
45089         overflow. Avoid wraparound when converting a width or precision from
45090         decimal to binary.
45091
45092 2003-11-16  Bruno Haible  <bruno@clisp.org>
45093
45094         Update from GNU gettext.
45095         * lib/printf-parse.c: Generalize to it can be compiled for wide
45096         strings.
45097         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
45098         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
45099         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
45100         SNPRINTF): New macros.
45101         Don't include <alloca.h> if the file is used inside libintl.
45102         (local_wcslen): New function, for Solaris 2.5.1.
45103         (VASNPRINTF): Use it instead of wcslen.
45104
45105 2003-11-16  Bruno Haible  <bruno@clisp.org>
45106
45107         * lib/xsize.h (xmax): New function.
45108         (xsum, xsum3, xsum4): Declare as "pure" functions.
45109
45110 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45111
45112         * modules/xalloc (Files): Undo latest change, since xalloc.h
45113         no longer needs SIZE_MAX or PTRDIFF_MAX.
45114
45115 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45116
45117         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
45118         gl_PTRDIFF_MAX.
45119
45120 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45121
45122         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
45123         "return", to pacify some unknown compiler.  Problem reported
45124         by Joerg Schilling.
45125
45126 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45127
45128         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
45129         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
45130         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
45131         heuristic is just as accurate as far as we know, and it removes a
45132         dependency on size_max.m4 and ptrdiff_max.m4.
45133
45134 2003-11-11  Bruno Haible  <bruno@clisp.org>
45135
45136         * modules/xsize (Files): Add m4/size_max.m4.
45137         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
45138
45139 2003-11-11  Bruno Haible  <bruno@clisp.org>
45140
45141         * m4/size_max.m4: New file.
45142         * m4/ptrdiff_max.m4: New file.
45143         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
45144         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
45145         (gl_XALLOC): Invoke it.
45146
45147 2003-11-11  Bruno Haible  <bruno@clisp.org>
45148
45149         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
45150         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
45151         defined.
45152
45153 2003-11-10  Paul Eggert  <eggert@twinsun.com>
45154
45155         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
45156         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
45157         rejected some allocations of exactly SIZE_MAX - 2 bytes.
45158         From Bruno Haible.
45159         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
45160         not (size_t) -1, since it's defined here.
45161
45162 2003-11-09  Karl Berry  <karl@gnu.org>
45163
45164         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
45165
45166 2003-11-06  Paul Eggert  <eggert@twinsun.com>
45167
45168         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
45169         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
45170         Reject sizes of exactly SIZE_MAX bytes.
45171         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
45172         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
45173
45174 2003-11-05  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/xsize.h: Include limits.h, to avoid a possible collision with
45177         SIZE_MAX defined in <limits.h> on Solaris.
45178
45179 2003-11-04  Jim Meyering  <jim@meyering.net>
45180
45181         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
45182         variable names, rather than @VAR@.
45183         * modules/poll: Likewise.
45184
45185 2003-11-04  Bruno Haible  <bruno@clisp.org>
45186
45187         * modules/xsize: New file.
45188         * modules/linebreak: Depend on xsize.
45189         * MODULES.html.sh (func_all_modules): Add xsize.
45190
45191 2003-11-04  Bruno Haible  <bruno@clisp.org>
45192
45193         * m4/xsize.m4: New file.
45194
45195 2003-11-04  Bruno Haible  <bruno@clisp.org>
45196
45197         * lib/xsize.h: New file.
45198         * lib/linebreak.c: Include xsize.h.
45199         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
45200         argument for overflow.
45201         Suggested by Paul Eggert.
45202
45203 2003-11-03  Karl Berry  <karl@gnu.org>
45204
45205         * config/config.{guess,sub}: update from config.
45206
45207 2003-11-03  Jim Meyering  <jim@meyering.net>
45208
45209         * modules/userspec (lib_SOURCES): Add userspec.h.
45210         (Include): Add "userspec.h".
45211         Improve description.
45212
45213 2003-11-03  Jim Meyering  <jim@meyering.net>
45214
45215         * lib/userspec.c: Include "userspec.h".
45216         * lib/userspec.h: New file.
45217
45218 2003-11-03  Bruno Haible  <bruno@clisp.org>
45219
45220         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
45221
45222 2003-11-03  Bruno Haible  <bruno@clisp.org>
45223
45224         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
45225         available, to avoid (extremely rare) race condition.
45226         Suggested by Paul Eggert.
45227
45228 2003-11-02  Karl Berry  <karl@gnu.org>
45229
45230         * config/srclist.txt (vasprintf.c): sync broken, sigh.
45231
45232 2003-10-31  Paul Eggert  <eggert@twinsun.com>
45233
45234         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
45235         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
45236         (read_filesystem_list): Set and use me_type_malloced.
45237         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
45238         whatever the type happens to be), for brevity and consistency.
45239         Check for size calculation overflow on Alphas running OSF/1.
45240
45241 2003-10-31  Jim Meyering  <jim@meyering.net>
45242
45243         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
45244
45245         * lib/linebuffer.c: Include <string.h> for declaration of memset.
45246
45247 2003-10-30  Paul Eggert  <eggert@twinsun.com>
45248             Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
45251         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
45252
45253 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45254
45255         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
45256         netbsd*-gnu*.  Suggested by Robert Millan.
45257
45258 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45259
45260         * modules/group-member: Depend on stdbool.
45261
45262 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45263
45264         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
45265
45266 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45267
45268         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
45269         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
45270         after the 'gnu' in these cases.  This fixes some bugs in the
45271         previous change, and is based on suggestions by Robert Millan.
45272
45273 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45274
45275         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
45276         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
45277         no longer needed.
45278         * lib/quotearg.c (quotearg_n_options): Use it.
45279         * lib/group-member.c: Include <stdbool.h>.
45280         (free_group_info): Arg is now const *; don't free arg.
45281         (get_group_info): Now returns bool and accepts struct group_info *,
45282         rather than returning a malloc'ed struct group_info *.
45283         All uses changed.  Check for overflow in internal size calculation.
45284
45285         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
45286         rather than xmalloc/xrealloc.
45287         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
45288         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
45289         conformance bug: the old code used a pointer after freeing the
45290         storage that it addressed.
45291         * lib/hash.c (hash_initialize): Simplify the code by using
45292         xalloc_oversized rather than doing it by hand.
45293         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
45294         the buffer preserved.  Use free and xmalloc instead.
45295         * lib/quotearg.c (quotearg_n_options): Likewise.
45296         Use a simpler test for size overflow.  Don't use xalloc_oversized
45297         because unsigned int might be wider than size_t (!); this suggests
45298         that we should switch from unsigned int to size_t for slot numbers.
45299
45300 2003-10-28  Paul Eggert  <eggert@twinsun.com>
45301
45302         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
45303         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
45304         NetBSD kernels.  Requested by Richard Stallman.
45305
45306 2003-10-27  Paul Eggert  <eggert@twinsun.com>
45307
45308         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
45309         to allocate the returned structure.  Do not allocate a subarray,
45310         as x2nrealloc will do that.
45311         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
45312         instead of xnrealloc.
45313         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
45314
45315 2003-10-27  Bruno Haible  <bruno@clisp.org>
45316
45317         * lib/stdbool_.h: Better support for BeOS.
45318
45319 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45320
45321         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
45322         now uses inline.
45323
45324 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45325
45326         * lib/xalloc.h (xalloc_oversized): New static inline function, for
45327         callers that want to do their own size-overflow checking.  Include
45328         <stdbool.h>, since xalloc_oversized returns bool.
45329         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
45330         to use xalloc_oversized.
45331
45332         Add two functions x2realloc, x2nrealloc, for programs that grow
45333         arrays dynamically by doubling their sizes.
45334         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
45335         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
45336         New functions.
45337
45338         Port to C99 semantics for 'inline' of external functions.
45339         Bug reported by Bruno Haible.
45340         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
45341         with the old contents of xnmalloc.
45342         (xnmalloc, xmalloc): Use it.
45343         (xnrealloc_inline): New static inline function,
45344         with the old contents of xnrealloc.
45345         (xnrealloc, xrealloc): Use it.
45346
45347         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
45348         that.
45349
45350 2003-10-26  Karl Berry  <karl@gnu.org>
45351
45352         * config/srclist.txt (COPYING.DOC): no longer available from
45353         /gd/gnuorg; don't know where the ultimate source is.
45354
45355 2003-10-25  Paul Eggert  <eggert@twinsun.com>
45356
45357         Fix several address-calculation bugs in the hash modules,
45358         plus some minor code cleanup.
45359
45360         * lib/hash.h: Include <stdbool.h>, for bool.
45361         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
45362         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
45363         hash_get_n_entries, hash_get_max_bucket_length,
45364         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
45365         hash_rehash): Use size_t rather than unsigned.
45366         * lib/hash.c (struct hash_table, hash_get_n_buckets,
45367         hash_get_n_buckets_used, hash_get_n_entries,
45368         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
45369         hash_get_entries, hash_do_for_each, hash_string, is_prime,
45370         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
45371         Likewise.
45372         (SIZE_MAX): Define if not defined.
45373         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
45374         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
45375         hash_print):
45376         Use const * when possible.
45377         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
45378         (check_tuning): Fix bug: if tuning parameters were very close to
45379         0 or 1, rounding errors could have caused subscript violations.
45380         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
45381         (hash_initialize): Add 'fail:' label
45382         to free table and return NULL, and use it to simplify code.
45383         Use calloc rather than clearing the storage ourself.
45384         (hash_initialize, hash_rehash): Check for arithmetic overflow in
45385         buffer size calculations.
45386         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
45387         Include <stddef.h>, for size_t.
45388         * lib/hash-pjw.c (hash_pjw): Likewise.
45389         Switch to method described by Bruno Haible.
45390         Include <limits.h>, for CHAR_BIT.
45391         (SIZE_BITS): New macro.
45392
45393 2003-10-23  Paul Eggert  <eggert@twinsun.com>
45394
45395         * m4/getline.m4 (AM_FUNC_GETLINE):
45396         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
45397         hosts.  Problem reported by Derek Robert Price in
45398         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
45399         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
45400         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
45401
45402 2003-10-21  Paul Eggert  <eggert@twinsun.com>
45403
45404         * lib/getndelim2.c (getndelim2): When size calculation overflows,
45405         ceiling the allocation at NMAX bytes rather than silently
45406         discarding input bytes before NMAX is reached.  This makes
45407         a difference only if NMAX exceeds SIZE_MAX / 2.
45408
45409         * lib/obstack.c: Merge from glibc.
45410         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
45411         Add libc_hidden_def (_obstack_newchunk).
45412         (_obstack_free) [! defined _LIBC]: Remove.
45413         [defined _LIBC]: Make a strong alias from obstack_free, rather than
45414         a clone of the function body.
45415         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
45416         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
45417
45418         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
45419         glibc.
45420         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
45421         arg to memcpy.
45422
45423         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
45424         (obstack_ptr_grow_fast, obstack_int_grow_fast):
45425         Don't use lvalue casts, as GCC plans to remove support for them
45426         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
45427         was also present in the non-GCC version, indicating that this
45428         code had always been buggy and had never been widely used.
45429         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
45430         Use the fast variant of each macro, rather than copying the
45431         definiens of the fast variant; that way, we'll be more likely to
45432         catch future bugs in the fast variants.
45433
45434 2003-10-20  Bruno Haible  <bruno@clisp.org>
45435
45436         * modules/wait-process: New file.
45437         * MODULES.html.sh (func_all_modules): Add wait-process.
45438
45439 2003-10-20  Bruno Haible  <bruno@clisp.org>
45440
45441         * m4/wait-process.m4: New file.
45442
45443 2003-10-20  Bruno Haible  <bruno@clisp.org>
45444
45445         * lib/wait-process.h: New file, from GNU gettext.
45446         * lib/wait-process.c: New file, from GNU gettext.
45447
45448 2003-10-19  Jim Meyering  <jim@meyering.net>
45449
45450         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
45451         HPUX 10.20.
45452
45453 2003-10-18  Karl Berry  <karl@gnu.org>
45454
45455         * config/config.guess: update from config.
45456
45457 2003-10-16  Paul Eggert  <eggert@twinsun.com>
45458
45459         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
45460         (getgroups): First arg is int, not size_t.
45461         Don't let 'free' mangle errno.
45462
45463 2003-10-16  Paul Eggert  <eggert@twinsun.com>
45464
45465         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
45466
45467 2003-10-16  Karl Berry  <karl@gnu.org>
45468
45469         * config/config.{guess,sub}: update from config.
45470
45471 2003-10-16  Jim Meyering  <jim@meyering.net>
45472
45473         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
45474         memcpy.
45475
45476 2003-10-15  Paul Eggert  <eggert@twinsun.com>
45477
45478         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
45479         (SIZE_MAX): Remove.
45480         (new_exclude, add_exclude_file): Initial size no longer needs to
45481         be a power of 2.
45482         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
45483         our own address arithmetic overflow checking.
45484
45485         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
45486         (fnmatch): Do not alloca more than 2000 wide characters;
45487         instead, use malloc for large buffers.
45488         Check for address arithmetic overflow, and return -1
45489         with errno set to ENOMEM in that case.
45490         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
45491         (NEW_PATTERN): Do not alloca more than 8000 bytes;
45492         instead, return -1.  Check for address arithmetic overflow.
45493
45494 2003-10-14  Paul Eggert  <eggert@twinsun.com>
45495
45496         Handle invalid suffixes and overflow independently, so that
45497         callers can treat them independently as needed.  Fix some bugs in
45498         suffix handling, e.g., "100k@" was not diagnosed as an invalid
45499         suffix for a human-readable blocksize.  The major caller-visible
45500         change is the addition of a new
45501         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
45502         that both overflow and suffix chars were found.
45503
45504         * lib/human.c (humblock): Don't check separately for invalid suffix
45505         char; that is xstrtoumax's job (now that its bug is fixed).
45506         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
45507         INTMAX_MAX]: New macros.
45508         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
45509         TYPE_MAXIMUM): New macros.
45510         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
45511         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
45512         if overflow occurs, as it's what __strtol does and it's more useful
45513         in practice.
45514         (__xstrtol): If __strtol reports some error other than ERANGE,
45515         reflect it to the caller as LONGINT_INVALID.  If it reports
45516         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
45517         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
45518         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
45519         value.
45520         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
45521         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
45522         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
45523         [defined UINTMAX_MAX]: New macros.
45524
45525 2003-10-14  Bruno Haible  <bruno@clisp.org>
45526
45527         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
45528
45529 2003-10-14  Bruno Haible  <bruno@clisp.org>
45530
45531         * m4/sig_atomic_t: New file, from GNU gettext.
45532         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
45533
45534 2003-10-14  Bruno Haible  <bruno@clisp.org>
45535
45536         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
45537         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
45538         Also use volatile where needed.
45539
45540 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45541
45542         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
45543         Change maintainer from Bruno Haible to 'all'.
45544
45545 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45546
45547         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
45548
45549 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45550
45551         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
45552         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
45553         and define in terms of the other primitives.
45554         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
45555         (SIZE_MAX): Define if not already defined.
45556         (array_size_overflow): New function.
45557         (xalloc_die): Abort instead of exiting if 'error' returns.
45558         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
45559         (xmalloc, xrealloc): Use them.
45560         (xcalloc): Check for address arithmetic overflow.
45561         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
45562         a bit faster than strcpy.
45563
45564 2003-10-10  Simon Josefsson  <jas@extundo.com>
45565
45566         * modules/argp (Depends-on): Add restrict and strcase.
45567
45568 2003-10-10  Simon Josefsson  <jas@extundo.com>
45569
45570         * m4/argp.m4: Add AC_C_INLINE.
45571
45572 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45573
45574         Merge getpass from libc, plus a few fixes.
45575
45576         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
45577         Include <stdbool.h>.
45578         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
45579         __fsetlocking to empty.
45580         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
45581         do include <bits/libc-lock.h>.
45582         Do not include <fcntl.h>; not needed.
45583         [_LIBC]: Include <wchar.h>.
45584         (NOTCANCEL_MODE): New macro.
45585         (flockfile, funlockfile) [_LIBC]: New macros.
45586         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
45587         [!_LIBC]: New macros.
45588         (call_fclose): New function.
45589         (getpass): Use it.  Save tty stream separately; this simplifies the
45590         code and makes it more reliable if stdin happens to equal stdout.
45591         Invoke __fsetlocking on tty.
45592         Handle thread cancellation if needed.
45593         Namespace cleanup (use __tcgetattr, __getline).
45594         Use bool for Booleans.
45595         [USE_IN_LIBIO]: Handle wide streams.
45596         [!_LIBC]: Unconditionally do the fseek, since we don't know what
45597         stream might go where.
45598
45599         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
45600         doesn't have to include <stdio.h> before us.
45601         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
45602         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
45603         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
45604         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
45605         if not declared, so that we can use getpass.c code from libc without
45606         rewriting it.
45607         (flockfile, ftrylockfile, funlockfile): New macros.
45608
45609 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45610
45611         * modules/getpass: Depend on stdbool.
45612
45613 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45614
45615         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
45616
45617 2003-10-07  Karl Berry  <karl@gnu.org>
45618
45619         * config/config.{guess,sub}: update from config.
45620
45621 2003-10-06  Jim Meyering  <jim@meyering.net>
45622             Bruno Haible  <bruno@clisp.org>
45623
45624         This lets translators provide better translations for the
45625         "Written by ..." part of --version output.
45626         * lib/version-etc.h: Include stdarg.h.
45627         (version_etc_copyright): Declare as readonly.
45628         (version_etc): Make this function variadic with a NULL-terminated list
45629         of author name strings.
45630         (version_etc_va): New declaration.
45631         * lib/version-etc.c: Include stdarg.h, stdlib.h.
45632         (version_etc_copyright): Declare as readonly.
45633         (version_etc_va): New function. Provide a different translatable string
45634         for each possible number of authors < 10. Abbreviate when there are 10
45635         authors or more.
45636         (version_etc): Make this function variadic. Call version_etc_va.
45637         Suggestion from Gary V. Vaughan.
45638
45639         * lib/long-options.h (parse_long_options): Change prototype: the
45640         authors string is moved to the end and becomes variadic.
45641         * lib/long-options.c: Include stdarg.h.
45642         (parse_long_options): Make this function variadic, too.
45643         Call version_etc_va, not version_etc.
45644
45645 2003-10-06  Bruno Haible  <bruno@clisp.org>
45646
45647         * modules/version-etc-2: Remove file.
45648         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
45649
45650 2003-10-06  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/fatal-signal: New file.
45653         * MODULES.html.sh (func_all_modules): Add fatal-signal.
45654
45655 2003-10-06  Bruno Haible  <bruno@clisp.org>
45656
45657         * m4/fatal-signal.m4: New file.
45658         * m4/signalblocking.m4: New file, from GNU gettext.
45659
45660 2003-10-06  Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/version-etc-2.h: Remove file.
45663         * lib/version-etc-2.c: Remove file.
45664
45665 2003-10-06  Bruno Haible  <bruno@clisp.org>
45666
45667         * lib/fatal-signal.h: New file, from GNU gettext.
45668         * lib/fatal-signal.c: New file, from GNU gettext.
45669
45670 2003-10-05  Paul Eggert  <eggert@twinsun.com>
45671
45672         * README: Rework advice for preventing empty .o files.
45673         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
45674         not <sys/types.h>.
45675
45676 2003-10-04  Karl Berry  <karl@gnu.org>
45677
45678         * lib/argp*: update from libc.
45679
45680 2003-10-04  Karl Berry  <karl@gnu.org>
45681
45682         * config/config.{guess,sub}: update from config.
45683
45684 2003-10-02  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/lchown (Include): Add lchown.h.
45687         * modules/time_r (Include): Use "..." syntax.
45688         * modules/xgetdomainname (Include): Add xgetdomainname.h.
45689
45690 2003-10-01  Simon Josefsson  <jas@extundo.com>
45691
45692         * MODULES.html.sh (func_all_modules): Move gethostname from section
45693         'based on' to section 'lacking' POSIX:2001.
45694
45695 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
45696
45697         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
45698         to output mode on the same stream.
45699
45700 2003-09-29  Paul Eggert  <eggert@twinsun.com>
45701
45702         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
45703         Fix arg typo in previous patch.
45704
45705 2003-09-28  Jim Meyering  <jim@meyering.net>
45706
45707         * lib/error.c: Correct cpp indentation.
45708
45709 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45710
45711         * modules/free: New file.
45712
45713 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45714
45715         * m4/free.m4: New file.
45716
45717 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45718
45719         * lib/minmax.h (MIN, MAX)
45720         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
45721         Omit the special code that used __typeof__, since we worry that
45722         it could be more trouble than it's worth.  See:
45723         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
45724         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
45725
45726         * lib/free.c: New file.
45727
45728 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
45729
45730         Trivial fixes to Makefile.am parts of module listings.
45731         * modules/strstr: Append strstr.h to lib_SOURCES.
45732         * modules/strcase: Likewise, for strcase.h.
45733
45734 2003-09-27  Karl Berry  <karl@gnu.org>
45735
45736         * config/mkinstalldirs: update from automake.
45737
45738 2003-09-26  Paul Eggert  <eggert@twinsun.com>
45739
45740         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
45741         (error_tail): Do not loop, reallocating temporary buffer, since
45742         the output cannot contain more wide characters than the input
45743         contains bytes, the size must be big enough already.  This avoids
45744         one potential size overflow calculation.  Check for size overflow
45745         when calculating temporary buffer size.  Free temporary buffer
45746         when done, if it was allocated with malloc; this plugs a memory
45747         leak.  Remove casts from void * to pointers, that are no longer
45748         needed now that we're assuming C89 or better.
45749
45750         Merge error changes from glibc.
45751
45752         * lib/error.c, error.h: Update copyright notice header to match glibc.
45753         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
45754         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
45755         Disable cancellation while printing error.
45756         * lib/error.h: Prepend __ to parameter names.
45757
45758 2003-09-26  Jim Meyering  <jim@meyering.net>
45759
45760         * lib/error.c (error_tail): Move some declarations
45761         into inner scope where the local variables are used.
45762
45763 2003-09-26  Bruno Haible  <bruno@clisp.org>
45764
45765         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
45766         stpncpy().
45767         Don't define stpncpy through config.h; it's now done through stpncpy.h.
45768
45769 2003-09-26  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/stpncpy.h (gnu_stpncpy): New declaration.
45772         (stpncpy): Define as alias for gnu_stpncpy.
45773         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
45774
45775 2003-09-25  Simon Josefsson  <jas@extundo.com>
45776
45777         * lib/xgetdomainname.h: New file.
45778         * lib/xgetdomainname.c: New file.
45779
45780 2003-09-25  Simon Josefsson  <jas@extundo.com>
45781             Bruno Haible  <bruno@clisp.org>
45782
45783         * modules/getdomainname: New file.
45784         * modules/xgetdomainname: New file.
45785         * MODULES.html.sh (func_all_modules): Add getdomainname,
45786         xgetdomainname.
45787
45788 2003-09-25  Simon Josefsson  <jas@extundo.com>
45789             Bruno Haible  <bruno@clisp.org>
45790
45791         * m4/getdomainname.m4: New file.
45792
45793 2003-09-25  Simon Josefsson  <jas@extundo.com>
45794             Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/getdomainname.h: New file.
45797         * lib/getdomainname.c: New file.
45798
45799 2003-09-25  Karl Berry  <karl@gnu.org>
45800
45801         * lib/argp-fmtstream.c, argp-help.c: update from libc.
45802
45803 2003-09-25  Karl Berry  <karl@gnu.org>
45804
45805         * config/install-sh: update from automake.
45806
45807 2003-09-25  Bruno Haible  <bruno@clisp.org>
45808
45809         * modules/version-etc-2: New file, from modules/version-etc with
45810         modifications.
45811         * MODULES.html.sh (func_all_modules): Add version-etc-2.
45812
45813 2003-09-25  Bruno Haible  <bruno@clisp.org>
45814
45815         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
45816         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
45817
45818 2003-09-24  Simon Josefsson  <jas@extundo.com>
45819
45820         * modules/xgethostname: Add xgethostname.h.
45821
45822 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45823
45824         * lib/linebuffer.c (freebuffer): Don't free the argument, just
45825         the buffer associated with the argument.  Bug reported by
45826         Simon Josefsson.
45827
45828 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45829
45830         * README: Document assumptions that 'int' is at least 32 bits
45831         wide, that integer arithmetic is 2's complement without overflow,
45832         that there are no holes in integer values, that adding sizes of
45833         two nonoverlapping objects can't overflow, and that all-bits-zero
45834         yields scalar zero.  Fix spelling and capitalization typos.
45835
45836 2003-09-19  Karl Berry  <karl@gnu.org>
45837
45838         * lib/argp.h: update from libc.
45839
45840 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45841
45842         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
45843         to avoid spurious warnings like "AC_RUN_IFELSE was called before
45844         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
45845
45846 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45847
45848         * gnulib-tool: Use "test -h", not "test -L", for portability
45849         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
45850         (tags_regexp): Remove, since \| doesn't conform to POSIX.
45851         (sed_extract_prog): Issue s commands one-by-one, rather than
45852         using \| in one s command.
45853
45854 2003-09-16  Paul Eggert  <eggert@twinsun.com>
45855
45856         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
45857         input error, instead of returning NULL the next time we are called
45858         (and therefore losing track of errno).
45859
45860 2003-09-16  Bruno Haible  <bruno@clisp.org>
45861
45862         * gnulib-tool (func_create_testdir): Warn about duplicated
45863         dependencies.
45864
45865 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45866
45867         * modules/argmatch, modules/fatal, modules/obstack,
45868         modules/xalloc, modules/xgethostname: Sort dependencies by
45869         importance, not alphabetically.
45870
45871 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45872
45873         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
45874         fails, so that the caller gets the proper errno.
45875
45876         * lib/readutmp.c (read_utmp): Likewise.
45877         Check for fstat error.  Close stream and free storage
45878         when failing.
45879
45880 2003-09-14  Karl Berry  <karl@gnu.org>
45881
45882         * config/srclist.txt (strdup.c): disable for c89 changes.
45883
45884 2003-09-14  Jim Meyering  <jim@meyering.net>
45885
45886         * lib/getloadavg.c: Correct cpp indentation.
45887         * lib/strdup.c: Likewise.
45888         * lib/vasnprintf.c: Likewise.
45889
45890 2003-09-14  Bruno Haible  <bruno@clisp.org>
45891
45892         * modules/fwriteerror: New file.
45893         * MODULES.html.sh (func_all_modules): Add fwriteerror.
45894
45895 2003-09-14  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/fwriteerror.h: New file.
45898         * lib/fwriteerror.c: New file.
45899
45900 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45901
45902         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
45903         modules/xgethostname, modules/xalloc: Depend on exit.
45904
45905 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45906
45907         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
45908
45909         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
45910         and AC_MINIX, too, so that their extensions are available.
45911
45912         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
45913         This macro has been superseded by gl_BACKUPFILE.
45914
45915         More patches to assume C89 or better.
45916
45917         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
45918
45919         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
45920         unconditionally.
45921         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
45922         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
45923         Include <string.h>, <stdlib.h> unconditionally.
45924         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
45925         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
45926         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
45927         headers or for string.h.
45928         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
45929         or strtoul.
45930
45931         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
45932         headers.
45933         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
45934         * m4/userspec.m4 (gl_USERSPEC): Likewise.
45935         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
45936         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
45937         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45938         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
45939         memcpy, memset.
45940         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
45941         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
45942         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
45943         strtol.
45944         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
45945         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
45946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
45947         strtoul.
45948
45949 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45950
45951         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
45952         * lib/obstack.c [!defined _LIBC]: Likewise.
45953         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
45954         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
45955         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
45956
45957         More changes to assume C89 or better.
45958
45959         * lib/error.c (error_tail): Assume vprintf.
45960
45961         * lib/argmatch.c (getenv): Remove decl.
45962         * lib/progreloc.c (get_full_program_name): Define via prototype.
45963         * lib/setenv.c (clearenv): Likewise.
45964         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
45965         needed.
45966         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
45967         (malloc, memcpy): Remove decls.
45968         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
45969         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
45970         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45971         (memcpy): Remove macro.
45972         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
45973         (__P): Remove.  All uses removed.
45974         (PTR): Remove.  All uses changed to void *.
45975         (CHAR_BIT, NULL): Remove.
45976         (spaces, zeros, memset_space, memset_zero)
45977         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
45978         Remove.
45979         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
45980         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
45981         Define with prototype.
45982         Remove now-unnecessary prototype decl.
45983         (extra_args_spec): Assume ANSI C.  All uses changed.
45984         (extra_args_spec_iso): Remove.
45985         (my_strftime, emacs_strftimeu): Define via prototype.
45986         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
45987         unconditionally.
45988         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
45989         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
45990         (strtoul, strtol): Remove decls.
45991         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
45992         LONG_MAX): Remove.
45993         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45994         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
45995         (LOCALE_PARAM_PROTO): New macro.
45996         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
45997         (INTERNAL (strtol), strtol): Define with a prototype.
45998         (PARAMS): Remove.  All uses removed.
45999         * lib/tempname.c: Include <string.h> unconditionally.
46000         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
46001         * lib/xgethostname.c (main): Define with a prototype.
46002         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
46003         Include <stdlib.h> unconditionally.
46004         (calloc, malloc, realloc, free): Remove decls.
46005         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
46006         Include <stdlib.h> unconditionally.  Sort include file names.
46007         (strtod): Remove.
46008         (xstrtod): Define with a prototype.
46009         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
46010         (strtol, strtoul): Remove decls.
46011
46012 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46013
46014         More patches to assume C89 or better.
46015         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
46016         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
46017         string.h, memchr, STDC_HEADERS.
46018
46019 2003-09-11  Paul Eggert  <eggert@twinsun.com>
46020
46021         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
46022         Include <stdlib.h>, <string.h> unconditionally.
46023         Remove now-unnecessary cast to char *.
46024         * lib/strnlen.c: Include <string.h> unconditionally.
46025         * lib/yesno.c (yesno): Define with a prototype.
46026
46027 2003-09-11  Bruno Haible  <bruno@clisp.org>
46028
46029         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
46030
46031 2003-09-10  Jim Meyering  <jim@meyering.net>
46032
46033         * lib/error.c: Correct indentation of cpp directives.
46034
46035 2003-09-10  Bruno Haible  <bruno@clisp.org>
46036
46037         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
46038         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
46039         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
46040         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
46041         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
46042         <stdlib.h> and <string.h> checks.
46043         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
46044         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
46045
46046 2003-09-10  Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/strcspn.c: Include <string.h> unconditionally.
46049         * lib/strpbrk.c: Include <string.h> unconditionally.
46050         * lib/strstr.c: Include <string.h> unconditionally.
46051         * lib/unicodeio.c: Include <string.h> unconditionally.
46052         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
46053         * lib/unsetenv.c: Likewise.
46054         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
46055         * lib/yesno.c: Include <stdlib.h> unconditionally.
46056         (rpmatch): Add prototype.
46057
46058 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46059
46060         More patches to assume C89 or better.
46061         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
46062         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
46063         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
46064         or for string.h.
46065         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
46066         stdlib.h.
46067         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
46068         C headers.
46069         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
46070         string.h.
46071         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
46072         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
46073         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
46074         or for string.h.
46075         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
46076         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
46077         C headers.
46078         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
46079         memcpy.
46080         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
46081         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
46082         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
46083         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
46084         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
46085         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
46086         string.h, free.
46087         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
46088         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
46089         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
46090         C headers, or for string.h.
46091         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
46092         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
46093         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
46094         headers, memory.h, stdlib.h, string.h, strings.h.
46095         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
46096         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
46097         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
46098         strchr.
46099         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
46100         headers, memory.h, string.h.
46101         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
46102         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
46103         free.
46104         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
46105         headers.
46106         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
46107         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
46108         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
46109         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
46110         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
46111
46112 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46113
46114         More K&R removal.
46115
46116         * lib/acosl.c (main): Use a prototype.
46117         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
46118         tanl.c: Likewise.
46119
46120         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
46121
46122         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
46123         (getopt, etopt_long, getopt_long_only, _getopt_internal)
46124         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
46125         with a prototype.
46126         * lib/getopt.c (const): Remove macro.
46127         Include <string.h> unconditionally.
46128         (my_index): Remove; all uses changed to strchr.
46129         (strlen): Remove decl.
46130         (exchange): Remove forward decl; no longer needed.
46131         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
46132         Define with prototype.
46133         * lib/getopt1.c (const): Remove macro.
46134         (getopt_long, getopt_long_only, main): Define with prototype.
46135
46136         * lib/getugroups.c: Include <string.h> unconditionally.
46137
46138         * lib/getusershell.c: Include <stdlib.h> unconditionally.
46139         (getusershell, setusershell, endusershell, readname, main):
46140         Define with prototypes.
46141
46142         * lib/group-member.c: Include group-member.h first.
46143         Include <stdlib.h> unconditionally.
46144
46145         * lib/hard-locale.c: Include hard-locale.h first.
46146         Include <stdlib.h>, <string.h> unconditionally.
46147
46148         * lib/hash.c (free, malloc): Remove decls.
46149         Include <stdlib.h> unconditionally.
46150
46151         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
46152         (getenv): Do not declare.
46153
46154         * lib/idcache.c: Include <string.h> unconditionally.
46155
46156         * lib/long-options.c: Include long-options.h first, to test interface.
46157         Include <stdlib.h> unconditionally.
46158
46159         * lib/makepath.c: Include makepath.h first, to test interface.
46160         Include <stdlib.h> and <string.h> unconditionally.
46161
46162         * lib/linebuffer.c: Include <stdlib.h>.
46163         (free): Remove decl.
46164
46165         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
46166         stddef.h. rpl_malloc returns void *, not char *.
46167         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
46168         prototype.
46169
46170         * lib/md5.h: Include <limits.h> unconditionally.
46171         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
46172         (__P): Remove; all uses removed.
46173         * lib/md5.c: Include "md5.h" first.
46174         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
46175         md5_buffer, md5_process_bytes, md5_process_block):
46176         Define with prototypes.
46177         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
46178         * lib/sha.c: Include "sha.h" first.
46179         Include <stdlib.h>, <string.h> unconditionally.
46180
46181         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
46182         * lib/memcmp.c (__ptr_t): Likewise.
46183         * lib/memrchr.c (__ptr_t): Likewise.
46184         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
46185         Include <string.h> unconditionally.
46186         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
46187         * lib/memchr.c: Include <stdlib.h> unconditionally.
46188         * lib/memchr.c (LONG_MAX): Remove.
46189         * lib/memrchr.c (LONG_MAX): Likewise.
46190         * lib/memchr.c (__memchr): Define via a prototype.
46191         * lib/memrchr.c (__memrchr): Likewise.
46192         * lib/memcmp.c (__P): Remove, and remove all uses.
46193         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
46194         Remove forward decls; no longer needed.
46195         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
46196         Use types required by C89 in prototype.
46197
46198         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
46199         * lib/savedir.c: Likewise.
46200         * lib/mkdir.c (free): Remove decl.
46201         * lib/rmdir.c (rmdir): Define with a prototype.
46202         * lib/savedir.c: Include savedir.h first, to test interface.
46203
46204         * lib/mktime.c (STDC_HEADERS): Remove.
46205         Include <stdlib.h>, <string.h> unconditionally.
46206
46207         * lib/modechange.c: Include <stdlib.h> unconditionally.
46208         (malloc): Remove decl.
46209
46210         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
46211         (free): Remove decl.
46212
46213         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
46214         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
46215         (This type really should be intptr_t, but that's a C99ism.)
46216         (_obstack_memcpy): Remove: all uses changed to memcpy.
46217         Include <string.h> unconditionally.
46218         (struct obstack): Assume __STDC__ for types of members
46219         chunkfun, freefun, extra_arg.
46220         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
46221         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
46222         obstack_begin, obstack_specify_allocation,
46223         obstack_specify_allocation_with_arg, obstack_chunkfun,
46224         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
46225         Remove unprototyped decls and the macros that use them.
46226         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
46227         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
46228         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
46229         (defined __STDC__ && __STDC__)]:
46230         Remove nonprototyped code.
46231         Include <stdlib.h> unconditionally.
46232         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
46233         _obstack_allocated_p, _obstack_free, obstack_free,
46234         _obstack_memory_used, print_and_abort):
46235         Define using prototypes.
46236         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
46237         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
46238         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
46239         obstack_next_free, obstack_object_size, obstack_room) [0]:
46240         Remove unused, unprototyped code.
46241
46242         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
46243
46244         * lib/physmem.c (physmem_total, physmem_available, main): Define
46245         with prototypes.
46246
46247         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
46248         (main): Define with a prototype.
46249
46250         * lib/posixver.c (getenv): Remove decl.
46251
46252         * lib/putenv.c (malloc): Returns void *, not char *.
46253         Include <string.h> unconditionally.
46254         (strchr, memcpy, NULL): Do not define.
46255
46256         * lib/readtokens.c: Include readtokens.h first, to test interface.
46257         Include <stdlib.h>, <string.h> unconditionally.
46258         (init_tokenbuffer): Define with a prototype.
46259
46260         * lib/regex.c (PARAMS): Remove.  All uses removed.
46261         All uses of _RE_ARGS removed, too.
46262         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
46263         unconditionally.
46264         (bzero): Assume memset exists.
46265         (memcmp, memcpy, NULL): Remove.
46266         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
46267         char, or assignments to local vars of type signed char.
46268         (init_syntax_once, PREFIX(extract_number_and_incr),
46269         PREFIX(print_partial_compiled_pattern),
46270         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
46271         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
46272         PREFIX(regex_grow_registers), PREFIX(regex_compile),
46273         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
46274         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
46275         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
46276         wcs_compile_range, byte_compile_range, truncate_wchar,
46277         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
46278         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
46279         count_mbs_length, wcs_re_match_2_internal,
46280         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
46281         PREFIX(alt_match_null_string_p),
46282         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
46283         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
46284         regfree, PREFIX(extract_number)): Define with prototype.  Remove
46285         now-unnecessary declaration, if any.
46286         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
46287         regcomp, regexec):
46288         Remove now-unnecessary casts among pointer types.
46289         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
46290
46291         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
46292         (free): Remove decl.
46293
46294         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
46295
46296         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
46297         (free): Remove decl.
46298
46299         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
46300         * lib/xgetcwd.c: Likewise.
46301
46302         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
46303         (free): Remove decl.
46304
46305         * lib/strchrnul.c (strchrnul): Define with a prototype.
46306         Fix bug: c_in was not converted to char before searching.
46307
46308         The following changes are not K&R related:
46309
46310         * lib/group-member.h: Include <sys/types.h>, so that this file is
46311         self-contained.
46312         * lib/makepath.h: Likewise.
46313
46314         * lib/getusershell.c (readname, default_index, line_size, readname):
46315         Use size_t, not int, for sizes.
46316         (readname): If the size overflows, report an error instead of
46317         looping forever.
46318
46319 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46320
46321         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
46322         libc.
46323
46324 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46325
46326         * README: New section: portability guidelines.
46327
46328 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46329
46330         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
46331         C89 spec.
46332
46333 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46334
46335         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
46336
46337 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46338
46339         Assume C89 or better; remove K&R cruft.
46340         A few of these changes were first proposed by Derek Robert Price
46341         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
46342
46343         * lib/addext.c: Include <string.h> unconditionally.
46344         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
46345         Don't declare getenv or malloc.
46346
46347         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
46348         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
46349         (NULL): Remove.
46350         (find_stack_direction, alloca): Use prototypes.
46351
46352         * lib/atexit.c (atexit): Define using a prototype.
46353
46354         * lib/basename.c, dirname.c, stripslash.c:
46355         Include <string.h> unconditionally.
46356
46357         * lib/bcopy.c: Include <stddef.h>.
46358         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
46359
46360         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
46361
46362         * lib/error.h (error, error_at_line, error_print_progname)
46363         [! (defined (__STDC__) && __STDC__)]: Remove decls.
46364         * lib/error.c: Include error.h first, to check interface.
46365         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46366         (VA_START): Remove; all uses changeed to va_start.
46367         (exit, strerror): Remove decls.
46368         (error_print_progname): Prototype uncondionally.
46369         Don't include <errno.h>; no longer needed.
46370         (private_strerror): Remove.
46371         (error_tail): Always define.
46372         (error, error_at_line): Assume C89 or better; always use prototypes.
46373         * lib/fatal.c: Include "fatal.h" first, to test interface.
46374         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46375         (VA_START): Remove; all uses changed to va_start.
46376         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
46377         this case.
46378         (exit): Remove decl.
46379         (fatal): Prototype unconditionally.  Assume va_start works.
46380         Abort at end, to pacify gcc.
46381
46382         * lib/euidaccess.c (main): Define with a prototype.
46383
46384         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
46385
46386         * lib/exitfail.c: Include <stdlib.h> unconditionally.
46387
46388         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
46389         prototypes.
46390         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
46391         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
46392         (getenv): Remove decl.
46393         (fnmatch): Define using a prototype.
46394         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
46395         (FCT): Define using a prototype.
46396
46397         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
46398
46399         * lib/gethostname.c: Include <stddef.h>.
46400         (gethostname): Define with prototype.  Length is size_t, not int.
46401
46402 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46403
46404         Assume C89 or better; remove K&R cruft.
46405         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
46406         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
46407         string.h, getenv, malloc.
46408         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
46409         headers.
46410         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
46411         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
46412         do not check for strerror.
46413         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
46414         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
46415         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
46416         do not check for doprnt or vprintf.
46417         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
46418         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
46419
46420 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46421
46422         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
46423         getversion.c should have been removed then, but was accidentally
46424         preserved.
46425
46426         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
46427         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
46428
46429 2003-09-08  Karl Berry  <karl@gnu.org>
46430
46431         * config/config.sub, config.guess, srclistvars.sh: update from savannah
46432                 config, forget about prep.
46433
46434         * config/depcomp, missing: update from automake.
46435
46436 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46437
46438         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
46439         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46440
46441 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46442
46443         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
46444         copy_tm_result.  Bug reported by Simon Josefsson in
46445         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46446
46447 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46448
46449         * m4/time_r.m4: New file.
46450         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
46451         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
46452         is. Check for timegm declaration.
46453         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
46454         Do not check for gmtime_r.
46455         Replace mktime if __mktime_internal does not exist and if mktime
46456         hasn't been replaced already.
46457
46458 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46459
46460         * lib/time_r.c, lib/time_r.h: New files.
46461
46462         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
46463         __localtime_r.
46464         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
46465         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
46466
46467         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
46468         __gmtime_r.
46469         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
46470         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
46471         Include <time_r.h>.
46472
46473         * lib/timegm.c: Switch to glibc implementation, with the following
46474         changes:
46475         [defined HAVE_CONFIG_H]: Include <config.h>.
46476         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
46477         (__mktime_internal) [!defined _LIBC]: New decl.
46478         (__gmtime_r) [!defined _LIBC]: New macro and function.
46479         (timegm): Use a prototype, since gnulib assumes C89.
46480         Do not bother declaring tmp to be const, as it's not really usefu.
46481         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
46482         (timegm): Declare only if HAVE_DECL_TIMEGM.
46483
46484 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46485
46486         * MODULES.html.sh (func_all_modules): Add time_r.
46487         * modules/time_r: New file.
46488         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
46489         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
46490
46491 2003-09-03  Paul Eggert  <eggert@twinsun.com>
46492
46493         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
46494         Bug reported by Lute Kamstra in
46495         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
46496
46497         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
46498         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
46499         course with correspondingly smaller numbers for tomorrow and
46500         yesterday.  From Tadayoshi Funaba.  Originally installed into
46501         sh-utils on 1999-08-07, but the patch got lost (I guess during the
46502         coreutils merge?).
46503
46504 2003-08-31  Simon Josefsson  <jas@extundo.com>
46505
46506         * modules/timegm: New file.
46507         * MODULES.html.sh (func_all_modules): Add timegm.
46508
46509 2003-08-31  Simon Josefsson  <jas@extundo.com>
46510
46511         * m4/timegm.m4: New file.
46512
46513 2003-08-31  Simon Josefsson  <jas@extundo.com>
46514
46515         * lib/timegm.h: New file.
46516         * lib/timegm.c: New file.  Based on
46517         wget-1.8.2/src/http.c:mktime_from_utc.
46518
46519 2003-08-31  Karl Berry  <karl@gnu.org>
46520
46521         * lib/argp.h: update from libc.
46522
46523 2003-08-28  Bruno Haible  <bruno@clisp.org>
46524
46525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
46526         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
46527         followed by '#define fnmatch fnmatch_posix' gives an error.
46528
46529 2003-08-28  Bruno Haible  <bruno@clisp.org>
46530
46531         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
46532         warning on QNX, which defines O_BINARY to 000000.
46533
46534 2003-08-27  Jim Meyering  <jim@meyering.net>
46535
46536         * m4/mkstemp.m4: Require that the system mkstemp be able to create
46537         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
46538         would fail after 32.  Reported by Danny Levinson.  Details here:
46539         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
46540
46541 2003-08-24  Bruno Haible  <bruno@clisp.org>
46542
46543         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
46544         MSVC7 <stdio.h> is included later.
46545
46546 2003-08-22  Simon Josefsson  <jas@extundo.com>
46547
46548         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
46549
46550 2003-08-20  Karl Berry  <karl@gnu.org>
46551
46552         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
46553
46554 2003-08-20  Bruno Haible  <bruno@clisp.org>
46555
46556         * modules/progname: New file.
46557         * MODULES.html.sh (func_all_modules): Add progname.
46558
46559 2003-08-20  Bruno Haible  <bruno@clisp.org>
46560
46561         * lib/progname.h: New file, from GNU gettext.
46562         * lib/progname.c: New file, from GNU gettext.
46563         * lib/progreloc.c: New file, from GNU gettext.
46564
46565 2003-08-19  Jim Meyering  <jim@meyering.net>
46566
46567         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
46568         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
46569
46570 2003-08-19  Bruno Haible  <bruno@clisp.org>
46571
46572         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
46573         more.
46574
46575 2003-08-19  Bruno Haible  <bruno@clisp.org>
46576
46577         * lib/xstrdup.c: Assume <string.h> exists.
46578
46579 2003-08-18  Paul Eggert  <eggert@twinsun.com>
46580
46581         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
46582         in makefile rules.
46583
46584 2003-08-18  Jim Meyering  <jim@meyering.net>
46585
46586         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
46587         * m4/lib-ld.m4: Likewise.
46588
46589 2003-08-18  Jim Meyering  <jim@meyering.net>
46590
46591         * lib/setenv.h: Indent nested cpp directive.
46592         * lib/vasnprintf.c: Remove trailing blanks.
46593
46594 2003-08-17  Simon Josefsson  <jas@extundo.com>
46595
46596         * modules/xstrndup: New file.
46597         * MODULES.html.sh (func_all_modules): Add xstrndup.
46598
46599 2003-08-17  Simon Josefsson  <jas@extundo.com>
46600
46601         * modules/argp: Fix autoconf macro name. Add more dependencies.
46602
46603 2003-08-17  Simon Josefsson  <jas@extundo.com>
46604
46605         * m4/xstrndup.m4: New file.
46606
46607 2003-08-17  Simon Josefsson  <jas@extundo.com>
46608
46609         * m4/argp.m4: New file.
46610
46611 2003-08-17  Simon Josefsson  <jas@extundo.com>
46612             Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/xstrndup.h: New file.
46615         * lib/xstrndup.c: New file.
46616
46617 2003-08-17  Bruno Haible  <bruno@clisp.org>
46618
46619         * modules/strndup (Files, Include): Add lib/strndup.h.
46620
46621 2003-08-17  Bruno Haible  <bruno@clisp.org>
46622
46623         * modules/euidaccess (Files): Add lib/euidaccess.h.
46624
46625 2003-08-17  Bruno Haible  <bruno@clisp.org>
46626
46627         * lib/strndup.h: New file.
46628
46629 2003-08-17  Bruno Haible  <bruno@clisp.org>
46630
46631         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
46632         like AC_GNU_SOURCE.
46633         * modules/extensions (configure.ac): Comment out the invocation of
46634         gl_USE_SYSTEM_EXTENSIONS.
46635
46636 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46637
46638         Merges from coreutils, etc.
46639         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
46640         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
46641         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
46642         fixing a typo.
46643         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
46644         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
46645
46646 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46647
46648         Document merge from coreutils.
46649         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
46650         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
46651         * modules/utime: Add m4/utimes-null.m4.
46652
46653 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46654
46655         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
46656         space, undoing this 2003-08-12 change:
46657         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46658
46659 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46660
46661         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
46662         strtoul.c from libc, undoing this 2003-08-12 change:
46663         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46664
46665 2003-08-16  Jim Meyering  <jim@meyering.net>
46666
46667         Merges from coreutils.
46668         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
46669         prefix.  Adjust cache variables similarly.  Create 500 rather than
46670         just 300 files, to exercise bug on Darwin6.5, too.
46671         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
46672         $missing_dir.
46673         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
46674         AM_SYS_POSIX_TERMIOS.
46675         Reported by mkc@mathdogs.com.
46676         Also change use of $am_cv_sys_posix_termios
46677         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
46678         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
46679         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
46680         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
46681         in /proc/mounts until it finds one with matching device number.  This
46682         is unnecessary when the FILE argument *is* a mount point.  No stat call
46683         is necessary in that case.  So, disable the statvfs-testing code on
46684         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
46685         as RedHat bug# 84846.
46686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46687         to 1MB, so as not to render systems with no stack size limit (e.g.,
46688         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46689         Include <unistd.h>.  On some systems,
46690         it is required for the definition of _SC_PAGESIZE.
46691
46692 2003-08-16  Jim Meyering  <jim@meyering.net>
46693
46694         Merge from coreutils.
46695         * lib/xstrtoimax.c: #else #if -> #elif.
46696         * lib/xstrtoumax.c: Likewise.
46697
46698 2003-08-16  Jim Meyering  <jim@meyering.net>
46699
46700         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
46701         * m4/utimes.m4: Removed.
46702         * m4/utimes-null.m4: Renamed from utimes.m4.
46703
46704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46705         to 1MB, so as not to render systems with no stack size limit (e.g.,
46706         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46707         Include <unistd.h>.  On some systems,
46708         it is required for the definition of _SC_PAGESIZE.
46709
46710 2003-08-16  Jim Meyering  <jim@meyering.net>
46711         and Paul Eggert  <eggert@cs.ucla.edu>
46712
46713         Merges from coreutils, etc.
46714
46715         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
46716         using the latest version from cvs.  This avoids problems with #line
46717         directives using a vendor (Sun) compiler.
46718         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
46719         Don't set GETGROUPS_LIB here; now it's
46720         done via getgroups.m4's wrapper function.
46721         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
46722         rather than just in sh-util/configure.in, so that the
46723         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
46724         same.
46725         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
46726         AC_FUNC_GETLOADAVG where to find getloadavg.c.
46727         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
46728         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
46729         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
46730         Remove code that is now done by the newly-required macros.
46731         Append $(EXEEXT) to DF_PROG.
46732         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
46733         Do not invoke or require the following here,
46734         since prereq.m4 or some gnulib .m4 now does this for us:
46735         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
46736         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
46737         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
46738         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
46739         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
46740         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
46741         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
46742         AC_FUNC_OBSTACK.
46743         Do not replace the following functions, as this is now the job
46744         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
46745         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
46746         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
46747         atexit getpass, strdup, getpagesize.
46748         Replace 'raise'.
46749         Do not check for the following functions, as this is now the job
46750         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
46751         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
46752         setregid.
46753         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
46754         Check for sys/sysctl.h.
46755         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
46756         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
46757         of checking for ssize_t ourselves.
46758
46759         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
46760         Require every macro that gnulib/modules/* suggests for us.
46761         (jm_PREREQ_ADDEXT): New macro.
46762         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
46763         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
46764
46765         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
46766         (gl_PHYSMEM): Use it.
46767         Also check for `table' function.
46768         Check for new headers and functions.
46769         Add check for sys/sysmp.h.
46770         With suggestions from Kaveh Ghazi.
46771         Ignore headers that are present but cannot be compiled.  This
46772         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
46773         C 5.4.
46774
46775 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46776
46777         Document merge from coreutils.
46778         * modules/userspec: Depend on posixver.
46779         * modules/strftime: Depend on tzset.
46780
46781 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46782
46783         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
46784         rather than tab, after '#' in shell-script copyright notices.
46785         Suggested by Bruno Haible.
46786
46787 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46788
46789         * config/srclist-update: Use three spaces, rather than tab, after '#'
46790         in shell-script copyright notices.  Suggested by Bruno Haible.
46791         Remove unnecessary parenthesization in regular expression.
46792
46793 2003-08-15  Jim Meyering  <jim@meyering.net>
46794
46795         Merge from coreutils.
46796         * lib/xgethostname.c: Include <stdlib.h>.
46797         (xghostname): Don't exit for anything other than memory-related
46798         failure; just return NULL.
46799         * lib/userspec.c: Include "posixver.h".
46800         (parse_user_spec): Accept `.' as a separator only
46801         in pre-POSIX-200112 mode.
46802         * lib/strtoimax.c: Use #elif rather than #else #if.
46803         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
46804         Remove function, now that we can rely on a working tzset function.
46805         [!_LIBC]: Ensure that the required autoconf test has been run.
46806         [!defined _NL_CURRENT && HAVE_STRFTIME]:
46807         Use underlying_strftime for %r.
46808         * lib/sha.c: Merge in some clean-up and optimization changes from
46809         glibc.
46810         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
46811         Ensure that it is a multiple of 64.
46812         Rearrange loop exit tests so as to avoid performing an
46813         additional fread after encountering an error or EOF.
46814         * lib/realloc.c: Update copyright date.
46815
46816 2003-08-15  Jim Meyering  <jim@meyering.net>
46817         and Paul Eggert  <eggert@twinsun.com>
46818
46819         Merge from coreutils.
46820         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
46821         member but strut utmpx does not.  Needed for AIX 4.3.3.
46822         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
46823
46824 2003-08-15  Jim Meyering  <jim@meyering.net>
46825         and Paul Eggert  <eggert@cs.ucla.edu>
46826
46827         Merges from coreutils, etc.
46828         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
46829         Require gl_FUNC_TZSET_CLOBBER.
46830         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
46831         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
46832         members.
46833
46834 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46835
46836         Help the merge from coreutils.
46837         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
46838         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
46839         * m4/tzset.m4: Use it too.
46840
46841 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46842
46843         * modules/tzset: New file.
46844
46845 2003-08-14  Jim Meyering  <jim@meyering.net>
46846
46847         Merges from coreutils.
46848         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
46849         variable names, rather than @FNMATCH_H@.
46850         * modules/alloca: Likewise for $(ALLOCA_H).
46851
46852         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
46853         the three copies of the literal target, `fnmatch.h'.
46854         * modules/alloca (alloca.h): Likewise.
46855
46856 2003-08-14  Jim Meyering  <jim@meyering.net>
46857
46858         Merge from coreutils.
46859         * m4/tzset.m4: New file.
46860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
46861         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
46862         otherwise, AIX 5.1 systems would end up using the latter.
46863         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
46864         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
46865         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
46866         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
46867
46868 2003-08-14  Jim Meyering  <jim@meyering.net>
46869
46870         Merge from coreutils.
46871         * lib/obstack.h: Whitespace changes.
46872         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
46873         and xcalloc return values.
46874         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
46875         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
46876         hang on OSF/1 5.1 for DIR on both local and remote file systems.
46877         Reported by (and fix confirmed by) Nelson H. F. Beebe.
46878         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46879         error from mntctl.
46880         Use mntctl's return value to drive the entry-processing loop, since
46881         we can't rely on the value of the vmt_length member in the last
46882         entry.  On some systems doing so could result in exhausting
46883         virtual memory.  Based in part on a patch from Mike Jetzer.
46884
46885 2003-08-14  Jim Meyering  <jim@meyering.net>
46886         and Paul Eggert  <eggert@twinsun.com>
46887
46888         Merges from coreutils, plus other fixes.
46889         * lib/physmem.c: Merge in portability changes from gcc/libiberty
46890         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
46891         for credits and details.  Thanks to Kaveh Ghazi for helping
46892         to keep these files in sync.
46893         (ARRAY_SIZE): Define it.
46894         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
46895         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
46896         (memcasecmp): Don't assume size_t fits in unsigned int.
46897         Remove casts and duplicate code.
46898         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
46899         (memcpy): Remove definition.
46900         Merge in some clean-up and optimization changes from glibc.
46901         [BLOCKSIZE]: Move definition to top of file.
46902         Ensure that it is a multiple of 64.
46903         Rearrange loop exit tests so as to avoid performing an
46904         additional fread after encountering an error or EOF.
46905         * lib/md5.h (md5_uintptr): Define.
46906         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
46907         return to the initial working directory.  Preserve errno
46908         for caller.
46909         * lib/idcache.c: Include "xalloc.h".
46910         (xmalloc, xrealloc): Remove decls.
46911         (getuser): Remove casts no longer required in C89.
46912         * lib/human.c: Include stdio.h, for sprintf.
46913         * lib/group-member.c: Include "xalloc.h".
46914         (xmalloc, xrealloc): Remove decls.
46915         (get_group_info): Remove casts no longer required in C89.
46916         * lib/getusershell.c (readname): Remove casts no longer required in
46917         C89.
46918         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
46919         * lib/getline.c: Whitespace fix, from coreutils.
46920
46921 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46922
46923         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
46924         Check for isascii.
46925
46926         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46927         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46928         Undo previous (whitespace-only) change.
46929
46930 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46931
46932         * lib/exclude.c: Include <ctype.h>
46933         (IN_CTYPE_DOMAIN): New macro.
46934         (is_space): New fn.
46935         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
46936         and empty lines.
46937
46938         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46939         Undo previous (whitespace-only) change.
46940
46941 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46942
46943         * config/srclist-update: Change update back to the old behavior,
46944         leaving whitespace alone.  Use one 'sed' command rather than a
46945         pipeline.
46946         (fixlicense): Now a variable, not a function.
46947         (remove_trailing_blanks): Remove.
46948         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
46949         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46950         Undo previous (whitespace-only) change.
46951
46952 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46953
46954         Merge from coreutils.
46955         * modules/euidaccess: Add lib_SOURCES, include for new
46956         file euidaccess.h
46957
46958 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46959
46960         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46961         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46962         Normalize leading white space and remove trailing white space.
46963
46964         Merge from coreutils
46965         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
46966
46967         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
46968         0.12.1.  These files are now being upgraded automatically by
46969         ../config/srclist-update.
46970
46971 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46972
46973         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46974         Normalize leading white space and remove trailing white space.
46975         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
46976         notice, as per ../config/srclist-update.
46977
46978         Merge from coreutils.
46979         * lib/euidaccess.h: New file.
46980         * lib/euidaccess.c: Include it.
46981         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
46982         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
46983         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
46984
46985 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46986
46987         * config/srclist-update: Add copyright notice.
46988         (remove_id_lines, remove_trailing_blanks): New constants.
46989         (fixfile): Use them to normalize spacing a bit in copied files.
46990         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46991         Normalize leading white space and remove trailing white space.
46992
46993         * config/texinfo.tex: Sync with texinfo.
46994
46995         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
46996         strtoul.c from libc, to merge coreutils whitespace changes.
46997
46998         * config/srclist.txt: Get the following m4 files from gettext:
46999         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
47000         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
47001         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
47002         wint_t.m4.
47003
47004 2003-08-12  Karl Berry  <karl@gnu.org>
47005
47006         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
47007         been made.
47008
47009 2003-08-11  Paul Eggert  <eggert@twinsun.com>
47010
47011         * modules/gnu-source, m4/gnu-source.m4:
47012         Remove; we're assuming Autoconf 2.54 or later now.
47013         Suggested by Bruno Haible.
47014         * MODULES.html.sh (func_all_modules): Remove gnu-source.
47015
47016 2003-08-11  Bruno Haible  <bruno@clisp.org>
47017
47018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
47019
47020 2003-08-11  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
47023         (vasnprintf): Use it instead of wcslen.
47024
47025 2003-08-11  Bruno Haible  <bruno@clisp.org>
47026
47027         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
47028         value to ensure that _Bool promotes to int. Use #define for _Bool when
47029         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
47030
47031 2003-08-10  Karl Berry  <karl@gnu.org>
47032
47033         * lib/regex.h: update from libc (whitespace fix).
47034
47035 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47036
47037         Merge some files from coreutils.  These changes were
47038         originally made by Jim Meyering.
47039         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
47040         many older Unixes require this.
47041         * lib/alloca.c (alloca): Remove cast to argument of free;
47042         no longer needed in C89.
47043         * lib/alloca_.h, regex.h: Fix white space to match
47044         what GNU indent does.
47045
47046 2003-08-09  Paul Eggert  <eggert@twinsun.com>
47047
47048         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
47049         apparently Emacs's Unicode mode got confused before my 2003-08-05
47050         checkin.
47051
47052 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47053
47054         * m4/extensions.m4: New file.
47055         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
47056         Require gl_USE_SYSTEM_EXTENSIONS.
47057         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
47058         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
47059
47060 2003-08-08  Paul Eggert  <eggert@twinsun.com>
47061
47062         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
47063         * modules/extensions, modules/gnu-source: New files.
47064         * modules/timespec, modules/unlocked-io: Depend on extensions.
47065
47066 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47067
47068         * modules/restrict: New file.
47069         * MODULES.html.sh (func_all_modules): Add restrict.
47070         * modules/regex: Depend on restrict.
47071
47072 2003-08-07  Paul Eggert  <eggert@twinsun.com>
47073
47074         * m4/restrict.m4: New file.
47075         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
47076
47077 2003-08-07  Bruno Haible  <bruno@clisp.org>
47078
47079         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
47080         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
47081
47082 2003-08-07  Bruno Haible  <bruno@clisp.org>
47083
47084         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
47085         makes the module 'getndelim2' compatible with the module 'getline'.
47086
47087 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47088
47089         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
47090         byte with "\201" to avoid glitches when editing that source file
47091         with multi-gnome-terminal.
47092
47093 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47094
47095         * lib/bumpalloc.h: Remove.
47096
47097 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47098
47099         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
47100         * modules/bumpalloc: Remove.
47101
47102 2003-08-04  Paul Eggert  <eggert@twinsun.com>
47103
47104         * lib/getloadavg.c: Change copyright notice and spacing to conform to
47105         GNU coding style.
47106
47107         Merge from coreutils.
47108         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
47109         1. From glibc.
47110         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
47111         from Karl Berry, implemented by Jim Meyering.
47112         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
47113         from Dmitry V. Levin.
47114         Remove anachronistic cast of xrealloc.
47115         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
47116         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
47117         type. Otherwise, it wouldn't compile with at least /bin/cc on
47118         ymp-cray-unicos9.0.2.X.
47119         Combine two mostly-identical uses of alloca into one.
47120         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
47121
47122 2003-08-04  Dave Love  <d.love@dl.ac.uk>
47123
47124         [From Emacs.]
47125
47126         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
47127         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
47128         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
47129         obsolete NLIST_NAME_UNION.
47130         [__GNU__]: Undef BSD and FSCALE.
47131         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
47132
47133 2003-08-03  Paul Eggert  <eggert@twinsun.com>
47134
47135         * lib/stdbool_.h (_Bool): Make it signed char, instead of
47136         an enum type, so that it's guaranteed to promote to int.  See:
47137         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
47138
47139 2003-08-03  Karl Berry  <karl@gnu.org>
47140
47141         * config/depcomp: update from automake.
47142
47143 2003-07-31  Paul Eggert  <eggert@twinsun.com>
47144
47145         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
47146         (strerror): Don't assume that a printable int fits in 14 bytes.
47147
47148 2003-07-31  Bruno Haible  <bruno@clisp.org>
47149
47150         * modules/getpass-gnu: New file.
47151         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
47152
47153 2003-07-31  Bruno Haible  <bruno@clisp.org>
47154
47155         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
47156
47157 2003-07-24  Karl Berry  <karl@gnu.org>
47158
47159         * config/missing: update from automake.
47160
47161 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
47162             Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
47165         * lib/getline.c (getline, getdelim): Likewise.
47166         Remove _GNU_SOURCE define; now it's defined in config.h through
47167         m4/getline.m4.
47168
47169 2003-07-23  Karl Berry  <karl@gnu.org>
47170
47171         * config/config.sub: update from prep.
47172
47173 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47174
47175         * modules/xalloc (Depends-on): Add exitfail.
47176         * modules/xmemcoll: Likewise.
47177
47178 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47179
47180         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
47181         over-parenthesization in macros.
47182
47183         Sync with coreutils.
47184
47185         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
47186         required by C99.
47187
47188         Use `exit_failure' for xalloc and xmemcoll instead of their own
47189         private exit-failure variables.
47190         * lib/xalloc.h (xalloc_exit_failure): Remove.
47191         * lib/xmalloc.c: Likewise.  Include exitfail.h.
47192         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
47193         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
47194         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
47195         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
47196
47197 2003-07-20  Jim Meyering  <jim@meyering.net>
47198
47199         * modules/closeout (Depends-on): Add exitfail.
47200         Suggestion from Bruno Haible.
47201
47202 2003-07-19  Karl Berry  <karl@gnu.org>
47203
47204         * config/config.sub: update from prep.
47205
47206 2003-07-18  Paul Eggert  <eggert@twinsun.com>
47207
47208         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
47209         Remove.
47210         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
47211         to test that it can stand by itself.  Include "exitfail.h".
47212         Clients should set exit_failure instead.
47213         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
47214
47215 2003-07-18  Bruno Haible  <bruno@clisp.org>
47216
47217         * modules/getndelim2: New file.
47218         * modules/getline: Share files with module getndelim2.
47219         * modules/getnline: Depend on getndelim2 instead of sharing files with
47220         it. Add getnline.c to lib_SOURCES.
47221         * MODULES.html.sh (func_all_modules): Add getndelim2.
47222
47223 2003-07-18  Bruno Haible  <bruno@clisp.org>
47224
47225         * m4/getndelim2.m4: New file.
47226         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
47227         invoke gl_PREREQ_GETNDELIM2.
47228         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
47229         gl_PREREQ_GETNDELIM2.
47230         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
47231         gl_GETNDELIM2.
47232
47233 2003-07-18  Bruno Haible  <bruno@clisp.org>
47234
47235         * lib/getndelim2.h: New file.
47236         * lib/getndelim2.c: Make into a module of its own. Include config.h,
47237         getndelim2.h.
47238         (getndelim2): Make non-static. Change return type to ssize_t.
47239         * lib/getline.h: Change argument names.
47240         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
47241         * lib/getnline.c: Include getndelim2.h.
47242
47243 2003-07-18  Andreas Schwab  <schwab@suse.de>
47244
47245         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
47246
47247 2003-07-17  Karl Berry  <karl@gnu.org>
47248
47249         * config/config.sub: update from prep.
47250
47251 2003-07-17  Bruno Haible  <bruno@clisp.org>
47252
47253         * modules/getnline: New file.
47254         * modules/getline: Add lib/getndelim2.c to source file list.
47255         * MODULES.html.sh (func_all_modules): Add getnline.
47256
47257 2003-07-17  Bruno Haible  <bruno@clisp.org>
47258
47259         * m4/getnline.m4: New file.
47260
47261 2003-07-17  Bruno Haible  <bruno@clisp.org>
47262
47263         * m4/Makefile.am.in: Remove file.
47264         * m4/Makefile.am: Remove file.
47265         * m4/Makefile.in: Remove file.
47266
47267 2003-07-17  Bruno Haible  <bruno@clisp.org>
47268
47269         * lib/getnline.h: New file.
47270         * lib/getnline.c: New file.
47271         * lib/getndelim2.c: New file, extracted from getline.c.
47272         (getndelim2): Renamed from getdelim2, with added nmax argument.
47273         * lib/getline.c: Include getndelim2.c.
47274         (getdelim2): Moved out to getndelim2.c.
47275         (getline, getdelim): Update.
47276
47277 2003-07-17  Bruno Haible  <bruno@clisp.org>
47278
47279         * lib/Makefile.am: Remove file.
47280         * lib/Makefile.in: Remove file.
47281
47282 2003-07-17  Bruno Haible  <bruno@clisp.org>
47283
47284         * configure.in: Remove file.
47285         * Makefile.in: Remove file.
47286
47287 2003-07-17  Bruno Haible  <bruno@clisp.org>
47288
47289         * MODULES.html.sh: Put the </BODY> right before </HTML>.
47290
47291 2003-07-16  Karl Berry  <karl@gnu.org>
47292
47293         * config/srclist-update: was running fixlicense twice, which caused
47294                 texinfo.tex to be nullified for some reason.  Simplify,
47295                 $gplsrc is no longer needed as far as I can see?
47296
47297 2003-07-16  Jim Meyering  <jim@meyering.net>
47298
47299         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
47300
47301 2003-07-15  Paul Eggert  <eggert@twinsun.com>
47302
47303         * config/srclist.txt: Get the following files from gettext-runtime/intl
47304         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
47305         ref-del.sin.  From Bruno Haible.
47306         * config/srclist-update (fixfile): Change grep pattern again, since the
47307         previous fix didn't work (there was another trailing $).  Use
47308         '[$]' to escape the $s.
47309
47310 2003-07-15  Karl Berry  <karl@gnu.org>
47311
47312         * lib/vasnprintf.c: update from gettext.
47313
47314 2003-07-15  Karl Berry  <karl@gnu.org>
47315
47316         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
47317         gets expanded when surrounded by '$'.
47318
47319 2003-07-15  Jim Meyering  <jim@meyering.net>
47320
47321         * modules/save-cwd: Don't depend on error.  From Derek Price.
47322
47323 2003-07-15  Jim Meyering  <jim@meyering.net>
47324
47325         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
47326
47327 2003-07-14  Simon Josefsson  <jas@extundo.com>
47328
47329         * modules/mempcpy: New file.
47330         * MODULES.html.sh (func_all_modules): Add mempcpy.
47331
47332 2003-07-14  Simon Josefsson  <jas@extundo.com>
47333
47334         * m4/mempcpy.m4: New file.
47335
47336 2003-07-14  Simon Josefsson  <jas@extundo.com>
47337
47338         * lib/mempcpy.h: New file.
47339         * lib/mempcpy.c: New file.
47340
47341 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47342
47343         * modules/getdate, modules/posixtm: Depend on mktime.
47344
47345 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47346
47347         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
47348         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
47349         unicodeio.c, unicodeio.h, unlocked-io.h:
47350         Switch from LGPL to GPL.
47351
47352 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47353
47354         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
47355         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
47356         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
47357         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
47358         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
47359         updated automatically by ../config/srclist-update.  This changes
47360         their license from LPGL to GPL.
47361
47362 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47363
47364         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
47365         assumed to refer to the root of the most recent stable gettext version.
47366         * config/srclistvars.sh: Add defaults for eggert.
47367         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
47368         Match "This program" as well as "The program".  This is needed
47369         for gettext.
47370
47371 2003-07-14  Jim Meyering  <jim@meyering.net>
47372
47373         Don't emit diagnostics.  Let callers do that.
47374         * lib/save-cwd.c: Don't include "error.h".
47375         (save_cwd): Don't call error.  Ensure that errno is valid
47376         when returning nonzero.
47377
47378         * lib/save-cwd.h (restore_cwd): Update prototype.
47379         * lib/save-cwd.c (restore_cwd): Remove two parameters.
47380         Simplify.  Don't call error upon failure.  Let callers do that.
47381         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
47382         when auditing is enabled.  But don't bother updating the #if.
47383
47384 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
47385
47386         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
47387         it breaks C++ compilation.
47388         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
47389
47390 2003-07-10  Simon Josefsson  <jas@extundo.com>
47391
47392         * modules/strchrnul (Makefile.am): Add strchrnul.h.
47393
47394 2003-07-10  Jim Meyering  <jim@meyering.net>
47395
47396         * m4/clock_time.m4: Remove trailing blank.
47397         * m4/intmax_t.m4: Likewise.
47398
47399 2003-07-10  Jim Meyering  <jim@meyering.net>
47400
47401         * lib/vasnprintf.c: Remove trailing blanks.
47402         Make cpp indentation consistent.
47403
47404 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47405
47406         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
47407         posixver.c, strftime.c, strnlen.c, strverscmp.c:
47408         Switch from LGPL to GPL.
47409
47410 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47411
47412         * config/srclist.txt: Sort sublists.  Add
47413         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
47414         that differ from gnulib for one reason or another; we'd like this list
47415         to be smaller but for now let's document what we have.
47416
47417 2003-07-08  Paul Eggert  <eggert@twinsun.com>
47418
47419         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
47420         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
47421         and sweeter "eval x=$x".
47422         * config/srclist.txt: Get lib/argp* from glibc.
47423
47424 2003-07-07  Paul Eggert  <eggert@twinsun.com>
47425
47426         * lib/mktime.c: Fix some boundary cases and remove need for floating
47427         point.
47428
47429         Issue a compile-time diagnostic if time_t is floating point, or if
47430         two's complement arithmetic is not in effect, or if arithmetic
47431         right shift does not propagate the sign.  These assumptions were
47432         all in the original code but they weren't checked.
47433
47434         (TIME_T_MIDPOINT, verify): New macros.
47435         (__isleap): Remove; it has integer overflow problems.
47436         (leapyear): New function, without those problems.
47437         (ydhms_tm_diff): Remove; splitting into two parts.
47438         (ydhms_diff): New function, containing the arithmetic part of
47439         the old ydhms_tm_diff function.  Issue a compile-time
47440         diagnostic if we are not using C99 integer division.
47441         Avoid casts when possible.
47442         (guess_time_tm): New function, containing the checking part of
47443         the old ydhms_tm_diff function.  Return the new value, rather than
47444         the difference between it and the old.  Accept a new argument T
47445         so that *T specifies the old value.  Check for overflow in the result.
47446
47447         (__mktime_internal): Use a time_t offset, not a long int offset.
47448         This undoes the 2003-06-04 change, which is no longer needed now
47449         that we have better overflow checking.
47450         (localtime_offset): Likewise.
47451
47452         (__mktime_internal): Avoid harmful overflow on hosts where time_t
47453         and long are 64-bit but int is only 32-bit.
47454         (ydhms_diff): Use long int to store year1 and yday1.
47455         Issue a compile-time diagnostic if long int is not wide enough.
47456
47457         (__mktime_internal): Use long int to store adjusted year and yday.
47458         Use plain C rather than preprocessor commands, if that doesn't
47459         affect efficiency.
47460         Check for overflow (and try to repair) after each probe
47461         rather than checking only at the very end.  This avoids some bugs
47462         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
47463         does not equal GMT offset at maximum time).
47464         Use integer to check for overflow rather than floating point; this
47465         is more portable to non-IEEE hosts, and is a tad faster.
47466         When we detect that we are oscillating between two values,
47467         don't check whether tm_isdst has the requested value, since
47468         we already know the answer.  When tm_isdst has the wrong value,
47469         use a different heuristic to find the right one, based on the
47470         extreme values actually observed in practice in tz2003a,
47471         rather than the (overly optimistic) "previous 3 calendar quarters".
47472
47473         (not_equal_tm, print_tm, check_result): Use "const T" rather than
47474         "T const" to accommodate glibc style.
47475         (check_result): Use less-confusing report format.  "long" -> "long int.
47476         (main): Likewise.
47477         Don't loop if the iteration overflows time_t.
47478         Allow a negative step in the iteration.
47479
47480 2003-07-06  Karl Berry  <karl@gnu.org>
47481
47482         * config/depcomp: update from automake.
47483         * config/config.sub: update from prep.
47484
47485 2003-07-03  Karl Berry  <karl@gnu.org>
47486
47487         * config/config.guess: update from prep.
47488
47489 2003-07-01  Paul Eggert  <eggert@twinsun.com>
47490
47491         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
47492         xreadlink.c now includes it unconditionally.
47493
47494 2003-07-01  Paul Eggert  <eggert@twinsun.com>
47495
47496         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
47497         having it depend on HAVE_SYS_TYPES_H.
47498
47499 2003-07-01  Bruno Haible  <bruno@clisp.org>
47500
47501         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
47502         <sys/types.h> should be sufficient.
47503         Reported by Paul Eggert.
47504
47505 2003-06-26  Karl Berry  <karl@gnu.org>
47506
47507         * config/depcomp: update from automake.
47508
47509 2003-06-26  Bruno Haible  <bruno@clisp.org>
47510
47511         * modules/human: Depend on module stdbool.
47512
47513 2003-06-25  Bruno Haible  <bruno@clisp.org>
47514
47515         * modules/readlink: New file.
47516         * modules/xreadlink: Depend on it.
47517         * MODULES.html.sh (func_all_modules): Add readlink.
47518
47519 2003-06-25  Bruno Haible  <bruno@clisp.org>
47520
47521         * m4/readlink.m4: New file.
47522
47523 2003-06-25  Bruno Haible  <bruno@clisp.org>
47524
47525         * lib/readlink.c: New file.
47526
47527 2003-06-22  Karl Berry  <karl@gnu.org>
47528
47529         * config/srclist.txt: update mkinstalldirs from automake.
47530         * config/mkinstalldirs: update.
47531
47532 2003-06-22  Bruno Haible  <bruno@clisp.org>
47533
47534         Portability to mingw32.
47535         * m4/ssize_t.m4: New file, from GNU gettext.
47536         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
47537         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
47538
47539 2003-06-22  Bruno Haible  <bruno@clisp.org>
47540
47541         * modules/safe-read: Add m4/ssize_t.m4.
47542         * modules/xreadlink: Add m4/ssize_t.m4.
47543
47544 2003-06-20  Bruno Haible  <bruno@clisp.org>
47545
47546         Assume C89, so PARAMS isn't needed.
47547         * lib/unicodeio.h (PARAMS): Remove.
47548         * lib/unicodeio.c: Don't use PARAMS.
47549
47550 2003-06-18  Karl Berry  <karl@gnu.org>
47551
47552         * config/config.{guess,sub}: update from prep.
47553
47554 2003-06-18  Jim Meyering  <jim@meyering.net>
47555
47556         Merge changes from coreutils.
47557         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
47558         Remove explicit declarations of xmalloc and realloc.
47559         Include xalloc.h.
47560         (read_utmp): Remove anachronistic cast of xmalloc.
47561
47562 2003-06-17  Paul Eggert  <eggert@twinsun.com>
47563
47564         Assume C89, so PARAMS isn't needed.
47565         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
47566         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
47567         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
47568         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
47569         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
47570         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
47571         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
47572         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
47573         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
47574         lib/xstrtod.h, lib/xstrtol.h: Likewise.
47575         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
47576         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
47577         no longer needed. Anyway, config.h should always be included before any
47578         other file.
47579
47580 2003-06-11  Simon Josefsson  <jas@extundo.com>
47581
47582         * modules/sysexits: New file.
47583         * MODULES.html.sh (func_all_modules): Add sysexits.
47584
47585 2003-06-11  Simon Josefsson  <jas@extundo.com>
47586
47587         * lib/sysexit_.h: New file.
47588
47589 2003-06-11  Derek Price  <derek@ximbiot.com>
47590
47591         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
47592         necessary.
47593
47594 2003-06-11  Bruno Haible  <bruno@clisp.org>
47595
47596         * m4/sysexits.m4: New file.
47597
47598 2003-06-10  Simon Josefsson  <jas@extundo.com>
47599
47600         * lib/argp.h: New file, from glibc.
47601         * lib/argp-ba.c: New file, from glibc.
47602         * lib/argp-eexst.c: New file, from glibc.
47603         * lib/argp-fmtstream.c: New file, from glibc.
47604         * lib/argp-fmtstream.h: New file, from glibc.
47605         * lib/argp-fs-xinl.c: New file, from glibc.
47606         * lib/argp-help.c: New file, from glibc.
47607         * lib/argp-namefrob.h: New file, from glibc.
47608         * lib/argp-parse.c: New file, from glibc.
47609         * lib/argp-pv.c: New file, from glibc.
47610         * lib/argp-pvh.c: New file, from glibc.
47611         * lib/argp-xinl.c: New file, from glibc.
47612
47613 2003-06-10  Simon Josefsson  <jas@extundo.com>
47614
47615         * modules/strchrnul: New file.
47616
47617 2003-06-10  Simon Josefsson  <jas@extundo.com>
47618
47619         * modules/argp: New file.
47620
47621 2003-06-10  Simon Josefsson  <jas@extundo.com>
47622
47623         * m4/strchrnul.m4: New file.
47624
47625 2003-06-10  Simon Josefsson  <jas@extundo.com>
47626
47627         * lib/strchrnul.h: New file.
47628         * lib/strchrnul.c: New file.
47629
47630 2003-06-10  Bruno Haible  <bruno@clisp.org>
47631
47632         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
47633
47634 2003-06-07  Karl Berry  <karl@gnu.org>
47635
47636         * config/config.{guess,sub}: update from prep.
47637
47638 2003-06-07  Jim Meyering  <jim@meyering.net>
47639
47640         * modules/strtod: Use $(...) notation, not @...@ for
47641         AC_REPLACE'd variables.
47642         * modules/localcharset: Likewise.
47643
47644 2003-06-07  Jim Meyering  <jim@meyering.net>
47645
47646         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
47647         in place of my name in the copyright comment.
47648         Remove definition and uses of __P.
47649
47650         From coreutils.
47651         * lib/stat.c: Don't declare xmalloc explicitly.
47652         Instead, include "xalloc.h".
47653         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
47654         xrealloc, and xcalloc return values.
47655         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
47656         Improve comment.
47657         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
47658
47659 2003-06-07  Bruno Haible  <bruno@clisp.org>
47660
47661         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
47662         avoid AC_CONFIG_LINKS.
47663         * modules/fnmatch (Makefile.am): Use explicit creation rule for
47664         fnmatch.h, to avoid AC_CONFIG_LINKS.
47665         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
47666
47667 2003-06-07  Bruno Haible  <bruno@clisp.org>
47668
47669         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
47670         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
47671         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47672         directory.
47673         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
47674         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47675         directory.
47676
47677 2003-06-06  Jim Meyering  <jim@meyering.net>
47678
47679         Merge from coreutils.
47680         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
47681         Consolidate declarations and initializations of *_base* locals.
47682
47683         Merge from coreutils.
47684         This avoids a core dump on systems without GNU putenv,
47685         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
47686         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
47687         (unsetenv): New static function, from GNU libc.
47688         (rpl_putenv): Use it.
47689
47690         * lib/modechange.c: Remove trailing blanks.
47691
47692         Merge from coreutils.
47693         * lib/fsusage.c: Remove declaration of statfs.
47694         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
47695
47696         * lib/posixtm.c: Include <stdbool.h> unconditionally.
47697
47698 2003-06-06  Jim Meyering  <jim@meyering.net>
47699
47700         * lib/stdbool_.h: Renamed from stdbool.h.in.
47701
47702 2003-06-06  Jim Meyering  <jim@meyering.net>
47703             Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
47706         Adjust Makefile.am snippet not to redirect directly to target.
47707         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
47708
47709 2003-06-05  Paul Eggert  <eggert@twinsun.com>
47710
47711         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
47712         mismatch, look in future quarters as well as past.  This fixes a
47713         bug when processing fall-backwards gaps immediately after a long
47714         period of daylight-saving time.
47715
47716         * lib/mktime.c: Assume freestanding C89 or better.
47717         (HAVE_LIMITS_H): Remove.  Assume it's 1.
47718         (__P): Remove; not used.
47719         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
47720         (mktime, not_equal_tm, print_tm, check_result,
47721         main): Use prototypes.  Use const * where appropriate.
47722         (main): Fix typo in testing code that uncovered by above changes.
47723         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
47724
47725 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47726
47727         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
47728         locale.h, localeconv.  This merges changes from coreutils.
47729
47730         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
47731         It can be removed after the next Autoconf is released.
47732         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
47733         needed.
47734
47735 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47736
47737         * lib/mktime.c: Fix Debian bug 177940
47738         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
47739         (localtime_offset): Now long int, not time_t, because we want it
47740         to be guaranteed to be signed.  All uses changed.
47741         (__mktime_internal): If overflow would occur when adding offset,
47742         don't add it.
47743
47744         Merge 'human' changes from coreutils.  Rewrite to support
47745         locale-specific notations like thousands separators.
47746         * lib/human.c: Simplify authorship notice.
47747         Include human.h immediately after config.h.
47748         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
47749         <limits.h>: Do not include, since human.h does.
47750         (SIZE_MAX, UINTMAX_MAX): New macros.
47751         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
47752         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
47753         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
47754         (power_letter): Renamed from suffixes.
47755         (generate_suffix_backwards): Remove.
47756         (adjust_value): Now takes int style (because of human.h changes)
47757         and long double value (for greater precision on some platforms).
47758         (group_number): New function.
47759         (human_readable): Use it.  Use integer options, not enum.
47760         Put the options before the sizes in the arg list.
47761         Support all the new options.
47762         The old human_readable function has been removed;
47763         use inttostr.h instead.
47764         (human_readable, default_block_size, humblock):
47765         Use uintmax_t, not int, for block sizes.
47766         (human_readable_inexact, block_size_types): Remove.
47767         (block_size_opts): New constant.
47768         (human_options): Renamed from human_block_size, with new signature
47769         that allows block sizes up to UINTMAX_MAX.  All callers changed.
47770         * lib/human.h: Add copyright and authorship notice.
47771         Include <limits.h> and <stdbool.h> unconditionally.
47772         (PARAMS): Remove.  All uses removed.
47773         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
47774         (enum human_inexact_style): Remove tag; now a nameless enum.
47775         (human_floor, human_ceiling, human_round_to_even): Now have
47776         values 2, 0, 1 rather than -1, 1, 0.
47777         (human_group_digits, human_suppress_point_zero, human_autoscale,
47778         human_base_1024, human_SI, human_B): New constants.
47779         (human_readable_inexact, human_block_size): Remove.
47780         (human_readable): Size args are now uintmax_t, not int.
47781         (human_options): New decl.
47782
47783         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
47784         unnecessary now that we assume C89 or better.  This change
47785         imported from coreutils.
47786
47787         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47788         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
47789         in the 2003-05-30 sync from glibc.
47790
47791         .h files should stand alone, but we shouldn't include <sys/types.h>
47792         if we can get away with just <stddef.h>.
47793
47794         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
47795         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
47796         rather than <sys/types.h>, as we merely need size_t.
47797         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
47798         to get size_t.
47799         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
47800         Include <stdio.h>, to get FILE.
47801         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
47802         memcasecmp.h has included <stddef.h> and all we need is size_t.
47803         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
47804         our interface, instead of including <sys/types.h>
47805
47806 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47807
47808         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
47809         now, as glibc mktime is buggy on non-glibc systems.
47810
47811 2003-06-03  Karl Berry  <karl@gnu.org>
47812
47813         * config/config.sub: update from prep.
47814
47815 2003-06-02  Paul Eggert  <eggert@twinsun.com>
47816
47817         [from coreutils]
47818         Fix some minor time-related bugs with POSIX time arguments.
47819         Some valid time stamps were being rejected (notably -1, and
47820         time stamps before 1900 on 64-bit hosts).  And some invalid
47821         time stamps were being accepted, e.g. September 31.
47822
47823         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
47824         that we can return (time_t) -1 successfully.
47825         * lib/posixtm.c: Likewise.
47826         [HAVE_STDBOOL_H]: Include <stdbool.h>.
47827         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
47828         (t): Remove static var.
47829         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
47830         of static var.  All uses changed.
47831         (year): Do not reject years before 1900; they can occur with
47832         64-bit time_t.
47833         (posix_time_parse): Do not check for out-of-range components;
47834         that is now the caller's responsibility, since our checks were
47835         only approximations.
47836         (posixtime): Use mktime to check for out-of-range components,
47837         since it knows them exactly.
47838         If mktime returns (time_t) -1, check whether an error actually occurred
47839         by invoking localtime on -1.
47840         (main) [TEST_POSIXTIME]: Check for input data errors, and report
47841         posixtime failures better.
47842         Improve the test data (in comments only).
47843
47844 2003-06-02  Karl Berry  <karl@gnu.org>
47845
47846         * config/mkinstalldirs (version): new variable.
47847         (--version): new option.
47848         (usage): improve message.
47849
47850 2003-05-30  Karl Berry  <karl@gnu.org>
47851
47852         * lib/mktime.c: update from libc.
47853
47854 2003-05-30  Bruno Haible  <bruno@clisp.org>
47855
47856         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
47857         * config/config.rpath: Upgrade to gettext-0.12.1.
47858
47859 2003-05-30  Bruno Haible  <bruno@clisp.org>
47860
47861         * m4/gettext.m4: Upgrade to gettext-0.12.1.
47862         * m4/nls.m4: New file, from gettext-0.12.1.
47863         * m4/po.m4: New file, from gettext-0.12.1.
47864         * m4/progtest.m4: Upgrade to gettext-0.12.1.
47865
47866 2003-05-30  Bruno Haible  <bruno@clisp.org>
47867
47868         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
47869         * lib/localcharset.h: Likewise.
47870         * lib/localcharset.c: Likewise.
47871
47872 2003-05-29  Karl Berry  <karl@gnu.org>
47873
47874         * config/config.rpath: update from gettext.
47875
47876 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47877
47878         Assume the headers required for C89 freestanding compilers.
47879         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
47880         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
47881         * m4/human.m4 (gl_HUMAN): Likewise.
47882         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
47883         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
47884         * m4/userspec.m4 (gl_USERSPEC): Likewise.
47885         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
47886         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47887         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
47888
47889 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47890
47891         Assume the headers required for C89 freestanding compilers.
47892         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
47893         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
47894         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
47895         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
47896         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
47897         define, since <limits.h> is guaranteed to do that.
47898         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
47899         * lib/exclude.c: Include <stdbool.h> unconditionally.
47900         * lib/tempname.c: Include <stddef.h> unconditionally.
47901         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
47902         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
47903         <stddef.h> does that.
47904         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
47905         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
47906         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
47907         needed.
47908         * lib/xstrtol.c: Likewise.
47909         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
47910         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
47911
47912         * lib/addext.c (addext): Use assignment rather than cast, to avoid
47913         warnings on some platforms.
47914
47915         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47916         arbitrarily.
47917
47918 2003-05-26  Jim Meyering  <jim@meyering.net>
47919
47920         Merge in a change from coreutils:
47921         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
47922         that is guaranteed to be `no'.  Use `no_such_member' to indicate
47923         that condition, rather than `-1' which is slightly misleading.
47924         Change the name of the cache variable to have the gl_ prefix.
47925         Prompted by a patch from Richard Dawe for DJGPP.
47926
47927 2003-05-24  Karl Berry  <karl@gnu.org>
47928
47929         * config/config.guess: update from prep.
47930
47931 2003-05-22  Karl Berry  <karl@gnu.org>
47932
47933         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
47934
47935 2003-05-20  Karl Berry  <karl@gnu.org>
47936
47937         * config/config.guess: update from prep.
47938
47939 2003-05-18  Karl Berry  <karl@gnu.org>
47940
47941         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
47942         might actually be set by the user.
47943
47944         * config/depcomp, install-sh, mdate-sh: update from automake.
47945
47946 2003-05-17  Bruno Haible  <bruno@clisp.org>
47947
47948         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
47949         invalid expansion for AC_EGREP_CPP.
47950         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47951         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47952         Suggested by Akim Demaille <akim@epita.fr> in
47953         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
47954
47955 2003-05-12  Jim Meyering  <jim@meyering.net>
47956
47957         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
47958         the space-padded-by-default conversion specifiers, %e, %k, %l.
47959
47960 2003-05-12  Bruno Haible  <bruno@clisp.org>
47961
47962         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
47963         the string is longer than 4 KB.
47964
47965 2003-05-11  Karl Berry  <karl@gnu.org>
47966
47967         * config/config.{guess,sub}: update from prep.
47968
47969 2003-05-09  Bruno Haible  <bruno@clisp.org>
47970
47971         * modules/error: Add m4/strerror_r.m4 to file list.
47972
47973 2003-05-03  Bruno Haible  <bruno@clisp.org>
47974
47975         Upgrade to Unicode-4.0.
47976         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
47977         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
47978         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
47979         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
47980         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
47981         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
47982         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
47983         Change width of U+E0100..U+E01EF from 1 to 0.
47984
47985 2003-04-25  Jim Meyering  <jim@meyering.net>
47986
47987         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
47988         of type size_t, not int.
47989
47990 2003-04-25  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/copy-file.c: Include <stddef.h>, for size_t.
47993
47994 2003-04-21  Paul Eggert  <eggert@twinsun.com>
47995
47996         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
47997         code which expansion is under static control.  Patch imported from
47998         Akim Demaille's patch to Bison; see
47999         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
48000
48001 2003-04-14  Bruno Haible  <bruno@clisp.org>
48002
48003         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
48004
48005 2003-04-11  Jim Meyering  <jim@meyering.net>
48006
48007         Merge changes from Coreutils.
48008
48009         2003-03-22  Jim Meyering  <jim@meyering.net>
48010
48011         * lib/strftime.c (widen): Cast alloca return value to proper type.
48012
48013         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
48014
48015         From GNU libc.
48016         * lib/strftime.c (my_strftime): Handle very large width
48017         specifications for numeric values correctly.  Improve checks for
48018         overflow.
48019
48020         2003-01-19  Jim Meyering  <jim@meyering.net>
48021
48022         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
48023         definitions.
48024         (nl_get_alt_digit) [! defined my_strftime]: Define.
48025         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
48026         _nl_get_alt_digit and _nl_get_walt_digit.
48027
48028         * lib/strftime.c (my_strftime): Merge in locale-related changes from
48029         libc. These changes have no effect outside of _LIBC.
48030
48031 2003-04-10  Bruno Haible  <bruno@clisp.org>
48032
48033         * modules/findprog: New file.
48034         * MODULES.html.sh (func_all_modules): Add it.
48035
48036 2003-04-10  Bruno Haible  <bruno@clisp.org>
48037
48038         * m4/findprog.m4: New file.
48039         * m4/eaccess.m4: New file.
48040
48041 2003-04-10  Bruno Haible  <bruno@clisp.org>
48042
48043         * lib/findprog.h: New file, from GNU gettext.
48044         * lib/findprog.c: New file, from GNU gettext.
48045
48046 2003-04-05  Jim Meyering  <jim@meyering.net>
48047
48048         Merge changes from Coreutils.
48049
48050         * lib/exclude.h (PARAMS): Remove definition and uses.
48051         * lib/exclude.c: Remove uses of `PARAMS'.
48052
48053         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
48054         Add test-cases for DOS filenames. Declare program_name.
48055         (main): Set up program_name.  Patch by Rich Dawe.
48056
48057         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48058         error from mntctl.
48059         Use mntctl's return value to drive the entry-processing loop, since
48060         we can't rely on the value of the vmt_length member in the last
48061         entry.  On some systems doing so could result in exhausting
48062         virtual memory.  Based in part on a patch from Mike Jetzer.
48063
48064 2003-04-04  Bruno Haible  <bruno@clisp.org>
48065
48066         * modules/linebreak: New file.
48067         * MODULES.html.sh (func_all_modules): Add it.
48068
48069 2003-04-04  Bruno Haible  <bruno@clisp.org>
48070
48071         * m4/linebreak.m4: New file.
48072
48073 2003-04-04  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/linebreak.h: New file, from GNU gettext.
48076         * lib/linebreak.c: New file, from GNU gettext with slight
48077         modifications.
48078         * lib/lbrkprop.h: New file, from GNU gettext.
48079
48080 2003-04-03  Bruno Haible  <bruno@clisp.org>
48081
48082         * modules/utf8-ucs4: New file.
48083         * modules/utf16-ucs4: New file.
48084         * modules/ucs4-utf8: New file.
48085         * modules/ucs4-utf16: New file.
48086         * MODULES.html.sh (func_all_modules): Add them.
48087
48088 2003-04-03  Bruno Haible  <bruno@clisp.org>
48089
48090         * m4/utf-ucs4.m4: New file.
48091         * m4/ucs4-utf.m4: New file.
48092
48093 2003-04-03  Bruno Haible  <bruno@clisp.org>
48094
48095         * lib/utf8-ucs4.h: New file, from GNU gettext.
48096         * lib/utf16-ucs4.h: New file, from GNU gettext.
48097         * lib/ucs4-utf8.h: New file, from GNU gettext.
48098         * lib/ucs4-utf16.h: New file, from GNU gettext.
48099
48100 2003-04-02  Bruno Haible  <bruno@clisp.org>
48101
48102         * modules/binary-io: New file.
48103         * MODULES.html.sh (func_all_modules): Add it.
48104
48105 2003-04-02  Bruno Haible  <bruno@clisp.org>
48106
48107         * lib/binary-io.h: New file, from GNU gettext.
48108
48109 2003-04-01  Bruno Haible  <bruno@clisp.org>
48110
48111         * modules/pathname: New file.
48112         * MODULES.html.sh (func_all_modules): Add it.
48113
48114 2003-04-01  Bruno Haible  <bruno@clisp.org>
48115
48116         * lib/pathname.h: New file, from GNU gettext.
48117         * lib/concatpath.c: New file, from GNU gettext.
48118
48119 2003-03-30  Bruno Haible  <bruno@clisp.org>
48120
48121         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
48122
48123 2003-03-30  Bruno Haible  <bruno@clisp.org>
48124
48125         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
48126         function chown() doesn't exist.
48127
48128 2003-03-28  Bruno Haible  <bruno@clisp.org>
48129
48130         * modules/copy-file: New file.
48131         * MODULES.html.sh (func_all_modules): Add it.
48132
48133 2003-03-28  Bruno Haible  <bruno@clisp.org>
48134
48135         * m4/copy-file.m4: New file.
48136
48137 2003-03-28  Bruno Haible  <bruno@clisp.org>
48138
48139         * lib/copy-file.h: New file, from GNU gettext.
48140         * lib/copy-file.c: New file, from GNU gettext.
48141
48142 2003-03-18  Jim Meyering  <jim@meyering.net>
48143
48144         * lib/quote.c (quote_n): Fix typo in comment.
48145
48146 2003-03-18  Bruno Haible  <bruno@clisp.org>
48147
48148         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
48149         checking.
48150         * m4/onceonly_2_57.m4: Likewise.
48151
48152 2003-03-17  Bruno Haible  <bruno@clisp.org>
48153
48154         * m4/onceonly.m4: Require autoconf 2.54 or newer.
48155         (m4_quote): Remove macro.
48156         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
48157
48158 2003-03-14  Jim Meyering  <jim@meyering.net>
48159
48160         Merge changes from Coreutils.
48161         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
48162         to be const, in order to avoid warnings.
48163         (obstack_room): Likewise.
48164         (obstack_empty_p): Likewise.
48165
48166 2003-03-14  Bruno Haible  <bruno@clisp.org>
48167
48168         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
48169         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
48170
48171 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48172
48173         Merge changes from Bison.
48174         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
48175         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
48176         when compiling Bison 1.875's `bitset bset = obstack_alloc
48177         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
48178         * lib/hash.c: Include <stdbool.h> unconditionally.
48179
48180 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48181
48182         * m4/onceonly.m4 (m4_quote): New macro.
48183         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
48184         Quote AC_FOREACH variable-expansions properly.
48185
48186 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48187
48188         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
48189
48190 2003-03-09  Paul Eggert  <eggert@twinsun.com>
48191
48192         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
48193         Reported by Bruce Becker; see:
48194         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
48195
48196 2003-03-03  Paul Eggert  <eggert@twinsun.com>
48197             Bruno Haible  <bruno@clisp.org>
48198
48199         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
48200         Reported by John Hughes, see
48201         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
48202
48203 2003-02-20  Bruno Haible  <bruno@clisp.org>
48204
48205         * MODULES.html.sh (func_all_modules): Add poll.
48206
48207 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48208
48209         * modules/poll: New file.
48210
48211 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48212
48213         * lib/poll_.h: New file.
48214         * lib/poll.c: New file.
48215
48216 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48217
48218         * m4/poll.m4: New file.
48219
48220 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48221
48222         * modules/mathl: New file.
48223
48224 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48225
48226         * lib/mathl.h: New file.
48227         * lib/acosl.c: New file.
48228         * lib/asinl.c: New file.
48229         * lib/atanl.c: New file.
48230         * lib/ceill.c: New file.
48231         * lib/cosl.c: New file.
48232         * lib/expl.c: New file.
48233         * lib/floorl.c: New file.
48234         * lib/frexpl.c: New file.
48235         * lib/ldexpl.c: New file.
48236         * lib/logl.c: New file.
48237         * lib/sincosl.c: New file.
48238         * lib/sinl.c: New file.
48239         * lib/sqrtl.c: New file.
48240         * lib/tanl.c: New file.
48241         * lib/trigl.c: New file.
48242         * lib/trigl.h: New file.
48243
48244 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48245
48246         * m4/mathl.m4: New file.
48247
48248 2003-02-18  Bruno Haible  <bruno@clisp.org>
48249
48250         * MODULES.html.sh (func_all_modules): Add mathl.
48251
48252 2003-02-17  Bruno Haible  <bruno@clisp.org>
48253
48254         * modules/mkdtemp: New module.
48255         * MODULES.html.sh (func_all_modules): Add it.
48256
48257 2003-02-17  Bruno Haible  <bruno@clisp.org>
48258
48259         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
48260
48261 2003-02-17  Bruno Haible  <bruno@clisp.org>
48262
48263         * lib/mkdtemp.h: New file, from GNU gettext.
48264         * lib/mkdtemp.c: New file, from GNU gettext.
48265
48266 2003-02-02  Jim Meyering  <jim@meyering.net>
48267
48268         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
48269         e.g. glibc-2.2.93.
48270
48271 2003-01-31  Bruno Haible  <bruno@clisp.org>
48272
48273         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
48274         'rpl_rename'.
48275         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
48276         'rpl_strnlen'.
48277         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
48278         'rpl_strtod'.
48279         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
48280         'rpl_utime'.
48281
48282 2003-01-31  Bruno Haible  <bruno@clisp.org>
48283
48284         * lib/rename.c: #undef rename before defining rpl_rename.
48285         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
48286
48287 2003-01-30  Bruno Haible  <bruno@clisp.org>
48288
48289         * modules/vasnprintf, modules/vasprintf: New modules.
48290         * MODULES.html.sh (func_all_modules): Add them.
48291
48292 2003-01-30  Bruno Haible  <bruno@clisp.org>
48293
48294         * m4/signed.m4: New file, from GNU gettext.
48295         * m4/longdouble.m4: New file, from GNU gettext.
48296         * m4/wchar_t.m4: New file, from GNU gettext.
48297         * m4/wint_t.m4: New file, from GNU gettext.
48298         * m4/vasnprintf.m4: New file.
48299         * m4/vasprintf.m4: New file.
48300
48301 2003-01-30  Bruno Haible  <bruno@clisp.org>
48302
48303         * lib/printf-args.h: New file, from GNU gettext.
48304         * lib/printf-args.c: New file, from GNU gettext.
48305         * lib/printf-parse.h: New file, from GNU gettext.
48306         * lib/printf-parse.c: New file, from GNU gettext.
48307         * lib/vasnprintf.h: New file, from GNU gettext.
48308         * lib/vasnprintf.c: New file, from GNU gettext.
48309         * lib/asnprintf.c: New file, from GNU gettext.
48310         * lib/vasprintf.h: New file, from GNU gettext with modifications.
48311         * lib/vasprintf.c: New file, from GNU gettext.
48312         * lib/asprintf.c: New file, from GNU gettext.
48313
48314 2003-01-29  Bruno Haible  <bruno@clisp.org>
48315
48316         * modules/stpncpy: New module.
48317         * MODULES.html.sh (func_all_modules): Add it.
48318
48319 2003-01-29  Bruno Haible  <bruno@clisp.org>
48320
48321         * m4/stpncpy.m4: New file.
48322
48323 2003-01-29  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/stpncpy.h: New file, from GNU gettext with modifications.
48326         * lib/stpncpy.c: New file, from GNU gettext with modifications.
48327
48328 2003-01-28  Bruno Haible  <bruno@clisp.org>
48329
48330         * modules/c-ctype: New module.
48331         * MODULES.html.sh (func_all_modules): Add it.
48332
48333 2003-01-28  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
48336         Paul Eggert.
48337         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
48338         Paul Eggert.
48339
48340 2003-01-27  Bruno Haible  <bruno@clisp.org>
48341
48342         * modules/xsetenv: New module.
48343         * MODULES.html.sh (func_all_modules): Add it.
48344
48345 2003-01-27  Bruno Haible  <bruno@clisp.org>
48346
48347         * lib/xsetenv.h: New file, from GNU gettext.
48348         * lib/xsetenv.c: New file, from GNU gettext.
48349
48350 2003-01-23  Jim Meyering  <jim@meyering.net>
48351
48352         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
48353         from working on systems without dirfd (at least Irix and OSF1/Tru64).
48354
48355 2003-01-23  Bruno Haible  <bruno@clisp.org>
48356
48357         * modules/minmax: New module.
48358         * MODULES.html.sh (func_all_modules): Add it.
48359
48360 2003-01-23  Bruno Haible  <bruno@clisp.org>
48361
48362         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
48363         Eggert.
48364
48365 2003-01-22  Bruno Haible  <bruno@clisp.org>
48366
48367         * modules/exit: New module.
48368         * MODULES.html.sh (func_all_modules): Add it.
48369
48370 2003-01-22  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/exit.h: New file, from GNU gettext.
48373
48374 2003-01-19  Bruno Haible  <bruno@clisp.org>
48375
48376         * gnulib-tool: Recognize option --extract-maintainer.
48377         (func_get_maintainer): New function.
48378         * modules/*: Add Maintainer entry.
48379
48380 2003-01-16  Jim Meyering  <jim@meyering.net>
48381
48382         * m4/regex.m4: The `regex' struct is both input and output.
48383         Initialize it before each use.  Patch by Tim Waugh.
48384
48385 2003-01-16  Bruno Haible  <bruno@clisp.org>
48386
48387         * MODULES.html.sh: Add a table of contents. Add the module name as
48388         leftmost column. Add hyperlinks.
48389
48390 2003-01-15  Bruno Haible  <bruno@clisp.org>
48391
48392         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
48393
48394 2003-01-15  Bruno Haible  <bruno@clisp.org>
48395
48396         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
48397         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
48398         suffix.
48399
48400 2003-01-15  Bruno Haible  <bruno@clisp.org>
48401
48402         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
48403
48404 2003-01-15  Bruno Haible  <bruno@clisp.org>
48405
48406         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
48407         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
48408
48409 2003-01-14  Jim Meyering  <jim@meyering.net>
48410
48411         * lib/same.c (same_name): Tweak a comment.
48412
48413 2003-01-14  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
48416         when a string comparison is sufficient.
48417
48418 2003-01-14  Bruno Haible  <bruno@clisp.org>
48419
48420         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
48421         'unsigned int'.
48422
48423 2003-01-14  Bruno Haible  <bruno@clisp.org>
48424
48425         * lib/hash-pjw.c: Add comment about low quality of this function.
48426
48427 2003-01-13  Bruno Haible  <bruno@clisp.org>
48428
48429         * modules/stpcpy: Distribute lib/stpcpy.h.
48430         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
48431
48432 2003-01-13  Bruno Haible  <bruno@clisp.org>
48433
48434         * modules/*: Add a description.
48435         * modules/strpbrk: Fix Makefile.am snippet.
48436         * modules/strtoimax: Fix dependencies.
48437         * modules/strtoumax: Likewise.
48438
48439 2003-01-13  Bruno Haible  <bruno@clisp.org>
48440
48441         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
48442         * modules/alloca (Makefile.am): All object files depend on alloca.h.
48443         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
48444
48445 2003-01-13  Bruno Haible  <bruno@clisp.org>
48446
48447         * gnulib-tool (func_create_testdir): Store config/* files in the main
48448         directory.
48449         * config.rpath: Move to ...
48450         * config/config.rpath: ... here.
48451         * modules/gettext: Contains config/config.rpath, not config.rpath.
48452         * modules/iconv: Likewise.
48453
48454 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48455
48456         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48457         to avoid collisions with libcurses and libreadline.
48458
48459         * m4/getstr.m4: Remove.
48460         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
48461
48462 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48463
48464         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48465         to avoid collisions with libcurses and libreadline.
48466
48467         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
48468         * lib/getstr.h, getstr.c: Remove.
48469         * lib/getline.c: Include "getline.h", to check interface.
48470         Move body of old getstr.c here: this defines MIN_CHUNK and
48471         declares getdelim2, which is renamed from getstr.
48472         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
48473
48474         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
48475         All uses changed.
48476         * lib/linebuffer.h: Likewise.
48477         (readline): Remove backward-compatibility macro.
48478
48479 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48480
48481         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48482         to avoid collisions with libcurses and libreadline.
48483         * getstr: Remove.
48484         * MODULES.html.sh: Remove getstr.
48485         * modules/getline: Depend on unlocked-io, not getstr.
48486
48487 2003-01-12  Jim Meyering  <jim@meyering.net>
48488
48489         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
48490
48491 2003-01-10  Bruno Haible  <bruno@clisp.org>
48492
48493         * modules/alloca: Change Makefile.am requirements. Simplify Include
48494         requirements. Add lib/alloca_.h to file list.
48495
48496 2003-01-10  Bruno Haible  <bruno@clisp.org>
48497
48498         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
48499
48500 2003-01-10  Bruno Haible  <bruno@clisp.org>
48501
48502         * lib/alloca_.h: New file.
48503         * lib/getdate.y: Unconditionally include alloca.h.
48504         * lib/makepath.c: Likewise.
48505         * lib/setenv.c: Likewise.
48506         * lib/userspec.c: Likewise.
48507
48508 2003-01-09  Karl Berry  <karl@gnu.org>
48509
48510         * MODULES.html.sh: include `dirname $0` in PATH, to find
48511         gnulib-tool.
48512
48513 2003-01-09  Bruno Haible  <bruno@clisp.org>
48514
48515         * modules/stdbool: Change configure.ac, Makefile.am requirements.
48516         Simplify Include requirements. Add lib/stdbool.h.in to file list.
48517
48518 2003-01-09  Bruno Haible  <bruno@clisp.org>
48519
48520         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
48521
48522 2003-01-09  Bruno Haible  <bruno@clisp.org>
48523
48524         * lib/stdbool.h.in: New file.
48525
48526 2003-01-09  Bruno Haible  <bruno@clisp.org>
48527
48528         * gnulib-tool (func_all_modules): Ignore files ending in ~.
48529         * MODULES.html.sh: Likewise.
48530
48531 2003-01-08  Jim Meyering  <jim@meyering.net>
48532
48533         * lib/full-write.c: Undefine and define-away `const' after inclusion
48534         of errno.h, not before.  Suggestion from Bruno Haible.
48535
48536 2003-01-08  Bruno Haible  <bruno@clisp.org>
48537
48538         * modules/full-read: Depend on full-write.
48539
48540 2003-01-08  Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/safe-read.c: Include specification header first, to ensure its
48543         selfcontainedness.
48544         * lib/full-write.c: Likewise.
48545
48546 2003-01-07  Jim Meyering  <jim@meyering.net>
48547
48548         * lib/full-write.c: Rework so that it may serve to define full_read,
48549         too.
48550         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
48551
48552 2003-01-07  Bruno Haible  <bruno@clisp.org>
48553
48554         * lib/strtoimax.c: Include <stdint.h> as an alternative to
48555         <inttypes.h>.
48556         * lib/xstrtol.h: Likewise.
48557         * lib/xstrtoimax.c: Likewise.
48558         * lib/xstrtoumax.c: Likewise.
48559         * lib/human.h: Likewise.
48560
48561         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
48562         on systems that have <inttypes.h> but not <stdint.h>.
48563
48564 2003-01-07  Bruno Haible  <bruno@clisp.org>
48565
48566         * MODULES.html.sh: Add copyright notice.
48567         (missed_files): Omit CVS directory entries.
48568         (func_module): Make it work with sed-3.02.
48569         * MODULES.txt: Remove file.
48570
48571 2003-01-06  Jim Meyering  <jim@meyering.net>
48572
48573         * lib/version-etc.c: Update year in translatable copyright string.
48574
48575 2003-01-03  Karl Berry  <karl@gnu.org>
48576
48577         * config/config.{guess,sub}: update from prep.
48578
48579 2003-01-02  Karl Berry  <karl@gnu.org>
48580
48581         * doc/COPYING.DOC: belatedly updated to 1.2.
48582
48583 2003-01-01  Karl Berry  <karl@gnu.org>
48584
48585         * gnulib-tool (func_verify_module): report module name $module in
48586         error message, not $1.
48587         * gnulib-tool (create-testdir): don't complain if destdir couldn't
48588         be created, only if it doesn't exist.
48589         * gnulib-tool (last_checkin_date): don't expand the $Date here.
48590
48591 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48592
48593         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
48594
48595 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48596
48597         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
48598         memcmp if strcoll doesn't work.
48599
48600 2002-12-31  Bruno Haible  <bruno@clisp.org>
48601
48602         * lib/utime.c (utime_null): No need to call ftruncate if the file was
48603         nonempty.
48604
48605 2002-12-31  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/memcoll.c (STRCOLL): New macro.
48608         (memcoll): Use it.
48609
48610 2002-12-31  Bruno Haible  <bruno@clisp.org>
48611
48612         * lib/localcharset.h: New file.
48613         * lib/localcharset.c: Include it.
48614         * lib/unicodeio.c: Likewise.
48615
48616 2002-12-31  Bruno Haible  <bruno@clisp.org>
48617
48618         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
48619         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
48620
48621 2002-12-31  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/getline.h: Include <stddef.h>, for size_t.
48624
48625         * lib/unicodeio.h: Include <stddef.h>, for size_t.
48626         * lib/unicodeio.c: Don't include <stddef.h>.
48627
48628 2002-12-31  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
48631         HAVE_TM_ZONE.
48632
48633 2002-12-24  Karl Berry  <karl@gnu.org>
48634
48635         * config/config.guess: update from prep.
48636
48637 2002-12-24  Bruno Haible  <bruno@clisp.org>
48638
48639         General infrasructure.
48640         * m4/README: Rewritten.
48641         * m4/onceonly.m4: New file.
48642         * m4/onceonly_2_57.m4: New file.
48643
48644         Module atexit.
48645         * m4/atexit.m4: New file.
48646
48647         Module strtod.
48648         * m4/strtod.m4: New file.
48649
48650         Module strtol.
48651         * m4/strtol.m4: New file.
48652
48653         Module strtoul.
48654         * m4/strtoul.m4: New file.
48655
48656         Module memchr.
48657         * m4/memchr.m4: New file.
48658
48659         Module memcmp.
48660         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
48661         (jm_FUNC_MEMCMP): Invoke it.
48662
48663         Module memcpy.
48664         * m4/memcpy.m4: New file.
48665
48666         Module memmove.
48667         * m4/memmove.m4: New file.
48668
48669         Module memset.
48670         * m4/memset.m4: New file.
48671
48672         Module strcspn.
48673         * m4/strcspn.m4: New file.
48674
48675         Module strpbrk.
48676         * m4/strpbrk.m4: New file.
48677
48678         Module strstr.
48679         * m4/strstr.m4: New file.
48680
48681         Module strerror.
48682         * m4/strerror.m4: New file.
48683
48684         Module mktime.
48685         * m4/mktime.m4: Renamed from jm-mktime.m4.
48686         (gl_PREREQ_MKTIME): New macro.
48687         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
48688
48689         Module malloc.
48690         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
48691         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
48692         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
48693
48694         Module realloc.
48695         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
48696         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
48697         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
48698
48699         Module strftime.
48700         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
48701         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
48702         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
48703         gl_TM_GMTOFF.
48704         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
48705
48706         Module xalloc.
48707         * m4/xalloc.m4: New file.
48708
48709         Module alloca.
48710         * m4/alloca.m4: New file.
48711
48712         Module putenv.
48713         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
48714         (jm_FUNC_PUTENV): Invoke it.
48715
48716         Module setenv.
48717         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
48718         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
48719         when invoked twice.
48720         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
48721         gt_FUNC_SETENV.
48722
48723         Module memrchr.
48724         * m4/memrchr.m4: New file.
48725
48726         Module stpcpy.
48727         * m4/stpcpy.m4: New file.
48728
48729         Module strcase.
48730         * m4/strcase.m4: New file.
48731
48732         Module strdup.
48733         * m4/strdup.m4: New file.
48734
48735         Module strnlen.
48736         * m4/strnlen.m4: New file.
48737
48738         Module strndup.
48739         * m4/strndup.m4: New file.
48740
48741         Module xstrtod.
48742         * m4/xstrtod.m4: New file.
48743
48744         Module xstrtol.
48745         * m4/xstrtol.m4: New file.
48746
48747         Module getdate.
48748         * m4/getdate.m4: New file.
48749
48750         Module unlocked-io.
48751         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
48752         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
48753         * m4/jm-glibc-io.m4n: Remove file.
48754
48755         Module long-options.
48756         * m4/long-options.m4: New file.
48757
48758         Module md5.
48759         * m4/md5.m4: New file.
48760
48761         Module sha.
48762         * m4/sha.m4: New file.
48763
48764         Module getstr.
48765         * m4/getstr.m4: New file.
48766
48767         Module getline.
48768         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
48769         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
48770         <sys/types.h>, for size_t. Use the function name gnu_getline, not
48771         simply getline. Infoke gl_PREREQ_GETLINE.
48772
48773         Module obstack.
48774         * m4/obstack.m4: New file.
48775
48776         Module hash.
48777         * m4/hash.m4: New file.
48778
48779         Module readtokens.
48780         * m4/readtokens.m4: New file.
48781
48782         Module strverscmp.
48783         * m4/strverscmp.m4: New file.
48784
48785         Module stdbool.
48786         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
48787         OSF/1.
48788
48789         Module strtoll.
48790         * m4/strtoll.m4: New file.
48791
48792         Module strtoull.
48793         * m4/strtoull.m4: New file.
48794
48795         Module strtoimax.
48796         * m4/strtoimax.m4: New file.
48797
48798         Module strtoumax.
48799         * m4/strtoumax.m4: New file.
48800
48801         Module xstrtoimax.
48802         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
48803         jm_AC_PREREQ_XSTRTOIMAX.
48804         Moved the strtol prerequisites to strtol.m4.
48805         Moved the strtoll prerequisites to strtoll.m4.
48806         Moved the strtoimax prerequisites to strtoimax.m4.
48807
48808         Module xstrtoumax.
48809         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
48810         jm_AC_PREREQ_XSTRTOUMAX.
48811         Moved the strtoul prerequisites to strtoul.m4.
48812         Moved the strtoull prerequisites to strtoull.m4.
48813         Moved the strtoumax prerequisites to strtoumax.m4.
48814
48815         Module chown.
48816         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
48817         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
48818
48819         Module dup2.
48820         * m4/dup2.m4: New file.
48821
48822         Module ftruncate.
48823         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
48824         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
48825
48826         Module getgroups.
48827         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
48828         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
48829
48830         Module gettimeofday.
48831         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
48832         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
48833         gl_PREREQ_GETTIMEOFDAY.
48834
48835         Module mkdir.
48836         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
48837         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
48838
48839         Module mkstemp.
48840         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
48841         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
48842         jm_AC_TYPE_UINTMAX_T.
48843         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
48844
48845         Module stat.
48846         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
48847         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
48848
48849         Module lstat.
48850         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
48851         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
48852
48853         Module timespec.
48854         * m4/timespec.m4 (gl_TIMESPEC): New macro.
48855         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
48856         * m4/st_mtim.m4: Indentation.
48857
48858         Module nanosleep.
48859         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
48860         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
48861         gl_PREREQ_NANOSLEEP.
48862
48863         Module regex.
48864         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
48865         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
48866         (gl_REGEX): New macro.
48867
48868         Module rename.
48869         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
48870         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
48871
48872         Module rmdir.
48873         * m4/rmdir.m4: New file.
48874
48875         Module utime.
48876         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
48877         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
48878         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
48879
48880         Module dirname.
48881         * m4/dirname.m4: New file.
48882
48883         Module getopt.
48884         * m4/getopt.m4: New file.
48885
48886         Module unistd-safer.
48887         * m4/unistd-safer.m4: New file.
48888
48889         Module fnmatch.
48890         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
48891         declaration.
48892         (gl_PREREQ_FNMATCH_EXTRA): New macro.
48893         (gl_FUNC_FNMATCH_POSIX): New macro.
48894         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
48895         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
48896         simply fnmatch.
48897
48898         Module exclude.
48899         * m4/exclude.m4: New file.
48900
48901         Module human.
48902         * m4/human.m4: New file.
48903
48904         Module acl.
48905         * m4/acl.m4: Nop.
48906
48907         Module backupfile.
48908         * m4/backupfile.m4: New file.
48909         * m4/d-ino.m4: Indentation.
48910
48911         Module fsusage.
48912         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
48913         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
48914         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
48915
48916         Module dirfd.
48917         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
48918         requirements.
48919
48920         Module euidaccess.
48921         * m4/euidaccess.m4: New file.
48922
48923         Module file-type.
48924         * m4/file-type.m4: New file.
48925
48926         Module fileblocks.
48927         * m4/fileblocks.m4: New file.
48928
48929         Module filemode.
48930         * m4/filemode.m4: New file.
48931
48932         Module isdir.
48933         * m4/isdir.m4: New file.
48934
48935         Module lchown.
48936         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
48937         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
48938
48939         Module makepath.
48940         * m4/makepath.m4: New file.
48941
48942         Module modechange.
48943         * m4/modechange.m4: New file.
48944
48945         Module mountlist.
48946         * m4/mountlist.m4: New file.
48947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
48948         Indentation.
48949
48950         Module path-concat.
48951         * m4/path-concat.m4: New file.
48952
48953         Module pathmax.
48954         * m4/pathmax.m4: New file.
48955
48956         Module same.
48957         * m4/same.m4: New file.
48958
48959         Module save-cwd.
48960         * m4/save-cwd.m4: New file.
48961
48962         Module savedir.
48963         * m4/savedir.m4: New file.
48964
48965         Module xgetcwd.
48966         * m4/xgetcwd.m4: New file.
48967         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
48968
48969         Module xreadlink.
48970         * m4/xreadlink.m4: New file.
48971
48972         Module safe-read.
48973         * m4/safe-read.m4: New file.
48974
48975         Module safe-write.
48976         * m4/safe-write.m4: New file.
48977
48978         Module closeout.
48979         * m4/closeout.m4: New file.
48980
48981         Module stdio-safer.
48982         * m4/stdio-safer.m4: New file.
48983
48984         Module getpass.
48985         * m4/getpass.m4: New file.
48986
48987         Module getugroups.
48988         * m4/getugroups.m4: New file.
48989
48990         Module group-member.
48991         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
48992         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
48993
48994         Module idcache.
48995         * m4/idcache.m4: New file.
48996
48997         Module userspec.
48998         * m4/userspec.m4: New file.
48999
49000         Module gettime.
49001         * m4/clock_time.m4: New file.
49002         * m4/gettime.m4: New file.
49003
49004         Module settime.
49005         * m4/settime.m4: New file.
49006
49007         Module posixtm.
49008         * m4/posixtm.m4: New file.
49009
49010         Module gethostname.
49011         * m4/gethostname.m4: New file.
49012
49013         Module canon-host.
49014         * m4/canon-host.m4: New file.
49015
49016         Module gettext.
49017         * m4/codeset.m4: New file, from gettext-0.11.5.
49018         * m4/gettext.m4: New file, from gettext-0.11.5.
49019         * m4/glibc21.m4: New file, from gettext-0.11.5.
49020         * m4/iconv.m4: New file, from gettext-0.11.5.
49021         * m4/intdiv0.m4: New file, from gettext-0.11.5.
49022         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
49023         * m4/inttypes.m4: New file, from gettext-0.11.5.
49024         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
49025         * m4/isc-posix.m4: New file, from gettext-0.11.5.
49026         * m4/lcmessage.m4: New file, from gettext-0.11.5.
49027         * m4/lib-ld.m4: New file, from gettext-0.11.5.
49028         * m4/lib-link.m4: New file, from gettext-0.11.5.
49029         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
49030         * m4/progtest.m4: New file, from gettext-0.11.5.
49031         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
49032         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
49033         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
49034
49035         Module localcharset.
49036         * m4/localcharset.m4: New file.
49037
49038         Module hard-locale.
49039         * m4/hard-locale.m4: New file.
49040
49041         Module mbswidth.
49042         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
49043         onceonly macros.
49044         * m4/mbrtowc.m4: Add comment.
49045
49046         Module memcasecmp.
49047         * m4/memcasecmp.m4: New file.
49048
49049         Module memcoll.
49050         * m4/memcoll.m4: New file.
49051
49052         Module unicodeio.
49053         * m4/unicodeio.m4: New file.
49054
49055         Module rpmatch.
49056         * m4/rpmatch.m4: New file.
49057
49058         Module yesno.
49059         * m4/yesno.m4: New file.
49060
49061         Module exitfail.
49062         * m4/exitfail.m4: New file.
49063
49064         Module c-stack.
49065         * m4/c-stack.m4 (gl_C_STACK): New macro.
49066         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
49067
49068         Module error.
49069         * m4/error.m4 (gl_ERROR): New macro.
49070         (jm_PREREQ_ERROR): Use onceonly macros.
49071
49072         Module fatal.
49073         * m4/fatal.m4: New file.
49074
49075         Module getloadavg.
49076         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
49077         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
49078
49079         Module getpagesize.
49080         * m4/getpagesize.m4: New file.
49081
49082         Module getusershell.
49083         * m4/getusershell.m4: New file.
49084
49085         Module physmem.
49086         * m4/physmem.m4: New file.
49087
49088         Module posixver.
49089         * m4/posixver.m4: New file.
49090
49091         Module quotearg.
49092         * m4/quotearg.m4: New file.
49093
49094         Module quote.
49095         * m4/quote.m4: New file.
49096
49097         Module readutmp.
49098         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
49099
49100         Module sig2str.
49101         * m4/sig2str.m4: New file.
49102
49103         Other.
49104         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
49105         ulonglong.m4.
49106         * m4/intmax_t.m4: New file.
49107         * m4/d-type.m4: Indentation.
49108         * m4/jm-macros.m4: Update.
49109         * m4/prereq.m4 (jm_PREREQ): Update.
49110         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
49111         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
49112         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
49113         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
49114         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
49115         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
49116         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
49117         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
49118         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
49119         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
49120         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
49121         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
49122         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
49123         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
49124         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
49125         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
49126         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
49127         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
49128         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
49129
49130 2002-12-24  Bruno Haible  <bruno@clisp.org>
49131
49132         * MODULES.txt: Update according to m4/ changes.
49133
49134         Module gettext.
49135         * config.rpath: New file, from gettext-0.11.5.
49136
49137         * modules/*: New module descriptions.
49138         * gnulib-tool: New file.
49139         * MODULES.html.sh: New file.
49140
49141 2002-12-21  Karl Berry  <karl@gnu.org>
49142
49143         * doc/fdl.texi: update to version 1.2.
49144
49145 2002-12-19  Karl Berry  <karl@gnu.org>
49146
49147         * config/config.guess: update from prep.
49148
49149 2002-12-18  Bruno Haible  <bruno@clisp.org>
49150
49151         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
49152         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
49153
49154 2002-12-17  Bruno Haible  <bruno@clisp.org>
49155
49156         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
49157         stdlib.h, string.h.
49158
49159 2002-12-17  Bruno Haible  <bruno@clisp.org>
49160
49161         * lib/canon-host.c (strdup): Remove unused declaration.
49162
49163         * lib/fsusage.c: Include full_read.h.
49164         (get_fs_usage): Use full_read instead of safe_read.
49165
49166         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
49167
49168 2002-12-12  Karl Berry  <karl@gnu.org>
49169
49170         * config/config.guess: update from prep.
49171
49172 2002-12-11  Bruno Haible  <bruno@clisp.org>
49173
49174         * m4/setenv.m4: New file, from gettext-0.11.5.
49175
49176 2002-12-11  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
49179         not unsetenv().
49180         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
49181         modifications:
49182
49183         2002-12-11  Bruno Haible  <bruno@clisp.org>
49184
49185                 * setenv.c (alloca): Fall back to malloc.
49186                 (freea): New macro.
49187                 (setenv): Use freea() to free memory allocated with alloca().
49188
49189         2002-11-13  Bruno Haible  <bruno@clisp.org>
49190
49191                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
49192                 function declarations.
49193                 * unsetenv.c (unsetenv): Likewise.
49194
49195         2002-03-04  Bruno Haible  <bruno@clisp.org>
49196
49197                 Portability to AIX 4.3.3.
49198                 * unsetenv.c: New file, extracted from setenv.c.
49199                 * setenv.c: Move the unsetenv() function to unsetenv.c.
49200
49201         2001-12-20  Bruno Haible  <bruno@clisp.org>
49202
49203                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
49204                 use malloc instead. For SunOS 4.
49205
49206         2001-12-11  Bruno Haible  <bruno@clisp.org>
49207
49208                 * setenv.c: Declare alloca.
49209                 (compar_fn_t): New typedef.
49210                 (KNOWN_VALUE, STORE_VALUE): Use it.
49211
49212         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
49213         setenv.h.
49214
49215 2002-12-10  Paul Eggert  <eggert@twinsun.com>
49216
49217         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
49218         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
49219         Choose values that are less likely to collide with system fnmatch
49220         options.
49221         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
49222         defined (e.g., a pure POSIX system).
49223         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
49224         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
49225
49226 2002-12-06  Paul Eggert  <eggert@twinsun.com>
49227
49228         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
49229         a pain in practice to deal with generated m4 files.  This change
49230         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
49231
49232         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
49233         and jm-glibc-io.m4, as they are no longer a special case.
49234         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
49235         kludge and the auto-generation stuff.  Check only whether the
49236         functions are declared, not whether they exist, since older hosts
49237         that don't declare the functions can't use the optimization anyway.
49238
49239 2002-12-06  Jim Meyering  <jim@meyering.net>
49240
49241         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
49242
49243         Merge in changes from libc's misc/error.c, in preparation
49244         for the merge of gnulib's changes back into libc.
49245
49246         * lib/error.c (_): Define only if not already defined.
49247         Move definition to follow all #include directives.
49248         Include unlocked-io.h only if !_LIBC.
49249         [_LIBC]: Include <libio/libioP.h>.
49250         [USE_IN_LIBIO]: Include <libio/iolibio.h>
49251         (fflush): Tweak definition to use INTUSE.
49252         (putc): Define.
49253
49254 2002-12-05  Paul Eggert  <eggert@twinsun.com>
49255
49256         * lib/alloca.c [defined emacs]: Include "lisp.h".
49257         (xalloc_die) [defined emacs]: New macro.
49258         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
49259         [! defined emacs]: Include <xalloc.h>.
49260         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
49261         (pointer): Typedef to POINTER_TYPE *.
49262         (malloc): Remove decl; we now always use xmalloc.
49263         (alloca): Use old-style definition, since Emacs needs this.
49264         Check for arithmetic overflow when computing combined size.
49265
49266 2002-12-04  Paul Eggert  <eggert@twinsun.com>
49267
49268         Do not generate unlocked-io.h automatically, since it's easier to
49269         maintain it by hand.
49270
49271         * lib/unlocked-io.h: New file, from GNU diffutils,
49272         but with proper copyright notice and attribution.
49273         * lib/gen-uio: Remove.
49274         * lib/Makefile.am: Add copyright notice.
49275         (libfetish_a_SOURCES): Add unlocked-io.h.
49276         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
49277         (DISTCLEANFILES, io_functions): Remove macros.
49278         (EXTRA_DIST): Remove gen_uio.
49279         (unlocked-io.h): Remove rule.
49280
49281 2002-12-04  Jim Meyering  <jim@meyering.net>
49282
49283         Reflect the fact that stat.c and lstat.c are no longer generated.
49284         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
49285         (DISTCLEANFILES): Likewise.
49286         (EXTRA_DIST): Likewise.
49287         (all_local): Don't depend on stat.c or lstat.c.
49288         (stat.c, lstat.c): Remove rules.
49289         (EXTRA_DIST): Remove xstat.in.
49290
49291         * lib/xstat.in: Remove file.  Contents moved into stat.c.
49292         * lib/stat.c: New file.  Contents mostly from xstat.in.
49293         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
49294         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
49295
49296         * lib/safe-read.c: Rework so that it may serve to define safe_write,
49297         too.
49298         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
49299
49300 2002-12-03  Jim Meyering  <jim@meyering.net>
49301
49302         * lib/safe-read.c, safe-write.c: Change variable names and comments,
49303         but not semantics, to minimize the differences between these two files.
49304         (safe_read): Change comment to mention SAFE_READ_ERROR.
49305
49306         * lib/safe-read.c (IS_EINTR): Define.
49307         (safe_read): Use IS_EINTR in place of in-function cpp directives.
49308
49309 2002-12-02  Jim Meyering  <jim@meyering.net>
49310
49311         * lib/safe-read.c (EINTR): Define.
49312         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
49313         (INT_MAX): Provide fallback.
49314         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
49315
49316         * lib/safe-read.h (SAFE_READ_ERROR): Define.
49317
49318 2002-12-02  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
49321         Define, taken from safe-read.c.
49322         (INT_MAX): Provide fallback.
49323         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
49324         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
49325
49326         * lib/safe-read.c (EINTR): Remove definition.
49327         (safe_read): Don't use EINTR if it is absent.
49328
49329 2002-12-01  Jim Meyering  <jim@meyering.net>
49330
49331         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
49332         zero.
49333         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
49334
49335 2002-11-27  Paul Eggert  <eggert@twinsun.com>
49336
49337         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
49338         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
49339         with `if (! (value < limit)) abort ();', for readability.
49340
49341 2002-11-26  Karl Berry  <karl@gnu.org>
49342
49343         * lib/strdup.c: copy from libc again, with jim's ok.
49344         * lib/.cppi-disable: re-add strdup.c
49345
49346 2002-11-25  Karl Berry  <karl@gnu.org>
49347
49348         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
49349         instead of "strtol.c".
49350
49351 2002-11-25  Karl Berry  <karl@gnu.org>
49352
49353         * config/install-sh: update from automake for variable quoting, $0 in
49354         error msgs, etc.
49355
49356         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
49357         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
49358         entry.
49359
49360 2002-11-25  Jim Meyering  <jim@meyering.net>
49361
49362         * lib/mktime.c: Sync from libc, now that it has the latest fix.
49363
49364 2002-11-24  Karl Berry  <karl@gnu.org>
49365
49366         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
49367         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
49368
49369 2002-11-24  Jim Meyering  <jim@meyering.net>
49370
49371         Update from coreutils:
49372
49373         * lib/mktime.c: Merge in changes from libc.
49374
49375         Avoid a link-time failure on some Linux systems.
49376         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
49377         (otherwise).
49378         (__mon_yday): Declare with the STATIC attribute.
49379         (__mktime_internal): Likewise.
49380         Based on a report from Greg Schafer.
49381
49382 2002-11-23  Jim Meyering  <jim@meyering.net>
49383
49384         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
49385         Use `unsigned', not `int', as type of index.
49386
49387         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
49388
49389         * lib/fsusage.c: Remove unneeded parentheses around operands of
49390         `defined'.
49391
49392 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49393
49394         * lib/quotearg.h: Allow multiple inclusion by surrounding with
49395         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
49396         so that we can be included first.
49397         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
49398         * lib/quotearg.c: Include quotearg.h immediately after config.h.
49399         No need to include stddef.h or sys/types.h any more.
49400         Surround local include files with "", not "<>".
49401         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
49402         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
49403         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
49404         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
49405         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
49406         (ISPRINT): Remove; no longer needed now that we assume C89.
49407
49408         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
49409         Preserve errno.
49410
49411         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
49412         quotearg_char): Use SIZE_MAX rather than
49413         (size_t) -1 when we are talking about "infinity".
49414
49415         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
49416
49417 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49418
49419         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
49420         hint that one should use `if (! x) abort ();' rather than `assert
49421         (x);', and anyway it's one less thing to worry about configuring.
49422         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
49423         hash_rehash, hash_insert): Use abort rather than assert.
49424
49425 2002-11-22  Bruno Haible  <bruno@clisp.org>
49426
49427         * lib/safe-read.h: Assume C89. Add comments.
49428         (safe_read): Change return type to size_t.
49429         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
49430         byte counts > SSIZE_MAX correctly.
49431         * lib/safe-write.h: New file.
49432         * lib/safe-write.c: New file.
49433         * lib/full-read.h: New file.
49434         * lib/full-read.c: New file.
49435         * lib/full-write.h: Assume C89. Add comments.
49436         * lib/full-write.c: Include safe-write.h.
49437         (full_write): Rewritten to use safe_write.
49438         Suggested by Jim Meyering and Paul Eggert.
49439
49440 2002-11-21  Jim Meyering  <jim@meyering.net>
49441
49442         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
49443
49444         Merge in changes from the coreutils.
49445
49446         2002-09-25  Paul Eggert  <eggert@twinsun.com>
49447         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
49448         <stdint.h>.
49449         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
49450         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
49451         int.  Work more efficiently if X is the same width as uintmax_t.
49452         Do not compare X to -1, to avoid bogus compiler warning.
49453         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
49454         Don't assume that f_frsize and f_bsize are the same type.
49455
49456         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
49457         warning on FreeBSD.
49458
49459         * lib/makepath.c (make_path): Restore umask *before* creating the final
49460         component.
49461         (make_path): Minor reformatting.
49462
49463         * lib/xmalloc.c: Adjust to work with new autoconf macros,
49464         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
49465         HAVE_MALLOC/HAVE_REALLOC.
49466
49467         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
49468         dummy ones.  At least on GNU/Linux systems, `auto' means something
49469         else.
49470         From Michael Stone.
49471
49472 2002-11-21  Bruno Haible  <bruno@clisp.org>
49473
49474         Remove case insensitive option matching.
49475         * lib/argmatch.h (argcasematch): Remove declaration.
49476         (ARGCASEMATCH): Remove macro.
49477         (__xargmatch_internal): Remove case_sensitive argument.
49478         (XARGMATCH): Update.
49479         (XARGCASEMATCH): Remove macro.
49480         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
49481         case_sensitive argument.
49482         (argcasematch): Remove function.
49483         (__xargmatch_internal): Remove case_sensitive argument.
49484         (main): Use XARGMATCH instead of XARGCASEMATCH.
49485
49486         * lib/xmalloc.c: Change compile-time error message. Add comment about
49487         required autoconf version.
49488
49489 2002-11-20  Paul Eggert  <eggert@twinsun.com>
49490
49491         Merge argmatch cleanups from Bison.  Assume C89.
49492
49493         * lib/argmatch.c: Include config.h here, not in argmatch.h.
49494         Include stdlib.h, for EXIT_FAILURE.
49495         Always include <string.h>, since we assume C89.
49496         (EXIT_FAILURE): Remove pre-C89 bug workaround.
49497         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
49498         Include <stddef.h> instead, since it's all we need for size_t.
49499         (PARAMS): Remove.  All uses removed.
49500         (ARRAY_CARDINALITY): Do not bother to #undef.
49501         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
49502         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
49503         Remove unnecessary parentheses.
49504         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
49505         Insert necessary parentheses.
49506         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
49507         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
49508
49509 2002-11-19  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
49512         * lib/mbswidth.h: Include <stddef.h>, for size_t.
49513
49514         * lib/mbswidth.h (PARAMS): Remove macro.
49515         (mbswidth, mbsnwidth): Use ANSI C function declarations.
49516         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
49517
49518         * lib/gcd.h (PARAMS): Remove macro.
49519         (gcd): Use ANSI C function declarations.
49520         * lib/gcd.c (gcd): Likewise.
49521
49522 2002-11-15  Bruno Haible  <bruno@clisp.org>
49523
49524         * lib/strcspn.c: Include <stddef.h>.
49525         (strcspn): Use ANSI C function declaration. Change return type to
49526         size_t. Use NULL.
49527         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
49528         (strpbrk): Use NULL.
49529         * lib/strpbrk.h (PARAMS): Remove macro.
49530         (strpbrk): Use ANSI C function declaration.
49531         * lib/strstr.c: Don't include <sys/types.h>.
49532         * lib/strstr.h (PARAMS): Remove macro.
49533         (strstr): Use ANSI C function declarations.
49534
49535 2002-11-14  Karl Berry  <karl@gnu.org>
49536
49537         * config/mkinstalldirs: `do' on separate line, instead of
49538         `for var; do'.
49539
49540 2002-11-06  Bruno Haible  <bruno@clisp.org>
49541
49542         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
49543         * lib/gcd.c (gcd): Likewise.
49544
49545 2002-11-05  Bruno Haible  <bruno@clisp.org>
49546
49547         * lib/gcd.h: New file, from gettext-0.11.5.
49548         * lib/gcd.c: New file, from gettext-0.11.5.
49549
49550 2002-11-05  Bruno Haible  <bruno@clisp.org>
49551
49552         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49553         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49554         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49555         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49556
49557         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
49558         <libintl.h>.
49559         * lib/makepath.c: Include gettext.h instead of <locale.h> and
49560         <libintl.h>.
49561
49562         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
49563         * lib/human.c: Include gettext.h instead of <libintl.h>.
49564         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
49565         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
49566         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
49567         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
49568         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
49569         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
49570         (textdomain): Remove definition.
49571         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
49572
49573         * lib/long-options.c: Remove include of <libintl.h> and definition of
49574         _.
49575         * lib/same.c: Remove include of <libintl.h> and definition of _.
49576
49577 2002-11-04  Owen Taylor  <otaylor@redhat.com>
49578
49579         * lib/config.charset: A few additions for Solaris.
49580
49581 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49582
49583         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
49584         * lib/localcharset.c (locale_charset): Declare as extern "C".
49585
49586 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49587
49588         * lib/config.charset: msdos in uk_UA uses CP1125.
49589
49590 2002-11-04  Bruno Haible  <bruno@clisp.org>
49591
49592         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
49593         * lib/strcase.h: New file, from GNU gettext-0.11.5.
49594         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
49595         * lib/strstr.h: New file, from GNU gettext-0.11.5.
49596         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
49597
49598 2002-11-04  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/localcharset.c (locale_charset): Don't return an empty string.
49601
49602 2002-11-04  Bruno Haible  <bruno@clisp.org>
49603
49604         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
49605         aliases.
49606
49607 2002-11-04  Bruno Haible  <bruno@clisp.org>
49608
49609         * lib/config.charset: Update for newest glibc. Add canonical names
49610         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
49611
49612 2002-11-04  Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/config.charset: Add support for NetBSD.
49615
49616 2002-11-04  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
49619
49620 2002-11-01  Bruno Haible  <bruno@clisp.org>
49621
49622         * configure.in: Add AC_CONFIG_AUX_DIR call.
49623         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
49624         test/Makefile.
49625         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
49626
49627 2002-09-28  Karl Berry  <karl@gnu.org>
49628
49629         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
49630         installed automake until the next release, since changes have been
49631         made.
49632
49633 2002-09-25  Karl Berry  <karl@gnu.org>
49634
49635         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
49636         * lib/getopt*: copy from libc/posix.
49637         * lib/gettext.h: copy from gettext.
49638         * lib/.cppi-disable: add strdup.c, gettext.h.
49639
49640 2002-09-25  Karl Berry  <karl@gnu.org>
49641
49642         * config/srclist.txt: enable gettext.h check.
49643         * config/config.{guess,sub}: update from prep.
49644         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
49645                 from automake 1.6.3.
49646         See srclist*.
49647
49648 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
49649
49650         * regex.c (PATFETCH): Remove the translating fetch.
49651         (PATFETCH_RAW): Rename to PATFETCH.
49652         (set_image_of_range): New fun.
49653         (SET_RANGE_TABLE_WORK_AREA): Use it.
49654         (regex_compile): Don't translate the pattern chars so eagerly.
49655         Only do it when inserting an `exactn' bytecode or when handling
49656         a char-range.
49657         (mutually_exclusive_p): Avoid empty statement.
49658
49659 2002-07-06  Jim Meyering  <meyering@lucent.com>
49660
49661         * m4/README: Don't mention Makefile.am.in.
49662         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
49663
49664 2002-07-01  Jim Meyering  <meyering@lucent.com>
49665
49666         * lib/c-stack.c: Include sys/time.h.
49667         From Volker Borchert.
49668
49669 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49670
49671         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
49672
49673 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49674
49675         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
49676         New macro.  Use it uniformly instead of
49677         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
49678         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
49679         reported by Vin Shelton.
49680
49681 2002-06-22  Paul Eggert  <eggert@twinsun.com>
49682
49683         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
49684         Do not assume SA_SIGINFO behavior.
49685         Bug reported by Jim Meyering on NetBSD 1.5.2.
49686
49687 2002-06-22  Jim Meyering  <meyering@lucent.com>
49688
49689         * m4/c-stack.m4: New file, from diffutils-2.8.2.
49690         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
49691
49692         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
49693         now that configure.ac uses AC_GNU_SOURCE.
49694         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
49695         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
49696
49697         Update to latest tools.  Suggestions from Paul Eggert.
49698         * m4/stdbool.m4: New file, from diffutils-2.8.2.
49699         * m4/gnu-source.m4: Update from diffutils-2.8.2.
49700         * m4/fnmatch.m4: Likewise.
49701         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
49702         to AC_HEADER_STDBOOL
49703
49704 2002-06-22  Jim Meyering  <meyering@lucent.com>
49705
49706         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
49707         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
49708
49709 2002-06-22  Jim Meyering  <meyering@lucent.com>
49710
49711         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
49712
49713         * lib/exitfail.c, exitfail.h: Likewise.
49714         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
49715
49716         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
49717         of fnmatch.h.
49718         (EXTRA_DIST): Add fnmatch_loop.c.
49719         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
49720
49721         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
49722         * lib/fnmatch.c: Update from diffutils-2.8.2.
49723         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
49724         * lib/fnmatch.h: Remove file.
49725
49726 2002-06-21  Jim Meyering  <meyering@lucent.com>
49727
49728         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
49729         * m4/mbrtowc.m4: Likewise.
49730
49731         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
49732         * m4/mbswidth.m4: Reflect name change:
49733         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
49734         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
49735
49736         * m4/lib-link.m4: Update from gettext-0.11.2.
49737         * m4/gettext.m4: Likewise.
49738
49739         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
49740         From Alfred M. Szmidt.
49741
49742 2002-06-18  Paul Eggert  <eggert@twinsun.com>
49743
49744         * lib/file-type.h: Report an error if neither S_ISREG nor
49745         S_IFREG is defined, instead of using a test specific to glibc
49746         2.2.  This should be safe, since POSIX requires S_ISREG and
49747         Unix Version 7 had S_IFREG.  We don't need to check for
49748         <sys/types.h> since we don't use any symbols that it defines.
49749
49750 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
49751
49752         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
49753         $@-t, so that each temporary file name is unique and valid in the first
49754         8 characters, for operation under DOS.
49755
49756 2002-06-15  Paul Eggert  <eggert@twinsun.com>
49757
49758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
49759
49760 2002-06-15  Jim Meyering  <meyering@lucent.com>
49761
49762         Work even with DJGPP 2.03, which lacks support for symlinks.
49763         From Richard Dawe.
49764         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
49765         is defined.
49766         * lib/lchown.c (S_ISLNK): Likewise.
49767
49768 2002-06-15  Jim Meyering  <meyering@lucent.com>
49769
49770         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
49771         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
49772         have been included before this file.
49773
49774 2002-06-14  Jim Meyering  <meyering@lucent.com>
49775
49776         * lib/file-type.h: Use the version from diffutils-2.8.2.
49777         * lib/file-type.c: Likewise.
49778
49779 2002-06-07  Jim Meyering  <meyering@lucent.com>
49780
49781         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
49782         They're needed at least for NetBSD 1.5.2.
49783         ($statxfs_includes): Include those same headers.
49784         ($statxfs_includes): Include sys/vfs.h if available.
49785         ($statxfs_includes): Likewise for sys/statvfs.h.
49786         Check for the following members in both structs statfs and statvfs:
49787         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
49788
49789 2002-06-01  Jim Meyering  <meyering@lucent.com>
49790
49791         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
49792         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
49793
49794 2002-05-28  Jim Meyering  <meyering@lucent.com>
49795
49796         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
49797         Reported by Volker Borchert.
49798
49799 2002-05-27  Jim Meyering  <meyering@lucent.com>
49800
49801         Fix a problem seen only on nonconforming systems whereby ls.c's
49802         use of localtime, and then of gettimeofday would cause trouble:
49803         the localtime call used to initialize rpl_gettimeofday's save
49804         mechanism would clobber ls's current local time information so
49805         that in any long listing the first file would always be listed
49806         with date 1970-01-01.  Analysis by Volker Borchert.
49807
49808         * lib/gettimeofday.c (localtime): Undefine.
49809         (rpl_localtime): New function.
49810
49811 2002-05-27  Jim Meyering  <meyering@lucent.com>
49812
49813         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
49814         localtime.
49815
49816         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
49817         use the replacement function; it wouldn't resolve at link time.
49818         Reported by Volker Borchert.
49819
49820 2002-05-22  Jim Meyering  <meyering@lucent.com>
49821
49822         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
49823         file-type.h.
49824         * lib/file-type.h: New file.
49825         * lib/file-type.c (file_type): New file/function.  Extracted from
49826         diffutils.
49827
49828 2002-04-30  Jim Meyering  <meyering@lucent.com>
49829
49830         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
49831
49832 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49833
49834         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
49835
49836 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49837
49838         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
49839         Do not check for alloca.h (no longer used) or stdbool.h (was never
49840         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
49841
49842 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49843
49844         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
49845
49846 2002-04-29  Jim Meyering  <meyering@lucent.com>
49847
49848         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
49849         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
49850         Use AC_FUNC_STRNLEN here instead.
49851
49852         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
49853         With autoconf-2.53a, it's part of AC_PROG_CC.
49854
49855 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49856
49857         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
49858         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
49859
49860 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49861
49862         * lib/sig2str.h, lib/sig2str.c: New files.
49863         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
49864
49865 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49866
49867         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
49868         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
49869         of 127, since 64 is the largest conceivable number for ancient
49870         nonstandard hosts.
49871         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
49872
49873 2002-04-28  Jim Meyering  <meyering@lucent.com>
49874
49875         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
49876
49877 2002-04-24  Jim Meyering  <meyering@lucent.com>
49878
49879         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
49880         (jm_PREREQ): Use it.
49881
49882         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
49883         mach/mach.h fcntl.h.
49884         Check for this function: setlocale.
49885
49886 2002-04-24  Jim Meyering  <meyering@lucent.com>
49887
49888         * lib/gettext.h: New file, from Gettext.
49889         * lib/Makefile.am (INCLUDES): Remove -I../intl.
49890         (libfetish_a_SOURCES): Add gettext.h.
49891
49892 2002-04-16  Jim Meyering  <meyering@lucent.com>
49893
49894         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
49895         ut_pid, ut_id, ut_exit.
49896
49897 2002-04-16  Jim Meyering  <meyering@lucent.com>
49898
49899         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
49900         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
49901         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
49902
49903 2002-04-12  Jim Meyering  <meyering@lucent.com>
49904
49905         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
49906         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
49907         existence of the getmntinfo function.  Needed for Darwin 5.3.
49908
49909         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
49910         This is necessary at least on Darwin 5.3.
49911
49912         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
49913         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
49914         strnlen.o in the library, and that makes some versions of ranlib
49915         object.
49916
49917 2002-04-12  Jim Meyering  <meyering@lucent.com>
49918
49919         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
49920
49921 2002-04-09  Jim Meyering  <meyering@lucent.com>
49922
49923         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
49924         to be more precise.  Rather than saying we're checking whether the
49925         function `works', say what we're testing.
49926         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
49927         Reported by Bruno Haible.
49928
49929 2002-03-10  Jim Meyering  <meyering@lucent.com>
49930
49931         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
49932         Suggestion from Santiago Vila.
49933
49934 2002-03-08  Jim Meyering  <meyering@lucent.com>
49935
49936         * lib/rename.c: Mention that this wrapper is needed also on
49937         mips-dec-ultrix4.4 systems.
49938
49939 2002-03-02  Jim Meyering  <meyering@lucent.com>
49940
49941         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
49942         not HAVE_CLOCK_SETTIME.
49943
49944 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49945
49946         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
49947         Check for clock_settime.
49948
49949 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49950
49951         * lib/nanosleep.h: Rename to....
49952         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
49953
49954         * lib/gettime.c: New file.
49955         * lib/settime.c: New file.
49956         * lib/stime.c: Remove.
49957
49958         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
49959         timespec.h.  Remove nanosleep.h.
49960
49961 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49962
49963         * m4/acl.m4: New file.
49964         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
49965         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
49966
49967 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49968
49969         * lib/acl.c, lib/acl.h: New files.
49970         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
49971
49972 2002-02-24  Jim Meyering  <meyering@lucent.com>
49973
49974         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
49975         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
49976         cause trouble.  Reported by Nelson Beebe.
49977
49978 2002-02-23  Paul Eggert  <eggert@twinsun.com>
49979
49980         * lib/path-concat.c (xpath_concat): Reorder code to pacify
49981         compilers that don't know that xalloc_die never returns.
49982
49983 2002-02-20  Jim Meyering  <meyering@lucent.com>
49984
49985         * lib/getdate.c: Regenerate using bison-1.33.
49986
49987 2002-02-17  Jim Meyering  <meyering@lucent.com>
49988
49989         * config/config.guess (main): Don't use `head -1'; it's no longer
49990         portable. Use `sed 1q' instead.
49991
49992 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
49993
49994         * m4/codeset.m4: Upgrade to gettext-0.11.
49995         * m4/gettext.m4: Upgrade to gettext-0.11.
49996         * m4/glibc21.m4: Upgrade to gettext-0.11.
49997         * m4/iconv.m4: Upgrade to gettext-0.11.
49998         * m4/isc-posix.m4: Upgrade to gettext-0.11.
49999         * m4/lcmessage.m4: Upgrade to gettext-0.11.
50000         * m4/lib-ld.m4: New file, from gettext-0.11.
50001         * m4/lib-link.m4: New file, from gettext-0.11.
50002         * m4/lib-prefix.m4: New file, from gettext-0.11.
50003         * m4/progtest.m4: Upgrade to gettext-0.11.
50004
50005 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50006
50007         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
50008         (jm_PREREQ): Use it.
50009
50010 2002-02-15  Paul Eggert  <eggert@twinsun.com>
50011
50012         * lib/posixver.c, lib/posixver.h: New files.
50013         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50014
50015 2002-02-02  Paul Eggert  <eggert@twinsun.com>
50016             Bruno Haible  <bruno@clisp.org>
50017
50018         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
50019         (fwrite_success_callback): New declaration.
50020         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
50021         print_unicode_char. Call failure callback instead of error.
50022         (fwrite_success_callback): New function.
50023         (exit_failure_callback): New function.
50024         (fallback_failure_callback): New function.
50025         (print_unicode_char): Call unicode_to_mb.
50026
50027 2002-01-26  Jim Meyering  <meyering@lucent.com>
50028
50029         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
50030         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
50031
50032 2002-01-26  Jim Meyering  <meyering@lucent.com>
50033
50034         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
50035
50036 2002-01-22  Paul Eggert  <eggert@twinsun.com>
50037
50038         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
50039
50040 2002-01-22  Jim Meyering  <meyering@lucent.com>
50041
50042         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
50043         Otherwise, some versions of automake would omit the rule that makes
50044         Makefile from Makefile.in.
50045
50046 2002-01-21  Paul Eggert  <eggert@twinsun.com>
50047
50048         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
50049         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
50050         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
50051         (memcoll): Set errno to zero if there is no error.
50052
50053         * lib/quotearg.c (quotearg_buffer_restyled):
50054         Fix bug with quoting buffers containing NUL when backslashing escapes.
50055         This bug was exposed by the other changes in this patch.
50056         (quotearg_n_options): New arg ARGSIZE.
50057         All callers changed.
50058         (quoting_options_from_style): New function.
50059         (quotearg_n_style): Use it.
50060         (quotearg_n_style_mem): New function.
50061
50062         * lib/quotearg.h (quotearg_n_style_mem): New function.
50063
50064 2002-01-19  Jim Meyering  <meyering@lucent.com>
50065
50066         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
50067         Remove useless quotes: DF_PROG="df".
50068         * m4/strnlen.m4: New file.
50069
50070 2002-01-16  Paul Eggert  <eggert@twinsun.com>
50071
50072         * lib/backupfile.c (ISDIGIT): Comment fix.
50073         * lib/getdate.y (ISDIGIT): Likewise.
50074         * lib/posixtm.c (ISDIGIT, year): Likewise.
50075         * lib/strverscmp.c (ISDIGIT): Likewise.
50076         * lib/userspec.c (ISDIGIT): Likewise.
50077
50078 2002-01-16  Jim Meyering  <meyering@lucent.com>
50079
50080         * lib/getdate.y: Add three semicolons, each just before a closing
50081         brace. Bison (as of version 1.31) no longer papers over that mistake.
50082
50083 2002-01-05  Jim Meyering  <meyering@lucent.com>
50084
50085         * lib/version-etc.c (version_etc_copyright): Update copyright year.
50086
50087 2001-12-19  Paul Eggert  <eggert@twinsun.com>
50088
50089         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
50090         not silently exit merely because the output buffer happens to
50091         have nothing pending.
50092
50093 2001-12-18  Paul Eggert  <eggert@twinsun.com>
50094
50095         See the big note in ../ChangeLog.
50096         * lib/human.c (suffixes): Prefer K to k for 1024.
50097         (generate_suffix_backwards): New function.
50098         (human_readable_inexact): Use it.
50099         * lib/xstrtol.c (__xstrtol): If there is no number but there
50100         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
50101         Accept 'K' as well as 'k'.
50102
50103 2001-12-15  Jim Meyering  <meyering@lucent.com>
50104
50105         * lib/regex.h (__restrict_arr): Update from libc.
50106
50107         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
50108         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
50109         (STREQ): Define.
50110
50111 2001-12-14  Jim Meyering  <meyering@lucent.com>
50112
50113         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
50114         Suggestion from Bruno Haible.
50115
50116 2001-12-10  Jim Meyering  <meyering@lucent.com>
50117
50118         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
50119         xrealloc, Instead, include "xalloc.h".
50120         (initbuffer): Don't cast xmalloc return value to char*.
50121         (readline): Reword comment.
50122         Don't cast xrealloc return value to char*
50123         Return NULL, not 0.
50124
50125 2001-12-09  Jim Meyering  <meyering@lucent.com>
50126
50127         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
50128         about `signed and unsigned type in conditional expression'.
50129         * lib/posixtm.c (posix_time_parse): Likewise.
50130
50131         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
50132
50133         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
50134         to avoid a pedantic warning.
50135
50136         * lib/getstr.c: Don't include assert.h.
50137         (getstr): Remove warning-evoking assertions.
50138         Return -1 if offset parameter is out of bounds.
50139         Change the type of a local from int to size_t.
50140
50141         * lib/strftime.c (my_strftime_localtime_r): Include this function
50142         definition in the `#if ! HAVE_TM_GMTOFF' block.
50143
50144         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
50145         Include xalloc.h instead.
50146
50147 2001-12-02  Jim Meyering  <meyering@lucent.com>
50148
50149         * lib/tempname.c: Don't declare getenv, thus reverting the change of
50150         2001-11-18.  It's no longer necessary, now that stdlib.h is always
50151         included.
50152
50153         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
50154         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
50155
50156 2001-11-30  Akim Demaille  <akim@epita.fr>
50157
50158         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
50159         before being defined.
50160
50161 2001-11-27  Paul Eggert  <eggert@twinsun.com>
50162
50163         * lib/quotearg.h (quotearg_n, quotearg_n_style):
50164         First arg is int, not unsigned.
50165         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
50166         (SIZE_MAX, UINT_MAX): New macros.
50167         (quotearg_n_options): Abort if N is negative.
50168         Avoid overflow check on hosts where size_t is 64 bits and int
50169         is 32 bits, as overflow is impossible there.
50170         Fix off-by-one typo that caused unnecessary reallocation.
50171
50172 2001-11-27  Jim Meyering  <meyering@lucent.com>
50173
50174         * lib/tempname.c: Merge with version from libc.
50175         * lib/regex.c: Likewise.
50176
50177         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
50178         systems for which STDC_HEADERS is 0, it was not included, resulting in
50179         a warning about an integer-to-pointer conversion problem with getenv.
50180         Reported by Volker Borchert.
50181
50182 2001-11-26  Jim Meyering  <meyering@lucent.com>
50183
50184         * lib/gtod.h: Remove file.
50185         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
50186         * lib/gettimeofday.c: Don't include gtod.h.
50187         (GTOD_init): Remove function.
50188         (rpl_gettimeofday): Do its job here instead, rather than aborting.
50189         Suggestion from Volker Borchert.
50190
50191 2001-11-23  Jim Meyering  <meyering@lucent.com>
50192
50193         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
50194         it.
50195         * lib/hash.c (struct hash_table): Define it here instead.
50196
50197 2001-11-22  Jim Meyering  <meyering@lucent.com>
50198
50199         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
50200
50201 2001-11-20  Jim Meyering  <meyering@lucent.com>
50202
50203         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
50204         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
50205
50206 2001-11-19  Jim Meyering  <meyering@lucent.com>
50207
50208         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
50209         directory.  Use "conftestXXXXXX" as the template.
50210         Suggestion from Paul Eggert.
50211
50212         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
50213         immediately, so the test doesn't mistakenly hit the max-open-files
50214         limit.
50215
50216 2001-11-18  Paul Eggert  <eggert@twinsun.com>
50217
50218         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
50219         (TEMPORARIES): New macro.
50220         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
50221         removes an artificial limitation (e.g. HP-UX 10.20, where
50222         TMP_MAX is 17576).
50223
50224 2001-11-18  Jim Meyering  <meyering@lucent.com>
50225
50226         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
50227
50228 2001-11-18  Jim Meyering  <meyering@lucent.com>
50229
50230         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
50231         on SunOS 4.
50232
50233         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
50234         files will be created before anything else.
50235
50236 2001-11-17  Paul Eggert  <eggert@twinsun.com>
50237
50238         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
50239         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
50240
50241 2001-11-17  Jim Meyering  <meyering@lucent.com>
50242
50243         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
50244         Prompted by a report from Bob Proulx.
50245
50246         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
50247         Instead, require UTILS_FUNC_MKSTEMP.
50248
50249 2001-11-17  Jim Meyering  <meyering@lucent.com>
50250
50251         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
50252         Now, that's done as part of AC_FUNC_STRTOD.
50253
50254 2001-11-17  Jim Meyering  <meyering@lucent.com>
50255
50256         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
50257         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
50258         rather than group writable.  Patch by Juan F. Codagnone.
50259
50260         * lib/readtokens.c: Remove explicit declarations of xmalloc and
50261         xrealloc, Instead, include "xalloc.h".
50262
50263         * lib/mountlist.c: Include unlocked-io.h after all system headers.
50264         Remove explicit declarations of xmalloc, xrealloc,
50265         and xstrdup.  Instead, include "xalloc.h".
50266
50267         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
50268         unlocked-io.h.
50269         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
50270         Likewise.
50271         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
50272
50273         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
50274         Reported by Padraig Brady.
50275
50276         * lib/mkstemp.c: #undef mkstemp.
50277         Include config.h.
50278         (rpl_mkstemp): Rename from mkstemp.
50279         Protoize.
50280
50281 2001-11-16  Jim Meyering  <meyering@lucent.com>
50282
50283         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
50284         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
50285         determine the amount of total physical memory, use pstat_getstatic.
50286         HPUX-11 doesn't define _SC_PHYS_PAGES.
50287         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
50288         If sysconf couldn't be used to determine the amount of available
50289         physical memory, use both pstat_getstatic and pstat_getdynamic.
50290         Based on a patch from Bob Proulx.
50291
50292 2001-11-10  Jim Meyering  <meyering@lucent.com>
50293
50294         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
50295         (jm_PREREQ): Use it.
50296
50297 2001-11-09  Jim Meyering  <meyering@lucent.com>
50298
50299         * m4/jm-macros.m4: Require autoconf-2.52f.
50300         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
50301         Use these AC_-prefixed names, not the AM_-prefixed ones.
50302
50303         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
50304
50305 2001-11-05  Jim Meyering  <meyering@lucent.com>
50306
50307         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
50308
50309 2001-11-04  Jim Meyering  <meyering@lucent.com>
50310
50311         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
50312         $DEFS.
50313
50314 2001-11-03  Jim Meyering  <meyering@lucent.com>
50315
50316         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
50317         of AC_DEFUN.
50318
50319         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
50320         know the name of the variable in the macro definition.
50321
50322 2001-11-03  Jim Meyering  <meyering@lucent.com>
50323
50324         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
50325         in argmatch_to_argument call.
50326
50327         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
50328         argument.
50329
50330         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
50331         e.g., a fault due to an attempt to free a NULL pointer.
50332
50333 2001-11-01  Jim Meyering  <meyering@lucent.com>
50334
50335         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
50336         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
50337
50338 2001-11-01  Jim Meyering  <meyering@lucent.com>
50339
50340         * lib/dirfd.c, lib/dirfd.h: New files.
50341         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
50342
50343         * lib/hash.c (hash_print) [TESTING]: Clean up.
50344
50345 2001-10-22  Paul Eggert  <eggert@twinsun.com>
50346
50347         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
50348         to avoid a warning if -Wall.
50349
50350 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
50351
50352         * README: New file
50353         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
50354         (per RMS's instructions, this is now the canonical source)
50355         * lgpl/, gpl/: New directories.
50356
50357 2001-10-21  Paul Eggert  <eggert@twinsun.com>
50358
50359         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
50360
50361 2001-10-21  Jim Meyering  <meyering@lucent.com>
50362
50363         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
50364         this code would end up calling gettext even in packages built
50365         with --disable-nls.
50366         * lib/getopt.c (_): Likewise.
50367         * lib/regex.c (_): Likewise.
50368
50369 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50370
50371         * m4/error.m4 (jm_PREREQ_ERROR):
50372         Do not invoke AC_CHECK_FUNCS with strerror_r, as
50373         AC_FUNC_STRERROR_R does that.
50374         Check for strerror declaration.
50375
50376         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
50377         are supposed to have them these days.
50378         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
50379         Merge changes from latest Autoconf CVS.
50380         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
50381         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
50382         POSIX decided to standardize on the int flavor of strerror_r.
50383
50384 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50385
50386         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
50387         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
50388         Use strerror_r that is only a macro, even if it is not a function.
50389         (strerror): Check for HAVE_DECL_STRERROR before declaring.
50390         (private_strerror): Use prototypes, not old-style function definition.
50391         (print_errno_message): New function.
50392         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
50393         char*-flavored one.
50394         (error_tail, error, error_at_line): Use it.
50395
50396 2001-10-11  Jim Meyering  <meyering@lucent.com>
50397
50398         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
50399         and quote_n (1, ... to avoid clobbering a buffer.
50400
50401 2001-10-05  Jim Meyering  <meyering@lucent.com>
50402
50403         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
50404         hash-pjw.h.
50405         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
50406         * lib/hash-pjw.h: New file.
50407
50408 2001-09-30  Jim Meyering  <meyering@lucent.com>
50409
50410         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
50411         `struct fsstat' has the `f_fstypename' member.
50412         Use that to define FS_TYPE, which is now used to make
50413         the getfsstat link test tighter.
50414
50415 2001-09-30  Jim Meyering  <meyering@lucent.com>
50416
50417         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
50418         Include <sys/ucred.h>, for Apple Darwin.
50419         Include sys/mount.h and sys/fs_types.h only if available.
50420         (FS_TYPE): Define.
50421         (read_filesystem_list): Use FS_TYPE.
50422
50423 2001-09-29  Paul Eggert  <eggert@twinsun.com>
50424
50425         * lib/exclude.c (excluded_filename): 0 -> false, since it's
50426         a boolean context.
50427
50428 2001-09-29  Jim Meyering  <meyering@lucent.com>
50429
50430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50431         [one-argument getmntent function]): Include stdio.h before mntent.h.
50432         SunOS 4.1.x needs it for the declaration of `FILE'.
50433         Patch by Volker Borchert.
50434
50435         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50436         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
50437         sys/fs_types.h, and make the link-test for getfsstat guard #include
50438         directives with appropriate #if HAVE_*_H tests so that we can
50439         detect getfsstat on Apple Darwin1.3.7 systems.
50440         Reported by Nelson Beebe.
50441         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
50442
50443 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50444
50445         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50446         #defines strtoimax.  Also treat the other strto* functions
50447         like strtoimax.
50448
50449         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50450         Check for strtoul and strtoumax,
50451         as those declarations are made even in the signed case.
50452         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
50453         Likewise, for strtol and strtoimax.
50454
50455 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50456
50457         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50458         #defines strtoimax.  Also treat the other strto* functions
50459         like strtoimax.
50460
50461         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
50462         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
50463         (strtoimax, strtoumax): Do not declare if already defined as a macro.
50464
50465 2001-09-26  Jim Meyering  <meyering@lucent.com>
50466
50467         Most macros in unlocked-io.h had the wrong number of arguments.
50468         * lib/gen-uio: New script.
50469         (USE_UNLOCKED_IO): Define to 1 if not already defined.
50470         * lib/unlocked-io.hin: Remove file.
50471         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
50472         rather than trying to embed it here.
50473         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
50474         Reported by Padraig Brady.
50475
50476 2001-09-25  Volker Borchert  <bt@teknon.de>
50477
50478         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
50479         `result'.
50480
50481 2001-09-24  Jim Meyering  <meyering@lucent.com>
50482
50483         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
50484
50485 2001-09-23  Jim Meyering  <meyering@lucent.com>
50486
50487         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
50488         instead of the mere test for existence of mntent.h.  The latter
50489         would get a false-positive on AIX 3.4 systems.
50490         In the outer getmntent if-block, don't die if neither of the getmntent
50491         tests succeeds.  Instead, just fall through and continue with the
50492         remaining tests.
50493
50494 2001-09-23  Jim Meyering  <meyering@lucent.com>
50495
50496         * lib/mountlist.c: Remove useless parentheses in #if directives.
50497         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
50498         the deprecated MOUNTED symbol is no longer defined in mntent.h.
50499
50500 2001-09-22  Jim Meyering  <meyering@lucent.com>
50501
50502         * m4/gettext.m4: New file.  From gettext.
50503         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
50504         * m4/progtest.m4: Likewise
50505         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
50506         * m4/glibc21.m4: Likewise.
50507
50508         * m4/libintl.m4: Remove.  No longer used.
50509
50510 2001-09-22  Jim Meyering  <meyering@lucent.com>
50511
50512         * lib/localcharset.c: Update from latest gettext.
50513         * lib/config.charset: Likewise.
50514
50515 2001-09-20  Jim Meyering  <meyering@lucent.com>
50516
50517         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
50518         strtoimax.
50519         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
50520         strtoumax.
50521
50522 2001-09-20  Jim Meyering  <meyering@lucent.com>
50523
50524         * lib/xstrtol.c (strtoimax): Guard declaration with
50525         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
50526         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
50527         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
50528         (strtoumax): Likewise, for completeness (it wasn't necessary).
50529
50530 2001-09-17  Paul Eggert  <eggert@twinsun.com>
50531
50532         * lib/strtoimax.c (HAVE_LONG_LONG):
50533         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
50534         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
50535         to work around bug in IBM C compiler.
50536
50537 2001-09-17  Jim Meyering  <meyering@lucent.com>
50538
50539         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
50540         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
50541         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
50542         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
50543         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
50544         whenever the right hand side need not be expanded by the shell.
50545
50546 2001-09-16  Paul Eggert  <eggert@twinsun.com>
50547
50548         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
50549         library.  It's not correct, as some older glibcs are buggy.
50550         fnmatch wasn't fixed until glibc 2.2.
50551
50552         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
50553         special shell magic here.
50554
50555 2001-09-16  Jim Meyering  <meyering@lucent.com>
50556
50557         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
50558         * m4/jm-macros.m4: Require it.
50559
50560 2001-09-16  Jim Meyering  <meyering@lucent.com>
50561
50562         * lib/mkdir.c: New file.
50563
50564 2001-09-15  Jim Meyering  <meyering@lucent.com>
50565
50566         * m4/jm-macros.m4: Check for help2man.
50567
50568 2001-09-11  Jim Meyering  <meyering@lucent.com>
50569
50570         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
50571         The body, by Paul Eggert, was moved here from configure.in.
50572         * m4/jm-macros.m4: Require UTILS_HOST_OS.
50573
50574 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50575
50576         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
50577         (jm_PREREQ): Use it.
50578
50579 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50580
50581         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
50582         Use ssize_t, not int, to store result of readlink.
50583         Check for ssize_t overflow as well as size_t overflow,
50584         as POSIX says the result of readlink is implementation-defined
50585         when ssize_t overflows.
50586         Remove unnecessary cast to char*.
50587         Use free+malloc instead of realloc, as the storage doesn't need
50588         to be preserved and it's clearer and can be more efficient that way.
50589         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
50590         * lib/xreadlink.h (xreadlink): Update prototype.
50591
50592 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50593
50594         * lib/xgetcwd.c: Revert some of the previous change; intead,
50595         fix the HAVE_GETCWD_NULL code to behave more like the
50596         !HAVE_GETCWD_NULL code used to.
50597
50598         Include "xalloc.h".
50599         (xgetcwd): Do not return NULL when memory is exhausted; instead,
50600         invoke xalloc_die.
50601
50602 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50603
50604         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
50605         sys/param.h, as pathmax.h includes them.
50606
50607 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50608
50609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
50610         (jm_PREREQ_XGETCWD): New macro.
50611
50612         * m4/getcwd.m4: New file.
50613
50614 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50615
50616         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
50617         like the HAVE_GETCWD_NULL code.
50618         Include pathmax.h if not HAVE_GETCWD.
50619         Do not include xalloc.h.
50620         (INITIAL_BUFFER_SIZE): New symbol.
50621         Do not use xmalloc / xrealloc, since the caller is responsible for
50622         handling errors.  Preserve errno around `free' during failure.
50623         Do not overrun buffer when using getwd.
50624
50625 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50626
50627         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
50628         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
50629         getcwd (NULL, 0).
50630
50631 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50632
50633         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
50634         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
50635         spotted by Jim Meyering.
50636
50637 2001-09-03  Jim Meyering  <meyering@lucent.com>
50638
50639         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
50640         failure.
50641
50642 2001-09-02  Jim Meyering  <meyering@lucent.com>
50643
50644         * lib/error.c: Update from GNU libc.
50645
50646 2001-09-01  Jim Meyering  <meyering@lucent.com>
50647
50648         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
50649         Used by df.
50650
50651 2001-09-01  Jim Meyering  <meyering@lucent.com>
50652
50653         * lib/xreadlink.c: New file.
50654         * lib/xreadlink.h: New file.
50655         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
50656         xreadlink.h.
50657
50658         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
50659         doesn't conflict with sparc Solaris 7's definition in
50660         /usr/include/sys/int_types.h.
50661
50662         * lib/exclude.c: Use `""', not `<>' to #include non-system header
50663         files.
50664         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
50665         and strncasecmp as r-values.  Unixware didn't have declarations.
50666
50667 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50668
50669         * lib/xstrtol.h: Add copyright notice.
50670         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
50671         LONGINT_INVALID_SUFFIX_CHAR.
50672
50673 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50674
50675         * lib/xstrtol.c (strtoimax): New decl.
50676
50677 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50678
50679         * lib/xgetcwd.c: Don't include pathmax.h.
50680         Include stdlib.h and unistd.h if available.
50681         Include xalloc.h.
50682         (xmalloc, xstrdup, free): Remove decls.
50683         (xgetcwd): Don't assume sizes fit in unsigned.
50684         Check for overflow when computing sizes.
50685         Simplify reallocation code.
50686
50687 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50688
50689         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
50690         a directory's st_size can have an arbitrary value, so the old
50691         usage could waste an arbitrary amount of memory.  All uses
50692         changed.
50693         * lib/savedir.h: Update prototype.
50694
50695 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50696
50697         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
50698
50699         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
50700         old strtoimax.c.
50701
50702         Also, make the following further changes to make this file's
50703         configuration more similar to that of strtol.c:
50704         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
50705         (strtoumax, uintmax_t, strtoull, strtol): Remove.
50706         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
50707         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
50708         changed to signed values.
50709
50710         And make the following changes as well:
50711         Fix copyright notice, as 1999 was missing.
50712         (verify): New macro.
50713         (strtoimax): Check sizes at compile-time, not run-time.
50714         Prefer strtol to strtoll if both work.
50715         (main): Remove; it was not that useful and was a pain to maintain.
50716
50717         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
50718
50719 2001-08-31  Jim Meyering  <meyering@lucent.com>
50720
50721         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
50722         Use an initial, malloc'd, buffer of length 128 rather than
50723         a statically allocated one of length 1024.
50724
50725 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50726
50727         Simplify code, partly by assuming autoconf 2.52 semantics.
50728
50729         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
50730
50731         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
50732         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
50733         All uses removed.
50734         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
50735         Move AC_REQUIRE to next-to-top level, to avoid confusion.
50736         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
50737         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
50738         jm_AC_HEADER_INTTYPES_H.
50739         * m4/jm-macros.m4 (jm_MACROS): Likewise.
50740
50741         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
50742
50743         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50744         Quote first arg of AC_DEFUN.
50745         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
50746         since they are needed to parse the include file even if we need
50747         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
50748         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
50749         but with opposite signedness.
50750
50751 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50752
50753         Merge 'exclude' changes from tar 1.13.22.
50754         This fixes one or two unlikely storage allocation overflow bugs,
50755         but doesn't change user-visible behavior otherwise.
50756
50757 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50758
50759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
50760         (jm_PREREQ_EXCLUDE): New macro.
50761
50762 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50763
50764         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
50765         tm to be declared.
50766
50767 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50768
50769         * lib/hash.c: Remove '2001' from copyright notice.
50770
50771 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50772
50773         * lib/full-write.h: New file.
50774         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
50775         * lib/full-write.c: Correct credits, as cccp.c no longer
50776         exists and anyway it was so heavily changed from the old cccp
50777         code as to be unrecognizable.  Include full-write.h.
50778         (full_write) Return size_t, with short writes meaning failure.
50779         All callers changed.  This fixes a bug with large buffers
50780         on 64-bit hosts.
50781         * lib/utime.c: Include full-write.h.
50782
50783 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50784
50785         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
50786         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
50787         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
50788         Include if available.
50789         (<xalloc.h>): Include
50790         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
50791         (verify): New macro.  Use it to verify that EXCLUDE macros do not
50792         collide with FNM macros.
50793         (struct patopts): New struct.
50794         (struct exclude): Use it, as exclude patterns now come with options.
50795         (new_exclude): Support above changes.
50796         (new_exclude, add_exclude_file):
50797         Initial size must now be a power of two to simplify overflow checking.
50798         (free_exclude, fnmatch_no_wildcards): New function.
50799         (excluded_filename): No longer requires options arg, as the options
50800         are determined by add_exclude.  Now returns bool, not int.
50801         (excluded_filename, add_exclude):
50802         Add support for the fancy new exclusion options.
50803         (add_exclude, add_exclude_file): Now takes int options arg.
50804         Check for arithmetic overflow when computing sizes.
50805         (add_exclude_file): xrealloc might modify errno, so don't
50806         realloc until after errno might be used.
50807
50808         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
50809         New macros.
50810         (free_exclude): New decl.
50811         (add_exclude, add_exclude_file): Now takes int options arg.
50812         (excluded_filename): No longer requires options arg, as the options
50813         are determined by add_exclude.  Now returns bool, not int.
50814
50815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50816
50817         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
50818
50819 2001-08-27  Jim Meyering  <meyering@lucent.com>
50820
50821         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
50822
50823         * lib/version-etc.c (N_): Remove definition.
50824         Revert most of last change.
50825         Instead, simply don't mark the `Copyright...' string for translation.
50826         Based on advice from Paul Eggert.
50827
50828         * lib/strtoxmax.c: Tweak comment.
50829
50830 2001-08-26  Jim Meyering  <meyering@lucent.com>
50831
50832         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
50833
50834         * m4/xstrtoimax.m4: New file.
50835         * m4/xstrtoumax.m4: Add comments explaining why we
50836         AC_REPLACE_FUNCS(strtol).
50837
50838 2001-08-26  Jim Meyering  <meyering@lucent.com>
50839
50840         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
50841         of copyright with `%s' so translators don't get an untranslated
50842         message in 2002.
50843         (COPYRIGHT_YEAR): Define.
50844         (version_etc): Use fprintf rather than fputs.
50845         Suggestion from Ulrich Drepper.
50846
50847         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
50848
50849         * lib/strtoll.c: New file, from GNU libc.
50850         * lib/xstrtoimax.c: New file.
50851
50852         * lib/xstrtol.h: Add xstrtoimax.
50853         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
50854         * lib/strtoimax.c: New file.  Likewise, but first define
50855         STRTOUXMAX_SIGNED.
50856
50857         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
50858         ...
50859         * lib/strtoxmax.c: ... then renamed to this.
50860
50861 2001-08-18  Paul Eggert  <eggert@twinsun.com>
50862
50863         * m4/inttypes.m4: Add AC_PREREQ(2.13).
50864         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
50865         (jm_AC_TYPE_INTMAX_T): New macro.
50866         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
50867
50868         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
50869
50870         * m4/longlong.m4: Renamed from ulonglong.m4.
50871         * m4/inttypes.m4: Renamed from inttypes_h.m4.
50872         * m4/uintmax_t.m4: Removed.
50873
50874 2001-08-13  Paul Eggert  <eggert@twinsun.com>
50875
50876         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
50877         Port to Solaris 8, where 'sed' requires a space after the 'r'
50878         command, and where sh dislikes "$/".  Clean up the spacing a bit.
50879         Redirect output to $tmp just once.
50880
50881 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
50882
50883         * lib/addext.c (<errno.h>): Include.
50884         (errno): Declare if not defined.
50885         (addext): Work correctly when pathconf returns -1 and leaves
50886         errno alone because there is no limit.  Also, work even if
50887         pathconf returns a value greater than SIZE_MAX.
50888
50889 2001-08-12  Jim Meyering  <meyering@lucent.com>
50890
50891         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
50892         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
50893         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
50894         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
50895         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
50896         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
50897         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
50898         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
50899         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
50900         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
50901         utime.m4, utimes.m4, xstrtoumax.m4:
50902         Quote the first argument in each use of AC_DEFUN.
50903
50904 2001-08-12  Jim Meyering  <meyering@lucent.com>
50905
50906         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
50907         Simply `return getcwd (NULL, 0);'.
50908         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
50909         Use 1300 as initial value for length, not PATH_MAX.
50910
50911         * lib/pathmax.h: Clean up cpp syntax.
50912
50913 2001-08-12  Jim Meyering  <meyering@lucent.com>
50914
50915         * lib/gettimeofday.c: New file.
50916         * lib/gtod.h: New file.
50917         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
50918
50919 2001-08-05  Jim Meyering  <meyering@lucent.com>
50920
50921         * m4/jm-macros.m4: Require autoconf-2.52.
50922
50923 2001-08-04  Jim Meyering  <meyering@lucent.com>
50924
50925         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
50926         stmt, to get in sync with glibc.
50927
50928 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50929
50930         The following changes are from gettext 0.10.39 as maintained by
50931         Bruno Haible.
50932
50933         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
50934         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
50935         with inverted sense.  All uses changed.
50936
50937         * lib/mbswidth.c: Don't include <limits.h>.
50938         Include <stdlib.h> and <string.h> unconditionally.
50939         (iswcntrl, mbsinit, ISCNTRL): New macros.
50940         (mbsnwidth): Use K&R style function declarations.
50941         Don't bother checking for MB_LEN_MAX == 1, since the compiler
50942         can optimize it when MB_CUR_MAX == 1.
50943         The width of control characters is zero, not 1.
50944
50945 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50946
50947         The following changes are from gettext 0.10.39 as maintained by
50948         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
50949
50950         * m4/codeset.m4: Upgrade to serial AM1.
50951         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
50952         all uses changed.  Quote first arg of AC_DEFUN.
50953         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
50954
50955         * m4/iconv.m4: Upgrade to serial AM2.
50956         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
50957         Add --with-libconv-prefix.
50958         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
50959         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
50960         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
50961         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
50962         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
50963
50964         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
50965         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
50966         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
50967         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
50968         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
50969         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
50970         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50971         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
50972         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
50973
50974         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
50975         string.h any more.
50976
50977         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
50978         not the default value.
50979
50980         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
50981         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
50982         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
50983         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
50984         Also check for iswcntrl, used for wcwidth fallback.
50985         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
50986         to Autoconf 2.13.
50987
50988 2001-08-03  Jim Meyering  <meyering@lucent.com>
50989
50990         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
50991         as it was in the original.  Reported by Paul Eggert.
50992
50993 2001-07-16  Jim Meyering  <meyering@lucent.com>
50994
50995         * m4/gettimeofday.m4: New file.
50996         Prompted by a report from Bernhard Baehr.
50997
50998 2001-07-15  Jim Meyering  <meyering@lucent.com>
50999
51000         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
51001         stuff. Now it's in ../Makefile.cfg.
51002
51003 2001-07-15  Jim Meyering  <meyering@lucent.com>
51004
51005         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
51006         (BUILT_SOURCES): Add unlocked-io.h.
51007         (io_functions): Define.
51008         (unlocked-io.h): New rule.
51009         (DISTCLEANFILES): Add unlocked-io.h.
51010         (all-local): Depend on unlocked-io.h, to ensure it is created.
51011
51012         * lib/unlocked-io.hin: New file
51013
51014         * lib/regex.c: Update from glibc.
51015
51016 2001-07-05  Jim Meyering  <meyering@lucent.com>
51017
51018         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
51019         recommendation.
51020         (libfetish_a_SOURCES): Put all .h files here instead.
51021         Remove a thus-exposed (better checks in automake) duplicate and
51022         two unnecessary .h files.
51023
51024 2001-07-04  Jim Meyering  <meyering@lucent.com>
51025
51026         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
51027         that generates jm-glibc-io.m4 so that it doesn't trigger any make
51028         distcheck failure.
51029
51030 2001-07-02  Jim Meyering  <meyering@lucent.com>
51031
51032         The following changes were prompted by suggestions from Bruno Haible.
51033
51034         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
51035         is now generated.
51036         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
51037         definition of EXTRA_DIST.
51038         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
51039         ensure that the generated file is created/updated whenever the list
51040         of $(unlocked_functions) is changed.
51041         (jm-glibc-io.m4): New rule.
51042         (unlocked-io.h): New rule -- currently unused.
51043
51044 2001-06-24  Jim Meyering  <meyering@lucent.com>
51045
51046         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
51047         unmatched right bracket, rather than kludging it with an extra,
51048         falsely-matching quote in a comment.  Patch by Akim Demaille.
51049
51050 2001-06-11  Jim Meyering  <meyering@lucent.com>
51051
51052         * lib/regex.c: Update from GNU libc.
51053
51054 2001-05-27  Jim Meyering  <meyering@lucent.com>
51055
51056         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
51057         Check for ut_type in struct utmp.
51058
51059 2001-05-27  Jim Meyering  <meyering@lucent.com>
51060
51061         * lib/readutmp.h (UT_TYPE): Define.
51062
51063 2001-05-24  Jim Meyering  <meyering@lucent.com>
51064
51065         * lib/argmatch.c: Include "quote.h".
51066         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
51067         quote function.  Reported by Göran Uddeborg.
51068
51069 2001-05-22  Jim Meyering  <meyering@lucent.com>
51070
51071         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
51072         now that we use the package-supplied version unconditionally.
51073         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
51074
51075 2001-05-21  Jim Meyering  <meyering@lucent.com>
51076
51077         * m4/regex.m4: Change a couple backticks to single quotes to avoid
51078         shell syntax errors.
51079
51080 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51081
51082         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
51083
51084 2001-05-20  Paul Eggert  <eggert@twinsun.com>
51085
51086         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
51087         Don't bother to check library strftime, since
51088         we'll be using our own my_strftime function anyway.
51089         Define my_strftime instead of strftime.
51090
51091 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
51092
51093         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
51094         which is not yet declared.
51095
51096 2001-05-15  Jim Meyering  <meyering@lucent.com>
51097
51098         * m4/regex.m4: Use proper quoting so brackets appear in the test
51099         program.
51100         Reported by, and with help from, Bruno Haible.
51101
51102 2001-05-13  Jim Meyering  <meyering@lucent.com>
51103
51104         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
51105         undefined.
51106
51107 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51108
51109         dirname code cleanup.  base_name now behaves more compatibly
51110         with POSIX basename when given file names that have trailing
51111         slashes, and similarly for dir_name.  Add new primitives
51112         base_len and dir_len.  Put the directory-name-related decls
51113         into dirname.h.
51114
51115         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
51116         * lib/backupfile.c (base_name): Likewise.
51117         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
51118         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
51119         * lib/makepath.c (strip_trailing_slashes): Likewise.
51120         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
51121         ISSLASH): Likewise.
51122         * lib/rename.c (strip_trailing_slashes): Likewise.
51123         * lib/same.c (base_name): Likewise.
51124         * lib/stripslash.c (ISSLASH): Likewise.
51125
51126         * lib/addext.c: Include <dirname.h> after size_t is defined.
51127         * lib/backupfile.c: Likewise.
51128
51129         * lib/addext.c (addext): Use base_len to trim redundant
51130         trailing slashes instead of doing it ourselves.
51131         But do not trim the last slash if it is not redundant.
51132
51133         * lib/backupfile.c (find_backup_file_name,
51134         max_backup_version): Use base_len instead of rolling it ourselves.
51135         Handle the case of "" and (on DOS) "C:" correctly.
51136
51137         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
51138         needed. Include <string.h>, <dirname.h>.
51139         (base_name): Allow file names ending in slashes, other than names
51140         that are all slashes.  In this case, return the basename followed
51141         by the slashes.  This is more general, and can be used in places
51142         where the original base_name purposely had an assertion failure.
51143         (base_len): New function.
51144
51145         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
51146         Do not include <assert.h>; no longer needed.
51147         Include xalloc.h.
51148         (memrchr): Remove decl.
51149         (dir_name_r): Remove.
51150         (dir_len): Renamed from dirlen.  All callers changed.
51151         Rewrite in terms of base_name, for simplicity and consistency.
51152         (dir_name): Never return NULL.  All callers changed.
51153         Do not include <stdlib.h> in test program; no longer needed.
51154         return 0; is fine for test program.
51155
51156         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
51157         New macros.
51158         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
51159
51160         * lib/path-concat.c (path_concat): Use base_len to compute
51161         base length, not strlen; this means we cannot rely on memcpy
51162         to null-terminate.
51163
51164         * lib/same.c (STREQ): Remove.
51165         (same_name): Handle the case where the basename ends in trailing '/'.
51166
51167         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
51168         a slash was stripped.  Do not strip the last slash after a
51169         file system prefix.
51170
51171 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51172
51173         * lib/Makefile.am (libfetish_a_SOURCES):
51174         Add strftime.c, since we now compile it on all hosts.
51175
51176         * lib/strftime.c (my_strftime):
51177         Define to nstrftime if emacs, but only if my_strftime is not defined.
51178         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
51179         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
51180         Add one more extra argument: a nanoseconds value.
51181         All uses changed.
51182         (ns): New macro.
51183         (my_strftime function): Add %N format.
51184         (emacs_strftimeu): Renamed from emacs_strftime,
51185         with extra ut argument.
51186
51187 2001-05-09  Paul Eggert  <eggert@twinsun.com>
51188
51189         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
51190
51191 2001-04-21  Jim Meyering  <meyering@lucent.com>
51192
51193         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
51194         doesn't interfere.
51195
51196 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51197
51198         * m4/ftruncate.m4: Check for chsize.
51199         Link with ftruncate.o unconditionally if ftruncate is missing.
51200         This was required when cross-compiling to i586-mingw32msvc.
51201
51202 2001-04-08  Jim Meyering  <meyering@lucent.com>
51203
51204         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
51205         recomputed; that's necessary when the offset spans a DST transition.
51206         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
51207
51208 2001-04-02  Jim Meyering  <meyering@lucent.com>
51209
51210         * lib/regex.h, regex.c: Update from GNU libc.
51211
51212 2001-03-24  Jim Meyering  <meyering@lucent.com>
51213
51214         * m4/jm-macros.m4: Require autoconf-2.49d.
51215
51216 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
51217
51218         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
51219
51220 2001-03-19  Paul Eggert  <eggert@twinsun.com>
51221
51222         * lib/version-etc.c (version_etc_copyright): Update to 2001.
51223
51224 2001-03-17  Jim Meyering  <meyering@lucent.com>
51225
51226         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
51227         now that the version in autoconf is equivalent.
51228         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
51229
51230         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
51231         Suggestion from Akim Demaille.
51232
51233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
51234         (jm_PREREQ_TEMPNAME): New function.
51235
51236 2001-03-16  Paul Eggert  <eggert@twinsun.com>
51237
51238         * lib/tempname.c (uint64_t): Define to uintmax_t if
51239         not defined, and if UINT64_MAX is not defined.
51240         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
51241         Reported by John David Anglin.
51242
51243 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
51244
51245         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
51246         resolve alias if codeset is empty.
51247         * lib/config.charset (BeOS): Use wildcard syntax.
51248
51249 2001-03-13  Jim Meyering  <meyering@lucent.com>
51250
51251         * lib/path-concat.c (path_concat)
51252         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
51253         concatenating e.g., `C:' and `foo'.
51254         From Bruno Haible.
51255
51256 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51257
51258         * lib/localcharset.c (locale_charset): Don't use
51259         setlocale(LC_CTYPE,NULL). Don't return NULL.
51260         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
51261
51262 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51263
51264         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
51265         support for DOS/DJGPP.
51266
51267 2001-03-01  Paul Eggert  <eggert@twinsun.com>
51268
51269         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
51270         lacks mkstemp.  Compile our own tempname.c if we compile our own
51271         mkstemp.c, as mkstemp relies on tempname.
51272
51273 2001-03-01  Jim Meyering  <meyering@lucent.com>
51274
51275         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
51276         AH_VERBATIM really does output its argument verbatim.
51277
51278 2001-02-28  Paul Eggert  <eggert@twinsun.com>
51279
51280         * lib/Makefile.am (libfetish_a_SOURCES):
51281         Add dup-safer.c, fopen-safer.c.
51282         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
51283
51284         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
51285         * lib/unistd-safer.h: New files.
51286
51287 2001-02-25  Paul Eggert  <eggert@twinsun.com>
51288
51289         The mkstemp replacement is taken from glibc 2.2.2, with some
51290         portability fixes for use outside glibc, as follows:
51291
51292         * lib/tempname.c (struct_stat64): New macro.
51293         (direxists, __gen_tempname): Use it.
51294         This avoids a portability problem with Solaris 8.
51295
51296         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
51297         (<stddef.h>, <stdint.h>, <string.h>):
51298         Include only if STDC_HEADERS || _LIBC.
51299         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
51300         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
51301         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
51302         (__set_errno): Define this macro if <errno.h> doesn't.
51303         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
51304         Define these macros if <stdio.h> doesn't.
51305         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
51306         Define these macros if <sys/stat.h>
51307         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
51308         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
51309         __xstat64): Define if not _LIBC.
51310         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
51311         (__gen_tempname): Invoke gettimeofday only if
51312         HAVE_GETTIMEOFDAY || _LIBC;
51313         otherwise, fall back on plain "time".
51314         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
51315
51316         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
51317
51318         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
51319
51320 2001-02-18  Paul Eggert  <eggert@twinsun.com>
51321
51322         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
51323
51324 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51325
51326         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
51327         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
51328         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
51329         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51330
51331 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51332
51333         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
51334         Remove workaround macros for hosts that have mbrtowc but not
51335         mbstate_t, as we now insist on proper declarations for both
51336         before using mbrtowc.
51337
51338 2001-02-17  Jim Meyering  <meyering@lucent.com>
51339
51340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
51341         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
51342         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
51343         UnixWare 7.1.1.
51344
51345         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
51346         rather than AC_CACHE_VAL.
51347
51348 2001-02-17  Jim Meyering  <meyering@lucent.com>
51349
51350         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
51351         around included file name.
51352
51353         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
51354
51355         * lib/strftime.c: Update from GNU libc (the only changes were to
51356         comments).
51357
51358 2001-02-17  Jim Meyering  <meyering@lucent.com>
51359
51360         * lib/regex.c: Update from libc.
51361
51362 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
51363
51364         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
51365         clash.
51366
51367 2001-02-16  Paul Eggert  <eggert@twinsun.com>
51368
51369         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
51370         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
51371         Reported by Mark Hounschell via Paul Eggert.
51372
51373 2001-02-07  Jim Meyering  <meyering@lucent.com>
51374
51375         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
51376
51377 2001-02-05  Jim Meyering  <meyering@lucent.com>
51378
51379         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
51380         it includes the patch required for `large file' support with at least
51381         HP-UX's 10.20 /bin/cc.
51382
51383 2001-02-03  Jim Meyering  <meyering@lucent.com>
51384
51385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
51386         AS_IF, now that it works once again (mysteriously).
51387         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51388
51389 2001-01-30  Jim Meyering  <meyering@lucent.com>
51390
51391         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
51392         * m4/chown.m4: Rename conftestchown to conftest.chown.
51393         * m4/rename.m4: s/conftestdir/conftest.d1/ and
51394         s/conftestdir2/conftest.d2/.
51395         * m4/utimes.m4: s/conftestdata/conftest.data/
51396         Inspired by Pavel Roskin's change in autoconf.
51397
51398 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
51399
51400         * lib/config.charset: Update for FreeBSD 4.2.
51401
51402 2001-01-27  Jim Meyering  <meyering@lucent.com>
51403
51404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
51405         a use of AS_IF.
51406         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51407
51408 2001-01-26  Jim Meyering  <meyering@lucent.com>
51409
51410         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
51411         quotearg.c includes it.
51412
51413 2001-01-26  Jim Meyering  <meyering@lucent.com>
51414
51415         * lib/quotearg.c: Include stddef.h.
51416         * lib/quote.c: Include stddef.h.
51417         Reported by Axel Kittenberger.
51418
51419         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
51420         line in double quotes so that it evokes a better diagnostic.
51421         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
51422         Reported by Axel Kittenberger.
51423
51424 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
51425
51426         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
51427         as if it was a `charset'.
51428
51429 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51430
51431         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
51432         has const.
51433
51434 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51435
51436         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
51437         to avoid a warning.  Add back 'const' to inptr.
51438
51439 2001-01-20  Jim Meyering  <meyering@lucent.com>
51440
51441         Be sure that headers are checked before used in code compiled
51442         for the type checks.
51443         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
51444         In place of that, invoke jm_CHECK_ALL_TYPES.
51445         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
51446         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
51447         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
51448         The check for ssize_t was mistakenly run before the test for unistd.h.
51449
51450         The configure-time check for stdbool.h was missing.
51451         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
51452         (jm_PREREQ_HASH): New function.
51453
51454 2001-01-17  Jim Meyering  <meyering@lucent.com>
51455
51456         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
51457         for autoconf-2.49c.
51458         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
51459
51460 2001-01-16  Jim Meyering  <meyering@lucent.com>
51461
51462         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
51463         From Bruno Haible.
51464
51465 2001-01-14  Jim Meyering  <meyering@lucent.com>
51466
51467         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
51468         foo and bar.  Create conftestdir/ in the script, not in the C code.
51469         Remove directories in the script, not in the C code.
51470         Remove conftestdir{,2} before trying to create the directory.
51471         Make the entire configure script fail if the mkdir fails.
51472
51473 2001-01-14  Jim Meyering  <meyering@lucent.com>
51474
51475         * lib/rename.c: New file.  From Volker Borchert.
51476         Include stdlib.h, string.h or strings.h, and xalloc.h.
51477         Use strip_trailing_slashes rather than open-coding it.
51478
51479 2001-01-03  Paul Eggert  <eggert@twinsun.com>
51480
51481         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
51482
51483 2001-01-03  Jim Meyering  <meyering@lucent.com>
51484
51485         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
51486         of local `inptr' to avoid warning with some system declarations of
51487         iconv.
51488
51489 2001-01-02  Volker Borchert  <bt@teknon.de>
51490
51491         * m4/rename.m4: New file.
51492         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
51493
51494 2001-01-01  Jim Meyering  <meyering@lucent.com>
51495
51496         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
51497         even on systems with utmpx.h.  It's necessary for the declaration of
51498         utmp's ut_user member.  Reported by Andreas Jaeger.
51499
51500         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
51501         available. They are required for the declarations of getgrgid and
51502         getpwuid resp.
51503         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
51504         Reported by Andreas Jaeger.
51505
51506 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
51507
51508         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
51509         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
51510         so `make install' also works in VPATH builds.
51511
51512 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
51513
51514         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
51515         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
51516         can be used in subdirectories.
51517
51518 2000-12-29  Paul Eggert  <eggert@twinsun.com>
51519
51520         * lib/modechange.c: Do not assume that mode_t uses the
51521         traditional octal encoding.  E.g. "chmod 1 FOO" should set
51522         the other-execute bit of FOO even if S_IXOTH != 1.
51523
51524         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
51525         WOTH, XOTH, ALLM): New macros.
51526         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
51527          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
51528         Use them.
51529         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
51530         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
51531         (mode_compile):
51532         No need to use uintmax_t; unsigned long is long enough.
51533         Don't bother to get suffix since we don't use it.
51534
51535 2000-12-26  Jim Meyering  <meyering@lucent.com>
51536
51537         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
51538         better with autoheader.
51539
51540 2000-12-24  Jim Meyering  <meyering@lucent.com>
51541
51542         * lib/hash.c (is_prime): Return explicit boolean values.
51543         (hash_get_first): Return NULL to appease Irix5.6's 89.
51544         Reported by Nelson Beebe.
51545
51546 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
51547
51548         * lib/localcharset.c (locale_charset): Add support for Win32.
51549
51550 2000-12-18  Paul Eggert  <eggert@twinsun.com>
51551
51552         * lib/physmem.h, lib/physmem.c: New files.
51553
51554         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
51555         (noinst_HEADERS): Add physmem.h.
51556
51557         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
51558         't' for compatibility with Solaris 8 sort.
51559
51560 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
51561
51562         * lib/config.charset: Add support for BeOS.
51563
51564 2000-12-17  Jim Meyering  <meyering@lucent.com>
51565
51566         * m4/dos.m4 (jm_AC_DOS): New file and macro.
51567         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
51568
51569 2000-12-16  Jim Meyering  <meyering@lucent.com>
51570
51571         This bug had a serious impact on chown: `chown N:M FILE' (for integer
51572         N and M) would have treated it like `chown N:N FILE'.
51573
51574         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
51575
51576 2000-12-16  Jim Meyering  <meyering@lucent.com>
51577
51578         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
51579         SHELLS_FILE to a file name that's useful on djgpp systems.
51580         Include stdlib.h.
51581         (ADDITIONAL_DEFAULT_SHELLS): Define.
51582         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
51583         Based mostly on a patch from Prashant TR.
51584
51585 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
51586
51587         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
51588         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
51589         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
51590
51591 2000-12-08  Andreas Schwab  <schwab@suse.de>
51592
51593         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
51594         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
51595
51596 2000-12-07  Jim Meyering  <meyering@lucent.com>
51597
51598         * lib/stripslash.c (ISSLASH): Define.
51599         (strip_trailing_slashes): Use ISSLASH rather than comparing against
51600         `/'.
51601         From Prashant TR.
51602
51603         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
51604         (dir_name_r): Declare this function as static.
51605         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
51606         manifest itself on a name containing a mix of slashes and
51607         backslashes.
51608         Make this function work with names starting with a DOS-style
51609         drive letter and colon prefix.
51610         (dir_name): Append `.' if necessary.
51611         Based mostly on patches from Prashant TR and Eli Zaretskii.
51612
51613         * lib/dirname.h (dir_name_r): Remove prototype.
51614
51615 2000-12-06  Paul Eggert  <eggert@twinsun.com>
51616
51617         * m4/off_t-format.m4: Remove this file.
51618         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
51619
51620 2000-12-06  Jim Meyering  <meyering@lucent.com>
51621
51622         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
51623         replacement strtoull, we may well need the replacement strtoul, too.
51624         Check for declarations of strtoul and strtoull.
51625         Check for strtol.  Mainly as a cue to cause automake to include
51626         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
51627         Check for limits.h -- strtol.c needs it.
51628
51629 2000-12-05  Jim Meyering  <meyering@lucent.com>
51630
51631         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
51632
51633 2000-12-04  Jim Meyering  <meyering@lucent.com>
51634
51635         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
51636         Also include memory.h, stdlib.h, unistd.h if appropriate.
51637         Reported by Andreas Jaeger (conflicting declaration of malloc).
51638
51639 2000-12-02  Jim Meyering  <meyering@lucent.com>
51640
51641         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
51642         * m4/jm-macros.m4 (jm_MACROS): require it.
51643
51644 2000-12-02  Jim Meyering  <meyering@lucent.com>
51645
51646         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
51647
51648 2000-12-01  Paul Eggert  <eggert@twinsun.com>
51649
51650         * lib/memrchr.c: Include <config.h> before any system include file.
51651
51652 2000-11-30  Jim Meyering  <meyering@lucent.com>
51653
51654         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
51655
51656 2000-11-30  Jim Meyering  <meyering@lucent.com>
51657
51658         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
51659
51660 2000-11-29  Paul Eggert  <eggert@twinsun.com>
51661
51662         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
51663
51664 2000-11-26  Jim Meyering  <meyering@lucent.com>
51665
51666         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
51667
51668 2000-11-22  Paul Eggert  <eggert@twinsun.com>
51669
51670         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
51671         size of (size_t) -1; it's not portable.
51672
51673 2000-11-17  Jim Meyering  <meyering@lucent.com>
51674
51675         * lib/strstr.c: Update from GNU libc.
51676
51677 2000-11-17  Akim Demaille  <akim@epita.fr>
51678
51679         * lib/obstack.h: Formatting changes.
51680         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
51681         prevent type checking.
51682         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
51683         cast the value to (void *): assigning a `foo *' to a `void *'
51684         variable is valid.
51685         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
51686
51687 2000-11-16  Jim Meyering  <meyering@lucent.com>
51688
51689         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
51690
51691 2000-11-11  Jim Meyering  <meyering@lucent.com>
51692
51693         * lib/error.c: Add a couple #includes, merging from GNU libc version.
51694
51695 2000-11-10  Jim Meyering  <meyering@lucent.com>
51696
51697         * lib/obstack.h: Update from GNU libc.
51698         * lib/obstack.c: Likewise.
51699
51700 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
51701
51702         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
51703
51704 2000-11-06  Paul Eggert  <eggert@twinsun.com>
51705
51706         * lib/getusershell.c (setusershell): Use rewind rather than
51707         fseek/fseeko, to avoid configuration hassles with fseeko.
51708         Don't bother opening SHELLS_FILE if shellstream is NULL;
51709         it's not necessary.
51710
51711 2000-11-05  Jim Meyering  <meyering@lucent.com>
51712
51713         * lib/makepath.h (make_dir): Declare.
51714         * lib/makepath.c (make_dir): Remove `static' attribute.
51715         Tweak a comment.
51716
51717 2000-11-04  Jim Meyering  <meyering@lucent.com>
51718
51719         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
51720
51721 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
51722
51723         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
51724         last one in a bucket, advance to the next bucket.
51725
51726 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
51727
51728         * lib/fnmatch.c: Do not comment out all the code if we are using
51729         the GNU C library, because in some cases we are replacing buggy
51730         code in the GNU C library itself.
51731
51732 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
51733
51734         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
51735         (regex_compile): Catch bogus \(\1\).
51736
51737 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51738
51739         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
51740         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
51741         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
51742
51743 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51744
51745         * lib/error.h, getline.h, modechange.h:
51746         Remove "2000" from Copyright line, as the file hasn't been
51747         changed this year other than in the copyright notice.
51748
51749         * lib/xalloc.h: Add "2000" to Copyright line, as this file
51750         was changed this year.
51751
51752 2000-10-29  Jim Meyering  <meyering@lucent.com>
51753
51754         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
51755         renaming.
51756         * m4/ls-mntd-fs.m4: Likewise
51757
51758 2000-10-29  Jim Meyering  <meyering@lucent.com>
51759
51760         * lib/xstat.in: Fix grammar in comment.
51761
51762 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
51763
51764         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
51765         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
51766         doesn't define __restrict_arr.
51767
51768 2000-10-28  Jim Meyering  <meyering@lucent.com>
51769
51770         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
51771         (jm_PREREQ_MEMCHR): New function.
51772
51773 2000-10-28  Jim Meyering  <meyering@lucent.com>
51774
51775         * lib/memchr.c: Update from libc.
51776         Adjust for portability:
51777         [HAVE_STDLIB_H]: Include stdlib.h.
51778         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
51779         Undef __memchr, too.
51780         [!weak_alias]: Define __memchr to memchr.
51781
51782         * lib/regex.c: Update from libc.
51783         * lib/regex.h: Likewise.
51784         * lib/getopt1.c: Likewise.
51785         * lib/memcmp.c: Likewise.
51786
51787         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
51788         Avoid using fseek, when possible -- it's broken by design.
51789         Patch by Ulrich Drepper.
51790
51791 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
51792
51793         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
51794         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
51795         Giving in to popular pressure to shut up the compiler with casts.
51796
51797 2000-10-26  Jim Meyering  <meyering@lucent.com>
51798
51799         * lib/strftime.c: Update from libc.
51800
51801 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
51802
51803         * regex.c: More `unsigned char' -> `re_char' changes.
51804         Also change several `int' into `re_wchar_t'.
51805         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
51806         (PUSH_FAILURE_POINTER): Don't cast any more.
51807         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
51808         We want GCC to complain, since this piece of code makes
51809         re_match non-reentrant, which *should* be fixed.
51810         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
51811         (EXTEND_BUFFER): Use RETALLOC.
51812         (SET_LIST_BIT): Don't cast.
51813         (re_wchar_t): New type.
51814         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
51815         that those two functions will always properly return.
51816         (IMMEDIATE_QUIT_CHECK): Cast to void.
51817         (analyse_first): Use recursion rather than an explicit stack.
51818         (re_compile_fastmap): Can't fail anymore.
51819         (re_search_2): Don't check re_compile_fastmap for failure.
51820         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
51821         Now also sets the new value (passed in a new argument).
51822         (re_match_2_internal): Use it.
51823         Also, use a new var `reg' of type size_t when looping through regs
51824         rather than reuse the inappropriate `mcnt'.
51825
51826 2000-10-25  Jim Meyering  <meyering@lucent.com>
51827
51828         * lib/obstack.c: Update from libc.
51829
51830 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
51831
51832         * regex.c (regex_compile): Change the way of handling a range from
51833         a char less than 256 to a char not less than 256.
51834
51835 2000-10-24  Andrew Innes  <andrewi@gnu.org>
51836
51837         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
51838         NT-Emacs only.
51839         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
51840         so that re_search functions only quit when callers expect them to.
51841
51842 2000-10-23  Jim Meyering  <meyering@lucent.com>
51843
51844         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
51845         wrong.  That set_locale call must not have any side effects.
51846         From Paul Eggert.
51847
51848 2000-10-22  Jim Meyering  <meyering@lucent.com>
51849
51850         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
51851         [CYCLIC]: Remove now-unused definition.
51852
51853         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
51854         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
51855         Suggestion from Ulrich Drepper.
51856
51857 2000-10-21  Jim Meyering  <meyering@lucent.com>
51858
51859         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
51860         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
51861         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
51862
51863 2000-10-21  Jim Meyering  <meyering@lucent.com>
51864
51865         * lib/dirname.c (memrchr): Declare if necessary.
51866         (dir_name): Remove the restriction that there be no
51867         trailing slashes.  Now, this code skips past them, effectively
51868         ignoring them.
51869         [TEST_DIRNAME] (main): New unit tests.
51870
51871         * lib/memrchr.c: New file from GNU libc.
51872         Undef __memrchr, too.
51873         [!weak_alias]: Define __memrchr to memrchr.
51874         Guard weak_alias use with `#ifdef weak_alias'.
51875
51876 2000-10-21  Jim Meyering  <meyering@lucent.com>
51877
51878         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
51879         (dir_name): Use dir_name_r.
51880         * lib/dirname.h (dir_name_r): Declare it.
51881
51882 2000-10-17  Jim Meyering  <meyering@lucent.com>
51883
51884         * lib/quote.h (PARAMS): Define and use.
51885         Reported by Akim Demaille.
51886
51887         * lib/getopt.c: Update from libc.
51888
51889 2000-10-16  Jim Meyering  <meyering@lucent.com>
51890
51891         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
51892         setlocale.
51893         From Jan Fedak.
51894
51895 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
51896
51897         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
51898
51899 2000-09-25  Jim Meyering  <meyering@lucent.com>
51900
51901         * lib/md5.h (rol): Define (from GnuPG).
51902
51903         * lib/sha.c: Give credit (GnuPG) where due.
51904         (M): Use rol rather than open-coding it.
51905         Add a FIXME comment.
51906
51907 2000-09-21  Jim Meyering  <meyering@lucent.com>
51908
51909         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
51910         Reported by Michael Stone.
51911
51912 2000-09-20  Jim Meyering  <meyering@lucent.com>
51913
51914         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
51915         (noinst_HEADERS): Add sha.h.
51916         Based on code from Scott G. Miller and from GnuPG.
51917
51918 2000-09-18  Jim Meyering  <meyering@lucent.com>
51919
51920         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
51921         LIBS. Otherwise, everyone ends up linking with -lelf for some
51922         configurations.
51923         Reported by Mike Stone.
51924
51925 2000-09-15  Jim Meyering  <meyering@lucent.com>
51926
51927         * lib/regex.c: Update from libc.
51928
51929 2000-09-10  Jim Meyering  <meyering@lucent.com>
51930
51931         * lib/getopt.c (_getopt_internal): Update from glibc.
51932
51933 2000-09-09  Jim Meyering  <meyering@lucent.com>
51934
51935         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
51936         think it should be used as a general replacement for isascii.
51937         * lib/fnmatch.c: Likewise.
51938         * lib/mbswidth.c: Likewise
51939         * lib/regex.c: Likewise.
51940
51941         Don't use atoi.
51942         * lib/userspec.c: Include sys/param.h and limits.h.
51943         Include xstrtol.h.
51944         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51945         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
51946         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
51947         UID, GID.  Check range.
51948
51949 2000-09-06  Jim Meyering  <meyering@lucent.com>
51950
51951         * lib/getopt.c (_getopt_internal): Update from glibc.
51952
51953 2000-08-30  Jim Meyering  <meyering@lucent.com>
51954
51955         * lib/strftime.c: Merge in changes from GNU libc.
51956
51957 2000-08-26  Jim Meyering  <meyering@lucent.com>
51958
51959         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
51960         * m4/fpending.m4: New file.
51961
51962 2000-08-26  Jim Meyering  <meyering@lucent.com>
51963
51964         * lib/closeout.c: Include "__fpending.h".
51965         (close_stdout_status): Return right away if there's nothing to flush.
51966
51967         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
51968         * lib/__fpending.c: New file.
51969         * lib/__fpending.h: New file.
51970
51971 2000-08-20  Jim Meyering  <meyering@lucent.com>
51972
51973         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
51974         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
51975         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
51976
51977 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
51978
51979         Improve fileutils installation on systems where running
51980         programs (like install) can't be unlinked.
51981         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
51982         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
51983
51984 2000-08-07  Paul Eggert  <eggert@twinsun.com>
51985
51986         Standardize on "memory exhausted" instead of "Memory exhausted"
51987         or "virtual memory exhausted".
51988         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
51989         "virtual memory exhausted".
51990         * lib/same.c (same_name): Invoke xalloc_die instead of printing
51991         our own message.
51992         * lib/userspec.c (parse_user_spec): Likewise.
51993         * lib/bumpalloc.h: comment fix
51994         * lib/same.c, userspec.c: Include xalloc.h.
51995
51996         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
51997         not char *const and pointing to a constant array.
51998         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
51999         (xrealloc): Comment fix.
52000
52001         * lib/userspec.c (parse_user_spec):
52002         Don't translate a message until just before returning,
52003         to avoid unnecessary translation.
52004
52005 2000-08-07  Jim Meyering  <meyering@lucent.com>
52006
52007         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
52008         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
52009         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
52010         getgroups.c, gethostname.c, getopt.h, group-member.c,
52011         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
52012         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
52013         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
52014         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
52015         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
52016         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
52017         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
52018         yesno.c: Back out Copyright date changes for each file with no change
52019         this year.  This eases coordination with other programs using the same
52020         source code modules.  From Paul Eggert.
52021
52022 2000-08-06  Paul Eggert  <eggert@twinsun.com>
52023
52024         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
52025         not char, for compatibility with glibc 2.1.3 strftime.c.
52026
52027 2000-08-03  Greg McGary  <greg@mcgary.org>
52028
52029         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
52030         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
52031         (EXTEND_BUFFER): Use them.
52032
52033 2000-08-01  Jim Meyering  <meyering@lucent.com>
52034
52035         * lib/dirname.c (ISSLASH): Define.
52036         (BACKSLASH_IS_PATH_SEPARATOR): Define.
52037         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
52038         both `\' and `/' may be use as path separators.
52039         Based on a patch from Prashant TR.
52040
52041 2000-07-31  Paul Eggert  <eggert@twinsun.com>
52042
52043         * lib/quotearg.c (quotearg_n_options): Don't make the initial
52044         slot vector a constant, since it might get modified.
52045
52046 2000-07-31  Jim Meyering  <meyering@lucent.com>
52047
52048         * lib/xmalloc.c: Use `virtual memory exhausted', not
52049         `Memory exhausted'.
52050         * lib/obstack.c (print_and_abort): Likewise.
52051
52052 2000-07-30  Paul Eggert  <eggert@twinsun.com>
52053
52054         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
52055         buffer, so that the caller can always quote one small
52056         component of a "memory exhausted" message in slot 0.
52057         From a suggestion by Jim Meyering.
52058
52059 2000-07-30  Jim Meyering  <meyering@lucent.com>
52060
52061         * lib/makepath.c (make_path): Quote the other instance, too.
52062
52063         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
52064         (STATIC_BUF_SIZE): Define.
52065         (quotearg_n_options): Use only statically allocated storage when
52066         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
52067         than STATIC_BUF_SIZE.
52068
52069 2000-07-29  Jim Meyering  <meyering@lucent.com>
52070
52071         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
52072         * lib/dirname.c (dir_name): Likewise.
52073
52074         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
52075         `/'.
52076
52077         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
52078         (dir_name): Assert that there are no trailing slashes.
52079
52080 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
52081
52082         * lib/mbswidth.h (mbswidth): Add a flags argument.
52083         (mbswidth): New declaration.
52084         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
52085         * lib/mbswidth.c (mbswidth): Add a flags argument.
52086         (mbsnwidth): New function.
52087
52088 2000-07-24  Jim Meyering  <meyering@lucent.com>
52089
52090         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
52091
52092 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52093
52094         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
52095
52096 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52097
52098         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
52099         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
52100         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
52101         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
52102         invoke multibyte primitives.
52103
52104 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52105
52106         * lib/quotearg.c:
52107         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
52108         so that mbstate_t is always defined.
52109
52110         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
52111         be 1 in at least one GCC installation, and this configuration
52112         error is likely to be common.  Ignoring MB_LEN_MAX hurts
52113         performance on hosts that have mbrtowc but have only unibyte
52114         locales, but I assume these hosts are rare.
52115
52116 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52117
52118         * lib/mbswidth.c (_XOPEN_SOURCE):
52119         Don't define; this causes problems on Solaris 7.
52120         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
52121
52122 2000-07-23  Jim Meyering  <meyering@lucent.com>
52123
52124         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
52125         too: getgrgid, getpwuid, getuid.
52126
52127 2000-07-23  Jim Meyering  <meyering@lucent.com>
52128
52129         * lib/basename.c (base_name): Add an assertion.
52130
52131 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
52132
52133         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
52134         shadow its mbsinit function.
52135
52136 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52137
52138         * lib/mbswidth.h: New file.
52139         * lib/mbswidth.c: New file.
52140         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
52141         (noinst_HEADERS): Add mbswidth.h.
52142
52143 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52144
52145         * lib/config.charset: Add support for FreeBSD. Improve support for
52146         HP-UX and IRIX 6.
52147
52148 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
52149
52150         * m4/mbswidth.m4: New file.
52151         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
52152
52153 2000-07-15  Jim Meyering  <meyering@lucent.com>
52154
52155         * lib/makepath.c: Include quote.h.
52156         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52157         corresponding argument in a `quote (...)' call.
52158         Give better diagnostics.
52159
52160         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
52161         (noinst_HEADERS): Add quote.h.
52162
52163         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
52164         from tar's src/misc.c.
52165         * lib/quote.h: New file.  Prototypes for same.
52166
52167 2000-07-14  Paul Eggert  <eggert@twinsun.com>
52168
52169         From a suggestion by Bruno Haible.
52170         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
52171         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
52172         to decide whether to define the BeOS workaround macro;
52173         this adjusts to the change to AC_MBSTATE_T.
52174
52175 2000-07-14  Jim Meyering  <meyering@lucent.com>
52176
52177         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
52178         jm_AC_TYPE_UINTMAX_T.
52179
52180 2000-07-13  Paul Eggert  <eggert@twinsun.com>
52181
52182         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
52183
52184         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
52185         quotearg_buffer_restyled): Add support for
52186         clocale_quoting_style.  Undo previous change to
52187         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
52188         and "{RIGHT QUOTATION MARK}" msgids.
52189
52190 2000-07-10  Paul Eggert  <eggert@twinsun.com>
52191
52192         From a suggestion by Bruno Haible.
52193         * m4/mbstate_t.m4 (AC_MBSTATE_T):
52194         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
52195         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
52196         and mbstate_t, to a single-part test that simply defines mbstate_t.
52197         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
52198         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
52199
52200 2000-07-10  Jim Meyering  <meyering@lucent.com>
52201
52202         * m4/strerror_r.m4: Mirror the correction made in autoconf.
52203
52204         * m4/gnu-source.m4: Output to confdefs.h directly.
52205         Suggestion from Akim Demaille.
52206
52207 2000-07-09  Paul Eggert  <eggert@twinsun.com>
52208
52209         The old behavior of quoting `like this' doesn't look good with
52210         newer, ISO-style fonts.  See:
52211         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
52212
52213         Instead, quote "like this" by default.  Let the translator
52214         tailor the locale-specific quoting behavior by providing
52215         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
52216
52217         * lib/quotearg.c (N_): New macro.
52218         (gettext_default): New function.
52219         (quotearg_buffer_restyled): Use
52220         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
52221         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
52222
52223 2000-07-09  Jim Meyering  <meyering@lucent.com>
52224
52225         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
52226         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
52227
52228         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
52229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
52230
52231 2000-07-09  Jim Meyering  <meyering@lucent.com>
52232
52233         * lib/Most files: Update copyright dates to include 2000.
52234
52235 2000-07-08  Jim Meyering  <meyering@lucent.com>
52236
52237         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
52238         if not defined.
52239         (xgethostname): Remove now-unnecessary #ifdef.
52240         Move declaration of `err' into loop where it's used.
52241
52242 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52243         and Bruno Haible  <haible@clisp.cons.org>
52244
52245         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
52246         only if the test for an object-type mbstate_t fails.  This
52247         prevents us from mistakenly reporting that mbstate_t is a
52248         system object type after we "#define mbstate_t int" to work
52249         around its lack.
52250
52251 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52252         and Bruno Haible  <haible@clisp.cons.org>
52253
52254         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
52255
52256 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52257
52258         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
52259         to strerror_r.
52260         Include <ctype.h> for use of isalpha.
52261
52262 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52263
52264         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
52265         by allocating a larger buffer. Test the gethostname return value for
52266         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
52267         returns an error and ENAMETOOLONG isn't defined.
52268
52269 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52270
52271         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
52272         dimension.
52273
52274 2000-07-04  Jim Meyering  <meyering@lucent.com>
52275
52276         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
52277         of the deprecated AC_CHECKING.
52278
52279 2000-07-04  Jim Meyering  <meyering@lucent.com>
52280
52281         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
52282         Reported by Bruno Haible.
52283
52284 2000-07-04  Jim Meyering  <meyering@lucent.com>
52285
52286         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
52287         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
52288         lacks mbrtowc.
52289
52290 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52291
52292         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
52293         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
52294
52295 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52296         and Bruno Haible  <haible@clisp.cons.org>
52297
52298         * lib/quotearg.c (mbrtowc):
52299         Assign to *pwc, and return 1 only if result is nonzero.
52300         (iswprint): Use ISPRINT when substituting our own mbrtowc.
52301
52302 2000-07-03  Jim Meyering  <meyering@lucent.com>
52303
52304         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
52305
52306 2000-07-03  Jim Meyering  <meyering@lucent.com>
52307
52308         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
52309         This is necessary to get a definition of e.g., UTMP_FILE on
52310         HP-UX 10.20.
52311         From Bob Proulx.
52312
52313 2000-07-02  Jim Meyering  <meyering@lucent.com>
52314
52315         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
52316
52317         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
52318         AC_LIBOBJ(function_name).
52319         * m4/chown.m4: Likewise.
52320         * m4/fnmatch.m4: Likewise.
52321         * m4/ftruncate.m4: Likewise.
52322         * m4/getgroups.m4: Likewise.
52323         * m4/getline.m4: Likewise.
52324         * m4/group-member.m4: Likewise.
52325         * m4/jm-macros.m4: Likewise.
52326         * m4/lstat.m4: Likewise.
52327         * m4/malloc.m4: Likewise.
52328         * m4/memcmp.m4: Likewise.
52329         * m4/nanosleep.m4: Likewise.
52330         * m4/putenv.m4: Likewise.
52331         * m4/realloc.m4: Likewise.
52332         * m4/regex.m4: Likewise.
52333         * m4/stat.m4: Likewise.
52334         * m4/strftime.m4: Likewise.
52335
52336 2000-07-02  Jim Meyering  <meyering@lucent.com>
52337
52338         * lib/quotearg.c (mbstate_t): Don't define here.
52339
52340 2000-07-02  Jim Meyering  <meyering@lucent.com>
52341
52342         * lib/nanosleep.c (SIGCONT): Define if not already defined.
52343
52344 2000-07-01  Jim Meyering  <meyering@lucent.com>
52345
52346         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
52347
52348 2000-07-01  Jim Meyering  <meyering@lucent.com>
52349
52350         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
52351         problem.
52352
52353 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52354
52355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
52356         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
52357
52358 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52359
52360         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
52361         per change in ../m4/ls-mntd-fs.m4.
52362         (read_filesystem_list): Ignore symbolic links.
52363
52364 2000-06-29  Jim Meyering  <meyering@lucent.com>
52365
52366         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
52367         for declaration of strcmp.
52368
52369         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
52370
52371         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
52372         Avoid warning by casting result to `char *' to remove `const'.
52373
52374 2000-06-28  Jim Meyering  <meyering@lucent.com>
52375
52376         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
52377         included by quotearg.c, for which we perform this test.  From
52378         Bruno Haible.
52379
52380 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52381
52382         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
52383         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
52384         <utmpx.h> exists, put readutmp.o into LIBOBJS.
52385
52386 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52387
52388         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
52389
52390 2000-06-26  Paul Eggert  <eggert@twinsun.com>
52391
52392         savedir now sets errno on failure and invokes xmalloc to get memory.
52393         Fix a couple of other minor bugs while we're at it.
52394
52395         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
52396         (NAMLEN): Remove macro.
52397         (malloc, realloc): Remove decls.
52398         (stpcpy): Likewise.
52399         ("xalloc.h"): Include.
52400         (NAME_SIZE_DEFAULT): New macro.
52401         (savedir): Use xmalloc / xrealloc to allocate memory.
52402         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
52403         Skip "" directory entries.
52404         Use strlen to calculate directory entry length, since the old method
52405         is rarely used these days and isn't worth supporting.
52406         Don't use a pointer after freeing it.
52407         Check for integer overflow when calculating allocation size.
52408         Use memcpy to copy entries, instead of stpcpy.
52409         Set errno properly when returning NULL.
52410         Check for readdir error.
52411
52412 2000-06-26  Jim Meyering  <meyering@lucent.com>
52413
52414         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
52415
52416 2000-06-25  Jim Meyering  <meyering@lucent.com>
52417
52418         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
52419         Linux header bug when _XOPEN_SOURCE is defined to 500.
52420
52421 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52422
52423         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
52424         deficiency.
52425
52426 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52427
52428         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
52429         Include xalloc.h.
52430         Don't include <stdlib.h>.  Don't declare malloc, realloc.
52431
52432 2000-06-24  Jim Meyering  <meyering@lucent.com>
52433
52434         * m4/strerror_r.m4: Revive this file -- to try out an experimental
52435         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
52436         for which strerror does return char*, but which lacks a conveniently
52437         accessible declaration of the function.  If the compile-test says
52438         strerror_r doesn't work, then resort to a `run'-test that works on
52439         BeOS and segfaults on DEC Unix.
52440
52441 2000-06-24  Jim Meyering  <meyering@lucent.com>
52442
52443         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
52444
52445 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52446
52447         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
52448         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
52449
52450 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52451
52452         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
52453         (mbrtowc, mbstate_t): Define substitutes if
52454         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
52455         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
52456         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
52457
52458 2000-06-23  Jim Meyering  <meyering@lucent.com>
52459
52460         * m4/afs.m4: Add missing AC_MSG_RESULT.
52461         Reported by Bruno Haible.
52462
52463         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
52464         Suggestion from Bruno Haible.
52465
52466 2000-06-23  Jim Meyering  <meyering@lucent.com>
52467
52468         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
52469
52470 2000-06-21  Jim Meyering  <meyering@lucent.com>
52471
52472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
52473
52474 2000-06-21  Jim Meyering  <meyering@lucent.com>
52475
52476         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
52477         (noinst_HEADERS): Add getstr.h.
52478
52479         * lib/getline.c (getstr): Move into a separate file.
52480         * lib/getstr.c (getstr): New file, extracted from getline.c, with
52481         the following changes: new parameter, delim2; both delim[12]
52482         parameters have type `int', not `char'.  The latter would lose
52483         with 8-bit delimiters.
52484         * lib/getstr.h: New file.
52485
52486 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52487
52488         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
52489         than 1024, return a memory chunk of least possible size, instead
52490         of size PATH_MAX + 2. In the loop, increment the size proportionally.
52491         Use free/xmalloc instead of xrealloc to avoid copying for very long
52492         paths.
52493
52494 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52495
52496         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
52497         the empty string.
52498
52499 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52500
52501         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
52502         address, not strdup.  Include <stdlib.h> and don't declare free().
52503
52504 2000-06-19  Jim Meyering  <meyering@lucent.com>
52505
52506         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
52507
52508 2000-06-18  Jim Meyering  <meyering@lucent.com>
52509
52510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
52511
52512         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
52513         `checking whether...' message to be consistent with that of the
52514         lstat test.
52515
52516 2000-06-18  Jim Meyering  <meyering@lucent.com>
52517
52518         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
52519         Besides, these days every porting target provides a mkdir function.
52520
52521         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
52522         needed. (this snippet comes from src/system.h).
52523
52524 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
52525
52526         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
52527
52528 2000-06-15  Paul Eggert  <eggert@twinsun.com>
52529
52530         * lib/human.c (adjust_value): New function.
52531         (human_readable_inexact): Apply rounding style even when
52532         printing approximate values.
52533
52534 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52535
52536         * lib/human.c (human_readable_inexact): Allow an input block
52537         size that is not a multiple of the output block size, and vice versa.
52538         Reported by Piergiorgio Sartor.
52539
52540 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52541
52542         * lib/getdate.y (get_date): Apply relative times after time
52543         zone indicator, not before.  Reported by Todd A. Jacobs.
52544
52545 2000-06-13  Jim Meyering  <meyering@lucent.com>
52546
52547         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
52548
52549         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
52550
52551 2000-06-12  Paul Eggert  <eggert@twinsun.com>
52552
52553         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
52554
52555 2000-06-12  Jim Meyering  <meyering@lucent.com>
52556
52557         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
52558         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
52559         optional argument.
52560         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
52561         the optional argument, `lib'.
52562
52563 2000-06-08  Jim Meyering  <meyering@lucent.com>
52564
52565         * m4/largefile.m4: Remove file (now that it's part of autoconf).
52566
52567 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52568
52569         Rewrite largefile configuration so that we don't need to run
52570         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
52571         AC_CANONICAL_HOST in configure.in -- jmm]
52572
52573         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
52574         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
52575         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
52576         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
52577         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
52578         All uses changed.
52579         Instead of inspecting the output of getconf, try to compile the
52580         test program without and with the macro definition.
52581         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
52582         for getconf.  Instead, check for the needed flags by compiling
52583         test programs.
52584
52585 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52586
52587         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
52588
52589 2000-06-04  Jim Meyering  <meyering@lucent.com>
52590
52591         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
52592         SunOS 4.1.4 for which gid_t is an unsigned type.
52593
52594 2000-06-03  Jim Meyering  <meyering@lucent.com>
52595
52596         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
52597         now that autoconf requires that.
52598
52599         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
52600         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
52601         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
52602
52603 2000-06-03  Jim Meyering  <meyering@lucent.com>
52604
52605         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
52606
52607 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52608
52609         * m4/glibc21.m4: New file.
52610         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
52611
52612 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52613
52614         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
52615         newer, don't install charset.alias.
52616         * lib/config.charset: Change the Linux/glibc rules so they become empty
52617         on glibc-2.1 or newer.
52618
52619 2000-06-02  Jim Meyering  <meyering@lucent.com>
52620
52621         * lib/mountlist.c: Back out last change.  Instead, do this...
52622         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
52623         me_dummy member using the same `ignore'-testing code.
52624         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
52625         fs_type strings.
52626         From Mark D. Roth.
52627
52628 2000-05-29  Jim Meyering  <meyering@lucent.com>
52629
52630         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
52631         mounts with the `ignore' attribute.  Based on a patch from
52632         Mark D. Roth.
52633
52634 2000-05-28  Jim Meyering  <meyering@lucent.com>
52635
52636         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
52637         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52638         * m4/stat.m4: Likewise.
52639         * m4/lstat.m4: Likewise.
52640         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
52641
52642         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
52643         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
52644
52645 2000-05-26  Jim Meyering  <meyering@lucent.com>
52646
52647         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
52648
52649 2000-05-24  Jim Meyering  <meyering@lucent.com>
52650
52651         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
52652         autoconf requires that.
52653         * m4/lib-check.m4: Likewise.
52654         * m4/jm-macros.m4: Likewise.
52655         * m4/strftime.m4: Likewise.
52656
52657         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
52658         AC_CHECK_DECLS, now that autoconf requires that.
52659
52660 2000-05-22  Jim Meyering  <meyering@lucent.com>
52661
52662         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52663         * m4/lstat.m4: Likewise.
52664
52665 2000-05-22  Jim Meyering  <meyering@lucent.com>
52666
52667         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
52668
52669 2000-05-20  Jim Meyering  <meyering@lucent.com>
52670
52671         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
52672         (jm_PREREQ): Use it.
52673
52674 2000-05-18  Jim Meyering  <meyering@lucent.com>
52675
52676         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
52677         back, too, since it may have been modified by allocate_entry.
52678         (hash_delete): Rewrite to use neither the assignment operator
52679         nor the comma operator in an if-expression.
52680
52681 2000-05-15  Paul Eggert  <eggert@twinsun.com>
52682
52683         * lib/closeout.c:
52684         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
52685         Remove; no longer needed.
52686         "quotearg.h": Add include.
52687         (file_name): Do not bother to explicitly initialize to NULL; it's less
52688         efficient on some hosts.
52689         (close_stdout_status): Remove test as to whether stdout was already
52690         closed; it breaks for the case "echo x | sort >&-".
52691         Quote file name colons.
52692         Do not assume that _("write error") lacks format strings.
52693
52694 2000-05-15  Jim Meyering  <meyering@lucent.com>
52695
52696         * lib/version-etc.c (version_etc_copyright): Update the copyright
52697         string used in all --version output.
52698
52699 2000-05-14  Jim Meyering  <meyering@lucent.com>
52700
52701         * lib/closeout.c (close_stdout_set_file_name): New function.
52702         (close_stdout_status): Use new file-scoped global.
52703         Return right away if fstat says the stdout file descriptor is invalid.
52704         * lib/closeout.h (close_stdout_set_file_name): Declare.
52705
52706 2000-05-10  Jim Meyering  <meyering@lucent.com>
52707
52708         * lib/closeout.c [default_exit_status]: New file-scoped variable.
52709         (close_stdout_set_status): New function.
52710         * lib/closeout.h (close_stdout_set_status): Declare.
52711
52712 2000-05-09  Jim Meyering  <meyering@lucent.com>
52713
52714         * m4/gettext.m4: Rename this...
52715         * m4/libintl.m4: ...to this.
52716
52717 2000-05-08  Jim Meyering  <meyering@lucent.com>
52718
52719         * lib/long-options.c: Don't include closeout.h.
52720         (parse_long_options): Don't call close_stdout for --version.
52721
52722 2000-05-06  Paul Eggert  <eggert@twinsun.com>
52723
52724         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
52725         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
52726         2.1.3 bug.  This avoids a clash when files like regex.c define
52727         _GNU_SOURCE.
52728
52729 2000-05-06  Jim Meyering  <meyering@lucent.com>
52730
52731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
52732         (AC_REPLACE_FUNCS): Add strnlen.
52733
52734         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
52735         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
52736
52737         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
52738         AC_SEARCH_LIBS call for nanosleep.
52739         (LIB_NANOSLEEP): Set and AC_SUBST.
52740
52741 2000-05-06  Jim Meyering  <meyering@lucent.com>
52742
52743         * lib/strnlen.c: Undefine __strnlen and strnlen.
52744         [!weak_alias]: Define __strnlen to strnlen.
52745
52746         * lib/atexit.c: New file, from libiberty.
52747
52748 2000-05-06  Jim Meyering  <meyering@lucent.com>
52749
52750         * lib/closeout.c (close_stdout_status): Also check for errors on the
52751         stderr stream.
52752
52753 2000-05-05  Jim Meyering  <meyering@lucent.com>
52754
52755         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
52756         AC_SEARCH_LIBS call for clock_gettime.
52757         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
52758
52759         * m4/search-libs.m4: Update from autoconf.
52760
52761         su doesn't work on Solaris 2.6.
52762         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
52763         <shadow.h>.  Reported by Dragos Harabor.
52764
52765 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
52766
52767         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
52768         memcpy instead of xmalloc, xrealloc, path_concat.
52769         (locale_charset): Treat empty environment variables as absent.
52770         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
52771
52772 2000-05-04  Jim Meyering  <meyering@lucent.com>
52773
52774         * lib/getopt.c: Update from glibc.
52775         * lib/obstack.c: Likewise.
52776         * lib/obstack.h: Likewise.
52777         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
52778         file
52779
52780         * lib/regex.h: Likewise.
52781         * lib/strndup.c: Likewise.
52782         * lib/strnlen.c: New file, from glibc.
52783
52784 2000-05-03  Jim Meyering  <meyering@lucent.com>
52785
52786         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
52787
52788 2000-05-02  Paul Eggert  <eggert@twinsun.com>
52789
52790         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
52791         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
52792         compile-time test, rather than inspecting host and OS, to
52793         decide whether to define _LARGEFILE_SOURCE.
52794
52795 2000-05-01  Jim Meyering  <meyering@lucent.com>
52796
52797         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
52798
52799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
52800         Based on a patch from Bruno Haible.
52801
52802 2000-05-01  Jim Meyering  <meyering@lucent.com>
52803
52804         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
52805
52806 2000-04-29  Jim Meyering  <meyering@lucent.com>
52807
52808         * lib/path-concat.c: Declare strdup only if it's not defined.
52809         * lib/canon-host.c: Likewise.
52810
52811 2000-04-28  Jim Meyering  <meyering@lucent.com>
52812
52813         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
52814         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
52815         is included first, then limits.h is included by locale.h by libintl.h.
52816         From John David Anglin.
52817
52818 2000-04-25  Jim Meyering  <meyering@lucent.com>
52819
52820         * lib/makepath.c (S_IRWXUGO): Define.
52821         (make_path): Always perform explicit chmod if MODE specifies any
52822         of the `special' permission bits.  Prompted by a bug report against
52823         install from Mate Wierdl and Joost van Baal.
52824
52825 2000-04-18  Jim Meyering  <meyering@lucent.com>
52826
52827         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
52828         (jm_PREREQ): Use it.
52829
52830 2000-04-18  Jim Meyering  <meyering@lucent.com>
52831
52832         * lib/README: New file.
52833
52834         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
52835         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
52836
52837 2000-04-17  Jim Meyering  <meyering@lucent.com>
52838
52839         Get it right :-)
52840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
52841         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
52842         Suggestion from Akim Demaille.
52843
52844 2000-04-17  Jim Meyering  <meyering@lucent.com>
52845
52846         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
52847         the definition of it to rpl_strftime also defined-away the system's
52848         declaration.
52849
52850 2000-04-15  Jim Meyering  <meyering@lucent.com>
52851
52852         Use `C' to denote so-called `contiguous' files, the same way
52853         that tar does.
52854         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
52855         (ftypelet): Use S_ISCTG.
52856         From Michael Deutschmann.
52857
52858 2000-04-14  Jim Meyering  <meyering@lucent.com>
52859
52860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
52861         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
52862         clobbered.
52863
52864 2000-04-14  Jim Meyering  <meyering@lucent.com>
52865
52866         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
52867
52868 2000-04-13  Jim Meyering  <meyering@lucent.com>
52869
52870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
52871         AH_VERBATIM to insert required #ifndef into config.h.in.
52872         Suggestion from Akim Demaille.
52873
52874 2000-04-12  Jim Meyering  <meyering@lucent.com>
52875
52876         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
52877         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
52878         Christian Krackowizer.
52879
52880         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
52881         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
52882         (AC_SYS_LARGEFILE): Require.
52883         (AM_C_PROTOTYPES): Require.
52884
52885 2000-04-08  Jim Meyering  <meyering@lucent.com>
52886
52887         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
52888         names don't conflict.  Reported by Eli Zaretskii.
52889
52890 2000-04-07  Jim Meyering  <meyering@lucent.com>
52891
52892         * lib/putenv.c: Move inclusion of errno.h so it follows that of
52893         sys/types.h, to work around system header problems on AIX 3.2.5.
52894         From Bruno Haible.
52895
52896 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
52897
52898         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
52899         bug.  Deal with the different error behavior of Irix iconv.
52900
52901 2000-04-05  Paul Eggert  <eggert@twinsun.com>
52902
52903         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
52904         IRIX if the installer said otherwise.
52905
52906 2000-04-05  Jim Meyering  <meyering@lucent.com>
52907
52908         Portability tweaks required for ultrix4.3.
52909         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
52910         (jm_CHECK_DECLS): Add getutent to the list of functions.
52911         (_jm_DECL_HEADERS): Add utmpx.h.
52912         From John David Anglin.
52913
52914         * m4/strftime.m4: Back out the 2000-04-02 change.
52915         Instead of that change, simply undefine putenv in the test program.
52916
52917 2000-04-05  Jim Meyering  <meyering@lucent.com>
52918
52919         Portability tweaks required for ultrix4.3.
52920         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
52921         getutent.
52922         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
52923         * lib/canon-host.c: Declare strdup.
52924         * lib/path-concat.c: Likewise.
52925         From John David Anglin.
52926
52927 2000-04-04  Jim Meyering  <meyering@lucent.com>
52928
52929         Be more DOS 8.3-friendly.
52930         * lib/ref-add.sin: Renamed from ref-add.sed.in.
52931         * lib/ref-del.sin: Renamed from ref-del.sed.in.
52932         * lib/Makefile.am: Reflect renaming.
52933         Reported by Eli Zaretskii.
52934
52935         Use a temporary file name that won't clash with `charset.alias'
52936         in the DOS 8.3 name space.
52937         * lib/Makefile.am (charset_tmp): Define.
52938         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
52939         (uninstall-local): Likewise.
52940         Reported by Eli Zaretskii.
52941
52942 2000-04-03  Jim Meyering  <meyering@lucent.com>
52943
52944         * m4/gettext.m4: Fix typo in comment.
52945
52946         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
52947         textutils/configure.in).  Suggestion from Paul Eggert.
52948         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
52949
52950 2000-04-02  Paul Eggert  <eggert@twinsun.com>
52951
52952         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
52953         variable in the shell rather than using putenv, which isn't
52954         portable.  This avoids the configure-time inter-test dependency
52955         on the potentially-renamed putenv function.
52956
52957 2000-03-30  Paul Eggert  <eggert@twinsun.com>
52958
52959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
52960         before checking struct stat.st_blksize, so that
52961         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
52962
52963 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52964
52965         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
52966         since strftime.c uses HAVE_STRFTIME to decide whether to use
52967         the underlying strftime.
52968
52969 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52970
52971         * lib/time/strftime.c (my_strftime): Make sure we call the system
52972         strftime, not ourselves, when invoking the underlying strftime.
52973
52974 2000-03-24  Jim Meyering  <meyering@lucent.com>
52975
52976         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
52977         (charset_alias): Define.
52978         (install-exec-local): Factor out common code.
52979         (uninstall-local): Split lines longer than 80.
52980         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
52981         (SUFFIXES): Define.
52982         (.sed.in.sed): New rule.  Don't redirect directly to $@.
52983         (CLEANFILES): Add ref-add.sed and ref-del.sed.
52984
52985 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
52986
52987         * lib/config.charset: Output a line containing "Packages using this
52988         file".
52989         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
52990         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
52991         ref-del.sed): New rules.
52992
52993 2000-03-17  Jim Meyering  <meyering@lucent.com>
52994
52995         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
52996         Otherwise, include <strings.h>
52997
52998 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
52999
53000         * lib/unicodeio.c (utf8_wctomb): New function.
53001         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
53002         format instead of in UCS-4 with platform dependent endianness.
53003
53004 2000-03-10  Jim Meyering  <meyering@lucent.com>
53005
53006         * m4/lib-check.m4: Look for getspnam in -lgen, too.
53007         From Marco Franzen.
53008
53009 2000-03-07  Paul Eggert  <eggert@twinsun.com>
53010
53011         * lib/savedir.c (savedir): Work even if directory size is
53012         negative; this can happen with some screwy NFS configurations.
53013
53014 2000-03-06  Jim Meyering  <meyering@lucent.com>
53015
53016         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
53017         if it's NULL (because we ran out of memory).  From Bruno Haible.
53018
53019 2000-03-05  Jim Meyering  <meyering@lucent.com>
53020
53021         * lib/localcharset.c ("path-concat.h"): Include.
53022         (get_charset_aliases): Use path_concat instead of ANSI string
53023         concatenation.
53024
53025         * lib/unicodeio.h (PARAMS): Define.
53026         Use it to guard prototype.
53027
53028 2000-03-04  Jim Meyering  <meyering@lucent.com>
53029
53030         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
53031         for lib/localcharset.c.
53032
53033 2000-03-04  Jim Meyering  <meyering@lucent.com>
53034
53035         * lib/Makefile.am (install-exec-local): Create $(libdir) before
53036         installing into it.
53037         (uninstall-local): Uncomment this rule so `make distcheck' works
53038         once again.
53039
53040         * lib/unicodeio.c (<errno.h>): Include it.
53041         (errno): Declare if not defined.
53042
53043         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
53044
53045         * lib/config.charset: New version, incorporating remarks from a linux
53046         i18n mailing list.  From Bruno Haible.
53047
53048 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
53049
53050         * m4/codeset.m4: New file.
53051         * m4/iconv.m4: New file.
53052         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
53053
53054 2000-03-03  Jim Meyering  <meyering@lucent.com>
53055
53056         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
53057
53058 2000-03-02  Jim Meyering  <meyering@lucent.com>
53059
53060         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
53061         the messages come out on separate lines.
53062
53063         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
53064         rather than jm_CHECK_DECLARATIONS.
53065         * m4/decl.m4: Remove now-unused file.
53066
53067         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
53068         geteuid.
53069
53070 2000-03-02  Jim Meyering  <meyering@lucent.com>
53071
53072         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
53073
53074 2000-03-01  Jim Meyering  <meyering@lucent.com>
53075
53076         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
53077         * lib/unicodeio.c: Likewise.
53078
53079 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
53080
53081         * lib/config.charset: New file.
53082         * lib/localcharset.c: New file.
53083         * lib/unicodeio.h, lib/unicodeio.c: New files.
53084         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
53085         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
53086         (noinst_HEADERS): Add unicodeio.h.
53087         (all-local, install-exec-local, charset.alias): New targets.
53088
53089 2000-02-28  Paul Eggert  <eggert@twinsun.com>
53090
53091         * lib/quotearg.c (ALERT_CHAR): New macro.
53092         (quotearg_buffer_restyled): Use it.
53093
53094 2000-02-27  Jim Meyering  <meyering@lucent.com>
53095
53096         * m4/check-decl.m4: Add getenv to the list.
53097
53098 2000-02-27  Jim Meyering  <meyering@lucent.com>
53099
53100         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
53101         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
53102
53103         * lib/backupfile.c: Guard inclusion of stdlib.h with
53104         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
53105         Declare malloc if needed.
53106
53107         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
53108         `#ifndef HAVE_DECL..'
53109         now that autoconf always defines the HAVE_DECL_ symbols.
53110         * lib/human.c: Likewise.
53111         * lib/same.c: Likewise.
53112         * lib/strtoumax.c: Likewise.
53113
53114         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
53115         declaration check was not run.
53116         * lib/hash.c: Likewise.
53117         * lib/human.c: Likewise.
53118         * lib/same.c: Likewise.
53119         * lib/strtoumax.c: Likewise.
53120
53121         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
53122         `.', then first look up the entire `.'-containing string as a login
53123         name.
53124
53125 2000-02-23  Jim Meyering  <meyering@lucent.com>
53126
53127         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
53128         in place of my hack.
53129
53130 2000-02-18  Paul Eggert  <eggert@twinsun.com>
53131
53132         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
53133         (textint): New typedef.
53134         (parser_control): Member year changed from int to textint.
53135         All uses changed.
53136         (YYSTYPE): Removed; replaced by %union with int and textint members.
53137         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
53138         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
53139         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
53140         (tSNUMBER, tUNUMBER): Now of type <textintval>.
53141         (date, number, to_year): Use width of number in digits, not its value,
53142         to determine whether it's a 2-digit year, or a 2-digit time.
53143         (yylex): Store number of digits of numeric tokens.
53144         Reported by John Kendall.
53145
53146         (parser_control): Changed from struct parser_control to typedef (for
53147         consistency).  All uses changed.
53148
53149         (tID): Removed; not used.
53150         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
53151
53152 2000-02-14  Paul Eggert  <eggert@twinsun.com>
53153
53154         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
53155         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
53156
53157 2000-02-12  Jim Meyering  <meyering@lucent.com>
53158
53159         * lib/userspec.c (ISDIGIT): Define it.
53160         (isdigit): Remove definition.
53161         (is_number): Use ISDIGIT, not isdigit.
53162         <libintl.h>: Include.
53163         (_ and N_): Define.
53164         (parse_user_spec): Mark translatable strings.
53165
53166 2000-02-10  Jim Meyering  <meyering@lucent.com>
53167
53168         With these changes, nanosleep.[ch] are finally enough like the other
53169         lib/* replacement files to compile on a few more losing systems.
53170
53171         * lib/nanosleep.h: Don't include config.h.
53172         Remove prototype from declaration of nanosleep.
53173         (PARAMS): Remove now-unneeded definition.
53174         * lib/nanosleep.c: #undef nanosleep.
53175         (rpl_nanosleep): Rename from nanosleep.
53176
53177 2000-02-10  Jim Meyering  <meyering@lucent.com>
53178
53179         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
53180         gnu_nanosleep to rpl_nanosleep.
53181
53182 2000-02-09  Jim Meyering  <meyering@lucent.com>
53183
53184         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
53185         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
53186
53187 2000-02-08  Akim Demaille  <akim@epita.fr>
53188
53189         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
53190         `[' and `]' and remove uses of `changequote'.
53191         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
53192         (AC_SYS_LARGEFILE): Likewise.
53193         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53194         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
53195         of changequote.
53196         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
53197         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
53198         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
53199         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
53200
53201 2000-02-05  Jim Meyering  <meyering@lucent.com>
53202
53203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
53204         Remove explicit use of AC_HEADER_TIME.  It is required by
53205         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
53206         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
53207         in autoconf whereby the expansion of the latter ended up preceding
53208         the expansion of its prerequisite, AC_HEADER_TIME.
53209         Reported by Volker Borchert.
53210
53211 2000-02-03  Jim Meyering  <meyering@lucent.com>
53212
53213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
53214
53215 2000-02-03  Jim Meyering  <meyering@lucent.com>
53216
53217         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
53218         rather than with `#if HAVE_UTMPNAME'.
53219
53220 2000-02-02  Jim Meyering  <meyering@lucent.com>
53221
53222         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
53223         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
53224         Reported by Eli Zaretskii.
53225
53226 2000-02-01  Jim Meyering  <meyering@lucent.com>
53227
53228         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
53229
53230 2000-01-31  Jim Meyering  <meyering@lucent.com>
53231
53232         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
53233         functions.  Add the time.h and sys/time.h headers along with the
53234         AC_REQUIRE'ment of AC_HEADER_TIME.
53235
53236 2000-01-31  Jim Meyering  <meyering@lucent.com>
53237
53238         * lib/nanosleep.h (nanosleep): Guard declaration with
53239         `#if ! HAVE_DECL_NANOSLEEP'.
53240         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
53241         the declaration in that vendor's sys/timers.h.
53242         Reported by Christian Krackowizer.
53243
53244         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
53245         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
53246         (ISPRINT): Likewise.
53247         Reported by Tom Tromey.
53248
53249 2000-01-30  Jim Meyering  <meyering@lucent.com>
53250
53251         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
53252
53253         * m4/prereq.m4 (utmp_includes): Define.
53254         Check for ut_user and ut_name members in both struct utmpx
53255         and struct utmp.
53256
53257 2000-01-30  Jim Meyering  <meyering@lucent.com>
53258
53259         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
53260         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
53261         header files where only utmpx.ut_user is declared.
53262
53263         * lib/readutmp.h (UT_USER): Define.
53264
53265 2000-01-29  Jim Meyering  <meyering@lucent.com>
53266
53267         * m4/lib-check.m4: New file containing library-related checks from
53268         fileutils and sh-utils (textutils had none).
53269
53270 2000-01-28  Jim Meyering  <meyering@lucent.com>
53271
53272         * m4/perl.m4: Change format of warning message to look more like that
53273         from the missing script.  Suggestion from François Pinard.
53274
53275 2000-01-25  Jim Meyering  <meyering@lucent.com>
53276
53277         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
53278         well as time.h in the compile check.
53279         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
53280         Fix typo in cross-compiling case: s/yes/no/.
53281
53282 2000-01-23  Jim Meyering  <meyering@lucent.com>
53283
53284         * m4/jm-macros.m4: Move df-related tests here from
53285         fileutils/configure.in
53286
53287         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
53288         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
53289
53290         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
53291         s/space/ac_fsusage_space/.
53292         (jm_FILE_SYSTEM_USAGE): Take two parameters.
53293
53294         * m4/ftruncate.m4: New file (derived from part of
53295         fileutils/configure.in).
53296         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
53297         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
53298
53299         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
53300         AC_SUBST these here, rather than just in sh-util/configure.in, so
53301         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
53302         all the same.
53303         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
53304         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
53305         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
53306         (AC_SUBST(POW_LIBM)): Likewise.
53307         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
53308
53309 2000-01-23  Jim Meyering  <meyering@lucent.com>
53310
53311         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
53312         obstack.c.
53313
53314 2000-01-22  Jim Meyering  <meyering@lucent.com>
53315
53316         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
53317
53318         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
53319
53320         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
53321         configure.in
53322         (AC_CHECK_HEADERS): Likewise for sh-utils.
53323         (AC_CHECK_HEADERS): Likewise for textutils.
53324         Merge the three lists of headers.
53325
53326         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
53327         from fileutils' configure.in.
53328
53329         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
53330         code. Moved tests into their own function (_jm_DECL_HEADERS) in
53331         check-decl.m4.
53332
53333         * m4/check-decl.m4: Use #if rather than #ifdef.
53334         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
53335         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
53336         (_jm_DECL_HEADERS): Define new function.
53337         (jm_CHECK_DECLARATIONS): Require it.
53338
53339 2000-01-22  Jim Meyering  <meyering@lucent.com>
53340
53341         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
53342         [! HAVE_DECL_STRTOULL]: Declare strtoull.
53343         Required for some AIX systems.  Reported by Christian Krackowizer.
53344         [TESTING] (main): New function.
53345
53346         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
53347         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
53348         letters.
53349
53350         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
53351         iswprint.
53352
53353         * lib/strverscmp.c (ISDIGIT): Define.
53354         (strverscmp): Use ISDIGIT, not isdigit.
53355
53356 2000-01-19  Jim Meyering  <meyering@lucent.com>
53357
53358         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
53359         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
53360         defines `struct timespec' in <sys/time.h>
53361
53362         * m4/c-bs-a.m4: Remove uses of changequote altogether.
53363         Thanks to Akim for explaining.
53364
53365 2000-01-17  Paul Eggert  <eggert@twinsun.com>
53366
53367         * lib/nanosleep.c (nanosleep):
53368         Don't use SA_INTERRUPT to decide whether to call sigaction, as
53369         POSIX.1 doesn't require SA_INTERRUPT and some systems
53370         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
53371         it's been part of POSIX.1 since day 1 (in 1988).
53372
53373 2000-01-17  Jim Meyering  <meyering@lucent.com>
53374
53375         * lib/interlock: Remove unused file.  Reported by François Pinard.
53376
53377 2000-01-16  Paul Eggert  <eggert@twinsun.com>
53378
53379         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
53380         alert, backslash, formfeed, and vertical tab unnecessarily in
53381         shell quoting style.
53382
53383 2000-01-16  Jim Meyering  <meyering@lucent.com>
53384
53385         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
53386         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
53387         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
53388         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
53389
53390 2000-01-16  Jim Meyering  <meyering@lucent.com>
53391
53392         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
53393         because the latter didn't work.
53394
53395 2000-01-15  Jim Meyering  <meyering@lucent.com>
53396
53397         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
53398         (AC_REPLACE_FUNCS): Add memcpy and memset.
53399         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
53400         Add strpbrk.
53401         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
53402
53403 2000-01-12  Jim Meyering  <meyering@lucent.com>
53404
53405         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
53406         (jm_PREREQ): Use it.
53407         (jm_PREREQ_READUTMP): New macro.
53408         (jm_PREREQ): Use it.
53409
53410 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53411
53412         Quote multibyte characters correctly.
53413         * m4/c-bs-a.m4: New file.
53414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
53415         (jm_PREREQ): Use it.
53416
53417 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53418
53419         * m4/uintmax_t.m4: Port to autoconf 2.13.
53420
53421 2000-01-08  Jim Meyering  <meyering@ascend.com>
53422
53423         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
53424         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
53425
53426 2000-01-04  Jim Meyering  <meyering@ascend.com>
53427
53428         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
53429         jm_STRUCT_DIRENT_D_TYPE.
53430         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
53431         jm_STRUCT_DIRENT_D_INO.
53432         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
53433         jm_STRUCT_UTIMBUF.
53434         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
53435         renamings.
53436         * m4/utime.m4: Likewise.
53437
53438         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
53439         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
53440
53441 2000-01-03  Paul Eggert  <eggert@twinsun.com>
53442
53443         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
53444         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
53445
53446 2000-01-02  Jim Meyering  <meyering@ascend.com>
53447
53448         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
53449         remember if this is necessary.
53450
53451 1999-12-26  Jim Meyering  <meyering@ascend.com>
53452
53453         * m4/jm-macros.m4: Use it here.
53454         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
53455
53456 1999-12-23  Jim Meyering  <meyering@ascend.com>
53457
53458         * m4/jm-macros.m4: Check for clock_gettime (moved from
53459         fileutils/configure.in)
53460         Check for gettimeofday.
53461
53462 1999-12-20  Jim Meyering  <meyering@ascend.com>
53463
53464         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
53465         autoconf-2.14a-1999-12-20.
53466
53467 1999-12-19  Jim Meyering  <meyering@ascend.com>
53468
53469         * m4/lstat-slash.m4: New file.
53470         * m4/jm-macros.m4: Use the new macro:
53471         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53472
53473 1999-12-07  Jim Meyering  <meyering@ascend.com>
53474
53475         * m4/perl.m4: Require that File::Compare be available, too.
53476         Too many systems seem to lack it.
53477
53478         * m4/strftime.m4: Add checks for most of the cpp macros tested in
53479         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
53480
53481 1999-11-18  Paul Eggert  <eggert@twinsun.com>
53482
53483         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
53484         problem with the QNX 4.25 shell, which doesn't propagate exit
53485         status of failed commands inside shell assignments.
53486
53487 1999-11-17  Jim Meyering  <meyering@ascend.com>
53488
53489         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
53490
53491 1999-11-07  Jim Meyering  <meyering@ascend.com>
53492
53493         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
53494
53495 1999-11-06  Jim Meyering  <meyering@ascend.com>
53496
53497         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
53498         * m4/jm-macros.m4 (jm_MACROS): Use it here.
53499
53500 1999-11-05  Jim Meyering  <meyering@ascend.com>
53501
53502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
53503         configure.in of textutils, fileutils, and sh-utils into this one
53504         (shared between those packages) file.
53505         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
53506         AC_STRUCT_ST_BLKSIZE.
53507
53508 1999-11-03  Jim Meyering  <meyering@ascend.com>
53509
53510         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
53511         of AC_CHECK_TYPE checks includes unistd.h.
53512         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
53513         Suggestion from Akim Demaille.
53514
53515 1999-10-30  Jim Meyering  <meyering@ascend.com>
53516
53517         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
53518         m4-quoted string.
53519         * m4/ls-mntd-fs.m4: Likewise.
53520         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
53521         * m4/jm-winsz1.m4: Likewise.
53522
53523         * m4/const.m4: Remove file, since the fix made it into the experimental
53524         version of autoconf.
53525         * m4/mktime.m4: Likewise.
53526
53527         * m4/check-type.m4: Remove file, now that the latest version of
53528         AC_CHECK_TYPE takes a third arg to specify additional #includes.
53529
53530         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
53531         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
53532         AC_CHECK_TYPE.
53533
53534 1999-10-04  Jim Meyering  <meyering@ascend.com>
53535
53536         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
53537
53538 1999-09-22  Paul Eggert  <eggert@twinsun.com>
53539
53540         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
53541         2.95.1 bug with HP-UX 10.20.
53542
53543 1999-09-17  Jim Meyering  <meyering@ascend.com>
53544
53545         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
53546         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
53547         due to missing strdup (against sh-utils-2.0).
53548
53549 1999-08-29  Jim Meyering  <meyering@ascend.com>
53550
53551         * m4/jm-macros.m4: Require jm_BISON.
53552         * m4/bison.m4: New file.
53553
53554 1999-08-17  Paul Eggert  <eggert@twinsun.com>
53555
53556         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
53557         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
53558
53559 1999-08-05  Jim Meyering  <meyering@ascend.com>
53560
53561         * m4/getline.m4: Rename test file from conftestdata to conftest.data
53562         to avoid conflicts with `conftest' on 8+3 filesystems.
53563         Suggestion from Eli Zaretskii.
53564
53565 1999-08-04  Jim Meyering  <meyering@ascend.com>
53566
53567         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
53568         fileutils and sh-utils (textutils's getline test was inadequate).
53569         (AM_FUNC_GETLINE): Run this test.
53570         (AC_CHECK_FUNCS): Check for getdelim.
53571         Reported by Bob Proulx.
53572
53573 1999-08-02  Jim Meyering  <meyering@ascend.com>
53574
53575         * m4/jm-macros.m4: Add a comment.
53576
53577 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53578
53579         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
53580         <inttypes.h> defines strtoumax as a macro (and not as a
53581         function).
53582
53583 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53584
53585         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
53586         that we can shift, multiply and divide unsigned long long
53587         values; Ultrix cc can't do it.
53588
53589 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53590
53591         * m4/mktime.m4: New file, which is a preview of what should appear
53592         in the next public autoconf release.
53593
53594 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53595
53596         * m4/lfs.m4: Remove this file.
53597         * m4/largefile.m4: New file.  It contains the old contents of
53598         lfs.m4, except that all names with prefix AC_LFS have been
53599         changed to use the prefix AC_SYS_LARGEFILE instead, to be
53600         compatible with future autoconf versions.  Also, some minor m4
53601         quoting problems have been fixed.
53602
53603 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53604
53605         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
53606         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
53607         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
53608         and simplify the shell code.
53609
53610 1999-08-01  Jim Meyering  <meyering@ascend.com>
53611
53612         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
53613         m4.
53614
53615 1999-07-20  Jim Meyering  <meyering@ascend.com>
53616
53617         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
53618
53619 1999-07-15  Jim Meyering  <meyering@ascend.com>
53620
53621         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
53622
53623 1999-05-22  Jim Meyering  <meyering@ascend.com>
53624
53625         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
53626
53627 1999-05-20  Jim Meyering  <meyering@ascend.com>
53628
53629         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
53630         Add a colon after each `then' in case $4 is empty.
53631
53632 1999-05-16  Jim Meyering  <meyering@ascend.com>
53633
53634         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
53635
53636 1999-05-10  Jim Meyering  <meyering@ascend.com>
53637
53638         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
53639
53640         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
53641         AC_FUNC_MKTIME.
53642
53643 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
53644
53645         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
53646
53647 1999-05-04  Paul Eggert  <eggert@twinsun.com>
53648
53649         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
53650         not CPPFLAGS, so that linking works correctly in IRIX.
53651
53652 1999-04-30  Paul Eggert  <eggert@twinsun.com>
53653
53654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
53655
53656 1999-04-20  Paul Eggert  <eggert@twinsun.com>
53657
53658         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
53659         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
53660         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
53661         jm_AC_TYPE_UNSIGNED_LONG_LONG.
53662         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
53663
53664         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
53665
53666 1999-04-20  Jim Meyering  <meyering@ascend.com>
53667
53668         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
53669         AC_REPLACE xstroull if necessary.  From Paul Eggert.
53670         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
53671
53672 1999-04-18  Jim Meyering  <meyering@ascend.com>
53673
53674         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
53675         * m4/jm-macros.m4: Use it.
53676
53677 1999-04-06  Jim Meyering  <meyering@ascend.com>
53678
53679         * m4/strftime.m4: Remove test for %f.
53680
53681 1999-03-29  Jim Meyering  <meyering@ascend.com>
53682
53683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
53684         superset of the AC_TYPE_* checks in the textutils, fileutils,
53685         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
53686         AC_TYPE_PID_T.
53687
53688 1999-03-28  Jim Meyering  <meyering@ascend.com>
53689
53690         * m4/jm-macros.m4: Define GNU_PACKAGE here.
53691         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
53692         replaced e.g., in the *.sh files of the sh-utils.
53693
53694 1999-03-20  Jim Meyering  <meyering@ascend.com>
53695
53696         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
53697         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
53698         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
53699
53700 1999-03-19  Jim Meyering  <meyering@ascend.com>
53701
53702         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
53703
53704 1999-03-12  Jim Meyering  <meyering@ascend.com>
53705
53706         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
53707
53708 1999-03-07  Jim Meyering  <meyering@ascend.com>
53709
53710         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
53711         declared.
53712
53713 1999-02-17  Jim Meyering  <meyering@ascend.com>
53714
53715         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
53716         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
53717
53718 1999-02-07  Jim Meyering  <meyering@ascend.com>
53719
53720         * m4/group-member.m4: New file -- extracted from sh-utils'
53721         configure.in.
53722
53723         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
53724         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
53725
53726 1999-02-06  Jim Meyering  <meyering@ascend.com>
53727
53728         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
53729         * m4/fnmatch.m4: Likewise.
53730         * m4/getgroups.m4: Likewise.
53731         * m4/lstat.m4: Likewise.
53732         * m4/malloc.m4: Likewise.
53733         * m4/putenv.m4: Likewise.
53734         * m4/realloc.m4: Likewise.
53735         * m4/regex.m4: Likewise.
53736         * m4/stat.m4: Likewise.
53737         * m4/strftime.m4: Likewise.
53738         Suggestion from Alain Magloire.
53739
53740         * m4/chown.m4: Use `.$ac_objext', not `.o'.
53741         * m4/fnmatch.m4: Likewise.
53742         * m4/getgroups.m4: Likewise.
53743         * m4/getline.m4: Likewise.
53744         * m4/lstat.m4: Likewise.
53745         * m4/malloc.m4: Likewise.
53746         * m4/memcmp.m4: Likewise.
53747         * m4/putenv.m4: Likewise.
53748         * m4/realloc.m4: Likewise.
53749         * m4/regex.m4: Likewise.
53750         * m4/stat.m4: Likewise.
53751         * m4/strftime.m4: Likewise.
53752         Suggestion from Alain Magloire.
53753
53754         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
53755         an argument.
53756
53757         * m4/regex.m4: Add a run-time Test for proper operation of
53758         re_compile_pattern.
53759
53760 1999-01-31  Jim Meyering  <meyering@ascend.com>
53761
53762         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
53763
53764 1999-01-30  Jim Meyering  <meyering@ascend.com>
53765
53766         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
53767
53768         * m4/jm-mktime.m4: Make this a wrapper around the official
53769         AM_FUNC_MKTIME rather than my private copy, now that the official one
53770         is up to date.
53771         * m4/mktime.m4: Remove file.
53772
53773         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
53774         * m4/uptime.m4: Likewise.
53775         * m4/uintmax_t.m4: Likewise.
53776
53777 1999-01-28  Jim Meyering  <meyering@ascend.com>
53778
53779         * m4/jm-macros.m4: Use jm_AFS.
53780         * m4/afs.m4: New file (from fileutils' configure.in).
53781
53782         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
53783         * m4/chown.m4: Likewise.
53784         * m4/d-ino.m4: Likewise.
53785         * m4/d-type.m4: Likewise.
53786         * m4/fnmatch.m4: Likewise.
53787         * m4/getgroups.m4: Likewise.
53788         * m4/gettext.m4: Likewise.
53789         * m4/jm-mktime.m4: Likewise.
53790         * m4/jm-winsz2.m4: Likewise.
53791         * m4/lcmessage.m4: Likewise.
53792         * m4/ls-mntd-fs.m4: Likewise.
53793         * m4/malloc.m4: Likewise.
53794         * m4/memcmp.m4: Likewise.
53795         * m4/putenv.m4: Likewise.
53796         * m4/realloc.m4: Likewise.
53797         * m4/st_mtim.m4: Likewise.
53798         * m4/strftime.m4: Likewise.
53799
53800 1999-01-16  Jim Meyering  <meyering@ascend.com>
53801
53802         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
53803         (ARGMATCH_DIE_DECL): Define.
53804
53805 1999-01-12  Jim Meyering  <meyering@ascend.com>
53806
53807         * m4/Makefile.am.in: Rewrite to avoid using fmt.
53808         Reported by Lars Hecking.
53809
53810 1999-01-10  Jim Meyering  <meyering@ascend.com>
53811
53812         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
53813         gross kludge.
53814         * m4/inttypes_h.m4: Likewise.
53815         * m4/lstat.m4: Likewise.
53816         * m4/malloc.m4: Likewise.
53817         * m4/readdir.m4: Likewise.
53818         * m4/realloc.m4: Likewise.
53819         * m4/st_dm_mode.m4: Likewise.
53820         * m4/stat.m4: Likewise.
53821         * m4/utimbuf.m4: Likewise.
53822         * m4/utimes.m4: Likewise.
53823
53824         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
53825         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
53826         comments in config.h.in are meaningful.
53827
53828         * m4/jm-macros.m4: Require autoconf-2.13 here.
53829
53830         * m4/regex.m4: By default, don't use the included regex.c on systems
53831         with glibc 2.  Suggestion from Uli Drepper.
53832
53833 1999-01-02  Jim Meyering  <meyering@ascend.com>
53834
53835         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
53836
53837 1998-12-18  Jim Meyering  <meyering@ascend.com>
53838
53839         * m4/Makefile.am.in (Makefile.am): Simplify rule.
53840         Based on a suggestion from Lars Hecking.
53841
53842 1998-11-16  Paul Eggert  <eggert@twinsun.com>
53843
53844         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
53845
53846 1998-11-16  Jim Meyering  <meyering@ascend.com>
53847
53848         * m4/lfs.m4: Double-quote the `uname...` expression.
53849
53850 1998-11-14  Jim Meyering  <meyering@ascend.com>
53851
53852         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
53853         * m4/stat.m4: Likewise.
53854
53855 1998-11-03  Jim Meyering  <meyering@ascend.com>
53856
53857         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
53858         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
53859
53860 1998-10-18  Jim Meyering  <meyering@ascend.com>
53861
53862         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
53863
53864 1998-10-17  Jim Meyering  <meyering@ascend.com>
53865
53866         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
53867         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
53868         calls for those previously hard-coded headers.  Instead, take a new
53869         parameter.
53870         (jm_CHECK_DECLARATIONS): Reflect interface change.
53871         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
53872         (jm_CHECK_DECL_LOCALTIME_R): New macro.
53873
53874         * m4/mktime.m4: Test for spring-forward gap before long-running test.
53875
53876 1998-10-14  Jim Meyering  <meyering@ascend.com>
53877
53878         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
53879         instead of "TZ=America/Vancouver".  From Paul Eggert.
53880
53881 1998-10-11  Jim Meyering  <meyering@ascend.com>
53882
53883         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
53884         This adds a test for a recently added compatibility fix for mktime.c.
53885         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
53886
53887 1998-09-27  Jim Meyering  <meyering@ascend.com>
53888
53889         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
53890
53891         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
53892         ../configure.in, including a change from Gordon Matzigkeit to allow
53893         cross-compiling for the Hurd.
53894
53895         * m4/glibc.m4: New file/macro to test for the GNU C Library
53896         versions 1 and 2.  From Gordon Matzigkeit.
53897         Indent.
53898
53899 1998-09-21  Jim Meyering  <meyering@ascend.com>
53900
53901         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
53902
53903 1998-08-18  Paul Eggert  <eggert@twinsun.com>
53904
53905         Port nanosecond-resolution times to UnixWare 2.1.2 and
53906         pedantic Solaris 2.6.
53907
53908         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
53909         AC_STRUCT_ST_MTIM.
53910         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
53911         Generate name of ns member, instead of just 1 or undef.
53912         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
53913
53914 1998-08-15  Jim Meyering  <meyering@ascend.com>
53915
53916         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
53917         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
53918         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
53919         instead of jm_TYPE_SSIZE_T.
53920
53921 1998-08-12  Jim Meyering  <meyering@ascend.com>
53922
53923         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
53924
53925 1998-08-02  Jim Meyering  <meyering@ascend.com>
53926
53927         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
53928         in acconfig.h manually.
53929
53930 1998-07-31  Paul Eggert  <eggert@twinsun.com>
53931
53932         * m4/st_mtim.m4: New file.
53933
53934 1998-07-28  Jim Meyering  <meyering@ascend.com>
53935
53936         * m4/utimes.m4: Undef stat.
53937
53938 1998-07-25  Jim Meyering  <meyering@ascend.com>
53939
53940         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
53941         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
53942
53943 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
53944
53945         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
53946         uid and gid actually remain unchanged.
53947
53948 1998-07-07  Jim Meyering  <meyering@ascend.com>
53949
53950         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
53951
53952 1998-07-04  Jim Meyering  <meyering@ascend.com>
53953
53954         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
53955         to prove that this macro can be used in packages without regex.c.
53956
53957 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
53958
53959         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
53960         is to be used.
53961
53962 1998-07-03  Jim Meyering  <meyering@ascend.com>
53963
53964         * m4/gettext.m4: Add -lintl if it's found to be necessary.
53965
53966         * m4/gettext.m4: New file -- from gettext-0.10.35.
53967         * m4/lcmessage.m4: Likewise.
53968         * m4/progtest.m4: Likewise.
53969
53970         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
53971         * m4/jm-macros.m4: Require the new macro.
53972
53973 1998-06-29  Jim Meyering  <meyering@ascend.com>
53974
53975         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
53976         for the definition of NGROUPS (used in a system header included
53977         by sys/mount.h).
53978
53979 1998-06-28  Jim Meyering  <meyering@ascend.com>
53980
53981         * m4/ls-mntd-fs.m4: New file.
53982         * m4/fstypename.m4: New file.
53983
53984         * m4/jm-macros.m4: Require the new macro.
53985         * m4/jm-glibc-io.m4: New file.
53986
53987 1998-05-19  Jim Meyering  <meyering@ascend.com>
53988
53989         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
53990         * m4/lchown.m4: New file.
53991
53992         * m4/Makefile.am.in: New file.
53993         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
53994
53995 1998-05-14  Jim Meyering  <meyering@ascend.com>
53996
53997         * m4/Makefile.am (EXTRA_DIST): Add them.
53998         * m4/jm-macros.m4: New file.
53999         * m4/utimbuf.m4: New file.
54000
54001 1998-05-12  Jim Meyering  <meyering@ascend.com>
54002
54003         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
54004
54005 1998-05-11  Jim Meyering  <meyering@ascend.com>
54006
54007         * m4/isc-posix.m4: New file.
54008
54009 1998-05-10  Jim Meyering  <meyering@ascend.com>
54010
54011         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
54012
54013 1998-05-09  Jim Meyering  <meyering@ascend.com>
54014
54015         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
54016         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
54017         with automake.
54018
54019         * m4/ssize_t.m4: New file.
54020         * m4/mktime.m4: Remove file -- the new automake has this now.
54021
54022 1998-04-26  Jim Meyering  <meyering@ascend.com>
54023
54024         * m4/assert.m4: New file.
54025         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
54026
54027 1998-04-05  Jim Meyering  <meyering@ascend.com>
54028
54029         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
54030         (jm_PREREQ): Use it here.
54031
54032 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
54033
54034         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
54035         in acconfig.h.
54036
54037 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
54038
54039         * m4/prereq.m4: New file.
54040         * m4/error.m4: New file.
54041         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
54042
54043 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
54044
54045         * m4/getline.m4: Don't set am_cv_func_working_getline before the
54046         cache-check for the same variable -- that defeated the purpose of
54047         the test; the test program was never run.  This was a problem only
54048         on systems with losing getline functions -- HP-UX 10.20 is one.
54049         Reported by Bjorn Helgaas.
54050
54051 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
54052
54053         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
54054
54055 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
54056
54057         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
54058
54059         * m4/const.m4: New file.  Use an initializer in this declaration
54060         typedef int charset[2]; const charset x;
54061         Reported by Bob Glickstein.
54062
54063 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
54064
54065         * m4/chown.m4: Fix reversed types on -1 args to chown.
54066         From Kaveh Ghazi.
54067
54068 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
54069
54070         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
54071         Add lseek and memchr.
54072
54073         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
54074         T.E.Dickey <dickey@clark.net> said that some older preprocessors
54075         have a 20-character limit on names.
54076
54077 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
54078
54079         * m4/inttypes_h.m4: New file.
54080         * m4/uintmax_t.m4: New file.
54081         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
54082
54083
54084         -----
54085
54086         Local Variables:
54087         coding: utf-8
54088         End:
54089
54090         Copyright (C) 1997-2009 Free Software Foundation, Inc.
54091
54092         Copying and distribution of this file, with or without
54093         modification, are permitted provided the copyright notice
54094         and this notice are preserved.