1 2008-04-11 Bruno Haible <bruno@clisp.org>
3 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
5 2008-04-11 Bruno Haible <bruno@clisp.org>
7 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
9 * modules/getaddrinfo-tests (Makefile.am): Define
10 test_getaddrinfo_LDADD.
12 2008-04-11 Bruno Haible <bruno@clisp.org>
14 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
15 (init): Fix syntax error.
16 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
19 2008-04-11 Bruno Haible <bruno@clisp.org>
21 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22 * modules/glob (Depends-on): Add stdbool.
24 2008-04-11 Bruno Haible <bruno@clisp.org>
26 * lib/trim.c: Include <string.h>.
28 2008-04-11 Eric Blake <ebb9@byu.net>
30 Avoid compile failure on OS/2.
31 * lib/regex_internal.h (internal_function): Disable optimization
32 on OS/2 (__EMX__), where it caused compiler error.
33 Reported by Elbert Pol.
35 2008-04-11 Bruno Haible <bruno@clisp.org>
37 Flush the standard error stream before aborting. Needed on netlabs.org
38 klibc (derived from emx+gcc libc) and mingw.
39 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40 * tests/test-array_list.c (ASSERT): Likewise.
41 * tests/test-array_oset.c (ASSERT): Likewise.
42 * tests/test-avltree_list.c (ASSERT): Likewise.
43 * tests/test-avltree_oset.c (ASSERT): Likewise.
44 * tests/test-avltreehash_list.c (ASSERT): Likewise.
45 * tests/test-binary-io.c (ASSERT): Likewise.
46 * tests/test-byteswap.c (ASSERT): Likewise.
47 * tests/test-c-ctype.c (ASSERT): Likewise.
48 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49 * tests/test-c-strcasestr.c (ASSERT): Likewise.
50 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51 * tests/test-c-strstr.c (ASSERT): Likewise.
52 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53 * tests/test-canonicalize.c (ASSERT): Likewise.
54 * tests/test-carray_list.c (ASSERT): Likewise.
55 * tests/test-ceilf1.c (ASSERT): Likewise.
56 * tests/test-ceilf2.c (ASSERT): Likewise.
57 * tests/test-ceill.c (ASSERT): Likewise.
58 * tests/test-count-one-bits.c (ASSERT): Likewise.
59 * tests/test-fbufmode.c (ASSERT): Likewise.
60 * tests/test-fflush2.c (ASSERT): Likewise.
61 * tests/test-floorf1.c (ASSERT): Likewise.
62 * tests/test-floorf2.c (ASSERT): Likewise.
63 * tests/test-floorl.c (ASSERT): Likewise.
64 * tests/test-fopen.c (ASSERT): Likewise.
65 * tests/test-fpending.c (ASSERT): Likewise.
66 * tests/test-fprintf-posix.c (ASSERT): Likewise.
67 * tests/test-fpurge.c (ASSERT): Likewise.
68 * tests/test-freadable.c (ASSERT): Likewise.
69 * tests/test-freadahead.c (ASSERT): Likewise.
70 * tests/test-freading.c (ASSERT): Likewise.
71 * tests/test-freadptr.c (ASSERT): Likewise.
72 * tests/test-freadptr2.c (ASSERT): Likewise.
73 * tests/test-freadseek.c (ASSERT): Likewise.
74 * tests/test-freopen.c (ASSERT): Likewise.
75 * tests/test-frexp.c (ASSERT): Likewise.
76 * tests/test-frexpl.c (ASSERT): Likewise.
77 * tests/test-fseek.c (ASSERT): Likewise.
78 * tests/test-fseeko.c (ASSERT): Likewise.
79 * tests/test-fstrcmp.c (ASSERT): Likewise.
80 * tests/test-ftell.c (ASSERT): Likewise.
81 * tests/test-ftello.c (ASSERT): Likewise.
82 * tests/test-func.c (ASSERT): Likewise.
83 * tests/test-fwritable.c (ASSERT): Likewise.
84 * tests/test-fwriting.c (ASSERT): Likewise.
85 * tests/test-getdelim.c (ASSERT): Likewise.
86 * tests/test-getline.c (ASSERT): Likewise.
87 * tests/test-i-ring.c (ASSERT): Likewise.
88 * tests/test-iconv-utf.c (ASSERT): Likewise.
89 * tests/test-iconv.c (ASSERT): Likewise.
90 * tests/test-isfinite.c (ASSERT): Likewise.
91 * tests/test-isnand.c (ASSERT): Likewise.
92 * tests/test-isnanf.c (ASSERT): Likewise.
93 * tests/test-isnanl.h (ASSERT): Likewise.
94 * tests/test-ldexpl.c (ASSERT): Likewise.
95 * tests/test-linked_list.c (ASSERT): Likewise.
96 * tests/test-linkedhash_list.c (ASSERT): Likewise.
97 * tests/test-localename.c (ASSERT): Likewise.
98 * tests/test-lseek.c (ASSERT): Likewise.
99 * tests/test-mbscasecmp.c (ASSERT): Likewise.
100 * tests/test-mbscasestr1.c (ASSERT): Likewise.
101 * tests/test-mbscasestr2.c (ASSERT): Likewise.
102 * tests/test-mbscasestr3.c (ASSERT): Likewise.
103 * tests/test-mbscasestr4.c (ASSERT): Likewise.
104 * tests/test-mbschr.c (ASSERT): Likewise.
105 * tests/test-mbscspn.c (ASSERT): Likewise.
106 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
107 * tests/test-mbspbrk.c (ASSERT): Likewise.
108 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
109 * tests/test-mbsrchr.c (ASSERT): Likewise.
110 * tests/test-mbsspn.c (ASSERT): Likewise.
111 * tests/test-mbsstr1.c (ASSERT): Likewise.
112 * tests/test-mbsstr2.c (ASSERT): Likewise.
113 * tests/test-mbsstr3.c (ASSERT): Likewise.
114 * tests/test-memchr2.c (ASSERT): Likewise.
115 * tests/test-memmem.c (ASSERT): Likewise.
116 * tests/test-open.c (ASSERT): Likewise.
117 * tests/test-printf-frexp.c (ASSERT): Likewise.
118 * tests/test-printf-frexpl.c (ASSERT): Likewise.
119 * tests/test-printf-posix.c (ASSERT): Likewise.
120 * tests/test-quotearg.c (ASSERT): Likewise.
121 * tests/test-rbtree_list.c (ASSERT): Likewise.
122 * tests/test-rbtree_oset.c (ASSERT): Likewise.
123 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
124 * tests/test-round1.c (ASSERT): Likewise.
125 * tests/test-roundf1.c (ASSERT): Likewise.
126 * tests/test-roundl.c (ASSERT): Likewise.
127 * tests/test-signbit.c (ASSERT): Likewise.
128 * tests/test-sleep.c (ASSERT): Likewise.
129 * tests/test-snprintf-posix.c (ASSERT): Likewise.
130 * tests/test-snprintf.c (ASSERT): Likewise.
131 * tests/test-sprintf-posix.c (ASSERT): Likewise.
132 * tests/test-stat-time.c (ASSERT): Likewise.
133 * tests/test-strcasestr.c (ASSERT): Likewise.
134 * tests/test-strerror.c (ASSERT): Likewise.
135 * tests/test-striconv.c (ASSERT): Likewise.
136 * tests/test-striconveh.c (ASSERT): Likewise.
137 * tests/test-striconveha.c (ASSERT): Likewise.
138 * tests/test-strsignal.c (ASSERT): Likewise.
139 * tests/test-strstr.c (ASSERT): Likewise.
140 * tests/test-strtod.c (ASSERT): Likewise.
141 * tests/test-trunc1.c (ASSERT): Likewise.
142 * tests/test-trunc2.c (ASSERT): Likewise.
143 * tests/test-truncf1.c (ASSERT): Likewise.
144 * tests/test-truncf2.c (ASSERT): Likewise.
145 * tests/test-truncl.c (ASSERT): Likewise.
146 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
147 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
148 * tests/test-vasnprintf.c (ASSERT): Likewise.
149 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
150 * tests/test-vasprintf.c (ASSERT): Likewise.
151 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
152 * tests/test-vprintf-posix.c (ASSERT): Likewise.
153 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
154 * tests/test-vsnprintf.c (ASSERT): Likewise.
155 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
156 * tests/test-wcwidth.c (ASSERT): Likewise.
157 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
158 * tests/test-xprintf-posix.c (ASSERT): Likewise.
159 * tests/test-xvasprintf.c (ASSERT): Likewise.
160 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
161 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
162 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
163 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
164 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
165 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
166 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
167 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
168 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
169 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
170 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
171 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
172 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
173 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
174 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
175 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
176 * tests/unictype/test-block_list.c (ASSERT): Likewise.
177 * tests/unictype/test-block_of.c (ASSERT): Likewise.
178 * tests/unictype/test-block_test.c (ASSERT): Likewise.
179 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
180 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
181 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
182 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
183 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
184 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
185 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
186 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
187 * tests/unictype/test-combining.c (ASSERT): Likewise.
188 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
189 * tests/unictype/test-digit.c (ASSERT): Likewise.
190 * tests/unictype/test-mirror.c (ASSERT): Likewise.
191 * tests/unictype/test-numeric.c (ASSERT): Likewise.
192 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
193 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
194 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
195 * tests/unictype/test-scripts.c (ASSERT): Likewise.
196 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
197 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
198 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
199 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
200 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
201 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
202 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
203 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
204 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
205 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
206 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
207 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
208 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
209 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
210 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
211 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
212 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
213 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
214 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
215 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
216 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
217 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
218 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
219 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
220 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
221 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
222 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
223 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
224 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
225 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
226 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
227 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
228 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
229 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
230 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
231 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
232 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
233 Reported by Eric Blake.
235 2008-04-11 Bruno Haible <bruno@clisp.org>
237 * lib/wchar.in.h: Tweak comment.
239 2008-04-11 Bruno Haible <bruno@clisp.org>
241 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
242 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
244 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
246 2008-04-11 Bruno Haible <bruno@clisp.org>
248 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
250 2008-04-11 Simon Josefsson <simon@josefsson.org>
252 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
253 of attempting to use non-existing /dev/*random. Based on patch
254 from Adam Strzelecki <ono@java.pl> in
255 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
257 2008-04-08 Bruno Haible <bruno@clisp.org>
259 Add tentative support for emx+gcc.
260 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
261 * lib/fpurge.c (fpurge): Likewise.
262 * lib/freadable.c (freadable): Likewise.
263 * lib/freadahead.c (freadahead): Likewise.
264 * lib/freading.c (freading): Likewise.
265 * lib/freadptr.c (freadptr): Likewise.
266 * lib/freadseek.c (freadptrinc): Likewise.
267 * lib/fseeko.c (rpl_fseeko): Likewise.
268 * lib/fseterr.c (fseterr): Likewise.
269 * lib/fwritable.c (fwritable): Likewise.
270 * lib/fwriting.c (fwriting): Likewise.
271 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
273 2008-04-09 Eric Blake <ebb9@byu.net>
275 Avoid some autoconf warnings.
276 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
277 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
278 * m4/afs.m4 (gl_AFS): Likewise.
279 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
280 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
281 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
282 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
283 (gl_INTEGER_TYPE_SUFFIX): Likewise.
284 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
285 (AC_CHECK_DECLS_ONCE): Likewise.
287 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
288 gnulib-tool requires autoconf 2.59 or better.
289 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
291 2008-04-08 Eric Blake <ebb9@byu.net>
293 Use 'git describe --match' if present (added in git 1.5.5).
294 * build-aux/git-version-gen: Limit result to tags that match 'v*'
297 2008-04-08 Bruno Haible <bruno@clisp.org>
299 Add tentative support for OpenServer.
300 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
302 * lib/fpurge.c (fpurge): Likewise.
303 * lib/freadable.c (freadable): Likewise.
304 * lib/freadahead.c (freadahead): Likewise.
305 * lib/freading.c (freading): Likewise.
306 * lib/freadptr.c (freadptr): Likewise.
307 * lib/freadseek.c (freadptrinc): Likewise.
308 * lib/fseeko.c (rpl_fseeko): Likewise.
309 * lib/fseterr.c (fseterr): Likewise.
310 * lib/fwritable.c (fwritable): Likewise.
311 * lib/fwriting.c (fwriting): Likewise.
312 Reported by Roger Cornelius <rac@tenzing.org> and
313 Brian K. White <brian@aljex.com>.
315 2008-04-06 Jim Meyering <meyering@redhat.com>
317 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
319 2008-04-06 Bruno Haible <bruno@clisp.org>
321 Avoid possible error with non-ASCII bytes in UTF-8 locales.
322 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
323 * tests/test-printf-posix.sh: Likewise.
324 * tests/test-vfprintf-posix.sh: Likewise.
325 * tests/test-vprintf-posix.sh: Likewise.
326 * tests/test-xprintf-posix.sh: Likewise.
328 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
330 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
331 hide error from 'ls', needed on OS/2.
332 Report by Elbert Pol <elbert.pol@gmail.com>.
334 2008-04-04 Eric Blake <ebb9@byu.net>
336 Make test-fseeko.c failures meaningful.
337 * tests/test-fseeko.c: Print line number on failure.
338 * tests/test-fseek.c: Likewise.
339 Reported by Nelson H. F. Beebe.
341 Improve strtod bug detection check.
342 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
343 required for Solaris 10.
344 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
346 2008-04-04 Bruno Haible <bruno@clisp.org>
348 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
351 2008-04-03 Eric Blake <ebb9@byu.net>
353 Ensure sane .version contents.
354 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
356 * build-aux/git-version-gen: Improve documentation.
358 Make GNU make output nicer.
359 * top/GNUmakefile [!_have-Makefile]: Add dependency on
360 MAKECMDGOALS to enforce message for all command line targets. Set
361 srcdir for use in maint.mk.
363 Another maintainer tweak.
364 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
365 a target that regenerates version.
367 2008-04-03 Jim Meyering <meyering@redhat.com>
369 vc-list-files: don't cause coreutils "make po-check" failure
370 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
372 2008-04-03 Eric Blake <ebb9@byu.net>
374 Allow VPATH usage of vc-list-files.
375 * build-aux/vc-list-files (scriptversion): Add timestamp.
376 (options): Add --help, --version, -C.
377 (CVS): Support installed cvsu.
379 2008-04-02 Bruno Haible <bruno@clisp.org>
381 Avoid some "statement with no effect" warnings from gcc.
382 * tests/test-wctype.c (main): Explicitly ignore unused values.
383 Reported by Jim Meyering.
385 2008-04-02 Jim Meyering <meyering@redhat.com>
387 Avoid some warnings from "gcc -Wshadow".
388 * tests/test-frexp.c (exp): Define to a different identifier.
389 * tests/test-frexpl.c (exp): Likewise.
391 2008-04-03 Jim Meyering <meyering@redhat.com>
393 bootstrap: remove dangling *.[ch] symlinks from lib
394 * build-aux/bootstrap [dangling symlink removal]: Move find's
395 -depth option to precede all others, to avoid a warning.
396 Remove *.[ch] files too, and from "$source_base" (usually lib/).
398 2008-04-02 Bruno Haible <bruno@clisp.org>
400 Avoid some warnings from "gcc -Wshadow".
401 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
402 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
403 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
404 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
405 Reported by Jim Meyering.
407 2008-04-01 Bruno Haible <bruno@clisp.org>
409 Fix test to work on IRIX 6.5 with cc.
410 * tests/test-math.c (numeric_equal): New function.
413 2008-04-01 Bruno Haible <bruno@clisp.org>
415 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
417 2008-04-01 Bruno Haible <bruno@clisp.org>
419 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
420 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
421 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
422 (Depends-on): Remove math.
424 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
425 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
426 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
427 (Depends-on): Remove math.
429 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
430 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
431 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
432 (Depends-on): Remove math.
433 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
434 (Depends-on): Remove math.
436 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
437 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
438 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
439 (Depends-on): Remove math.
440 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
441 (Depends-on): Remove math.
443 * tests/test-round1.c: Include nan.h.
444 (main): Use NaNd instead of NAN.
445 * modules/round-tests (Files): Add tests/nan.h.
447 * tests/test-trunc1.c: Include nan.h.
448 (main): Use NaNd instead of NAN.
449 * modules/trunc-tests (Files): Add tests/nan.h.
451 * tests/test-roundf1.c: Include nan.h.
452 (main): Use NaNf instead of NAN.
453 * modules/roundf-tests (Files): Add tests/nan.h.
455 * tests/test-truncf1.c: Include nan.h.
456 (main): Use NaNf instead of NAN.
457 * modules/truncf-tests (Files): Add tests/nan.h.
459 * tests/test-ceilf1.c: Include nan.h.
460 (main): Use NaNf instead of NAN.
461 * modules/ceilf-tests (Files): Add tests/nan.h.
463 * tests/test-floorf1.c: Include nan.h.
464 (main): Use NaNf instead of NAN.
465 * modules/floorf-tests (Files): Add tests/nan.h.
467 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
468 (main): Use NaNf instead of NAN.
469 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
471 * tests/test-isnand.c: Include nan.h instead of <math.h>.
472 (main): Use NaNd instead of NAN.
473 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
475 * tests/test-frexp.c: Include nan.h.
476 (main): Use NaNd instead of NAN.
477 * modules/frexp-tests (Files): Add tests/nan.h.
479 * lib/isnan.c: Don't include <math.h>.
480 (FUNC): Don't use NAN macro.
481 * modules/isnand-nolibm (Depends-on): Remove math.
482 * modules/isnanf-nolibm (Depends-on): Remove math.
483 * modules/isnanl (Depends-on): Remove math.
484 * modules/isnanl-nolibm (Depends-on): Remove math.
486 * tests/nan.h: New file.
488 2008-04-01 Eric Blake <ebb9@byu.net>
491 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
492 values to be the right type.
494 For now, cater to gnulib strtod inaccuracies.
495 * tests/test-strtod.c (main): Allow 1-ulp error on expected
496 fractional results. While not as nice from a QoI perspective, it
497 is a quicker patch than correctly implementing decimal to binary
500 2008-03-31 Eric Blake <ebb9@byu.net>
502 Guarantee a definition of NAN.
503 * lib/math.in.h (NAN): Define if missing.
504 * tests/test-math.c (main): Test it.
505 * doc/posix-headers/math.texi (math.h): Document this.
506 * lib/isnan.c (rpl_isnand): Use it.
507 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
508 * tests/test-floorf1.c (NaN): Likewise.
509 * tests/test-frexp.c (NaN): Likewise.
510 * tests/test-isnand.c (NaN): Likewise.
511 * tests/test-isnanf.c (NaN): Likewise.
512 * tests/test-round1.c (NaN): Likewise.
513 * tests/test-roundf1.c (NaN): Likewise.
514 * tests/test-snprintf-posix.h (NaN): Likewise.
515 * tests/test-sprintf-posix.h (NaN): Likewise.
516 * tests/test-trunc1.c (NaN): Likewise.
517 * tests/test-truncf1.c (NaN): Likewise.
518 * tests/test-vasnprintf-posix.c (NaN): Likewise.
519 * tests/test-vasprintf-posix.c (NaN): Likewise.
520 * modules/isnand-nolibm (Depends-on): Add math.
521 * modules/isnanf-nolibm (Depends-on): Likewise.
522 * modules/isnanl (Depends-on): Likewise.
523 * modules/isnanl-nolibm (Depends-on): Likewise.
524 * modules/snprintf-posix-tests (Depends-on): Likewise.
525 * modules/sprintf-posix-tests (Depends-on): Likewise.
526 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
527 * modules/vsprintf-posix-tests (Depends-on): Likewise.
528 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
529 * modules/vasprintf-posix-tests (Depends-on): Likewise.
531 2008-03-31 Bruno Haible <bruno@clisp.org>
533 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
534 * doc/posix-functions/strtod.texi: Likewise.
536 2008-03-31 Bruno Haible <bruno@clisp.org>
538 * tests/test-strtod.c (main): Don't use C99 syntax.
540 2008-03-31 Bruno Haible <bruno@clisp.org>
542 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
543 Reported by Eric Blake.
545 2008-03-31 Jim Meyering <meyering@redhat.com>
547 Don't compare actual signbit return values.
548 * tests/test-strtod.c (main): Rather, compare only their
549 zero/non-zero nature.
551 2008-03-31 Eric Blake <ebb9@byu.net>
553 More strtod documentation.
554 * doc/posix-functions/strtod.texi (strtod): Interpret more test
555 failures as distinct bugs.
557 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
559 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
560 Problem reported by Erik Benada in
561 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
563 2008-03-30 Bruno Haible <bruno@clisp.org>
565 * tests/test-strtod.c: Add comments about which assertion fails on which
567 * doc/posix-functions/strtod.texi: Add info about many more platforms.
569 2008-03-30 Eric Blake <ebb9@byu.net>
571 Test signbit behavior on zeros.
572 * tests/test-signbit.c (test_signbitf): Add tests for zero.
573 (test_signbitd, test_signbitl): Likewise.
575 More strtod touchups.
576 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
577 sign of negative underflow, for now. Use .5, not .1.
578 * doc/posix-functions/strtod.texi (strtod): Mention these
580 Reported by Jim Meyering.
582 2008-03-30 Bruno Haible <bruno@clisp.org>
584 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
585 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
587 2008-03-30 Bruno Haible <bruno@clisp.org>
589 Avoid failure when attempting to return empty iconv results on some
591 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
592 allocation, don't report ENOMEM when the resulting string is empty.
594 2008-03-30 Bruno Haible <bruno@clisp.org>
597 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
598 Don't consider the width for tmp_length. Check count against tmp_length
599 before doing the padding. Ensure enough allocation during padding.
601 2008-03-30 Eric Blake <ebb9@byu.net>
604 * lib/strtod.c (strtod): Avoid compiler warnings.
605 Reported by Jim Meyering.
607 2008-03-30 Bruno Haible <bruno@clisp.org>
609 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
610 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
611 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
612 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
613 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
614 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
615 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
616 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
618 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
619 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
620 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
621 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
622 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
623 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
624 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
625 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
627 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
628 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
629 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
630 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
631 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
632 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
633 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
634 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
636 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
637 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
639 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
640 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
642 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
643 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
645 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
646 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
647 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
649 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
650 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
651 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
653 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
654 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
655 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
657 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
658 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
659 * modules/vasprintf (Depends-on): Add EOVERFLOW.
661 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
662 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
663 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
664 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
665 (Depends-on): Add EOVERFLOW.
666 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
667 (Depends-on): Add EOVERFLOW.
668 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
669 (Depends-on): Add EOVERFLOW.
670 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
671 (Depends-on): Add EOVERFLOW.
672 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
673 (Depends-on): Add EOVERFLOW.
674 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
675 (Depends-on): Add EOVERFLOW.
676 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
677 (Depends-on): Add EOVERFLOW.
678 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
679 (Depends-on): Add EOVERFLOW.
681 * lib/sprintf.c (EOVERFLOW): Remove fallback.
682 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
683 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
685 * lib/snprintf.c (EOVERFLOW): Remove fallback.
686 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
687 * modules/snprintf (Depends-on): Add EOVERFLOW.
689 * lib/poll.c (EOVERFLOW): Remove fallback.
690 * modules/poll (Depends-on): Add EOVERFLOW.
692 * lib/getugroups.c (EOVERFLOW): Remove fallback.
693 * modules/getugroups (Depends-on): Add EOVERFLOW.
695 * lib/getdelim.c (EOVERFLOW): Remove fallback.
696 * modules/getdelim (Depends-on): Add EOVERFLOW.
698 * lib/ftell.c (EOVERFLOW): Remove fallback.
699 * modules/ftell (Depends-on): Add EOVERFLOW.
701 * lib/fprintf.c (EOVERFLOW): Remove fallback.
702 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
703 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
705 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
707 * modules/EOVERFLOW-tests: New file.
708 * tests/test-EOVERFLOW.c: New file.
710 * modules/EOVERFLOW: New file.
711 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
713 2008-03-30 Bruno Haible <bruno@clisp.org>
715 Fix bug introduced on 2007-06-10.
716 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
717 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
719 2008-03-30 Bruno Haible <bruno@clisp.org>
721 Improve freadseek's efficiency after ungetc.
722 * lib/freadseek.c: Include freadahead.h.
723 (freadptrinc): New function, extracted from freadseek.
724 (freadseek): Use it in a loop. Use freadahead to determine the number
726 * modules/freadseek (Depends-on): Add freadahead.
727 (configure.ac): Require AC_C_INLINE.
729 2008-03-30 Bruno Haible <bruno@clisp.org>
731 * lib/freadseek.c (freadseek): Don't ignore the return value of
734 2008-03-29 Eric Blake <ebb9@byu.net>
736 Add hex float support.
737 * modules/strtod (Depends-on): Add c-ctype.
738 (Link): Mention POW_LIB.
739 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
740 whitespace between 'e' and exponent.
741 * tests/test-strtod.c (main): Enable hex float tests.
742 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
745 Document various strtod bugs, with some fixes.
746 * doc/posix-functions/strtod.texi (strtod): Document bugs with
747 "-0x", "inf", "nan", and hex constants.
748 * doc/posix-functions/atof.texi (atof): Likewise.
749 * modules/stdlib (Makefile.am): Support strtod.
750 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
751 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
752 detect additional strtod bugs.
753 * lib/stdlib.in.h (rpl_strtod): Add declarations.
754 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
755 bool where appropriate. Parse 'inf' and 'nan'.
756 * tests/test-strtod.c: New file.
757 * modules/strtod (Depends-on): Add stdbool, stdlib.
758 (configure.ac): Turn on module indicator.
759 * modules/strtod-tests: New module.
761 2008-03-29 Eric Blake <ebb9@byu.net>
764 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
765 * modules/ftell-tests (Depends-on): Add binary-io.
766 * modules/ftello-tests (Depends-on): Likewise.
767 * tests/test-ftell.c (main): Enhance test to cover behavior after
768 ungetc. Enforce binary mode.
769 * tests/test-ftello.c (main): Likewise.
771 Pass test-freadseek on cygwin.
772 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
773 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
776 * tests/test-fflush2.c (main): Fix typo.
778 2008-03-29 Bruno Haible <bruno@clisp.org>
780 * tests/test-fflush2.c (main): Temporarily disable the contents of
782 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
783 Reported by Eric Blake.
785 2008-03-28 Simon Josefsson <simon@josefsson.org>
787 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
788 (GC_SHA224_DIGEST_SIZE): Add.
790 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
791 (gc_hash_digest_length): Likewise.
792 (gc_hash_buffer): Likewise.
794 2008-03-25 Bruno Haible <bruno@clisp.org>
796 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
797 detail which gettext release to use.
798 Reported by Simon Josefsson.
800 2008-03-26 Jim Meyering <meyering@redhat.com>
802 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
803 * modules/gnumakefile (clean-GNUmakefile): Also, use
804 test ... && ... || : syntax rather than if-then ... fi.
806 gnumakefile: Don't double-quote-expand $(VPATH) value.
807 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
809 2008-03-24 Eric Blake <ebb9@byu.net>
811 Alter GNUmakefile to install into top directory.
812 * modules/maintainer-makefile: Split, and add dependency...
813 * modules/gnumakefile: to this new module.
814 * build-aux/GNUmakefile: Move...
815 * top/GNUmakefile: ...here.
816 * build-aux/maint.mk: Move...
817 * top/maint.mk: ...here.
818 * MODULES.html.sh (Support for maintaining...): Document new
821 2008-03-23 Bruno Haible <bruno@clisp.org>
823 * gnulib-tool: New options --vc-files, --no-vc-files.
824 (func_usage): Document them.
825 (vc_files): New variable.
826 (func_import): Consider vc_files.
827 (func_create_testdir): Set vc_files to empty.
828 Suggested by Jim Meyering and Karl Berry.
830 2008-03-23 Bruno Haible <bruno@clisp.org>
832 Fix regex compilation error on HP-UX 11.
833 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
834 * modules/regex (Files): Add m4/mbstate_t.m4.
835 Reported by Ton Voon <ton.voon@altinity.com>.
837 2008-03-23 Bruno Haible <bruno@clisp.org>
839 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
841 2008-03-23 Eric Blake <ebb9@byu.net>
842 Bruno Haible <bruno@clisp.org>
844 Install files from top/ in the destination directory.
845 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
846 augmentation also for the files from top/.
847 (func_import, func_create_testdir): Rewrite file names:
848 top/filename -> filename.
850 2008-03-23 Bruno Haible <bruno@clisp.org>
852 Tweak "gnulib --version" output.
853 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
855 2008-03-23 Bruno Haible <bruno@clisp.org>
857 Tweak "gnulib --version" output.
858 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
859 rather than contents of ChangeLog, when possible.
861 2008-03-21 Eric Blake <ebb9@byu.net>
863 More --version tweaks.
864 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
865 date of last ChangeLog entry.
867 2008-03-21 Jim Meyering <meyering@redhat.com>
869 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
871 2008-03-20 Eric Blake <ebb9@byu.net>
874 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
876 2008-03-20 Simon Josefsson <simon@josefsson.org>
878 * build-aux/GNUmakefile: Make git-version-gen optional. Add
879 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
881 2008-03-20 Eric Blake <ebb9@byu.net>
883 Sync GNUmakefile with coreutils.
884 * build-aux/GNUmakefile (have-Makefile): Rename...
885 (_have-Makefile): ...to this, for namespace consideration.
886 (GNUmakefile.cfg): Include, if present.
887 (_autoreconf): Define a default.
888 (_is-dist-target): New rule for rebuilds to pick up intra-release
890 (maint-cfg.mk): Rename...
891 (cfg.mk): ...to this.
893 2008-03-18 Jim Meyering <meyering@redhat.com>
895 New script and module: mktempd
896 * MODULES.html.sh (maint+release support): Add mktempd.
897 * build-aux/mktempd: New file.
898 * modules/mktempd: New file.
900 2008-03-15 Jim Meyering <meyering@redhat.com>
903 * lib/sha1.c, lib/md5.c: 63 != ~63.
904 Reported by Andreas Schwab.
906 sha1.c, md5.c: Hoist a redundant expression.
907 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
908 "ctx->buflen" only once, before calling *_process_block.
909 * lib/md5.c (md5_process_bytes): Likewise.
911 2008-03-14 Eric Blake <ebb9@byu.net>
913 Bump copyright year in files generated by gnulib-tool.
914 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
915 gnulib-tool, rather than hard-coding it.
917 Fix 'gnulib-tool --version' output to work with git.
918 * gnulib-tool (func_gnulib_dir): New function, extracted from...
920 (func_version): Use it to invoke git-version-gen, rather than
921 relying on CVS keyword expansion. Modernize wording.
922 (cvsdatestamp, last_checkin_date, version): Kill unused
925 2008-03-12 Jim Meyering <meyering@redhat.com>
927 Recognize optional cast of the argument to free.
928 * build-aux/useless-if-before-free: Update regexps.
930 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
932 2008-03-11 Bruno Haible <bruno@clisp.org>
934 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
936 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
937 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
938 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
939 Reported by Sam Steingold <sds@gnu.org>.
941 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
943 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
946 2008-03-11 Bruno Haible <bruno@clisp.org>
948 Avoid conflicts between local macro definitions.
949 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
950 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
952 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
953 Bruno Haible <bruno@clisp.org>
955 Make va_copy work with some version of xlc on AIX 5.1.
956 * lib/stdarg.in.h: New file.
957 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
958 On AIX, use a <stdarg.h> file substitute.
959 * modules/stdarg (Files): Add lib/stdarg.in.h.
960 (Depends-on): Add include_next.
961 (Makefile.am): Build a stdarg.h substitute if requested.
962 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
964 2008-03-10 Bruno Haible <bruno@clisp.org>
966 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
967 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
968 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
970 2008-03-10 Bruno Haible <bruno@clisp.org>
972 * modules/stdlib (Depends-on): Add include_next, remove
975 2008-03-09 Bruno Haible <bruno@clisp.org>
977 * lib/freadahead.h (freadahead): Document more precisely.
978 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
979 the sum of both buffer sizes.
980 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
981 * NEWS: Document the change.
983 2008-03-09 Bruno Haible <bruno@clisp.org>
985 Extend freadptr to return also the buffer size.
986 * lib/freadptr.h (freadptr): Add sizep argument.
987 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
988 (freadptr): Add sizep argument. Determine buffer size like freadahead
990 * tests/test-freadptr.c: Don't include freadahead.h.
991 (main): Adapt for new calling convention of freadptr.
992 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
993 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
994 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
995 tests/test-freadptr2.sh.
996 (Depends): Remove freadahead.
997 (TESTS): Add test-freadptr2.sh.
998 (check_PROGRAMS): Add test-freadptr2.
1000 2008-03-09 Bruno Haible <bruno@clisp.org>
1002 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
1003 Report and solution by Simon Josefsson.
1005 2008-03-06 Bruno Haible <bruno@clisp.org>
1007 Make fflush after ungetc work on BSD platforms.
1008 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
1009 * tests/test-fflush2.c: New file.
1010 * tests/test-fflush2.sh: New file.
1011 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
1012 tests/test-fflush2.c.
1013 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
1014 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
1016 2008-03-06 Eric Blake <ebb9@byu.net>
1018 Likewise for ftello.
1019 * modules/ftello (Dependencies): Add extensions.
1020 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
1022 2008-03-06 Bruno Haible <bruno@clisp.org>
1024 * modules/fseeko (Dependencies): Add extensions.
1025 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
1026 Needed on glibc systems.
1028 2008-03-06 Bruno Haible <bruno@clisp.org>
1030 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
1032 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1034 2008-03-06 Bruno Haible <bruno@clisp.org>
1036 * users.txt: Add libgnupdf.
1038 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
1040 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
1041 (Header File Substitutes, Function Substitutes,
1042 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
1043 (Build robot for gnulib): Fix typo.
1045 2008-03-06 Bruno Haible <bruno@clisp.org>
1047 * doc/gnulib-tool.texi (VCS Issues): Small updates.
1048 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1050 2008-03-06 Bruno Haible <bruno@clisp.org>
1052 * doc/func.texi: New file, extracted from doc/gnulib.texi.
1053 * doc/gnulib.texi: Include it.
1055 2008-03-06 Simon Josefsson <simon@josefsson.org>
1057 * modules/func (License): Change license to unlimited; there was
1058 no LGPL parts in the module anyway.
1060 2008-03-06 Simon Josefsson <simon@josefsson.org>
1062 * modules/__func__: Renamed to modules/func.
1063 * modules/__func__-tests: Renamed to modules/func-tests.
1064 * tests/test-__func__.c: Renamed to tests/test-func.c.
1065 * m4/__func__.m4: Renamed to m4/func.m4.
1066 * doc/gnulib.texi (__func__): Section renamed to func.
1067 Suggested by Eric Blake <ebb9@byu.net>.
1069 2008-03-06 Simon Josefsson <simon@josefsson.org>
1071 * doc/gnulib.texi (__func__): Use C99 terminology when talking
1072 about __func__. Make example self-contained. Suggested by Eric
1073 Blake <ebb9@byu.net>.
1075 * tests/test-__func__.c (main): Avoid extraneous () around __func.
1076 Suggested by Eric Blake <ebb9@byu.net>.
1078 2008-03-06 Simon Josefsson <simon@josefsson.org>
1080 * modules/__func__: New file.
1081 * modules/__func__-tests: New file.
1082 * tests/test-__func__.c: New file.
1083 * m4/__func__.m4: New file.
1084 * doc/gnulib.texi (__func__): Document __func__ module.
1086 2008-03-05 Simon Josefsson <simon@josefsson.org>
1088 * modules/byteswap (License): Re-license as LGPLv2+.
1090 2008-03-05 Simon Josefsson <simon@josefsson.org>
1092 * doc/Makefile: Add pdf target.
1094 2008-03-05 Simon Josefsson <simon@josefsson.org>
1096 * modules/inline (License): Use 'unlimited', since there are only
1097 *.m4 files in this module.
1099 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
1100 Bruno Haible <bruno@clisp.org>
1102 Add support for HP C 7.1 on OpenVMS 8.3.
1103 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
1105 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
1107 Update VMS specifics.
1108 * lib/getopt.c [VMS]: Remove include of unixlib.h.
1110 2008-03-02 Jim Meyering <meyering@redhat.com>
1112 Remove the last dependency on the "free" module.
1113 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
1114 Reported by Bob Proulx.
1116 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
1118 Remove useless "if" tests before free. Deprecate "free" module.
1119 * doc/posix-functions/free.texi: Mention that this
1120 module is no longer useful.
1121 * modules/free (Notice): Say this module is obsolete.
1122 * modules/readutmp (Depends-on): Remove free.
1123 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
1124 * lib/putenv.c (putenv): Likewise.
1125 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
1126 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
1127 * tests/test-c-strcasestr.c (main): Likewise.
1128 * tests/test-c-strstr.c (main): Likewise.
1129 * tests/test-mbscasestr1.c (main): Likewise.
1130 * tests/test-mbscasestr2.c (main): Likewise.
1131 * tests/test-mbsstr1.c (main): Likewise.
1132 * tests/test-mbsstr2.c (main): Likewise.
1133 * tests/test-memmem.c (main): Likewise.
1134 * tests/test-strcasestr.c (main): Likewise.
1135 * tests/test-striconv.c (main): Likewise.
1136 * tests/test-striconveh.c (main): Likewise.
1137 * tests/test-striconveha.c (main): Likewise.
1138 * tests/test-strstr.c (main): Likewise.
1140 * build-aux/git-version-gen: Adjust a comment and the Usage string.
1142 bootstrap: sync from coreutils again
1143 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
1145 2008-03-01 Jim Meyering <meyering@redhat.com>
1147 bootstrap: sync from coreutils
1148 * build-aux/bootstrap (update_po_files): Copy a .po file into place
1149 also when the target doesn't exist.
1151 2008-03-01 Eric Blake <ebb9@byu.net>
1153 Fix bugs in last patch.
1154 * lib/memchr2.c (memchr2): Fix typo.
1155 * tests/test-memchr2.c: Test previous bug, and don't use GNU
1157 Reported by Bruce Korb.
1159 New module 'memchr2'.
1160 * modules/memchr2: New file.
1161 * modules/memchr2-tests: Likewise.
1162 * lib/memchr2.h: Likewise.
1163 * lib/memchr2.c: Likewise, based on memchr.c.
1164 * tests/test-memchr2.c: New test.
1165 * MODULES.html.sh (String handling): Add memchr2.
1167 2008-02-29 Bruno Haible <bruno@clisp.org>
1169 * modules/freadseek-tests: New file.
1170 * tests/test-freadseek.sh: New file.
1171 * tests/test-freadseek.c: New file.
1173 New module 'freadseek'.
1174 * modules/freadseek: New file.
1175 * lib/freadseek.h: New file.
1176 * lib/freadseek.c: New file.
1177 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
1179 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
1181 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
1184 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
1185 program_invocation_name and program_invocation_short_name are
1188 2008-02-28 Bruno Haible <bruno@clisp.org>
1190 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
1191 * tests/test-freadptr.sh: Also test non-seekable stdin.
1193 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
1195 * build-aux/bootstrap (source_base, m4_base)
1196 (doc_base, tests_base): New variables.
1197 (gnulib_tool_options): Do not hardcode base directories, use
1198 the above variables instead.
1200 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
1202 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
1204 2008-02-28 Bruno Haible <bruno@clisp.org>
1206 * modules/freadptr-tests: New file.
1207 * tests/test-freadptr.sh: New file.
1208 * tests/test-freadptr.c: New file.
1210 New module 'freadptr'.
1211 * modules/freadptr: New file.
1212 * lib/freadptr.h: New file.
1213 * lib/freadptr.c: New file.
1214 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
1216 2008-02-26 Karl Berry <karl@freefriends.org>
1219 * libltdl/argz.c (argz_add, argz_count): New functions.
1220 * libltdl/argz.in.h: Declare them.
1221 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
1223 2008-02-22 Bruno Haible <bruno@clisp.org>
1225 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
1226 is a pointer type. Needed for HP-UX 10.
1227 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
1228 * doc/posix-functions/gmtime_r.texi: Likewise.
1229 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1231 2008-02-24 Bruno Haible <bruno@clisp.org>
1233 * modules/environ-tests: New file.
1234 * tests/test-environ.c: New file.
1236 New module 'environ'.
1237 * modules/environ: New file.
1238 * lib/unistd.in.h (environ): New declaration.
1239 * m4/environ.m4: New file.
1240 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
1242 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
1244 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
1246 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
1247 wrong claim that 'environ' is missing on some systems.
1248 * modules/execute (Depends-on): Add environ.
1249 * lib/execute.c (environ): Remove fallback declaration.
1250 * modules/pipe (Depends-on): Add environ.
1251 * lib/pipe.c (environ): Remove fallback declaration.
1252 * modules/setenv (Depends-on): Add environ.
1253 * lib/setenv.c (environ): Remove fallback declaration.
1254 * modules/unsetenv (Depends-on): Add environ.
1255 * lib/unsetenv.c (environ): Remove fallback declaration.
1256 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
1258 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
1259 (gl_PREREQ_UNSETENV): Likewise.
1261 2008-02-24 Bruno Haible <bruno@clisp.org>
1263 * doc/posix-functions/environ.texi: Document the MacOS X problem.
1265 2008-02-20 Bob Proulx <bob@proulx.com>
1267 Enable use of older two part flavor 'git describe'.
1268 * build-aux/git-version-gen: If using the older two part flavor of
1269 git version then recreate the third part now present in the
1270 newer three part flavor of git describe.
1272 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
1274 * lib/fts.c (fts_build): Typo correction to comment.
1276 2008-02-17 Bruno Haible <bruno@clisp.org>
1278 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
1279 generating no-op conflicts.
1281 2008-02-17 Bruno Haible <bruno@clisp.org>
1284 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
1285 result_entries, rather than an index-based loop.
1287 2008-02-17 Bruno Haible <bruno@clisp.org>
1290 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
1292 (entry_create): New function.
1293 (entry_hashcode): Use the cached hashcode if possible.
1294 (read_changelog_file, try_split_merged_entry): Use entry_create.
1296 2008-02-17 Bruno Haible <bruno@clisp.org>
1298 Speed up from O(n^2) to O(n) for long ChangeLog files.
1299 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
1300 (read_changelog_file): Change implementation of entries_reversed list
1302 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
1304 2008-02-17 Bruno Haible <bruno@clisp.org>
1306 New option --split-merged-entry.
1307 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
1308 (find_paragraph_end, try_split_merged_entry): New functions.
1309 (long_options): Add option --split-merged-entry.
1310 (usage): Document option --split-merged-entry.
1311 (main): Implement option --split-merged-entry.
1312 Reported by Eric Blake.
1314 2008-02-17 Bruno Haible <bruno@clisp.org>
1316 * lib/git-merge-changelog.c: Include c-strstr.h.
1317 (main): Support the "git pull --rebase" situation.
1318 * modules/git-merge-changelog (Depends-on): Add c-strstr.
1319 Reported by Eric Blake.
1321 2008-02-16 Eric Blake <ebb9@byu.net>
1323 Avoid doubling \ in common case of "c-maybe" quoting style.
1324 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
1325 eliding outer quotes.
1326 * lib/quotearg.h: Document this.
1327 * tests/test-quotearg.c (result_strings, inputs, results_g)
1328 (flag_results, locale_results): Test it by adding a new string to
1330 (compare_strings): Test new string.
1332 2008-02-13 Eric Blake <ebb9@byu.net>
1334 Avoid trigraph quoting in default output.
1335 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
1336 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
1337 unless explicitly requested.
1338 * tests/test-quotearg.c (flag_results, main): Add additional tests.
1340 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
1342 Don't rely on signed integer overflowing to negative value.
1343 * lib/getugroups.c (getugroups): Include <limits.h>.
1344 Instead, compare against INT_MAX, and increment only if the test passes.
1346 2008-02-13 Jim Meyering <meyering@redhat.com>
1347 and Eric Blake <ebb9@byu.net>
1349 Avoid shadowing warning and compile errors on Linux.
1350 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
1351 forwarding macros on Linux.
1352 (dcgettext): Define a stub, for Linux.
1353 (results_g, main): Avoid warnings.
1355 2008-02-12 Eric Blake <ebb9@byu.net>
1357 Silence warning in last patch.
1358 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
1360 Quotearg part 4: add tests, fix c-maybe colon quoting.
1361 * lib/quotearg.h: Improve documentation.
1362 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
1363 escapes when adding outer quotes. When quoting trigraphs, use
1364 valid C notation. When quoting NUL, omit extra characters if next
1365 character is not digit. Alter prototype.
1366 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
1368 * modules/quotearg-tests: New module.
1369 * tests/test-quotearg.c: New test.
1371 2008-02-07 Eric Blake <ebb9@byu.net>
1373 Quotearg part 3: add flag to control outer quote elision.
1374 * lib/quotearg.h (c_maybe_quoting_style): New style.
1375 (enum quoting_flags): Better documentation of flags.
1376 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
1378 (quotearg_buffer_restyled): Handle new flag to elide outer
1381 Quotearg part 2: add flag that can control NUL elision.
1382 * lib/quotearg.h (set_quoting_flags): New prototype.
1383 * lib/quotearg.c (struct quoting_options): Add flag field.
1384 (set_quoting_flags): New function.
1385 (quotearg_buffer_restyled): Add flags parameter.
1386 (quotearg_alloc_mem): Set the flag if length cannot be returned.
1387 (quotearg_n_options): Set the flag, since length cannot be
1389 (quoting_options_from_style): Default flags correctly.
1391 Quotearg part 1: more wrappers, restore quotearg_char state.
1392 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
1393 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
1394 (quotearg_colon_mem): New wrappers.
1395 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
1396 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
1398 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
1399 (quotearg_colon_mem): New functions.
1401 2008-02-11 Bruno Haible <bruno@clisp.org>
1403 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
1404 library in the current directory: it does not work with parallel make.
1405 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1407 2008-02-11 Bruno Haible <bruno@clisp.org>
1409 * .gitattributes: New file.
1411 2008-02-11 Jim Meyering <meyering@redhat.com>
1413 useless-if-before-free: Fix reversed exit values.
1414 * build-aux/useless-if-before-free: Use correct values
1415 for EXIT_MATCH and EXIT_NO_MATCH.
1417 * build-aux/useless-if-before-free: Close stdout carefully.
1419 2008-02-10 Bruno Haible <bruno@clisp.org>
1421 New module 'git-merge-changelog'.
1422 * modules/git-merge-changelog: New file.
1423 * lib/git-merge-changelog.c: New file.
1425 2008-02-10 Jim Meyering <meyering@redhat.com>
1427 useless-if-before-free: New option: --list (-l).
1429 useless-if-before-free: Don't exit immediately upon open failure.
1430 * build-aux/useless-if-before-free: Exit 2 for errors.
1431 Upon failure to open a file, don't exit immediately.
1432 Rather, just warn and continue with any remaining files.
1434 2008-02-10 Bruno Haible <bruno@clisp.org>
1436 New abstract list operation 'node_set_value'.
1437 * lib/gl_list.h (gl_list_node_set_value): New function.
1438 (struct gl_list_implementation): New field node_set_value.
1439 * lib/gl_list.c (gl_list_node_set_value): New function.
1440 * lib/gl_array_list.c (gl_array_node_set_value): New function.
1441 (gl_array_list_implementation): Update.
1442 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1443 (gl_carray_list_implementation): Update.
1444 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1445 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1446 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1447 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1448 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1449 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1450 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1452 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1453 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1454 (gl_sublist_list_implementation): Update.
1456 2008-02-10 Bruno Haible <bruno@clisp.org>
1458 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1459 Needed when ELEMENT is #defined to 'some_type *'.
1461 2008-02-10 Jim Meyering <meyering@redhat.com>
1463 New script and module: useless-if-before-free
1464 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1465 * build-aux/useless-if-before-free: New file.
1466 * modules/useless-if-before-free: New file.
1468 * build-aux/gitlog-to-changelog: Use committer date, not author date.
1470 xstrtol_error: Fix typo.
1471 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1472 s/exit_failure/exit_status/.
1474 2008-02-09 Jim Meyering <meyering@redhat.com>
1476 New script and module: gitlog-to-changelog
1477 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1478 * modules/gitlog-to-changelog: New file.
1479 * build-aux/gitlog-to-changelog: New file.
1481 2008-02-08 Jim Meyering <meyering@redhat.com>
1483 Avoid two "parameter unused" warnings.
1484 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1487 Use "git COMMAND", not "git-COMMAND".
1488 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1489 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1490 * build-aux/git-version-gen: Use "git status", not "git-status".
1492 2008-02-07 Bruno Haible <bruno@clisp.org>
1494 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1495 Avoids a crash on Windows Vista.
1496 Reported by Adam Strzelecki <ono@java.pl> via
1497 Simon Josefsson <simon@josefsson.org>.
1499 2008-02-06 Bruno Haible <bruno@clisp.org>
1501 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1502 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1503 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1504 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1505 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1506 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1507 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1508 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1509 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1510 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1511 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1512 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1513 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1514 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1515 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1516 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1518 * tests/test-snprintf-posix.h (test_function): Likewise.
1519 * tests/test-sprintf-posix.h (test_function): Likewise.
1520 * tests/test-vasprintf-posix.c (test_function): Likewise.
1521 * doc/posix-functions/fprintf.texi: Update.
1522 * doc/posix-functions/printf.texi: Update.
1523 * doc/posix-functions/snprintf.texi: Update.
1524 * doc/posix-functions/sprintf.texi: Update.
1525 * doc/posix-functions/vfprintf.texi: Update.
1526 * doc/posix-functions/vprintf.texi: Update.
1527 * doc/posix-functions/vsnprintf.texi: Update.
1528 * doc/posix-functions/vsprintf.texi: Update.
1529 Reported by Peter Fales <psfales@alcatel-lucent.com>.
1531 2008-02-06 Bruno Haible <bruno@clisp.org>
1533 Fix bug introduced on 2008-01-26.
1534 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1536 2008-02-06 Bruno Haible <bruno@clisp.org>
1538 Fix bug introduced on 2007-06-10.
1539 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1540 !NEED_PRINTF_FLAG_ZERO.
1542 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
1544 getloadavg: use libperfstat on AIX5
1545 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1547 2008-02-03 Bruno Haible <bruno@clisp.org>
1549 * lib/diffseq.h: Add comments about required #includes.
1550 Reported by Michael Biggs <gnulib@doubleplum.net>.
1552 2008-02-01 Bruno Haible <bruno@clisp.org>
1554 * users.txt: Add gnuit.
1556 2008-01-31 Bruno Haible <bruno@clisp.org>
1558 * lib/md4.c (set_uint32): Mark as inline.
1559 * lib/md5.c (set_uint32): Likewise.
1560 * lib/sha1.c (set_uint32): Likewise.
1561 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1562 * m4/md5.m4 (gl_MD5): Likewise.
1563 * m4/sha1.m4 (gl_SHA1): Likewise.
1565 2008-01-31 Jim Meyering <meyering@redhat.com>
1567 Use "sizeof VAR", rather than a literal "4".
1568 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1569 * lib/md4.c (md4_read_ctx): Likewise.
1570 * lib/sha1.c (sha1_read_ctx): Likewise.
1572 2008-01-31 Simon Josefsson <simon@josefsson.org>
1574 * tests/test-sha1.c: New file, based on test-md5.c.
1576 * modules/crypto/sha1-tests: New file.
1578 2008-01-31 Simon Josefsson <simon@josefsson.org>
1580 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
1582 2008-01-31 Jim Meyering <meyering@redhat.com>
1584 Prefer "sizeof v" over the equivalent "4".
1585 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
1586 * lib/md5.c (set_uint32): Likewise.
1587 * lib/sha1.c (set_uint32): Likewise.
1589 2008-01-31 Simon Josefsson <simon@josefsson.org>
1591 * lib/sha1.c (set_uint32): Mark function as static.
1593 2008-01-31 Simon Josefsson <simon@josefsson.org>
1595 md2: clarify comments to say that alignment is not required.
1596 * lib/md2.h: Remove warning about alignment in comment.
1597 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
1598 never been required.
1600 2008-01-31 Simon Josefsson <simon@josefsson.org>
1602 md4: adapt alignment constraint fix from sha1.
1603 * lib/md4.c (set_uint32): New function, from sha1.c
1604 (md4_read_ctx): Use it.
1605 (md4_finish_ctx): Doc fix.
1606 * lib/md4.h: Doc fix.
1608 2008-01-31 Simon Josefsson <simon@josefsson.org>
1610 md5: adapt alignment constraint fix from sha1.
1611 * lib/md5.c (set_uint32): New function, from sha1.c
1612 (md5_read_ctx): Use it.
1613 (md5_finish_ctx): Doc fix.
1614 * lib/md5.h: Doc fix.
1616 2008-01-30 Peter Palfrader <weasel@debian.org>
1618 sha1: remove the result buffer alignment constraint
1619 * lib/sha1.c (set_uint32): New function.
1620 (sha1_read_ctx): Rewrite to remove the result buffer alignment
1622 (sha1_finish_ctx): Remove comment warning about alignment constraint.
1623 * lib/sha1.h: Likewise.
1625 2008-01-30 Andreas Schwab <schwab@suse.de>
1626 Bruno Haible <bruno@clisp.org>
1628 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
1629 correct definition of LDBL_MIN_EXP.
1631 2008-01-30 Karl Berry <karl@gnu.org>
1633 * config/srclist-update: try to preserve x bit on updates.
1634 * config/srclistvars.sh: update for karl.
1636 2008-01-29 Jim Meyering <meyering@redhat.com>
1638 vasnprintf.c: Avoid warning about unused label
1639 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
1640 "overflow" label definition and associated code with the
1641 same cpp condition that guards the sole use of that label.
1643 2008-01-26 Bruno Haible <bruno@clisp.org>
1645 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
1646 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
1647 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
1648 * lib/isnanl-nolibm.h (isnanl): Likewise.
1649 Reported by Paul Eggert <eggert@cs.ucla.edu>.
1651 2008-01-26 Bruno Haible <bruno@clisp.org>
1653 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
1654 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
1656 2008-01-26 Bruno Haible <bruno@clisp.org>
1658 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
1659 GCC >= 4.0 built-in.
1660 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
1662 2008-01-26 Bruno Haible <bruno@clisp.org>
1664 Rename isnan, applicable to 'double' only, to isnand.
1665 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
1666 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
1667 (configure.ac): Update.
1668 (Include): Replace "isnan.h" with "isnand.h".
1669 * m4/isnand.m4: Renamed from m4/isnan.m4.
1670 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
1671 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
1673 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
1674 instead of HAVE_ISNAN_IN_LIBC.
1675 (isnand): Renamed from isnan.
1676 * lib/isnand.c: New file.
1677 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
1678 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
1679 (Makefile.am): Update.
1680 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
1681 Include isnand.h instead of isnan.h.
1682 (main): Test isnand instead of isnan.
1683 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
1685 * modules/frexp (Depends-on): Likewise.
1686 * modules/frexp-tests (Depends-on): Likewise.
1687 * modules/frexp-nolibm (Depends-on): Likewise.
1688 * modules/frexp-nolibm-tests (Depends-on): Likewise.
1689 * modules/isfinite (Depends-on): Likewise.
1690 * modules/round-tests (Depends-on): Likewise.
1691 * modules/signbit (Depends-on): Likewise.
1692 * modules/signbit-tests (Depends-on): Likewise.
1693 * modules/snprintf-posix (Depends-on): Likewise.
1694 * modules/sprintf-posix (Depends-on): Likewise.
1695 * modules/trunc-tests (Depends-on): Likewise.
1696 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1697 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1698 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1699 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1700 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1701 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1702 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1703 * modules/vasnprintf-posix (Depends-on): Likewise.
1704 * modules/vasprintf-posix (Depends-on): Likewise.
1705 * modules/vfprintf-posix (Depends-on): Likewise.
1706 * modules/vsnprintf-posix (Depends-on): Likewise.
1707 * modules/vsprintf-posix (Depends-on): Likewise.
1708 * lib/frexp.c: Include isnand.h instead of isnan.h.
1709 (ISNAN): Set to isnand instead of isnan.
1710 * lib/isfinite.c: Include isnand.h instead of isnan.h.
1711 (gl_isfinited): Use isnand instead of isnan.
1712 * lib/signbitd.c: Include isnand.h instead of isnan.h.
1713 (gl_signbitd): Use isnand instead of isnan.
1714 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
1715 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
1716 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
1717 (main): Use isnand instead of isnan.
1718 * tests/test-round1.c: Include isnand.h.
1719 (main): Use isnand instead of isnan.
1720 * tests/test-round2.c: Include isnand.h instead of isnan.h.
1721 (ISNAN): Set to isnand instead of isnan.
1722 * tests/test-trunc1.c: Include isnand.h.
1723 (main): Use isnand instead of isnan.
1724 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
1725 (equal): Use isnand instead of isnan.
1726 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
1728 * NEWS: Mention the change.
1730 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
1731 Bruno Haible <bruno@clisp.org>
1733 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
1734 the GCC builtins for signbits are present and set
1735 REPLACE_SIGNBIT_USING_GCC if so.
1736 * lib/math.in.h (signbit): Define using GCC builtins if
1737 REPLACE_SIGNBIT_USING_GCC is set.
1738 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1739 REPLACE_SIGNBIT_USING_GCC.
1740 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
1742 2008-01-25 Jim Meyering <meyering@redhat.com>
1744 Prefer <config.h> over "config.h". See autoconf doc for explanation.
1745 * lib/poll.c: Include <config.h>, not "config.h".
1746 * tests/test-getaddrinfo.c: Likewise.
1748 2008-01-25 Simon Josefsson <simon@josefsson.org>
1750 * modules/sockets-tests: New file.
1752 2008-01-24 Simon Josefsson <simon@josefsson.org>
1754 * modules/sockets: New module, can be used to call WSA_Startup and
1755 WSA_Cleanup when needed.
1757 * lib/sockets.h, lib/sockets.c: New files.
1759 * m4/sockets.m4: New file.
1761 * tests/test-sockets.c: New file.
1763 2008-01-19 Bruno Haible <bruno@clisp.org>
1765 * doc/posix-headers: Renamed from doc/headers.
1766 * doc/posix-functions: Renamed from doc/functions.
1767 * doc/gnulib.texi: Update.
1769 2008-01-19 Bruno Haible <bruno@clisp.org>
1771 * doc/glibc-functions/strcasestr.texi: Include contents of
1772 doc/functions/strcasestr.texi, fixing the list of platforms.
1773 * doc/functions/strcasestr.texi: Remove file.
1775 2008-01-19 Bruno Haible <bruno@clisp.org>
1777 * doc/glibc-functions/memmem.texi: Include contents of
1778 doc/functions/memmem.texi.
1779 * doc/functions/memmem.texi: Remove file.
1781 2008-01-18 Bruno Haible <bruno@clisp.org>
1783 * doc/glibc-functions/*.texi: New files.
1784 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
1785 to use the new files.
1787 2008-01-17 Bruno Haible <bruno@clisp.org>
1789 * tests/test-gethostname.c (main): Fix printf statement.
1791 2008-01-17 Simon Josefsson <simon@josefsson.org>
1793 * modules/gethostname-tests: New file.
1795 * tests/test-gethostname.c: New file.
1797 2008-01-17 Simon Josefsson <simon@josefsson.org>
1799 * lib/gethostname.c: Include string.h unconditionally, strncpy is
1800 used by the UNAME case. Reported by Bruno Haible
1803 2008-01-17 Eric Blake <ebb9@byu.net>
1805 Convert c-strcasestr to be more efficient.
1806 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
1807 (Depends-on): Add c-strcase, remove malloca, strnlen.
1808 * tests/test-c-strcasestr.c (main): Enhance test.
1809 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
1811 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
1813 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
1814 Use it in creating po/Makevars.
1816 2008-01-15 Simon Josefsson <simon@josefsson.org>
1818 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
1819 Applications that requires it should initialize libgcrypt
1822 2008-01-16 Simon Josefsson <simon@josefsson.org>
1824 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
1826 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
1828 Fix problem with getdate on mingw32 reported by Simon Josefsson
1829 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
1830 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
1831 tzname", when deciding whether to declare tzname.
1832 * lib/strftime.c (tzname): Likewise.
1834 2008-01-15 Bruno Haible <bruno@clisp.org>
1836 Work around a MacOS X 10.5 bug in frexpl().
1837 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
1838 * doc/functions/frexpl.texi: Document the bug.
1839 Reported by Elias Pipping <pipping@gentoo.org>.
1841 2008-01-14 Eric Blake <ebb9@byu.net>
1843 Touch up previous patch.
1844 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
1845 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
1847 Convert strcasestr module to use Two-Way algorithm.
1848 * modules/strcasestr-simple: New module, based on the old
1849 strcasestr, but with Two-Way rather than KMP.
1850 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
1851 * lib/string.in.h (rpl_strcasestr): Declare.
1852 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
1854 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
1855 * modules/string (Makefile.am): Support strcasestr.
1856 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1857 * modules/strcasestr-tests (Depends-on): Check for alarm.
1858 * tests/test-strcasestr.c: Augment test.
1859 * lib/str-two-way.h: Clean up stray macro.
1860 * NEWS: Document new module.
1861 * MODULES.html.sh (string handling): Likewise.
1862 * doc/functions/strcasestr.texi: New file.
1863 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
1864 here, since it is not a POSIX function.
1866 2008-01-14 Colin Watson <cjwatson@debian.org>
1867 Bruno Haible <bruno@clisp.org>
1869 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
1870 works fine; if not, set REPLACE_STRSIGNAL.
1871 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
1872 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1874 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
1875 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
1876 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
1878 2008-01-14 Bruno Haible <bruno@clisp.org>
1880 * modules/strsignal (Include): Change to <string.h>.
1882 2008-01-14 Colin Watson <cjwatson@debian.org>
1884 * modules/argp (Notice): Add a notice recommending to change
1886 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
1888 2008-01-13 Colin Watson <cjwatson@debian.org>
1890 * modules/strsignal-tests: New file.
1891 * tests/test-strsignal.c: New file.
1893 * lib/strsignal.c: New file, from glibc with modifications.
1894 * lib/siglist.h: New file, from glibc with modifications.
1895 * lib/string.in.h (strsignal): New declaration.
1896 * m4/strsignal.m4: New file.
1897 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1898 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
1899 * modules/strsignal: New file.
1900 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
1901 HAVE_DECL_STRSIGNAL.
1903 2008-01-13 Bruno Haible <bruno@clisp.org>
1905 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
1906 locale encoding is not ASCII. Needed for OpenBSD 4.0.
1907 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1908 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1910 2008-01-13 Bruno Haible <bruno@clisp.org>
1912 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
1913 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
1914 * lib/argp.h (__attribute__): Likewise.
1915 * lib/c-stack.c (__attribute__): Likewise.
1916 * lib/error.h (__attribute__): Likewise.
1917 * lib/fts.c (__attribute__): Likewise.
1918 * lib/openat.h (__attribute__): Likewise.
1919 * lib/stdio.in.h (__attribute__): Likewise.
1920 * lib/string.in.h (__attribute__): Likewise.
1921 * lib/utimens.c (__attribute__): Likewise.
1922 * lib/vasnprintf.h (__attribute__): Likewise.
1923 * lib/xalloc.h (__attribute__): Likewise.
1924 * lib/xprintf.h (__attribute__): Likewise.
1925 * lib/xstrtol.h (__attribute__): Likewise.
1926 * lib/xvasprintf.h (__attribute__): Likewise.
1928 2008-01-12 Bruno Haible <bruno@clisp.org>
1930 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
1931 * doc/glibc-headers/a.out.texi: New file.
1932 * doc/glibc-headers/aliases.texi: New file.
1933 * doc/glibc-headers/alloca.texi: New file.
1934 * doc/glibc-headers/ar.texi: New file.
1935 * doc/glibc-headers/argp.texi: New file.
1936 * doc/glibc-headers/argz.texi: New file.
1937 * doc/glibc-headers/byteswap.texi: New file.
1938 * doc/glibc-headers/crypt.texi: New file.
1939 * doc/glibc-headers/endian.texi: New file.
1940 * doc/glibc-headers/envz.texi: New file.
1941 * doc/glibc-headers/err.texi: New file.
1942 * doc/glibc-headers/error.texi: New file.
1943 * doc/glibc-headers/execinfo.texi: New file.
1944 * doc/glibc-headers/fpu_control.texi: New file.
1945 * doc/glibc-headers/fstab.texi: New file.
1946 * doc/glibc-headers/fts.texi: New file.
1947 * doc/glibc-headers/getopt.texi: New file.
1948 * doc/glibc-headers/ieee754.texi: New file.
1949 * doc/glibc-headers/ifaddrs.texi: New file.
1950 * doc/glibc-headers/libintl.texi: New file.
1951 * doc/glibc-headers/mcheck.texi: New file.
1952 * doc/glibc-headers/mntent.texi: New file.
1953 * doc/glibc-headers/obstack.texi: New file.
1954 * doc/glibc-headers/paths.texi: New file.
1955 * doc/glibc-headers/printf.texi: New file.
1956 * doc/glibc-headers/pty.texi: New file.
1957 * doc/glibc-headers/resolv.texi: New file.
1958 * doc/glibc-headers/shadow.texi: New file.
1959 * doc/glibc-headers/sysexits.texi: New file.
1960 * doc/glibc-headers/ttyent.texi: New file.
1962 2008-01-12 Jim Meyering <meyering@redhat.com>
1964 announce-gen: emit Gnulib's git-based version string.
1965 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
1966 New option --gnulib-version=V, where V is expected to be
1967 the output of running git describe in the gnulib directory.
1968 (get_tool_versions): Request feedback on xdelta. I suspect it's
1969 not useful, and plan to stop publishing an xdelta file with each
1972 * build-aux/announce-gen: Also check for lzma-compressed files.
1974 2008-01-11 Bruno Haible <bruno@clisp.org>
1976 * tests/test-memmem.c (main): Increase maximum allowed time.
1977 * tests/test-strstr.c (main): Likewise.
1979 2008-01-11 Bruno Haible <bruno@clisp.org>
1981 * doc/functions/memmem.texi: Add more precisions about platforms.
1982 * doc/functions/strstr.texi: Likewise.
1984 2008-01-10 Eric Blake <ebb9@byu.net>
1986 * m4/strstr.m4: Delete cruft from copy-n-paste.
1987 Reported by Bruno Haible.
1989 2008-01-10 Bruno Haible <bruno@clisp.org>
1991 Make c-strstr rely on strstr.
1992 * lib/c-strstr.c: Don't include str-kmp.h.
1993 (c_strstr): Define in terms of strstr.
1994 * modules/c-strstr (Files): Remove lib/str-kmp.h.
1995 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
1997 2008-01-10 Bruno Haible <bruno@clisp.org>
1999 * doc/gnulib.texi (String Functions in C Locale): New section.
2000 * doc/c-ctype.texi: New file.
2001 * doc/c-strcase.texi: New file.
2002 * doc/c-strcaseeq.texi: New file.
2003 * doc/c-strcasestr.texi: New file.
2004 * doc/c-strstr.texi: New file.
2005 * doc/c-strtod.texi: New file.
2006 * doc/c-strtold.texi: New file.
2008 2008-01-10 Eric Blake <ebb9@byu.net>
2010 * lib/relocatable.h: Fix a comment.
2012 2008-01-10 Eric Blake <ebb9@byu.net>
2014 Share two-way algorithm.
2015 * lib/str-two-way.h: New file, merged from...
2016 * lib/memmem.c: ...here...
2017 * lib/strstr.c: ...and here.
2018 * modules/memmem (Files): Use it.
2019 * modules/strstr (Files): Likewise.
2021 Avoid quadratic strstr implementations.
2022 * lib/strstr.c: New file.
2023 * m4/strstr.m4: Likewise.
2024 * modules/strstr: Likewise.
2025 * modules/strstr-tests: Likewise.
2026 * tests/test-strstr.c: Likewise.
2027 * lib/string.in.h (rpl_strstr): Declare.
2028 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
2029 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
2030 * modules/string (Makefile.am): Likewise.
2031 * MODULES.html.sh (string handling): Mention new module.
2032 * doc/functions/strstr.texi (strstr): Document the bug.
2034 2008-01-10 Bruno Haible <bruno@clisp.org>
2036 * lib/relocatable.h (relocate): State whether result is freshly
2038 * lib/relocatable.c (relocate): Return a freshly allocated string
2039 instead of a pointer to a privately held string.
2040 Reported by Sylvain Beucler <beuc@gnu.org>.
2042 2008-01-10 Colin Watson <cjwatson@debian.org>
2044 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
2047 2008-01-09 Bruno Haible <bruno@clisp.org>
2049 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
2051 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
2052 if it's only a guess.
2053 * modules/memmem: Simplify by depending on memmem-simple.
2055 2008-01-09 Bruno Haible <bruno@clisp.org>
2057 Work around OpenBSD 4.0 tdelete() bug.
2058 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
2059 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
2060 macros and don't redefine the enum values.
2061 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
2062 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
2063 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
2065 2008-01-09 Bruno Haible <bruno@clisp.org>
2067 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
2068 (main): Don't perform the tests if setlocale did not install a UTF-8
2069 locale. Needed on OpenBSD 4.0.
2070 * modules/wcwidth-tests (Depends-on): Add localcharset.
2072 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
2074 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
2075 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
2076 * NEWS: announce this.
2077 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
2079 2008-01-09 Simon Josefsson <simon@josefsson.org>
2080 and Eric Blake <ebb9@byu.net>
2082 Add memmem-simple module.
2083 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
2084 (gl_FUNC_MEMMEM): Separate performance from presence checks.
2085 * modules/memmem-simple: New file.
2086 * modules/memmem (Description): Tweak.
2087 * MODULES.html.sh (string handling): Mention new module.
2088 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
2089 addressed by memmem-simple.
2090 * NEWS: Document the difference.
2092 2008-01-09 Eric Blake <ebb9@byu.net>
2094 Give gcc some memmem optimization hints.
2095 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
2096 (strcasestr): Declare as pure.
2097 * modules/memmem (Maintainer): Claim my implementation.
2099 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2101 Support AIX 6.1 and higher.
2102 * build-aux/config.libpath: Likewise.
2103 * build-aux/config.rpath: Likewise.
2105 2008-01-08 Jim Meyering <meyering@redhat.com>
2106 Bruno Haible <bruno@clisp.org>
2108 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
2109 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
2110 Reported by Peter Fales in
2111 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
2113 2008-01-08 Bruno Haible <bruno@clisp.org>
2115 * modules/unictype/category-of (Depends-on): Add
2116 unictype/category-none.
2117 * modules/unictype/category-and-tests (Depends-on): Add
2118 unictype/category-{L,N,Lu,Nd}.
2119 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
2120 * modules/unictype/category-or-tests (Depends-on): Add
2121 unictype/category-{L,N}.
2122 * modules/unictype/category-name-tests (Depends-on): Add
2123 unictype/category-{Z,Nl}.
2124 Reported by Simon Josefsson.
2126 2008-01-08 Bruno Haible <bruno@clisp.org>
2128 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
2130 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
2131 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
2132 Reported by Peter Miller <millerp@canb.auug.org.au>.
2134 2008-01-08 Eric Blake <ebb9@byu.net>
2136 Rewrite memmem to guarantee linear complexity without malloc.
2137 * lib/memmem.c (memmem): Use Two-Way rather than
2138 Knuth-Morris-Pratt, to allow O(1) space usage.
2139 (critical_factorization, two_way_short_needle)
2140 (two_way_long_needle): New functions.
2141 (knuth_morris_pratt): Delete.
2142 * modules/memmem (Depends-on): No longer need malloca or stdbool.
2144 * tests/test-memmem.c (main): Add tests for periodic needle and
2145 sublinear performance.
2146 * doc/functions/memmem.texi (memmem): Document other deficiencies
2147 in cygwin and older glibc.
2149 2008-01-08 Bruno Haible <bruno@clisp.org>
2151 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
2154 2008-01-08 Mike Frysinger <vapier@gentoo.org>
2156 Add a configure time option: --disable-acl.
2157 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
2160 2008-01-06 Simon Josefsson <simon@josefsson.org>
2162 * tests/test-localename.c: Don't include obsolete "setenv.h".
2164 * modules/localename-tests (Depends-on): Need unsetenv.
2166 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2168 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
2170 2008-01-06 Colin Watson <cjwatson@debian.org>
2172 * users.txt: Add man-db.
2174 2008-01-07 Bruno Haible <bruno@clisp.org>
2176 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
2177 previous section name.
2179 2008-01-07 Bruno Haible <bruno@clisp.org>
2181 * lib/progname.c (set_program_name): Don't strip off a leading
2182 "lt-" prefix outside a .libs directory.
2183 Suggested by Paul Eggert.
2185 2008-01-01 Sylvain Beucler <beuc@gnu.org>
2186 Bruno Haible <bruno@clisp.org>
2188 Improve memory cleanup in 'relocatable' module.
2189 * lib/relocatable.h (compute_curr_prefix): Change return type to
2191 * lib/relocatable.c (compute_curr_prefix): Change return type to
2192 'char *'. Free curr_installdir after use.
2193 (relocate): Free curr_prefix_better after use.
2194 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
2196 2008-01-01 Bruno Haible <bruno@clisp.org>
2198 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
2199 failure on older glibc systems.
2200 Reported by Peter Fales <psfales@alcatel-lucent.com>.
2202 2008-01-05 Eric Blake <ebb9@byu.net>
2204 Avoid quadratic system memmem.
2205 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
2206 Reported by Ralf Wildenhues.
2208 Fix memmem test for mingw.
2209 * modules/memmem-tests (configure.ac): Check for alarm.
2210 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
2212 * doc/functions/memmem.texi: New file.
2213 * doc/gnulib.texi (Function Substitutes): Add memmem.
2214 Reported by Bruno Haible.
2216 2008-01-04 Bruno Haible <bruno@clisp.org>
2218 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
2219 Require gl_HEADER_STRINGS_H_DEFAULTS, not
2220 gl_HEADER_STRING_H_DEFAULTS.
2222 2008-01-04 Eric Blake <ebb9@byu.net>
2224 Shorten duration of memmem test.
2225 * tests/test-memmem.c (main): Use alarm to declare failure if test
2227 Reported by Ralf Wildenhues.
2229 2007-12-21 Simon Josefsson <simon@josefsson.org>
2231 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
2232 string, needed by strerror.
2234 2008-01-03 Colin Watson <cjwatson@debian.org>
2235 Bruno Haible <bruno@clisp.org>
2237 * doc/gnulib-tool.texi (Localization): New section.
2239 2008-01-02 Bruno Haible <bruno@clisp.org>
2241 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
2242 variables to 'unsigned char *' type.
2243 Reported by Paul Eggert.
2245 2008-01-02 Jim Meyering <jim@meyering.net>
2247 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
2249 2007-12-31 Jim Meyering <jim@meyering.net>
2251 Avoid use of private FTS type name.
2252 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
2254 2007-12-30 Karl Berry <karl@gnu.org>
2256 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
2257 work around defect in Texinfo and/or the standalone Info browser.
2259 2007-12-30 Bruno Haible <bruno@clisp.org>
2261 Unify 5 copies of the KMP code.
2262 * lib/str-kmp.h: New file.
2263 * lib/c-strcasestr.c: Include str-kmp.h.
2264 (knuth_morris_pratt): Remove function.
2265 (c_strcasestr): Update.
2266 * lib/c-strstr.c: Include str-kmp.h.
2267 (knuth_morris_pratt): Remove function.
2268 (c_strcasestr): Update.
2269 * lib/mbscasestr.c: Include str-kmp.h.
2270 (knuth_morris_pratt_unibyte): Remove function.
2271 * lib/mbsstr.c: Include str-kmp.h.
2272 (knuth_morris_pratt_unibyte): Remove function.
2273 * lib/strcasestr.c: Include str-kmp.h.
2274 (knuth_morris_pratt): Remove function.
2275 (strcasestr): Update.
2276 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
2277 * modules/c-strstr (Files): Likewise.
2278 * modules/mbscasestr (Files): Likewise.
2279 * modules/mbsstr (Files): Likewise.
2280 * modules/strcasestr (Files): Likewise.
2281 Suggested by Paul Eggert.
2283 2007-12-30 Bruno Haible <bruno@clisp.org>
2285 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
2288 2007-12-30 Bruno Haible <bruno@clisp.org>
2290 * lib/xmalloca.h: Include xalloc.h.
2291 (xnmalloca): New macro.
2293 2007-12-30 Bruno Haible <bruno@clisp.org>
2295 * lib/malloca.h (nmalloca): New macro.
2296 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
2297 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
2298 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
2299 knuth_morris_pratt_multibyte): Likewise.
2300 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
2301 knuth_morris_pratt_multibyte): Likewise.
2302 * lib/memmem.c (knuth_morris_pratt): Likewise.
2303 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
2305 2007-12-25 Bruno Haible <bruno@clisp.org>
2307 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
2308 * lib/glob.c: Don't include openat.h.
2309 (link_exists2_p): Add back the code that deals with the
2310 !GLOB_ALTDIRFUNC case.
2311 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
2312 let it do the filename concatenation.
2313 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
2314 * modules/glob (Depends-on): Remove openat.
2316 2007-12-31 Bruno Haible <bruno@clisp.org>
2318 * modules/dirfd (License): Change to LGPLv2+.
2319 Approved by Jim Meyering.
2321 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
2323 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
2324 when multiplying M by sizeof (size_t).
2326 2007-12-10 Martin Lambers <marlam@marlam.de>
2328 Override getpagesize on mingw.
2329 * lib/getpagesize.c: New file.
2330 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
2331 * modules/getpagesize (Files): Add lib/getpagesize.c.
2332 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
2333 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2334 REPLACE_GETPAGESIZE.
2335 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
2337 2007-12-25 Bruno Haible <bruno@clisp.org>
2339 * modules/localcharset (Notice): New field.
2340 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
2341 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2343 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
2344 Bruno Haible <bruno@clisp.org>
2346 Avoid using the syntax symbol() in formatted documentation.
2347 * MODULES.html.sh (func_module): When replacing symbol() with a
2348 hyperlink, remove the parentheses. Show an error if some remain.
2349 Recognize and render the '...' syntax.
2350 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
2351 Rework. Add paragraph about GCC's inlining.
2352 * doc/alloca.texi: Likewise.
2353 * doc/error.texi: Remove parentheses from symbol reference.
2354 * doc/gnulib-intro.texi: Likewise.
2355 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
2356 * modules/fnmatch (Description): Reword to say "the ... function".
2357 * modules/full-read (Description): Likewise.
2358 * modules/full-write (Description): Likewise.
2359 * modules/safe-read (Description): Likewise.
2360 * modules/safe-write (Description): Likewise.
2361 * modules/strchrnul (Description): Likewise.
2362 * modules/trim (Description): Likewise.
2363 * modules/error (Description): Remove parentheses from symbol
2365 * modules/verror (Description): Likewise.
2366 Reported by Karl Berry.
2368 2007-12-25 Bruno Haible <bruno@clisp.org>
2370 Fixup after 2007-10-16 commit.
2371 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
2373 2007-12-24 Bruno Haible <bruno@clisp.org>
2375 Make --enable-relocatable work with DESTDIR.
2376 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
2377 to compute installdir from destprog.
2378 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
2379 also set the RELOC_DESTDIR variable.
2380 Reported by Левашев Иван <octagram@bluebottle.com>.
2382 2007-12-24 Bruno Haible <bruno@clisp.org>
2384 Fix link error due to xalloc_die().
2385 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
2387 * lib/relocwrapper.c: Update comments.
2388 * build-aux/install-reloc: Remove xreadlink.c from file list.
2389 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
2391 Reported by Левашев Иван <octagram@bluebottle.com>.
2393 2007-12-24 Bruno Haible <bruno@clisp.org>
2395 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
2396 * lib/setenv.h: Remove file.
2397 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
2399 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
2400 (Depends-on): Add stdlib.
2401 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
2403 (Include): Replace setenv.h with <stdlib.h>.
2404 * modules/unsetenv: New file.
2405 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2406 * lib/unsetenv.c: Include <stdlib.h> first.
2407 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2408 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2409 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2410 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2411 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2412 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2413 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2414 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2415 * doc/functions/unsetenv.texi: Update.
2416 * modules/xsetenv (Depends-on): Add unsetenv.
2417 * modules/getdate (Depends-on): Likewise.
2418 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2419 * lib/xsetenv.c: Don't include setenv.h.
2420 * lib/getdate.y: Likewise.
2421 * lib/relocwrapper.c: Likewise.
2422 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2423 (Depends-on): Add stdlib.
2424 * NEWS: Mention the changes.
2425 Reported by Левашев Иван <octagram@bluebottle.com>.
2427 2007-12-23 Bruno Haible <bruno@clisp.org>
2429 * lib/memmem.c (memmem): Use lowercase variable names. Tab
2432 2007-12-23 Bruno Haible <bruno@clisp.org>
2434 * lib/c-strcasestr.c: Add more comments.
2435 * lib/c-strstr.c: Likewise.
2436 * lib/mbscasestr.c: Likewise.
2437 * lib/mbsstr.c: Likewise.
2438 * lib/strcasestr.c: Likewise.
2439 * lib/memmem.c: Likewise.
2441 2007-12-23 Bruno Haible <bruno@clisp.org>
2443 * tests/test-memmem.c: Include <string.h> first.
2445 2007-12-22 Bruno Haible <bruno@clisp.org>
2447 * gnulib-tool (func_create_testdir): Change $auxdir while generating
2448 the contents of $testsbase.
2449 Reported by Ralf Wildenhues.
2451 2007-12-22 Bruno Haible <bruno@clisp.org>
2453 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2454 two variables local_ldadd_before, local_ldadd_last.
2456 2007-12-20 Eric Blake <ebb9@byu.net>
2458 Work around circular library issue when cross-compiling.
2459 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2460 that progname.o does not need to pull in rpl_memcmp.
2462 2007-12-19 Eric Blake <ebb9@byu.net>
2464 Fix memmem to avoid O(n^2) worst-case complexity.
2465 * lib/memmem.c (knuth_morris_pratt): New function.
2466 (memmem): Use it if first few naive iterations fail.
2467 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2468 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2469 * modules/memchr (License): Likewise.
2470 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2472 * tests/test-memmem.c: Rewrite, borrowing ideas from
2473 test-mbsstr1.c; the old version wouldn't even compile!
2474 * modules/memmem-tests: New file.
2475 * lib/string.in.h (rpl_memmem): Add declaration.
2476 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2477 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2480 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
2482 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2483 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2484 before any system include files, and undef after them all. This
2485 should fix a problem on VMS reported by John E. Malmberg in
2486 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2488 2007-12-17 Eric Blake <ebb9@byu.net>
2490 Revert addition of verify, for BSD/OS.
2491 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2492 can't handle large files, for the sake of obsolete platforms.
2493 * modules/fseeko (Depends-on): Remove verify.
2494 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2495 * doc/functions/ftello.texi (ftello): Likewise.
2496 * doc/functions/fgetpos.texi (fgetpos): Likewise.
2497 Reported by Larry Jones.
2499 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
2501 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2502 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2504 2007-12-17 Jim Meyering <meyering@redhat.com>
2506 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2507 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2508 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2509 * modules/getcwd (Depends-on): Add openat.
2510 Reported by Petr Salinger.
2512 2007-12-17 Bruno Haible <bruno@clisp.org>
2514 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2515 avoid a segmentation fault of the configure test on x86_64 systems.
2517 2007-12-15 Jim Meyering <meyering@redhat.com>
2519 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2521 2007-12-13 Eric Blake <ebb9@byu.net>
2524 * tests/test-fseek.c (main): Also test ungetc handling.
2525 * tests/test-fseeko.c (main): Likewise.
2526 * modules/fseeko (Depends-on): Add verify.
2527 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2529 Reported by Larry Jones.
2531 Fix fseeko on mingw.
2532 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2535 Beef up fseek tests.
2536 * tests/test-fseek.c (main): Also test eof handling.
2537 * tests/test-fseeko.c (main): Likewise.
2538 Reported by Larry Jones.
2540 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
2542 Fix fseeko on BSD-based platforms.
2543 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2546 2007-12-12 Eric Blake <ebb9@byu.net>
2548 Allow circular dependency of separate libtests.a
2549 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2552 2007-12-11 Eric Blake <ebb9@byu.net>
2554 Fix bug with -0.0L in previous patch.
2555 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2556 * tests/test-isnan.c (main): Also test on zeroes.
2557 * tests/test-isnanf.c (main): Likewise.
2558 * tests/test-isnanl.h (main): Likewise.
2560 Detect pseudo-denormals on x86 even when cross-compiling.
2561 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2562 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2563 invalid bit patterns that happen to satisfy ==.
2565 Avoid link failures with separate libtests.a.
2566 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2567 last, to satisfy circular dependencies.
2569 2007-12-11 Eric Blake <ebb9@byu.net>
2570 and Bruno Haible <bruno@clisp.org>
2572 Fix OpenBSD 4.0 <float.h> handling of long double.
2573 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2574 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2575 * doc/headers/float.texi (float.h): Document OpenBSD bug.
2577 2007-12-11 Jim Meyering <meyering@redhat.com>
2579 * users.txt: Add libvirt.
2581 Support versions of autoconf prior to 2.59c.
2582 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
2583 if it is not already defined.
2585 2007-12-09 Bruno Haible <bruno@clisp.org>
2587 Let 'gnulib-tool --import' collect sources needed for the tests in
2588 tests/ rather than in lib/.
2589 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
2590 argument. If true, add rules to generate libtests.a, and put libtests.a
2591 into $(LDADD). Consider source files in subdirectories and set
2593 (func_emit_initmacro_start, func_emit_initmacro_end,
2594 func_emit_initmacro_done): Pass all arguments explicitly.
2595 (func_import): Determine two module lists main_modules,
2596 testsrelated_modules. Determine use_libtests. Determine two variables
2597 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
2598 instead of just sed_transform_lib_file. Determine two variables
2599 main_files and testsrelated_files. Compute 'files' as the union of
2600 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
2601 func_add_or_update. In the generated gnulib-comp.m4, collect the
2602 object files for tests/ in different variables than those for lib/.
2603 Substitute LIBTESTS_LIBDEPS.
2604 (func_create_testdir): Combine the uses_subdirs results from
2605 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
2607 2007-12-09 Bruno Haible <bruno@clisp.org>
2609 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
2610 the build-aux directory.
2612 2007-12-09 Bruno Haible <bruno@clisp.org>
2614 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
2615 introduced on 2006-09-09.
2617 2007-12-07 Jim Meyering <meyering@redhat.com>
2619 Let these macros work also with autoconf-2.59.
2620 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
2621 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
2622 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2624 2007-12-06 Jim Meyering <meyering@redhat.com>
2626 Avoid a configure-time syntax error in gl_FUNC_ACL.
2627 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
2628 function in each branch, before testing the cache variable.
2630 2007-12-04 Eric Blake <ebb9@byu.net>
2632 Make scripts executable.
2633 * build-aux/config.guess: Add execute permissions.
2634 * build-aux/config.sub: Likewise.
2635 * build-aux/gendocs.sh: Likewise.
2638 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
2640 * doc/functions/frexp.texi (frexp): Document the bug.
2642 Make cygwin fseeko check more reliable.
2643 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
2644 version numbers, rather than unrelated feature check.
2645 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
2646 * doc/functions/ftello.texi (ftello): Likewise.
2647 Reported by Bruno Haible.
2649 * m4/strerror.m4: Bump version number.
2651 2007-12-03 Bruno Haible <bruno@clisp.org>
2653 * doc/functions/mprotect.texi: Mention the mingw problem.
2655 2007-12-03 Eric Blake <ebb9@byu.net>
2657 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
2658 REPLACE_STRERROR is initialized before this macro.
2660 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
2662 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
2663 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
2664 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
2665 put -lsec in even for programs other than 'ls'. This fixes a problem
2666 for gettext reported by Bruno Haible in
2667 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
2668 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
2669 Add support for Solaris 10. This isn't efficient, but should get the
2672 2007-12-03 James Youngman <jay@gnu.org>
2674 * doc/regexprops-generic.texi: change "an close-group" to "a
2675 close-group" and "illegal" to "not allowed".
2677 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2679 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
2680 pr_byname.h. Needed for the rare case when the maintainer has done
2681 "make maintainer-clean" in the source directory and then attempts a
2682 build outside the source directory.
2683 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
2686 2007-12-02 Martin Lambers <marlam@marlam.de>
2687 Bruno Haible <bruno@clisp.org>
2689 * lib/getpagesize.h: Remove file.
2690 * lib/unistd.in.h: Include declaration of getpagesize here.
2691 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
2692 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
2694 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
2695 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2696 * modules/getpagesize (Files): Remove lib/getpagesize.h.
2697 (Depends-on): Add unistd.
2698 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
2699 (Include): Use <unistd.h> instead of getpagesize.h.
2700 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
2701 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
2702 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
2703 gl_GETPAGESIZE invocation, already handled by module dependency.
2704 * lib/pagealign_alloc.c: Don't include getpagesize.h.
2706 2007-12-02 Bruno Haible <bruno@clisp.org>
2708 * modules/strings-tests: New file.
2709 * tests/test-strings.c: New file.
2711 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
2712 * lib/strings.in.h: New file.
2713 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
2714 * m4/strings_h.m4: New file.
2715 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
2716 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
2717 * modules/strings: New file.
2718 * modules/string (Makefile.am): Update.
2719 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
2720 Reported by Karl Berry.
2722 2007-12-01 Eric Blake <ebb9@byu.net>
2724 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
2725 accomodate fix in cygwin 1.5.25.
2727 2007-12-01 Jim Meyering <meyering@redhat.com>
2729 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
2730 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
2731 that would inhibit utf8-optimization of a regexp containing line-
2732 or buffer-anchors, e.g., `^', `$'.
2734 2007-11-30 Bruno Haible <bruno@clisp.org>
2736 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
2737 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
2738 glthread_recursive_lock_init.
2739 * lib/lock.c (glthread_recursive_lock_init)
2740 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
2741 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2743 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
2745 New function qset_acl, like set_acl but with syscall semantics.
2746 * lib/acl.h (qset_acl): New decl.
2747 * lib/acl.c (qset_acl): New function.
2748 (set_acl): Use new function. Use more-consistent diagnostics.
2750 2007-11-28 Jim Meyering <meyering@redhat.com>
2752 * modules/physmem (License): Change from GPL to LGPLv2+.
2754 2007-11-26 Bruno Haible <bruno@clisp.org>
2756 * lib/vasnprintf.c (decode_long_double): Don't abort if the
2757 'long double' type has excess precision.
2758 Reported by Jim Meyering in
2759 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
2761 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2763 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
2764 Sync from <http://gnu.org/licenses>.
2765 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
2766 with license text from same location.
2767 * doc/maintain.texi, doc/standards.texi: Sync from
2768 <http://savannah.gnu.org/projects/gnustandards>.
2770 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
2771 and Jim Meyering <meyering@redhat.com>
2773 Adjust getdate' grammar to accept a slightly more regular language.
2774 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
2775 Before, the former was rejected.
2776 * lib/getdate.y (digits_to_date_time): New function, factored
2778 (number): ...here. Just call digits_to_date_time.
2779 (hybrid): New non-terminal to handle an <unsigned number,
2780 signed relative offset> sequence consistently.
2782 2007-11-18 Jim Meyering <meyering@redhat.com>
2784 Pull my changes from coreutils:
2785 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
2786 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
2787 use of $gnulib_tool_option_extras, so that it's separated from the
2790 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
2791 * build-aux/bootstrap (cp_mark_as_generated): Create any required
2792 parent destination directories before copying a file into place.
2794 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
2796 bootstrap: work also with 4-argument variant of AC_INIT
2797 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
2799 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
2801 Port test-getaddrinfo to Solaris.
2802 Problem reported by Bruno Haible in
2803 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
2804 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
2805 explanation of setting 'hints'.
2806 Don't reject an implementation merely because it returns EAI_SERVICE.
2807 (EAI_SERVICE): Define to 0 if not defined.
2809 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
2811 The license of gnu-make and posix-shell is now "GPLed build tool".
2812 * modules/gnu-make (License): Likewise.
2813 * modules/posix-shell (License): Likewise.
2815 New module posix-shell, for determining a POSIX shell
2816 or perhaps something that is close enough to a POSIX shell.
2817 * m4/posix-shell.m4: New file.
2818 * modules/posix-shell: New file.
2820 * MODULES.html.sh: Mention new module.
2822 New module gnu-make, for determining whether we're using GNU Make.
2823 * m4/gnu-make.m4: New file.
2824 * modules/gnu-make: New file.
2825 * MODULES.html.sh: Mention new module.
2827 2007-11-14 Jim Meyering <meyering@redhat.com>
2829 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
2830 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
2831 use this macro to create a function _definition_.
2832 Remove useless "#undef ARGMATCH_DIE".
2834 2007-11-14 Bruno Haible <bruno@clisp.org>
2836 * lib/config.charset: Update for OpenBSD 4.1.
2837 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
2839 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
2841 Document 64-bit #if problems in stdint.texi.
2842 * doc/headers/stdint.texi (stdint.h): Mention problems with
2843 64-bit-#if, and how to work around them.
2845 Don't insist on 'long long int' support in the preprocessor. It
2846 breaks too many things. For example, PRIdMAX still uses a 'long
2847 long int' format with the latest Sun compiler, even though
2848 HAVE_LONG_LONG_INT isn't defined due to that compiler's
2849 preprocessor problem. This causes the latest coreutils to dump
2850 core on Solaris 10 sparc with the Sun C compiler.
2851 Instead, fix the 2007-10-16 problem in a different way, by evaluating
2852 the troublesome expressions at configure-time, not at #if-time.
2853 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
2855 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
2856 compile-time C checks, done at 'configure'-time.
2857 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
2858 * modules/inttypes (Makefile): Substitute the new symbols that
2859 gl_INTTYPES_H now generates.
2860 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
2862 2007-11-12 Bruno Haible <bruno@clisp.org>
2864 Tests for Unicode character classification functions.
2866 * modules/unictype/bidicategory-byname-tests: New file.
2867 * modules/unictype/bidicategory-name-tests: New file.
2868 * modules/unictype/bidicategory-of-tests: New file.
2869 * modules/unictype/bidicategory-test-tests: New file.
2870 * modules/unictype/block-list-tests: New file.
2871 * modules/unictype/block-of-tests: New file.
2872 * modules/unictype/block-test-tests: New file.
2873 * modules/unictype/category-C-tests: New file.
2874 * modules/unictype/category-Cc-tests: New file.
2875 * modules/unictype/category-Cf-tests: New file.
2876 * modules/unictype/category-Cn-tests: New file.
2877 * modules/unictype/category-Co-tests: New file.
2878 * modules/unictype/category-Cs-tests: New file.
2879 * modules/unictype/category-L-tests: New file.
2880 * modules/unictype/category-Ll-tests: New file.
2881 * modules/unictype/category-Lm-tests: New file.
2882 * modules/unictype/category-Lo-tests: New file.
2883 * modules/unictype/category-Lt-tests: New file.
2884 * modules/unictype/category-Lu-tests: New file.
2885 * modules/unictype/category-M-tests: New file.
2886 * modules/unictype/category-Mc-tests: New file.
2887 * modules/unictype/category-Me-tests: New file.
2888 * modules/unictype/category-Mn-tests: New file.
2889 * modules/unictype/category-N-tests: New file.
2890 * modules/unictype/category-Nd-tests: New file.
2891 * modules/unictype/category-Nl-tests: New file.
2892 * modules/unictype/category-No-tests: New file.
2893 * modules/unictype/category-P-tests: New file.
2894 * modules/unictype/category-Pc-tests: New file.
2895 * modules/unictype/category-Pd-tests: New file.
2896 * modules/unictype/category-Pe-tests: New file.
2897 * modules/unictype/category-Pf-tests: New file.
2898 * modules/unictype/category-Pi-tests: New file.
2899 * modules/unictype/category-Po-tests: New file.
2900 * modules/unictype/category-Ps-tests: New file.
2901 * modules/unictype/category-S-tests: New file.
2902 * modules/unictype/category-Sc-tests: New file.
2903 * modules/unictype/category-Sk-tests: New file.
2904 * modules/unictype/category-Sm-tests: New file.
2905 * modules/unictype/category-So-tests: New file.
2906 * modules/unictype/category-Z-tests: New file.
2907 * modules/unictype/category-Zl-tests: New file.
2908 * modules/unictype/category-Zp-tests: New file.
2909 * modules/unictype/category-Zs-tests: New file.
2910 * modules/unictype/category-and-not-tests: New file.
2911 * modules/unictype/category-and-tests: New file.
2912 * modules/unictype/category-byname-tests: New file.
2913 * modules/unictype/category-name-tests: New file.
2914 * modules/unictype/category-none-tests: New file.
2915 * modules/unictype/category-of-tests: New file.
2916 * modules/unictype/category-or-tests: New file.
2917 * modules/unictype/category-test-withtable-tests: New file.
2918 * modules/unictype/combining-class-tests: New file.
2919 * modules/unictype/ctype-alnum-tests: New file.
2920 * modules/unictype/ctype-alpha-tests: New file.
2921 * modules/unictype/ctype-blank-tests: New file.
2922 * modules/unictype/ctype-cntrl-tests: New file.
2923 * modules/unictype/ctype-digit-tests: New file.
2924 * modules/unictype/ctype-graph-tests: New file.
2925 * modules/unictype/ctype-lower-tests: New file.
2926 * modules/unictype/ctype-print-tests: New file.
2927 * modules/unictype/ctype-punct-tests: New file.
2928 * modules/unictype/ctype-space-tests: New file.
2929 * modules/unictype/ctype-upper-tests: New file.
2930 * modules/unictype/ctype-xdigit-tests: New file.
2931 * modules/unictype/decimal-digit-tests: New file.
2932 * modules/unictype/digit-tests: New file.
2933 * modules/unictype/mirror-tests: New file.
2934 * modules/unictype/numeric-tests: New file.
2935 * modules/unictype/property-alphabetic-tests: New file.
2936 * modules/unictype/property-ascii-hex-digit-tests: New file.
2937 * modules/unictype/property-bidi-arabic-digit-tests: New file.
2938 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
2939 * modules/unictype/property-bidi-block-separator-tests: New file.
2940 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
2941 * modules/unictype/property-bidi-common-separator-tests: New file.
2942 * modules/unictype/property-bidi-control-tests: New file.
2943 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
2944 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
2945 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
2946 * modules/unictype/property-bidi-european-digit-tests: New file.
2947 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
2948 * modules/unictype/property-bidi-left-to-right-tests: New file.
2949 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
2950 * modules/unictype/property-bidi-other-neutral-tests: New file.
2951 * modules/unictype/property-bidi-pdf-tests: New file.
2952 * modules/unictype/property-bidi-segment-separator-tests: New file.
2953 * modules/unictype/property-bidi-whitespace-tests: New file.
2954 * modules/unictype/property-byname-tests: New file.
2955 * modules/unictype/property-combining-tests: New file.
2956 * modules/unictype/property-composite-tests: New file.
2957 * modules/unictype/property-currency-symbol-tests: New file.
2958 * modules/unictype/property-dash-tests: New file.
2959 * modules/unictype/property-decimal-digit-tests: New file.
2960 * modules/unictype/property-default-ignorable-code-point-tests: New file.
2961 * modules/unictype/property-deprecated-tests: New file.
2962 * modules/unictype/property-diacritic-tests: New file.
2963 * modules/unictype/property-extender-tests: New file.
2964 * modules/unictype/property-format-control-tests: New file.
2965 * modules/unictype/property-grapheme-base-tests: New file.
2966 * modules/unictype/property-grapheme-extend-tests: New file.
2967 * modules/unictype/property-grapheme-link-tests: New file.
2968 * modules/unictype/property-hex-digit-tests: New file.
2969 * modules/unictype/property-hyphen-tests: New file.
2970 * modules/unictype/property-id-continue-tests: New file.
2971 * modules/unictype/property-id-start-tests: New file.
2972 * modules/unictype/property-ideographic-tests: New file.
2973 * modules/unictype/property-ids-binary-operator-tests: New file.
2974 * modules/unictype/property-ids-trinary-operator-tests: New file.
2975 * modules/unictype/property-ignorable-control-tests: New file.
2976 * modules/unictype/property-iso-control-tests: New file.
2977 * modules/unictype/property-join-control-tests: New file.
2978 * modules/unictype/property-left-of-pair-tests: New file.
2979 * modules/unictype/property-line-separator-tests: New file.
2980 * modules/unictype/property-logical-order-exception-tests: New file.
2981 * modules/unictype/property-lowercase-tests: New file.
2982 * modules/unictype/property-math-tests: New file.
2983 * modules/unictype/property-non-break-tests: New file.
2984 * modules/unictype/property-not-a-character-tests: New file.
2985 * modules/unictype/property-numeric-tests: New file.
2986 * modules/unictype/property-other-alphabetic-tests: New file.
2987 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
2988 * modules/unictype/property-other-grapheme-extend-tests: New file.
2989 * modules/unictype/property-other-id-continue-tests: New file.
2990 * modules/unictype/property-other-id-start-tests: New file.
2991 * modules/unictype/property-other-lowercase-tests: New file.
2992 * modules/unictype/property-other-math-tests: New file.
2993 * modules/unictype/property-other-uppercase-tests: New file.
2994 * modules/unictype/property-paired-punctuation-tests: New file.
2995 * modules/unictype/property-paragraph-separator-tests: New file.
2996 * modules/unictype/property-pattern-syntax-tests: New file.
2997 * modules/unictype/property-pattern-white-space-tests: New file.
2998 * modules/unictype/property-private-use-tests: New file.
2999 * modules/unictype/property-punctuation-tests: New file.
3000 * modules/unictype/property-quotation-mark-tests: New file.
3001 * modules/unictype/property-radical-tests: New file.
3002 * modules/unictype/property-sentence-terminal-tests: New file.
3003 * modules/unictype/property-soft-dotted-tests: New file.
3004 * modules/unictype/property-space-tests: New file.
3005 * modules/unictype/property-terminal-punctuation-tests: New file.
3006 * modules/unictype/property-test-tests: New file.
3007 * modules/unictype/property-titlecase-tests: New file.
3008 * modules/unictype/property-unassigned-code-value-tests: New file.
3009 * modules/unictype/property-unified-ideograph-tests: New file.
3010 * modules/unictype/property-uppercase-tests: New file.
3011 * modules/unictype/property-variation-selector-tests: New file.
3012 * modules/unictype/property-white-space-tests: New file.
3013 * modules/unictype/property-xid-continue-tests: New file.
3014 * modules/unictype/property-xid-start-tests: New file.
3015 * modules/unictype/property-zero-width-tests: New file.
3016 * modules/unictype/scripts-tests: New file.
3017 * modules/unictype/syntax-c-ident-tests: New file.
3018 * modules/unictype/syntax-c-whitespace-tests: New file.
3019 * modules/unictype/syntax-java-ident-tests: New file.
3020 * modules/unictype/syntax-java-whitespace-tests: New file.
3021 * tests/unictype/test-bidi_byname.c: New file.
3022 * tests/unictype/test-bidi_name.c: New file.
3023 * tests/unictype/test-bidi_of.c: New file.
3024 * tests/unictype/test-bidi_test.c: New file.
3025 * tests/unictype/test-block_list.c: New file.
3026 * tests/unictype/test-block_of.c: New file.
3027 * tests/unictype/test-block_test.c: New file.
3028 * tests/unictype/test-categ_and.c: New file.
3029 * tests/unictype/test-categ_and_not.c: New file.
3030 * tests/unictype/test-categ_byname.c: New file.
3031 * tests/unictype/test-categ_name.c: New file.
3032 * tests/unictype/test-categ_none.c: New file.
3033 * tests/unictype/test-categ_of.c: New file.
3034 * tests/unictype/test-categ_or.c: New file.
3035 * tests/unictype/test-categ_test_withtable.c: New file.
3036 * tests/unictype/test-combining.c: New file.
3037 * tests/unictype/test-decdigit.c: New file.
3038 * tests/unictype/test-digit.c: New file.
3039 * tests/unictype/test-mirror.c: New file.
3040 * tests/unictype/test-numeric.c: New file.
3041 * tests/unictype/test-pr_byname.c: New file.
3042 * tests/unictype/test-pr_test.c: New file.
3043 * tests/unictype/test-predicate-part1.h: New file.
3044 * tests/unictype/test-predicate-part2.h: New file.
3045 * tests/unictype/test-scripts.c: New file.
3046 * tests/unictype/test-sy_c_ident.c: New file.
3047 * tests/unictype/test-sy_java_ident.c: New file.
3049 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
3051 * tests/unictype/test-categ_Cc.c: Likewise.
3052 * tests/unictype/test-categ_Cf.c: Likewise.
3053 * tests/unictype/test-categ_Cn.c: Likewise.
3054 * tests/unictype/test-categ_Co.c: Likewise.
3055 * tests/unictype/test-categ_Cs.c: Likewise.
3056 * tests/unictype/test-categ_L.c: Likewise.
3057 * tests/unictype/test-categ_Ll.c: Likewise.
3058 * tests/unictype/test-categ_Lm.c: Likewise.
3059 * tests/unictype/test-categ_Lo.c: Likewise.
3060 * tests/unictype/test-categ_Lt.c: Likewise.
3061 * tests/unictype/test-categ_Lu.c: Likewise.
3062 * tests/unictype/test-categ_M.c: Likewise.
3063 * tests/unictype/test-categ_Mc.c: Likewise.
3064 * tests/unictype/test-categ_Me.c: Likewise.
3065 * tests/unictype/test-categ_Mn.c: Likewise.
3066 * tests/unictype/test-categ_N.c: Likewise.
3067 * tests/unictype/test-categ_Nd.c: Likewise.
3068 * tests/unictype/test-categ_Nl.c: Likewise.
3069 * tests/unictype/test-categ_No.c: Likewise.
3070 * tests/unictype/test-categ_P.c: Likewise.
3071 * tests/unictype/test-categ_Pc.c: Likewise.
3072 * tests/unictype/test-categ_Pd.c: Likewise.
3073 * tests/unictype/test-categ_Pe.c: Likewise.
3074 * tests/unictype/test-categ_Pf.c: Likewise.
3075 * tests/unictype/test-categ_Pi.c: Likewise.
3076 * tests/unictype/test-categ_Po.c: Likewise.
3077 * tests/unictype/test-categ_Ps.c: Likewise.
3078 * tests/unictype/test-categ_S.c: Likewise.
3079 * tests/unictype/test-categ_Sc.c: Likewise.
3080 * tests/unictype/test-categ_Sk.c: Likewise.
3081 * tests/unictype/test-categ_Sm.c: Likewise.
3082 * tests/unictype/test-categ_So.c: Likewise.
3083 * tests/unictype/test-categ_Z.c: Likewise.
3084 * tests/unictype/test-categ_Zl.c: Likewise.
3085 * tests/unictype/test-categ_Zp.c: Likewise.
3086 * tests/unictype/test-categ_Zs.c: Likewise.
3087 * tests/unictype/test-ctype_alnum.c: Likewise.
3088 * tests/unictype/test-ctype_alpha.c: Likewise.
3089 * tests/unictype/test-ctype_blank.c: Likewise.
3090 * tests/unictype/test-ctype_cntrl.c: Likewise.
3091 * tests/unictype/test-ctype_digit.c: Likewise.
3092 * tests/unictype/test-ctype_graph.c: Likewise.
3093 * tests/unictype/test-ctype_lower.c: Likewise.
3094 * tests/unictype/test-ctype_print.c: Likewise.
3095 * tests/unictype/test-ctype_punct.c: Likewise.
3096 * tests/unictype/test-ctype_space.c: Likewise.
3097 * tests/unictype/test-ctype_upper.c: Likewise.
3098 * tests/unictype/test-ctype_xdigit.c: Likewise.
3099 * tests/unictype/test-decdigit.h: Likewise.
3100 * tests/unictype/test-digit.h: Likewise.
3101 * tests/unictype/test-numeric.h: Likewise.
3102 * tests/unictype/test-pr_alphabetic.c: Likewise.
3103 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
3104 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3105 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3106 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
3107 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3108 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
3109 * tests/unictype/test-pr_bidi_control.c: Likewise.
3110 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
3111 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
3112 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3113 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3114 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3115 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3116 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3117 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3118 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
3119 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
3120 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
3121 * tests/unictype/test-pr_combining.c: Likewise.
3122 * tests/unictype/test-pr_composite.c: Likewise.
3123 * tests/unictype/test-pr_currency_symbol.c: Likewise.
3124 * tests/unictype/test-pr_dash.c: Likewise.
3125 * tests/unictype/test-pr_decimal_digit.c: Likewise.
3126 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
3127 * tests/unictype/test-pr_deprecated.c: Likewise.
3128 * tests/unictype/test-pr_diacritic.c: Likewise.
3129 * tests/unictype/test-pr_extender.c: Likewise.
3130 * tests/unictype/test-pr_format_control.c: Likewise.
3131 * tests/unictype/test-pr_grapheme_base.c: Likewise.
3132 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3133 * tests/unictype/test-pr_grapheme_link.c: Likewise.
3134 * tests/unictype/test-pr_hex_digit.c: Likewise.
3135 * tests/unictype/test-pr_hyphen.c: Likewise.
3136 * tests/unictype/test-pr_id_continue.c: Likewise.
3137 * tests/unictype/test-pr_id_start.c: Likewise.
3138 * tests/unictype/test-pr_ideographic.c: Likewise.
3139 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
3140 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
3141 * tests/unictype/test-pr_ignorable_control.c: Likewise.
3142 * tests/unictype/test-pr_iso_control.c: Likewise.
3143 * tests/unictype/test-pr_join_control.c: Likewise.
3144 * tests/unictype/test-pr_left_of_pair.c: Likewise.
3145 * tests/unictype/test-pr_line_separator.c: Likewise.
3146 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3147 * tests/unictype/test-pr_lowercase.c: Likewise.
3148 * tests/unictype/test-pr_math.c: Likewise.
3149 * tests/unictype/test-pr_non_break.c: Likewise.
3150 * tests/unictype/test-pr_not_a_character.c: Likewise.
3151 * tests/unictype/test-pr_numeric.c: Likewise.
3152 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3153 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
3154 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
3155 * tests/unictype/test-pr_other_id_continue.c: Likewise.
3156 * tests/unictype/test-pr_other_id_start.c: Likewise.
3157 * tests/unictype/test-pr_other_lowercase.c: Likewise.
3158 * tests/unictype/test-pr_other_math.c: Likewise.
3159 * tests/unictype/test-pr_other_uppercase.c: Likewise.
3160 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
3161 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
3162 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
3163 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
3164 * tests/unictype/test-pr_private_use.c: Likewise.
3165 * tests/unictype/test-pr_punctuation.c: Likewise.
3166 * tests/unictype/test-pr_quotation_mark.c: Likewise.
3167 * tests/unictype/test-pr_radical.c: Likewise.
3168 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3169 * tests/unictype/test-pr_soft_dotted.c: Likewise.
3170 * tests/unictype/test-pr_space.c: Likewise.
3171 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3172 * tests/unictype/test-pr_titlecase.c: Likewise.
3173 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3174 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3175 * tests/unictype/test-pr_uppercase.c: Likewise.
3176 * tests/unictype/test-pr_variation_selector.c: Likewise.
3177 * tests/unictype/test-pr_white_space.c: Likewise.
3178 * tests/unictype/test-pr_xid_continue.c: Likewise.
3179 * tests/unictype/test-pr_xid_start.c: Likewise.
3180 * tests/unictype/test-pr_zero_width.c: Likewise.
3181 * tests/unictype/test-sy_c_whitespace.c: Likewise.
3182 * tests/unictype/test-sy_java_whitespace.c: Likewise.
3184 2007-11-12 Bruno Haible <bruno@clisp.org>
3186 Unicode character classification functions.
3187 * lib/unictype.h: New file.
3188 * modules/unictype/base: New file.
3189 * modules/unictype/category-L: New file.
3190 * modules/unictype/category-Lu: New file.
3191 * modules/unictype/category-Ll: New file.
3192 * modules/unictype/category-Lt: New file.
3193 * modules/unictype/category-Lm: New file.
3194 * modules/unictype/category-Lo: New file.
3195 * modules/unictype/category-M: New file.
3196 * modules/unictype/category-Mn: New file.
3197 * modules/unictype/category-Mc: New file.
3198 * modules/unictype/category-Me: New file.
3199 * modules/unictype/category-N: New file.
3200 * modules/unictype/category-Nd: New file.
3201 * modules/unictype/category-Nl: New file.
3202 * modules/unictype/category-No: New file.
3203 * modules/unictype/category-P: New file.
3204 * modules/unictype/category-Pc: New file.
3205 * modules/unictype/category-Pd: New file.
3206 * modules/unictype/category-Ps: New file.
3207 * modules/unictype/category-Pe: New file.
3208 * modules/unictype/category-Pi: New file.
3209 * modules/unictype/category-Pf: New file.
3210 * modules/unictype/category-Po: New file.
3211 * modules/unictype/category-S: New file.
3212 * modules/unictype/category-Sm: New file.
3213 * modules/unictype/category-Sc: New file.
3214 * modules/unictype/category-Sk: New file.
3215 * modules/unictype/category-So: New file.
3216 * modules/unictype/category-Z: New file.
3217 * modules/unictype/category-Zs: New file.
3218 * modules/unictype/category-Zl: New file.
3219 * modules/unictype/category-Zp: New file.
3220 * modules/unictype/category-C: New file.
3221 * modules/unictype/category-Cc: New file.
3222 * modules/unictype/category-Cf: New file.
3223 * modules/unictype/category-Cs: New file.
3224 * modules/unictype/category-Co: New file.
3225 * modules/unictype/category-Cn: New file.
3226 * modules/unictype/category-or: New file.
3227 * modules/unictype/category-of: New file.
3228 * modules/unictype/category-test: New file.
3229 * modules/unictype/category-test-withtable: New file.
3230 * modules/unictype/category-byname: New file.
3231 * modules/unictype/category-none: New file.
3232 * modules/unictype/category-and: New file.
3233 * modules/unictype/category-and-not: New file.
3234 * modules/unictype/category-name: New file.
3235 * modules/unictype/combining-class: New file.
3236 * modules/unictype/category-all: New file.
3237 * modules/unictype/bidicategory-all: New file.
3238 * modules/unictype/bidicategory-byname: New file.
3239 * modules/unictype/bidicategory-name: New file.
3240 * modules/unictype/bidicategory-of: New file.
3241 * modules/unictype/bidicategory-test: New file.
3242 * modules/unictype/decimal-digit: New file.
3243 * modules/unictype/digit: New file.
3244 * modules/unictype/numeric: New file.
3245 * modules/unictype/mirror: New file.
3246 * modules/unictype/property-white-space: New file.
3247 * modules/unictype/property-alphabetic: New file.
3248 * modules/unictype/property-other-alphabetic: New file.
3249 * modules/unictype/property-not-a-character: New file.
3250 * modules/unictype/property-default-ignorable-code-point: New file.
3251 * modules/unictype/property-other-default-ignorable-code-point: New
3253 * modules/unictype/property-deprecated: New file.
3254 * modules/unictype/property-logical-order-exception: New file.
3255 * modules/unictype/property-variation-selector: New file.
3256 * modules/unictype/property-private-use: New file.
3257 * modules/unictype/property-unassigned-code-value: New file.
3258 * modules/unictype/property-uppercase: New file.
3259 * modules/unictype/property-other-uppercase: New file.
3260 * modules/unictype/property-lowercase: New file.
3261 * modules/unictype/property-other-lowercase: New file.
3262 * modules/unictype/property-titlecase: New file.
3263 * modules/unictype/property-soft-dotted: New file.
3264 * modules/unictype/property-id-start: New file.
3265 * modules/unictype/property-other-id-start: New file.
3266 * modules/unictype/property-id-continue: New file.
3267 * modules/unictype/property-other-id-continue: New file.
3268 * modules/unictype/property-xid-start: New file.
3269 * modules/unictype/property-xid-continue: New file.
3270 * modules/unictype/property-pattern-white-space: New file.
3271 * modules/unictype/property-pattern-syntax: New file.
3272 * modules/unictype/property-join-control: New file.
3273 * modules/unictype/property-grapheme-base: New file.
3274 * modules/unictype/property-grapheme-extend: New file.
3275 * modules/unictype/property-other-grapheme-extend: New file.
3276 * modules/unictype/property-grapheme-link: New file.
3277 * modules/unictype/property-bidi-control: New file.
3278 * modules/unictype/property-bidi-left-to-right: New file.
3279 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
3280 * modules/unictype/property-bidi-arabic-right-to-left: New file.
3281 * modules/unictype/property-bidi-european-digit: New file.
3282 * modules/unictype/property-bidi-eur-num-separator: New file.
3283 * modules/unictype/property-bidi-eur-num-terminator: New file.
3284 * modules/unictype/property-bidi-arabic-digit: New file.
3285 * modules/unictype/property-bidi-common-separator: New file.
3286 * modules/unictype/property-bidi-block-separator: New file.
3287 * modules/unictype/property-bidi-segment-separator: New file.
3288 * modules/unictype/property-bidi-whitespace: New file.
3289 * modules/unictype/property-bidi-non-spacing-mark: New file.
3290 * modules/unictype/property-bidi-boundary-neutral: New file.
3291 * modules/unictype/property-bidi-pdf: New file.
3292 * modules/unictype/property-bidi-embedding-or-override: New file.
3293 * modules/unictype/property-bidi-other-neutral: New file.
3294 * modules/unictype/property-hex-digit: New file.
3295 * modules/unictype/property-ascii-hex-digit: New file.
3296 * modules/unictype/property-ideographic: New file.
3297 * modules/unictype/property-unified-ideograph: New file.
3298 * modules/unictype/property-radical: New file.
3299 * modules/unictype/property-ids-binary-operator: New file.
3300 * modules/unictype/property-ids-trinary-operator: New file.
3301 * modules/unictype/property-zero-width: New file.
3302 * modules/unictype/property-space: New file.
3303 * modules/unictype/property-non-break: New file.
3304 * modules/unictype/property-iso-control: New file.
3305 * modules/unictype/property-format-control: New file.
3306 * modules/unictype/property-dash: New file.
3307 * modules/unictype/property-hyphen: New file.
3308 * modules/unictype/property-punctuation: New file.
3309 * modules/unictype/property-line-separator: New file.
3310 * modules/unictype/property-paragraph-separator: New file.
3311 * modules/unictype/property-quotation-mark: New file.
3312 * modules/unictype/property-sentence-terminal: New file.
3313 * modules/unictype/property-terminal-punctuation: New file.
3314 * modules/unictype/property-currency-symbol: New file.
3315 * modules/unictype/property-math: New file.
3316 * modules/unictype/property-other-math: New file.
3317 * modules/unictype/property-paired-punctuation: New file.
3318 * modules/unictype/property-left-of-pair: New file.
3319 * modules/unictype/property-combining: New file.
3320 * modules/unictype/property-composite: New file.
3321 * modules/unictype/property-decimal-digit: New file.
3322 * modules/unictype/property-numeric: New file.
3323 * modules/unictype/property-diacritic: New file.
3324 * modules/unictype/property-extender: New file.
3325 * modules/unictype/property-ignorable-control: New file.
3326 * modules/unictype/property-test: New file.
3327 * modules/unictype/property-byname: New file.
3328 * modules/unictype/property-all: New file.
3329 * modules/unictype/scripts: New file.
3330 * modules/unictype/scripts-all: New file.
3331 * modules/unictype/block-of: New file.
3332 * modules/unictype/block-test: New file.
3333 * modules/unictype/block-list: New file.
3334 * modules/unictype/block-all: New file.
3335 * modules/unictype/syntax-c-whitespace: New file.
3336 * modules/unictype/syntax-java-whitespace: New file.
3337 * modules/unictype/syntax-c-ident: New file.
3338 * modules/unictype/syntax-java-ident: New file.
3339 * modules/unictype/ctype-alnum: New file.
3340 * modules/unictype/ctype-alpha: New file.
3341 * modules/unictype/ctype-cntrl: New file.
3342 * modules/unictype/ctype-digit: New file.
3343 * modules/unictype/ctype-graph: New file.
3344 * modules/unictype/ctype-lower: New file.
3345 * modules/unictype/ctype-print: New file.
3346 * modules/unictype/ctype-punct: New file.
3347 * modules/unictype/ctype-space: New file.
3348 * modules/unictype/ctype-upper: New file.
3349 * modules/unictype/ctype-xdigit: New file.
3350 * modules/unictype/ctype-blank: New file.
3351 * lib/unictype/bidi_byname.c: New file.
3352 * lib/unictype/bidi_name.c: New file.
3353 * lib/unictype/bidi_of.c: New file.
3354 * lib/unictype/bidi_test.c: New file.
3355 * lib/unictype/bitmap.h: New file.
3356 * lib/unictype/block_test.c: New file.
3357 * lib/unictype/blocks.c: New file.
3358 * lib/unictype/categ_C.c: New file.
3359 * lib/unictype/categ_Cc.c: New file.
3360 * lib/unictype/categ_Cf.c: New file.
3361 * lib/unictype/categ_Cn.c: New file.
3362 * lib/unictype/categ_Co.c: New file.
3363 * lib/unictype/categ_Cs.c: New file.
3364 * lib/unictype/categ_L.c: New file.
3365 * lib/unictype/categ_Ll.c: New file.
3366 * lib/unictype/categ_Lm.c: New file.
3367 * lib/unictype/categ_Lo.c: New file.
3368 * lib/unictype/categ_Lt.c: New file.
3369 * lib/unictype/categ_Lu.c: New file.
3370 * lib/unictype/categ_M.c: New file.
3371 * lib/unictype/categ_Mc.c: New file.
3372 * lib/unictype/categ_Me.c: New file.
3373 * lib/unictype/categ_Mn.c: New file.
3374 * lib/unictype/categ_N.c: New file.
3375 * lib/unictype/categ_Nd.c: New file.
3376 * lib/unictype/categ_Nl.c: New file.
3377 * lib/unictype/categ_No.c: New file.
3378 * lib/unictype/categ_P.c: New file.
3379 * lib/unictype/categ_Pc.c: New file.
3380 * lib/unictype/categ_Pd.c: New file.
3381 * lib/unictype/categ_Pe.c: New file.
3382 * lib/unictype/categ_Pf.c: New file.
3383 * lib/unictype/categ_Pi.c: New file.
3384 * lib/unictype/categ_Po.c: New file.
3385 * lib/unictype/categ_Ps.c: New file.
3386 * lib/unictype/categ_S.c: New file.
3387 * lib/unictype/categ_Sc.c: New file.
3388 * lib/unictype/categ_Sk.c: New file.
3389 * lib/unictype/categ_Sm.c: New file.
3390 * lib/unictype/categ_So.c: New file.
3391 * lib/unictype/categ_Z.c: New file.
3392 * lib/unictype/categ_Zl.c: New file.
3393 * lib/unictype/categ_Zp.c: New file.
3394 * lib/unictype/categ_Zs.c: New file.
3395 * lib/unictype/categ_and.c: New file.
3396 * lib/unictype/categ_and_not.c: New file.
3397 * lib/unictype/categ_byname.c: New file.
3398 * lib/unictype/categ_name.c: New file.
3399 * lib/unictype/categ_none.c: New file.
3400 * lib/unictype/categ_of.c: New file.
3401 * lib/unictype/categ_or.c: New file.
3402 * lib/unictype/categ_test.c: New file.
3403 * lib/unictype/combining.c: New file.
3404 * lib/unictype/ctype_alnum.c: New file.
3405 * lib/unictype/ctype_alpha.c: New file.
3406 * lib/unictype/ctype_blank.c: New file.
3407 * lib/unictype/ctype_cntrl.c: New file.
3408 * lib/unictype/ctype_digit.c: New file.
3409 * lib/unictype/ctype_graph.c: New file.
3410 * lib/unictype/ctype_lower.c: New file.
3411 * lib/unictype/ctype_print.c: New file.
3412 * lib/unictype/ctype_punct.c: New file.
3413 * lib/unictype/ctype_space.c: New file.
3414 * lib/unictype/ctype_upper.c: New file.
3415 * lib/unictype/ctype_xdigit.c: New file.
3416 * lib/unictype/decdigit.c: New file.
3417 * lib/unictype/digit.c: New file.
3418 * lib/unictype/identsyntaxmap.h: New file.
3419 * lib/unictype/mirror.c: New file.
3420 * lib/unictype/numeric.c: New file.
3421 * lib/unictype/pr_alphabetic.c: New file.
3422 * lib/unictype/pr_ascii_hex_digit.c: New file.
3423 * lib/unictype/pr_bidi_arabic_digit.c: New file.
3424 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3425 * lib/unictype/pr_bidi_block_separator.c: New file.
3426 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3427 * lib/unictype/pr_bidi_common_separator.c: New file.
3428 * lib/unictype/pr_bidi_control.c: New file.
3429 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3430 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3431 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3432 * lib/unictype/pr_bidi_european_digit.c: New file.
3433 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3434 * lib/unictype/pr_bidi_left_to_right.c: New file.
3435 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3436 * lib/unictype/pr_bidi_other_neutral.c: New file.
3437 * lib/unictype/pr_bidi_pdf.c: New file.
3438 * lib/unictype/pr_bidi_segment_separator.c: New file.
3439 * lib/unictype/pr_bidi_whitespace.c: New file.
3440 * lib/unictype/pr_byname.c: New file.
3441 * lib/unictype/pr_byname.gperf: New file.
3442 * lib/unictype/pr_combining.c: New file.
3443 * lib/unictype/pr_composite.c: New file.
3444 * lib/unictype/pr_currency_symbol.c: New file.
3445 * lib/unictype/pr_dash.c: New file.
3446 * lib/unictype/pr_decimal_digit.c: New file.
3447 * lib/unictype/pr_default_ignorable_code_point.c: New file.
3448 * lib/unictype/pr_deprecated.c: New file.
3449 * lib/unictype/pr_diacritic.c: New file.
3450 * lib/unictype/pr_extender.c: New file.
3451 * lib/unictype/pr_format_control.c: New file.
3452 * lib/unictype/pr_grapheme_base.c: New file.
3453 * lib/unictype/pr_grapheme_extend.c: New file.
3454 * lib/unictype/pr_grapheme_link.c: New file.
3455 * lib/unictype/pr_hex_digit.c: New file.
3456 * lib/unictype/pr_hyphen.c: New file.
3457 * lib/unictype/pr_id_continue.c: New file.
3458 * lib/unictype/pr_id_start.c: New file.
3459 * lib/unictype/pr_ideographic.c: New file.
3460 * lib/unictype/pr_ids_binary_operator.c: New file.
3461 * lib/unictype/pr_ids_trinary_operator.c: New file.
3462 * lib/unictype/pr_ignorable_control.c: New file.
3463 * lib/unictype/pr_iso_control.c: New file.
3464 * lib/unictype/pr_join_control.c: New file.
3465 * lib/unictype/pr_left_of_pair.c: New file.
3466 * lib/unictype/pr_line_separator.c: New file.
3467 * lib/unictype/pr_logical_order_exception.c: New file.
3468 * lib/unictype/pr_lowercase.c: New file.
3469 * lib/unictype/pr_math.c: New file.
3470 * lib/unictype/pr_non_break.c: New file.
3471 * lib/unictype/pr_not_a_character.c: New file.
3472 * lib/unictype/pr_numeric.c: New file.
3473 * lib/unictype/pr_other_alphabetic.c: New file.
3474 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3475 * lib/unictype/pr_other_grapheme_extend.c: New file.
3476 * lib/unictype/pr_other_id_continue.c: New file.
3477 * lib/unictype/pr_other_id_start.c: New file.
3478 * lib/unictype/pr_other_lowercase.c: New file.
3479 * lib/unictype/pr_other_math.c: New file.
3480 * lib/unictype/pr_other_uppercase.c: New file.
3481 * lib/unictype/pr_paired_punctuation.c: New file.
3482 * lib/unictype/pr_paragraph_separator.c: New file.
3483 * lib/unictype/pr_pattern_syntax.c: New file.
3484 * lib/unictype/pr_pattern_white_space.c: New file.
3485 * lib/unictype/pr_private_use.c: New file.
3486 * lib/unictype/pr_punctuation.c: New file.
3487 * lib/unictype/pr_quotation_mark.c: New file.
3488 * lib/unictype/pr_radical.c: New file.
3489 * lib/unictype/pr_sentence_terminal.c: New file.
3490 * lib/unictype/pr_soft_dotted.c: New file.
3491 * lib/unictype/pr_space.c: New file.
3492 * lib/unictype/pr_terminal_punctuation.c: New file.
3493 * lib/unictype/pr_test.c: New file.
3494 * lib/unictype/pr_titlecase.c: New file.
3495 * lib/unictype/pr_unassigned_code_value.c: New file.
3496 * lib/unictype/pr_unified_ideograph.c: New file.
3497 * lib/unictype/pr_uppercase.c: New file.
3498 * lib/unictype/pr_variation_selector.c: New file.
3499 * lib/unictype/pr_white_space.c: New file.
3500 * lib/unictype/pr_xid_continue.c: New file.
3501 * lib/unictype/pr_xid_start.c: New file.
3502 * lib/unictype/pr_zero_width.c: New file.
3503 * lib/unictype/scripts.c: New file.
3504 * lib/unictype/sy_c_ident.c: New file.
3505 * lib/unictype/sy_c_whitespace.c: New file.
3506 * lib/unictype/sy_java_ident.c: New file.
3507 * lib/unictype/sy_java_whitespace.c: New file.
3509 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3511 * lib/unictype/blocks.h: Likewise.
3512 * lib/unictype/categ_C.h: Likewise.
3513 * lib/unictype/categ_Cc.h: Likewise.
3514 * lib/unictype/categ_Cf.h: Likewise.
3515 * lib/unictype/categ_Cn.h: Likewise.
3516 * lib/unictype/categ_Co.h: Likewise.
3517 * lib/unictype/categ_Cs.h: Likewise.
3518 * lib/unictype/categ_L.h: Likewise.
3519 * lib/unictype/categ_Ll.h: Likewise.
3520 * lib/unictype/categ_Lm.h: Likewise.
3521 * lib/unictype/categ_Lo.h: Likewise.
3522 * lib/unictype/categ_Lt.h: Likewise.
3523 * lib/unictype/categ_Lu.h: Likewise.
3524 * lib/unictype/categ_M.h: Likewise.
3525 * lib/unictype/categ_Mc.h: Likewise.
3526 * lib/unictype/categ_Me.h: Likewise.
3527 * lib/unictype/categ_Mn.h: Likewise.
3528 * lib/unictype/categ_N.h: Likewise.
3529 * lib/unictype/categ_Nd.h: Likewise.
3530 * lib/unictype/categ_Nl.h: Likewise.
3531 * lib/unictype/categ_No.h: Likewise.
3532 * lib/unictype/categ_P.h: Likewise.
3533 * lib/unictype/categ_Pc.h: Likewise.
3534 * lib/unictype/categ_Pd.h: Likewise.
3535 * lib/unictype/categ_Pe.h: Likewise.
3536 * lib/unictype/categ_Pf.h: Likewise.
3537 * lib/unictype/categ_Pi.h: Likewise.
3538 * lib/unictype/categ_Po.h: Likewise.
3539 * lib/unictype/categ_Ps.h: Likewise.
3540 * lib/unictype/categ_S.h: Likewise.
3541 * lib/unictype/categ_Sc.h: Likewise.
3542 * lib/unictype/categ_Sk.h: Likewise.
3543 * lib/unictype/categ_Sm.h: Likewise.
3544 * lib/unictype/categ_So.h: Likewise.
3545 * lib/unictype/categ_Z.h: Likewise.
3546 * lib/unictype/categ_Zl.h: Likewise.
3547 * lib/unictype/categ_Zp.h: Likewise.
3548 * lib/unictype/categ_Zs.h: Likewise.
3549 * lib/unictype/categ_of.h: Likewise.
3550 * lib/unictype/combining.h: Likewise.
3551 * lib/unictype/ctype_alnum.h: Likewise.
3552 * lib/unictype/ctype_alpha.h: Likewise.
3553 * lib/unictype/ctype_blank.h: Likewise.
3554 * lib/unictype/ctype_cntrl.h: Likewise.
3555 * lib/unictype/ctype_digit.h: Likewise.
3556 * lib/unictype/ctype_graph.h: Likewise.
3557 * lib/unictype/ctype_lower.h: Likewise.
3558 * lib/unictype/ctype_print.h: Likewise.
3559 * lib/unictype/ctype_punct.h: Likewise.
3560 * lib/unictype/ctype_space.h: Likewise.
3561 * lib/unictype/ctype_upper.h: Likewise.
3562 * lib/unictype/ctype_xdigit.h: Likewise.
3563 * lib/unictype/decdigit.h: Likewise.
3564 * lib/unictype/digit.h: Likewise.
3565 * lib/unictype/mirror.h: Likewise.
3566 * lib/unictype/numeric.h: Likewise.
3567 * lib/unictype/pr_alphabetic.h: Likewise.
3568 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3569 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3570 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3571 * lib/unictype/pr_bidi_block_separator.h: Likewise.
3572 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3573 * lib/unictype/pr_bidi_common_separator.h: Likewise.
3574 * lib/unictype/pr_bidi_control.h: Likewise.
3575 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3576 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3577 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3578 * lib/unictype/pr_bidi_european_digit.h: Likewise.
3579 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
3580 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
3581 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
3582 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
3583 * lib/unictype/pr_bidi_pdf.h: Likewise.
3584 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
3585 * lib/unictype/pr_bidi_whitespace.h: Likewise.
3586 * lib/unictype/pr_combining.h: Likewise.
3587 * lib/unictype/pr_composite.h: Likewise.
3588 * lib/unictype/pr_currency_symbol.h: Likewise.
3589 * lib/unictype/pr_dash.h: Likewise.
3590 * lib/unictype/pr_decimal_digit.h: Likewise.
3591 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
3592 * lib/unictype/pr_deprecated.h: Likewise.
3593 * lib/unictype/pr_diacritic.h: Likewise.
3594 * lib/unictype/pr_extender.h: Likewise.
3595 * lib/unictype/pr_format_control.h: Likewise.
3596 * lib/unictype/pr_grapheme_base.h: Likewise.
3597 * lib/unictype/pr_grapheme_extend.h: Likewise.
3598 * lib/unictype/pr_grapheme_link.h: Likewise.
3599 * lib/unictype/pr_hex_digit.h: Likewise.
3600 * lib/unictype/pr_hyphen.h: Likewise.
3601 * lib/unictype/pr_id_continue.h: Likewise.
3602 * lib/unictype/pr_id_start.h: Likewise.
3603 * lib/unictype/pr_ideographic.h: Likewise.
3604 * lib/unictype/pr_ids_binary_operator.h: Likewise.
3605 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
3606 * lib/unictype/pr_ignorable_control.h: Likewise.
3607 * lib/unictype/pr_iso_control.h: Likewise.
3608 * lib/unictype/pr_join_control.h: Likewise.
3609 * lib/unictype/pr_left_of_pair.h: Likewise.
3610 * lib/unictype/pr_line_separator.h: Likewise.
3611 * lib/unictype/pr_logical_order_exception.h: Likewise.
3612 * lib/unictype/pr_lowercase.h: Likewise.
3613 * lib/unictype/pr_math.h: Likewise.
3614 * lib/unictype/pr_non_break.h: Likewise.
3615 * lib/unictype/pr_not_a_character.h: Likewise.
3616 * lib/unictype/pr_numeric.h: Likewise.
3617 * lib/unictype/pr_other_alphabetic.h: Likewise.
3618 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
3619 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
3620 * lib/unictype/pr_other_id_continue.h: Likewise.
3621 * lib/unictype/pr_other_id_start.h: Likewise.
3622 * lib/unictype/pr_other_lowercase.h: Likewise.
3623 * lib/unictype/pr_other_math.h: Likewise.
3624 * lib/unictype/pr_other_uppercase.h: Likewise.
3625 * lib/unictype/pr_paired_punctuation.h: Likewise.
3626 * lib/unictype/pr_paragraph_separator.h: Likewise.
3627 * lib/unictype/pr_pattern_syntax.h: Likewise.
3628 * lib/unictype/pr_pattern_white_space.h: Likewise.
3629 * lib/unictype/pr_private_use.h: Likewise.
3630 * lib/unictype/pr_punctuation.h: Likewise.
3631 * lib/unictype/pr_quotation_mark.h: Likewise.
3632 * lib/unictype/pr_radical.h: Likewise.
3633 * lib/unictype/pr_sentence_terminal.h: Likewise.
3634 * lib/unictype/pr_soft_dotted.h: Likewise.
3635 * lib/unictype/pr_space.h: Likewise.
3636 * lib/unictype/pr_terminal_punctuation.h: Likewise.
3637 * lib/unictype/pr_titlecase.h: Likewise.
3638 * lib/unictype/pr_unassigned_code_value.h: Likewise.
3639 * lib/unictype/pr_unified_ideograph.h: Likewise.
3640 * lib/unictype/pr_uppercase.h: Likewise.
3641 * lib/unictype/pr_variation_selector.h: Likewise.
3642 * lib/unictype/pr_white_space.h: Likewise.
3643 * lib/unictype/pr_xid_continue.h: Likewise.
3644 * lib/unictype/pr_xid_start.h: Likewise.
3645 * lib/unictype/pr_zero_width.h: Likewise.
3646 * lib/unictype/scripts.h: Likewise.
3647 * lib/unictype/scripts_byname.gperf: Likewise.
3648 * lib/unictype/sy_c_ident.h: Likewise.
3649 * lib/unictype/sy_c_whitespace.h: Likewise.
3650 * lib/unictype/sy_java_ident.h: Likewise.
3651 * lib/unictype/sy_java_whitespace.h: Likewise.
3653 * lib/unictype/Makefile: New file.
3654 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
3656 * lib/unictype/3level.h: New file, copied from glibc.
3657 * lib/unictype/3levelbit.h: New file.
3659 2007-11-11 Bruno Haible <bruno@clisp.org>
3661 * modules/gperf: New file.
3662 * modules/iconv_open (Depends-on): Add it.
3663 (Makefile.am): Remove the GPERF definition.
3665 2007-11-11 Bruno Haible <bruno@clisp.org>
3667 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
3668 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
3670 2007-11-11 Bruno Haible <bruno@clisp.org>
3672 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
3673 (usage): Remove function.
3675 2007-11-11 Bruno Haible <bruno@clisp.org>
3677 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
3679 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
3681 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
3683 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
3684 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
3685 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
3687 2007-11-11 Bruno Haible <bruno@clisp.org>
3689 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
3690 roundf were declared but do not exist on functions.
3691 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
3692 roundl were declared but do not exist on functions.
3693 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
3694 HAVE_FLOORL_AND_CEILL, respectively.
3695 Needed for Sun C on Solaris 10.
3697 2007-11-11 Bruno Haible <bruno@clisp.org>
3699 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
3700 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
3701 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
3702 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
3703 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
3704 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
3705 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
3707 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
3708 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
3709 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
3710 of HAVE_DECL_ROUND*.
3711 * modules/math (Makefile.am): Update.
3713 2007-11-10 Bruno Haible <bruno@clisp.org>
3715 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
3716 ptrdiff_t as m4/intl.m4.
3718 2007-11-10 Jim Meyering <meyering@redhat.com>
3720 Avoid link failure for the argmatch test.
3721 * tests/test-argmatch.c (usage): Define function to avoid a link
3722 failure: argmatch_die requires a usage function.
3724 2007-11-09 Bruno Haible <bruno@clisp.org>
3726 * doc/functions/snprintf.texi: Mention BeOS deficiency.
3727 * doc/functions/vsnprintf.texi: Likewise.
3728 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
3729 with a size argument < 2.
3731 2007-11-09 Bruno Haible <bruno@clisp.org>
3733 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
3734 buffer. Fixes an inefficiency introduced on 2007-11-03.
3736 2007-11-09 Bruno Haible <bruno@clisp.org>
3738 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
3739 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
3741 2007-11-08 Jim Meyering <meyering@redhat.com>
3743 Change cache variable name prefix "jm_" to "gl_" everywhere.
3744 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
3745 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
3746 * m4/uptime.m4: s/gl_/jm_/
3748 2007-11-07 Bruno Haible <bruno@clisp.org>
3750 Update to GNU gettext 0.17.
3751 * m4/intl.m4: Update to GNU gettext 0.17.
3752 * m4/po.m4: Likewise.
3753 * modules/gettext (Files): Remove m4/ulonglong.m4.
3754 (configure.ac): Require gettext infrastructure from version 0.17.
3756 2007-11-06 Bruno Haible <bruno@clisp.org>
3758 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
3759 symbolic values are not defined in a public header.
3760 * lib/freadable.c (freadable) [QNX]: Likewise.
3761 * lib/freadahead.c (freadahead) [QNX]: Likewise.
3762 * lib/freading.c (freading) [QNX]: Likewise.
3763 * lib/fseterr.c (fseterr) [QNX]: Likewise.
3764 * lib/fwritable.c (fwritable) [QNX]: Likewise.
3765 * lib/fwriting.c (fwriting) [QNX]: Likewise.
3766 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
3767 Reported by Alain Magloire.
3769 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
3771 2007-11-05 Bruno Haible <bruno@clisp.org>
3773 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
3774 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
3775 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
3776 Reported by Eric Blake.
3778 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3779 Bruno Haible <bruno@clisp.org>
3781 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
3782 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
3783 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
3784 (malloc): Undefine also before including <stdlib.h>.
3785 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
3786 Needed on OSF/1 4.0.
3788 2007-11-05 Jim Meyering <meyering@redhat.com>
3790 git-version-gen: sync from coreutils.
3791 * build-aux/git-version-gen: Add comments.
3792 Change the first '-' to '.' in the snapshot version string,
3793 e.g., 6.9-377-08144 -> 6.9.377-08144
3794 Remove first parameter.
3795 Don't declare a version "-dirty" merely because a time
3798 2007-11-04 Bruno Haible <bruno@clisp.org>
3800 * lib/lock.h: Protect all macro definitions containing an 'if'
3801 statement through a "do { ... } while (0)".
3802 * lib/tls.h: Likewise.
3804 2007-11-04 Bruno Haible <bruno@clisp.org>
3806 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
3808 2007-11-04 Bruno Haible <bruno@clisp.org>
3810 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
3811 * modules/fprintf-posix (Depends-on): Add nocrash.
3812 * modules/snprintf-posix (Depends-on): Likewise.
3813 * modules/sprintf-posix (Depends-on): Likewise.
3814 * modules/vasnprintf-posix (Depends-on): Likewise.
3815 * modules/vasprintf-posix (Depends-on): Likewise.
3816 * modules/vfprintf-posix (Depends-on): Likewise.
3817 * modules/vsnprintf-posix (Depends-on): Likewise.
3818 * modules/vsprintf-posix (Depends-on): Likewise.
3819 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3820 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3821 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3822 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3823 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3824 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3825 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3827 2007-11-04 Bruno Haible <bruno@clisp.org>
3829 * modules/nocrash: New file.
3830 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
3831 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
3833 2007-11-04 Bruno Haible <bruno@clisp.org>
3835 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
3837 * tests/test-vasprintf-posix.c (test_function): Likewise.
3838 * tests/test-snprintf-posix.h (test_function): Likewise.
3839 * tests/test-sprintf-posix.h (test_function): Likewise.
3841 Fix *printf behaviour for large precisions on mingw and BeOS.
3842 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
3843 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
3844 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
3845 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3846 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3847 gl_PRINTF_PRECISION and test its result. Invoke
3848 gl_PREREQ_VASNPRINTF_PRECISION.
3849 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3850 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3851 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3852 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3853 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3854 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3855 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3856 * doc/functions/fprintf.texi: Update.
3857 * doc/functions/printf.texi: Update.
3858 * doc/functions/snprintf.texi: Update.
3859 * doc/functions/sprintf.texi: Update.
3860 * doc/functions/vfprintf.texi: Update.
3861 * doc/functions/vprintf.texi: Update.
3862 * doc/functions/vsnprintf.texi: Update.
3863 * doc/functions/vsprintf.texi: Update.
3865 2007-11-04 Bruno Haible <bruno@clisp.org>
3867 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
3869 2007-11-04 Bruno Haible <bruno@clisp.org>
3871 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
3872 Reported by Sylvain Beucler <beuc@gnu.org>.
3874 2007-11-03 Bruno Haible <bruno@clisp.org>
3876 * tests/test-fprintf-posix2.sh: New file.
3877 * tests/test-fprintf-posix2.c: New file.
3878 * modules/fprintf-posix-tests (Files): Add them.
3879 (TESTS): Add test-fprintf-posix2.sh.
3880 (configure.ac): Check for getrlimit and setrlimit.
3881 (check_PROGRAMS): Add test-fprintf-posix2.
3883 * tests/test-printf-posix2.sh: New file.
3884 * tests/test-printf-posix2.c: New file.
3885 * modules/printf-posix-tests (Files): Add them.
3886 (TESTS): Add test-printf-posix2.sh.
3887 (configure.ac): Check for getrlimit and setrlimit.
3888 (check_PROGRAMS): Add test-printf-posix2.
3890 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
3891 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
3892 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
3893 (decode_double): New function, copied from decode_long_double.
3894 (scale10_round_decimal_decoded): New function, extracted from
3895 scale10_round_decimal_long_double.
3896 (scale10_round_decimal_long_double): Use it.
3897 (scale10_round_decimal_double): New function.
3898 (floorlog10): New function.
3899 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
3900 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
3901 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3902 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3903 gl_PRINTF_ENOMEM and test its result. Invoke
3904 gl_PREREQ_VASNPRINTF_ENOMEM.
3905 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3906 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3907 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3908 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3909 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3910 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3911 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3912 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
3913 * modules/snprintf-posix (Depends-on): Likewise.
3914 * modules/sprintf-posix (Depends-on): Likewise.
3915 * modules/vasnprintf-posix (Depends-on): Likewise.
3916 * modules/vasprintf-posix (Depends-on): Likewise.
3917 * modules/vfprintf-posix (Depends-on): Likewise.
3918 * modules/vsnprintf-posix (Depends-on): Likewise.
3919 * modules/vsprintf-posix (Depends-on): Likewise.
3920 * doc/functions/fprintf.texi: Update.
3921 * doc/functions/printf.texi: Update.
3922 * doc/functions/snprintf.texi: Update.
3923 * doc/functions/sprintf.texi: Update.
3924 * doc/functions/vfprintf.texi: Update.
3925 * doc/functions/vprintf.texi: Update.
3926 * doc/functions/vsnprintf.texi: Update.
3927 * doc/functions/vsprintf.texi: Update.
3929 2007-11-03 Bruno Haible <bruno@clisp.org>
3931 * modules/frexp-nolibm-tests: New file.
3933 * modules/frexp-nolibm: New file.
3934 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
3936 2007-11-03 Bruno Haible <bruno@clisp.org>
3938 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
3939 value is C99 compliant.
3940 Needed for OSF/1 5.1.
3942 2007-11-03 Bruno Haible <bruno@clisp.org>
3944 Fix out-of-memory handling of vasnprintf.
3945 * lib/printf-parse.c: Include <errno.h>.
3946 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
3947 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
3950 2007-11-02 Eric Blake <ebb9@byu.net>
3952 Fix tests on cygwin.
3953 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
3955 2007-11-01 Bruno Haible <bruno@clisp.org>
3957 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
3959 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
3960 needed for POSIX compatibility.
3962 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
3964 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
3965 for compatibility with GNU.
3967 2007-11-01 Bruno Haible <bruno@clisp.org>
3969 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
3970 (putenv): Renamed from rpl_putenv. Change argument type from
3971 'const char *' to 'char *'.
3972 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
3973 of defining putenv in config.h, just set REPLACE_PUTENV.
3974 * modules/putenv (Depends-on): Add stdlib.
3975 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3976 (Include): Use <stdlib.h>.
3977 * lib/stdlib.in.h (putenv): New declaration.
3978 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
3980 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
3982 Needed for MacOS X 10.5.0.
3983 Reported by Peter O'Gorman <peter@pogma.com>.
3985 2007-11-01 Jim Meyering <meyering@redhat.com>
3987 Treat an empty date string exactly like "0".
3988 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
3989 if the remaining date string (to be parsed) is empty, use "0".
3990 Reported by Mischa Molhoek and discussed in this thread:
3991 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
3993 2007-10-31 Bruno Haible <bruno@clisp.org>
3995 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
3996 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
3997 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
3998 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
3999 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
4000 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
4002 2007-10-31 Bruno Haible <bruno@clisp.org>
4004 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
4005 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4006 (AC_TYPE_LONG_LONG_INT): Use it.
4007 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
4009 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
4011 * modules/stdint (Files): Remove m4/ulonglong.m4.
4012 * modules/strtoull (Files): Use m4/longlong.m4 instead of
4014 * modules/strtoumax (Files): Likewise.
4016 2007-10-30 Bruno Haible <bruno@clisp.org>
4018 * modules/xvasprintf-posix: New file.
4019 Suggested by Eric Blake.
4021 2007-10-30 Bruno Haible <bruno@clisp.org>
4023 * modules/xprintf-posix-tests: New file.
4024 * tests/test-xprintf-posix.sh: New file.
4025 * tests/test-xprintf-posix.c: New file.
4026 * tests/test-xfprintf-posix.c: New file.
4028 * modules/xprintf-posix: New file.
4030 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4032 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
4033 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
4034 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
4036 2007-10-29 Bruno Haible <bruno@clisp.org>
4038 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
4039 contain the special marker '_cv_'.
4040 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4041 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4042 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4043 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4044 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4045 Reported by Ralf Wildenhues.
4047 2007-10-29 Bruno Haible <bruno@clisp.org>
4049 * gnulib-tool (func_import): When --lgpl is not specified, set
4050 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
4052 Reported by Simon Josefsson.
4054 2007-10-28 Bruno Haible <bruno@clisp.org>
4056 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
4057 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
4059 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4060 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
4063 2007-10-28 Bruno Haible <bruno@clisp.org>
4065 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
4066 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
4068 2007-10-28 Bruno Haible <bruno@clisp.org>
4070 Fix link errors with Sun C 5.0 on Solaris 10.
4071 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
4072 function is declared but not present in the compiler's libm.
4073 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4074 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4075 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
4076 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
4077 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
4078 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
4079 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
4080 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4081 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
4082 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
4083 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
4086 2007-10-28 Bruno Haible <bruno@clisp.org>
4088 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
4089 gl_FUNC_FLOORL. Cache the result.
4090 (gl_FUNC_FLOORL): Use it.
4091 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
4092 gl_FUNC_CEILL. Cache the result.
4093 (gl_FUNC_CEILL): Use it.
4095 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
4096 gl_FUNC_FLOOR. Cache the result.
4097 (gl_FUNC_FLOOR): Use it.
4098 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
4099 gl_FUNC_CEIL. Cache the result.
4100 (gl_FUNC_CEIL): Use it.
4102 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
4103 gl_FUNC_FLOORF. Cache the result.
4104 (gl_FUNC_FLOORF): Use it.
4105 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
4106 gl_FUNC_CEILF. Cache the result.
4107 (gl_FUNC_CEILF): Use it.
4109 2007-10-28 Bruno Haible <bruno@clisp.org>
4111 * gnulib-tool: Allow specifying the LGPL version number through
4112 --lgpl=2 or --lgpl=3.
4113 (func_usage): Document --lgpl with argument.
4114 Handle --lgpl=... arguments.
4115 (func_import): Recognize also gl_LGPL calls with an argument. When
4116 --lgpl=2 is used and the module's license is just LGPL, report an
4117 error. Set sed_transform_lib_file according to the lgpl variable. In
4118 the generated files, use --lgpl or gl_LGPL invocations with argument,
4120 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
4122 * doc/gnulib-tool.texi (Modified imports): Update explanation of
4125 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4126 Bruno Haible <bruno@clisp.org>
4128 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
4129 (u16_uctomb_aux): Likewise.
4130 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
4132 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
4134 2007-10-28 Bruno Haible <bruno@clisp.org>
4136 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
4137 Invoke AM_GETTEXT_OPTION if it exists.
4138 * modules/vasprintf: Likewise.
4139 * modules/verror: Likewise.
4140 * modules/xprintf: Likewise.
4141 * modules/xvasprintf: Likewise.
4143 2007-10-27 Ben Pfaff <blp@gnu.org>
4145 * lib/math.in.h: Define isfinite macro and prototypes for
4146 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
4148 * m4/math_h.m4: New substitutions for isfinite module.
4149 * lib/isfinite.c: New file.
4150 * m4/isfinite.m4: New file.
4151 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
4152 * modules/isfinite: New file.
4153 * modules/isfinite-tests: New file.
4154 * tests/tests-isfinite.c: New file.
4155 * doc/functions/isfinite.texi: Mention isfinite module.
4156 * MODULES.html.sh: Mention new module.
4158 2007-10-27 Ben Pfaff <blp@gnu.org>
4160 Ralf Wildenhues reported that Tru64 4.0D declares the round
4161 functions but does not have definitions.
4162 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
4163 cannot be found in any library, set the output variable to
4164 "missing" instead of "".
4165 * m4/round.m4: Also use our substitute if we cannot find round in
4166 any library, even if it is declared.
4167 * m4/roundf.m4: Likewise for roundf.
4168 * m4/roundl.m4: Likewise for roundl.
4169 * lib/math.in.h: Undefine roundf, round, roundl before defining
4170 their replacements, to allow for hypothetical systems where these
4171 may be defined as macros but not available in libraries.
4173 2007-10-27 Bruno Haible <bruno@clisp.org>
4175 * doc/gnulib.texi: Invoke @firstparagraphindent.
4176 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
4178 (Source changes): New section.
4180 2007-10-26 Bruno Haible <bruno@clisp.org>
4182 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
4183 borrowed from autoconf.
4185 2007-10-26 Bruno Haible <bruno@clisp.org>
4187 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
4188 strerror returned the empty string. Needed on HP-UX 11.00.
4190 2007-10-24 Micah Cowan <micah@cowan.name>
4192 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
4193 * build-aux/bootstrap: Remove support for now-unnecessary option,
4194 --cvs-user, and envvars CVS_USER, CVS_RSH.
4196 2007-10-24 Jim Meyering <meyering@redhat.com>
4198 Avoid diagnostics from sha1sum when there is no cached checksum.
4199 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
4200 if the po.s1 file hasn't been created yet.
4202 * build-aux/bootstrap: Sync from coreutils:
4203 2007-10-24 Jim Meyering <meyering@redhat.com>
4204 Get gnulib from the git repository, not from an obsolete cvs one.
4205 * build-aux/bootstrap: Suggestion from Micah Cowan.
4206 2007-10-04 Jim Meyering <jim@meyering.net>
4207 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
4208 (update_po_files): Work also when there are no .po files in po/.
4210 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
4212 * README: Append ".git" to git and cg examples.
4213 Problem reported by Benoit Sigoure.
4215 2007-10-23 Micah Cowan <micah@cowan.name>
4217 * users.txt: Add wget.
4219 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4221 Fix linking of some unistdio tests on FreeBSD.
4222 * modules/unistdio/u16-vsnprintf-tests
4223 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
4224 * modules/unistdio/u16-vsprintf-tests
4225 (test_u16_vsnprintf1_LDADD): Likewise.
4226 * modules/unistdio/u32-vsnprintf-tests
4227 (test_u32_vsnprintf1_LDADD): Likewise.
4228 * modules/unistdio/u32-vsprintf-tests
4229 (test_u32_vsprintf1_LDADD): Likewise.
4230 * modules/unistdio/u8-vsnprintf-tests
4231 (test_u8_vsnprintf1_LDADD): Likewise.
4232 * modules/unistdio/u8-vsprintf-tests
4233 (test_u8_vsprintf1_LDADD): Likewise.
4234 * modules/unistdio/ulc-vsnprintf-tests
4235 (test_ulc_vsnprintf1_LDADD): Likewise.
4236 * modules/unistdio/ulc-vsprintf-tests
4237 (test_ulc_vsprintf1_LDADD): Likewise.
4239 Fix linking of some uniconv tests on FreeBSD.
4240 * modules/uniconv/u16-conv-from-enc-tests
4241 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
4242 * modules/uniconv/u16-conv-to-enc-tests
4243 (test_u16_conv_to_enc_LDADD): Likewise.
4244 * modules/uniconv/u16-strconv-from-enc-tests
4245 (test_u16_strconv_from_enc_LDADD): Likewise.
4246 * modules/uniconv/u16-strconv-to-enc-tests
4247 (test_u16_strconv_to_enc_LDADD): Likewise.
4248 * modules/uniconv/u32-conv-from-enc-tests
4249 (test_u32_conv_from_enc_LDADD): Likewise.
4250 * modules/uniconv/u32-conv-to-enc-tests
4251 (test_u32_conv_to_enc_LDADD): Likewise.
4252 * modules/uniconv/u32-strconv-from-enc-tests
4253 (test_u32_strconv_from_enc_LDADD): Likewise.
4254 * modules/uniconv/u32-strconv-to-enc-tests
4255 (test_u32_strconv_to_enc_LDADD): Likewise.
4256 * modules/uniconv/u8-conv-from-enc-tests
4257 (test_u8_conv_from_enc_LDADD): Likewise.
4258 * modules/uniconv/u8-conv-to-enc-tests
4259 (test_u8_conv_to_enc_LDADD): Likewise.
4260 * modules/uniconv/u8-strconv-from-enc-tests
4261 (test_u8_strconv_from_enc_LDADD): Likewise.
4262 * modules/uniconv/u8-strconv-to-enc-tests
4263 (test_u8_strconv_to_enc_LDADD): Likewise.
4265 2007-10-22 Bruno Haible <bruno@clisp.org>
4267 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
4270 2007-10-22 Eric Blake <ebb9@byu.net>
4272 Tweak x*printf documentation.
4273 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
4274 variable name and comments.
4275 Suggested by Bruno Haible.
4277 2007-10-22 Bruno Haible <bruno@clisp.org>
4279 * lib/acl.c (copy_acl): Fix file name in comment.
4281 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
4283 Fix Tru64 problem with stdbool.h.
4284 * lib/stdbool.in.h (false, true):
4285 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
4286 Don't declare as an enum in this situation; it runs afoul of Tru64.
4287 Problem reported by Steven M. Schweda in
4288 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
4290 2007-10-22 Eric Blake <ebb9@byu.net>
4292 Also wrap vf?printf.
4293 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
4294 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
4295 (xvprintf, xvfprintf): New functions.
4297 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4299 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
4300 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
4302 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
4303 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
4305 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
4307 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
4310 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4313 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
4314 Undef `sys' after including sys/table.h, for Tru64 4.0D.
4316 * tests/test-i-ring.c: Work for C89.
4318 2007-10-22 Bruno Haible <bruno@clisp.org>
4320 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
4321 -1u, in preprocessor expression, so that we don't test for the bug
4322 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
4323 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4325 2007-10-22 Eric Blake <ebb9@byu.net>
4327 * tests/test-yesno.sh: Silence stderr during test.
4329 2007-10-22 Simon Josefsson <simon@josefsson.org>
4331 * modules/crypto/gc-camellia: New file.
4333 * m4/gc-camellia.m4: New file.
4335 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
4337 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
4339 2007-10-22 Simon Josefsson <simon@josefsson.org>
4341 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
4342 --help to stdout. Reported by sms@antinode.org (Steven
4345 2007-10-22 Simon Josefsson <simon@josefsson.org>
4347 * users.txt: Fix link to libksba.
4349 2007-10-21 Ben Pfaff <blp@gnu.org>
4351 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
4352 round.c roundf implementation that depends on floorf and ceilf to
4353 be tested unconditionally.
4355 2007-10-21 Ben Pfaff <blp@gnu.org>
4357 * m4/check-libm-func.m4: Removed.
4358 * m4/check-math-lib.m4: New file.
4359 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
4360 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
4361 definition and lack of AC_LIBOBJ([roundf]).
4362 * m4/roundl.m4: Ditto, and similarly for roundl.
4363 * modules/round: Reference new m4 file.
4364 * modules/roundf: Ditto.
4365 * modules/roundl: Ditto.
4366 * tests/test-round2.c (main): Use ROUND instead of round.
4367 Bug report from Bruno Haible.
4369 2007-10-21 Bruno Haible <bruno@clisp.org>
4371 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
4374 2007-10-21 Bruno Haible <bruno@clisp.org>
4376 * tests/test-wcwidth.c (main): Allow negative result for some control
4379 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
4380 Needed on OSF/1 5.1.
4382 2007-10-21 Bruno Haible <bruno@clisp.org>
4384 * tests/test-floorf1.c: Include isnanf.h.
4385 (main): Use isnanf() instead of isnan().
4386 * tests/test-ceilf1.c: Include isnanf.h.
4387 (main): Use isnanf() instead of isnan().
4388 * tests/test-truncf1.c: Include isnanf.h.
4389 (main): Use isnanf() instead of isnan().
4390 * tests/test-roundf1.c: Include isnanf.h.
4391 (main): Use isnanf() instead of isnan().
4393 2007-10-21 Eric Blake <ebb9@byu.net>
4395 * users.txt: Update URL for m4.
4397 2007-10-21 Bruno Haible <bruno@clisp.org>
4399 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
4401 2007-10-21 Bruno Haible <bruno@clisp.org>
4403 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
4404 Git's management files if the CVS files are not present.
4406 2007-10-20 Bruno Haible <bruno@clisp.org>
4408 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4411 2007-10-20 Ben Pfaff <blp@gnu.org>
4413 * lib/math.in.h: Declare round, roundf, roundl if we are providing
4415 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4416 * lib/round.c: New file.
4417 * lib/roundf.c: New file.
4418 * lib/roundl.c: New file.
4419 * m4/round.m4: New file.
4420 * m4/roundf.m4: New file.
4421 * m4/roundl.m4: New file.
4422 * m4/check-libm-func-m4: New file.
4423 * modules/math: Replace round, roundf, roundl related @VARS@ in
4425 * modules/round: New file.
4426 * modules/round-tests: New file.
4427 * modules/roundf: New file.
4428 * modules/roundf-tests: New file.
4429 * modules/roundl: New file.
4430 * modules/roundl-tests: New file.
4431 * tests/test-round1.c: New file.
4432 * tests/test-round2.c: New file.
4433 * tests/test-roundf1.c: New file.
4434 * tests/test-roundf2.c: New file.
4435 * tests/test-roundl.c: New file.
4436 * doc/functions/round.texi: Mention round module.
4437 * doc/functions/roundf.texi: Mention roundf module.
4438 * doc/functions/roundl.texi: Mention roundl module.
4439 * MODULES.html.sh: Mention new modules.
4440 Thanks to Bruno Haible for suggestions.
4442 2007-10-20 Jim Meyering <meyering@redhat.com>
4444 * lib/xprintf.c: Include <config.h> unconditionally.
4446 Change xprintf's license to GPL.
4447 * modules/xprintf (License): s/LGPL/GPL/, since this module
4448 depends on modules (exit and exitfail) which are GPL.
4449 Suggestion from Bruno Haible.
4452 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4453 Use a clearer diagnostic.
4454 Patch from Bruno Haible.
4456 2007-10-20 Bruno Haible <bruno@clisp.org>
4458 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4459 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4460 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4462 2007-10-20 Bruno Haible <bruno@clisp.org>
4464 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4465 precision in the comparison result > x - 1 or similar.
4466 * tests/test-ceilf2.c (correct_result_p): Likewise.
4467 * tests/test-truncf2.c (correct_result_p): Likewise.
4468 * tests/test-trunc2.c (correct_result_p): Likewise.
4469 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4471 2007-10-20 Bruno Haible <bruno@clisp.org>
4473 * modules/ceil: New file.
4474 * m4/ceil.m4: New file.
4475 * doc/functions/ceil.texi: Mention the 'ceil' module.
4477 2007-10-20 Bruno Haible <bruno@clisp.org>
4479 * modules/floor: New file.
4480 * m4/floor.m4: New file.
4481 * doc/functions/floor.texi: Mention the 'floor' module.
4483 2007-10-20 Bruno Haible <bruno@clisp.org>
4485 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4487 * modules/floorf-tests (Depends-on): Likewise.
4488 * modules/truncf-tests (Depends-on): Likewise.
4489 * modules/trunc-tests (Depends-on): Likewise.
4490 Reported by Ben Pfaff.
4492 2007-10-19 Jim Meyering <meyering@redhat.com>
4494 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4495 Don't bother testing specific errno values. Just test ferror.
4498 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4500 2007-10-19 Bruno Haible <bruno@clisp.org>
4502 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4504 * modules/javaexec (Makefile.am): Likewise.
4505 * modules/relocatable-prog (Makefile.am): Likewise.
4506 Suggested by Jim Meyering.
4508 2007-10-18 Bruno Haible <bruno@clisp.org>
4510 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4511 Reported by Jim Meyering.
4513 2007-10-18 Eric Blake <ebb9@byu.net>
4515 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4517 2007-10-18 Bruno Haible <bruno@clisp.org>
4519 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4520 the format string into writable memory. Needed in Fortify conditions.
4522 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
4523 Bruno Haible <bruno@clisp.org>
4525 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4526 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4527 * modules/trim (Depends-on): Add mbchar.
4528 (configure.ac): Add gl_FUNC_MBRTOWC.
4529 (Makefile.am): Augment lib_SOURCES.
4531 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
4533 Modify glob.c to use fstatat and dirfd, to simplify it.
4534 Suggested by Eric Blake.
4535 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4536 Don't include <stdbool.h>; not used.
4537 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4538 (link_exists_p): Simplify implementation, since we can now assume
4540 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
4542 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4544 * gnulib-tool (func_get_dependencies): Fix sed script to
4547 2007-10-17 Bruno Haible <bruno@clisp.org>
4549 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4550 allow locale names without encoding suffix.
4551 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4552 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4554 2007-10-16 Bruno Haible <bruno@clisp.org>
4556 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4557 * lib/getgroups.c (getgroups): Likewise.
4558 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4560 2007-10-16 Bruno Haible <bruno@clisp.org>
4562 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4563 * modules/malloc-posix (License): Likewise.
4564 * modules/realloc-posix (License): Likewise.
4565 * modules/calloc-posix (License): Likewise.
4566 * modules/intprops (License): Change from GPL to LGPL, with
4567 Paul Eggert's approval.
4569 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
4571 Merge glibc changes into lib/glob.c.
4573 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4574 2007-10-15 04:59:03 UTC. Here are the changes:
4576 2007-10-14 Ulrich Drepper <drepper@redhat.com>
4578 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
4580 * lib/glob.c: Add some branch prediction throughout.
4582 2007-10-07 Ulrich Drepper <drepper@redhat.com>
4585 * lib/glob.c (glob): Recognize patterns starting \/.
4587 2007-02-14 Jakub Jelinek <jakub@redhat.com>
4590 * lib/glob.c (attribute_hidden): Define if not defined.
4591 (glob): Unescape dirname, filename or username when needed and not
4592 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
4593 is NULL. Handle unescaped [ in pattern without closing ].
4594 Don't pass GLOB_CHECK down to recursive glob for directories.
4595 (__glob_pattern_type): New function.
4596 (__glob_pattern_p): Implement using __glob_pattern_type.
4597 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
4598 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
4599 Remove unreachable code.
4601 2006-09-30 Ulrich Drepper <drepper@redhat.com>
4603 * lib/glob.c (glob_in_dir): Add some comments and asserts to
4604 explain why there are no leaks.
4606 2006-09-25 Jakub Jelinek <jakub@redhat.com>
4609 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
4610 time, rather allocate increasingly bigger arrays of pointers, if
4611 possible with alloca, if too large with malloc.
4613 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
4615 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
4616 Problem reported by H.Merijn Brand in
4617 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
4618 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
4619 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
4621 2007-10-15 Bruno Haible <bruno@clisp.org>
4623 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
4624 with explicit rpl_ prefix.
4625 * lib/fopen.c (fopen): Likewise.
4626 * lib/freopen.c (freopen): Likewise.
4627 * lib/iconv.c (iconv): Likewise.
4628 * lib/iconv_close.c (iconv_close): Likewise.
4630 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4632 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
4634 2007-10-15 Bruno Haible <bruno@clisp.org>
4636 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
4637 <stddef.h> instead of <stdlib.h> since we only need NULL.
4638 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4640 2007-10-15 Bruno Haible <bruno@clisp.org>
4642 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
4643 Replace paragraph talking about LIBOBJS.
4644 Reported by Colin Watson <cjwatson@debian.org>.
4646 2007-10-15 Bruno Haible <bruno@clisp.org>
4648 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
4649 <stdlib.h> before using NULL.
4651 2007-10-15 Simon Josefsson <simon@josefsson.org>
4653 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
4654 Reported by Albert Chin <china@thewrittenword.com>.
4656 2007-10-14 Bruno Haible <bruno@clisp.org>
4658 * modules/iconv_open-utf-tests: New file.
4659 * tests/test-iconv-utf.c: New file.
4661 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
4662 * modules/iconv_open-utf: New file.
4663 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
4664 (iconv, iconv_close): New declarations.
4665 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
4667 (iconv_open): Add special handling of conversion between UTF-8 and
4669 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
4670 * lib/iconv_close.c: New file.
4671 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
4673 (gl_FUNC_ICONV_OPEN): Use it.
4674 (gl_FUNC_ICONV_OPEN_UTF): New macro.
4675 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
4676 and REPLACE_ICONV_UTF.
4677 * modules/iconv_open (Depends-on): Add c-strcase.
4678 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
4680 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
4682 2007-10-13 Albert Chin <china@thewrittenword.com>
4683 Bruno Haible <bruno@clisp.org>
4685 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
4686 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
4688 2007-10-13 Bruno Haible <bruno@clisp.org>
4690 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
4691 defined, use the ISO C99 inline semantics.
4692 * lib/argp.h (ARGP_EI): Likewise.
4694 2007-10-13 Bruno Haible <bruno@clisp.org>
4696 Handle 'inline' change in gcc 4.3.0.
4697 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
4698 argp_fmtstream_write, argp_fmtstream_set_lmargin,
4699 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
4700 argp_fmtstream_point): Disable 'extern' declaration if the function
4701 definition is going to be provided inline.
4702 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
4703 semantics, not the ISO C99 inline semantics.
4704 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
4705 'extern' declaration if the function definition is going to be provided
4707 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
4708 the GNU C inline semantics, not the ISO C99 inline semantics. With
4709 GCC 4.2, avoid a warning.
4711 2007-10-13 Bruno Haible <bruno@clisp.org>
4713 * lib/freading.h (freading): Enable the use of __freading for
4715 * lib/freading.c (freading): Likewise.
4717 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
4719 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
4720 "warning: C99 inline functions are not supported; using GNU89".
4722 2007-10-12 Bruno Haible <bruno@clisp.org>
4724 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
4726 * tests/test-ceilf2.c: New file.
4727 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
4729 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
4730 * modules/ceilf-tests: Update.
4732 2007-10-12 Bruno Haible <bruno@clisp.org>
4734 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
4736 * tests/test-floorf2.c: New file.
4737 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
4739 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
4740 * modules/floorf-tests: Update.
4742 2007-10-12 Bruno Haible <bruno@clisp.org>
4744 * tests/test-trunc2.c: New file.
4745 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
4747 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
4748 * modules/trunc-tests: Update.
4750 2007-10-12 Bruno Haible <bruno@clisp.org>
4752 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
4754 * tests/test-truncf2.c: New file.
4755 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
4757 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
4758 * modules/truncf-tests: Update.
4760 2007-10-11 Eric Blake <ebb9@byu.net>
4762 Don't claim strerror is broken on Interix.
4763 * doc/functions/strerror.texi (strerror): Known broken systems are
4764 now Solaris 8, and not Interix.
4765 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
4766 Interix on cross-compile.
4767 Reported by Martin Koeppe in
4768 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
4770 2007-10-11 Bruno Haible <bruno@clisp.org>
4772 * modules/i-ring-tests: New file.
4773 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
4776 2007-10-11 Bruno Haible <bruno@clisp.org>
4778 * modules/filenamecat-tests: New file.
4779 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
4780 * lib/filenamecat.c: Remove test code.
4782 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
4784 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
4786 * lib/strerror.c: Include <string.h> always, to test interface,
4787 and to remove the need for the dummy.
4788 Include intprops.h to compute width instead of doing it ourselves
4789 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
4790 (strerror): Define it to return NULL if there's no system strerror.
4791 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
4792 Omit !HAVE_STRERROR code. We don't need to worry about supporting
4793 ancient pre-strerror Unix systems well any more. Saying "unknown
4794 system error" is enough.
4795 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
4796 simpler strerror.c implementation.
4797 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
4798 Simplify the tests to reflect the simpler strerror implementation.
4799 * modules/strerror (Depends-on): Add intprops.
4801 2007-10-09 Eric Blake <ebb9@byu.net>
4803 Silence test-fpending.
4804 * modules/fpending-tests (Files): Add wrapper script.
4805 * tests/test-fpending.sh: New file.
4807 2007-10-09 Bruno Haible <bruno@clisp.org>
4809 * MODULES.html.sh (func_module): Don't create a hyperlink for
4810 function names like 'printf_frexp'.
4811 (Misc): Add crc, memxor.
4812 (Characteristics of floating types): New section.
4813 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
4814 isnanf-nolibm, signbit, trunc, truncf, truncl.
4815 (Enhancements for ISO C 99 functions): New subsection Input/output.
4816 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
4817 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
4818 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
4819 (Compatibility checks for POSIX:2001 functions): Add clock-time.
4820 (Enhancements for POSIX:2001 functions): Add chdir-long.
4821 (File system functions): Add areadlink, chdir-safer, read-file.
4823 (File system as inode set): New section.
4824 (Date and time): Add gethrxtime.
4825 (Multithreading): Add openmp.
4826 (Internationalization functions): Add localename.
4827 (Unicode string functions): Add unistr/u*-mbsnlen.
4828 (Support for maintaining and releasing projects): Add git-version-gen.
4829 (Lone files): Remove directories.
4831 2007-10-08 Ben Pfaff <blp@gnu.org>
4833 * lib/xmalloca.h: Fix typo in comment.
4835 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
4837 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
4838 when avoiding problems with integer overflow. Use a portable test
4841 2007-10-08 Simon Josefsson <simon@josefsson.org>
4843 * modules/dummy (License): Change to LGPLv2+.
4844 * modules/float (License): Likewise
4845 * modules/realloc (License): Likewise
4846 * modules/stdlib (License): Likewise
4848 2007-10-07 Bruno Haible <bruno@clisp.org>
4850 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
4851 * floor.c (TWO_MANT_DIG): Likewise.
4852 * ceil.c (TWO_MANT_DIG): Likewise.
4853 Reported by Ben Pfaff.
4855 2007-10-07 Bruno Haible <bruno@clisp.org>
4857 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
4858 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
4859 * lib/frexp.c (FUNC): Likewise.
4860 * lib/printf-frexp.h (printf_frexp): Likewise.
4861 * lib/printf-frexpl.h (printf_frexpl): Likewise.
4862 * lib/printf-frexp.c (FUNC): Likewise.
4863 Suggested by Jim Meyering.
4865 2007-10-07 Jim Meyering <meyering@redhat.com>
4867 Make xnanosleep's integer overflow test more robust.
4868 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
4869 so that gcc-4.3.0 doesn't optimize away this test for overflow.
4871 2007-10-07 Bruno Haible <bruno@clisp.org>
4873 * NEWS: Mention the license change.
4875 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
4876 abbreviations in the modules files.
4878 Change copyright notice from GPLv2+ to GPLv3+.
4879 * README: Change copyright notice.
4880 * MODULES.html.sh: Likewise.
4881 * build-aux/bootstrap.conf: Likewise.
4882 * build-aux/config.libpath: Likewise.
4883 * build-aux/csharpcomp.sh.in: Likewise.
4884 * build-aux/csharpexec.sh.in: Likewise.
4885 * build-aux/install-reloc: Likewise.
4886 * build-aux/javacomp.sh.in: Likewise.
4887 * build-aux/javaexec.sh.in: Likewise.
4888 * build-aux/ldd.sh.in: Likewise.
4889 * build-aux/reloc-ldflags: Likewise.
4890 * build-aux/relocatable.sh.in: Likewise.
4891 * build-aux/x-to-1.in: Likewise.
4892 * check-module: Likewise.
4893 * config/srclistvars.sh: Likewise.
4894 * gnulib-tool: Likewise.
4895 * lib/acl-internal.h: Likewise.
4896 * lib/acl.c: Likewise.
4897 * lib/acl.h: Likewise.
4898 * lib/acl_entries.c: Likewise.
4899 * lib/areadlink-with-size.c: Likewise.
4900 * lib/areadlink.c: Likewise.
4901 * lib/areadlink.h: Likewise.
4902 * lib/argmatch.c: Likewise.
4903 * lib/argmatch.h: Likewise.
4904 * lib/argp-ba.c: Likewise.
4905 * lib/argp-eexst.c: Likewise.
4906 * lib/argp-fmtstream.c: Likewise.
4907 * lib/argp-fmtstream.h: Likewise.
4908 * lib/argp-fs-xinl.c: Likewise.
4909 * lib/argp-help.c: Likewise.
4910 * lib/argp-namefrob.h: Likewise.
4911 * lib/argp-parse.c: Likewise.
4912 * lib/argp-pin.c: Likewise.
4913 * lib/argp-pv.c: Likewise.
4914 * lib/argp-pvh.c: Likewise.
4915 * lib/argp-xinl.c: Likewise.
4916 * lib/argp.h: Likewise.
4917 * lib/at-func.c: Likewise.
4918 * lib/atanl.c: Likewise.
4919 * lib/backupfile.c: Likewise.
4920 * lib/backupfile.h: Likewise.
4921 * lib/basename.c: Likewise.
4922 * lib/binary-io.h: Likewise.
4923 * lib/byteswap.in.h: Likewise.
4924 * lib/c-stack.c: Likewise.
4925 * lib/c-stack.h: Likewise.
4926 * lib/c-strcasestr.c: Likewise.
4927 * lib/c-strcasestr.h: Likewise.
4928 * lib/c-strstr.c: Likewise.
4929 * lib/c-strstr.h: Likewise.
4930 * lib/c-strtod.c: Likewise.
4931 * lib/calloc.c: Likewise.
4932 * lib/canon-host.c: Likewise.
4933 * lib/canon-host.h: Likewise.
4934 * lib/canonicalize-lgpl.c: Likewise.
4935 * lib/canonicalize.c: Likewise.
4936 * lib/canonicalize.h: Likewise.
4937 * lib/ceil.c: Likewise.
4938 * lib/ceilf.c: Likewise.
4939 * lib/ceill.c: Likewise.
4940 * lib/chdir-long.c: Likewise.
4941 * lib/chdir-long.h: Likewise.
4942 * lib/chdir-safer.c: Likewise.
4943 * lib/chdir-safer.h: Likewise.
4944 * lib/chown.c: Likewise.
4945 * lib/classpath.c: Likewise.
4946 * lib/classpath.h: Likewise.
4947 * lib/clean-temp.c: Likewise.
4948 * lib/clean-temp.h: Likewise.
4949 * lib/cloexec.c: Likewise.
4950 * lib/close-stream.c: Likewise.
4951 * lib/closein.c: Likewise.
4952 * lib/closein.h: Likewise.
4953 * lib/closeout.c: Likewise.
4954 * lib/closeout.h: Likewise.
4955 * lib/concat-filename.c: Likewise.
4956 * lib/copy-file.c: Likewise.
4957 * lib/copy-file.h: Likewise.
4958 * lib/count-one-bits.h: Likewise.
4959 * lib/crc.c: Likewise.
4960 * lib/crc.h: Likewise.
4961 * lib/creat-safer.c: Likewise.
4962 * lib/csharpcomp.c: Likewise.
4963 * lib/csharpcomp.h: Likewise.
4964 * lib/csharpexec.c: Likewise.
4965 * lib/csharpexec.h: Likewise.
4966 * lib/cycle-check.c: Likewise.
4967 * lib/cycle-check.h: Likewise.
4968 * lib/diacrit.c: Likewise.
4969 * lib/diacrit.h: Likewise.
4970 * lib/diffseq.h: Likewise.
4971 * lib/dirchownmod.c: Likewise.
4972 * lib/dirent.in.h: Likewise.
4973 * lib/dirfd.c: Likewise.
4974 * lib/dirfd.h: Likewise.
4975 * lib/dirname.c: Likewise.
4976 * lib/dirname.h: Likewise.
4977 * lib/dummy.c: Likewise.
4978 * lib/dup-safer.c: Likewise.
4979 * lib/dup2.c: Likewise.
4980 * lib/eealloc.h: Likewise.
4981 * lib/error.c: Likewise.
4982 * lib/error.h: Likewise.
4983 * lib/euidaccess.c: Likewise.
4984 * lib/exclude.c: Likewise.
4985 * lib/exclude.h: Likewise.
4986 * lib/execute.c: Likewise.
4987 * lib/execute.h: Likewise.
4988 * lib/exitfail.c: Likewise.
4989 * lib/exitfail.h: Likewise.
4990 * lib/expl.c: Likewise.
4991 * lib/fatal-signal.c: Likewise.
4992 * lib/fatal-signal.h: Likewise.
4993 * lib/fbufmode.c: Likewise.
4994 * lib/fbufmode.h: Likewise.
4995 * lib/fchdir.c: Likewise.
4996 * lib/fchmodat.c: Likewise.
4997 * lib/fchownat.c: Likewise.
4998 * lib/fcntl--.h: Likewise.
4999 * lib/fcntl-safer.h: Likewise.
5000 * lib/fcntl.in.h: Likewise.
5001 * lib/fd-safer.c: Likewise.
5002 * lib/fflush.c: Likewise.
5003 * lib/file-has-acl.c: Likewise.
5004 * lib/file-set.c: Likewise.
5005 * lib/file-type.c: Likewise.
5006 * lib/file-type.h: Likewise.
5007 * lib/fileblocks.c: Likewise.
5008 * lib/filemode.c: Likewise.
5009 * lib/filemode.h: Likewise.
5010 * lib/filename.h: Likewise.
5011 * lib/filenamecat.c: Likewise.
5012 * lib/filenamecat.h: Likewise.
5013 * lib/findprog.c: Likewise.
5014 * lib/findprog.h: Likewise.
5015 * lib/float.in.h: Likewise.
5016 * lib/floor.c: Likewise.
5017 * lib/floorf.c: Likewise.
5018 * lib/floorl.c: Likewise.
5019 * lib/fopen-safer.c: Likewise.
5020 * lib/fopen.c: Likewise.
5021 * lib/fpending.c: Likewise.
5022 * lib/fpending.h: Likewise.
5023 * lib/fprintf.c: Likewise.
5024 * lib/fprintftime.h: Likewise.
5025 * lib/fpucw.h: Likewise.
5026 * lib/fpurge.c: Likewise.
5027 * lib/fpurge.h: Likewise.
5028 * lib/freadable.c: Likewise.
5029 * lib/freadable.h: Likewise.
5030 * lib/freadahead.c: Likewise.
5031 * lib/freadahead.h: Likewise.
5032 * lib/freading.c: Likewise.
5033 * lib/freading.h: Likewise.
5034 * lib/free.c: Likewise.
5035 * lib/freopen.c: Likewise.
5036 * lib/frexp.c: Likewise.
5037 * lib/frexpl.c: Likewise.
5038 * lib/fseek.c: Likewise.
5039 * lib/fseterr.c: Likewise.
5040 * lib/fseterr.h: Likewise.
5041 * lib/fstatat.c: Likewise.
5042 * lib/fstrcmp.c: Likewise.
5043 * lib/fstrcmp.h: Likewise.
5044 * lib/fsusage.c: Likewise.
5045 * lib/fsusage.h: Likewise.
5046 * lib/ftell.c: Likewise.
5047 * lib/ftello.c: Likewise.
5048 * lib/fts-cycle.c: Likewise.
5049 * lib/fts.c: Likewise.
5050 * lib/fts_.h: Likewise.
5051 * lib/full-read.c: Likewise.
5052 * lib/full-read.h: Likewise.
5053 * lib/full-write.c: Likewise.
5054 * lib/full-write.h: Likewise.
5055 * lib/fwritable.c: Likewise.
5056 * lib/fwritable.h: Likewise.
5057 * lib/fwriteerror.c: Likewise.
5058 * lib/fwriteerror.h: Likewise.
5059 * lib/fwriting.c: Likewise.
5060 * lib/fwriting.h: Likewise.
5061 * lib/gcd.c: Likewise.
5062 * lib/gcd.h: Likewise.
5063 * lib/getcwd.c: Likewise.
5064 * lib/getdate.h: Likewise.
5065 * lib/getdate.y: Likewise.
5066 * lib/getdomainname.c: Likewise.
5067 * lib/getdomainname.h: Likewise.
5068 * lib/getgroups.c: Likewise.
5069 * lib/gethostname.c: Likewise.
5070 * lib/gethrxtime.c: Likewise.
5071 * lib/gethrxtime.h: Likewise.
5072 * lib/getloadavg.c: Likewise.
5073 * lib/getndelim2.c: Likewise.
5074 * lib/getndelim2.h: Likewise.
5075 * lib/getnline.c: Likewise.
5076 * lib/getnline.h: Likewise.
5077 * lib/getopt.c: Likewise.
5078 * lib/getopt.in.h: Likewise.
5079 * lib/getopt1.c: Likewise.
5080 * lib/getopt_int.h: Likewise.
5081 * lib/getpagesize.h: Likewise.
5082 * lib/getsubopt.c: Likewise.
5083 * lib/gettime.c: Likewise.
5084 * lib/getugroups.c: Likewise.
5085 * lib/getugroups.h: Likewise.
5086 * lib/getusershell.c: Likewise.
5087 * lib/gl_anyavltree_list1.h: Likewise.
5088 * lib/gl_anyavltree_list2.h: Likewise.
5089 * lib/gl_anyhash_list1.h: Likewise.
5090 * lib/gl_anyhash_list2.h: Likewise.
5091 * lib/gl_anylinked_list1.h: Likewise.
5092 * lib/gl_anylinked_list2.h: Likewise.
5093 * lib/gl_anyrbtree_list1.h: Likewise.
5094 * lib/gl_anyrbtree_list2.h: Likewise.
5095 * lib/gl_anytree_list1.h: Likewise.
5096 * lib/gl_anytree_list2.h: Likewise.
5097 * lib/gl_anytree_oset.h: Likewise.
5098 * lib/gl_anytreehash_list1.h: Likewise.
5099 * lib/gl_anytreehash_list2.h: Likewise.
5100 * lib/gl_array_list.c: Likewise.
5101 * lib/gl_array_list.h: Likewise.
5102 * lib/gl_array_oset.c: Likewise.
5103 * lib/gl_array_oset.h: Likewise.
5104 * lib/gl_avltree_list.c: Likewise.
5105 * lib/gl_avltree_list.h: Likewise.
5106 * lib/gl_avltree_oset.c: Likewise.
5107 * lib/gl_avltree_oset.h: Likewise.
5108 * lib/gl_avltreehash_list.c: Likewise.
5109 * lib/gl_avltreehash_list.h: Likewise.
5110 * lib/gl_carray_list.c: Likewise.
5111 * lib/gl_carray_list.h: Likewise.
5112 * lib/gl_linked_list.c: Likewise.
5113 * lib/gl_linked_list.h: Likewise.
5114 * lib/gl_linkedhash_list.c: Likewise.
5115 * lib/gl_linkedhash_list.h: Likewise.
5116 * lib/gl_list.c: Likewise.
5117 * lib/gl_list.h: Likewise.
5118 * lib/gl_oset.c: Likewise.
5119 * lib/gl_oset.h: Likewise.
5120 * lib/gl_rbtree_list.c: Likewise.
5121 * lib/gl_rbtree_list.h: Likewise.
5122 * lib/gl_rbtree_oset.c: Likewise.
5123 * lib/gl_rbtree_oset.h: Likewise.
5124 * lib/gl_rbtreehash_list.c: Likewise.
5125 * lib/gl_rbtreehash_list.h: Likewise.
5126 * lib/gl_sublist.c: Likewise.
5127 * lib/gl_sublist.h: Likewise.
5128 * lib/group-member.c: Likewise.
5129 * lib/group-member.h: Likewise.
5130 * lib/hard-locale.c: Likewise.
5131 * lib/hard-locale.h: Likewise.
5132 * lib/hash-pjw.c: Likewise.
5133 * lib/hash-pjw.h: Likewise.
5134 * lib/hash-triple.c: Likewise.
5135 * lib/hash.c: Likewise.
5136 * lib/hash.h: Likewise.
5137 * lib/human.c: Likewise.
5138 * lib/human.h: Likewise.
5139 * lib/i-ring.c: Likewise.
5140 * lib/i-ring.h: Likewise.
5141 * lib/idcache.c: Likewise.
5142 * lib/imaxabs.c: Likewise.
5143 * lib/imaxdiv.c: Likewise.
5144 * lib/inet_pton.c: Likewise.
5145 * lib/inet_pton.h: Likewise.
5146 * lib/intprops.h: Likewise.
5147 * lib/inttostr.c: Likewise.
5148 * lib/inttostr.h: Likewise.
5149 * lib/inttypes.in.h: Likewise.
5150 * lib/isapipe.c: Likewise.
5151 * lib/isdir.c: Likewise.
5152 * lib/isnan.c: Likewise.
5153 * lib/isnan.h: Likewise.
5154 * lib/isnanf.c: Likewise.
5155 * lib/isnanf.h: Likewise.
5156 * lib/isnanl-nolibm.h: Likewise.
5157 * lib/isnanl.c: Likewise.
5158 * lib/isnanl.h: Likewise.
5159 * lib/javacomp.c: Likewise.
5160 * lib/javacomp.h: Likewise.
5161 * lib/javaexec.c: Likewise.
5162 * lib/javaexec.h: Likewise.
5163 * lib/javaversion.c: Likewise.
5164 * lib/javaversion.h: Likewise.
5165 * lib/javaversion.java: Likewise.
5166 * lib/lbrkprop.h: Likewise.
5167 * lib/lchmod.h: Likewise.
5168 * lib/lchown.c: Likewise.
5169 * lib/ldexpl.c: Likewise.
5170 * lib/linebreak.c: Likewise.
5171 * lib/linebreak.h: Likewise.
5172 * lib/linebuffer.c: Likewise.
5173 * lib/linebuffer.h: Likewise.
5174 * lib/locale.in.h: Likewise.
5175 * lib/logl.c: Likewise.
5176 * lib/long-options.c: Likewise.
5177 * lib/long-options.h: Likewise.
5178 * lib/lstat.c: Likewise.
5179 * lib/lstat.h: Likewise.
5180 * lib/math.in.h: Likewise.
5181 * lib/mbchar.c: Likewise.
5182 * lib/mbchar.h: Likewise.
5183 * lib/mbfile.h: Likewise.
5184 * lib/mbiter.h: Likewise.
5185 * lib/mbscasecmp.c: Likewise.
5186 * lib/mbscasestr.c: Likewise.
5187 * lib/mbschr.c: Likewise.
5188 * lib/mbscspn.c: Likewise.
5189 * lib/mbslen.c: Likewise.
5190 * lib/mbsncasecmp.c: Likewise.
5191 * lib/mbsnlen.c: Likewise.
5192 * lib/mbspbrk.c: Likewise.
5193 * lib/mbspcasecmp.c: Likewise.
5194 * lib/mbsrchr.c: Likewise.
5195 * lib/mbssep.c: Likewise.
5196 * lib/mbsspn.c: Likewise.
5197 * lib/mbsstr.c: Likewise.
5198 * lib/mbstok_r.c: Likewise.
5199 * lib/mbswidth.c: Likewise.
5200 * lib/mbswidth.h: Likewise.
5201 * lib/mbuiter.h: Likewise.
5202 * lib/memcasecmp.c: Likewise.
5203 * lib/memcasecmp.h: Likewise.
5204 * lib/memchr.c: Likewise.
5205 * lib/memcmp.c: Likewise.
5206 * lib/memcoll.c: Likewise.
5207 * lib/memcoll.h: Likewise.
5208 * lib/memcpy.c: Likewise.
5209 * lib/memrchr.c: Likewise.
5210 * lib/mkancesdirs.c: Likewise.
5211 * lib/mkdir-p.c: Likewise.
5212 * lib/mkdir-p.h: Likewise.
5213 * lib/mkdir.c: Likewise.
5214 * lib/mkdirat.c: Likewise.
5215 * lib/mkdtemp.c: Likewise.
5216 * lib/mkstemp-safer.c: Likewise.
5217 * lib/mkstemp.c: Likewise.
5218 * lib/modechange.c: Likewise.
5219 * lib/modechange.h: Likewise.
5220 * lib/mountlist.c: Likewise.
5221 * lib/mountlist.h: Likewise.
5222 * lib/mpsort.c: Likewise.
5223 * lib/nanosleep.c: Likewise.
5224 * lib/obstack.c: Likewise.
5225 * lib/obstack.h: Likewise.
5226 * lib/open-safer.c: Likewise.
5227 * lib/open.c: Likewise.
5228 * lib/openat-die.c: Likewise.
5229 * lib/openat-priv.h: Likewise.
5230 * lib/openat-proc.c: Likewise.
5231 * lib/openat.c: Likewise.
5232 * lib/openat.h: Likewise.
5233 * lib/pagealign_alloc.c: Likewise.
5234 * lib/pagealign_alloc.h: Likewise.
5235 * lib/physmem.c: Likewise.
5236 * lib/physmem.h: Likewise.
5237 * lib/pipe-safer.c: Likewise.
5238 * lib/pipe.c: Likewise.
5239 * lib/pipe.h: Likewise.
5240 * lib/posixtm.c: Likewise.
5241 * lib/posixtm.h: Likewise.
5242 * lib/posixver.c: Likewise.
5243 * lib/printf-frexp.c: Likewise.
5244 * lib/printf-frexp.h: Likewise.
5245 * lib/printf-frexpl.c: Likewise.
5246 * lib/printf-frexpl.h: Likewise.
5247 * lib/printf.c: Likewise.
5248 * lib/progname.c: Likewise.
5249 * lib/progname.h: Likewise.
5250 * lib/progreloc.c: Likewise.
5251 * lib/putenv.c: Likewise.
5252 * lib/quote.c: Likewise.
5253 * lib/quote.h: Likewise.
5254 * lib/quotearg.c: Likewise.
5255 * lib/quotearg.h: Likewise.
5256 * lib/raise.c: Likewise.
5257 * lib/readline.c: Likewise.
5258 * lib/readline.h: Likewise.
5259 * lib/readlink.c: Likewise.
5260 * lib/readtokens.c: Likewise.
5261 * lib/readtokens.h: Likewise.
5262 * lib/readtokens0.c: Likewise.
5263 * lib/readtokens0.h: Likewise.
5264 * lib/readutmp.c: Likewise.
5265 * lib/readutmp.h: Likewise.
5266 * lib/realloc.c: Likewise.
5267 * lib/relocwrapper.c: Likewise.
5268 * lib/rename-dest-slash.c: Likewise.
5269 * lib/rename.c: Likewise.
5270 * lib/rmdir.c: Likewise.
5271 * lib/rpmatch.c: Likewise.
5272 * lib/safe-read.c: Likewise.
5273 * lib/safe-read.h: Likewise.
5274 * lib/safe-write.c: Likewise.
5275 * lib/safe-write.h: Likewise.
5276 * lib/same-inode.h: Likewise.
5277 * lib/same.c: Likewise.
5278 * lib/same.h: Likewise.
5279 * lib/save-cwd.c: Likewise.
5280 * lib/save-cwd.h: Likewise.
5281 * lib/savedir.c: Likewise.
5282 * lib/savedir.h: Likewise.
5283 * lib/savewd.c: Likewise.
5284 * lib/savewd.h: Likewise.
5285 * lib/search.in.h: Likewise.
5286 * lib/setenv.c: Likewise.
5287 * lib/setenv.h: Likewise.
5288 * lib/settime.c: Likewise.
5289 * lib/sh-quote.c: Likewise.
5290 * lib/sh-quote.h: Likewise.
5291 * lib/sig2str.c: Likewise.
5292 * lib/sig2str.h: Likewise.
5293 * lib/signal.in.h: Likewise.
5294 * lib/signbitd.c: Likewise.
5295 * lib/signbitf.c: Likewise.
5296 * lib/signbitl.c: Likewise.
5297 * lib/sigprocmask.c: Likewise.
5298 * lib/sincosl.c: Likewise.
5299 * lib/sleep.c: Likewise.
5300 * lib/sprintf.c: Likewise.
5301 * lib/sqrtl.c: Likewise.
5302 * lib/stat-time.h: Likewise.
5303 * lib/stdio--.h: Likewise.
5304 * lib/stdio-safer.h: Likewise.
5305 * lib/stdlib--.h: Likewise.
5306 * lib/stdlib-safer.h: Likewise.
5307 * lib/stdlib.in.h: Likewise.
5308 * lib/stpcpy.c: Likewise.
5309 * lib/stpncpy.c: Likewise.
5310 * lib/strchrnul.c: Likewise.
5311 * lib/strcspn.c: Likewise.
5312 * lib/strerror.c: Likewise.
5313 * lib/strftime.c: Likewise.
5314 * lib/strftime.h: Likewise.
5315 * lib/striconveh.c: Likewise.
5316 * lib/striconveh.h: Likewise.
5317 * lib/striconveha.c: Likewise.
5318 * lib/striconveha.h: Likewise.
5319 * lib/stripslash.c: Likewise.
5320 * lib/strnlen1.c: Likewise.
5321 * lib/strnlen1.h: Likewise.
5322 * lib/strtod.c: Likewise.
5323 * lib/strtoimax.c: Likewise.
5324 * lib/strtok_r.c: Likewise.
5325 * lib/strtol.c: Likewise.
5326 * lib/strtoll.c: Likewise.
5327 * lib/strtoul.c: Likewise.
5328 * lib/strtoull.c: Likewise.
5329 * lib/sysexits.in.h: Likewise.
5330 * lib/tempname.c: Likewise.
5331 * lib/tempname.h: Likewise.
5332 * lib/timespec.h: Likewise.
5333 * lib/tls.c: Likewise.
5334 * lib/tls.h: Likewise.
5335 * lib/tmpdir.c: Likewise.
5336 * lib/tmpdir.h: Likewise.
5337 * lib/tmpfile-safer.c: Likewise.
5338 * lib/tmpfile.c: Likewise.
5339 * lib/trigl.c: Likewise.
5340 * lib/trigl.h: Likewise.
5341 * lib/trim.c: Likewise.
5342 * lib/trim.h: Likewise.
5343 * lib/trunc.c: Likewise.
5344 * lib/truncf.c: Likewise.
5345 * lib/truncl.c: Likewise.
5346 * lib/tsearch.c: Likewise.
5347 * lib/unicodeio.c: Likewise.
5348 * lib/unicodeio.h: Likewise.
5349 * lib/unistd--.h: Likewise.
5350 * lib/unistd-safer.h: Likewise.
5351 * lib/unistdio/ulc-fprintf.c: Likewise.
5352 * lib/unistdio/ulc-vfprintf.c: Likewise.
5353 * lib/unlinkdir.c: Likewise.
5354 * lib/unlinkdir.h: Likewise.
5355 * lib/unlocked-io.h: Likewise.
5356 * lib/unsetenv.c: Likewise.
5357 * lib/userspec.c: Likewise.
5358 * lib/utime.c: Likewise.
5359 * lib/utimecmp.c: Likewise.
5360 * lib/utimecmp.h: Likewise.
5361 * lib/utimens.c: Likewise.
5362 * lib/verify.h: Likewise.
5363 * lib/verror.c: Likewise.
5364 * lib/verror.h: Likewise.
5365 * lib/version-etc-fsf.c: Likewise.
5366 * lib/version-etc.c: Likewise.
5367 * lib/version-etc.h: Likewise.
5368 * lib/vfprintf.c: Likewise.
5369 * lib/vprintf.c: Likewise.
5370 * lib/vsprintf.c: Likewise.
5371 * lib/w32spawn.h: Likewise.
5372 * lib/wait-process.c: Likewise.
5373 * lib/wait-process.h: Likewise.
5374 * lib/wcwidth.c: Likewise.
5375 * lib/write-any-file.c: Likewise.
5376 * lib/xalloc-die.c: Likewise.
5377 * lib/xalloc.h: Likewise.
5378 * lib/xasprintf.c: Likewise.
5379 * lib/xgetcwd.c: Likewise.
5380 * lib/xgetcwd.h: Likewise.
5381 * lib/xgetdomainname.c: Likewise.
5382 * lib/xgetdomainname.h: Likewise.
5383 * lib/xgethostname.c: Likewise.
5384 * lib/xmalloc.c: Likewise.
5385 * lib/xmalloca.c: Likewise.
5386 * lib/xmalloca.h: Likewise.
5387 * lib/xmemcoll.c: Likewise.
5388 * lib/xnanosleep.c: Likewise.
5389 * lib/xreadlink.c: Likewise.
5390 * lib/xreadlink.h: Likewise.
5391 * lib/xsetenv.c: Likewise.
5392 * lib/xsetenv.h: Likewise.
5393 * lib/xstriconv.c: Likewise.
5394 * lib/xstriconv.h: Likewise.
5395 * lib/xstrndup.c: Likewise.
5396 * lib/xstrndup.h: Likewise.
5397 * lib/xstrtod.c: Likewise.
5398 * lib/xstrtod.h: Likewise.
5399 * lib/xstrtol-error.c: Likewise.
5400 * lib/xstrtol.c: Likewise.
5401 * lib/xstrtol.h: Likewise.
5402 * lib/xtime.h: Likewise.
5403 * lib/xvasprintf.c: Likewise.
5404 * lib/xvasprintf.h: Likewise.
5405 * lib/yesno.c: Likewise.
5406 * lib/yesno.h: Likewise.
5407 * posix-modules: Likewise.
5408 * tests/test-alloca-opt.c: Likewise.
5409 * tests/test-arcfour.c: Likewise.
5410 * tests/test-arctwo.c: Likewise.
5411 * tests/test-argmatch.c: Likewise.
5412 * tests/test-argp-2.sh: Likewise.
5413 * tests/test-argp.c: Likewise.
5414 * tests/test-arpa_inet.c: Likewise.
5415 * tests/test-array_list.c: Likewise.
5416 * tests/test-array_oset.c: Likewise.
5417 * tests/test-atexit.c: Likewise.
5418 * tests/test-avltree_list.c: Likewise.
5419 * tests/test-avltree_oset.c: Likewise.
5420 * tests/test-avltreehash_list.c: Likewise.
5421 * tests/test-base64.c: Likewise.
5422 * tests/test-binary-io.c: Likewise.
5423 * tests/test-byteswap.c: Likewise.
5424 * tests/test-c-ctype.c: Likewise.
5425 * tests/test-c-strcasecmp.c: Likewise.
5426 * tests/test-c-strcasestr.c: Likewise.
5427 * tests/test-c-strncasecmp.c: Likewise.
5428 * tests/test-c-strstr.c: Likewise.
5429 * tests/test-canonicalize-lgpl.c: Likewise.
5430 * tests/test-canonicalize.c: Likewise.
5431 * tests/test-carray_list.c: Likewise.
5432 * tests/test-ceilf.c: Likewise.
5433 * tests/test-ceill.c: Likewise.
5434 * tests/test-count-one-bits.c: Likewise.
5435 * tests/test-crc.c: Likewise.
5436 * tests/test-dirname.c: Likewise.
5437 * tests/test-fbufmode.c: Likewise.
5438 * tests/test-fcntl.c: Likewise.
5439 * tests/test-fflush.c: Likewise.
5440 * tests/test-floorf.c: Likewise.
5441 * tests/test-floorl.c: Likewise.
5442 * tests/test-fopen.c: Likewise.
5443 * tests/test-fprintf-posix.c: Likewise.
5444 * tests/test-fprintf-posix.h: Likewise.
5445 * tests/test-fpurge.c: Likewise.
5446 * tests/test-freadable.c: Likewise.
5447 * tests/test-freadahead.c: Likewise.
5448 * tests/test-freading.c: Likewise.
5449 * tests/test-freopen.c: Likewise.
5450 * tests/test-frexp.c: Likewise.
5451 * tests/test-frexpl.c: Likewise.
5452 * tests/test-fseek.c: Likewise.
5453 * tests/test-fseeko.c: Likewise.
5454 * tests/test-fseterr.c: Likewise.
5455 * tests/test-fstrcmp.c: Likewise.
5456 * tests/test-ftell.c: Likewise.
5457 * tests/test-ftello.c: Likewise.
5458 * tests/test-fwritable.c: Likewise.
5459 * tests/test-fwriting.c: Likewise.
5460 * tests/test-getaddrinfo.c: Likewise.
5461 * tests/test-getpass.c: Likewise.
5462 * tests/test-gettimeofday.c: Likewise.
5463 * tests/test-hmac-md5.c: Likewise.
5464 * tests/test-hmac-sha1.c: Likewise.
5465 * tests/test-iconv.c: Likewise.
5466 * tests/test-iconvme.c: Likewise.
5467 * tests/test-inttypes.c: Likewise.
5468 * tests/test-isnan.c: Likewise.
5469 * tests/test-isnanf.c: Likewise.
5470 * tests/test-isnanl-nolibm.c: Likewise.
5471 * tests/test-isnanl.c: Likewise.
5472 * tests/test-isnanl.h: Likewise.
5473 * tests/test-ldexpl.c: Likewise.
5474 * tests/test-linked_list.c: Likewise.
5475 * tests/test-linkedhash_list.c: Likewise.
5476 * tests/test-locale.c: Likewise.
5477 * tests/test-localename.c: Likewise.
5478 * tests/test-lock.c: Likewise.
5479 * tests/test-lseek.c: Likewise.
5480 * tests/test-malloca.c: Likewise.
5481 * tests/test-math.c: Likewise.
5482 * tests/test-mbscasecmp.c: Likewise.
5483 * tests/test-mbscasestr1.c: Likewise.
5484 * tests/test-mbscasestr2.c: Likewise.
5485 * tests/test-mbscasestr3.c: Likewise.
5486 * tests/test-mbscasestr4.c: Likewise.
5487 * tests/test-mbschr.c: Likewise.
5488 * tests/test-mbscspn.c: Likewise.
5489 * tests/test-mbsncasecmp.c: Likewise.
5490 * tests/test-mbspbrk.c: Likewise.
5491 * tests/test-mbspcasecmp.c: Likewise.
5492 * tests/test-mbsrchr.c: Likewise.
5493 * tests/test-mbsspn.c: Likewise.
5494 * tests/test-mbsstr1.c: Likewise.
5495 * tests/test-mbsstr2.c: Likewise.
5496 * tests/test-mbsstr3.c: Likewise.
5497 * tests/test-md5.c: Likewise.
5498 * tests/test-memmem.c: Likewise.
5499 * tests/test-netinet_in.c: Likewise.
5500 * tests/test-open.c: Likewise.
5501 * tests/test-printf-frexp.c: Likewise.
5502 * tests/test-printf-frexpl.c: Likewise.
5503 * tests/test-printf-posix.c: Likewise.
5504 * tests/test-printf-posix.h: Likewise.
5505 * tests/test-rbtree_list.c: Likewise.
5506 * tests/test-rbtree_oset.c: Likewise.
5507 * tests/test-rbtreehash_list.c: Likewise.
5508 * tests/test-read-file.c: Likewise.
5509 * tests/test-rijndael.c: Likewise.
5510 * tests/test-search.c: Likewise.
5511 * tests/test-signbit.c: Likewise.
5512 * tests/test-sleep.c: Likewise.
5513 * tests/test-snprintf-posix.c: Likewise.
5514 * tests/test-snprintf-posix.h: Likewise.
5515 * tests/test-snprintf.c: Likewise.
5516 * tests/test-sprintf-posix.c: Likewise.
5517 * tests/test-sprintf-posix.h: Likewise.
5518 * tests/test-stat-time.c: Likewise.
5519 * tests/test-stdbool.c: Likewise.
5520 * tests/test-stdint.c: Likewise.
5521 * tests/test-stdio.c: Likewise.
5522 * tests/test-stdlib.c: Likewise.
5523 * tests/test-stpncpy.c: Likewise.
5524 * tests/test-strcasestr.c: Likewise.
5525 * tests/test-striconv.c: Likewise.
5526 * tests/test-striconveh.c: Likewise.
5527 * tests/test-striconveha.c: Likewise.
5528 * tests/test-string.c: Likewise.
5529 * tests/test-sys_select.c: Likewise.
5530 * tests/test-sys_socket.c: Likewise.
5531 * tests/test-sys_stat.c: Likewise.
5532 * tests/test-sys_time.c: Likewise.
5533 * tests/test-sysexits.c: Likewise.
5534 * tests/test-time.c: Likewise.
5535 * tests/test-tls.c: Likewise.
5536 * tests/test-trunc.c: Likewise.
5537 * tests/test-truncf.c: Likewise.
5538 * tests/test-truncl.c: Likewise.
5539 * tests/test-unistd.c: Likewise.
5540 * tests/test-vasnprintf-posix.c: Likewise.
5541 * tests/test-vasnprintf-posix2.c: Likewise.
5542 * tests/test-vasnprintf.c: Likewise.
5543 * tests/test-vasprintf-posix.c: Likewise.
5544 * tests/test-vasprintf.c: Likewise.
5545 * tests/test-verify.c: Likewise.
5546 * tests/test-vfprintf-posix.c: Likewise.
5547 * tests/test-vprintf-posix.c: Likewise.
5548 * tests/test-vsnprintf-posix.c: Likewise.
5549 * tests/test-vsnprintf.c: Likewise.
5550 * tests/test-vsprintf-posix.c: Likewise.
5551 * tests/test-wchar.c: Likewise.
5552 * tests/test-wctype.c: Likewise.
5553 * tests/test-wcwidth.c: Likewise.
5554 * tests/test-xstrtol.c: Likewise.
5555 * tests/test-xvasprintf.c: Likewise.
5556 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5557 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5558 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5559 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5560 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5561 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5562 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5563 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5564 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5565 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5566 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5567 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5568 * tests/uniname/test-uninames.c: Likewise.
5569 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5570 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5571 * tests/unistdio/test-u16-printf1.h: Likewise.
5572 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5573 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5574 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5575 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5576 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5577 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5578 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5579 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
5580 * tests/unistdio/test-u32-printf1.h: Likewise.
5581 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5582 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5583 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5584 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5585 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5586 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5587 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5588 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
5589 * tests/unistdio/test-u8-printf1.h: Likewise.
5590 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5591 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5592 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5593 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5594 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5595 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5596 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5597 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
5598 * tests/unistdio/test-ulc-printf1.h: Likewise.
5599 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5600 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5601 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5602 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5603 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5604 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5605 * tests/uniwidth/test-u16-strwidth.c: Likewise.
5606 * tests/uniwidth/test-u16-width.c: Likewise.
5607 * tests/uniwidth/test-u32-strwidth.c: Likewise.
5608 * tests/uniwidth/test-u32-width.c: Likewise.
5609 * tests/uniwidth/test-u8-strwidth.c: Likewise.
5610 * tests/uniwidth/test-u8-width.c: Likewise.
5611 * tests/uniwidth/test-uc_width.c: Likewise.
5612 * config/srclist-update: Likewise.
5613 (fixlicense): Update to GPLv3+.
5615 Change copyright notice from LGPLv2.1+ to LGPLv3+.
5616 * tests/test-tsearch.c: Change copyright notice.
5618 Change copyright notice from LGPLv2.0+ to LGPLv3+.
5619 * lib/c-strcaseeq.h: Change copyright notice.
5620 * lib/streq.h: Likewise.
5621 * lib/uniconv.h: Likewise.
5622 * lib/uniconv/u-conv-from-enc.h: Likewise.
5623 * lib/uniconv/u-conv-to-enc.h: Likewise.
5624 * lib/uniconv/u-strconv-from-enc.h: Likewise.
5625 * lib/uniconv/u-strconv-to-enc.h: Likewise.
5626 * lib/uniconv/u16-conv-from-enc.c: Likewise.
5627 * lib/uniconv/u16-conv-to-enc.c: Likewise.
5628 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
5629 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
5630 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
5631 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
5632 * lib/uniconv/u32-conv-from-enc.c: Likewise.
5633 * lib/uniconv/u32-conv-to-enc.c: Likewise.
5634 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
5635 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
5636 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
5637 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
5638 * lib/uniconv/u8-conv-from-enc.c: Likewise.
5639 * lib/uniconv/u8-conv-to-enc.c: Likewise.
5640 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
5641 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
5642 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
5643 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
5644 * lib/uniname.h: Likewise.
5645 * lib/uniname/uniname.c: Likewise.
5646 * lib/unistdio.h: Likewise.
5647 * lib/unistdio/u-asnprintf.h: Likewise.
5648 * lib/unistdio/u-asprintf.h: Likewise.
5649 * lib/unistdio/u-printf-args.c: Likewise.
5650 * lib/unistdio/u-printf-args.h: Likewise.
5651 * lib/unistdio/u-printf-parse.h: Likewise.
5652 * lib/unistdio/u-snprintf.h: Likewise.
5653 * lib/unistdio/u-sprintf.h: Likewise.
5654 * lib/unistdio/u-vasprintf.h: Likewise.
5655 * lib/unistdio/u-vsnprintf.h: Likewise.
5656 * lib/unistdio/u-vsprintf.h: Likewise.
5657 * lib/unistdio/u16-asnprintf.c: Likewise.
5658 * lib/unistdio/u16-asprintf.c: Likewise.
5659 * lib/unistdio/u16-printf-parse.c: Likewise.
5660 * lib/unistdio/u16-snprintf.c: Likewise.
5661 * lib/unistdio/u16-sprintf.c: Likewise.
5662 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
5663 * lib/unistdio/u16-u16-asprintf.c: Likewise.
5664 * lib/unistdio/u16-u16-snprintf.c: Likewise.
5665 * lib/unistdio/u16-u16-sprintf.c: Likewise.
5666 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
5667 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
5668 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
5669 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
5670 * lib/unistdio/u16-vasnprintf.c: Likewise.
5671 * lib/unistdio/u16-vasprintf.c: Likewise.
5672 * lib/unistdio/u16-vsnprintf.c: Likewise.
5673 * lib/unistdio/u16-vsprintf.c: Likewise.
5674 * lib/unistdio/u32-asnprintf.c: Likewise.
5675 * lib/unistdio/u32-asprintf.c: Likewise.
5676 * lib/unistdio/u32-printf-parse.c: Likewise.
5677 * lib/unistdio/u32-snprintf.c: Likewise.
5678 * lib/unistdio/u32-sprintf.c: Likewise.
5679 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
5680 * lib/unistdio/u32-u32-asprintf.c: Likewise.
5681 * lib/unistdio/u32-u32-snprintf.c: Likewise.
5682 * lib/unistdio/u32-u32-sprintf.c: Likewise.
5683 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
5684 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
5685 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
5686 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
5687 * lib/unistdio/u32-vasnprintf.c: Likewise.
5688 * lib/unistdio/u32-vasprintf.c: Likewise.
5689 * lib/unistdio/u32-vsnprintf.c: Likewise.
5690 * lib/unistdio/u32-vsprintf.c: Likewise.
5691 * lib/unistdio/u8-asnprintf.c: Likewise.
5692 * lib/unistdio/u8-asprintf.c: Likewise.
5693 * lib/unistdio/u8-printf-parse.c: Likewise.
5694 * lib/unistdio/u8-snprintf.c: Likewise.
5695 * lib/unistdio/u8-sprintf.c: Likewise.
5696 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
5697 * lib/unistdio/u8-u8-asprintf.c: Likewise.
5698 * lib/unistdio/u8-u8-snprintf.c: Likewise.
5699 * lib/unistdio/u8-u8-sprintf.c: Likewise.
5700 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
5701 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
5702 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
5703 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
5704 * lib/unistdio/u8-vasnprintf.c: Likewise.
5705 * lib/unistdio/u8-vasprintf.c: Likewise.
5706 * lib/unistdio/u8-vsnprintf.c: Likewise.
5707 * lib/unistdio/u8-vsprintf.c: Likewise.
5708 * lib/unistdio/ulc-asnprintf.c: Likewise.
5709 * lib/unistdio/ulc-asprintf.c: Likewise.
5710 * lib/unistdio/ulc-printf-parse.c: Likewise.
5711 * lib/unistdio/ulc-snprintf.c: Likewise.
5712 * lib/unistdio/ulc-sprintf.c: Likewise.
5713 * lib/unistdio/ulc-vasnprintf.c: Likewise.
5714 * lib/unistdio/ulc-vasprintf.c: Likewise.
5715 * lib/unistdio/ulc-vsnprintf.c: Likewise.
5716 * lib/unistdio/ulc-vsprintf.c: Likewise.
5717 * lib/unistr.h: Likewise.
5718 * lib/unistr/u-cpy-alloc.h: Likewise.
5719 * lib/unistr/u-cpy.h: Likewise.
5720 * lib/unistr/u-endswith.h: Likewise.
5721 * lib/unistr/u-move.h: Likewise.
5722 * lib/unistr/u-set.h: Likewise.
5723 * lib/unistr/u-startswith.h: Likewise.
5724 * lib/unistr/u-stpcpy.h: Likewise.
5725 * lib/unistr/u-stpncpy.h: Likewise.
5726 * lib/unistr/u-strcat.h: Likewise.
5727 * lib/unistr/u-strcpy.h: Likewise.
5728 * lib/unistr/u-strcspn.h: Likewise.
5729 * lib/unistr/u-strdup.h: Likewise.
5730 * lib/unistr/u-strlen.h: Likewise.
5731 * lib/unistr/u-strncat.h: Likewise.
5732 * lib/unistr/u-strncpy.h: Likewise.
5733 * lib/unistr/u-strnlen.h: Likewise.
5734 * lib/unistr/u-strpbrk.h: Likewise.
5735 * lib/unistr/u-strspn.h: Likewise.
5736 * lib/unistr/u-strstr.h: Likewise.
5737 * lib/unistr/u-strtok.h: Likewise.
5738 * lib/unistr/u16-check.c: Likewise.
5739 * lib/unistr/u16-chr.c: Likewise.
5740 * lib/unistr/u16-cmp.c: Likewise.
5741 * lib/unistr/u16-cpy-alloc.c: Likewise.
5742 * lib/unistr/u16-cpy.c: Likewise.
5743 * lib/unistr/u16-endswith.c: Likewise.
5744 * lib/unistr/u16-mblen.c: Likewise.
5745 * lib/unistr/u16-mbsnlen.c: Likewise.
5746 * lib/unistr/u16-mbtouc-aux.c: Likewise.
5747 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5748 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5749 * lib/unistr/u16-mbtouc.c: Likewise.
5750 * lib/unistr/u16-mbtoucr.c: Likewise.
5751 * lib/unistr/u16-move.c: Likewise.
5752 * lib/unistr/u16-next.c: Likewise.
5753 * lib/unistr/u16-prev.c: Likewise.
5754 * lib/unistr/u16-set.c: Likewise.
5755 * lib/unistr/u16-startswith.c: Likewise.
5756 * lib/unistr/u16-stpcpy.c: Likewise.
5757 * lib/unistr/u16-stpncpy.c: Likewise.
5758 * lib/unistr/u16-strcat.c: Likewise.
5759 * lib/unistr/u16-strchr.c: Likewise.
5760 * lib/unistr/u16-strcmp.c: Likewise.
5761 * lib/unistr/u16-strcpy.c: Likewise.
5762 * lib/unistr/u16-strcspn.c: Likewise.
5763 * lib/unistr/u16-strdup.c: Likewise.
5764 * lib/unistr/u16-strlen.c: Likewise.
5765 * lib/unistr/u16-strmblen.c: Likewise.
5766 * lib/unistr/u16-strmbtouc.c: Likewise.
5767 * lib/unistr/u16-strncat.c: Likewise.
5768 * lib/unistr/u16-strncmp.c: Likewise.
5769 * lib/unistr/u16-strncpy.c: Likewise.
5770 * lib/unistr/u16-strnlen.c: Likewise.
5771 * lib/unistr/u16-strpbrk.c: Likewise.
5772 * lib/unistr/u16-strrchr.c: Likewise.
5773 * lib/unistr/u16-strspn.c: Likewise.
5774 * lib/unistr/u16-strstr.c: Likewise.
5775 * lib/unistr/u16-strtok.c: Likewise.
5776 * lib/unistr/u16-to-u32.c: Likewise.
5777 * lib/unistr/u16-to-u8.c: Likewise.
5778 * lib/unistr/u16-uctomb-aux.c: Likewise.
5779 * lib/unistr/u16-uctomb.c: Likewise.
5780 * lib/unistr/u32-check.c: Likewise.
5781 * lib/unistr/u32-chr.c: Likewise.
5782 * lib/unistr/u32-cmp.c: Likewise.
5783 * lib/unistr/u32-cpy-alloc.c: Likewise.
5784 * lib/unistr/u32-cpy.c: Likewise.
5785 * lib/unistr/u32-endswith.c: Likewise.
5786 * lib/unistr/u32-mblen.c: Likewise.
5787 * lib/unistr/u32-mbsnlen.c: Likewise.
5788 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5789 * lib/unistr/u32-mbtouc.c: Likewise.
5790 * lib/unistr/u32-mbtoucr.c: Likewise.
5791 * lib/unistr/u32-move.c: Likewise.
5792 * lib/unistr/u32-next.c: Likewise.
5793 * lib/unistr/u32-prev.c: Likewise.
5794 * lib/unistr/u32-set.c: Likewise.
5795 * lib/unistr/u32-startswith.c: Likewise.
5796 * lib/unistr/u32-stpcpy.c: Likewise.
5797 * lib/unistr/u32-stpncpy.c: Likewise.
5798 * lib/unistr/u32-strcat.c: Likewise.
5799 * lib/unistr/u32-strchr.c: Likewise.
5800 * lib/unistr/u32-strcmp.c: Likewise.
5801 * lib/unistr/u32-strcpy.c: Likewise.
5802 * lib/unistr/u32-strcspn.c: Likewise.
5803 * lib/unistr/u32-strdup.c: Likewise.
5804 * lib/unistr/u32-strlen.c: Likewise.
5805 * lib/unistr/u32-strmblen.c: Likewise.
5806 * lib/unistr/u32-strmbtouc.c: Likewise.
5807 * lib/unistr/u32-strncat.c: Likewise.
5808 * lib/unistr/u32-strncmp.c: Likewise.
5809 * lib/unistr/u32-strncpy.c: Likewise.
5810 * lib/unistr/u32-strnlen.c: Likewise.
5811 * lib/unistr/u32-strpbrk.c: Likewise.
5812 * lib/unistr/u32-strrchr.c: Likewise.
5813 * lib/unistr/u32-strspn.c: Likewise.
5814 * lib/unistr/u32-strstr.c: Likewise.
5815 * lib/unistr/u32-strtok.c: Likewise.
5816 * lib/unistr/u32-to-u16.c: Likewise.
5817 * lib/unistr/u32-to-u8.c: Likewise.
5818 * lib/unistr/u32-uctomb.c: Likewise.
5819 * lib/unistr/u8-check.c: Likewise.
5820 * lib/unistr/u8-chr.c: Likewise.
5821 * lib/unistr/u8-cmp.c: Likewise.
5822 * lib/unistr/u8-cpy-alloc.c: Likewise.
5823 * lib/unistr/u8-cpy.c: Likewise.
5824 * lib/unistr/u8-endswith.c: Likewise.
5825 * lib/unistr/u8-mblen.c: Likewise.
5826 * lib/unistr/u8-mbsnlen.c: Likewise.
5827 * lib/unistr/u8-mbtouc-aux.c: Likewise.
5828 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5829 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5830 * lib/unistr/u8-mbtouc.c: Likewise.
5831 * lib/unistr/u8-mbtoucr.c: Likewise.
5832 * lib/unistr/u8-move.c: Likewise.
5833 * lib/unistr/u8-next.c: Likewise.
5834 * lib/unistr/u8-prev.c: Likewise.
5835 * lib/unistr/u8-set.c: Likewise.
5836 * lib/unistr/u8-startswith.c: Likewise.
5837 * lib/unistr/u8-stpcpy.c: Likewise.
5838 * lib/unistr/u8-stpncpy.c: Likewise.
5839 * lib/unistr/u8-strcat.c: Likewise.
5840 * lib/unistr/u8-strchr.c: Likewise.
5841 * lib/unistr/u8-strcmp.c: Likewise.
5842 * lib/unistr/u8-strcpy.c: Likewise.
5843 * lib/unistr/u8-strcspn.c: Likewise.
5844 * lib/unistr/u8-strdup.c: Likewise.
5845 * lib/unistr/u8-strlen.c: Likewise.
5846 * lib/unistr/u8-strmblen.c: Likewise.
5847 * lib/unistr/u8-strmbtouc.c: Likewise.
5848 * lib/unistr/u8-strncat.c: Likewise.
5849 * lib/unistr/u8-strncmp.c: Likewise.
5850 * lib/unistr/u8-strncpy.c: Likewise.
5851 * lib/unistr/u8-strnlen.c: Likewise.
5852 * lib/unistr/u8-strpbrk.c: Likewise.
5853 * lib/unistr/u8-strrchr.c: Likewise.
5854 * lib/unistr/u8-strspn.c: Likewise.
5855 * lib/unistr/u8-strstr.c: Likewise.
5856 * lib/unistr/u8-strtok.c: Likewise.
5857 * lib/unistr/u8-to-u16.c: Likewise.
5858 * lib/unistr/u8-to-u32.c: Likewise.
5859 * lib/unistr/u8-uctomb-aux.c: Likewise.
5860 * lib/unistr/u8-uctomb.c: Likewise.
5861 * lib/unitypes.h: Likewise.
5862 * lib/uniwidth.h: Likewise.
5863 * lib/uniwidth/cjk.h: Likewise.
5864 * lib/uniwidth/u16-strwidth.c: Likewise.
5865 * lib/uniwidth/u16-width.c: Likewise.
5866 * lib/uniwidth/u32-strwidth.c: Likewise.
5867 * lib/uniwidth/u32-width.c: Likewise.
5868 * lib/uniwidth/u8-strwidth.c: Likewise.
5869 * lib/uniwidth/u8-width.c: Likewise.
5870 * lib/uniwidth/width.c: Likewise.
5872 2007-10-07 Bruno Haible <bruno@clisp.org>
5874 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
5875 The file is still under LGPL (see modules/inttypes).
5877 2007-10-06 Bruno Haible <bruno@clisp.org>
5879 * modules/trunc (Dependencies): Add 'extensions'.
5880 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
5881 Reported by Ben Pfaff <blp@gnu.org>.
5883 2007-10-06 Bruno Haible <bruno@clisp.org>
5885 * modules/freopen-tests: New file.
5886 * tests/test-freopen.c: New file.
5888 * modules/fopen-tests: New file.
5889 * tests/test-fopen.c: New file.
5891 * modules/fopen: New file.
5892 * lib/fopen.c: New file.
5893 * m4/fopen.m4: New file.
5894 * modules/freopen: New file.
5895 * lib/freopen.c: New file.
5896 * m4/freopen.m4: New file.
5897 * lib/stdio.in.h (fopen, freopen): New declarations.
5898 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
5899 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5900 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
5901 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
5902 * doc/functions/fopen.texi: Mention the 'fopen' module.
5903 * doc/functions/freopen.texi: Mention the 'freopen' module.
5905 2007-10-06 Bruno Haible <bruno@clisp.org>
5907 * modules/open-tests: New file.
5908 * tests/test-open.c: New file.
5910 * modules/open: New file.
5911 * lib/open.c: New file.
5912 * m4/open.m4: New file.
5913 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
5915 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
5916 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
5918 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
5919 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
5921 * doc/functions/open.texi: Mention the 'open' module.
5923 2007-10-04 Bruno Haible <bruno@clisp.org>
5925 * modules/ceill-tests: New file.
5926 * tests/test-ceill.c: New file.
5928 * modules/ceill: New file.
5929 * lib/ceill.c: Replace entire file.
5930 * m4/ceill.m4: New file.
5931 * lib/math.in.h (ceill): Replace declaration.
5932 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
5933 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
5934 * doc/functions/ceill.texi: Mention the 'ceill' module.
5935 * modules/mathl (Files): Remove lib/ceill.c.
5936 (Depends-on): Add ceill.
5938 2007-10-04 Bruno Haible <bruno@clisp.org>
5940 * modules/ceilf-tests: New file.
5941 * tests/test-ceilf.c: New file.
5943 * modules/ceilf: New file.
5944 * lib/ceil.c: New file.
5945 * lib/ceilf.c: New file.
5946 * m4/ceilf.m4: New file.
5947 * lib/math.in.h (ceilf): New declaration.
5948 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
5950 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
5952 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
5954 2007-10-04 Bruno Haible <bruno@clisp.org>
5956 * modules/floorl-tests: New file.
5957 * tests/test-floorl.c: New file.
5959 * modules/floorl: New file.
5960 * lib/floorl.c: Replace entire file.
5961 * m4/floorl.m4: New file.
5962 * lib/math.in.h (floorl): Replace declaration.
5963 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
5964 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
5965 * doc/functions/floorl.texi: Mention the 'floorl' module.
5966 * modules/mathl (Files): Remove lib/floorl.c.
5967 (Depends-on): Add floorl.
5969 2007-10-04 Bruno Haible <bruno@clisp.org>
5971 * modules/floorf-tests: New file.
5972 * tests/test-floorf.c: New file.
5974 * modules/floorf: New file.
5975 * lib/floor.c: New file.
5976 * lib/floorf.c: New file.
5977 * m4/floorf.m4: New file.
5978 * lib/math.in.h (floorf): New declaration.
5979 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
5981 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
5983 * doc/functions/floorf.texi: Mention the 'floorf' module.
5985 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
5986 Bruno Haible <bruno@clisp.org>
5988 Advertise for the Git server instead of the CVS server.
5989 * doc/gnulib-intro.texi (Steady Development): Mention the Git
5990 repository instead of the CVS one.
5991 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
5992 about all VCS systems generically.
5993 * doc/gnulib.texi (Introduction): Capitalize `Git'.
5995 2007-10-04 Bruno Haible <bruno@clisp.org>
5997 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
5999 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
6001 2007-10-04 Bruno Haible <bruno@clisp.org>
6003 * modules/truncl-tests: New file.
6004 * tests/test-truncl.c: New file.
6006 * modules/truncl: New file.
6007 * lib/truncl.c: New file.
6008 * m4/truncl.m4: New file.
6009 * lib/math.in.h (truncl): New declaration.
6010 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
6012 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
6014 * doc/functions/truncl.texi: Mention the 'truncl' module.
6016 2007-10-04 Bruno Haible <bruno@clisp.org>
6018 * modules/truncf-tests: New file.
6019 * tests/test-truncf.c: New file.
6021 * modules/truncf: New file.
6022 * lib/trunc.c: Make paramerizable through USE_* macros.
6023 * lib/truncf.c: New file.
6024 * m4/truncf.m4: New file.
6025 * lib/math.in.h (truncf): New declaration.
6026 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
6028 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
6030 * doc/functions/truncf.texi: Mention the 'truncf' module.
6032 2007-10-03 Bruno Haible <bruno@clisp.org>
6034 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6035 augmentation also for tests modules.
6036 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
6037 * modules/atexit-tests (Makefile.am): Likewise.
6038 * modules/binary-io-tests (Makefile.am): Likewise.
6039 * modules/c-strcase-tests (Makefile.am): Likewise.
6040 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
6041 * modules/canonicalize-tests (Makefile.am): Likewise.
6042 * modules/closein-tests (Makefile.am): Likewise.
6043 * modules/fprintf-posix-tests (Makefile.am): Likewise.
6044 * modules/freadahead-tests (Makefile.am): Likewise.
6045 * modules/fseek-tests (Makefile.am): Likewise.
6046 * modules/fseeko-tests (Makefile.am): Likewise.
6047 * modules/ftell-tests (Makefile.am): Likewise.
6048 * modules/ftello-tests (Makefile.am): Likewise.
6049 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
6050 * modules/isnanl-tests (Makefile.am): Likewise.
6051 * modules/lseek-tests (Makefile.am): Likewise.
6052 * modules/mbscasecmp-tests (Makefile.am): Likewise.
6053 * modules/mbscasestr-tests (Makefile.am): Likewise.
6054 * modules/mbschr-tests (Makefile.am): Likewise.
6055 * modules/mbscspn-tests (Makefile.am): Likewise.
6056 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6057 * modules/mbspbrk-tests (Makefile.am): Likewise.
6058 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6059 * modules/mbsrchr-tests (Makefile.am): Likewise.
6060 * modules/mbsspn-tests (Makefile.am): Likewise.
6061 * modules/mbsstr-tests (Makefile.am): Likewise.
6062 * modules/printf-posix-tests (Makefile.am): Likewise.
6063 * modules/snprintf-posix-tests (Makefile.am): Likewise.
6064 * modules/sprintf-posix-tests (Makefile.am): Likewise.
6065 * modules/tsearch-tests (Makefile.am): Likewise.
6066 * modules/uniname/uniname-tests (Makefile.am): Likewise.
6067 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6068 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6069 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6070 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6071 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6072 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6073 * modules/vprintf-posix-tests (Makefile.am): Likewise.
6074 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
6075 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
6076 * modules/xstrtoimax-tests (Makefile.am): Likewise.
6077 * modules/xstrtol-tests (Makefile.am): Likewise.
6078 * modules/xstrtoumax-tests (Makefile.am): Likewise.
6079 * modules/yesno-tests (Makefile.am): Likewise.
6081 2007-10-03 Bruno Haible <bruno@clisp.org>
6083 * modules/trunc-tests: New file.
6084 * tests/test-trunc.c: New file.
6086 * modules/trunc: New file.
6087 * lib/trunc.c: New file.
6088 * m4/trunc.m4: New file.
6089 * lib/math.in.h (trunc): New declaration.
6090 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
6092 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
6094 * doc/functions/trunc.texi: Mention the 'trunc' module.
6096 2007-10-03 Bruno Haible <bruno@clisp.org>
6098 * tests/test-fpending.c: New file, mostly copied
6099 from coreutils/lib/t-fpending.c.
6100 * modules/fpending-tests: New file.
6102 2007-10-03 Bruno Haible <bruno@clisp.org>
6104 Port the stdio extensions to QNX (untested).
6105 * lib/fseterr.c (fseterr): Add support for QNX.
6106 * lib/fbufmode.c (fbufmode): Likewise.
6107 * lib/freadable.c (freadable): Likewise.
6108 * lib/fwritable.c (fwritable): Likewise.
6109 * lib/freading.c (freading): Likewise.
6110 * lib/fwriting.c (fwriting): Likewise.
6111 * lib/freadahead.c (freadahed): Likewise.
6112 * lib/fpurge.c (fpurge): Likewise.
6113 * lib/fseeko.c (rpl_fseeko): Likewise.
6115 2007-10-03 Bruno Haible <bruno@clisp.org>
6116 Jim Meyering <jim@meyering.net>
6117 Eric Blake <ebb9@byu.net>
6119 * doc/relocatable.texi: Use @command instead of @program.
6121 2007-10-02 Jim Meyering <jim@meyering.net>
6123 Perform one more "_.h" -> ".in.h" substitution.
6124 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
6125 instead of unistd_.h here, too.
6127 2007-10-01 Bruno Haible <bruno@clisp.org>
6129 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
6130 Needed for the alloca-opt module.
6132 2007-09-30 Bruno Haible <bruno@clisp.org>
6134 * lib/alloca.in.h: Renamed from lib/alloca_.h.
6135 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
6137 * lib/argz.in.h: Renamed from lib/argz_.h.
6138 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
6139 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
6140 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
6142 * lib/dirent.in.h: Renamed from lib/dirent_.h.
6143 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
6145 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
6146 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
6148 * lib/float.in.h: Renamed from lib/float_.h.
6149 * modules/float (Files, Makefile.am): Use float.in.h instead of
6151 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
6152 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
6154 * lib/getopt.in.h: Renamed from lib/getopt_.h.
6155 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
6157 * lib/glob.in.h: Renamed from lib/glob_.h.
6158 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
6159 * lib/iconv.in.h: Renamed from lib/iconv_.h.
6160 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
6162 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
6163 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
6165 * lib/locale.in.h: Renamed from lib/locale_.h.
6166 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
6168 * lib/math.in.h: Renamed from lib/math_.h.
6169 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
6170 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
6171 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
6172 of netinet_in_.h. Add dependency.
6173 * lib/poll.in.h: Renamed from lib/poll_.h.
6174 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
6175 * lib/search.in.h: Renamed from lib/search_.h.
6176 * modules/search (Files, Makefile.am): Use search.in.h instead of
6178 * lib/signal.in.h: Renamed from lib/signal_.h.
6179 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
6181 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
6182 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
6184 * lib/stdint.in.h: Renamed from lib/stdint_.h.
6185 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
6187 * lib/stdio.in.h: Renamed from lib/stdio_.h.
6188 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
6190 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
6191 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
6193 * lib/string.in.h: Renamed from lib/string_.h.
6194 * modules/string (Files, Makefile.am): Use string.in.h instead of
6196 * doc/gnulib-tool.texi (Initial import): Update.
6197 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
6198 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
6199 of sys_select_.h. Add dependency.
6200 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
6201 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
6203 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
6204 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
6206 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
6207 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
6209 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
6210 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
6212 * lib/time.in.h: Renamed from lib/time_.h.
6213 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
6214 * lib/unistd.in.h: Renamed from lib/unistd_.h.
6215 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
6217 * lib/wchar.in.h: Renamed from lib/wchar_.h.
6218 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
6220 * lib/wctype.in.h: Renamed from lib/wctype_.h.
6221 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
6223 * build-aux/bootstrap (slurp): Update.
6224 * lib/.cppi-disable: Update.
6226 2007-09-30 Bruno Haible <bruno@clisp.org>
6228 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
6231 2007-09-30 Bruno Haible <bruno@clisp.org>
6233 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
6235 2007-09-29 Bruno Haible <bruno@clisp.org>
6237 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
6239 2007-09-29 Bruno Haible <bruno@clisp.org>
6241 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
6242 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
6243 * build-aux/install-reloc: Compile also areadlink.c.
6244 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
6246 2007-09-29 Bruno Haible <bruno@clisp.org>
6248 * gnulib-tool (func_emit_initmacro_done): Indentation.
6250 2007-09-29 Bruno Haible <bruno@clisp.org>
6252 * README: Add CVS checkout update instructions.
6253 Info from Bob Proulx <bob@proulx.com>.
6255 2007-09-28 Eric Blake <ebb9@byu.net>
6257 Provide move-if-change.
6258 * build-aux/move-if-change: New file, based on best practice
6259 rather than any canonical upstream location.
6261 2007-09-28 Jim Meyering <jim@meyering.net>
6263 Fix canonicalize loop-detection corner case.
6264 Do not attempt to stat the symlink values stored via seen_triple.
6265 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
6266 on linux-2.6.18, (but not 2.6.22).
6267 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
6268 triple_compare. The former compares dev,ino,filename, while the latter
6269 would actually stat dirname(filename) when dev and ino were equal.
6270 * lib/hash-triple.c: Install <string.h>.
6272 (triple_compare_ino_str): New function.
6273 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
6275 2007-09-28 Eric Blake <ebb9@byu.net>
6277 Enforce that AC_REPLACE_FUNCS files exist.
6278 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
6279 override check for typos.
6281 Fix test-closein on Solaris 10.
6282 * tests/test-closein.c (main): Don't assume stdin can be inherited
6283 closed on all systems.
6284 * tests/test-closein.sh: Likewise.
6285 Reported by Piotr Tarnowski.
6287 2007-09-28 Jim Meyering <jim@meyering.net>
6289 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
6291 2007-09-27 Jim Meyering <jim@meyering.net>
6293 canonicalize: Avoid a false-positive cycle failure.
6294 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
6295 Sort. Remove cycle-check.
6296 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
6298 (seen_triple): New function.
6299 (canonicalize_filename_mode): Use it instead of cycle-check.
6300 * tests/test-canonicalize.c: Add a test for this bug.
6301 * tests/test-canonicalize.sh: Set up and run the test.
6303 New module, file-set, from coreutils.
6304 * modules/file-set: Define it.
6305 * lib/file-set.c, lib/file-set.h: Implement.
6307 New module, hash-triple, from coreutils.
6308 * modules/hash-triple: Define it.
6309 * lib/hash-triple.c, lib/hash-triple.h: Implement.
6311 2007-09-25 Eric Blake <ebb9@byu.net>
6313 Fix strerror on Interix.
6314 * lib/string_.h (strerror): Declare replacement.
6315 * doc/functions/strerror.texi (strerror): Document the Interix
6317 * modules/string (Makefile.am): Support new hooks.
6318 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
6319 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
6320 gl_FUNC_STRERROR_SEPARATE.
6321 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
6322 * lib/strerror.c (rpl_strerror): Provide replacement.
6323 * modules/strerror (Depends-on): Add string.
6324 (configure.ac): Detect use of module.
6325 * tests/test-strerror.c: New file.
6326 * modules/strerror-tests: New test module.
6327 * modules/argp (Depends-on): Add strerror.
6328 * modules/error (Depends-on): Likewise.
6329 Reported by Martin Koeppe.
6331 2007-09-24 Bruno Haible <bruno@clisp.org>
6333 * README: Update git instructions.
6335 2007-09-24 Eric Blake <ebb9@byu.net>
6337 Revert fpending breakage from 2007-09-08.
6338 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
6341 2007-09-24 Jim Meyering <jim@meyering.net>
6343 filenamecat.c: Add a test.
6344 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
6345 showing how the function works when DIR is the empty string.
6347 2007-09-21 Simon Josefsson <simon@josefsson.org>
6349 * tests/test-canonicalize.sh: Turn on executable bit.
6351 2007-09-19 Eric Blake <ebb9@byu.net>
6353 * README: Update CVS instructions.
6355 2007-09-18 Bruno Haible <bruno@clisp.org>
6357 * modules/areadlink: New file.
6358 * lib/areadlink.h (areadlink): New declaration.
6359 * lib/areadlink.c: New file, based on lib/xreadlink.c.
6361 2007-09-17 Jim Meyering <jim@meyering.net>
6363 * lib/savewd.c (ESTALE) [!defined]: Define.
6364 Reported to be required on Interix by Martin Koeppe.
6366 2007-09-17 Bruno Haible <bruno@clisp.org>
6368 * gnulib-tool (func_version): Use $version.
6370 2007-09-16 Bruno Haible <bruno@clisp.org>
6372 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
6373 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
6374 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
6375 Reported by Greg Schafer <gschafer@zip.com.au>.
6377 2007-09-15 Bruno Haible <bruno@clisp.org>
6379 * gnulib-tool (sed): Try a little harder to make bash understand the
6381 Reported by Bruce Korb <bruce.korb@gmail.com>.
6383 2007-09-13 Eric Blake <ebb9@byu.net>
6385 * ChangeLog: Remove conflict markers.
6387 2007-09-13 Simon Josefsson <simon@josefsson.org>
6389 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
6390 Reported by Bruno Haible <bruno@clisp.org>.
6392 2007-09-12 Bruno Haible <bruno@clisp.org>
6394 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
6395 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
6398 2007-09-12 Eric Blake <ebb9@byu.net>
6400 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
6401 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
6402 Autoconf definition.
6403 * modules/euidaccess (Depends-on): Add extensions, for
6404 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
6405 * modules/fnmatch (Depends-on): Likewise.
6406 * modules/getaddrinfo (Depends-on): Likewise.
6407 * modules/getdelim (Depends-on): Likewise.
6408 * modules/getline (Depends-on): Likewise.
6409 * modules/getsubopt (Depends-on): Likewise.
6410 * modules/gettext (Depends-on): Likewise.
6411 * modules/group-member (Depends-on): Likewise.
6412 * modules/mbchar (Depends-on): Likewise.
6413 * modules/memmem (Depends-on): Likewise.
6414 * modules/mempcpy (Depends-on): Likewise.
6415 * modules/memrchr (Depends-on): Likewise.
6416 * modules/pagealign_alloc (Depends-on): Likewise.
6417 * modules/readutmp (Depends-on): Likewise.
6418 * modules/stpcpy (Depends-on): Likewise.
6419 * modules/stpncpy (Depends-on): Likewise.
6420 * modules/strchrnul (Depends-on): Likewise.
6421 * modules/strndup (Depends-on): Likewise.
6422 * modules/strsep (Depends-on): Likewise.
6423 * modules/strverscmp (Depends-on): Likewise.
6424 * modules/vasprintf (Depends-on): Likewise.
6425 * modules/wcwidth (Depends-on): Likewise.
6426 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6427 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6428 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6429 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6430 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6431 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6432 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6433 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6434 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6435 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6436 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6437 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6438 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6439 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6440 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6441 * m4/readutmp.m4 (gl_READUTMP): Likewise.
6442 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6443 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6444 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6445 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6446 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6447 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6448 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6449 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6450 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6451 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6452 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6453 so that lock.m4 can be used in gettext without extensions module.
6455 2007-09-11 Bruno Haible <bruno@clisp.org>
6457 * m4/isc-posix.m4: Remove file.
6458 Suggested by Eric Blake.
6460 2007-09-11 Eric Blake <ebb9@byu.net>
6462 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6464 2007-09-10 Bruno Haible <bruno@clisp.org>
6466 * posix-modules: Fix typo in error message.
6467 Reported by Matt <mkraai@beckman.com>.
6469 2007-09-09 Bruno Haible <bruno@clisp.org>
6471 * doc/functions/getdelim.texi: Update list of platforms lacking the
6473 * doc/functions/getline.texi: Likewise.
6475 2007-09-09 Jim Meyering <jim@meyering.net>
6477 * lib/hash.c (hash_initialize): Detect calloc failure.
6478 Reported by Bruno Haible.
6480 2007-09-09 Bruno Haible <bruno@clisp.org>
6482 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6483 malloc or realloc fails.
6485 2007-09-09 Bruno Haible <bruno@clisp.org>
6487 * modules/getcwd (Depends-on): Add malloc-posix.
6488 * modules/glob (Depends-on): Likewise.
6489 * modules/putenv (Depends-on): Likewise.
6490 * modules/strdup (Depends-on): Likewise.
6491 * modules/getdelim (Depends-on): Add realloc-posix.
6492 * modules/read-file (Depends-on): Likewise.
6494 2007-09-09 Bruno Haible <bruno@clisp.org>
6496 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6497 (gl_FUNC_MALLOC_POSIX): Require it.
6498 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6499 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6500 * modules/realloc (Files): Add m4/malloc.m4.
6501 * modules/calloc (Files): Likewise.
6503 2007-09-09 Bruno Haible <bruno@clisp.org>
6505 * modules/malloc-posix: New file.
6506 * modules/malloc (Depends-on): Add malloc-posix.
6507 * lib/malloc.c: Include errno.h.
6508 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6509 and a POSIX-compatible malloc into a single function. Set ENOMEM
6510 when returning NULL.
6511 * m4/malloc.m4: New file.
6512 * doc/functions/malloc.texi: Mention the malloc-posix module.
6513 * lib/stdlib_.h (malloc): New declaration.
6514 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6515 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6516 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6517 and HAVE_MALLOC_POSIX.
6519 2007-09-09 Bruno Haible <bruno@clisp.org>
6521 * modules/realloc-posix: New file.
6522 * modules/realloc (Depends-on): Add realloc-posix.
6523 * lib/realloc.c: Include errno.h.
6524 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6525 and a POSIX-compatible realloc into a single function. Set ENOMEM
6526 when returning NULL.
6527 * m4/realloc.m4: New file.
6528 * doc/functions/realloc.texi: Mention the realloc-posix module.
6529 * lib/stdlib_.h (realloc): New declaration.
6530 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6531 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6532 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6533 and HAVE_REALLOC_POSIX.
6535 2007-09-09 Bruno Haible <bruno@clisp.org>
6537 * modules/calloc-posix: New file.
6538 * modules/calloc (Depends-on): Add calloc-posix.
6539 * lib/calloc.c: Include errno.h.
6540 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6541 and a POSIX-compatible calloc into a single function. Set ENOMEM
6542 when returning NULL.
6543 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6544 * doc/functions/calloc.texi: Mention the calloc-posix module.
6545 * lib/stdlib_.h (calloc): New declaration.
6546 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6547 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6548 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6549 and HAVE_CALLOC_POSIX.
6551 2007-09-09 Bruno Haible <bruno@clisp.org>
6553 Allow for modules to show an arbitrary notice.
6554 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6555 * gnulib-tool: New option --extract-notice.
6556 (func_usage): Document it.
6557 (sed_extract_prog): Update.
6558 (func_get_notice): New function.
6559 (func_modules_notice): New function.
6560 (func_import, func_create_testdir): Invoke it.
6561 Suggested by Jim Meyering.
6563 2007-09-09 Bruno Haible <bruno@clisp.org>
6565 * gnulib-tool: New options --verbose, --quiet.
6566 (func_usage): Document them.
6567 (verbose): New variable.
6568 (func_execute_command): New function.
6569 (func_import): Don't show the module list and the file list if
6571 (func_create_testdir): Likewise. Use func_execute_command.
6572 (func_create_megatestdir): Use func_execute_command.
6574 2007-09-08 Bruno Haible <bruno@clisp.org>
6576 * gnulib-tool (func_import): Prefer rsync over wget when available,
6577 for fetching the PO files.
6579 2007-09-08 Bruno Haible <bruno@clisp.org>
6581 * posix-modules: New file. Portions copied from gnulib-tool.
6582 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
6584 2007-09-08 Jim Meyering <jim@meyering.net>
6586 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
6587 * lib/fpending.h: Rename from __fpending.h.
6588 * lib/fpending.c: Rename from __fpending.c.
6589 Include "fpending.h", not "__fpending.h".
6590 * lib/__fpending.h, lib/__fpending.c: Remove files.
6591 * modules/fpending (Files): Reflect new file names.
6592 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
6594 2007-09-08 Bruno Haible <bruno@clisp.org>
6596 * m4/inttypes-h.m4: Remove stub file.
6598 2007-09-07 Simon Josefsson <simon@josefsson.org>
6600 * doc/headers/stdint.texi: Discuss #include_next issue.
6602 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
6604 * build-aux/bootstrap: Remove obsolete comment about wget --help.
6606 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6608 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
6611 2007-09-03 Jim Meyering <jim@meyering.net>
6613 New module: git-version-gen.
6614 * modules/git-version-gen: New file.
6616 Import changes from coreutils for bootstrap script.
6618 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
6620 bootstrap: uses rsync to download the .po files
6621 * build-aux/bootstrap (po_download_command_format): New global.
6622 (download_po_files): Use rsync.
6623 (update_po_files): Don't remove .po files after download,
6624 so future rsync runs can take advantage of the copies.
6626 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
6628 Solve the unnecessary-.po-file-regeneration problem once and for all.
6629 * build-aux/bootstrap (download_po_files): New function, renamed from
6630 get_translations. Now, downloads, but doesn't update LINGUAS.
6631 (update_po_files): New function.
6633 bootstrap: Ignore more.
6634 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
6635 uniwidth to e.g., lib/.gitignore.
6636 (slurp): Handle the sys_stat_.h -> sys mapping, too.
6638 * build-aux/bootstrap: New setting: vc_ignore.
6639 (insert_sorted_if_absent): Create $file if absent.
6640 Adapt to new, possibly empty, list: $vc_ignore.
6642 bootstrap: generate more ignorable names
6643 * build-aux/bootstrap (slurp): When generating ignorable names,
6644 also map .sin to .sed, .gperf to .c, and .y to .c.
6646 2007-09-03 Jim Meyering <jim@meyering.net>
6648 * build-aux/git-version-gen: New file, from coreutils. For details, see
6649 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
6651 2007-09-02 Bruno Haible <bruno@clisp.org>
6653 Fix mis-recognition of 'mcs' on QNX 6.
6654 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
6655 output contains the string "Mono".
6656 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
6657 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
6659 2007-09-01 Bruno Haible <bruno@clisp.org>
6661 Fix collision between uniwidth/* and linebreak modules.
6662 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
6663 u32_width): Remove declarations.
6664 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
6665 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
6666 streq3, streq2, streq1, streq0): Remove functions.
6667 (STREQ): Remove macro.
6668 (is_cjk_encoding): Remove function.
6669 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
6670 (uc_width, u8_width, u16_width, u32_width): Remove functions.
6671 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
6672 * NEWS: Document the change.
6674 2007-09-01 Bruno Haible <bruno@clisp.org>
6676 * lib/streq.h: Add double-inclusion guard.
6678 2007-09-01 Karl Berry <karl@gnu.org>
6680 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
6682 2007-08-28 Jim Meyering <jim@meyering.net>
6684 Rename mreadlink_with_size to areadlink_with_size.
6685 * NEWS: Document the change.
6686 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
6687 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
6688 * lib/mreadlink.h: Rename this to...
6689 * lib/areadlink.h: ...this.
6690 * modules/mreadlink-with-size: Rename this to...
6691 * modules/areadlink-with-size: ...this.
6692 * lib/canonicalize.c: Reflect the renaming.
6693 * modules/canonicalize: Likewise.
6695 2007-08-26 Bruno Haible <bruno@clisp.org>
6697 * gnulib-tool (func_import): When deciding which files to remove,
6698 consider also dangling symbolic links.
6699 Reported by Eric Blake.
6701 2007-08-26 Bruno Haible <bruno@clisp.org>
6703 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
6705 2007-08-23 Simon Josefsson <simon@josefsson.org>
6707 * lib/readline.c: Don't include getline.h, the prototype is now
6710 2007-08-23 Jim Meyering <jim@meyering.net>
6713 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
6714 around the funlockfile call, since funlockfile never sets errno.
6715 Don't set errno upon failed realloc.
6717 2007-08-22 Eric Blake <ebb9@byu.net>
6720 * lib/getdelim.c (getdelim): Revert regression that required *n to
6721 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
6722 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
6723 getdelim, rather than whether implementation is missing.
6724 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
6725 * lib/stdio_.h (getline): Also declare if replacement is
6727 * doc/functions/getdelim.texi: New file.
6728 * doc/functions/getline.texi: Likewise.
6729 * doc/gnulib.texi (Function Substitutes): Add new files.
6730 Reported by Bruno Haible.
6732 2007-08-22 Ludovic Courtès <ludo@gnu.org>
6734 * users.txt: Add Guile.
6736 2007-08-22 Eric Blake <ebb9@byu.net>
6738 * tests/test-getdelim.c (main): Use remove, not unlink.
6739 * tests/test-getline.c (main): Likewise.
6741 Move getline and getdelim into stdio.h, per POSIX 200x.
6742 * modules/getline (Files): Remove getline.h.
6743 (Depends-on): Add stdio.
6744 (configure.ac): Add module indicator.
6745 * modules/getdelim (Files): Remove getdelim.h.
6746 (Depends-on): Add stdio.
6747 (configure.ac): Add module indicator.
6748 * modules/stdio (Makefile.am): Work with new indicators.
6749 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6750 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
6751 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6752 * lib/getdelim.h: Delete.
6753 * lib/getline.h: Delete.
6754 * lib/stdio_.h (getdelim, getline): Declare.
6755 * modules/getdelim-tests: New module.
6756 * modules/getline-tests: Likewise.
6757 * tests/test-getdelim.c: New file.
6758 * tests/test-getline.c: Likewise.
6759 * NEWS: Document the change.
6760 * lib/getline.c: Update choice of header.
6761 * lib/csharpcomp.c: Likewise.
6762 * lib/getpass.c: Likewise.
6763 * lib/javacomp.c: Likewise.
6764 * lib/javaversion.c: Likewise.
6765 * lib/yesno.c: Likewise.
6766 * lib/getdelim.c: Likewise.
6767 (getdelim): Set errno on failure, and avoid memory leak.
6769 2007-08-19 Bruno Haible <bruno@clisp.org>
6771 * modules/closein (Depends-on): Add freadahead.
6772 * lib/closein.c: Include freadahead.h.
6773 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
6776 2007-08-19 Bruno Haible <bruno@clisp.org>
6778 * modules/freadahead-tests: New file.
6779 * tests/test-freadahead.sh: New file.
6780 * tests/test-freadahead.c: New file.
6782 * modules/freadahead: New file.
6783 * lib/freadahead.h: New file.
6784 * lib/freadahead.c: New file.
6785 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
6786 fbufmode, fpurge, freadable, fwritable.
6788 2007-08-19 Eric Blake <ebb9@byu.net>
6790 Test yesno in combination with closein.
6791 * lib/yesno.c (yesno): Document use of stdin.
6792 * modules/yesno-tests (Files): New module.
6793 * tests/test-yesno.c (main): New file.
6794 * tests/test-yesno.sh: Likewise.
6796 2007-08-19 Bruno Haible <bruno@clisp.org>
6798 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
6799 * lib/fseeko.c (rpl_fseeko): Likewise.
6800 * lib/fseterr.c (fseterr): Likewise.
6802 2007-08-19 Bruno Haible <bruno@clisp.org>
6804 * tests/test-lseek.c (main): Disable a test for BeOS.
6805 * doc/functions/lseek.texi: Document the BeOS bug.
6807 2007-08-19 Bruno Haible <bruno@clisp.org>
6808 Eric Blake <ebb9@byu.net>
6810 * lib/lseek.c: Include <sys/stat.h>.
6811 (rpl_lseek): Add workaround code also for Unix platforms.
6813 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
6814 * doc/functions/lseek.texi: Document BeOS definiency.
6816 2007-08-18 Bruno Haible <bruno@clisp.org>
6818 * modules/fstrcmp-tests: New file.
6819 * tests/test-fstrcmp.c: New file.
6821 2007-08-18 Bruno Haible <bruno@clisp.org>
6823 * modules/fstrcmp: New file, from GNU gettext with modifications.
6824 * lib/fstrcmp.h: New file, from GNU gettext.
6825 * lib/fstrcmp.c: New file, from GNU gettext.
6826 * MODULES.html.sh (String handling): Add fstrcmp.
6828 2007-08-18 Bruno Haible <bruno@clisp.org>
6830 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
6832 (diag, compareseq): Remove const from the ctxt argument.
6833 (USE_HEURISTIC): Undefine at the end.
6835 2007-08-18 Jim Meyering <jim@meyering.net>
6837 New file: lib/idcache.h
6838 * NEWS: Mention the addition.
6839 * modules/idcache (Files): Add lib/idcache.h
6840 * lib/idcache.c: Include "idcache.h".
6841 Don't include <sys/types.h>.
6842 Add a FIXME comment.
6843 Move file-scoped "static" declarations to the top.
6844 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
6846 2007-08-17 Bruno Haible <bruno@clisp.org>
6847 and Paul Eggert <eggert@cs.ucla.edu>
6849 * MODULES.html.sh: Add diffseq.
6850 * modules/diffseq: New file.
6851 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
6852 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
6854 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
6856 Import changes from coreutils for bootstrap script.
6858 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
6860 * build-aux/bootstrap (slurp): Work even in environments where
6861 "ls" defaults to "ls -A". Put in a FIXME, though, since the
6862 current code does not slurp files whose names start with ".", and
6863 this looks like it might be a troublesome area.
6865 2007-07-11 Jim Meyering <jim@meyering.net>
6867 If there's a GPL vN copyright comment, require that N == 3.
6869 2007-07-08 Jim Meyering <jim@meyering.net>
6871 Run the coreutils-specific code only if tests/Makefile.am.in exists.
6872 * build-aux/bootstrap (mam_template): Move definition out of loop.
6874 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
6876 * build-aux/bootstrap (symlink_to_dir): Rename function from
6877 symlink_to_gnulib. Add a directory parameter. Update all
6879 (cp_mark_as_generated): Also check for -- and link to -- files in
6882 2007-07-08 Jim Meyering <jim@meyering.net>
6884 Adapt to deeper hierarchy in gnulib.
6885 * build-aux/bootstrap (symlink_to_dir): If the destination
6886 directory doesn't exist, create it. This is required at least for
6887 "lib/uniwidth/cjk.h".
6889 2007-05-15 Jim Meyering <jim@meyering.net>
6891 * build-aux/bootstrap: Now that generated Makefile.am files
6892 are no longer under version control, they must be created at
6895 2007-08-14 Ben Pfaff <blp@gnu.org>
6897 * lib/count-one-bits.h: Add comments. From Bruno Haible.
6899 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
6901 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
6902 given the changes below.
6903 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
6904 even on hosts that have padding bits beyond the supported 64.
6906 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
6908 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
6909 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
6910 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
6912 (xstrtol_error): Remove.
6913 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
6914 but with a different signature.
6915 (ATTRIBUTE_NORETURN, __attribute__): New macros.
6916 * lib/xstrtol-error.c: Include exitfail.h.
6917 (xstrtol_fatal): New function, with a different signature from the
6918 old xstrtol_error, so that the caller need not worry about passing
6919 in an exit status, or about storage management of the option argument.
6920 (xstrtol_error): Now a static function. Redo signature to
6921 implement xstrtol_fatal. Output the correct number of hyphens in
6922 front of the option so that the caller need not worry about
6925 (_): Remove; not used now.
6926 * modules/xstrtol: Depend on getopt.
6927 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
6928 of old STRTOL_FATAL_ERROR macro.
6929 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
6931 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
6932 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
6934 2007-08-08 Eric Blake <ebb9@byu.net>
6936 * lib/xstrtol-error.c: Add missing include.
6938 Move xstrtol messages into gnulib domain, when --pobase is used.
6939 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
6940 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
6941 * modules/xstrtol (Files): Distribute new file.
6942 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
6943 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
6944 * tests/test-xstrtol.c: ...into new file.
6945 * tests/test-xstrtoul.c: Also test xstrtoul.
6946 * tests/test-xstrtoimax.c: Also test xstrtoimax.
6947 * tests/test-xstrtoumax.c: Also test xstrtoumax.
6948 * tests/test-xstrtol.sh: Drive the tests.
6949 * tests/test-xstrtoimax.sh: Likewise.
6950 * tests/test-xstrtoumax.sh: Likewise.
6951 * modules/xstrtol-tests: New module.
6952 * modules/xstrtoimax-tests: Likewise.
6953 * modules/xstrtoumax-tests: Likewise.
6955 2007-08-08 Jim Meyering <jim@meyering.net>
6957 New function: mfile_name_concat.
6958 * lib/filenamecat.c (mfile_name_concat): New function, just like
6959 file_name_concat, but return NULL upon failure rather than exiting
6961 * lib/filenamecat.h: Declare it.
6963 2007-08-07 Bruno Haible <bruno@clisp.org>
6965 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
6966 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
6968 Reported by Eric Blake.
6970 2007-08-07 Simon Josefsson <simon@josefsson.org>
6972 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
6973 * modules/crypto/arcfour (License): Likewise.
6974 * modules/crypto/des-tests (License): Likewise.
6975 * modules/crypto/gc-arctwo-tests (License): Likewise.
6976 * modules/crypto/gc-des-tests (License): Likewise.
6977 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
6978 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
6979 * modules/crypto/gc-md2-tests (License): Likewise.
6980 * modules/crypto/gc-md4-tests (License): Likewise.
6981 * modules/crypto/gc-md5-tests (License): Likewise.
6982 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
6983 * modules/crypto/gc-rijndael-tests (License): Likewise.
6984 * modules/crypto/gc-sha1-tests (License): Likewise.
6985 * modules/crypto/gc-tests (License): Likewise.
6986 * modules/crypto/hmac-md5 (License): Likewise.
6987 * modules/crypto/hmac-sha1 (License): Likewise.
6988 * modules/crypto/md2-tests (License): Likewise.
6989 * modules/crypto/md4-tests (License): Likewise.
6990 * modules/crypto/md5 (License): Likewise.
6991 * modules/crypto/rijndael (License): Likewise.
6992 * modules/crypto/sha1 (License): Likewise.
6993 * modules/memxor (License): Likewise.
6995 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
6996 and Bruno Haible <bruno@clisp.org>
6998 * NEWS: Describe interface changes to human, xstrtol.
6999 * lib/human.h: Include <xstrtol.h>.
7000 (human_options): Return enum strtol_error, not int. Remove
7001 bool arg; take int * instead.
7002 * lib/human.c: Don't include "gettext.h".
7003 (_): Remove; no longer used.
7004 Don't include <xstrtol.h>, since human.h does it.
7005 (human_options): Adjust to abovementioned interface changes.
7006 Do not report error to stderr; that's now the caller's
7008 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
7010 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
7011 Str, Argument_type_string. All uses changed. Put " argument"
7012 in diagnostics to make them clearer. Change wording of suffix
7013 message for clarity.
7014 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
7015 Argument_type_string.
7016 (STRTOL_FATAL_WARN): Remove; no longer used.
7017 * modules/human (Depends-on): Remove gettext-h.
7019 2007-08-06 Simon Josefsson <simon@josefsson.org>
7021 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
7023 2007-07-31 Bruno Haible <bruno@clisp.org>
7025 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
7026 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
7027 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
7029 2007-07-31 Bruno Haible <bruno@clisp.org>
7031 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
7032 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
7034 2007-07-30 Bruno Haible <bruno@clisp.org>
7036 * modules/base64 (License): Use the synonymous term "LGPLv2+".
7037 * modules/c-ctype (License): Likewise.
7038 * modules/c-strcase (License): Likewise.
7039 * modules/check-version (License): Likewise.
7040 * modules/iconv (License): Likewise.
7041 * modules/iconv_open (License): Likewise.
7042 * modules/read-file (License): Likewise.
7043 * modules/striconv (License): Likewise.
7044 * modules/strverscmp (License): Likewise.
7045 * modules/vasprintf (License): Likewise.
7046 * modules/crypto/des (License): Likewise.
7047 * modules/crypto/gc (License): Likewise.
7048 * modules/crypto/gc-arcfour (License): Likewise.
7049 * modules/crypto/gc-arctwo (License): Likewise.
7050 * modules/crypto/gc-des (License): Likewise.
7051 * modules/crypto/gc-hmac-md5 (License): Likewise.
7052 * modules/crypto/gc-hmac-sha1 (License): Likewise.
7053 * modules/crypto/gc-md2 (License): Likewise.
7054 * modules/crypto/gc-md4 (License): Likewise.
7055 * modules/crypto/gc-md5 (License): Likewise.
7056 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
7057 * modules/crypto/gc-random (License): Likewise.
7058 * modules/crypto/gc-rijndael (License): Likewise.
7059 * modules/crypto/gc-sha1 (License): Likewise.
7060 * modules/crypto/md2 (License): Likewise.
7061 * modules/crypto/md4 (License): Likewise.
7063 2007-07-30 Jim Meyering <jim@meyering.net>
7065 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
7066 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
7067 it has valid stat data. This bug would cause du not to count the
7068 sizes of inaccessible directories.
7069 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
7070 in <http://bugzilla.redhat.com/250077>.
7072 2007-07-25 Peter O'Gorman <peter@pogma.com>
7073 Bruno Haible <bruno@clisp.org>
7075 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
7076 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
7077 #include_next, gives a diagnostic about it, but reports no error in
7079 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7081 2007-07-24 Ben Pfaff <blp@gnu.org>
7083 Improve name: "count-one-bits" is better than "popcount".
7084 * MODULES.html.sh: Update name.
7085 * lib/popcount.h: Renamed lib/count-one-bits.h.
7086 (popcount): Renamed count_one_bits.
7087 (popcountl): Renamed count_one_bits_l.
7088 (popcountll): Renamed count_one_bits_ll.
7089 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
7090 * modules/popcount: Renamed module/count-one-bits.
7091 * modules/popcount-tests: Renamed module/count-one-bits-tests.
7092 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
7094 2007-07-23 Ben Pfaff <blp@gnu.org>
7096 * lib/popcount.h (popcount32): Reduce size of constants, to allow
7097 better code generation, and add U to large constants to avoid
7098 warnings, in non-GCC case.
7099 Suggested by Bruno Haible.
7101 2007-07-23 Ben Pfaff <blp@gnu.org>
7103 * lib/popcount.h: Use verify_true instead of if...abort.
7104 * modules/popcount: Depend on verify module.
7105 Suggested by Jim Meyering.
7107 2007-07-23 Bruno Haible <bruno@clisp.org>
7109 * gnulib-tool (func_import): Create a .cvsignore file also when the
7110 directory is not yet in CVS but the toplevel directory is. When
7111 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
7112 Reported by Karl Berry.
7114 2007-07-22 Ben Pfaff <blp@gnu.org>
7116 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
7118 Suggested by Eric Blake.
7120 2007-07-22 Ben Pfaff <blp@gnu.org>
7122 New module: popcount.
7123 * MODULES.html.sh: Add popcount.
7124 * modules/popcount: New file.
7125 * modules/popcount-tests: New file.
7126 * tests/test-popcount.c: New file.
7127 * lib/popcount.h: New file.
7128 * m4/popcount.m4: New file.
7130 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
7132 * build-aux/announce-gen: Update to GPLv3.
7134 * build-aux/config.guess: Update from config.
7136 2007-07-21 Bruno Haible <bruno@clisp.org>
7138 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
7139 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
7141 2007-07-20 Jim Meyering <jim@meyering.net>
7143 * check-module: Diagnose a self-dependency.
7145 2007-07-19 Bruno Haible <bruno@clisp.org>
7147 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
7149 Reported by Eric Blake.
7151 2007-07-18 Bruno Haible <bruno@clisp.org>
7153 * gnulib-tool: New options --po-base, --po-domain.
7154 (func_usage): Document them.
7155 (pobase, po_domain): New variables.
7156 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
7157 DEFAULT_TEXT_DOMAIN.
7158 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
7159 (func_import): Consider pobase and po_domain. Create a po/ directory.
7160 (func_create_testdir): Set pobase and po_domain to empty.
7161 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
7162 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
7164 2007-07-18 Bruno Haible <bruno@clisp.org>
7166 * gnulib-tool (func_get_automake_snippet): Synthesize also an
7167 EXTRA_DIST augmentation for files in build-aux/.
7169 2007-07-16 Bruno Haible <bruno@clisp.org>
7171 * modules/lseek (License): Use the synonymous term "LGPLv2+".
7172 * modules/getdelim (License): Likewise.
7174 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7176 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
7177 * modules/d-type (License): Likewise.
7178 * modules/extensions (License): Likewise.
7179 * modules/fnmatch (License): Likewise.
7180 * modules/fseeko (License): Likewise.
7181 * modules/getaddrinfo (License): Likewise.
7182 * modules/getline (License): Likewise.
7183 * modules/getlogin_r (License): Likewise.
7184 * modules/getpass (License): Likewise.
7185 * modules/gettimeofday (License): Likewise.
7186 * modules/glob (License): Likewise.
7187 * modules/inet_ntop (License): Likewise.
7188 * modules/malloc (License): Likewise.
7189 * modules/malloca (License): Likewise.
7190 * modules/memmem (License): Likewise.
7191 * modules/mempcpy (License): Likewise.
7192 * modules/memset (License): Likewise.
7193 * modules/minmax (License): Likewise.
7194 * modules/mktime (License): Likewise.
7195 * modules/netinet_in (License): Likewise.
7196 * modules/pathmax (License): Likewise.
7197 * modules/poll (License): Likewise.
7198 * modules/regex (License): Likewise.
7199 * modules/snprintf (License): Likewise.
7200 * modules/stdbool (License): Likewise.
7201 * modules/stdint (License): Likewise.
7202 * modules/stdio (License): Likewise.
7203 * modules/strcase (License): Likewise.
7204 * modules/strcasestr (License): Likewise.
7205 * modules/strdup (License): Likewise.
7206 * modules/string (License): Likewise.
7207 * modules/strndup (License): Likewise.
7208 * modules/strnlen (License): Likewise.
7209 * modules/strpbrk (License): Likewise.
7210 * modules/strptime (License): Likewise.
7211 * modules/strsep (License): Likewise.
7212 * modules/sys_select (License): Likewise.
7213 * modules/sys_socket (License): Likewise.
7214 * modules/sys_stat (License): Likewise.
7215 * modules/sys_time (License): Likewise.
7216 * modules/time (License): Likewise.
7217 * modules/time_r (License): Likewise.
7218 * modules/timegm (License): Likewise.
7219 * modules/unistd (License): Likewise.
7220 * modules/vsnprintf (License): Likewise.
7221 * modules/wctype (License): Likewise.
7223 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7225 * modules/argz (License): LGPLv2+.
7227 2007-07-15 Karl Berry <karl@gnu.org>
7229 * doc/gnulib.texi: revise node structure per new fdl.texi.
7231 2007-07-14 Bruno Haible <bruno@clisp.org>
7233 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
7235 * lib/uniname/uninames.h: Regenerated.
7237 2007-07-14 Karl Berry <karl@gnu.org>
7239 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
7240 omitting sectioning and index commands.
7242 2007-07-13 Bruno Haible <bruno@clisp.org>
7244 New gnulib-tool option --more-symlinks.
7245 * gnulib-tool (func_usage): Document --more-symlinks.
7246 (do_copyrights): New variable.
7247 Recognize option --more-symlinks.
7248 (func_import): Don't add a copyright notice transform to
7249 sed_transform_lib_file if do_copyrights is empty.
7251 2007-07-13 Bruno Haible <bruno@clisp.org>
7253 * lib/vasnprintf.c (decimal_point_char): Define also if
7254 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
7255 && !NEED_PRINTF_DIRECTIVE_A.
7256 Reported by Clemens Koller <clemens.koller@anagramm.de> via
7257 Gary V. Vaughan <gary@gnu.org>.
7259 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
7261 * lib/inttypes_.h: Undo previous change, since it was fixed
7262 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
7264 2007-07-13 Bruno Haible <bruno@clisp.org>
7266 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
7267 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
7269 2007-07-13 Jim Meyering <jim@meyering.net>
7271 df: Don't fail for Tru64's "file-on-file mount".
7272 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
7273 so we fall through and use statfs instead. Details here:
7274 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
7275 Reported by Albert Chin.
7277 2007-07-13 Bruno Haible <bruno@clisp.org>
7279 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
7280 * modules/configmake (License): Likewise.
7281 * modules/gettext (License): Likewise.
7282 * modules/gettext-h (License): Likewise.
7283 * modules/include_next (License): Likewise.
7284 * modules/link-warning (License): Likewise.
7285 * modules/localcharset (License): Likewise.
7286 * modules/localename (License): Likewise.
7287 * modules/lock (License): Likewise.
7288 * modules/relocatable-lib-lgpl (License): Likewise.
7289 * modules/size_max (License): Likewise.
7290 * modules/vasnprintf (License): Likewise.
7291 * modules/wchar (License): Likewise.
7292 * modules/xsize (License): Likewise.
7294 2007-07-13 Bruno Haible <bruno@clisp.org>
7296 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
7297 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
7299 2007-07-12 Bruno Haible <bruno@clisp.org>
7301 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
7302 in the modules files.
7304 2007-07-11 Karl Berry <karl@gnu.org>
7306 * MODULES.html.sh (func_module): use
7307 sed -e '\|^'"${includefile}"'$|d'
7308 instead of /.../d, to avoid errors on $includefile's containing /.
7310 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
7312 * gnulib-tool (func_import): Avoid duplication of --avoid
7314 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
7315 names to `_' in variable names.
7317 2007-07-10 Eric Blake <ebb9@byu.net>
7319 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
7320 * NEWS: Document this change.
7322 2007-07-08 Bruno Haible <bruno@clisp.org>
7324 Update to Unicode 5.0.
7325 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
7326 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
7327 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
7328 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
7329 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
7330 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
7331 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
7332 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
7333 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
7334 U+10A3F, U+1D242..U+1D244.
7335 (nonspacing_table_ind): Update.
7336 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
7337 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
7339 2007-07-08 Bruno Haible <bruno@clisp.org>
7341 Update to Unicode 5.0.
7342 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
7343 code transform. Extend the name index field of unicode_name_to_code and
7344 unicode_code_to_name from 16 to 24 bits.
7345 * lib/uniname/uniname.c (unicode_character_name,
7346 unicode_name_character): Add the range 0x12xxx to the code transform.
7347 * lib/uniname/uninames.h: Regenerated.
7348 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
7350 2007-07-07 Bruno Haible <bruno@clisp.org>
7352 * modules/wcwidth-tests: New file.
7353 * tests/test-wcwidth.c: New file.
7355 Work around MacOS X wcwidth() bug.
7356 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
7357 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
7358 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
7359 original wcwidth in non-UTF-8 locales.
7360 * modules/wcwidth (Depends-on): Add localcharset, streq,
7362 * doc/functions/wcwidth.texi: Update.
7364 2007-07-07 Bruno Haible <bruno@clisp.org>
7366 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
7367 (wcwidth): New declaration.
7368 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
7370 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
7371 here. Prepare for creating <wchar.h> unconditionally.
7372 * modules/wchar (Depends-on): Add link-warning.
7373 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
7374 REPLACE_WCWIDTH, and GL_LINK_WARNING.
7375 * lib/wcwidth.h: Remove file.
7376 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
7377 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
7378 * modules/wcwidth (Files): Remove lib/wcwidth.h.
7379 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
7380 (Include): Replace wcwidth.h with <wchar.h>.
7381 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
7382 * lib/mbchar.h: Don't include wcwidth.h.
7383 * lib/mbswidth.c: Likewise.
7384 * NEWS: Mention the change.
7386 2007-07-07 Bruno Haible <bruno@clisp.org>
7388 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
7389 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
7390 definition with an external declaration.
7391 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
7392 defined as a function. Remove AC_C_INLINE requirement.
7393 * modules/wcwidth (Files): Add lib/wcwidth.c.
7394 (Makefile.am): Remove redundant statement.
7396 2007-07-07 Bruno Haible <bruno@clisp.org>
7398 * MODULES.html.sh (Unicode string functions): Add the new modules.
7400 * tests/uniwidth/test-u32-strwidth.c: New file.
7401 * modules/uniwidth/u32-strwidth-tests: New file.
7403 * lib/uniwidth/u32-strwidth.c: New file.
7404 * modules/uniwidth/u32-strwidth: New file.
7406 * tests/uniwidth/test-u16-strwidth.c: New file.
7407 * modules/uniwidth/u16-strwidth-tests: New file.
7409 * lib/uniwidth/u16-strwidth.c: New file.
7410 * modules/uniwidth/u16-strwidth: New file.
7412 * tests/uniwidth/test-u8-strwidth.c: New file.
7413 * modules/uniwidth/u8-strwidth-tests: New file.
7415 * lib/uniwidth/u8-strwidth.c: New file.
7416 * modules/uniwidth/u8-strwidth: New file.
7418 * tests/uniwidth/test-u32-width.c: New file.
7419 * modules/uniwidth/u32-width-tests: New file.
7421 * lib/uniwidth/u32-width.c: New file.
7422 * modules/uniwidth/u32-width: New file.
7424 * tests/uniwidth/test-u16-width.c: New file.
7425 * modules/uniwidth/u16-width-tests: New file.
7427 * lib/uniwidth/u16-width.c: New file.
7428 * modules/uniwidth/u16-width: New file.
7430 * tests/uniwidth/test-u8-width.c: New file.
7431 * modules/uniwidth/u8-width-tests: New file.
7433 * lib/uniwidth/u8-width.c: New file.
7434 * modules/uniwidth/u8-width: New file.
7436 * tests/uniwidth/test-uc_width.c: New file.
7437 * modules/uniwidth/width-tests: New file.
7439 * lib/uniwidth/width.c: New file, from GNU libiconv.
7440 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7441 * modules/uniwidth/width: New file.
7443 * lib/uniwidth.h: New file, from GNU libiconv.
7444 * modules/uniwidth/base: New file.
7446 2007-07-07 Bruno Haible <bruno@clisp.org>
7448 * lib/uniname.h: New file, from GNU gettext.
7449 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7450 * lib/uniname/uninames.h: New file, from GNU gettext.
7451 * lib/uniname/uniname.c: New file, from GNU gettext.
7452 * tests/uniname/test-uninames.sh: New file.
7453 * tests/uniname/test-uninames.c: New file, from GNU gettext.
7454 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7455 * modules/uniname/base: New file.
7456 * modules/uniname/uniname: New file.
7457 * modules/uniname/uniname-tests: New file.
7458 * MODULES.html.sh (Unicode string functions): Add the new modules.
7460 2007-07-06 Bruno Haible <bruno@clisp.org>
7462 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7464 2007-07-06 Bruno Haible <bruno@clisp.org>
7466 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7467 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7468 includes <cygwin/sys_time.h> which includes <sys/select.h> which
7469 include <sys/time.h>.
7470 Reported by Eric Blake.
7472 2007-07-06 Eric Blake <ebb9@byu.net>
7474 Fix testing canonicalize on cygwin.
7475 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7476 Revert patch from 2007-06-19.
7477 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7478 canonicalize module is also in use.
7479 * tests/test-canonicalize.c: New file.
7480 * tests/test-canonicalize.sh: Likewise.
7481 * modules/canonicalize-tests: Likewise.
7483 2007-07-06 Jim Meyering <jim@meyering.net>
7485 * lib/getugroups.c (getugroups): Detect getgrent failure.
7486 Adjust comment to reflect reality: this function may return -1.
7488 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
7490 * build-aux/bootstrap (TP_URL,get_translations): Update to use
7493 (gnulib_mk): New variable.
7495 2007-07-05 Jim Meyering <jim@meyering.net>
7497 Don't let endgrent clobber errno, no matter how improbable.
7498 * lib/getugroups.c (getugroups): Save and restore errno around
7501 Close the group DB even when failing with 2^31 or more members.
7502 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7504 2007-07-04 Jim Meyering <jim@meyering.net>
7506 * lib/getugroups.h: New file.
7507 * lib/getugroups.c: Include "getugroups.h".
7508 Remove uses of "register" keyword.
7509 Move local variable, "cp", down into scope where used.
7510 Give "username" parameter the "const" attribute.
7511 * modules/getugroups (Files): Add lib/getugroups.h
7513 2007-07-04 Karl Berry <karl@gnu.org>
7515 * MODULES.html.sh (func_all_modules): Complete rename of
7516 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7518 2007-07-02 Bruno Haible <bruno@clisp.org>
7520 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7521 mode, when inttypes.h comes from gnulib.
7522 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7524 2007-07-02 Simon Josefsson <simon@josefsson.org>
7526 * NEWS: Mention lgpl module name change.
7528 * modules/lgpl-2.1: Renamed from lgpl.
7530 * NEWS: Mention gpl module name change.
7532 * modules/gpl-3.0: New file, based on gpl-2.0.
7534 * modules/gpl-2.0: Renamed from gpl.
7536 * modules/gpl: Fix filename, doc/gpl.texi is now found at
7539 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
7541 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7542 #define __STDC_LIMIT_MACROS temporarily while including
7543 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7544 Problem reported by Joel E. Denny in
7545 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7547 2007-07-01 Bruno Haible <bruno@clisp.org>
7549 * lib/unistdio.h: New file.
7550 * lib/unistdio/u-asnprintf.h: New file.
7551 * lib/unistdio/u-asprintf.h: New file.
7552 * lib/unistdio/u-printf-args.c: New file.
7553 * lib/unistdio/u-printf-args.h: New file.
7554 * lib/unistdio/u-printf-parse.h: New file.
7555 * lib/unistdio/u-snprintf.h: New file.
7556 * lib/unistdio/u-sprintf.h: New file.
7557 * lib/unistdio/u-vasprintf.h: New file.
7558 * lib/unistdio/u-vsnprintf.h: New file.
7559 * lib/unistdio/u-vsprintf.h: New file.
7560 * lib/unistdio/ulc-asnprintf.c: New file.
7561 * lib/unistdio/ulc-asprintf.c: New file.
7562 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7563 * lib/unistdio/ulc-printf-parse.c: New file.
7564 * lib/unistdio/ulc-snprintf.c: New file.
7565 * lib/unistdio/ulc-sprintf.c: New file.
7566 * lib/unistdio/ulc-vasnprintf.c: New file.
7567 * lib/unistdio/ulc-vasprintf.c: New file.
7568 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7569 * lib/unistdio/ulc-vsnprintf.c: New file.
7570 * lib/unistdio/ulc-vsprintf.c: New file.
7571 * lib/unistdio/u8-asnprintf.c: New file.
7572 * lib/unistdio/u8-asprintf.c: New file.
7573 * lib/unistdio/u8-printf-parse.c: New file.
7574 * lib/unistdio/u8-snprintf.c: New file.
7575 * lib/unistdio/u8-sprintf.c: New file.
7576 * lib/unistdio/u8-vasnprintf.c: New file.
7577 * lib/unistdio/u8-vasprintf.c: New file.
7578 * lib/unistdio/u8-vsnprintf.c: New file.
7579 * lib/unistdio/u8-vsprintf.c: New file.
7580 * lib/unistdio/u8-u8-asnprintf.c: New file.
7581 * lib/unistdio/u8-u8-asprintf.c: New file.
7582 * lib/unistdio/u8-u8-snprintf.c: New file.
7583 * lib/unistdio/u8-u8-sprintf.c: New file.
7584 * lib/unistdio/u8-u8-vasnprintf.c: New file.
7585 * lib/unistdio/u8-u8-vasprintf.c: New file.
7586 * lib/unistdio/u8-u8-vsnprintf.c: New file.
7587 * lib/unistdio/u8-u8-vsprintf.c: New file.
7588 * lib/unistdio/u16-asnprintf.c: New file.
7589 * lib/unistdio/u16-asprintf.c: New file.
7590 * lib/unistdio/u16-printf-parse.c: New file.
7591 * lib/unistdio/u16-snprintf.c: New file.
7592 * lib/unistdio/u16-sprintf.c: New file.
7593 * lib/unistdio/u16-vasnprintf.c: New file.
7594 * lib/unistdio/u16-vasprintf.c: New file.
7595 * lib/unistdio/u16-vsnprintf.c: New file.
7596 * lib/unistdio/u16-vsprintf.c: New file.
7597 * lib/unistdio/u16-u16-asnprintf.c: New file.
7598 * lib/unistdio/u16-u16-asprintf.c: New file.
7599 * lib/unistdio/u16-u16-snprintf.c: New file.
7600 * lib/unistdio/u16-u16-sprintf.c: New file.
7601 * lib/unistdio/u16-u16-vasnprintf.c: New file.
7602 * lib/unistdio/u16-u16-vasprintf.c: New file.
7603 * lib/unistdio/u16-u16-vsnprintf.c: New file.
7604 * lib/unistdio/u16-u16-vsprintf.c: New file.
7605 * lib/unistdio/u32-asnprintf.c: New file.
7606 * lib/unistdio/u32-asprintf.c: New file.
7607 * lib/unistdio/u32-printf-parse.c: New file.
7608 * lib/unistdio/u32-snprintf.c: New file.
7609 * lib/unistdio/u32-sprintf.c: New file.
7610 * lib/unistdio/u32-vasnprintf.c: New file.
7611 * lib/unistdio/u32-vasprintf.c: New file.
7612 * lib/unistdio/u32-vsnprintf.c: New file.
7613 * lib/unistdio/u32-vsprintf.c: New file.
7614 * lib/unistdio/u32-u32-asnprintf.c: New file.
7615 * lib/unistdio/u32-u32-asprintf.c: New file.
7616 * lib/unistdio/u32-u32-snprintf.c: New file.
7617 * lib/unistdio/u32-u32-sprintf.c: New file.
7618 * lib/unistdio/u32-u32-vasnprintf.c: New file.
7619 * lib/unistdio/u32-u32-vasprintf.c: New file.
7620 * lib/unistdio/u32-u32-vsnprintf.c: New file.
7621 * lib/unistdio/u32-u32-vsprintf.c: New file.
7622 * tests/unistdio/test-ulc-asnprintf1.c: New file.
7623 * tests/unistdio/test-ulc-asnprintf1.h: New file.
7624 * tests/unistdio/test-ulc-printf1.h: New file.
7625 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
7626 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
7627 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
7628 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
7629 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
7630 * tests/unistdio/test-ulc-vasprintf1.c: New file.
7631 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
7632 * tests/unistdio/test-ulc-vsprintf1.c: New file.
7633 * tests/unistdio/test-u8-asnprintf1.c: New file.
7634 * tests/unistdio/test-u8-asnprintf1.h: New file.
7635 * tests/unistdio/test-u8-printf1.h: New file.
7636 * tests/unistdio/test-u8-vasnprintf1.c: New file.
7637 * tests/unistdio/test-u8-vasnprintf2.c: New file.
7638 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
7639 * tests/unistdio/test-u8-vasnprintf3.c: New file.
7640 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
7641 * tests/unistdio/test-u8-vasprintf1.c: New file.
7642 * tests/unistdio/test-u8-vsnprintf1.c: New file.
7643 * tests/unistdio/test-u8-vsprintf1.c: New file.
7644 * tests/unistdio/test-u16-asnprintf1.c: New file.
7645 * tests/unistdio/test-u16-asnprintf1.h: New file.
7646 * tests/unistdio/test-u16-printf1.h: New file.
7647 * tests/unistdio/test-u16-vasnprintf1.c: New file.
7648 * tests/unistdio/test-u16-vasnprintf2.c: New file.
7649 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
7650 * tests/unistdio/test-u16-vasnprintf3.c: New file.
7651 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
7652 * tests/unistdio/test-u16-vasprintf1.c: New file.
7653 * tests/unistdio/test-u16-vsnprintf1.c: New file.
7654 * tests/unistdio/test-u16-vsprintf1.c: New file.
7655 * tests/unistdio/test-u32-asnprintf1.c: New file.
7656 * tests/unistdio/test-u32-asnprintf1.h: New file.
7657 * tests/unistdio/test-u32-printf1.h: New file.
7658 * tests/unistdio/test-u32-vasnprintf1.c: New file.
7659 * tests/unistdio/test-u32-vasnprintf2.c: New file.
7660 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
7661 * tests/unistdio/test-u32-vasnprintf3.c: New file.
7662 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
7663 * tests/unistdio/test-u32-vasprintf1.c: New file.
7664 * tests/unistdio/test-u32-vsnprintf1.c: New file.
7665 * tests/unistdio/test-u32-vsprintf1.c: New file.
7666 * modules/unistdio/base: New file.
7667 * modules/unistdio/u-printf-args: New file.
7668 * modules/unistdio/ulc-asnprintf: New file.
7669 * modules/unistdio/ulc-asprintf: New file.
7670 * modules/unistdio/ulc-fprintf: New file.
7671 * modules/unistdio/ulc-printf-parse: New file.
7672 * modules/unistdio/ulc-snprintf: New file.
7673 * modules/unistdio/ulc-sprintf: New file.
7674 * modules/unistdio/ulc-vasnprintf: New file.
7675 * modules/unistdio/ulc-vasprintf: New file.
7676 * modules/unistdio/ulc-vfprintf: New file.
7677 * modules/unistdio/ulc-vsnprintf: New file.
7678 * modules/unistdio/ulc-vsprintf: New file.
7679 * modules/unistdio/u8-asnprintf: New file.
7680 * modules/unistdio/u8-asprintf: New file.
7681 * modules/unistdio/u8-printf-parse: New file.
7682 * modules/unistdio/u8-snprintf: New file.
7683 * modules/unistdio/u8-sprintf: New file.
7684 * modules/unistdio/u8-vasnprintf: New file.
7685 * modules/unistdio/u8-vasprintf: New file.
7686 * modules/unistdio/u8-vsnprintf: New file.
7687 * modules/unistdio/u8-vsprintf: New file.
7688 * modules/unistdio/u8-u8-asnprintf: New file.
7689 * modules/unistdio/u8-u8-asprintf: New file.
7690 * modules/unistdio/u8-u8-snprintf: New file.
7691 * modules/unistdio/u8-u8-sprintf: New file.
7692 * modules/unistdio/u8-u8-vasnprintf: New file.
7693 * modules/unistdio/u8-u8-vasprintf: New file.
7694 * modules/unistdio/u8-u8-vsnprintf: New file.
7695 * modules/unistdio/u8-u8-vsprintf: New file.
7696 * modules/unistdio/u16-asnprintf: New file.
7697 * modules/unistdio/u16-asprintf: New file.
7698 * modules/unistdio/u16-printf-parse: New file.
7699 * modules/unistdio/u16-snprintf: New file.
7700 * modules/unistdio/u16-sprintf: New file.
7701 * modules/unistdio/u16-vasnprintf: New file.
7702 * modules/unistdio/u16-vasprintf: New file.
7703 * modules/unistdio/u16-vsnprintf: New file.
7704 * modules/unistdio/u16-vsprintf: New file.
7705 * modules/unistdio/u16-u16-asnprintf: New file.
7706 * modules/unistdio/u16-u16-asprintf: New file.
7707 * modules/unistdio/u16-u16-snprintf: New file.
7708 * modules/unistdio/u16-u16-sprintf: New file.
7709 * modules/unistdio/u16-u16-vasnprintf: New file.
7710 * modules/unistdio/u16-u16-vasprintf: New file.
7711 * modules/unistdio/u16-u16-vsnprintf: New file.
7712 * modules/unistdio/u16-u16-vsprintf: New file.
7713 * modules/unistdio/u32-asnprintf: New file.
7714 * modules/unistdio/u32-asprintf: New file.
7715 * modules/unistdio/u32-printf-parse: New file.
7716 * modules/unistdio/u32-snprintf: New file.
7717 * modules/unistdio/u32-sprintf: New file.
7718 * modules/unistdio/u32-vasnprintf: New file.
7719 * modules/unistdio/u32-vasprintf: New file.
7720 * modules/unistdio/u32-vsnprintf: New file.
7721 * modules/unistdio/u32-vsprintf: New file.
7722 * modules/unistdio/u32-u32-asnprintf: New file.
7723 * modules/unistdio/u32-u32-asprintf: New file.
7724 * modules/unistdio/u32-u32-snprintf: New file.
7725 * modules/unistdio/u32-u32-sprintf: New file.
7726 * modules/unistdio/u32-u32-vasnprintf: New file.
7727 * modules/unistdio/u32-u32-vasprintf: New file.
7728 * modules/unistdio/u32-u32-vsnprintf: New file.
7729 * modules/unistdio/u32-u32-vsprintf: New file.
7730 * modules/unistdio/ulc-asnprintf-tests: New file.
7731 * modules/unistdio/ulc-vasnprintf-tests: New file.
7732 * modules/unistdio/ulc-vasprintf-tests: New file.
7733 * modules/unistdio/ulc-vsnprintf-tests: New file.
7734 * modules/unistdio/ulc-vsprintf-tests: New file.
7735 * modules/unistdio/u8-asnprintf-tests: New file.
7736 * modules/unistdio/u8-vasnprintf-tests: New file.
7737 * modules/unistdio/u8-vasprintf-tests: New file.
7738 * modules/unistdio/u8-vsnprintf-tests: New file.
7739 * modules/unistdio/u8-vsprintf-tests: New file.
7740 * modules/unistdio/u16-asnprintf-tests: New file.
7741 * modules/unistdio/u16-vasnprintf-tests: New file.
7742 * modules/unistdio/u16-vasprintf-tests: New file.
7743 * modules/unistdio/u16-vsnprintf-tests: New file.
7744 * modules/unistdio/u16-vsprintf-tests: New file.
7745 * modules/unistdio/u32-asnprintf-tests: New file.
7746 * modules/unistdio/u32-vasnprintf-tests: New file.
7747 * modules/unistdio/u32-vasprintf-tests: New file.
7748 * modules/unistdio/u32-vsnprintf-tests: New file.
7749 * modules/unistdio/u32-vsprintf-tests: New file.
7750 * MODULES.html.sh (Unicode string functions): Add the new modules.
7752 2007-07-01 Bruno Haible <bruno@clisp.org>
7754 * lib/sprintf.c (sprintf): Limit the available length estimation,
7755 to avoid address wraparound.
7756 * lib/vsprintf.c (vsprintf): Likewise.
7757 * modules/sprintf-posix (Dependencies): Add stdint.
7758 * modules/vsprintf-posix (Dependencies): Likewise.
7760 2007-07-01 Bruno Haible <bruno@clisp.org>
7762 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
7763 Windows PATH as well. Conservative double-quoting. Comments.
7765 2007-07-01 Bruno Haible <bruno@clisp.org>
7766 Eric Blake <ebb9@byu.net>
7767 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7769 * gnulib-tool (self_abspathname): Fix algorithm to cope with
7770 empty components in $PATH, denoting '.'.
7772 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7774 * gnulib-tool: Fix indentation.
7775 (func_create_megatestdir): Likewise.
7776 Report by Bruno Haible.
7778 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7781 * build-aux/gnupload: Fix shell portability issues with for loops.
7782 Report by Karl Berry.
7784 2007-06-29 Simon Josefsson <simon@josefsson.org>
7786 * build-aux/maint.mk (POURL): Use translationproject.org.
7788 2007-06-27 Simon Josefsson <simon@josefsson.org>
7789 Bruno Haible <bruno@clisp.org>
7791 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
7792 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
7793 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
7794 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
7795 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
7797 2007-06-27 Bruno Haible <bruno@clisp.org>
7799 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
7800 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
7802 2007-06-26 Karl Berry <karl@gnu.org>
7804 * MODULES.html.sh: remove xreadlink-with-size.
7806 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
7808 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
7809 method that I hope also handles the double-include problem noted
7811 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
7813 2007-06-23 Bruno Haible <bruno@clisp.org>
7815 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7816 Don't let the 'mostlyclean' target fail if the last subdirectory could
7818 Reported by Karl Berry.
7820 2007-06-23 Bruno Haible <bruno@clisp.org>
7822 * gnulib-tool (echo): Add a speedier workaround for ksh.
7823 * tests/test-echo.sh: Likewise.
7825 2007-06-23 Bruno Haible <bruno@clisp.org>
7827 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
7828 * tests/test-echo.sh: Likewise.
7830 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7832 * gnulib-tool (IFS): Initialize early, so we don't set it to
7834 (self_abspathname): Rewrite algorithm to set it, reindent.
7835 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7836 (func_create_megatestdir): Merge some sed scripts.
7838 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
7840 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
7841 exposed by Sun Studio 11 cc on Solaris 8.
7843 2007-06-22 Bruno Haible <bruno@clisp.org>
7845 * gnulib-tool (echo): Ensure the echo primitive does not interpret
7847 * tests/test-echo.sh: New file.
7849 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7851 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
7852 simplify `sed_replace_build_aux' scripts, they are portable but
7853 echoing them with `echo' is not.
7854 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
7856 2007-06-21 Karl Berry <karl@gnu.org>
7858 * config/srclist.txt: guess we can't handle the licenses via
7859 srclist at the moment.
7861 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
7863 * MODULES.html.sh: Add include_next.
7864 * modules/include_next: New file.
7866 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
7868 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
7870 (gl_CHECK_NEXT_HEADERS): New macro.
7871 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
7872 the obsolescent gl_ABSOLUTE_HEADER.
7873 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
7874 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
7875 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
7876 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
7877 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
7878 * m4/math_h.m4 (gl_MATH_H): Likewise.
7879 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
7880 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7881 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7882 * m4/stdint.m4 (gl_STDINT_H): Likewise.
7883 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7884 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7885 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
7886 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7887 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7888 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7889 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7890 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
7891 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
7892 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7893 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7894 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7895 * m4/inttypes.m4 (gl_INTTYPES_H): Define
7896 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
7897 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
7898 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
7899 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
7900 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
7901 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
7902 * lib/float_.h: Likewise.
7903 * lib/inttypes_.h: Likewise.
7904 * lib/math_.h: Likewise.
7905 * lib/search_.h: Likewise.
7906 * lib/signal_.h: Likewise.
7907 * lib/stdint_.h: Likewise.
7908 * lib/stdio_.h: Likewise.
7909 * lib/stdlib_.h: Likewise.
7910 * lib/string_.h: Likewise.
7911 * lib/sys_stat_.h: Likewise.
7912 * lib/sys_time_.h: Likewise.
7913 * lib/time_.h: Likewise.
7914 * lib/unistd_.h: Likewise.
7915 * lib/wchar_.h: Likewise.
7916 * lib/wctype_.h: Likewise.
7917 * lib/dirent_.h: Likewise.
7918 * lib/iconv_.h: Likewise.
7919 * lib/locale_.h: Likewise.
7920 * lib/netinet_in_.h: Likewise.
7921 * lib/sys_select_.h: Likewise.
7922 * lib/sys_socket_.h: Likewise.
7923 * lib/sysexits_.h: Likewise.
7924 * modules/fcntl (Depends-on): Depend on include_next, not
7926 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
7927 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
7928 * modules/fchdir: Likewise.
7929 * modules/float: Likewise.
7930 * modules/iconv_open: Likewise.
7931 * modules/inttypes: Likewise.
7932 * modules/locale: Likewise.
7933 * modules/math: Likewise.
7934 * modules/netinet_in: Likewise.
7935 * modules/search: Likewise.
7936 * modules/signal: Likewise.
7937 * modules/stdint: Likewise.
7938 * modules/stdio: Likewise.
7939 * modules/stdlib: Likewise.
7940 * modules/string: Likewise.
7941 * modules/sys_select: Likewise.
7942 * modules/sys_socket: Likewise.
7943 * modules/sys_stat: Likewise.
7944 * modules/sys_time: Likewise.
7945 * modules/sysexits: Likewise.
7946 * modules/time: Likewise.
7947 * modules/unistd: Likewise.
7948 * modules/wchar: Likewise.
7949 * modules/wctype: Likewise.
7950 * modules/sys_stat: Change maintainer to "all".
7951 * modules/unistd: Likewise.
7953 2007-06-20 Karl Berry <karl@gnu.org>
7955 * config/srclist.txt: track www changes in license files.
7957 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
7959 * build-aux/bootstrap: Remove stray dot.
7960 Make sure build_aux settings are honored when linking
7963 2007-06-19 Eric Blake <ebb9@byu.net>
7965 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7966 Allow compilation on cygwin.
7968 2007-06-19 Jim Meyering <jim@meyering.net>
7970 xreadlink-with-size: Remove module. No longer used.
7971 Ex-callers now use xreadlink or mreadlink-with-size.
7972 * modules/xreadlink-with-size: Remove module.
7973 * lib/xreadlink-with-size.c: Remove file.
7974 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
7975 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
7976 just before the function definition *is* accurate.
7978 Eliminate one way canonicalize_filename_mode could exit.
7979 * lib/canonicalize.c (canonicalize_filename_mode):
7980 Use mreadlink_with_size, not xreadlink_with_size.
7982 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
7984 Detect porting problems to FreeBSD/arm, which has time_t wider than
7985 long int. Original problem reported for GNU diff by Xin Li in
7986 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
7987 * modules/getdate (Depends-on): Add intprops, verify.
7988 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
7989 is an integer type no wider than long int.
7991 2007-06-18 Jim Meyering <jim@meyering.net>
7993 New module: mreadlink-with-size.
7994 * MODULES.html.sh: Add mreadlink-with-size.
7995 * modules/mreadlink-with-size: New module
7996 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
7997 not xreadlink-with-size.
7998 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
8000 2007-06-16 Bruno Haible <bruno@clisp.org>
8002 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
8003 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
8004 Reported by Gary V. Vaughan <gary@gnu.org>.
8006 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
8008 Revamp lchown so that it lives in unistd.h where it belongs.
8009 * lib/lchown.h: Remove.
8010 * lib/dirchownmod.c: Don't include lib/lchown.h.
8011 * lib/fchownat.c: Likewise.
8012 * lib/openat.c: Likewise.
8013 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
8014 does not follow symlinks.
8015 (EOPNOTSUPP): Define if not defined.
8016 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
8019 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
8020 Do not check for lchown decl.
8022 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
8024 * modules/chown: Make it clear it follows symlinks.
8025 * modules/lchown: Make it clear it doesn't follow symlinks.
8026 (Files): Remove lib/lchown.h
8027 (Depends-on): Add unistd.
8028 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
8029 (Include): Include <unistd.h>, not "lchown.h".
8030 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
8033 2007-06-15 Jim Meyering <jim@meyering.net>
8035 Change license (GPL to LGPL) of fsusage and dependents.
8036 * modules/fsusage (License): Change to LGPL.
8037 * modules/full-read (License): Likewise.
8038 * modules/full-write (License): Likewise.
8039 * modules/safe-read (License): Likewise.
8040 * modules/safe-write (License): Likewise.
8042 2007-06-14 Ben Pfaff <blp@gnu.org>
8044 Missing part of allocsa -> malloca transition.
8045 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
8048 2007-06-12 Bruno Haible <bruno@clisp.org>
8050 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
8051 to ia64, x86_64, i386.
8052 Reported by Eric Blake.
8054 2007-06-12 Bruno Haible <bruno@clisp.org>
8056 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
8057 cross-compiling to x86_64.
8059 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
8061 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
8062 glitch reported by Ralf Wildenhues in
8063 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
8065 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
8068 2007-06-11 Bruno Haible <bruno@clisp.org>
8070 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
8072 Reported by Eric Blake.
8074 2007-06-10 Bruno Haible <bruno@clisp.org>
8076 Prepare vasnprintf code for use with Unicode strings.
8077 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
8078 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
8080 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
8081 a_u32_string variants.
8082 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8083 * lib/printf-args.c: Don't include config.h and the specification
8084 header if PRINTF_FETCHARGS is already defined.
8085 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8086 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
8087 TYPE_U16_STRING, TYPE_U32_STRING.
8088 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
8089 u16_directive, u16_directives, u32_directive, u32_directives): New
8091 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
8093 * lib/printf-parse.c: Don't include config.h and the specification
8094 header if PRINTF_PARSE is already defined. Eliminate the set of
8095 parameters for WIDE_CHAR_VERSION; the user of this file must provide
8096 them now. Include c-ctype.h.
8097 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
8098 directive and CHAR_T_ONLY_ASCII.
8099 * lib/vasnprintf.c: Don't include config.h and the specification header
8100 if VASNPRINTF is already defined.
8101 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
8102 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
8103 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
8104 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
8105 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
8106 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
8108 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
8109 pad_ourselves also in this case, with the 'c' and 's' directives, and
8110 with a different notion of "width".
8111 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
8113 2007-06-10 Bruno Haible <bruno@clisp.org>
8115 * modules/unistr/u32-mbsnlen: New file.
8116 * lib/unistr/u32-mbsnlen.c: New file.
8118 * modules/unistr/u16-mbsnlen: New file.
8119 * lib/unistr/u16-mbsnlen.c: New file.
8121 * modules/unistr/u8-mbsnlen: New file.
8122 * lib/unistr/u8-mbsnlen.c: New file.
8124 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
8127 2007-06-10 Bruno Haible <bruno@clisp.org>
8129 * lib/string_.h (mbsnlen): New declaration.
8130 * lib/mbsnlen.c: New file.
8131 * m4/mbsnlen.m4: New file.
8132 * modules/mbsnlen: New file.
8133 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
8134 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
8135 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
8137 2007-06-10 Bruno Haible <bruno@clisp.org>
8139 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
8141 2007-06-10 Bruno Haible <bruno@clisp.org>
8143 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
8144 * lib/mbuiter.h: Likewise.
8146 2007-06-10 Bruno Haible <bruno@clisp.org>
8148 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
8151 2007-06-10 Karl Berry <karl@gnu.org>
8153 * config/srclist.txt: remove gettext entries, Bruno prefers
8154 to update individually.
8156 2007-06-10 Bruno Haible <bruno@clisp.org>
8158 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
8159 'maxlen'. Ensure only length + width bytes are allocated, not
8162 2007-06-09 Bruno Haible <bruno@clisp.org>
8164 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
8165 (CHAR_T): Remove macro.
8166 (VASNPRINTF): Update.
8168 2007-06-09 Bruno Haible <bruno@clisp.org>
8170 * MODULES.html.sh (Unicode string functions): Add the new modules.
8172 * modules/uniconv/u32-conv-to-enc: New file.
8173 * lib/uniconv/u32-conv-to-enc.c: New file.
8174 * modules/uniconv/u32-conv-to-enc-tests: New file.
8175 * tests/uniconv/test-u32-conv-to-enc.c: New file.
8177 * modules/uniconv/u16-conv-to-enc: New file.
8178 * lib/uniconv/u16-conv-to-enc.c: New file.
8179 * lib/uniconv/u-conv-to-enc.h: New file.
8180 * modules/uniconv/u16-conv-to-enc-tests: New file.
8181 * tests/uniconv/test-u16-conv-to-enc.c: New file.
8183 * modules/uniconv/u8-conv-to-enc: New file.
8184 * lib/uniconv/u8-conv-to-enc.c: New file.
8185 * modules/uniconv/u8-conv-to-enc-tests: New file.
8186 * tests/uniconv/test-u8-conv-to-enc.c: New file.
8188 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8189 u32_conv_to_encoding): New declarations.
8191 2007-06-09 Bruno Haible <bruno@clisp.org>
8193 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
8195 2007-06-09 Bruno Haible <bruno@clisp.org>
8197 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
8198 * modules/malloca: Renamed from modules/allocsa, updated.
8199 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
8200 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
8201 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
8202 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
8203 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
8204 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
8205 * modules/xmalloca: Renamed from modules/xallocsa, updated.
8206 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
8207 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
8208 * modules/c-strcasestr (Depends-on): Update.
8209 * lib/c-strcasestr.c: Update.
8210 * modules/c-strstr (Depends-on): Update.
8211 * lib/c-strstr.c: Update.
8212 * modules/canonicalize-lgpl (Depends-on): Update.
8213 * lib/canonicalize-lgpl.c: Update.
8214 * modules/clean-temp (Depends-on): Update.
8215 * lib/clean-temp.c: Update.
8216 * modules/csharpcomp (Depends-on): Update.
8217 * lib/csharpcomp.c: Update.
8218 * modules/csharpexec (Depends-on): Update.
8219 * lib/csharpexec.c: Update.
8220 * modules/javacomp (Depends-on): Update.
8221 * lib/javacomp.c: Update.
8222 * modules/javaexec (Depends-on): Update.
8223 * lib/javaexec.c: Update.
8224 * modules/mbscasestr (Depends-on): Update.
8225 * lib/mbscasestr.c: Update.
8226 * modules/mbsstr (Depends-on): Update.
8227 * lib/mbsstr.c: Update.
8228 * modules/setenv (Depends-on): Update.
8229 * lib/setenv.c: Update.
8230 * modules/strcasestr (Depends-on): Update.
8231 * lib/strcasestr.c: Update.
8232 * modules/striconveha (Depends-on): Update.
8233 * lib/striconveha.c: Update.
8234 * modules/relocatable-prog-wrapper (Files): Update.
8235 * lib/relocwrapper.c: Update.
8236 * build-aux/install-reloc: Update.
8237 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
8239 2007-06-08 Bruno Haible <bruno@clisp.org>
8242 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
8243 * lib/fpurge.c (fpurge): Likewise.
8244 * lib/freading.c (freading): Likewise.
8245 * lib/fseeko.c (rpl_fseeko): Likewise.
8246 * lib/fseterr.c (fseterr): Likewise.
8247 * lib/fwriting.c (fwriting): Likewise.
8248 * tests/test-fflush.c (main): Avoid a failure on uClibc.
8250 2007-06-08 Bruno Haible <bruno@clisp.org>
8252 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
8253 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
8254 * modules/gettext (Files): Add m4/intlmacosx.m4.
8256 2007-06-07 Bruno Haible <bruno@clisp.org>
8258 * modules/localename-tests: New file.
8259 * tests/test-localename.c: New file.
8261 New module 'localename'.
8262 * lib/localename.h: New file.
8263 * lib/localename.c: New file, from GNU gettext.
8264 * m4/localename.m4: New file.
8265 * modules/localename: New file.
8267 2007-06-07 Bruno Haible <bruno@clisp.org>
8269 Work around the lack of <wchar.h> on some builds of uClibc.
8270 * doc/headers/wchar.texi: Update.
8271 * lib/wchar_.h: Include <wchar.h> only if it exists.
8272 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
8273 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
8274 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
8276 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
8277 * modules/mbfile (Depends-on): Add wchar.
8278 * modules/mbiter (Depends-on): Likewise.
8279 * modules/mbuiter (Depends-on): Likewise.
8280 Reported by Simon Josefsson.
8282 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
8284 Work around problem reported by Steven M. Schweda in
8285 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
8286 Tru64 5.1B with the Compaq compiler environment installed declares
8287 an 'isblank' function but does not define it in the C library.
8288 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
8289 * lib/regex_internal.h (isblank): Likewise.
8290 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
8291 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8293 2007-06-05 Bruno Haible <bruno@clisp.org>
8295 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
8297 * modules/printf-safe: New file.
8298 * modules/fprintf-posix (Depends-on): Add printf-safe.
8299 * modules/printf-posix (Depends-on): Likewise.
8300 * modules/snprintf-posix (Depends-on): Likewise.
8301 * modules/sprintf-posix (Depends-on): Likewise.
8302 * modules/vasnprintf-posix (Depends-on): Likewise.
8303 * modules/vasprintf-posix (Depends-on): Likewise.
8304 * modules/vfprintf-posix (Depends-on): Likewise.
8305 * modules/vprintf-posix (Depends-on): Likewise.
8306 * modules/vsnprintf-posix (Depends-on): Likewise.
8307 * modules/vsprintf-posix (Depends-on): Likewise.
8308 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8309 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
8310 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
8311 "no" on i386, x86_64, ia64.
8312 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
8313 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8314 on i386, x86_64, ia64.
8315 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
8316 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8317 on i386, x86_64, ia64.
8318 * tests/test-vasnprintf-posix.c: Include float.h.
8319 (LDBL80_WORDS): New macro.
8320 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8321 on i386, x86_64, ia64.
8322 * tests/test-vasprintf-posix.c: Include float.h.
8323 (LDBL80_WORDS): New macro.
8324 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8325 on i386, x86_64, ia64.
8326 * tests/test-snprintf-posix.c: Include float.h.
8327 * tests/test-sprintf-posix.c: Likewise.
8328 * tests/test-vsnprintf-posix.c: Likewise.
8329 * tests/test-vsprintf-posix.c: Likewise.
8331 2007-06-05 Bruno Haible <bruno@clisp.org>
8333 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
8334 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
8335 non-IEEE numbers on i386, x86_64, ia64.
8336 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
8337 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
8338 * tests/test-isnanl.h: Include float.h.
8339 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
8341 2007-06-05 Bruno Haible <bruno@clisp.org>
8343 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
8344 also the %a / %A. Handle the %a / %A code before this extra handling.
8346 2007-06-05 Bruno Haible <bruno@clisp.org>
8348 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
8349 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
8351 2007-06-05 Bruno Haible <bruno@clisp.org>
8353 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
8354 typo in variable name.
8356 2007-06-05 Eric Blake <ebb9@byu.net>
8358 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
8359 Reported by Simon Josefsson.
8361 2007-06-04 Bruno Haible <bruno@clisp.org>
8363 Avoid test failures on some PowerPC platforms.
8364 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
8365 Define differently for PowerPC.
8366 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
8367 Reported by Gary V. Vaughan <gary@gnu.org>.
8369 2007-06-02 Bruno Haible <bruno@clisp.org>
8371 Fix test-stdint failure on FreeBSD/ia64.
8372 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
8373 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
8374 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
8375 * doc/headers/stdint.texi: Update.
8377 2007-06-01 Bruno Haible <bruno@clisp.org>
8379 * tests/test-binary-io.c (main): Pass a third argument to open().
8380 Reported by Gary V. Vaughan <gary@gnu.org>.
8382 2007-06-01 Bruno Haible <bruno@clisp.org>
8384 * doc/functions/frexpl.texi: Update for mingw.
8386 2007-06-01 Bruno Haible <bruno@clisp.org>
8388 * tests/test-lseek.c (main): Disable test of errno for invalid third
8390 * doc/functions/lseek.texi: Update.
8391 Reported by Gary V. Vaughan <gary@gnu.org>.
8393 2007-05-28 Bruno Haible <bruno@clisp.org>
8395 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
8397 2007-05-31 Eric Blake <ebb9@byu.net>
8399 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
8402 2007-05-30 Eric Blake <ebb9@byu.net>
8403 and Bruno Haible <bruno@clisp.org>
8405 Work around mingw test failures exposed by m4-1.4.9b.
8406 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8407 * tests/test-unistd.c: Disable uid_t and git_t tests for the
8410 2007-05-30 Bruno Haible <bruno@clisp.org>
8412 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8413 assuming that they are closed. Needed on HP-UX 11.
8415 2007-05-29 Bruno Haible <bruno@clisp.org>
8417 Fix a problem with #include_next.
8418 * lib/dirent_.h: Split the double-inclusion guard.
8419 * lib/fcntl_.h: Likewise.
8420 * lib/float_.h: Likewise.
8421 * lib/iconv_.h: Likewise.
8422 * lib/inttypes_.h: Likewise.
8423 * lib/locale_.h: Likewise.
8424 * lib/math_.h: Likewise.
8425 * lib/netinet_in_.h: Likewise.
8426 * lib/search_.h: Likewise.
8427 * lib/signal_.h: Likewise.
8428 * lib/stdint_.h: Likewise.
8429 * lib/stdio_.h: Likewise.
8430 * lib/stdlib_.h: Likewise.
8431 * lib/string_.h: Likewise.
8432 * lib/sys_select_.h: Likewise.
8433 * lib/sys_socket_.h: Likewise.
8434 * lib/sys_stat_.h: Likewise.
8435 * lib/sys_time_.h: Likewise.
8436 * lib/sysexits_.h: Likewise.
8437 * lib/time_.h: Likewise.
8438 * lib/unistd_.h: Likewise.
8439 * lib/wchar_.h: Likewise.
8440 * lib/wctype_.h: Likewise.
8442 2007-05-29 Bruno Haible <bruno@clisp.org>
8444 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8447 2007-05-29 Bruno Haible <bruno@clisp.org>
8449 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8451 Reported by Eric Blake.
8453 2007-05-29 Bruno Haible <bruno@clisp.org>
8455 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8458 2007-05-29 Eric Blake <ebb9@byu.net>
8459 Bruno Haible <bruno@clisp.org>
8461 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8464 2007-05-28 Eric Blake <ebb9@byu.net>
8466 * modules/closein-tests (test_closein_LDADD): Support test on
8467 cygwin with libtool.
8469 2007-05-28 Bruno Haible <bruno@clisp.org>
8471 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8472 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8473 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8474 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8475 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8476 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8477 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8478 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8479 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8481 2007-05-28 Eric Blake <ebb9@byu.net>
8483 Unconditionally include <config.h> in unit tests.
8484 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8485 * tests/test-allocsa.c, tests/test-arcfour.c,
8486 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8487 tests/test-array_list.c, tests/test-array_oset.c,
8488 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8489 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8490 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8491 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8492 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8493 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8494 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8495 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8496 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8497 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8498 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8499 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8500 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8501 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8502 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8503 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8504 test-md5.c, test-memmem.c, test-printf-posix.c,
8505 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8506 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8507 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8508 test-strcasestr.c, test-striconv.c, test-striconveh.c,
8509 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8510 test-vasnprintf-posix2.c, test-vasnprintf.c,
8511 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8512 test-vfprintf-posix.c, test-vprintf-posix.c,
8513 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8514 test-xvasprintf.c: Likewise.
8516 2007-05-28 Bruno Haible <bruno@clisp.org>
8518 * gnulib-tool (func_import): Remember the --with-tests command-line
8519 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8520 Reported by Eric Blake.
8522 2007-05-28 Bruno Haible <bruno@clisp.org>
8524 * modules/ftell-tests: New file.
8525 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8526 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8528 * lib/ftell.c: New file.
8529 * modules/ftell: New file.
8530 * m4/ftell.m4: New file.
8531 * doc/functions/ftell.texi: Update.
8532 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8534 * lib/stdio_.h (rpl_ftell): New declaration.
8535 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8538 2007-05-28 Eric Blake <ebb9@byu.net>
8540 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8542 2007-05-28 Bruno Haible <bruno@clisp.org>
8544 * modules/fseek-tests: New file.
8545 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8546 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8548 * lib/fseek.c: New file.
8549 * modules/fseek: New file.
8550 * m4/fseek.m4: New file.
8551 * doc/functions/fseek.texi: Update.
8552 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8554 * lib/stdio_.h (rpl_fseek): New declaration.
8555 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8558 2007-05-28 Bruno Haible <bruno@clisp.org>
8560 * lib/stdio_.h (fflush): More comments.
8562 2007-05-28 Bruno Haible <bruno@clisp.org>
8564 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8567 2007-05-28 Eric Blake <ebb9@byu.net>
8569 Improve lseek module.
8570 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8571 * lib/unistd_.h (lseek): Scale back link warning message.
8572 * tests/test-lseek.c: Beef up test.
8573 * tests/test-lseek.sh: Exercise more facets of lseek.
8574 Reported by Bruno Haible.
8576 2007-05-28 Bruno Haible <bruno@clisp.org>
8578 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
8581 2007-05-27 Bruno Haible <bruno@clisp.org>
8583 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
8585 2007-05-27 Bruno Haible <bruno@clisp.org>
8587 * modules/openmp: New file.
8588 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
8591 2007-05-26 Bruno Haible <bruno@clisp.org>
8593 * modules/chdir-long (Depends-on): Add fchdir.
8594 * modules/chdir-safer (Depends-on): Likewise.
8595 * modules/fts (Depends-on): Likewise.
8596 * modules/fts-lgpl (Depends-on): Likewise.
8597 * modules/openat (Depends-on): Likewise.
8598 * modules/savewd (Depends-on): Likewise.
8600 2007-05-24 Eric Blake <ebb9@byu.net>
8603 * modules/lseek: New module.
8604 * m4/lseek.m4: New file.
8605 * lib/lseek.c: New file.
8606 * modules/lseek-tests: New file.
8607 * tests/test-lseek.c: New file.
8608 * tests/test-lseek.sh: New file.
8609 * MODULES.html.sh: Document lseek module.
8610 * modules/fflush (Depends-on): Add lseek, fseeko.
8611 * modules/fseeko (Depends-on): Likewise.
8612 * modules/ftello (Depends-on): Likewise.
8613 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
8615 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
8617 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
8618 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
8619 * lib/ftello.c (rpl_ftello): Likewise.
8620 * tests/test-fseeko.c (main): Test this.
8621 * tests/test-fseeko.sh: Likewise.
8622 * tests/test-ftello.c (main): Likewise.
8623 * tests/test-ftello.sh: Likewise.
8624 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
8625 implies replacing fseek.
8626 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
8628 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
8629 * modules/unistd (Makefile.am): Likewise.
8630 * lib/unistd_.h (lseek): Declare a replacement.
8631 * doc/functions/lseek.texi (lseek): Document this fix.
8632 * doc/functions/fseek.texi (fseek): Likewise.
8633 * doc/functions/ftell.texi (ftell): Likewise.
8635 2007-05-24 Bruno Haible <bruno@clisp.org>
8637 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
8638 in the printed representation of a NaN.
8639 * tests/test-vasprintf-posix.c (test_function): Likewise.
8640 * tests/test-snprintf-posix.h (test_function): Likewise.
8641 * tests/test-sprintf-posix.h (test_function): Likewise.
8642 Reported by Eric Blake.
8644 2007-05-23 Eric Blake <ebb9@byu.net>
8646 Fix fseeko/ftello on cygwin 1.5.24.
8647 * doc/functions/fseeko.texi (fseeko): Document the fix.
8648 * doc/functions/ftello.texi (ftello): Document the fix.
8649 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
8650 * doc/functions/stdout.text (stdout): New file.
8651 * doc/functions/stderr.text (stderr): New file.
8652 * doc/gnulib.texi (Function Substitutes): Use new files.
8653 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
8655 * tests/test-ftello.c (main): Likewise for ftello.
8656 * tests/test-fseeko.sh: New file.
8657 * tests/test-ftello.sh: New file.
8658 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
8659 with seekable stdin.
8660 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
8661 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
8662 (gl_REPLACE_FSEEKO): New macro.
8663 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
8664 * modules/fseeko (Files): Distribute fseeko.c.
8665 * modules/ftello (Files): Distribute ftello.c.
8666 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
8668 * lib/ftello.c (rpl_ftello): New file.
8669 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
8671 (gl_STDIN_LARGE_OFFSET): New macro.
8672 * modules/stdio (Makefile.am): Perform the replacement.
8673 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
8675 2007-05-23 Bruno Haible <bruno@clisp.org>
8677 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
8678 GNULIB_POSIXCHECK is defined.
8680 2007-05-21 Bruno Haible <bruno@clisp.org>
8682 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
8683 Check also the output for NaN arguments. When cross-compiling, guess
8685 * lib/vasnprintf.c: Update comments.
8686 * tests/test-vasnprintf-posix.c (strisnan): New function.
8687 (test_function): Use it.
8688 * tests/test-vasprintf-posix.c (strisnan): New function.
8689 (test_function): Use it.
8690 * tests/test-snprintf-posix.h (strisnan): New function.
8691 (test_function): Use it.
8692 * tests/test-sprintf-posix.h (strisnan): New function.
8693 (test_function): Use it.
8694 Reported by Eric Blake.
8696 2007-05-20 Bruno Haible <bruno@clisp.org>
8698 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
8699 numbers that fails on BeOS.
8700 * doc/functions/frexpl.texi: Update.
8702 2007-05-20 Jim Meyering <jim@meyering.net>
8704 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
8705 forced upon us by glibc-2.6.
8707 2007-05-20 Bruno Haible <bruno@clisp.org>
8709 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
8710 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
8711 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
8712 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
8713 NEED_PRINTF_INFINITE.
8714 (is_infinitel): New function.
8715 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
8716 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
8717 gl_PREREQ_VASNPRINTF_INFINITE.
8718 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
8719 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8720 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
8721 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
8722 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
8723 gl_PREREQ_VASNPRINTF_INFINITE.
8724 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8725 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8726 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8727 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8728 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8729 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8730 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8731 * doc/functions/fprintf.texi: Update.
8732 * doc/functions/printf.texi: Update.
8733 * doc/functions/snprintf.texi: Update.
8734 * doc/functions/sprintf.texi: Update.
8735 * doc/functions/vfprintf.texi: Update.
8736 * doc/functions/vprintf.texi: Update.
8737 * doc/functions/vsnprintf.texi: Update.
8738 * doc/functions/vsprintf.texi: Update.
8740 2007-05-20 Bruno Haible <bruno@clisp.org>
8742 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
8743 was not found in libc.
8744 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8746 2007-05-20 Bruno Haible <bruno@clisp.org>
8748 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8749 printed as "-nan" instead of "nan".
8750 * tests/test-vasprintf-posix.c (test_function): Likewise.
8751 * tests/test-snprintf-posix.h (test_function): Likewise.
8752 * tests/test-sprintf-posix.h (test_function): Likewise.
8753 Needed for HP-UX 11.
8755 2007-05-20 Jim Meyering <jim@meyering.net>
8757 Fix buggy test for the fchownat-deref bug.
8758 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
8759 symlink required for the run-test. Without it, this test would
8760 always declare that fchownat doesn't work, and client code would
8761 unnecessarily use the replacement function with fixed libc.
8762 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
8763 Reported by Greg Schafer.
8765 2007-05-19 Bruno Haible <bruno@clisp.org>
8767 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
8768 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
8769 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
8770 Needed for IRIX 6.5 and Solaris 2.5.1.
8772 2007-05-19 Bruno Haible <bruno@clisp.org>
8774 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
8775 (test_function): Skip tests involving -0.0 on platforms where
8777 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
8778 (test_function): Skip tests involving -0.0 on platforms where
8780 * tests/test-snprintf-posix.h (have_minus_zero): New function.
8781 (test_function): Skip tests involving -0.0 on platforms where
8783 * tests/test-sprintf-posix.h (have_minus_zero): New function.
8784 (test_function): Skip tests involving -0.0 on platforms where
8786 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
8788 * tests/test-printf-posix.h (test_function): Likewise.
8789 * tests/test-printf-posix.output: Remove all -0.0 related results.
8790 Needed for IRIX 6.5.
8792 2007-05-19 Bruno Haible <bruno@clisp.org>
8794 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
8795 printed as "nan0x7fffffff" instead of "nan".
8796 * tests/test-vasprintf-posix.c (test_function): Likewise.
8797 * tests/test-snprintf-posix.h (test_function): Likewise.
8798 * tests/test-sprintf-posix.h (test_function): Likewise.
8799 * tests/test-fprintf-posix.h (NaN): Remove macro.
8800 (test_function): Remove all NaN related tests.
8801 * tests/test-printf-posix.h (NaN): Remove macro.
8802 (test_function): Remove all NaN related tests.
8803 * tests/test-printf-posix.output: Remove all NaN related results.
8804 Needed for IRIX 6.5.
8806 2007-05-19 Bruno Haible <bruno@clisp.org>
8808 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
8809 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8811 2007-05-19 Bruno Haible <bruno@clisp.org>
8813 * lib/float_.h: New file.
8814 * m4/float_h.m4: New file.
8815 * modules/float: New file.
8816 * modules/isnanl (Dependencies): Add float.
8817 * modules/isnanl-nolibm (Dependencies): Likewise.
8818 * modules/mathl (Dependencies): Likewise.
8819 * modules/printf-frexpl (Dependencies): Likewise.
8820 * modules/signbit (Dependencies): Likewise.
8821 * modules/vasnprintf (Dependencies): Likewise.
8822 * doc/headers/float.texi: Update.
8824 2007-05-19 Jim Meyering <jim@meyering.net>
8826 * lib/utimens.c (gl_futimens): Rename from futimens,
8827 now that glibc-2.6 declares futimens.
8828 * lib/utimens.h: Likewise.
8830 2007-05-19 Bruno Haible <bruno@clisp.org>
8832 Avoid test failures on mingw.
8833 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
8834 * tests/test-printf-posix.sh: Likewise.
8835 * tests/test-vfprintf-posix.sh: Likewise.
8836 * tests/test-vprintf-posix.sh: Likewise.
8838 2007-05-19 Bruno Haible <bruno@clisp.org>
8840 Fix *printf result for NaN, Inf, -0.0 on mingw.
8841 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
8842 * lib/vasnprintf.c: Include math.h and isnan.h.
8843 (is_infinite_or_zero): New function.
8844 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
8845 values in the %f, %F, %e, %E, %g, %G directives.
8846 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
8847 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8848 gl_PRINTF_INFINITE and test its result. Invoke
8849 gl_PREREQ_VASNPRINTF_INFINITE.
8850 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8851 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8852 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8853 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8854 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8855 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8856 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8857 * doc/functions/fprintf.texi: Update.
8858 * doc/functions/printf.texi: Update.
8859 * doc/functions/snprintf.texi: Update.
8860 * doc/functions/sprintf.texi: Update.
8861 * doc/functions/vfprintf.texi: Update.
8862 * doc/functions/vprintf.texi: Update.
8863 * doc/functions/vsnprintf.texi: Update.
8864 * doc/functions/vsprintf.texi: Update.
8866 2007-05-19 Bruno Haible <bruno@clisp.org>
8868 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
8869 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
8870 Instead of multiplying with 10^k, set extra_zeroes to k.
8871 (scale10_round_long_double): Remove function.
8873 2007-05-18 Bruno Haible <bruno@clisp.org>
8875 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
8876 introduced on 2007-05-06.
8878 2007-05-18 Bruno Haible <bruno@clisp.org>
8880 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
8882 * tests/test-vasprintf-posix.c (test_function): Likewise.
8883 * tests/test-snprintf-posix.h (test_function): Likewise.
8884 * tests/test-sprintf-posix.h (test_function): Likewise.
8886 2007-05-18 Bruno Haible <bruno@clisp.org>
8888 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
8889 (strmatch): New function.
8890 (test_function): Test the %f directive on numbers of various exponents.
8891 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
8892 (strmatch): New function.
8893 (test_function): Test the %f directive on numbers of various exponents.
8894 * tests/test-snprintf-posix.h (strmatch): New function.
8895 (test_function): Test the %f directive on numbers of various exponents.
8896 * tests/test-sprintf-posix.h (strmatch): New function.
8897 (test_function): Test the %f directive on numbers of various exponents.
8898 * tests/test-snprintf-posix.c (SIZEOF): New macro.
8899 * tests/test-sprintf-posix.c (SIZEOF): New macro.
8900 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
8901 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
8903 2007-05-18 Bruno Haible <bruno@clisp.org>
8905 Add support for 'long double' number output.
8906 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
8907 * lib/vasnprintf.c: Include math.h and float+.h.
8908 (mp_limb_t): New type.
8909 (GMP_LIMB_BITS): New macro.
8910 (mp_twolimb_t): New type.
8911 (GMP_TWOLIMB_BITS): New macro.
8913 (multiply, divide, convert_to_decimal, decode_long_double,
8914 scale10_round_long_double, scale10_round_decimal_long_double,
8915 floorlog10l): New functions.
8916 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
8917 for the %f, %F, %e, %E, %g, %G directives.
8918 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
8919 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
8920 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
8921 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
8922 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
8923 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
8924 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
8925 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
8926 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
8927 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
8928 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
8929 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
8930 * modules/snprintf-posix (Depends-on): Likewise.
8931 * modules/sprintf-posix (Depends-on): Likewise.
8932 * modules/vasnprintf-posix (Depends-on): Likewise.
8933 * modules/vasprintf-posix (Depends-on): Likewise.
8934 * modules/vfprintf-posix (Depends-on): Likewise.
8935 * modules/vsnprintf-posix (Depends-on): Likewise.
8936 * modules/vsprintf-posix (Depends-on): Likewise.
8937 * modules/vasnprintf (Files): Add lib/float+.h.
8938 * doc/functions/fprintf.texi: Update.
8939 * doc/functions/printf.texi: Update.
8940 * doc/functions/snprintf.texi: Update.
8941 * doc/functions/sprintf.texi: Update.
8942 * doc/functions/vfprintf.texi: Update.
8943 * doc/functions/vprintf.texi: Update.
8944 * doc/functions/vsnprintf.texi: Update.
8945 * doc/functions/vsprintf.texi: Update.
8947 2007-05-18 Bruno Haible <bruno@clisp.org>
8949 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
8951 2007-05-18 Bruno Haible <bruno@clisp.org>
8953 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
8954 for printing 64-bit integers. Needed for mingw.
8956 2007-05-18 Bruno Haible <bruno@clisp.org>
8958 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
8959 gl_FUNC_FREXPL_WORKS.
8960 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
8962 2007-05-18 Bruno Haible <bruno@clisp.org>
8964 * modules/frexpl-nolibm-tests: New file.
8966 * modules/frexpl-nolibm: New file.
8967 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
8969 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
8971 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
8972 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
8973 GCC 4.2, which otherwise issues a lot of warnings.
8974 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
8975 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
8977 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
8978 * modules/iconv_open (iconv.h): Likewise.
8979 * modules/locale (locale.h): Likewise.
8980 * modules/netinet_in (netinet/in.h): Likewise.
8981 * modules/sys_select (sys_select.h): Likewise.
8982 * modules/sys_socket (sys/socket.h): Likewise.
8983 * modules/sys_stat (sys/stat.h): Likewise.
8984 * modules/sysexits (sysexits.h): Likewise.
8985 * modules/unistd (unistd.h): Likewise.
8987 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8989 * modules/closein-tests (Makefile.am): Distribute
8992 2007-05-17 Bruno Haible <bruno@clisp.org>
8994 * tests/test-printf-posix.output: Renamed from
8995 tests/test-fprintf-posix.out.
8996 * modules/fprintf-posix-tests: Update.
8997 * modules/printf-posix-tests: Update.
8998 * modules/vfprintf-posix-tests: Update.
8999 * modules/vprintf-posix-tests: Update.
9000 * tests/test-fprintf-posix.sh: Update.
9001 * tests/test-printf-posix.sh: Update.
9002 * tests/test-vfprintf-posix.sh: Update.
9003 * tests/test-vprintf-posix.sh: Update.
9004 Reported by Ralf Wildenhues.
9006 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
9008 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
9009 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
9010 GCC 4.2, which otherwise issues a lot of warnings.
9011 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
9012 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
9013 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
9014 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
9015 it should no longer be needed.
9016 * lib/string_.h: Likewise.
9017 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
9018 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
9019 * modules/inttypes (inttypes.h): Likewise.
9020 * modules/math (math.h): Likewise.
9021 * modules/search (search.h): Likewise.
9022 * modules/signal (signal.h): Likewise.
9023 * modules/stdint (stdint.h): Likewise.
9024 * modules/stdio (stdio.h): Likewise.
9025 * modules/stdlib (stdlib.h): Likewise.
9026 * modules/string (string.h): Likewise.
9027 * modules/sys_time (sys/time.h): Likewise.
9028 * modules/time (time.h): Likewise.
9029 * modules/wchar (wchar.h): Likewise.
9030 * modules/wctype (wtype.h): Likewise.
9032 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
9034 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
9036 2007-05-13 Bruno Haible <bruno@clisp.org>
9038 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
9039 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9040 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
9041 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9042 (gl_PREREQ_STRTOK_R): Don't require it here.
9044 2007-05-13 Bruno Haible <bruno@clisp.org>
9046 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
9047 when used in C++ mode.
9049 2007-05-12 Bruno Haible <bruno@clisp.org>
9051 * lib/linebuffer.h: Tweak doc.
9052 * lib/linebuffer.c: Likewise.
9054 2007-05-12 James Youngman <jay@gnu.org>
9056 * lib/linebuffer.c (readlinebuffer_delim): New function,
9057 like readlinebuffer, but use a caller-specified delimiter.
9058 (readlinebuffer): Just call readlinebuffer_delim with '\n'
9060 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
9062 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
9064 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
9065 * modules/openat (Files): Remove openat-die.c.
9066 (Depends-on): Add openat-die.
9067 * modules/openat-die: New module.
9069 2007-05-06 Bruno Haible <bruno@clisp.org>
9071 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
9072 Update with info about Cygwin.
9073 * doc/functions/fprintf.texi: Update.
9074 * doc/functions/printf.texi: Update.
9075 * doc/functions/snprintf.texi: Update.
9076 * doc/functions/sprintf.texi: Update.
9077 * doc/functions/vfprintf.texi: Update.
9078 * doc/functions/vprintf.texi: Update.
9079 * doc/functions/vsnprintf.texi: Update.
9080 * doc/functions/vsprintf.texi: Update.
9081 Reported by Eric Blake.
9083 2007-05-06 Bruno Haible <bruno@clisp.org>
9085 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
9086 padding ourselves for the floating-point directives.
9087 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
9088 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
9089 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9090 gl_PRINTF_FLAG_ZERO and test its result. Invoke
9091 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
9092 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9093 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9094 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9095 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9096 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9097 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9098 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9099 * tests/test-snprintf-posix.h (test_function): Also check the width
9100 and some flags in the %f directive.
9101 * tests/test-sprintf-posix.h (test_function): Likewise.
9102 * tests/test-vasnprintf-posix.c (test_function): Likewise.
9103 * tests/test-vasprintf-posix.c (test_function): Likewise.
9104 * doc/functions/fprintf.texi: Update.
9105 * doc/functions/printf.texi: Update.
9106 * doc/functions/snprintf.texi: Update.
9107 * doc/functions/sprintf.texi: Update.
9108 * doc/functions/vfprintf.texi: Update.
9109 * doc/functions/vprintf.texi: Update.
9110 * doc/functions/vsnprintf.texi: Update.
9111 * doc/functions/vsprintf.texi: Update.
9113 2007-05-06 Bruno Haible <bruno@clisp.org>
9115 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
9116 pass the ' flag character to sprintf or snprintf.
9117 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
9118 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
9119 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9120 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
9121 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
9122 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9123 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9124 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9125 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9126 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9127 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9128 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9129 * tests/test-snprintf-posix.h (test_function): Also check the grouping
9131 * tests/test-sprintf-posix.h (test_function): Likewise.
9132 * tests/test-vasnprintf-posix.c (test_function): Likewise.
9133 * tests/test-vasprintf-posix.c (test_function): Likewise.
9134 * doc/functions/fprintf.texi: Update.
9135 * doc/functions/printf.texi: Update.
9136 * doc/functions/snprintf.texi: Update.
9137 * doc/functions/sprintf.texi: Update.
9138 * doc/functions/vfprintf.texi: Update.
9139 * doc/functions/vprintf.texi: Update.
9140 * doc/functions/vsnprintf.texi: Update.
9141 * doc/functions/vsprintf.texi: Update.
9143 2007-05-01 Bruno Haible <bruno@clisp.org>
9145 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
9147 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
9149 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
9150 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
9152 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
9154 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
9155 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
9156 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
9158 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
9160 * lib/argp-help.c (struct hol_entry): New member `ord'.
9161 (HOL_ENTRY_PTRCMP): Use ord for comparison
9162 (hol_sort): Initialize ord.
9164 2007-05-01 Bruno Haible <bruno@clisp.org>
9166 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
9167 Reported by Eric Blake.
9168 * doc/gnulib.texi (Function Substitutes): Update.
9170 2007-05-01 Bruno Haible <bruno@clisp.org>
9172 * doc/functions.texi: Remove file, now redundant through
9173 doc/functions/*.texi.
9175 2007-05-01 Bruno Haible <bruno@clisp.org>
9177 * modules/argp (Depends-on): Add sleep.
9179 2007-05-01 Bruno Haible <bruno@clisp.org>
9181 * modules/sleep-tests: New file.
9182 * tests/test-sleep.c: New file.
9184 * modules/sleep: New file.
9185 * lib/sleep.c: New file.
9186 * m4/sleep.m4: New file.
9187 * lib/unistd_.h (sleep): New declaration.
9188 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
9190 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
9191 * doc/functions/sleep.texi: Document the sleep module.
9193 2007-05-01 Bruno Haible <bruno@clisp.org>
9195 * lib/sigprocmask.h: Remove file.
9196 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
9197 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
9198 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
9199 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
9200 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9201 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
9202 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
9203 HAVE_SIGSET_T as a shell variable.
9204 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
9205 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
9206 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
9207 (Depends-on): Add signal. Remove verify.
9208 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
9209 (Include): Mention <signal.h> instead of sigprocmask.h.
9210 * NEWS: Mention the change.
9211 * lib/fatal-signal.c: Don't include sigprocmask.h.
9213 2007-05-01 Bruno Haible <bruno@clisp.org>
9215 * modules/signal: New file.
9216 * lib/signal_.h: New file.
9217 * m4/signal_h.m4: New file.
9219 2007-05-01 Bruno Haible <bruno@clisp.org>
9221 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
9222 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
9223 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
9224 HAVE_WCTYPE_CTMP_BUG into wctype.h.
9226 2007-05-01 Bruno Haible <bruno@clisp.org>
9228 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
9230 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
9231 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
9232 * modules/sys_stat (Makefile.am): Substitute their values into
9235 2007-05-01 Bruno Haible <bruno@clisp.org>
9237 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
9238 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
9239 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
9241 2007-05-01 Bruno Haible <bruno@clisp.org>
9243 * doc/header/assert.texi: Undo last change: don't mention the gnulib
9244 'assert' module here.
9246 2007-05-01 Bruno Haible <bruno@clisp.org>
9248 * doc/functions/*.texi: New files.
9249 * doc/functions/google-ranking.txt: New file.
9250 * doc/gnulib.texi (Function Substitutes): New chapter.
9251 (ctime, inet_ntoa): Remove sections.
9252 * doc/ctime.texi: Remove file.
9253 * doc/inet_ntoa.texi: Remove file.
9254 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
9256 (%.info): New rule, specifying a --reference-limit.
9258 2007-05-01 Bruno Haible <bruno@clisp.org>
9260 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
9262 2007-05-01 Bruno Haible <bruno@clisp.org>
9264 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
9265 the portability of 'mkdir' to mingw systems.
9267 2007-05-01 Bruno Haible <bruno@clisp.org>
9269 * doc/headers/google-ranking.txt: New file.
9271 2007-04-30 Eric Blake <ebb9@byu.net>
9273 Prefer fseeko to fseek.
9274 * modules/getpass (Depends-on): Add fseeko.
9275 * lib/getpass.c (getpass): Use fseeko, not fseek.
9277 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
9279 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
9280 assumes the sorting is stable, while most qsort implementations
9281 are not. Use argument addresses to ensure they never compare as
9284 * tests/test-argp-2.sh (usage-indent test): Fix output
9285 (func_compare): Restore diff options
9286 * tests/test-argp.c: Restore #include "progname.h"
9288 2007-04-29 Bruno Haible <bruno@clisp.org>
9290 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
9291 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9292 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
9293 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9294 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
9295 (configure.ac): Define CHECK_SNPRINTF_POSIX.
9296 (TESTS, check_PROGRAMS): Add test-snprintf.
9297 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
9298 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
9299 (TESTS, check_PROGRAMS): Add test-vsnprintf.
9300 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
9301 assertions that fail on HP-UX, OSF/1, or IRIX.
9302 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
9304 2007-04-29 Bruno Haible <bruno@clisp.org>
9306 * MODULES.html.sh (posix_functions): Remove 'contents'.
9308 2007-04-29 Karl Berry <karl@gnu.org>
9310 * config/srclist.txt (gendocs_template_min): new entry.
9312 2007-04-29 Bruno Haible <bruno@clisp.org>
9314 Work around fpurge bug on BSD systems.
9315 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
9316 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
9317 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
9318 fpurge to rpl_fpurge if the system already has this function.
9319 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
9320 the case where the system already has this function. Correct invariants
9322 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
9325 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
9327 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
9328 proposed by Sven Verdoolaege.
9330 * tests/test-argp.c: Fix option ordering. Test deeply clustered
9332 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
9333 (usage and help tests): Update
9335 2007-04-29 Bruno Haible <bruno@clisp.org>
9337 * tests/test-fflush.c (main): Use a file of size 17, not 10.
9338 Print more information in case of failure. Disable a test on BeOS.
9340 2007-04-29 Bruno Haible <bruno@clisp.org>
9342 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
9343 This helps debugging on systems on which no gdb is available.
9345 2007-04-29 Bruno Haible <bruno@clisp.org>
9347 * lib/freading.h: Improve comments.
9348 * lib/fwriting.h: Likewise.
9349 * tests/test-freading.c (main): Don't check freading immediately after
9350 repositioning. Needed for glibc.
9352 2007-04-29 Bruno Haible <bruno@clisp.org>
9354 * lib/freading.c (freading): Trivial simplification.
9356 2007-04-28 Bruno Haible <bruno@clisp.org>
9358 * tests/test-fwriting.c (main): Also test the interaction between
9359 fflush and fwriting.
9360 * modules/fwriting-tests (Depends-on): Add fflush.
9362 * tests/test-freading.c (main): Also test the interaction between
9363 fflush and freading.
9364 * modules/freading-tests (Depends-on): Add fflush.
9366 2007-04-28 Bruno Haible <bruno@clisp.org>
9368 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
9370 Suggested by Eric Blake.
9372 2007-04-28 Jim Meyering <jim@meyering.net>
9374 Avoid false-negative in gl_STDINT_H's C99 conformance test.
9375 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
9376 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
9378 2007-04-27 Eric Blake <ebb9@byu.net>
9380 * doc/headers/assert.texi (assert.h): Document assert module use.
9382 2007-04-27 Bruno Haible <bruno@clisp.org>
9384 * doc/headers/*.texi: New files.
9385 * doc/gnulib.texi (Header File Substitutes): New chapter.
9386 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
9388 (standards.info ,standards.html, standards.dvi): Update dependencies.
9389 (mostlyclean, clean): New targets.
9391 2007-04-27 Bruno Haible <bruno@clisp.org>
9393 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
9394 * modules/sysexits (Files, Makefile.am): Update.
9396 * lib/sys_socket_.h: Renamed from lib/socket_.h.
9397 * modules/sys_socket (Files, Makefile.am): Update.
9399 * lib/sys_stat_.h: Renamed from lib/stat_.h.
9400 * modules/sys_stat (Files, Makefile.am): Update.
9402 2007-04-27 Eric Blake <ebb9@byu.net>
9404 * lib/freading.h: Improve comments.
9405 * lib/fwriting.h: Likewise.
9406 * lib/fflush.c: Likewise.
9408 Fix closein for mingw.
9409 * modules/closein-tests: Add tests for closein.
9410 * tests/test-closein.c: New file.
9411 * tests/test-closein.sh: Likewise.
9412 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9413 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9415 2007-04-27 Bruno Haible <bruno@clisp.org>
9417 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9419 * lib/math_.h [__DECC]: Likewise.
9420 * lib/stdio_.h [__DECC]: Likewise.
9421 * lib/stdlib_.h [__DECC]: Likewise.
9422 * lib/string_.h [__DECC]: Likewise.
9423 * lib/time_.h [__DECC]: Likewise.
9424 * lib/wchar_.h [__DECC]: Likewise.
9425 * lib/wctype_.h [__DECC]: Likewise.
9427 2007-04-27 Bruno Haible <bruno@clisp.org>
9429 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9431 2007-04-27 Bruno Haible <bruno@clisp.org>
9433 * lib/fflush.c: Add comments.
9434 * modules/fpurge-tests (Depends-on): Add fflush.
9435 * modules/freadable-tests (Depends-on): Likewise.
9436 * modules/fwritable-tests (Depends-on): Likewise.
9438 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
9440 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9441 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
9442 Report by Bruno Haible <bruno@clisp.org>.
9444 2007-04-26 Eric Blake <ebb9@byu.net>
9446 Fix fflush on mingw.
9447 * modules/fflush (Depends-on): Add freading.
9448 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9451 2007-04-26 Eric Blake <ebb9@byu.net>
9452 and Bruno Haible <bruno@clisp.org>
9454 Implement freading and fwriting.
9455 * lib/freading.c: New file.
9456 * lib/freading.h: Likewise.
9457 * m4/freading.m4: Likewise.
9458 * modules/freading: Likewise.
9459 * modules/freading-tests: Likewise.
9460 * tests/test-freading.c: Likewise.
9461 * lib/fwriting.c: New file.
9462 * lib/fwriting.h: Likewise.
9463 * m4/fwriting.m4: Likewise.
9464 * modules/fwriting: Likewise.
9465 * modules/fwriting-tests: Likewise.
9466 * tests/test-fwriting.c: Likewise.
9467 * MODULES.html.sh (File stream based Input/Output): Mention them.
9469 2007-04-26 Bruno Haible <bruno@clisp.org>
9471 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9472 'long' when we assume it.
9473 Suggested by Eric Blake.
9475 2007-04-26 Bruno Haible <bruno@clisp.org>
9477 Ensure fseeko, ftello are declared on glibc systems.
9478 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9479 * modules/fseeko (configure.ac-early): Likewise.
9480 * modules/ftello (configure.ac-early): Likewise.
9481 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9482 AC_FUNC_FSEEKO for this.
9483 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9484 (gl_CHECK_FSEEKO): Remove macro.
9486 2007-04-26 Bruno Haible <bruno@clisp.org>
9488 * tests/test-fflush.c (main): Also check the ftell result after
9489 fflush and fseek/fseeko.
9490 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9491 file descriptor position cache in the stream.
9492 * lib/fseeko.c (rpl_fseeko): Likewise.
9494 2007-04-26 Bruno Haible <bruno@clisp.org>
9496 * modules/fflush-tests (Depends-on): Add fseeko.
9498 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
9499 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9501 * lib/argz_.h: ensure error_t definition is obtained in same
9502 mechanism system argz.h would have.
9503 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9504 argz facilities are known bad. Err on the side of caution if
9507 2007-04-25 Eric Blake <ebb9@byu.net>
9509 * lib/fpurge.c (includes): Use stdlib.h for free.
9510 * tests/test-fflush.c (main): Also test fflush-fseeko.
9512 2007-04-25 Bruno Haible <bruno@clisp.org>
9514 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9515 * lib/fseeko.c: New file.
9516 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9517 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9518 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9520 (gl_FUNC_FSEEKO): Invoke it.
9521 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9522 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9523 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9525 2007-04-25 Bruno Haible <bruno@clisp.org>
9527 * modules/fflush (Depends-on): Add ftello.
9529 2007-04-25 Bruno Haible <bruno@clisp.org>
9531 * modules/ftello-tests: New file.
9532 * tests/test-ftello.c: New file.
9534 * modules/ftello: New file.
9535 * m4/ftello.m4: New file.
9536 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9538 * lib/stdio_.h (ftello): New declaration.
9539 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9542 2007-04-25 Bruno Haible <bruno@clisp.org>
9544 * modules/fseeko-tests: New file.
9545 * tests/test-fseeko.c: New file.
9547 * modules/fseeko: New file.
9548 * m4/fseeko.m4: New file.
9549 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9551 * lib/stdio_.h (fseeko): New declaration.
9552 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9555 2007-04-25 Bruno Haible <bruno@clisp.org>
9557 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9559 2007-04-25 Bruno Haible <bruno@clisp.org>
9561 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9562 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9563 * tests/test-unistd.c: Likewise.
9564 * tests/test-fcntl.c: Likewise.
9566 2007-04-23 Eric Blake <ebb9@byu.net>
9568 * lib/fflush.c: Fix missing include.
9569 Reported by Bruno Haible.
9571 2007-04-23 Bruno Haible <bruno@clisp.org>
9573 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9574 Reported by Eric Blake.
9576 2007-04-23 Bruno Haible <bruno@clisp.org>
9578 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
9580 2007-04-23 Bruno Haible <bruno@clisp.org>
9582 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
9584 2007-04-23 Bruno Haible <bruno@clisp.org>
9586 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
9589 2007-04-16 Eric Blake <ebb9@byu.net>
9591 Make fflush rely on fpurge.
9592 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
9593 open coding all variants.
9594 * modules/fflush (Depends-on): Add fpurge and unistd.
9595 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
9596 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
9598 Fix --with-tests compilation on cygwin.
9599 * modules/argmatch-tests (Makefile.am): List gnulib library first
9601 * modules/argp-tests (Makefile.am): Likewise.
9602 * modules/array-list-tests (Makefile.am): Likewise.
9603 * modules/array-oset-tests (Makefile.am): Likewise.
9604 * modules/avltree-list-tests (Makefile.am): Likewise.
9605 * modules/avltree-oset-tests (Makefile.am): Likewise.
9606 * modules/avltreehash-list-tests (Makefile.am): Likewise.
9607 * modules/carray-list-tests (Makefile.am): Likewise.
9608 * modules/dirname-tests (Makefile.am): Likewise.
9609 * modules/frexp-tests (Makefile.am): Likewise.
9610 * modules/isnanl-tests (Makefile.am): Likewise.
9611 * modules/linked-list-tests (Makefile.am): Likewise.
9612 * modules/linkedhash-list-tests (Makefile.am): Likewise.
9613 * modules/lock-tests (Makefile.am): Likewise.
9614 * modules/rbtree-list-tests (Makefile.am): Likewise.
9615 * modules/rbtree-oset-tests (Makefile.am): Likewise.
9616 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
9617 * modules/tls-tests (Makefile.am): Likewise.
9618 * modules/tsearch-tests (Makefile.am): Likewise.
9619 * modules/xvasprintf-tests (Makefile.am): Likewise.
9621 Fix fpurge for cygwin.
9622 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
9624 * modules/fpurge-tests (Depends-on): Clean up trash.
9626 2007-04-16 Simon Josefsson <simon@josefsson.org>
9628 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
9630 * m4/autobuild.m4: Re-indent.
9632 2007-04-13 Bruno Haible <bruno@clisp.org>
9634 * modules/fpurge-tests: New file.
9635 * tests/test-fpurge.c: New file.
9637 * modules/fpurge: New file.
9638 * lib/fpurge.h: New file.
9639 * lib/fpurge.c: New file.
9640 * m4/fpurge.m4: New file.
9642 2007-04-13 Bruno Haible <bruno@clisp.org>
9644 * modules/fbufmode-tests: New file.
9645 * tests/test-fbufmode.c: New file.
9647 * modules/fbufmode: New file.
9648 * lib/fbufmode.h: New file.
9649 * lib/fbufmode.c: New file.
9650 * m4/fbufmode.m4: New file.
9652 2007-04-13 Bruno Haible <bruno@clisp.org>
9654 * modules/fwritable-tests: New file.
9655 * tests/test-fwritable.c: New file.
9657 * modules/fwritable: New file.
9658 * lib/fwritable.h: New file.
9659 * lib/fwritable.c: New file.
9660 * m4/fwritable.m4: New file.
9662 2007-04-13 Bruno Haible <bruno@clisp.org>
9664 * modules/freadable-tests: New file.
9665 * tests/test-freadable.c: New file.
9667 * modules/freadable: New file.
9668 * lib/freadable.h: New file.
9669 * lib/freadable.c: New file.
9670 * m4/freadable.m4: New file.
9672 2007-04-13 Bruno Haible <bruno@clisp.org>
9674 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
9677 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
9679 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
9680 gzip bootstrap.conf to avoid dragging in i18n machinery.
9681 (gnulib_tool_option): Use it.
9683 2007-04-13 Bruno Haible <bruno@clisp.org>
9685 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
9687 * tests/test-vasprintf-posix.c (test_function): Likewise.
9688 * tests/test-snprintf-posix.h (test_function): Likewise.
9689 * tests/test-sprintf-posix.h (test_function): Likewise.
9690 * tests/test-fprintf-posix.h (test_function): Likewise.
9691 * tests/test-printf-posix.h (test_function): Likewise.
9692 * tests/test-fprintf-posix.out: Likewise.
9694 2007-04-13 Bruno Haible <bruno@clisp.org>
9696 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
9697 * modules/tls-tests (configure.ac): Likewise.
9698 Reported by Arto C. Nirkko <anirkko@insel.ch>.
9700 2007-04-13 Bruno Haible <bruno@clisp.org>
9702 * lib/tls.c (glthread_tls_get): Fix return type.
9703 Patch by Arto C. Nirkko <anirkko@insel.ch>.
9705 2007-04-12 Eric Blake <ebb9@byu.net>
9707 * modules/gettime (Depends-on): Remove gettime.
9708 Reported by Dmitry V. Levin.
9710 2007-04-12 Bruno Haible <bruno@clisp.org>
9712 * modules/fflush (Include): Mention <stdio.h>.
9713 * modules/strtoimax (Include): Mention <inttypes.h>.
9714 * modules/strtoumax (Include): Likewise.
9716 2007-04-12 Eric Blake <ebb9@byu.net>
9718 * .cvsignore: New file.
9719 * .gitignore: Likewise.
9721 2007-04-12 Bruno Haible <bruno@clisp.org>
9723 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
9724 not before, since $(LDADD) often contains libgnu.a.
9725 * modules/striconv-tests (test_striconv_LDADD): Likewise.
9726 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
9727 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
9730 2007-04-12 Eric Blake <ebb9@byu.net>
9732 Work around glibc's failure to flush stdin on fclose.
9733 * lib/closein.c (close_stdin): Flush stdin before closing.
9735 Work around glibc's failure to reset seekable stdin on exit.
9736 * modules/closein: New module.
9737 * lib/closein.c: New file.
9738 * lib/closein.h: Likewise.
9739 * m4/closein.m4: Likewise.
9740 * MODULES.html.sh (File stream based Input/Output): Document it.
9742 2007-04-12 Simon Josefsson <simon@josefsson.org>
9744 * gnulib-tool: Rename generated 'autobuild' script to
9745 'do-autobuild' in --create-megatestdir output.
9747 * doc/gnulib.texi (Build robot for gnulib): Fix.
9749 2007-04-12 Simon Josefsson <simon@josefsson.org>
9751 * modules/sysexits (Depends-on): Add absolute-header.
9753 2007-04-12 Eric Blake <ebb9@byu.net>
9755 No need to preserve errno on success.
9756 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
9757 Reported by Bruno Haible.
9759 2007-04-12 Simon Josefsson <simon@josefsson.org>
9761 * MODULES.html.sh (Support for maintaining and releasing
9762 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
9764 2007-04-12 Simon Josefsson <simon@josefsson.org>
9766 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
9768 2007-04-12 Simon Josefsson <simon@josefsson.org>
9770 * modules/autobuild: New module.
9772 * m4/autobuild.m4: New file.
9774 2007-04-11 Bruno Haible <bruno@clisp.org>
9776 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
9777 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
9778 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
9779 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
9780 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9781 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9782 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9783 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9784 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9785 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9786 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
9787 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9788 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9789 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
9790 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9791 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9792 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
9793 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9794 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9795 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
9796 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9797 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9798 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
9799 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9800 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9801 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
9802 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
9803 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
9804 Reported by Eric Blake.
9806 2007-04-11 Bruno Haible <bruno@clisp.org>
9808 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
9810 2007-04-10 Bruno Haible <bruno@clisp.org>
9812 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
9813 for NaN and Infinity. Needed on FreeBSD 6.1.
9814 * tests/test-vasnprintf-posix.c (test_function): Undo last change
9815 regarding results for "%010a" of Infinity and NaN.
9816 * tests/test-vasprintf-posix.c (test_function): Likewise.
9817 * tests/test-snprintf-posix.h (test_function): Likewise.
9818 * tests/test-sprintf-posix.h (test_function): Likewise.
9819 * tests/test-fprintf-posix.h (test_function): Likewise.
9820 * tests/test-printf-posix.h (test_function): Likewise.
9821 * tests/test-fprintf-posix.out: Likewise.
9823 2007-04-10 Bruno Haible <bruno@clisp.org>
9825 * modules/locale-tests: New file.
9826 * tests/test-locale.c: New file.
9828 * modules/locale: New file.
9829 * lib/locale_.h: New file.
9830 * m4/locale_h.m4: New file.
9832 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
9833 Bruno Haible <bruno@clisp.org>
9835 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
9836 be determined, test for availability of the copysignf, copysign,
9837 copysignl functions.
9838 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
9839 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
9840 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
9842 2007-04-09 Eric Blake <ebb9@byu.net>
9844 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
9845 * modules/stdio (Makefile.am): Support fflush.
9846 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9847 * modules/fflush: New file.
9848 * lib/fflush.c: Likewise.
9849 * m4/fflush.m4: Likewise.
9850 * modules/fflush-tests: New test.
9851 * tests/test-fflush.c: Likewise.
9852 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
9854 2007-04-06 Bruno Haible <bruno@clisp.org>
9856 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
9857 (VASNPRINTF): Use signbit for faster determination whether to print a
9859 * modules/vasnprintf (Files): Remove lib/float+.h.
9860 * modules/fprintf-posix (Depends-on): Add signbit.
9861 * modules/snprintf-posix (Depends-on): Likewise.
9862 * modules/sprintf-posix (Depends-on): Likewise.
9863 * modules/vasnprintf-posix (Depends-on): Likewise.
9864 * modules/vasprintf-posix (Depends-on): Likewise.
9865 * modules/vfprintf-posix (Depends-on): Likewise.
9866 * modules/vsnprintf-posix (Depends-on): Likewise.
9867 * modules/vsprintf-posix (Depends-on): Likewise.
9869 2007-04-06 Bruno Haible <bruno@clisp.org>
9871 * tests/test-frexp.c (main): Test also the sign bit of zero results.
9872 * tests/test-frexpl.c (main): Likewise.
9873 * tests/test-ldexpl.c (main): Likewise.
9874 * modules/frexp-tests (Depends-on): Add signbit.
9875 * modules/frexpl-tests (Depdends-on): Likewise.
9876 * modules/ldexpl-tests (Depdends-on): Likewise.
9878 2007-04-06 Bruno Haible <bruno@clisp.org>
9880 * modules/signbit-tests: New file.
9881 * tests/test-signbit.c: New file.
9883 * modules/signbit: New file.
9884 * lib/signbitf.c: New file.
9885 * lib/signbitd.c: New file.
9886 * lib/signbitl.c: New file.
9887 * m4/signbit.m4: New file.
9888 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
9889 (signbit): New macro.
9890 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
9892 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
9893 REPLACE_FREXPL into math.h.
9895 2007-04-06 Bruno Haible <bruno@clisp.org>
9897 * modules/isnanf-nolibm-tests: New file.
9898 * tests/test-isnanf.c: New file.
9900 * modules/isnanf-nolibm: New file.
9901 * lib/isnanf.h: New file.
9902 * lib/isnanf.c: New file.
9903 * lib/isnan.c: Consider the USE_FLOAT macro.
9904 * m4/isnanf.m4: New file.
9906 2007-04-06 Bruno Haible <bruno@clisp.org>
9908 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
9909 (Link): New section.
9911 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
9913 2007-04-06 Bruno Haible <bruno@clisp.org>
9915 Assume the 'long double' type.
9916 * m4/longdouble.m4: Remove file.
9917 * config/srclist.txt: Don't mention longdouble.m4.
9918 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
9919 * lib/float+.h: Likewise.
9920 * lib/frexp.c: Likewise.
9921 * lib/printf-args.h: Likewise.
9922 * lib/printf-args.c: Likewise.
9923 * lib/printf-frexp.c: Likewise.
9924 * lib/printf-parse.c: Likewise.
9925 * lib/vasnprintf.c: Likewise.
9926 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
9927 * m4/intl.m4: Likewise.
9928 * m4/isnanl.m4: Likewise.
9929 * m4/printf.m4: Likewise.
9930 * m4/printf-frexpl.m4: Likewise.
9931 * m4/vasnprintf.m4: Likewise.
9932 * modules/allocsa (Files): Remove m4/longdouble.m4.
9933 * modules/gettext (Files): Likewise.
9934 * modules/relocatable-prog-wrapper (Files): Likewise.
9935 * modules/vasnprintf (Files): Likewise.
9936 * modules/isnanl (Files): Likewise.
9937 (Include): Simplify.
9938 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
9939 (Include): Simplify.
9940 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
9941 (Include): Simplify.
9942 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
9943 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9944 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
9945 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9946 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9947 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9948 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
9949 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9950 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
9951 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9952 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
9953 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
9954 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
9955 * tests/test-isnanl.c: Likewise.
9956 * tests/test-snprintf-posix.h: Likewise.
9957 * tests/test-sprintf-posix.h: Likewise.
9958 * tests/test-vasnprintf-posix.c: Likewise.
9959 * tests/test-vasnprintf-posix2.c: Likewise.
9960 * tests/test-vasprintf-posix.c: Likewise.
9962 2007-04-06 Bruno Haible <bruno@clisp.org>
9964 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
9965 * lib/math_.h [__DECC]: Include the overridden include file through
9966 #include_next, outside the double-inclusion guard.
9967 * lib/stdio_.h [__DECC]: Likewise.
9968 * lib/stdlib_.h [__DECC]: Likewise.
9969 * lib/string_.h [__DECC]: Likewise.
9970 * lib/time_.h [__DECC]: Likewise.
9971 * lib/wchar_.h [__DECC]: Likewise.
9972 * lib/wctype_.h [__DECC]: Likewise.
9973 * lib/inttypes_.h [__DECC]: Likewise.
9974 Reported by Albert Chin <china@thewrittenword.com> in
9975 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
9977 2007-04-04 Eric Blake <ebb9@byu.net>
9979 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
9982 2007-04-04 Bruno Haible <bruno@clisp.org>
9984 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
9985 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
9987 2007-04-04 Bruno Haible <bruno@clisp.org>
9989 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
9990 results for "%010a" of Infinity and NaN.
9991 * tests/test-vasprintf-posix.c (test_function): Likewise.
9992 * tests/test-snprintf-posix.h (test_function): Likewise.
9993 * tests/test-sprintf-posix.h (test_function): Likewise.
9994 * tests/test-fprintf-posix.h (test_function): Remove these tests.
9995 * tests/test-printf-posix.h (test_function): Likewise.
9996 * tests/test-fprintf-posix.out: Update.
9997 Needed for FreeBSD 6.1.
9999 2007-04-04 Bruno Haible <bruno@clisp.org>
10001 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
10002 directly used by the gnulib modules nor by gnulib-tool.
10004 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
10006 * DEPENDENCIES: Give overall description of version dependency
10007 desirability. Use more-typical names for apps.
10008 Add shell, coreutils, diffutils, grep, tar, gzip.
10010 2007-04-04 Simon Josefsson <simon@josefsson.org>
10012 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
10014 2007-04-04 Karl Berry <karl@gnu.org>
10016 * MODULES.html.sh (func_module): missing '.
10018 2007-04-03 Bruno Haible <bruno@clisp.org>
10020 * modules/argmatch-tests (Makefile.am): New variable
10021 test_argmatch_LDADD.
10022 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
10023 * modules/array-list-tests (Makefile.am): New variable
10024 test_array_list_LDADD.
10025 * modules/array-oset-tests (Makefile.am): New variable
10026 test_array_oset_LDADD.
10027 * modules/avltree-list-tests (Makefile.am): New variable
10028 test_avltree_list_LDADD.
10029 * modules/avltree-oset-tests (Makefile.am): New variable
10030 test_avltree_oset_LDADD.
10031 * modules/avltreehash-list-tests (Makefile.am): New variable
10032 test_avltreehash_list_LDADD.
10033 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
10034 test_canonicalize_lgpl_LDADD.
10035 * modules/carray-list-tests (Makefile.am): New variable
10036 test_carray_list_LDADD.
10037 * modules/dirname-tests (Makefile.am): New variable
10038 test_dirname_LDADD.
10039 * modules/linked-list-tests (Makefile.am): New variable
10040 test_linked_list_LDADD.
10041 * modules/linkedhash-list-tests (Makefile.am): New variable
10042 test_linkedhash_list_LDADD.
10043 * modules/rbtree-list-tests (Makefile.am): New variable
10044 test_rbtree_list_LDADD.
10045 * modules/rbtree-oset-tests (Makefile.am): New variable
10046 test_rbtree_oset_LDADD.
10047 * modules/rbtreehash-list-tests (Makefile.am): New variable
10048 test_rbtreehash_list_LDADD.
10049 * modules/xvasprintf-tests (Makefile.am): New variable
10050 test_xvasprintf_LDADD.
10051 Reported by Eric Blake.
10053 2007-04-03 Eric Blake <ebb9@byu.net>
10055 * DEPENDENCIES: Weaken m4 requirements.
10057 2007-04-03 Bruno Haible <bruno@clisp.org>
10059 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
10060 * modules/isnanl-tests (configure.ac): Likewise.
10062 2007-04-03 Ben Pfaff <blp@gnu.org>
10064 * modules/iconv_open: Add $(srcdir)/ to source directory
10065 references in Makefile fragments that call gperf, to fix VPATH
10068 2007-04-03 Bruno Haible <bruno@clisp.org>
10070 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
10071 * lib/ldexpl.c: Undo last change.
10073 2007-04-03 Bruno Haible <bruno@clisp.org>
10075 * modules/printf-frexpl (Depends-on): Undo last change.
10076 (Files): Add m4/ldexpl.m4.
10078 2007-04-03 Bruno Haible <bruno@clisp.org>
10080 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
10081 * modules/isnanl (Link): New section.
10083 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
10084 * modules/frexp (Link): New section.
10086 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
10087 * modules/frexpl (Link): New section.
10089 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
10090 * modules/ldexpl (Link): New section.
10092 2007-04-03 Bruno Haible <bruno@clisp.org>
10094 * modules/TEMPLATE-EXTENDED: New file.
10095 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
10097 2007-04-03 Bruno Haible <bruno@clisp.org>
10099 * DEPENDENCIES: New file.
10100 Suggested by Simon Josefsson.
10102 2007-04-03 Bruno Haible <bruno@clisp.org>
10104 * doc/gnulib.texi: Escape @.
10106 2007-04-03 James Youngman <jay@gnu.org>
10107 and Paul Eggert <eggert@cs.ucla.edu>
10109 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
10110 birthtime on all systems that have birthtime, not just those which
10111 use st_birthtimensec rather than st_birthtim. Putting zero in
10112 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
10113 that the birth time is not available for files on an NFS mount.
10115 2007-04-03 Simon Josefsson <simon@josefsson.org>
10117 * modules/memxor: Move back from crypto/, suggested by Bruno.
10118 * modules/crypto/hmac-sha1: Fix memxor dependency.
10120 * modules/crypto/gc: Moved from ../.
10122 2007-04-02 Eric Blake <ebb9@byu.net>
10124 * lib/ldexpl.c (includes): Avoid libm.
10126 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
10128 2007-04-02 Bruno Haible <bruno@clisp.org>
10130 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
10133 2007-04-02 Bruno Haible <bruno@clisp.org>
10135 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
10136 x86 or x86_64 platforms running MacOS X.
10137 Reported by Ryan Schmidt <@ryandesign.com>.
10139 2007-04-02 Bruno Haible <bruno@clisp.org>
10141 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
10144 2007-04-01 Simon Josefsson <simon@josefsson.org>
10146 * modules/crypto/arcfour: Moved from ../.
10147 * modules/crypto/arcfour-tests: Moved from ../.
10148 * modules/crypto/arctwo: Moved from ../.
10149 * modules/crypto/arctwo-tests: Moved from ../.
10150 * modules/crypto/des: Moved from ../.
10151 * modules/crypto/des-tests: Moved from ../.
10152 * modules/crypto/gc-arcfour: Moved from ../.
10153 * modules/crypto/gc-arcfour-tests: Moved from ../.
10154 * modules/crypto/gc-arctwo: Moved from ../.
10155 * modules/crypto/gc-arctwo-tests: Moved from ../.
10156 * modules/crypto/gc-des: Moved from ../.
10157 * modules/crypto/gc-des-tests: Moved from ../.
10158 * modules/crypto/gc-hmac-md5: Moved from ../.
10159 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
10160 * modules/crypto/gc-hmac-sha1: Moved from ../.
10161 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
10162 * modules/crypto/gc-md2: Moved from ../.
10163 * modules/crypto/gc-md2-tests: Moved from ../.
10164 * modules/crypto/gc-md4: Moved from ../.
10165 * modules/crypto/gc-md4-tests: Moved from ../.
10166 * modules/crypto/gc-md5: Moved from ../.
10167 * modules/crypto/gc-md5-tests: Moved from ../.
10168 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
10169 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
10170 * modules/crypto/gc-random: Moved from ../.
10171 * modules/crypto/gc-rijndael: Moved from ../.
10172 * modules/crypto/gc-rijndael-tests: Moved from ../.
10173 * modules/crypto/gc-sha1: Moved from ../.
10174 * modules/crypto/gc-sha1-tests: Moved from ../.
10175 * modules/crypto/gc-tests: Moved from ../.
10176 * modules/crypto/hmac-md5: Moved from ../.
10177 * modules/crypto/hmac-md5-tests: Moved from ../.
10178 * modules/crypto/hmac-sha1: Moved from ../.
10179 * modules/crypto/hmac-sha1-tests: Moved from ../.
10180 * modules/crypto/md2: Moved from ../.
10181 * modules/crypto/md2-tests: Moved from ../.
10182 * modules/crypto/md4: Moved from ../.
10183 * modules/crypto/md4-tests: Moved from ../.
10184 * modules/crypto/md5: Moved from ../.
10185 * modules/crypto/md5-tests: Moved from ../.
10186 * modules/crypto/memxor: Moved from ../.
10187 * modules/crypto/rijndael: Moved from ../.
10188 * modules/crypto/rijndael-tests: Moved from ../.
10189 * modules/crypto/sha1: Moved from ../.
10191 2007-03-30 James Youngman <jay@gnu.org>
10193 * tests/test-stat-time.c (prepare_test): use chmod() rather than
10194 rename() to change the ctime of a file (because ctime is unaffected
10195 by rename on jfs2 on AIX 5.1).
10196 (main): Start by doing cleanup, in case a previous run failed leaving
10199 2007-03-31 Bruno Haible <bruno@clisp.org>
10201 Support old proprietary implementations of iconv.
10202 * modules/iconv_open: New file.
10203 * lib/iconv_.h: New file.
10204 * m4/iconv_h.m4: New file.
10205 * lib/iconv_open.c: New file.
10206 * lib/iconv_open-aix.gperf: New file.
10207 * lib/iconv_open-hpux.gperf: New file.
10208 * lib/iconv_open-irix.gperf: New file.
10209 * lib/iconv_open-osf.gperf: New file.
10210 * m4/iconv_open.m4: New file.
10211 * modules/linebreak (Depends-on): Add iconv_open.
10212 * modules/striconv (Depends-on): Likewise.
10213 * modules/striconveh (Depends-on): Likewise.
10214 * modules/unicodeio (Depends-on): Likewise.
10215 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
10217 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
10218 conversion if cd is (iconv_t)(-1).
10219 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
10222 2007-03-31 Bruno Haible <bruno@clisp.org>
10224 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10225 work on Solaris either. Protect also second use of "autodetect_jp".
10227 2007-03-31 Bruno Haible <bruno@clisp.org>
10229 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
10230 the function is not present.
10232 2007-03-31 Bruno Haible <bruno@clisp.org>
10234 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
10235 the function is not present.
10237 2007-03-31 Bruno Haible <bruno@clisp.org>
10239 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
10240 a bug in HP-UX iconv_open().
10242 2007-03-31 Bruno Haible <bruno@clisp.org>
10244 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
10245 (Mathematics <math.h>): New section, add fpieee.
10246 (Input/output <stdio.h>): Add fseterr.
10247 (Mathematics <math.h>): New section, add printf-frexp.
10248 (Container data structures): Add sublist.
10249 (Core language properties): Add fpucw, inline.
10250 (Functions for greatest-width integer types <inttypes.h>): Add
10251 imaxabs, imaxdiv, inttypes.
10252 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
10253 isnanl-nolibm, ldexp.
10254 (Mathematics <math.h>): New section, add printf-frexpl.
10255 (Support for systems lacking POSIX:2001): Add fprintf-posix,
10256 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
10257 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
10258 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
10259 (Unicode string functions): Add unistr/u*-mbtoucr.
10260 (Java): Add javacomp-script, javaexec-script.
10261 (C#): Add csharpcomp-script, csharpexec-script.
10262 (Support for building libraries and executables): Add havelib,
10264 (Support for maintaining and releasing projects): Renamed from
10265 'Support for maintaining and release projects'. Add announce-gen.
10267 2007-03-31 Bruno Haible <bruno@clisp.org>
10269 * README: Talk primarily about git.
10270 (git and CVS): Renamed from CVS.
10271 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
10272 gnulib is available through git.
10273 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
10275 2007-03-30 Bruno Haible <bruno@clisp.org>
10277 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
10278 * lib/poll_.h: Likewise.
10279 * lib/stat_.h: Likewise.
10280 * lib/sys_time_.h: Likewise.
10281 * lib/sysexit_.h: Likewise.
10282 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
10283 * lib/stdbool_.h: Likewise.
10284 * lib/byteswap_.h: Add double-inclusion guard.
10286 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
10288 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
10290 2007-03-30 Karl Berry <karl@gnu.org>
10292 * config/srclist-update: double space after USA in the license
10293 substitution, since that's how it's usually (?) written.
10295 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
10297 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
10298 reported by Bruno Haible.
10300 2007-03-29 Bruno Haible <bruno@clisp.org>
10302 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
10303 a bug in AIX iconv().
10305 2007-03-29 Bruno Haible <bruno@clisp.org>
10307 * modules/ldexpl-tests: New file.
10308 * tests/test-ldexpl.c: New file.
10310 2007-03-29 Bruno Haible <bruno@clisp.org>
10312 * lib/ldexpl.c: Include fpucw.h.
10313 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
10315 * modules/ldexpl (Depends-on): Add fpucw.
10317 2007-03-29 Bruno Haible <bruno@clisp.org>
10319 * modules/ldexpl: New file.
10320 * m4/ldexpl.m4: New file.
10321 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
10323 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
10325 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
10327 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10328 gl_FUNC_LDEXPL_WORKS.
10329 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
10330 * modules/mathl (Files): Remove lib/ldexpl.c.
10331 (Depends-on): Add ldexpl.
10333 2007-03-29 Bruno Haible <bruno@clisp.org>
10335 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
10337 2007-03-29 Bruno Haible <bruno@clisp.org>
10339 * tests/test-striconveh.c (main): Don't assume that a direct conversion
10340 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
10341 and possibly also HP-UX.
10342 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10343 work on AIX, IRIX, HP-UX, OSF/1.
10344 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10345 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10346 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10347 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10348 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10349 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10351 2007-03-29 Bruno Haible <bruno@clisp.org>
10353 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
10355 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
10357 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
10358 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
10360 2007-03-29 Eric Blake <ebb9@byu.net>
10362 * lib/acl-internal.h: Remove redundant include.
10363 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
10364 Cygwin when a file is locked.
10366 2007-03-29 Bruno Haible <bruno@clisp.org>
10368 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
10370 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
10372 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
10374 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
10375 try to remove a parent directory if the child couldn't be removed
10376 (except for the first rmdir, which could fail because the child
10377 doesn't exist). Problem reported by Jeff Blaine in
10378 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
10380 2007-03-28 Bruno Haible <bruno@clisp.org>
10382 * lib/striconveh.c (utf8conv_carefully): New function.
10383 (mem_cd_iconveh_internal): Invoke it.
10385 2007-03-28 Bruno Haible <bruno@clisp.org>
10387 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
10388 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
10390 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
10391 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
10394 2007-03-28 Bruno Haible <bruno@clisp.org>
10396 * modules/unistr/u8-mbtoucr: New file.
10397 * lib/unistr/u8-mbtoucr.c: New file.
10398 * modules/unistr/u16-mbtoucr: New file.
10399 * lib/unistr/u16-mbtoucr.c: New file.
10400 * modules/unistr/u16-mbtoucr: New file.
10401 * lib/unistr/u16-mbtoucr.c: New file.
10402 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
10404 2007-03-27 Simon Josefsson <simon@josefsson.org>
10405 Bruno Haible <bruno@clisp.org>
10407 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10408 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
10409 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10411 * m4/stdio_h.m4: Add stubs for vasprintf too.
10413 * modules/stdio: Support vasprintf in sed command.
10415 * modules/vasprintf: Depend on stdio for prototypes. Remove
10416 vasprintf.h. Add stdio module indicator.
10418 * lib/stdio_.h: Declare asprintf and vasprintf, based on
10421 * lib/vasprintf.h: File removed.
10423 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10424 * lib/vasprintf.c: Ditto.
10425 * lib/xvasprintf.c: Ditto.
10426 * tests/test-vasprintf-posix.c: Ditto.
10427 * tests/test-vasprintf.c: Ditto.
10429 2007-03-27 Bruno Haible <bruno@clisp.org>
10431 Make vasnprintf multithread-safe.
10432 * lib/vasnprintf.c (decimal_point_char): New function.
10433 (VASNPRINTF): Use it.
10434 Suggested by Simon Josefsson.
10436 2007-03-27 Eric Blake <ebb9@byu.net>
10438 Support sub-second birthtime on cygwin.
10439 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10440 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10441 (get_stat_birthtime): Also work with st_birthtim.
10443 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
10445 * lib/stat-time.h (USE_BIRTHTIME): Remove.
10446 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10447 (get_stat_birthtime_ns): Do not try to use "spare" fields.
10448 (get_stat_birthtime_ns): Simplify compile-time tests.
10449 (get_stat_birthtime): Change the API to look like
10450 get_stat_mtime etc., except return a negative tv_nsec on error.
10451 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10452 Don't check for "spare" fields.
10453 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10454 or for struct stat.st_birthtime, as these tests aren't used.
10455 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10457 2007-03-27 Bruno Haible <bruno@clisp.org>
10459 * lib/stat-time.h: Include <sys/stat.h>.
10461 2007-03-27 James Youngman <jay@gnu.org>
10463 * lib/stat-time.h (get_stat_birthtime): New function for
10464 retrieving st_birthtime as provided by UFS2 (hence *BSD).
10465 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10467 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10468 * modules/stat-time-test: New file.
10469 * tests/test-stat-time.c: New test, devised by Bruno Haible.
10471 2007-03-26 Bruno Haible <bruno@clisp.org>
10473 Better support of signalling NaNs.
10474 * lib/atanl.c: Include isnanl.h.
10475 (atanl): Perform test for NaN at the beginning of the function and
10476 through a call to isnanl.
10477 * lib/cosl.c: Include isnanl.h.
10478 (cosl): Perform test for NaN at the beginning of the function and
10479 through a call to isnanl.
10480 * lib/ldexpl.c: Include isnanl.h.
10481 (ldexpl): Perform test for NaN through a call to isnanl.
10482 * lib/logl.c: Include isnanl.h.
10483 (logl): Perform test for NaN at the beginning of the function and
10484 through a call to isnanl.
10485 * lib/sinl.c: Include isnanl.h.
10486 (sinl): Perform test for NaN at the beginning of the function and
10487 through a call to isnanl.
10488 * lib/sqrtl.c: Include isnanl.h.
10489 (sqrtl): Perform test for NaN at the beginning of the function and
10490 through a call to isnanl.
10491 * lib/tanl.c: Include isnanl.h.
10492 (tanl): Perform test for NaN at the beginning of the function and
10493 through a call to isnanl.
10494 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10495 * modules/mathl (Depends-on): Add isnanl.
10497 2007-03-26 Eric Blake <ebb9@byu.net>
10499 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10500 regression in logic sense of previous patch.
10502 2007-03-26 Bruno Haible <bruno@clisp.org>
10504 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10505 unportable shell command "if ! ...".
10506 Reported by Ralf Wildenhues.
10508 2007-03-25 Bruno Haible <bruno@clisp.org>
10510 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10511 <sysexits.h> file, and only add EX_CONFIG.
10512 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10513 absolute file name and whether it is sufficient. Substitute also
10514 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10515 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10516 ABSOLUTE_SYSEXITS_H into sysexits.h.
10518 2007-03-25 Bruno Haible <bruno@clisp.org>
10520 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10523 2007-03-25 Bruno Haible <bruno@clisp.org>
10525 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10526 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10528 2007-03-25 Bruno Haible <bruno@clisp.org>
10530 * lib/vasnprintf.c: Include langinfo.h.
10531 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10533 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10534 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10535 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10536 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10537 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10538 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10539 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10540 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10541 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10542 Reported by Simon Josefsson.
10544 2007-03-25 Bruno Haible <bruno@clisp.org>
10546 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10547 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10548 * modules/vasnprintf (Depends-on): Add stdint.
10550 2007-03-25 Bruno Haible <bruno@clisp.org>
10552 * modules/fpieee: New file.
10553 * m4/fpieee.m4: New file.
10554 * modules/isnan-nolibm (Depends-on): Add fpieee.
10555 * modules/isnanl-nolibm (Depends-on): Add fpieee.
10556 * modules/isnanl (Depends-on): Add fpieee.
10558 2007-03-25 Bruno Haible <bruno@clisp.org>
10560 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10562 2007-03-25 Bruno Haible <bruno@clisp.org>
10564 Avoid test failures on IRIX 6.5.
10565 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10567 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10571 2007-03-25 Bruno Haible <bruno@clisp.org>
10573 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10574 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10575 exists but doesn't work.
10576 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10577 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10578 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
10579 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
10581 2007-03-25 Bruno Haible <bruno@clisp.org>
10583 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
10584 returns inf. Needed on IRIX 6.5.
10586 2007-03-25 Bruno Haible <bruno@clisp.org>
10588 * tests/test-frexpl.c: Include isnanl-nolibm.h.
10589 (main): Use isnanl instead of x != x idiom.
10590 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
10592 * tests/test-frexp.c: Include isnan.h.
10593 (main): Use isnan instead of x != x idiom.
10594 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
10596 2007-03-25 Bruno Haible <bruno@clisp.org>
10598 * tests/test-frexp.c (NaN): New function/macro.
10599 (main): Use it instead of 0.0 / 0.0.
10600 * tests/test-isnan.c (NaN): New function/macro.
10601 (main): Use it instead of 0.0 / 0.0.
10602 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
10603 (test_function): Use it instead of 0.0 / 0.0.
10604 * tests/test-vasprintf-posix.c (NaN): New function/macro.
10605 (test_function): Use it instead of 0.0 / 0.0.
10606 * tests/test-snprintf-posix.h (NaN): New function/macro.
10607 (test_function): Use it instead of 0.0 / 0.0.
10608 * tests/test-sprintf-posix.h (NaN): New function/macro.
10609 (test_function): Use it instead of 0.0 / 0.0.
10610 * tests/test-fprintf-posix.h (NaN): New function/macro.
10611 (test_function): Use it instead of 0.0 / 0.0.
10612 * tests/test-printf-posix.h (NaN): New function/macro.
10613 (test_function): Use it instead of 0.0 / 0.0.
10615 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
10617 2007-03-25 Bruno Haible <bruno@clisp.org>
10619 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
10621 2007-03-25 Bruno Haible <bruno@clisp.org>
10623 * lib/regexec.c (merge_state_with_log): Make static.
10625 2007-03-25 Bruno Haible <bruno@clisp.org>
10627 * lib/trigl.c (kernel_rem_pio2): Make static.
10629 2007-03-25 Bruno Haible <bruno@clisp.org>
10631 * lib/sincosl.c (sincosl_table): Make static.
10633 2007-03-25 Bruno Haible <bruno@clisp.org>
10635 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
10636 if the compiler does not support C99.
10638 2007-03-25 Bruno Haible <bruno@clisp.org>
10640 * modules/time (Makefile.am): Ensure all rule action lines start with a
10643 2007-03-24 Bruno Haible <bruno@clisp.org>
10645 * modules/tsearch-tests: New file.
10646 * tests/test-tsearch.sh: New file.
10647 * tests/test-tsearch.c: New file, mostly copied from glibc.
10649 * modules/search-tests: New file.
10650 * tests/test-search.c: New file.
10652 * modules/search: New file.
10653 * lib/search_.h: New file, incorporating lib/tsearch.h.
10654 * m4/search_h.m4: New file.
10655 * lib/tsearch.h: Remove file.
10656 * lib/tsearch.c: Include search.h instead of tsearch.h.
10657 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
10659 * modules/tsearch (Files): Remove lib/tsearch.h.
10660 (Depends-on): Add search.
10661 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
10662 (Include): Change tsearch.h into search.h.
10664 2007-03-24 Bruno Haible <bruno@clisp.org>
10666 * modules/fpucw: New file.
10667 * lib/fpucw.h: New file.
10668 * lib/frexp.c: Include fpucw.h.
10669 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10671 * lib/printf-frexp.c: Include fpucw.h.
10672 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
10674 * lib/vasnprintf.c: Include fpucw.h.
10675 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
10676 'long double' calculations.
10677 * tests/test-frexpl.c: Include fpucw.h.
10678 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10679 * tests/test-printf-frexpl.c: Include fpucw.h.
10680 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
10681 * modules/frexpl (Depends-on): Add fpucw.
10682 * modules/printf-frexpl (Depends-on): Likewise.
10683 * modules/fprintf-posix (Depends-on): Likewise.
10684 * modules/snprintf-posix (Depends-on): Likewise.
10685 * modules/sprintf-posix (Depends-on): Likewise.
10686 * modules/vasnprintf-posix (Depends-on): Likewise.
10687 * modules/vasprintf-posix (Depends-on): Likewise.
10688 * modules/vfprintf-posix (Depends-on): Likewise.
10689 * modules/vsnprintf-posix (Depends-on): Likewise.
10690 * modules/vsprintf-posix (Depends-on): Likewise.
10691 * modules/frexpl-tests (Depends-on): Likewise.
10692 * modules/printf-frexpl-tests (Depends-on): Likewise.
10694 2007-03-24 Bruno Haible <bruno@clisp.org>
10696 * lib/float+.h: New file.
10697 * lib/isnan.c: Include float+.h.
10699 (FUNC): Compare only SIZE bytes of the value.
10700 * lib/vasnprintf.c: Include float+.h.
10701 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
10702 SIZEOF_LDBL or SIZEOF_DBL bytes.
10703 * modules/isnan-nolibm (Files): Add lib/float+.h.
10704 * modules/isnanl-nolibm (Files): Add lib/float+.h.
10705 * modules/isnanl (Files): Add lib/float+.h.
10706 * modules/vasnprintf (Files): Add lib/float+.h.
10708 2007-03-24 Bruno Haible <bruno@clisp.org>
10710 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
10711 include isnanl-nolibm.h.
10713 2007-03-24 Bruno Haible <bruno@clisp.org>
10715 * tests/test-read-file.c (main): Don't produce spurious output for
10716 expected situations. Make the test fail if it encountered unexpected
10719 2007-03-24 Bruno Haible <bruno@clisp.org>
10721 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
10722 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
10724 2007-03-24 Bruno Haible <bruno@clisp.org>
10726 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
10728 2007-03-24 Bruno Haible <bruno@clisp.org>
10730 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
10731 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
10733 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
10734 * modules/utf8-ucs4: Turn into a symbolic link to module
10737 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
10739 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
10740 unistr/u8-mbtouc-unsafe.
10742 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
10743 * modules/utf16-ucs4: Turn into a symbolic link to module
10746 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
10748 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
10749 unistr/u16-mbtouc-unsafe.
10751 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
10752 * modules/ucs4-utf8: Turn into a symbolic link to module
10755 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
10756 * modules/ucs4-utf16: Turn into a symbolic link to module
10759 2007-03-24 Bruno Haible <bruno@clisp.org>
10761 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
10762 Enable the function only if HAVE_INLINE.
10763 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
10764 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10765 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
10766 Enable the function only if HAVE_INLINE.
10767 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
10768 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
10769 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
10770 Enable the function only if HAVE_INLINE.
10771 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
10772 Enable the function only if HAVE_INLINE.
10773 * modules/utf8-ucs4: Update.
10774 * modules/utf8-ucs4-unsafe: Update.
10775 * modules/utf16-ucs4: Update.
10776 * modules/utf16-ucs4-unsafe: Update.
10777 * modules/ucs4-utf8: Update.
10778 * modules/ucs4-utf16: Update.
10780 2007-03-24 Bruno Haible <bruno@clisp.org>
10782 * lib/utf8-ucs4.h: Remove file.
10783 * lib/utf8-ucs4-unsafe.h: Remove file.
10784 * lib/utf16-ucs4.h: Remove file.
10785 * lib/utf16-ucs4-unsafe.h: Remove file.
10786 * lib/ucs4-utf8.h: Remove file.
10787 * lib/ucs4-utf16.h: Remove file.
10788 * lib/unistr.h: Include their previous contents.
10789 * m4/utf-ucs4.m4: Remove file.
10790 * m4/ucs4-utf.m4: Remove file.
10791 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
10792 (Depends-on): Add unistr/base.
10793 (configure.ac): Remove gl_UTF_UCS4.
10794 (Makefile.am): Update.
10795 (Include): Change to unistr.h.
10796 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
10797 (Depends-on): Add unistr/base.
10798 (configure.ac): Remove gl_UTF_UCS4.
10799 (Makefile.am): Update.
10800 (Include): Change to unistr.h.
10801 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
10802 (Depends-on): Add unistr/base.
10803 (configure.ac): Remove gl_UTF_UCS4.
10804 (Makefile.am): Update.
10805 (Include): Change to unistr.h.
10806 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
10807 (Depends-on): Add unistr/base.
10808 (configure.ac): Remove gl_UTF_UCS4.
10809 (Makefile.am): Update.
10810 (Include): Change to unistr.h.
10811 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
10812 (Depends-on): Add unistr/base.
10813 (configure.ac): Remove gl_UCS4_UTF.
10814 (Makefile.am): Update.
10815 (Include): Change to unistr.h.
10816 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
10817 (Depends-on): Add unistr/base.
10818 (configure.ac): Remove gl_UCS4_UTF.
10819 (Makefile.am): Update.
10820 (Include): Change to unistr.h.
10821 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
10822 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
10823 utf8-ucs4-unsafe.h.
10824 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
10825 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
10826 utf16-ucs4-unsafe.h.
10827 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
10828 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
10829 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
10830 * lib/unistr/u8-strchr.c: Likewise.
10831 * lib/unistr/u8-strrchr.c: Likewise.
10832 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
10833 * lib/unistr/u16-strchr.c: Likewise.
10834 * lib/unistr/u16-strrchr.c: Likewise.
10835 * lib/striconveh.c: Update.
10836 * lib/linebreak.c: Update.
10838 2007-03-24 Bruno Haible <bruno@clisp.org>
10840 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
10841 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
10843 2007-03-22 Bruno Haible <bruno@clisp.org>
10845 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
10847 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
10849 * MODULES.html.sh (File system functions): New module write-any-file.
10850 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
10851 * m4/write-any-file.m4: New files.
10853 2007-03-23 Eric Blake <ebb9@byu.net>
10855 * gnulib-tool: Rearrange space-tab sequences, since some editors
10858 2007-03-23 Eric Blake <ebb9@byu.net>
10860 * lib/version-etc.c (version_etc_va): Update license wording to
10861 be more concise. Recommended by Richard Stallman.
10863 2007-03-22 Bruno Haible <bruno@clisp.org>
10865 * lib/poll.c (MSG_PEEK): New fallback definition.
10867 2007-03-22 Bruno Haible <bruno@clisp.org>
10869 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
10870 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
10872 Fixes a compilation error on BeOS.
10874 2007-03-22 Bruno Haible <bruno@clisp.org>
10876 * modules/frexpl-tests: New file.
10877 * tests/test-frexpl.c: New file.
10879 * modules/frexpl: New file.
10880 * m4/frexpl.m4: New file.
10881 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
10882 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
10883 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
10884 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
10885 (Depends-on): Add frexpl. Remove isnanl-nolibm.
10886 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
10888 2007-03-22 Bruno Haible <bruno@clisp.org>
10890 * lib/frexpl.c: Share code with lib/frexp.c.
10891 * modules/mathl (Files): Add lib/frexp.c.
10892 (Depends-on): Add isnanl-nolibm.
10894 2007-03-22 Bruno Haible <bruno@clisp.org>
10896 * modules/printf-frexp (Files): Add m4/frexp.m4.
10897 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
10898 only if the found frexp function actually works.
10900 2007-03-22 Bruno Haible <bruno@clisp.org>
10902 * lib/frexp.c: Remove older implementation that uses divisions.
10904 2007-03-21 Bruno Haible <bruno@clisp.org>
10906 * modules/frexp-tests: New file.
10907 * tests/test-frexp.c: New file.
10909 * modules/frexp: New file.
10910 * lib/frexp.c: New file.
10911 * m4/frexp.m4: New file.
10912 * lib/math_.h (frexp): New declaration.
10913 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
10915 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
10917 2007-03-21 Bruno Haible <bruno@clisp.org>
10919 * modules/isnanl-tests: New file.
10920 * tests/test-isnanl.c: New file.
10922 * modules/isnanl: New file.
10923 * lib/isnanl.h: New file.
10924 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
10925 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
10926 gl_FUNC_ISNANL_WORKS.
10927 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
10930 2007-03-21 Bruno Haible <bruno@clisp.org>
10932 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
10935 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
10936 * lib/vasnprintf.c: Update.
10937 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
10938 tests/test-isnanl.h, remove tests/test-isnanl.c.
10939 (Makefile.am): Update.
10940 * tests/test-isnanl-nolibm.c: New file.
10941 * tests/test-isnanl.h: New file.
10942 * tests/test-isnanl.c: Remove file.
10944 2007-03-21 Jim Meyering <jim@meyering.net>
10946 When trying to open ".", treat ESTALE like EACCES.
10947 * lib/savewd.c (savewd_save): Resort to forking not just upon
10948 failure with EACCES, but also when errno is ESTALE.
10950 2007-03-20 Bruno Haible <bruno@clisp.org>
10952 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
10953 Needed on AIX 5.1. Reported by Matthew Woehlke.
10955 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
10957 Suggestions by Bruno Haible:
10958 * lib/acl-internal.h: Include "gettext.h" rather than rolling
10960 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
10961 * modules/acl (Depends-on): Add gettext.
10963 2007-03-19 Bruno Haible <bruno@clisp.org>
10965 * modules/iconvme: Remove file.
10966 * lib/iconvme.h: Remove file.
10967 * lib/iconvme.c: Remove file.
10968 * m4/iconvme.m4: Remove file.
10970 2007-03-19 Bruno Haible <bruno@clisp.org>
10972 * doc/relocatable-maint.texi: Break long shell script line.
10973 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
10975 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
10977 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
10978 handle file_has_acl.
10979 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
10980 * lib/acl.c: Move header inclusions and related macro defns into
10981 lib/acl-internal.h.
10982 (S_ISLNK): Remove defn, since that's now done for us.
10983 (file_has_acl): Move to lib/file-has-acl.c.
10984 Call acl_trivial if available. This is the crucial part of the fix.
10985 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
10986 shared within the library. Rewrite a bit, partly to make it compatible
10987 with the GNU coding style.
10988 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
10989 Remove unnecessary double-quotes.
10990 Don't test for acl_to_text; the build will catch that.
10991 Replace acl_entries if it doesn't exist and it is needed.
10992 Check for -lsec and acl_trivial (as used on Solaris 10).
10993 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
10994 lib/file-has-acl.c.
10995 (Depends-on): Add sys_stat, for S_ISLNK.
10997 2007-03-19 Ben Pfaff <blp@gnu.org>
10999 * doc/gnulib.texi: Fix typos.
11000 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11002 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
11004 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
11005 If size is zero here, buf must be zero.
11007 2007-03-19 Simon Josefsson <simon@josefsson.org>
11009 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
11012 2007-03-18 Bruno Haible <bruno@clisp.org>
11014 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
11015 Suggested by Eric Blake.
11017 2007-03-18 Ben Pfaff <blp@gnu.org>
11019 * doc/relocatable.texi: Recommend using as prefix a directory
11020 that does not exist and will never be created. Based on
11021 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
11024 2007-03-17 Bruno Haible <bruno@clisp.org>
11026 * lib/fchownat.c: Include lchown.h.
11028 2007-03-17 Bruno Haible <bruno@clisp.org>
11030 Fix endless loop when the given allocated size was > INT_MAX.
11031 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
11032 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
11033 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
11034 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
11035 * lib/sprintf.c (sprintf): Likewise.
11037 2007-03-17 Bruno Haible <bruno@clisp.org>
11039 * tests/test-argp-2.sh (func_compare): Output a context diff.
11041 2007-03-17 Bruno Haible <bruno@clisp.org>
11043 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
11044 locale's decimal-point character.
11046 2007-03-17 Bruno Haible <bruno@clisp.org>
11048 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
11049 before comparing it. Needed because on some platforms (e.g. x86) a
11050 'long double' occupies less bytes than sizeof (long double).
11052 2007-03-17 Bruno Haible <bruno@clisp.org>
11054 * tests/test-crc.c (main): Make printf statements 64-bit clean.
11055 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
11056 * tests/test-getaddrinfo.c (simple): Likewise.
11057 * tests/test-read-file.c (main): Likewise.
11059 2007-03-17 Bruno Haible <bruno@clisp.org>
11061 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
11063 2007-03-17 Bruno Haible <bruno@clisp.org>
11065 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
11068 2007-03-17 Bruno Haible <bruno@clisp.org>
11070 * tests/test-c-strcasecmp.c: Include c-strcase.h.
11071 * tests/test-c-strncasecmp.c: Likewise.
11073 2007-03-17 Bruno Haible <bruno@clisp.org>
11075 * modules/stdlib (Depends-on): Add unistd.
11076 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
11077 Needed for MacOS X 10.3.
11079 2007-03-17 Bruno Haible <bruno@clisp.org>
11081 * lib/unistr/u-strdup.h: Include <stdlib.h>.
11083 2007-03-17 Bruno Haible <bruno@clisp.org>
11085 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
11087 2007-03-17 Bruno Haible <bruno@clisp.org>
11089 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
11090 to reflect files copied from gnulib (with or without modifications).
11091 Suggested by Jim Meyering.
11093 2007-03-17 Eric Blake <ebb9@byu.net>
11095 * NEWS: Document stdlib change from 2007-02-18.
11097 2007-03-17 Jim Meyering <jim@meyering.net>
11099 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
11100 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
11101 someone uses a name containing shell meta-characters.
11102 Reported by Alfred M. Szmidt.
11104 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
11106 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
11108 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
11109 and copy gettext configuration files only if configure.ac contains
11110 a use of AM_GNU_GETTEXT_VERSION.
11112 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
11114 * build-aux/bootstrap (gnulib_name): New variable.
11115 (gnulib_tool_options): Use it.
11117 2007-03-13 Simon Josefsson <simon@josefsson.org>
11119 * tests/test-des.c: Use new namespace.
11121 2007-03-15 Bruno Haible <bruno@clisp.org>
11123 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
11124 Reported by James Youngman <jay@gnu.org>.
11126 2007-03-15 Bruno Haible <bruno@clisp.org>
11128 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
11129 declared prototype. Needed with cc on OSF/1 5.1.
11131 2007-03-15 Bruno Haible <bruno@clisp.org>
11133 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
11134 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
11135 (struct gl_list_implementation): Add dispose_fn argument to the
11136 'create_empty', 'create' methods.
11137 (struct gl_list_impl_base): Add field 'dispose_fn'.
11138 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
11140 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
11141 dispose_fn argument.
11142 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
11143 dispose_fn on the dropped values.
11144 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
11145 dispose_fn argument.
11146 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
11148 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
11149 (gl_tree_remove_node): Call dispose_fn on the dropped value.
11150 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
11151 (gl_tree_remove_node): Call dispose_fn on the dropped value.
11152 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
11154 (gl_tree_list_free): Call dispose_fn on the dropped values.
11155 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
11156 the dropped values.
11157 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
11158 Add dispose_fn argument.
11159 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
11160 Call dispose_fn on the dropped values.
11161 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
11162 Add dispose_fn argument.
11163 (gl_sublist_create): Initialize the 'dispose_fn' field.
11164 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
11165 * tests/test-array_list.c (main): Update.
11166 * tests/test-carray_list.c (main): Update.
11167 * tests/test-avltree_list.c (main): Update.
11168 * tests/test-rbtree_list.c (main): Update.
11169 * tests/test-avltreehash_list.c (main): Update.
11170 * tests/test-rbtreehash_list.c (main): Update.
11171 * tests/test-linked_list.c (main): Update.
11172 * tests/test-linkedhash_list.c (main): Update.
11173 * tests/test-array_oset.c (main): Update.
11175 2007-03-15 Bruno Haible <bruno@clisp.org>
11177 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
11178 (gl_oset_create_empty): Add dispose_fn argument.
11179 (struct gl_oset_implementation): Add dispose_fn argument to
11180 'create_empty' method.
11181 (struct gl_oset_impl_base): Add dispose_fn field.
11182 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
11183 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
11184 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
11186 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
11187 (gl_tree_oset_free): Call dispose_fn on the dropped values.
11188 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11190 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11192 * tests/test-array_oset.c (main): Update.
11193 * tests/test-avltree_oset.c (main): Update.
11194 * tests/test-rbtree_oset.c (main): Update.
11195 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
11197 2007-03-13 Bruno Haible <bruno@clisp.org>
11199 * tests/test-stdbool.c (i): Update after last patch.
11201 2007-03-12 Bruno Haible <bruno@clisp.org>
11203 * lib/quotearg.c: Include <wctype.h> early, before the definition of
11204 the iswprint macro. Needed on Solaris 2.5.1.
11206 2007-03-12 Bruno Haible <bruno@clisp.org>
11208 * tests/test-printf-frexp.c (main): Declare x as volatile.
11210 2007-03-12 Simon Josefsson <simon@josefsson.org>
11212 * doc/gnulib.texi (Build robot for gnulib): New section.
11214 2007-03-12 Jim Meyering <jim@meyering.net>
11216 * build-aux/bootstrap: New file.
11217 * build-aux/bootstrap.conf: New file, from coreutils.
11219 2007-03-11 Bruno Haible <bruno@clisp.org>
11221 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
11223 2007-03-12 Simon Josefsson <simon@josefsson.org>
11225 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
11226 avoid collisions with 'des_setkey'. Reported by Bruno Haible
11227 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
11229 2007-03-11 Bruno Haible <bruno@clisp.org>
11231 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
11232 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
11234 2007-03-11 Bruno Haible <bruno@clisp.org>
11236 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
11237 formula. Needed for SunPRO C 5.0.
11239 2007-03-11 Bruno Haible <bruno@clisp.org>
11241 * modules/long-options (Depends-on): Add getopt.
11243 2007-03-11 Bruno Haible <bruno@clisp.org>
11245 * modules/modechange (Depends-on): Add stdbool.
11247 2007-03-11 Bruno Haible <bruno@clisp.org>
11249 * modules/i-ring (Depends-on): Add stdbool.
11251 2007-03-11 Bruno Haible <bruno@clisp.org>
11253 * modules/gc-des (Depends-on): Add stdbool.
11255 2007-03-11 Bruno Haible <bruno@clisp.org>
11257 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
11259 2007-03-11 Bruno Haible <bruno@clisp.org>
11261 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
11263 2007-03-11 Bruno Haible <bruno@clisp.org>
11265 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
11267 2007-03-11 Bruno Haible <bruno@clisp.org>
11269 * lib/vasnprintf.c (sprintf): Undefine.
11271 2007-03-11 Bruno Haible <bruno@clisp.org>
11273 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
11274 initializers in SunPRO C and Compaq C compilers.
11276 2007-03-11 Bruno Haible <bruno@clisp.org>
11278 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
11279 decrementing code ANSI C compliant.
11281 2007-03-11 Bruno Haible <bruno@clisp.org>
11283 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
11284 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
11286 2007-03-11 Bruno Haible <bruno@clisp.org>
11288 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
11289 <stdbool.h> substitute doesn't pass.
11291 2007-03-11 Bruno Haible <bruno@clisp.org>
11293 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
11295 2007-03-11 Bruno Haible <bruno@clisp.org>
11297 * gnulib-tool (func_create_megatestdir): Create also an autobuild
11298 script, for submission to autobuild.josefsson.org.
11300 2007-03-10 Bruno Haible <bruno@clisp.org>
11302 * modules/canonicalize-lgpl-tests: New file.
11303 * tests/test-canonicalize-lgpl.sh: New file.
11304 * tests/test-canonicalize-lgpl.c: New file.
11306 * modules/c-strcase-tests: New file.
11307 * tests/test-c-strcase.sh: New file.
11308 * tests/test-c-strcasecmp.c: New file.
11309 * tests/test-c-strncasecmp.c: New file.
11311 * modules/atexit-tests: New file.
11312 * tests/test-atexit.sh: New file.
11313 * tests/test-atexit.c: New file.
11315 2007-03-10 Bruno Haible <bruno@clisp.org>
11317 * tests/test-binary-io.sh: Use temporary filenames that are not so
11318 likely to clash with those of other tests (in a parallel make).
11319 * tests/test-binary-io.c: Likewise.
11321 2007-03-10 Bruno Haible <bruno@clisp.org>
11323 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
11324 fallback; use #error instead.
11325 Suggested by Simon Josefsson.
11327 2007-03-10 Bruno Haible <bruno@clisp.org>
11329 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
11330 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
11331 first and the last.
11333 2007-03-10 Bruno Haible <bruno@clisp.org>
11335 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
11337 2007-03-10 Bruno Haible <bruno@clisp.org>
11339 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
11341 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
11342 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11343 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
11345 2007-03-10 Bruno Haible <bruno@clisp.org>
11347 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
11349 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
11352 2007-03-09 Eric Blake <ebb9@byu.net>
11353 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
11355 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
11356 types are not being provided by gnulib.
11357 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
11358 types are supported.
11360 2007-03-10 Bruno Haible <bruno@clisp.org>
11362 * lib/stdio_.h (__attribute__): New macro.
11363 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
11364 vsprintf): Specify __attribute__ __format__ for GCC.
11365 Suggested by Eric Blake.
11367 2007-03-09 Bruno Haible <bruno@clisp.org>
11369 * modules/printf-posix-tests: New file.
11370 * tests/test-printf-posix.sh: New file.
11371 * tests/test-printf-posix.c: New file.
11373 * modules/printf-posix: New file.
11374 * lib/printf.c: New file.
11375 * m4/printf-posix-rpl.m4: New file.
11376 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
11378 * lib/stdio_.h (printf): New declaration.
11379 (format, __format__, ____printf____, ____scanf____, ____strftime____,
11380 ____strfmon____): New macros.
11381 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
11384 2007-03-09 Bruno Haible <bruno@clisp.org>
11386 * tests/test-vasnprintf-posix2.sh: New file.
11387 * tests/test-vasnprintf-posix2.c: New file.
11388 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
11389 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11390 (Makefile.am): Activate test-vasnprintf-posix2.sh.
11392 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
11393 a locale dependent decimal point, rather than always '.'.
11395 2007-03-09 Eric Blake <ebb9@byu.net>
11397 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
11398 spite of platforms like Tandem/NSK that define it to -1.
11400 2007-03-08 Bruno Haible <bruno@clisp.org>
11402 * modules/vprintf-posix-tests: New file.
11403 * tests/test-vprintf-posix.sh: New file.
11404 * tests/test-vprintf-posix.c: New file.
11405 * tests/test-printf-posix.h: New file.
11407 * modules/vprintf-posix: New file.
11408 * lib/vprintf.c: New file.
11409 * m4/vprintf-posix.m4: New file.
11410 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11412 * lib/stdio_.h (vprintf): New declaration.
11413 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11416 2007-03-08 Bruno Haible <bruno@clisp.org>
11418 * modules/fprintf-posix-tests: New file.
11419 * tests/test-fprintf-posix.sh: New file.
11420 * tests/test-fprintf-posix.c: New file.
11422 * modules/fprintf-posix: New file.
11423 * lib/fprintf.c: New file.
11424 * m4/fprintf-posix.m4: New file.
11425 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11427 * lib/stdio_.h (fprintf): New declaration.
11428 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11431 2007-03-08 Bruno Haible <bruno@clisp.org>
11433 * modules/vfprintf-posix-tests: New file.
11434 * tests/test-vfprintf-posix.sh: New file.
11435 * tests/test-vfprintf-posix.c: New file.
11436 * tests/test-fprintf-posix.h: New file.
11437 * tests/test-fprintf-posix.out: New file.
11439 * modules/vfprintf-posix: New file.
11440 * lib/vfprintf.c: New file.
11441 * m4/vfprintf-posix.m4: New file.
11442 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11444 * lib/stdio_.h (vfprintf): New declaration.
11445 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11448 2007-03-08 Bruno Haible <bruno@clisp.org>
11450 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11452 2007-03-08 Bruno Haible <bruno@clisp.org>
11454 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11455 instead of 'expr' invocations.
11456 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11457 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11458 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11459 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11460 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11461 Suggested by Paul Eggert.
11463 2007-03-08 Bruno Haible <bruno@clisp.org>
11465 * modules/fseterr-tests: New file.
11466 * tests/test-fseterr.c: New file.
11468 * modules/fseterr: New file.
11469 * lib/fseterr.h: New file.
11470 * lib/fseterr.c: New file.
11472 2007-03-08 Bruno Haible <bruno@clisp.org>
11474 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11475 * lib/getopt_.h: Likewise.
11476 * lib/mbswidth.h: Likewise.
11477 * lib/setenv.h: Likewise.
11478 * lib/vasnprintf.h: Likewise.
11479 * lib/vasprintf.h: Likewise.
11480 * lib/verror.h: Likewise.
11481 * lib/xsetenv.h: Likewise.
11482 * lib/xvasprintf.h: Likewise.
11484 2007-03-08 Jim Meyering <jim@meyering.net>
11486 * users.txt: Add parted.
11488 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11490 2007-03-07 Bruno Haible <bruno@clisp.org>
11492 * m4/printf.m4: Make the shell script snippets copy&pastable.
11494 2007-03-02 Bruno Haible <bruno@clisp.org>
11496 * lib/netinet_in_.h: New file.
11497 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11498 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11499 * modules/netinet_in (Files): Add lib/netinet_in_.h.
11500 (Depends-on): Add absolute-header.
11501 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11504 2007-03-03 Bruno Haible <bruno@clisp.org>
11506 * lib/sys_select_.h: New file.
11507 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11508 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11509 * modules/sys_select (Files): Add lib/sys_select_.h.
11510 (Depends-on): Add absolute-header.
11511 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11514 2007-03-02 Bruno Haible <bruno@clisp.org>
11516 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11517 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11519 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11520 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11521 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11522 * modules/sys_socket (Depends-on): Add absolute-header.
11523 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11524 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11525 (Include): Remove requirement of inclusion of <sys/types.h>.
11527 2007-03-02 Bruno Haible <bruno@clisp.org>
11529 * lib/byteswap_.h (bswap_32): Fix formula.
11531 2007-03-06 Bruno Haible <bruno@clisp.org>
11533 * modules/sprintf-posix-tests: New file.
11534 * tests/test-sprintf-posix.c: New file.
11536 * modules/sprintf-posix: New file.
11537 * lib/sprintf.c: New file.
11538 * m4/sprintf-posix.m4: New file.
11539 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11541 * lib/stdio_.h (sprintf): New declaration.
11542 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11545 2007-03-06 Bruno Haible <bruno@clisp.org>
11547 * modules/vsprintf-posix-tests: New file.
11548 * tests/test-vsprintf-posix.c: New file.
11549 * tests/test-sprintf-posix.h: New file.
11551 * modules/vsprintf-posix: New file.
11552 * lib/vsprintf.c: New file.
11553 * m4/vsprintf-posix.m4: New file.
11554 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11556 * lib/stdio_.h (vsprintf): New declaration.
11557 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11560 2007-03-06 Bruno Haible <bruno@clisp.org>
11562 * modules/vsnprintf (Depend-on): Remove minmax.
11564 2007-03-06 Bruno Haible <bruno@clisp.org>
11566 * modules/snprintf-posix-tests: New file.
11567 * tests/test-snprintf-posix.c: New file.
11569 * modules/snprintf-posix: New file.
11570 * m4/snprintf-posix.m4: New file.
11571 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11573 (gl_FUNC_SNPRINTF): Invoke it.
11574 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11575 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11577 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11579 2007-03-06 Bruno Haible <bruno@clisp.org>
11581 * modules/vsnprintf-posix-tests: New file.
11582 * tests/test-vsnprintf-posix.c: New file.
11583 * tests/test-snprintf-posix.h: New file.
11585 * modules/vsnprintf-posix: New file.
11586 * m4/vsnprintf-posix.m4: New file.
11587 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
11589 (gl_FUNC_VSNPRINTF): Invoke it.
11590 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
11591 * lib/stdio_.h (vsnprintf): Define as a replacement if
11592 REPLACE_VSNPRINTF is set.
11593 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
11595 2007-03-06 Bruno Haible <bruno@clisp.org>
11597 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
11598 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
11600 2007-03-06 Bruno Haible <bruno@clisp.org>
11602 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
11603 (asinl): Declare also if HAVE_DECL_ASINL is set.
11604 (atanl): Declare also if HAVE_DECL_ATANL is set.
11605 (ceill): Declare also if HAVE_DECL_CEILL is set.
11606 (cosl): Declare also if HAVE_DECL_COSL is set.
11607 (expl): Declare also if HAVE_DECL_EXPL is set.
11608 (floorl): Declare also if HAVE_DECL_FLOORL is set.
11609 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
11610 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
11611 (logl): Declare also if HAVE_DECL_LOGL is set.
11612 (sinl): Declare also if HAVE_DECL_SINL is set.
11613 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
11614 (tanl): Declare also if HAVE_DECL_TANL is set.
11615 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
11616 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
11617 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
11618 declaration of frexpl, ldexpl.
11619 * modules/printf-frexpl (Depends-on): Add math.
11620 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
11622 2007-03-05 Bruno Haible <bruno@clisp.org>
11624 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
11625 frexpl and ldexpl are declared.
11626 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
11628 2007-03-05 Bruno Haible <bruno@clisp.org>
11630 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
11631 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
11633 2007-03-05 Bruno Haible <bruno@clisp.org>
11635 * lib/stdio_.h: Include <stddef.h>.
11637 2007-03-05 Bruno Haible <bruno@clisp.org>
11639 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
11641 2007-03-05 Bruno Haible <bruno@clisp.org>
11643 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
11644 NetBSD 4, from Ralf Wildenhues.
11646 2007-03-04 Bruno Haible <bruno@clisp.org>
11648 * lib/vasprintf.h: Update #if logic for the case when the functions
11649 exist but are overridden.
11651 2007-03-04 Bruno Haible <bruno@clisp.org>
11653 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
11654 implementations: glibc-2.4 and MacOS X 10.3.
11655 * tests/test-vasnprintf-posix.c (test_function): Test also the case
11656 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
11657 * tests/test-vasprintf-posix.c (test_function): Likewise.
11659 2007-03-04 Bruno Haible <bruno@clisp.org>
11661 * modules/vasprintf-posix-tests: New file.
11662 * tests/test-vasprintf-posix.c: New file.
11664 * modules/vasprintf-posix: New file.
11665 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
11667 * m4/vasprintf-posix.m4: New file.
11668 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
11670 (gl_FUNC_VASPRINTF): Invoke it.
11671 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
11673 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
11675 2007-03-04 Bruno Haible <bruno@clisp.org>
11677 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
11678 REPLACE_GETTIMEOFDAY.
11679 * modules/sys_time (Makefile.am): Likewise.
11680 * m4/sys_time_h.m4: Likewise.
11681 * m4/gettimeofday.m4: Likewise.
11683 2007-03-04 Bruno Haible <bruno@clisp.org>
11685 * modules/vasnprintf-posix-tests: New file.
11686 * tests/test-vasnprintf-posix.c: New file.
11688 * modules/vasnprintf-posix: New file.
11689 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
11691 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
11692 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
11693 REPLACE_VASNPRINTF is defined.
11694 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
11695 gl_FUNC_VASNPRINTF.
11696 (gl_FUNC_VASNPRINTF): Invoke it.
11697 * m4/vasnprintf-posix.m4: New file.
11698 * m4/printf.m4: New file.
11700 2007-03-04 Bruno Haible <bruno@clisp.org>
11702 Compile progreloc.c only if --enable-relocatable is specified.
11703 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
11704 if --enable-relocatable was specified.
11705 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
11708 2007-03-04 Jim Meyering <jim@meyering.net>
11710 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
11711 Use it consistently, rather than enumerating errno constants.
11713 2007-03-04 Bruno Haible <bruno@clisp.org>
11715 * modules/xvasprintf-tests: New file.
11716 * tests/test-xvasprintf.c: New file.
11718 * modules/vasprintf-tests: New file.
11719 * tests/test-vasprintf.c: New file.
11721 * modules/vasnprintf-tests: New file.
11722 * tests/test-vasnprintf.c: New file.
11724 * modules/vsnprintf-tests: New file.
11725 * tests/test-vsnprintf.c: New file.
11727 * modules/snprintf-tests: New file.
11728 * tests/test-snprintf.c: New file.
11730 2007-03-04 Bruno Haible <bruno@clisp.org>
11732 Compile relocatable.c only if --enable-relocatable is specified.
11733 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
11734 gl_RELOCATABLE_LIBRARY.
11735 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
11736 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
11737 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
11738 gl_RELOCATABLE_LIBRARY.
11739 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
11740 (Makefile.am): Remove lib_SOURCES.
11741 * modules/relocatable-lib-lgpl (configure.ac): Invoke
11742 gl_RELOCATABLE_LIBRARY.
11743 (Makefile.am): Remove lib_SOURCES.
11744 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
11746 * modules/relocatable-prog-wrapper (configure.ac): Invoke
11747 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
11749 2007-03-04 Bruno Haible <bruno@clisp.org>
11751 * modules/argmatch-tests: New file.
11752 * tests/test-argmatch.c: New file.
11754 * tests/test-allocsa.c (main): Halve the number of loop runs.
11756 * modules/alloca-opt-tests: New file.
11757 * tests/test-alloca-opt.c: New file.
11759 2007-03-04 Jim Meyering <jim@meyering.net>
11761 Work around difference between Linux ACLs and Solaris 10 ZFS.
11762 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
11765 2007-03-03 Bruno Haible <bruno@clisp.org>
11767 * modules/relocatable-prog (Depends-on): Add back progreloc's
11768 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
11770 2007-03-03 Bruno Haible <bruno@clisp.org>
11772 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
11773 * modules/relocatable-lib: New file.
11775 2007-03-03 Bruno Haible <bruno@clisp.org>
11777 * modules/relocatable-prog: Renamed from modules/relocatable.
11778 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
11780 2007-03-03 Bruno Haible <bruno@clisp.org>
11782 * modules/relocatable-script (Files): Add doc/relocatable.texi,
11783 m4/relocatable-lib.m4.
11784 (Depends-on): Remove 'relocatable'.
11785 (configure.ac): Add gl_RELOCATABLE_NOP.
11787 2007-03-03 Bruno Haible <bruno@clisp.org>
11789 * modules/relocatable-prog-wrapper: New file.
11790 * modules/relocatable (Depends-on): Add it. Remove all other
11791 dependencies except progname.
11792 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
11794 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
11795 (gl_FUNC_STRERROR): Nop.
11796 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
11798 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
11799 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
11801 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
11802 (gl_FUNC_READLINK): Update.
11804 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
11806 2007-03-03 Bruno Haible <bruno@clisp.org>
11808 * lib/xreadlink.c: Include <unistd.h> unconditionally.
11809 * modules/xreadlink (Depends-on): Add unistd.
11810 * modules/xreadlink-with-size (Depends-on): Likewise.
11812 2007-03-03 Bruno Haible <bruno@clisp.org>
11814 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
11815 extracted from gt_FUNC_SETENV.
11816 (gt_FUNC_SETENV): Remove macro.
11817 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
11818 remove gt_FUNC_SETENV.
11820 2007-03-03 Bruno Haible <bruno@clisp.org>
11822 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
11823 ENABLE_RELOCATABLE here.
11824 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
11826 2007-03-03 Bruno Haible <bruno@clisp.org>
11828 * modules/rbtreehash-list-tests (Depends-on): Add progname.
11829 * tests/test-rbtreehash_list.c: Include progname.h.
11830 (main): Call set_program_name.
11832 * modules/rbtree-oset-tests (Depends-on): Add progname.
11833 * tests/test-rbtree_oset.c: Include progname.h.
11834 (main): Call set_program_name.
11836 * modules/rbtree-list-tests (Depends-on): Add progname.
11837 * tests/test-rbtree_list.c: Include progname.h.
11838 (main): Call set_program_name.
11840 * modules/linked-list-tests (Depends-on): Add progname.
11841 * tests/test-linked_list.c: Include progname.h.
11842 (main): Call set_program_name.
11844 2007-03-03 Bruno Haible <bruno@clisp.org>
11846 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
11847 All uses of __restrict changed to _Restrict_.
11848 * lib/glob_.h (__restrict): Remove macro.
11850 2007-03-02 Bruno Haible <bruno@clisp.org>
11852 * modules/gettext (configure.ac): Require gettext infrastructure
11853 from version 0.16.1.
11855 2007-03-02 Bruno Haible <bruno@clisp.org>
11857 * modules/linkedhash-list-tests (Depends-on): Add progname.
11858 * tests/test-linkedhash_list.c: Include progname.h.
11859 (main): Call set_program_name.
11861 * modules/carray-list-tests (Depends-on): Add progname.
11862 * tests/test-carray_list.c: Include progname.h.
11863 (main): Call set_program_name.
11865 * modules/avltreehash-list-tests (Depends-on): Add progname.
11866 * tests/test-avltreehash_list.c: Include progname.h.
11867 (main): Call set_program_name.
11869 * modules/avltree-oset-tests (Depends-on): Add progname.
11870 * tests/test-avltree_oset.c: Include progname.h.
11871 (main): Call set_program_name.
11873 * modules/avltree-list-tests (Depends-on): Add progname.
11874 * tests/test-avltree_list.c: Include progname.h.
11875 (main): Call set_program_name.
11877 * modules/array-oset-tests (Depends-on): Add progname.
11878 * tests/test-array_oset.c: Include progname.h.
11879 (main): Call set_program_name.
11881 * modules/array-list-tests (Depends-on): Add progname.
11882 * tests/test-array_list.c: Include progname.h.
11883 (main): Call set_program_name.
11885 * modules/argp-tests (Depends-on): Add progname.
11886 * tests/test-argp.c: Include argp.h first. Include progname.h.
11887 (main): Call set_program_name.
11889 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
11891 * doc/gnulib-tool.texi (Initial import): Reword description of
11892 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
11893 limited effect even if defined after the first system include.
11895 2007-03-01 Bruno Haible <bruno@clisp.org>
11897 * build-aux/config.libpath: Update to libtool-1.5.22.
11898 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11900 2007-03-01 Bruno Haible <bruno@clisp.org>
11902 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
11904 Reported by Ralf Wildenhues.
11906 2007-03-01 Bruno Haible <bruno@clisp.org>
11908 * build-aux/install-reloc: Remove object files left over by some
11910 Reported by Ralf Wildenhues.
11912 2007-03-01 Bruno Haible <bruno@clisp.org>
11914 * build-aux/install-reloc: Break long lines.
11916 2007-03-01 Bruno Haible <bruno@clisp.org>
11918 * doc/relocatable.texi: Document that it may not work on OpenBSD.
11919 Reported by Ralf Wildenhues.
11921 2007-03-01 Bruno Haible <bruno@clisp.org>
11923 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
11924 include ordering constraints.
11926 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
11928 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
11929 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
11930 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
11931 as another example.
11932 * lib/time_.h: Fix misspelling.
11933 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11934 Require gl_HEADER_TIME_H_DEFAULTS.
11935 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
11936 * m4/time_r.m4 (gl_TIME_R): Likewise.
11937 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
11939 2007-03-01 Bruno Haible <bruno@clisp.org>
11941 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
11942 * m4/utimens.m4 (gl_UTIMENS): Likewise.
11944 2007-03-01 Jim Meyering <jim@meyering.net>
11946 * modules/xreadlink (Maintainer): Add my name.
11947 * modules/xreadlink-with-size (Depends-on): Alphabetize.
11949 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
11950 Bruno Haible <bruno@clisp.org>
11952 * build-aux/install-reloc: Compile also c-ctype.c.
11953 * build-aux/relocatable.sh.in: New file.
11954 * doc/relocatable.texi: New file.
11955 * doc/relocatable-maint.texi: New file.
11956 * doc/gnulib.texi: Include relocatable-maint.texi.
11957 * lib/progreloc.c: Include unistd.h unconditionally.
11958 * lib/relocwrapper.c: Include unistd.h unconditionally.
11960 (add_dotbin): Use c_tolower.
11961 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
11962 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
11963 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
11964 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
11965 to m4/relocatable-lib.m4.
11966 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
11967 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
11968 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
11969 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
11970 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
11971 * modules/relocatable: New file.
11972 * modules/relocatable-lib: New file.
11973 * modules/relocatable-script: New file.
11975 2007-02-28 Bruno Haible <bruno@clisp.org>
11977 Import --enable-relocatable infrastructure.
11978 * build-aux/config.libpath: New file, from GNU gettext.
11979 * build-aux/install-reloc: New file, from GNU gettext.
11980 * build-aux/reloc-ldflags: New file, from GNU gettext.
11981 * lib/relocatable.h: New file, from GNU gettext.
11982 * lib/relocatable.c: New file, from GNU gettext.
11983 * lib/relocwrapper.c: New file, from GNU gettext.
11984 * m4/relocatable.m4: New file, from GNU gettext.
11986 2007-02-28 Bruno Haible <bruno@clisp.org>
11988 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
11990 * modules/xreadlink: New file, from GNU gettext with modifications.
11991 * lib/xreadlink.c: New file, from GNU gettext.
11992 * lib/xreadlink.h: Add comments.
11993 (xreadlink): New declaration.
11995 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
11996 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
11997 lib/xreadlink-with-size.c.
11998 (configure.ac): Remove gl_XREADLINK invocation.
11999 (Makefile.am): Augment lib_SOURCES.
12000 * m4/xreadlink.m4: Remove file.
12001 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
12002 (xreadlink_with_size): Renamed from xreadink.
12003 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
12004 * modules/canonicalize (Depends-on): Replace xreadlink with
12005 xreadlink-with-size.
12006 * lib/canonicalize.c (canonicalize_filename_mode): Update.
12008 2007-02-25 Jim Meyering <jim@meyering.net>
12010 * build-aux/announce-gen: When complaining about excess arguments,
12013 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
12015 * README: Document signed integer overflow situation more
12018 2007-02-25 Bruno Haible <bruno@clisp.org>
12020 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
12021 'a' or 'A' conversion.
12023 2007-02-25 Bruno Haible <bruno@clisp.org>
12025 * modules/filename: Renamed from modules/pathname.
12026 (Files): Replace lib/pathname.h with lib/filename.h. Replace
12027 lib/concatpath.c with lib/concat-filename.c.
12028 (Makefile.am): Update.
12029 (Include): Replace pathname.h with filename.h.
12030 * lib/filename.h: Renamed from lib/pathname.h.
12031 (concatenated_filename): Renamed from concatenated_pathname.
12032 * lib/concat-filename.c: Renamed from lib/concatpath.c.
12033 (concatenated_filename): Renamed from concatenated_pathname.
12034 * lib/findprog.c: Include filename.h instead of pathname.h.
12035 (find_in_path): Update.
12036 * lib/javacomp.c: Include filename.h instead of pathname.h.
12037 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12038 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12039 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12040 is_oldgcj_14_13_usable, is_javac_usable): Update.
12041 * lib/javaexec.c: Include filename.h instead of pathname.h.
12042 (execute_java_class): Update.
12043 * modules/findprog: Update.
12044 * modules/javacomp: Update.
12045 * modules/javaexec: Update.
12046 * MODULES.html.sh (File system functions): Add 'filename', remove
12049 2007-02-25 Bruno Haible <bruno@clisp.org>
12051 * modules/printf-frexpl-tests: New file.
12052 * tests/test-printf-frexpl.c: New file.
12054 * modules/printf-frexpl: New file.
12055 * lib/printf-frexpl.h: New file.
12056 * lib/printf-frexpl.c: New file.
12057 * m4/printf-frexpl.m4: New file.
12059 2007-02-25 Bruno Haible <bruno@clisp.org>
12061 * modules/printf-frexp-tests: New file.
12062 * tests/test-printf-frexp.c: New file.
12064 * modules/printf-frexp: New file.
12065 * lib/printf-frexp.h: New file.
12066 * lib/printf-frexp.c: New file.
12067 * m4/printf-frexp.m4: New file.
12069 2007-02-25 Bruno Haible <bruno@clisp.org>
12071 Assume automake >= 1.10 for the tests.
12072 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
12073 * modules/arctwo-tests: Likewise.
12074 * modules/argp-tests: Likewise.
12075 * modules/avltree-list-tests: Likewise.
12076 * modules/avltree-oset-tests: Likewise.
12077 * modules/avltreehash-list-tests: Likewise.
12078 * modules/carray-list-tests: Likewise.
12079 * modules/crc-tests: Likewise.
12080 * modules/des-tests: Likewise.
12081 * modules/gc-arcfour-tests: Likewise.
12082 * modules/gc-arctwo-tests: Likewise.
12083 * modules/gc-des-tests: Likewise.
12084 * modules/gc-hmac-md5-tests: Likewise.
12085 * modules/gc-hmac-sha1-tests: Likewise.
12086 * modules/gc-md2-tests: Likewise.
12087 * modules/gc-md4-tests: Likewise.
12088 * modules/gc-md5-tests: Likewise.
12089 * modules/gc-pbkdf2-sha1-tests: Likewise.
12090 * modules/gc-rijndael-tests: Likewise.
12091 * modules/gc-sha1-tests: Likewise.
12092 * modules/gc-tests: Likewise.
12093 * modules/getaddrinfo-tests: Likewise.
12094 * modules/hmac-md5-tests: Likewise.
12095 * modules/hmac-sha1-tests: Likewise.
12096 * modules/linked-list-tests: Likewise.
12097 * modules/linkedhash-list-tests: Likewise.
12098 * modules/lock-tests: Likewise.
12099 * modules/md2-tests: Likewise.
12100 * modules/md4-tests: Likewise.
12101 * modules/md5-tests: Likewise.
12102 * modules/rbtree-list-tests: Likewise.
12103 * modules/rbtree-oset-tests: Likewise.
12104 * modules/rbtreehash-list-tests: Likewise.
12105 * modules/read-file-tests: Likewise.
12106 * modules/rijndael-tests: Likewise.
12107 * modules/stdint-tests: Likewise.
12108 * modules/tls-tests: Likewise.
12110 2007-02-24 Bruno Haible <bruno@clisp.org>
12112 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
12113 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
12114 function; instead check whether isnan with a double argument links.
12115 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
12116 function; instead check whether isnan with a 'long double' argument
12118 Reported by Eric Blake <ebb9@byu.net>.
12120 2007-02-24 Bruno Haible <bruno@clisp.org>
12122 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
12124 * lib/isnanl.c: Remove all code. Just include isnan.c.
12125 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
12127 2007-02-25 Jim Meyering <jim@meyering.net>
12129 Avoid conflicting types for 'unsetenv' on FreeBSD.
12130 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
12131 conflicting with FreeBSD's (5.0 and 6.1) function declaration
12134 2007-02-24 Bruno Haible <bruno@clisp.org>
12136 * modules/isnanl-nolibm-tests: New file.
12137 * tests/test-isnanl.c: New file.
12139 * modules/isnanl-nolibm: New file.
12140 * lib/isnanl.h: New file.
12141 * lib/isnanl.c: New file.
12142 * m4/isnanl.m4: New file.
12144 2007-02-24 Bruno Haible <bruno@clisp.org>
12146 * modules/isnan-nolibm-tests: New file.
12147 * tests/test-isnan.c: New file.
12149 * modules/isnan-nolibm: New file.
12150 * lib/isnan.h: New file.
12151 * lib/isnan.c: New file.
12152 * m4/isnan.m4: New file.
12154 2007-02-24 Bruno Haible <bruno@clisp.org>
12156 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
12157 assume that an exponent fits in 20 bits.
12159 2007-02-24 Jim Meyering <jim@meyering.net>
12161 * m4/regex.m4: Update the description of the configure-time option,
12162 --without-included-regex, to state accurately what the defaults are,
12163 and perhaps to give people an idea why using this option is risky.
12165 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
12167 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
12168 loops on small arguments. This attempts to avoid the problem
12169 Bruno Haible reported for AIX 4.3.2 in
12170 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
12172 2007-02-23 Bruno Haible <bruno@clisp.org>
12174 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
12175 Needed for help2man.
12177 2007-02-23 Karl Berry <karl@gnu.org>
12179 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
12180 exists, foo.h should be cvs-ignored, not committed.
12182 2007-02-23 Eric Blake <ebb9@byu.net>
12184 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
12185 * lib/stat-time.h (includes): Likewise.
12186 * lib/utimecmp.c (includes): Likewise.
12187 * lib/utimens.h (includes): Likewise.
12188 * lib/getdate.y (includes): Also include "timespec.h" for use
12189 internal to the module.
12190 * modules/utimens (Depends-on): Revert yesterday's patch.
12191 * modules/nanosleep (Depends-on): Add missing dependency.
12193 2007-02-22 Bruno Haible <bruno@clisp.org>
12195 * lib/glob.c: Don't include getlogin_r.h.
12197 2007-02-22 Jim Meyering <jim@meyering.net>
12199 * modules/utimens (Depends-on): Add timespec, required for
12200 utimens.h's inclusion of timespec.h.
12202 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
12204 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
12205 long unreadable paths in GNU/Linux. Problem reported by Andreas
12207 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
12208 I'll try to think of a better way to fix the Solaris problem.
12210 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
12211 like glibc; on Solaris 10, it fails with errno == EINVAL.
12212 POSIX says the behavior is unspecified if the first argument is NULL,
12213 so play it safe and never pass NULL to the system getcwd.
12215 2007-02-21 Jim Meyering <jim@meyering.net>
12217 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
12218 of gettimeofday. It would conflict with the one now always
12219 provided via sys_time_.h. Reported by Matthew Woehlke, as
12220 an IRIX 6.5 build failure.
12222 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
12224 Minor fixups to port to Solaris 10 with Sun C 5.8.
12225 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
12226 * modules/getcwd (Depends-on): Add dirfd.
12227 * lib/putenv.c (putenv): #undef it.
12228 (rpl_putenv): New decl.
12229 (malloc, free): Include <stdlib.h> rather than prototyping separately.
12231 2007-02-20 Bruno Haible <bruno@clisp.org>
12233 * modules/stdio-tests: New file.
12234 * tests/test-stdio.c: New file.
12236 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
12237 (Depends-on): Add stdio.
12238 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12239 (Include): Use <stdio.h> instead of vsnprintf.h.
12240 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12241 HAVE_DECL_VSNPRINTF.
12242 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
12244 * modules/snprintf (Files): Remove lib/snprintf.h.
12245 (Depends-on): Add stdio.
12246 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12247 (Include): Use <stdio.h> instead of snprintf.h.
12248 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12249 HAVE_DECL_SNPRINTF.
12250 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
12251 * lib/getaddrinfo.c: Likewise.
12253 * modules/stdio: New file.
12254 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
12255 * lib/snprintf.h: Remove file.
12256 * lib/vsnprintf.h: Remove file.
12257 * lib/.cppi-disable: Remove snprintf.h.
12258 * m4/stdio_h.m4: New file.
12259 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
12261 2007-02-20 Jim Meyering <jim@meyering.net>
12263 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
12264 used by e.g., mingw. From Bruno Haible.
12266 2007-02-19 Bruno Haible <bruno@clisp.org>
12268 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
12270 Reported by Ben Pfaff <blp@cs.stanford.edu>.
12272 2007-02-19 Bruno Haible <bruno@clisp.org>
12274 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
12277 2007-02-19 Bruno Haible <bruno@clisp.org>
12279 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
12281 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
12283 2007-02-19 Jim Meyering <jim@meyering.net>
12285 Don't use FD after a successful "fdopendir (fd)".
12286 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
12287 Reset it by calling dirfd on the just-obtained DIR*.
12289 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
12290 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
12292 2007-02-18 Bruno Haible <bruno@clisp.org>
12294 * lib/readlink.c: Include <unistd.h>.
12295 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
12297 * modules/readlink (Depends-on): Add unistd.
12298 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12299 (Include): Add <unistd.h>.
12301 * lib/getlogin_r.h: Remove file.
12302 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
12303 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
12304 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
12305 HAVE_DECL_GETLOGIN_R.
12306 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
12307 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12308 (Include): Use <unistd.h> instead of getlogin_r.h.
12310 * lib/getcwd.h: Remove file.
12311 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
12312 * lib/xgetcwd.c: Likewise.
12313 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
12314 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
12315 * modules/getcwd (Files): Remove lib/getcwd.h.
12316 (Depends-on): Add unistd.
12317 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12318 (Include): Use <unistd.h> instad of getcwd.h.
12320 * lib/ftruncate.c: Include <unistd.h> first.
12321 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
12322 Set HAVE_FTRUNCATE.
12323 * modules/ftruncate (Depends-on): Add unistd.
12324 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12326 * lib/fchdir.c: Include <unistd.h> first.
12327 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
12328 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
12329 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
12330 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12331 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
12333 * lib/dup2.c: Include <unistd.h> first.
12334 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
12336 * modules/dup2 (Depends-on): Add unistd.
12337 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12339 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
12340 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
12341 REPLACE_CHOWN. Don't define chown as a macro here.
12342 * modules/chown (Depends-on): Add unistd.
12343 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12345 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
12346 Add definition for GL_LINK_WARNING.
12347 (chown, dup2): New declarations.
12348 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
12350 (ftruncate): New declaration.
12351 (getcwd): New declaration, taken from old getcwd.h.
12352 (getlogin_r): New declaration, taken from old getlogin_r.h.
12353 (readlink): New declaration.
12354 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
12355 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
12356 (gl_PREREQ_UNISTD): Remove macro.
12357 (gl_UNISTD_MODULE_INDICATOR): New macro.
12358 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
12359 many new variables. Don't set UNISTD_H.
12360 * modules/unistd (Description): Change.
12361 (Depends-on): Add link-warning.
12362 (configure.ac): Update.
12363 (Makefile.am): Create unistd.h always. Substitute many new variables
12366 2007-02-18 Bruno Haible <bruno@clisp.org>
12368 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
12369 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
12371 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
12372 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
12373 * lib/getsubopt.h: Remove file.
12374 * modules/getsubopt (Files): Remove lib/getsubopt.h.
12375 (Depends-on): Add stdlib.
12376 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12377 (Includes): Use <stdlib.h> instead of getsubopt.h.
12378 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
12379 Set HAVE_GETSUBOPT.
12380 * lib/getsubopt.c: Don't include getsubopt.h.
12382 2007-02-18 Bruno Haible <bruno@clisp.org>
12384 * modules/fchdir (Depends-on): Add dup2.
12386 2007-02-18 Bruno Haible <bruno@clisp.org>
12388 * lib/stdlib_.h: Handle glibc's special invocation convention
12391 2007-02-18 Bruno Haible <bruno@clisp.org>
12393 * modules/stdlib-tests: New file.
12394 * tests/test-stdlib.c: New file.
12396 * modules/mkstemp (Files): Remove lib/mkstemp.h.
12397 (Depends-on): Add stdlib.
12398 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12399 (Includes): Use <stdlib.h> instead of mkstemp.h.
12400 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12401 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
12402 * lib/mkstemp.c: Don't include mkstemp.h.
12403 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
12404 * lib/stdlib--.h: Don't include mkstemp.h.
12406 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12407 (Depends-on): Add stdlib.
12408 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12409 (Includes): Use <stdlib.h> instead of mkdtemp.h.
12410 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12412 * lib/mkdtemp.c: Don't include mkdtemp.h.
12413 * lib/clean-temp.c: Don't include mkdtemp.h.
12415 * modules/exit (Files): Remove lib/exit.h.
12416 (Depends-on): Add stdlib.
12417 (Makefile.am): Remove lib_SOURCES.
12418 (Include): Use <stdlib.h> instead of exit.h.
12419 * lib/argmatch.c: Don't include exit.h.
12420 * lib/execute.c: Likewise.
12421 * lib/pagealign_alloc.c: Likewise.
12422 * lib/pipe.c: Likewise.
12423 * lib/wait-process.c: Likewise.
12424 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12425 * lib/exitfail.c: Likewise.
12426 * lib/savewd.c: Likewise.
12427 * lib/xsetenv.c: Likewise.
12429 * modules/stdlib: New file.
12430 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12431 and extra comments about mkstemp().
12432 * lib/exit.h: Remove file.
12433 * lib/mkdtemp.h: Remove file.
12434 * lib/mkstemp.h: Remove file.
12435 * m4/stdlib_h.m4: New file.
12436 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12438 2007-02-18 Bruno Haible <bruno@clisp.org>
12440 * modules/math-tests: New file.
12441 * tests/test-math.c: New file.
12443 * modules/math: New file.
12444 * modules/mathl (Files): Remove lib/mathl.h.
12445 (Depends-on): Add math.
12446 (Makefile.am): Don't mention mathl.h.
12447 (Include): Use <math.h> instead of mathl.h.
12448 * lib/math_.h: New file.
12449 * lib/mathl.h: Remove file.
12450 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12452 * lib/asinl.c: Likewise.
12453 * lib/atanl.c: Likewise.
12454 * lib/ceill.c: Likewise.
12455 * lib/cosl.c: Likewise.
12456 * lib/expl.c: Likewise.
12457 * lib/floorl.c: Likewise.
12458 * lib/frexpl.c: Likewise.
12459 * lib/ldexpl.c: Likewise.
12460 * lib/logl.c: Likewise.
12461 * lib/sincosl.c: Likewise.
12462 * lib/sinl.c: Likewise.
12463 * lib/sqrtl.c: Likewise.
12464 * lib/tanl.c: Likewise.
12465 * lib/trigl.c: Likewise.
12466 * m4/math_h.m4: New file.
12467 * MODULES.html.sh (Mathematics): Add math.
12469 2007-02-17 Bruno Haible <bruno@clisp.org>
12471 * modules/wctype-tests: New file.
12472 * tests/test-wctype.c: New file.
12474 * modules/wchar-tests: New file.
12475 * tests/test-wchar.c: New file.
12477 * modules/unistd-tests: New file.
12478 * tests/test-unistd.c: New file.
12480 * modules/time-tests: New file.
12481 * tests/test-time.c: New file.
12483 * modules/sysexits-tests: New file.
12484 * tests/test-sysexits.c: New file.
12486 * modules/sys_time-tests: New file.
12487 * tests/test-sys_time.c: New file.
12489 * modules/sys_stat-tests: New file.
12490 * tests/test-sys_stat.c: New file.
12492 * modules/sys_socket-tests: New file.
12493 * tests/test-sys_socket.c: New file.
12495 * modules/sys_select-tests: New file.
12496 * tests/test-sys_select.c: New file.
12498 * modules/string-tests: New file.
12499 * tests/test-string.c: New file.
12501 * modules/stdbool-tests: New file.
12502 * tests/test-stdbool.c: New file.
12504 * modules/netinet_in-tests: New file.
12505 * tests/test-netinet_in.c: New file.
12507 * modules/inttypes-tests: New file.
12508 * tests/test-inttypes.c: New file.
12510 * modules/fcntl-tests: New file.
12511 * tests/test-fcntl.c: New file.
12513 * modules/byteswap-tests: New file.
12514 * tests/test-byteswap.c: New file.
12516 * modules/arpa_inet-tests: New file.
12517 * tests/test-arpa_inet.c: New file.
12519 2007-02-17 Bruno Haible <bruno@clisp.org>
12521 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12522 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12523 if the corresponding module is not enabled. Emit link warnings if
12524 the function is used nevertheless.
12525 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12526 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12527 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12528 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12529 * modules/inttypes (Depends-on): Add link-warning.
12530 (Makefile.am): Copy the contents of build-aux/link-warning.h into
12531 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12532 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12533 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12534 * modules/imaxdiv (configure.ac): Likewise.
12535 * modules/strtoimax (configure.ac): Likewise.
12536 * modules/strtoumax (configure.ac): Likewise.
12538 2007-02-17 Bruno Haible <bruno@clisp.org>
12540 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12541 gl_STRING_MODULE_INDICATOR_DEFAULTS.
12542 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12543 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12545 2007-02-17 Bruno Haible <bruno@clisp.org>
12547 * modules/link-warning: New file.
12548 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12549 * lib/string_.h (GL_LINK_WARNING): Remove definition.
12550 * modules/string (Depends-on): Add link-warning.
12551 (Makefile.am): Copy the contents of build-aux/link-warning.h into
12553 * MODULES.html.sh (Support for building libraries and executables): Add
12556 2007-02-17 Bruno Haible <bruno@clisp.org>
12558 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12559 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12560 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12563 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
12564 Bruno Haible <bruno@clisp.org>
12566 * modules/tmpfile: New file.
12567 * lib/tmpfile.c: New file.
12568 * m4/tmpfile.m4: New file.
12569 * MODULES.html.sh (func_all_modules): New section "Input/output".
12571 2007-02-15 Bruno Haible <bruno@clisp.org>
12573 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12574 (supports_delete_on_close): New function.
12575 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12577 2007-02-14 Bruno Haible <bruno@clisp.org>
12579 * modules/mbspcasecmp-tests: New file.
12580 * tests/test-mbspcasecmp.sh: New file.
12581 * tests/test-mbspcasecmp.c: New file.
12583 New module mbspcasecmp.
12584 * modules/mbspcasecmp: New file.
12585 * lib/mbspcasecmp.c: New file.
12586 * lib/string_.h (strncasecmp): Change warning message.
12587 (mbspcasecmp): New declaration.
12588 * m4/mbspcasecmp.m4: New file.
12589 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12590 GNULIB_MBSPCASECMP.
12591 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
12592 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
12594 2007-02-14 Bruno Haible <bruno@clisp.org>
12596 * modules/mbsncasecmp-tests: New file.
12597 * tests/test-mbsncasecmp.sh: New file.
12598 * tests/test-mbsncasecmp.c: New file.
12600 New module mbsncasecmp.
12601 * modules/mbsncasecmp: New file.
12602 * lib/mbsncasecmp.c: New file.
12603 * lib/string_.h (mbsncasecmp): New declaration.
12604 * m4/mbsncasecmp.m4: New file.
12605 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12606 GNULIB_MBSNCASECMP.
12607 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
12608 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
12610 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
12612 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
12613 Verify that it doesn't overlap with our flags.
12614 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
12615 do not have the desired effect in multibyte locales; instead, use
12617 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
12618 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
12619 we don't require GNU fnmatch ourselves (if our users require it, they
12620 should do so explicitly).
12622 Fix regex code so it doesn't rely on strcasecmp.
12623 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
12624 Otherwise, include gnulib's langinfo.h.
12625 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
12626 undesirable behavior in non-C locales. Instead, rely on localecharset.
12627 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
12628 * modules/regex (FILES): Remove m4/codeset.m4.
12629 (Depends-on): Add localcharset. Remove strcase.
12631 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12633 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
12634 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12636 2007-02-13 Bruno Haible <bruno@clisp.org>
12638 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
12639 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12641 2007-02-12 Bruno Haible <bruno@clisp.org>
12643 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
12644 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
12645 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
12646 time warning rather than a link error.
12648 2007-02-12 Bruno Haible <bruno@clisp.org>
12650 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
12651 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12652 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12654 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
12656 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
12659 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
12661 New module 'time', so that apps can include <time.h> as per
12662 POSIX and GNU instead of separate include files like time_r.h
12663 and timegm.h. This implementation tries out a simpler approach
12664 for replacing decls in standard include files (as compared to
12665 the string module), somewhat as an experiment.
12667 * config/srclist.txt: Comment out mktime.c for now.
12668 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
12669 since it doesn't apply any more. Use generic wording instead.
12670 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
12672 * lib/time_.h, m4/time_h.m4, modules/time: New files.
12673 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
12674 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
12675 Don't include <sys/types.h>; no longer needed since we assume C89.
12676 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
12677 * lib/strftime.c: Likewise.
12678 * lib/time_r.c: Likewise.
12679 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
12680 * lib/nanosleep.c: Include <time.h> first, to check interface.
12681 * lib/strptime.c: Likewise.
12682 * lib/time_r.c: Likewise.
12683 * lib/timegm.c: Likewise.
12684 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
12686 * lib/timegm.c: Don't include timegm.h; no longer needed.
12687 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
12688 time.h now handles any problems in that area.
12689 (struct timespec, nanosleep): Remove; time.h now arranges for these.
12690 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
12691 that time.h defines struct timespec.
12692 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
12693 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
12695 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
12696 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
12697 needed. Set REPLACE_LOCALTIME.
12698 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
12699 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
12700 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
12701 nanosleep; time_h.m4 now does that. Don't require
12702 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
12703 module handles this now.
12704 * modules/getdate (Depends-on): Remove timespec. Add time.
12705 * modules/nanosleep (Depends-on): Likewise.
12706 * modules/stat-time (Depends-on): Likewise.
12707 * modules/nanosleep (Include): Include time.h, not timespec.h.
12708 * modules/strptime (Files): Remove lib/strptime.h.
12709 (Depends-on): Add extensions, time.
12710 (Include): Include time.h, not strptime.h.
12711 * modules/time_r (Files): Remove lib/time_r.h.
12712 (Depends-on): Add time.
12713 (Include): Include time.h, not time_r.h.
12714 * modules/timegm: Likewise.
12715 * modules/timespec (Description): Now does timespec-related decls
12716 of our own, instead of struct timespec itself.
12717 (Depends-on): Add time; remove extensions.
12718 (Maintainer): Add self.
12719 * modules/utimecmp (Depends-on): Add time; remove timespec.
12720 * modules/utimens (Depends-on): Likewise.
12721 * modules/xnanosleep (Depends-on): Likewise.
12723 2007-02-11 Bruno Haible <bruno@clisp.org>
12725 * lib/c-strstr.c: Include allocsa.h.
12726 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12727 * lib/c-strcasestr.c: Include allocsa.h.
12728 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12729 * lib/strcasestr.c: Include allocsa.h.
12730 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
12731 * lib/mbsstr.c: Include allocsa.h.
12732 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12733 allocsa/freesa instead of malloc/free.
12734 * lib/mbscasestr.c: Include allocsa.h.
12735 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
12736 allocsa/freesa instead of malloc/free.
12737 * modules/c-strstr (Depends-on): Add allocsa.
12738 * modules/c-strcasestr (Depends-on): Likewise.
12739 * modules/strcasestr (Depends-on): Likewise.
12740 * modules/mbsstr (Depends-on): Likewise.
12741 * modules/mbscasestr (Depends-on): Likewise.
12743 2007-02-11 Bruno Haible <bruno@clisp.org>
12745 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
12747 * modules/mbsspn-tests: New file.
12748 * tests/test-mbsspn.sh: New file.
12749 * tests/test-mbsspn.c: New file.
12751 2007-02-11 Bruno Haible <bruno@clisp.org>
12753 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
12755 * modules/mbspbrk-tests: New file.
12756 * tests/test-mbspbrk.sh: New file.
12757 * tests/test-mbspbrk.c: New file.
12759 2007-02-11 Bruno Haible <bruno@clisp.org>
12761 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
12764 * modules/mbscspn-tests: New file.
12765 * tests/test-mbscspn.sh: New file.
12766 * tests/test-mbscspn.c: New file.
12768 2007-02-11 Bruno Haible <bruno@clisp.org>
12770 * modules/mbscasecmp-tests: New file.
12771 * tests/test-mbscasecmp.sh: New file.
12772 * tests/test-mbscasecmp.c: New file.
12774 2007-02-11 Bruno Haible <bruno@clisp.org>
12776 Ensure O(n) worst-case complexity of mbscasestr.
12777 * lib/mbscasestr.c: Include stdbool.h.
12778 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12780 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
12781 the bookkeeping indicates that it's worth it.
12782 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
12784 * modules/mbscasestr-tests: New file.
12785 * tests/test-mbscasestr1.c: New file.
12786 * tests/test-mbscasestr2.sh: New file.
12787 * tests/test-mbscasestr2.c: New file.
12788 * tests/test-mbscasestr3.sh: New file.
12789 * tests/test-mbscasestr3.c: New file.
12790 * tests/test-mbscasestr4.sh: New file.
12791 * tests/test-mbscasestr4.c: New file.
12792 * m4/locale-tr.m4: New file.
12794 2007-02-11 Bruno Haible <bruno@clisp.org>
12796 Ensure O(n) worst-case complexity of mbsstr.
12797 * lib/mbsstr.c: Include stdbool.h.
12798 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
12800 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
12801 bookkeeping indicates that it's worth it.
12802 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
12804 * modules/mbsstr-tests: New file.
12805 * tests/test-mbsstr1.c: New file.
12806 * tests/test-mbsstr2.sh: New file.
12807 * tests/test-mbsstr2.c: New file.
12808 * tests/test-mbsstr3.sh: New file.
12809 * tests/test-mbsstr3.c: New file.
12810 * m4/locale-fr.m4: New file.
12812 2007-02-11 Bruno Haible <bruno@clisp.org>
12814 * lib/mbsrchr.c (mbsrchr): Fix bug.
12816 * modules/mbsrchr-tests: New file.
12817 * tests/test-mbsrchr.sh: New file.
12818 * tests/test-mbsrchr.c: New file.
12820 2007-02-11 Bruno Haible <bruno@clisp.org>
12822 * lib/mbschr.c (mbschr): Fix bug.
12824 * modules/mbschr-tests: New file.
12825 * tests/test-mbschr.sh: New file.
12826 * tests/test-mbschr.c: New file.
12827 * m4/locale-zh.m4: New file.
12829 2007-02-11 Bruno Haible <bruno@clisp.org>
12831 Support for copying multibyte string iterators.
12832 * lib/mbiter.h: Include <string.h>.
12833 (mbiter_multi_copy): New function.
12834 (mbi_copy): New macro.
12835 * lib/mbuiter.h: Include <string.h>.
12836 (mbuiter_multi_copy): New function.
12837 (mbui_copy): New macro.
12839 2007-02-11 Bruno Haible <bruno@clisp.org>
12842 * modules/mbslen: New file.
12843 * lib/mbslen.c: New file.
12844 * lib/string_.h (mbslen): New declaration.
12845 * m4/mbslen.m4: New file.
12846 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12848 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
12849 * MODULES.html.sh (Internationalization functions): Add mbslen.
12851 2007-02-11 Bruno Haible <bruno@clisp.org>
12853 Ensure O(n) worst-case complexity of strcasestr substitute.
12854 * lib/strcasestr.c: Include stdbool.h.
12855 (knuth_morris_pratt): New function.
12856 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12857 bookkeeping indicates that it's worth it.
12858 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
12860 * modules/strcasestr-tests: New file.
12861 * tests/test-strcasestr.c: New file.
12863 2007-02-11 Bruno Haible <bruno@clisp.org>
12865 Ensure O(n) worst-case complexity of c_strcasestr.
12866 * lib/c-strcasestr.c: Include stdbool.h, string.h.
12867 (knuth_morris_pratt): New function.
12868 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
12869 the bookkeeping indicates that it's worth it.
12870 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
12872 * modules/c-strcasestr-tests: New file.
12873 * tests/test-c-strcasestr.c: New file.
12875 2007-02-11 Bruno Haible <bruno@clisp.org>
12877 Ensure O(n) worst-case complexity of c_strstr.
12878 * lib/c-strstr.c: Include stdbool.h, string.h.
12879 (knuth_morris_pratt): New function.
12880 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
12881 bookkeeping indicates that it's worth it.
12882 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
12884 * lib/c-strstr.c: Complete rewrite for maintainability.
12886 * modules/c-strstr-tests: New file.
12887 * tests/test-c-strstr.c: New file.
12889 2007-02-11 Bruno Haible <bruno@clisp.org>
12891 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
12892 5.2.1 and earlier, whereby \055 was treated just like the range
12894 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
12896 2007-02-08 Bruno Haible <bruno@clisp.org>
12898 * modules/regex (Depends-on): Add stdbool.
12899 Reported by Dalibor Topic <robilad@kaffe.org>.
12901 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
12903 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
12904 Prefer returning from main to exiting from it.
12905 Remove unnecessary parens after sizeof.
12907 2007-02-05 Bruno Haible <bruno@clisp.org>
12910 * modules/mbssep: New file.
12911 * lib/mbssep.c: New file.
12912 * lib/string_.h (strsep): Add a conditional link warning.
12913 (mbssep): New declaration.
12914 * m4/mbssep.m4: New file.
12915 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12917 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
12918 * MODULES.html.sh (Internationalization functions): Add mbssep.
12920 2007-02-05 Bruno Haible <bruno@clisp.org>
12922 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
12923 Optimize search in case of 1 delimiter.
12925 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
12927 * lib/acl.h: Include sys/types.h before sys/acl.h.
12929 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
12931 Merge upstream fix for glibc bugzilla #3957:
12933 2007-02-05 Jakub Jelinek <jakub@redhat.com>
12935 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
12936 bit for RE_HAT_LISTS_NOT_NEWLINE.
12937 (build_charclass_op): Remove bogus comment.
12939 2007-02-05 Simon Josefsson <simon@josefsson.org>
12941 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
12943 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
12945 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
12946 * lib/memmem.c [!defined _LIBC]: Include config.h.
12948 2007-02-04 Bruno Haible <bruno@clisp.org>
12950 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
12953 2007-02-04 Bruno Haible <bruno@clisp.org>
12955 New module mbstok_r.
12956 * modules/mbstok_r: New file.
12957 * lib/mbstok_r.c: New file.
12958 * lib/string_.h (strtok_r): Change argument names to match the
12959 comments. Add a conditional link warning.
12960 (mbstok_r): New declaration.
12961 * m4/mbstok_r.m4: New file.
12962 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12964 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
12965 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
12967 2007-02-04 Bruno Haible <bruno@clisp.org>
12970 * modules/mbsspn: New file.
12971 * lib/mbsspn.c: New file.
12972 * lib/string_.h (strspn): Add a conditional link warning.
12973 (mbsspn): New declaration.
12974 * m4/mbsspn.m4: New file.
12975 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12977 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
12978 * MODULES.html.sh (Internationalization functions): Add mbsspn.
12980 2007-02-04 Bruno Haible <bruno@clisp.org>
12982 New module mbspbrk.
12983 * modules/mbspbrk: New file.
12984 * lib/mbspbrk.c: New file.
12985 * lib/string_.h (strpbrk): Add a conditional link warning.
12986 (mbspbrk): New declaration.
12987 * m4/mbspbrk.m4: New file.
12988 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
12990 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
12991 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
12993 2007-02-04 Bruno Haible <bruno@clisp.org>
12995 New module mbscspn.
12996 * modules/mbscspn: New file.
12997 * lib/mbscspn.c: New file.
12998 * lib/string_.h (strcspn): Add a conditional link warning.
12999 (mbscspn): New declaration.
13000 * m4/mbscspn.m4: New file.
13001 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13003 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
13004 * MODULES.html.sh (Internationalization functions): Add mbscspn.
13006 2007-02-04 Bruno Haible <bruno@clisp.org>
13008 New module mbscasestr, reduced goal of strcasestr.
13009 * modules/mbscasestr: New file.
13010 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
13011 (mbscasestr): Renamed from strcasestr.
13012 * lib/strcasestr.c: Don't include mbuiter.h.
13013 (strcasestr): Remove support for multibyte locales.
13014 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
13015 Change the conditional link warning.
13016 (mbscasestr): New declaration.
13017 * m4/mbscasestr.m4: New file.
13018 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
13019 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
13020 REPLACE_STRCASESTR.
13021 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
13022 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13023 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13024 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
13025 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
13026 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13027 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
13028 (Depends-on): Remove mbuiter.
13029 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
13031 2007-02-04 Bruno Haible <bruno@clisp.org>
13033 Simplify handling of strncasecmp.
13034 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
13035 the conditional link warning.
13036 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13037 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
13038 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
13039 * modules/strcase (configure.ac): Don't invoke
13040 gl_STRING_MODULE_INDICATOR.
13041 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
13043 2007-02-04 Bruno Haible <bruno@clisp.org>
13045 New module mbscasecmp, reduced goal of strcasecmp.
13046 * modules/mbscasecmp: New file.
13047 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
13048 (mbscasecmp): Renamed from strcasecmp.
13049 * lib/strcasecmp.c: Don't include mbuiter.h.
13050 (strcasecmp): Remove support for multibyte locales.
13051 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
13052 Change the conditional link warning.
13053 (mbscasecmp): New declaration.
13054 * m4/mbscasecmp.m4: New file.
13055 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
13056 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
13057 REPLACE_STRCASECMP.
13058 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
13059 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13061 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
13062 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
13063 * modules/strcase (Files): Remove m4/mbrtowc.m4.
13064 (Depends-on): Remove mbuiter.
13065 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
13067 2007-02-04 Bruno Haible <bruno@clisp.org>
13069 New module mbsstr. Remove module strstr.
13070 * modules/mbsstr: New file.
13071 * modules/strstr: Remove file.
13072 * lib/mbsstr.c: Renamed from lib/strstr.c.
13073 (mbsstr): Renamed from strstr.
13074 * lib/string_.h (strstr): Remove declaration. Change the conditional
13076 (mbsstr): New declaration.
13077 * m4/mbsstr.m4: New file.
13078 * m4/strstr.m4: Remove file.
13079 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13081 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
13082 Don't initialize GNULIB_STRSTR.
13083 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
13084 substitute GNULIB_STRSTR and REPLACE_STRSTR.
13085 * MODULES.html.sh (Internationalization functions): Add mbsstr.
13086 (Support for systems lacking ANSI C 89): Remove strstr.
13088 2007-02-04 Bruno Haible <bruno@clisp.org>
13090 New module mbsrchr.
13091 * modules/mbsrchr: New file.
13092 * lib/mbsrchr.c: New file.
13093 * lib/string_.h (strrchr): Add a conditional link warning.
13094 (mbsrchr): New declaration.
13095 * m4/mbsrchr.m4: New file.
13096 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13098 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
13099 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
13101 2007-02-04 Bruno Haible <bruno@clisp.org>
13104 * modules/mbschr: New file.
13105 * lib/mbschr.c: New file.
13106 * lib/string_.h (strchr): Add a conditional link warning.
13107 (mbschr): New declaration.
13108 * m4/mbschr.m4: New file.
13109 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13111 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
13112 * MODULES.html.sh (Internationalization functions): Add mbschr.
13114 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
13116 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
13118 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
13120 2007-02-04 Bruno Haible <bruno@clisp.org>
13122 New module description section 'configure.ac-early'.
13123 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
13124 (func_get_autoconf_early_snippet): New function.
13125 (func_import, func_create_testdir): Use it. Remove special cases for
13126 modules 'extensions' and 'lock'.
13127 * modules/extensions (configure.ac-early): Require
13128 gl_USE_SYSTEM_EXTENSIONS.
13129 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
13131 2007-02-04 Bruno Haible <bruno@clisp.org>
13133 Make use of gcj-4.3's -fsource and -ftarget option.
13134 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
13135 and if so try the options -fsource and -ftarget.
13136 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
13137 source_version, ftarget_option, target_version arguments.
13138 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
13139 (is_envjavac_oldgcj_14_14_usable): Renamed from
13140 is_envjavac_gcj_14_14_usable.
13141 (is_envjavac_oldgcj_14_13_usable): Renamed from
13142 is_envjavac_gcj_14_13_usable.
13143 (is_gcj_present): Update.
13144 (is_gcj_43, is_gcj43_usable): New functions.
13145 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
13146 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
13147 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
13148 try the options -fsource and -ftarget.
13150 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
13152 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
13153 checking code. Set N = ceil (1.5 * N) rather than to a slightly
13156 2007-02-03 Jim Meyering <jim@meyering.net>
13158 Give tools a better chance to allocate space for very large buffers.
13159 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
13161 Make pwd and readlink work also when run with an unreadable parent dir
13162 on systems with openat support.
13163 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
13164 provided getcwd function, even when we have openat support.
13165 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
13167 2007-02-02 Bruno Haible <bruno@clisp.org>
13169 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13170 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
13171 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
13172 portability problems if one of these functions is only used on specific
13174 Reported by Paul Eggert.
13176 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
13178 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
13179 is causing more trouble than it's curing.
13180 * lib/regex_internal.h (__mempcpy): Remove.
13181 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
13182 (and make the code a tad smaller to boot).
13183 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
13185 2007-02-02 Jim Meyering <jim@meyering.net>
13187 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
13188 section, not in the Makefile.am: one.
13190 2007-02-02 Eric Blake <ebb9@byu.net>
13192 * lib/strchrnul.c: Always include config.h first.
13194 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
13195 gnulib strstr is not necessary here.
13197 2007-02-02 Simon Josefsson <simon@josefsson.org>
13199 * m4/socklen.m4: Fix typo.
13201 2007-02-02 Eric Blake <ebb9@byu.net>
13203 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
13204 * modules/netinet_in (Makefile.am): Likewise.
13206 2007-02-01 Bruno Haible <bruno@clisp.org>
13208 * lib/string_.h (GL_LINK_WARNING): New macro.
13209 (strcasecmp, strstr, strcasestr): If provided by the system,
13210 conditionally define as a macro that leads to a warning instead of to
13212 (strncasecmp): Conditionally define as a macro that leads to a warning.
13214 2007-02-01 Karl Berry <karl@gnu.org>
13216 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
13218 2007-02-01 Bruno Haible <bruno@clisp.org>
13220 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
13223 2007-02-01 Eric Blake <ebb9@byu.net>
13225 * modules/regex (Depends-on): Revert dependence on mempcpy.
13226 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
13227 module's definition of mempcpy.
13228 Reported by Paul Eggert.
13230 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
13232 * lib/string_.h: If the gnulib module XYZ is not present, undefine
13233 the symbol XYZ before redefining it. This fixes a problem with
13234 programs that don't use XYZ, when compiled on systems that define
13235 XYZ to something else.
13237 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
13239 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
13240 occurs when "mkdir -m foo" creates a setgid directory that is (1)
13241 writeable to group or other and (2) is intended to have a special
13242 mode bit that is set or cleared. In such a case, the directory
13243 should be neither group- nor other-writeable until the special
13244 mode bits are right.
13246 2007-01-31 Eric Blake <ebb9@byu.net>
13248 * modules/mountlist (Depends-on): Add strstr.
13250 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
13252 * modules/string (Makefile.am): Remove redundant replacement.
13253 * modules/regex (Depends-on): Add mempcpy.
13255 2007-01-31 Bruno Haible <bruno@clisp.org>
13257 New module description field 'Link'.
13258 * gnulib-tool (func_usage): Document --extract-link-directive.
13259 (sed_extract_prog): Recognize 'Link' directive.
13260 (func_get_link_directive): New function.
13261 (func_import): Show summary of link directives.
13262 Handle --extract-link-directive option.
13263 * modules/acl (Link): New section.
13264 * modules/clock-time (Link): New section.
13265 * modules/euidaccess (Link): New section.
13266 * modules/gettext (Link): New section.
13267 * modules/iconv (Link): New section.
13268 * modules/lock (Link): New section.
13269 * modules/nanosleep (Link): New section.
13270 * modules/readline (Link): New section.
13272 2007-01-27 Bruno Haible <bruno@clisp.org>
13274 Enforce the use of gnulib modules for unportable <string.h> functions.
13275 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
13276 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
13277 (gl_HEADER_STRING_H_BODY): Require it.
13278 * lib/string_.h: If the gnulib module XYZ is not present, redefine
13279 the symbol XYZ to one that gives a link error.
13280 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
13281 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
13282 * modules/mempcpy (configure.ac): Likewise.
13283 * modules/memrchr (configure.ac): Likewise.
13284 * modules/stpcpy (configure.ac): Likewise.
13285 * modules/stpncpy (configure.ac): Likewise.
13286 * modules/strcase (configure.ac): Likewise.
13287 * modules/strcasestr (configure.ac): Likewise.
13288 * modules/strchrnul (configure.ac): Likewise.
13289 * modules/strdup (configure.ac): Likewise.
13290 * modules/strndup (configure.ac): Likewise.
13291 * modules/strnlen (configure.ac): Likewise.
13292 * modules/strpbrk (configure.ac): Likewise.
13293 * modules/strsep (configure.ac): Likewise.
13294 * modules/strstr (configure.ac): Likewise.
13295 * modules/strtok_r (configure.ac): Likewise.
13297 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
13299 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
13301 2007-01-30 Jim Meyering <jim@meyering.net>
13303 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
13305 2007-01-29 Bruno Haible <bruno@clisp.org>
13307 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
13308 * lib/execute.c: Likewise.
13309 * lib/pipe.c: Likewise.
13310 * lib/printf-args.h: Likewise.
13311 * lib/printf-args.c: Likewise.
13312 * lib/printf-parse.c: Likewise.
13313 * lib/vasnprintf.c: Likewise.
13315 2007-01-29 Eric Blake <ebb9@byu.net>
13317 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
13320 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
13322 * lib/strptime.h (strptime): Use 'restrict' for args where
13323 POSIX requires this.
13324 * lib/strptime.c (strptime): Likewise.
13325 Change license notice from LGPL to GPL, since gnulib-tool will
13326 change this as needed.
13327 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
13329 Include "strptime.h" first, to check interface.
13330 Do not #undef _LIBC and _NL_CURRENT.
13331 Do not include <stdlib.h>; no longer needed.
13332 Include "time_r.h" and declare ptime_locale_status
13333 only if _LIBC is not defined.
13334 (__P): Remove unused macro.
13335 (match_string): Bring back glibc version, but use it only if _LIBC
13337 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
13338 Remove unnecessary assertion and abort() call.
13339 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
13340 * m4/strptime.m4: Fix serial number comment.
13341 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
13342 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
13343 (Depends-on): Add time_r.
13345 2007-01-29 Bruno Haible <bruno@clisp.org>
13347 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13349 * modules/strptime (Depends-on): Add stdbool.
13350 * lib/strptime.h: Include <time.h> always. Add comments.
13352 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
13354 * modules/strptime: New file.
13355 * lib/strptime.h: New file.
13356 * lib/strptime.c: New file.
13357 * m4/strptime.m4: New file.
13359 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
13361 * MODULES.html.sh: New module mpsort.
13362 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
13364 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
13365 a circularity problem with HP-UX ia64 reported by Bob Proulx in
13366 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
13368 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
13370 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
13372 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
13373 the parameter matches the prototype.
13375 2007-01-28 Jim Meyering <jim@meyering.net>
13377 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
13378 sys/time.h here, reverting that part of the previous patch:
13379 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
13381 2007-01-28 Bruno Haible <bruno@clisp.org>
13383 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
13384 value of $(SYS_TIME_H).
13385 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
13386 remove it conditionally, too. [added by Jim Meyering]
13387 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
13388 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13389 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
13390 GETTIMEOFDAY_REPLACEMENT to 1.
13392 2007-01-28 Bruno Haible <bruno@clisp.org>
13394 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
13395 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
13396 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
13397 Set UNISTD_H instead of UNISTD_H2.
13398 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
13400 2007-01-28 Bruno Haible <bruno@clisp.org>
13402 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
13403 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
13405 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13407 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13408 (func_create_testdir): Ensure C locale for `grep' and `tr'
13410 (func_create_megatestdir): Avoid one `grep'. Fix bug in
13411 ACLOCAL_AMFLAGS parsing state machine.
13413 2007-01-27 Bruno Haible <bruno@clisp.org>
13415 * modules/unistr/base: Update.
13417 2007-01-27 Bruno Haible <bruno@clisp.org>
13419 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13420 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13421 * modules/unistr/u32-mbtouc-unsafe: Renamed from
13422 modules/unistr/u32-mbtouc.
13423 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13424 * lib/unistr.h: Update.
13425 * lib/linebreak.c: Update.
13426 * modules/unistr/u32-mbtouc: Renamed from
13427 modules/unistr/u32-mbtouc-safe.
13428 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13429 * lib/unistr.h: Update.
13430 * lib/unistr/u32-to-u8.c: Update.
13431 * lib/unistr/u32-to-u16.c: Update.
13433 2007-01-27 Bruno Haible <bruno@clisp.org>
13435 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13436 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13437 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13438 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13439 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13440 * modules/unistr/u16-mbtouc-unsafe: Renamed from
13441 modules/unistr/u16-mbtouc.
13442 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13443 * lib/unistr.h: Update.
13444 * lib/linebreak.c: Update.
13445 * modules/linebreak: Update.
13446 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13447 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13448 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13449 * modules/unistr/u16-mbtouc: Renamed from
13450 modules/unistr/u16-mbtouc-safe.
13451 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13452 * lib/unistr.h: Update.
13453 * lib/unistr/u16-to-u8.c: Update.
13454 * modules/unistr/u16-to-u8: Update.
13455 * lib/unistr/u16-to-u32.c: Update.
13456 * modules/unistr/u16-to-u32: Update.
13458 2007-01-27 Bruno Haible <bruno@clisp.org>
13460 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13461 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13462 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13463 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13464 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13465 * modules/unistr/u8-mbtouc-unsafe: Renamed from
13466 modules/unistr/u8-mbtouc.
13467 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13468 * lib/unistr.h: Update.
13469 * lib/striconveh.c: Update.
13470 * modules/striconveh: Update.
13471 * lib/linebreak.c: Update.
13472 * modules/linebreak: Update.
13473 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13474 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13475 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13476 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13477 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13478 * lib/unistr.h: Update.
13479 * lib/striconveh.c: Update.
13480 * modules/striconveh: Update.
13481 * lib/unistr/u8-to-u16.c: Update.
13482 * modules/unistr/u8-to-u16: Update.
13483 * lib/unistr/u8-to-u32.c: Update.
13484 * modules/unistr/u8-to-u32: Update.
13486 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13489 * lib/argz.c: Do not include strings.h nor memory.h, include
13490 string.h unconditionally. Patch by Simon Josefsson.
13492 2007-01-27 Bruno Haible <bruno@clisp.org>
13494 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13495 from gl_HEADER_STRING_H_BODY.
13496 (gl_HEADER_STRING_H_BODY): Require it.
13497 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13498 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13499 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13500 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13501 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13502 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13503 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13504 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13505 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13506 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13507 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13508 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13509 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13510 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13511 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13513 2007-01-27 Bruno Haible <bruno@clisp.org>
13515 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13516 check_PROGRAMS into noinst_PROGRAMS.
13517 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13518 check_PROGRAMS in this case.
13519 (func_import): Set for_test to false.
13520 (func_create_testdir): Set for_test to true.
13522 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13523 Bruno Haible <bruno@clisp.org>
13525 * modules/strcasestr (Files): Remove lib/strcasestr.h.
13526 (Depends-on): Add string.
13527 (Includes): Use <string.h> instead of strcasestr.h.
13528 * modules/string (Makefile.am): Also substitute the value of
13529 REPLACE_STRCASESTR.
13530 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13531 assume strcasestr is declared in <string.h> not <strings.h>. Also
13532 set REPLACE_STRCASESTR.
13533 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13534 REPLACE_STRCASESTR.
13535 * lib/strcasestr.h: Remove file.
13536 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13537 * lib/string_.h (strcasestr): New declaration.
13539 2007-01-27 Bruno Haible <bruno@clisp.org>
13541 * lib/string_.h: Use 'extern'.
13543 2007-01-27 Jim Meyering <jim@meyering.net>
13545 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13546 of set-but-not-used local, "q".
13548 * lib/mempcpy.c: Include <config.h> before <string.h>.
13549 This fixes a compilation error on HP-UX, due to the system's
13550 "restrict"-using mempcpy prototype.
13552 2007-01-26 Bruno Haible <bruno@clisp.org>
13554 Small optimization.
13555 * lib/javacomp.c: Include c-strstr.h.
13556 (is_envjavac_gcj): Use c_strstr instead of strstr.
13557 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13559 2007-01-26 Bruno Haible <bruno@clisp.org>
13561 * MODULES.html.sh (Unicode string functions): Add the new modules.
13563 * modules/uniconv/u32-strconv-to-locale: New file.
13564 * lib/uniconv/u32-strconv-to-locale.c: New file.
13566 * modules/uniconv/u16-strconv-to-locale: New file.
13567 * lib/uniconv/u16-strconv-to-locale.c: New file.
13569 * modules/uniconv/u8-strconv-to-locale: New file.
13570 * lib/uniconv/u8-strconv-to-locale.c: New file.
13572 * modules/uniconv/u32-strconv-from-locale: New file.
13573 * lib/uniconv/u32-strconv-from-locale.c: New file.
13575 * modules/uniconv/u16-strconv-from-locale: New file.
13576 * lib/uniconv/u16-strconv-from-locale.c: New file.
13578 * modules/uniconv/u8-strconv-from-locale: New file.
13579 * lib/uniconv/u8-strconv-from-locale.c: New file.
13581 * modules/uniconv/u32-strconv-to-enc: New file.
13582 * lib/uniconv/u32-strconv-to-enc.c: New file.
13583 * modules/uniconv/u32-strconv-to-enc-tests: New file.
13584 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
13586 * modules/uniconv/u16-strconv-to-enc: New file.
13587 * lib/uniconv/u16-strconv-to-enc.c: New file.
13588 * lib/uniconv/u-strconv-to-enc.h: New file.
13589 * modules/uniconv/u16-strconv-to-enc-tests: New file.
13590 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
13592 * modules/uniconv/u8-strconv-to-enc: New file.
13593 * lib/uniconv/u8-strconv-to-enc.c: New file.
13594 * modules/uniconv/u8-strconv-to-enc-tests: New file.
13595 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
13597 * modules/uniconv/u32-strconv-from-enc: New file.
13598 * lib/uniconv/u32-strconv-from-enc.c: New file.
13599 * modules/uniconv/u32-strconv-from-enc-tests: New file.
13600 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
13602 * modules/uniconv/u16-strconv-from-enc: New file.
13603 * lib/uniconv/u16-strconv-from-enc.c: New file.
13604 * modules/uniconv/u16-strconv-from-enc-tests: New file.
13605 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
13607 * modules/uniconv/u8-strconv-from-enc: New file.
13608 * lib/uniconv/u8-strconv-from-enc.c: New file.
13609 * lib/uniconv/u-strconv-from-enc.h: New file.
13610 * modules/uniconv/u8-strconv-from-enc-tests: New file.
13611 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
13613 * modules/uniconv/u32-conv-from-enc: New file.
13614 * lib/uniconv/u32-conv-from-enc.c: New file.
13615 * modules/uniconv/u32-conv-from-enc-tests: New file.
13616 * tests/uniconv/test-u32-conv-from-enc.c: New file.
13618 * modules/uniconv/u16-conv-from-enc: New file.
13619 * lib/uniconv/u16-conv-from-enc.c: New file.
13620 * lib/uniconv/u-conv-from-enc.h: New file.
13621 * modules/uniconv/u16-conv-from-enc-tests: New file.
13622 * tests/uniconv/test-u16-conv-from-enc.c: New file.
13624 * modules/uniconv/u8-conv-from-enc: New file.
13625 * lib/uniconv/u8-conv-from-enc.c: New file.
13626 * modules/uniconv/u8-conv-from-enc-tests: New file.
13627 * tests/uniconv/test-u8-conv-from-enc.c: New file.
13629 * modules/uniconv/base: New file.
13630 * lib/uniconv.h: New file.
13632 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
13634 * doc/gnulib-tool.texi (Initial import): Update to match current
13635 behavior with strdup module.
13636 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
13637 * lib/memmem.h: Remove; all uses removed. This is now done
13639 * lib/mempcpy.h: Likewise.
13640 * lib/memrchr.h: Likewise.
13641 * lib/stpcpy.h: Likewise.
13642 * lib/stpncpy.h: Likewise.
13643 * lib/strcase.h: Likewise.
13644 * lib/strchrnul.h: Likewise.
13645 * lib/strdup.h: Likewise.
13646 * lib/strndup.h: Likewise.
13647 * lib/strnlen.h: Likewise.
13648 * lib/strpbrk.h: Likewise.
13649 * lib/strsep.h: Likewise.
13650 * lib/strstr.h: Likewise.
13651 * lib/strtok_r.h: Likewise.
13652 * lib/string_.h: New file.
13653 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
13654 Rely on <string.h> instead.
13655 * lib/canon-host.c: Likewise.
13656 * lib/chdir-long.c: Likewise.
13657 * lib/concatpath.c: Likewise.
13658 * lib/exclude.c: Likewise.
13659 * lib/fchdir.c: Likewise.
13660 * lib/getaddrinfo.c: Likewise.
13661 * lib/getcwd.c: Likewise.
13662 * lib/getsubopt.c: Likewise.
13663 * lib/glob.c: Likewise.
13664 * lib/hard-locale.c: Likewise.
13665 * lib/iconvme.c: Likewise.
13666 * lib/javacomp.c: Likewise.
13667 * lib/mempcpy.c: Likewise.
13668 * lib/memrchr.c: Likewise.
13669 * lib/regex_internal.h: Likewise.
13670 * lib/stpncpy.c: Likewise.
13671 * lib/strcasecmp.c: Likewise.
13672 * lib/strchrnul.c: Likewise.
13673 * lib/strdup.c: Likewise.
13674 * lib/striconv.c: Likewise.
13675 * lib/striconveh.c: Likewise.
13676 * lib/striconveha.c: Likewise.
13677 * lib/strncasecmp.c: Likewise.
13678 * lib/strndup.c: Likewise.
13679 * lib/strnlen.c: Likewise.
13680 * lib/strsep.c: Likewise.
13681 * lib/strstr.c: Likewise.
13682 * lib/strtok_r.c: Likewise.
13683 * lib/userspec.c: Likewise.
13684 * lib/w32spawn.h: Likewise.
13685 * lib/xstrndup.c: Likewise.
13686 * lib/mountlist.c (strstr): Remove decl.
13687 * m4/string_h.m4: New file.
13688 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
13689 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
13690 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
13691 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
13692 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
13693 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
13694 Set REPLACE_STRCASECMP if necessary.
13695 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
13696 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
13697 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
13698 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
13699 HAVE_DECL_STRDUP if necessary.
13700 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
13701 since gl_FUNC_STRNDUP does that now.
13702 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
13703 Check for decl here...
13704 (gl_PREREQ_STRNLEN): ... not here.
13705 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
13706 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
13707 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
13708 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
13710 * modules/string: New file.
13711 * modules/memmem (Files): Remove special-purpose include file.
13712 (Depends-on): Add string.
13713 (Include): Include <string.h>, not the removed file.
13714 * modules/mempcpy: Likewise.
13715 * modules/memrchr: Likewise.
13716 * modules/stpcpy: Likewise.
13717 * modules/stpncpy: Likewise.
13718 * modules/strcase: Likewise.
13719 * modules/strchrnul: Likewise.
13720 * modules/strdup: Likewise.
13721 * modules/strndup: Likewise.
13722 * modules/strnlen: Likewise.
13723 * modules/strpbrk: Likewise.
13724 * modules/strsep: Likewise.
13725 * modules/strstr: Likewise.
13726 * modules/strtok_r: Likewise.
13727 * tests/test-dirname.c: Don't include "strdup.h", since
13728 <string.h> now suffices.
13729 * tests/test-memmem.c: Don't include "memmem.h", since
13730 <string.h> now suffices.
13732 2007-01-25 Bruno Haible <bruno@clisp.org>
13734 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
13737 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
13738 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
13739 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
13740 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
13742 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
13743 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
13744 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
13745 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
13746 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
13747 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
13749 2007-01-24 Bruno Haible <bruno@clisp.org>
13751 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
13752 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
13753 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
13754 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
13756 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
13757 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
13758 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13759 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
13760 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
13761 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
13763 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
13765 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
13766 Reported by Ralf Wildenhues.
13768 2007-01-24 Bruno Haible <bruno@clisp.org>
13770 Drop AC_REQUIRE calls that are redundant with the module dependencies.
13771 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
13773 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
13774 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
13775 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
13777 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
13779 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
13780 Don't use 'exit'; just return from 'main'.
13781 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
13783 * lib/fnmatch_.h: Readjust white space and comments to match
13784 glibc, to avoid spurious diffs.
13786 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
13788 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
13789 2004-12-01 change by Jakub Jelinek, since this code won't compile
13790 if !LIBC. Problem reported by Bob Proulx.
13792 2007-01-23 Bruno Haible <bruno@clisp.org>
13794 * lib/striconveh.c: Include c-strcaseeq.h.
13795 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
13796 * modules/striconveh (Depends-on): Add c-strcaseeq.
13798 2007-01-23 Bruno Haible <bruno@clisp.org>
13800 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
13802 * modules/c-strcaseeq: New file.
13803 * lib/c-strcaseeq.h: New file.
13805 * modules/streq: New file.
13806 * lib/streq.h: New file.
13808 2007-01-23 Bruno Haible <bruno@clisp.org>
13810 * modules/striconveha-tests: New file.
13811 * tests/test-striconveha.c: New file.
13813 * lib/striconveha.h: Include <stdbool.h>.
13814 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
13815 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
13816 (mem_iconveha_notranslit): Renamed from mem_iconveha.
13817 (mem_iconveha): New function.
13818 (str_iconveha_notranslit): Renamed from str_iconveha.
13819 (str_iconveha): New function.
13820 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
13823 2007-01-23 Bruno Haible <bruno@clisp.org>
13825 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
13826 encodings without forgiving before trying any encoding with handler.
13827 (str_iconveha): Try all encodings without forgiving before trying any
13828 encoding with handler.
13830 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
13832 Import the following changes from libc.
13834 2005-10-14 Ulrich Drepper <drepper@redhat.com>
13836 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
13838 2004-12-01 Jakub Jelinek <jakub@redhat.com>
13840 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
13841 normal_bracket label.
13843 2004-09-01 Jakub Jelinek <jakub@redhat.com>
13846 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
13847 to normal_bracket after fetching the next character.
13849 2007-01-22 Bruno Haible <bruno@clisp.org>
13851 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
13853 * lib/striconveh.c (iconv_carefully_1): New function.
13854 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
13856 (str_cd_iconveh): Update.
13857 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
13858 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
13859 * tests/test-striconveh.c (MAGIC): New macro.
13860 (new_offsets): New function.
13861 (main): Test call with and without offsets.
13863 2007-01-22 Bruno Haible <bruno@clisp.org>
13865 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
13866 * modules/sys_select (Makefile.am): Likewise.
13867 * modules/sys_socket (Makefile.am): Likewise.
13868 * modules/sys_time (Makefile.am): Likewise.
13870 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
13872 * modules/gettimeofday (License): Change from GPL to LGPL, since
13873 gettimeofday is a library function.
13875 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13877 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
13879 2007-01-21 Bruno Haible <bruno@clisp.org>
13881 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
13883 2007-01-21 Bruno Haible <bruno@clisp.org>
13885 * modules/striconveha: New file.
13886 * lib/striconveha.h: New file.
13887 * lib/striconveha.c: New file.
13888 * MODULES.html.sh (Internationalization functions): Add striconveha.
13889 * lib/striconv.c (str_iconv): Optimize the case of an empty input
13891 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
13893 2007-01-21 Bruno Haible <bruno@clisp.org>
13895 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
13896 * lib/striconveh.c (str_iconveh): Likewise.
13898 2007-01-21 Bruno Haible <bruno@clisp.org>
13900 * lib/striconveh.h (mem_iconveh): New declaration.
13901 * lib/striconveh.c (mem_iconveh): New function.
13902 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
13904 2007-01-21 Bruno Haible <bruno@clisp.org>
13906 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
13908 * lib/striconveh.h (mem_cd_iconveh): Change specification.
13909 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
13910 original result buffer.
13911 (str_cd_iconveh): Update.
13912 * tests/test-striconveh.c (main): Update.
13914 * lib/striconv.h (mem_cd_iconv): Change specification.
13915 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
13917 (str_cd_iconv): Update.
13918 * tests/test-striconv.c (main): Update.
13920 2007-01-21 Bruno Haible <bruno@clisp.org>
13922 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
13924 2007-01-20 Jim Meyering <jim@meyering.net>
13926 * lib/userspec.c (parse_with_separator): If a user or group string
13927 starts with "+", skip the corresponding name-to-ID look-up, since
13928 such a look-up must fail: user and group names may not include "+".
13930 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
13932 * lib/poll.c: Include sys/time.h and time.h unconditionally,
13933 since we now assume the sys_time module.
13934 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
13935 check for sys/time.h; no longer needed.
13936 * modules/poll (Depends-on): Depend on sys_time.
13938 2007-01-18 Bruno Haible <bruno@clisp.org>
13940 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
13941 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
13943 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
13946 * tests/test-gettimeofday.c: Include <time.h>.
13947 (dummy): Remove variable.
13949 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
13950 gl_HEADER_SYS_TIME_H.
13951 (gl_HEADER_SYS_TIME_H): New macro.
13953 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
13954 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13955 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13956 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
13957 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13958 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
13959 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
13960 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13961 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
13962 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
13963 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
13965 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
13966 last change; it caused a compilation error when cross-compiling to
13969 2007-01-18 Jim Meyering <jim@meyering.net>
13971 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
13972 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
13973 than the race-prone "test -d sys || mkdir sys".
13974 (configure.ac): Use AC_PROG_MKDIR_P.
13975 * modules/sys_select: Likewise.
13976 * modules/sys_socket: Likewise.
13977 * modules/sys_time: Likewise.
13979 2007-01-18 Eric Blake <ebb9@byu.net>
13981 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
13982 replace gettimeofday.
13983 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
13984 name, to avoid infinite recursion.
13986 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
13988 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
13990 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
13991 assume timespec.h defines struct timeval.
13992 * lib/settime.c: Likewise.
13993 * lib/utimens.c: Likewise.
13994 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
13995 since we now assume the gettimeofday module.
13996 * lib/tempname.c (__gen_tempname): Likewise.
13997 * lib/gettimeofday.h: Remove.
13998 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
13999 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
14000 Include <time.h>, for 'time()'.
14001 (localtime_buffer_addr): Also use this workaround if
14002 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
14003 to simplify the uses. All uses changed.
14004 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
14005 that #undef is inside {}, and 'const' follows type name consistently.
14006 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
14007 (gettimeofday): Do not use the maximum possible value for
14008 tv->tv_usec, since that might break usages other than ls.c.
14009 Instead, we'll leave ls.c alone. This undoes today's patch
14010 by Bruno. Add a compile-time warning for 1s-clock resolution;
14011 we've never observed the problem but might as well keep the
14013 * lib/nanosleep.c: Include timespec.h first, for interface check.
14014 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
14015 now assume the sys_time module.
14016 * lib/tempname.c: Likewise.
14017 * lib/timespec.h: Likewise.
14018 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
14020 * lib/strftime.c: Likewise.
14021 * lib/timespec.h: Likewise.
14022 * lib/posixtm.c: Include posixtm.h first, for interface check.
14023 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
14024 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
14025 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
14026 * lib/sys_time_.h: New file.
14027 * lib/timespec.h (struct timespec): Use long int, not long.
14028 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14029 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
14030 Remove obsolescent call to AC_HEADER_TIME.
14031 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14032 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14033 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14034 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
14036 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14037 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
14038 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
14039 into the sys_time module. Check for gettimeofday just once.
14040 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
14041 for gettimeofday signature to just check the signature. Merely
14042 compile it, since linking doesn't test signature. Improve test for
14043 whether gettimeofday.o is actually needed.
14044 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
14045 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
14046 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
14047 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14048 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
14049 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
14050 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
14051 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
14052 than worrying about sys/time.h.
14053 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14054 Don't bother worrying about TIME_WITH_SYS_TIME.
14055 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14056 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
14057 * m4/sys_time_h.m4: New file.
14058 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
14059 Don't include sys/time.h. Return from main rather than exiting.
14060 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
14062 * modules/gethrxtime (Depends-on): Add sys_time.
14063 * modules/gettime (Depends-on): Likewise.
14064 * modules/gettimeofday (Depends-on): Likewise.
14065 * modules/nanosleep (Depends-on): Likewise.
14066 * modules/settime (Depends-on): Likewise.
14067 * modules/tempname (Depends-on): Likewise.
14068 * modules/utimens (Depends-on): Likewise.
14069 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
14070 (Include:) Change back to <sys/time.h>.
14071 (Maintainer:) Add self.
14072 * modules/sys_time: New file.
14073 * modules/tempname (Depends-on): Add gettimeofday.
14074 * tests/test-gettimeofday.c: Include <sys/time.h>
14075 rather than gettimeofday.h.
14077 2007-01-17 Bruno Haible <bruno@clisp.org>
14079 * gnulib-tool (func_get_license): Revert last patch. Instead, let
14080 the license default to GPL.
14081 (func_create_testdir): Don't complain if a module is LGPL and its
14082 tests module depends on GPLed modules.
14084 2007-01-17 Bruno Haible <bruno@clisp.org>
14086 * lib/gettimeofday.c (gettimeofday): Add code for the case
14087 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
14088 maximum possible value for tv->tv_usec, rather than the minimum one.
14090 2005-10-08 Martin Lambers <marlam@marlam.de>
14091 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
14092 2007-01-16 Bruno Haible <bruno@clisp.org>
14094 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
14095 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
14096 gl_FUNC_GETTIMEOFDAY.
14097 (Include): Add gettimeofday.h.
14098 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
14099 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
14100 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
14101 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
14102 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
14103 * lib/gettimeofday.h: New file.
14104 * lib/gettimeofday.c: Include <sys/timeb.h>.
14105 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
14106 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14107 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
14108 fall back on time().
14110 * tests/test-gettimeofday.c: New file.
14111 * modules/gettimeofday-tests: New file.
14113 2007-01-16 Eric Blake <ebb9@byu.net>
14115 * modules/fnmatch (Depends-on): Depend on wchar.
14116 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
14117 * m4/fnmatch.m4: Likewise.
14118 * modules/mbchar (Makefile.am): Assume <wchar.h>.
14119 * m4/mbchar.m4: Likewise.
14120 * modules/mbswidth (Depends-on): Depend on wchar.
14121 * lib/mbswidth.c: Assume <wchar.h>.
14122 * m4/mbswidth.m4: Likewise.
14123 * modules/quotearg (Depends-on): Depend on wchar.
14124 * lib/quotearg.c: Assume <wchar.h>.
14125 * m4/quotearg.m4: Likewise.
14126 * modules/regex (Depends-on): Depend on wchar.
14127 * lib/regex_internal.h: Assume <wchar.h>.
14128 * m4/regex.m4: Likewise.
14129 * modules/stdint (Depends-on): Depend on wchar.
14130 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
14131 * m4/stdint.m4: Likewise.
14132 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
14133 * modules/strftime (Depends-on): Depend on wchar.
14134 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
14135 * modules/strtol (Depends-on): Depend on wchar.
14136 * lib/strtol.c: Assume <wchar.h>.
14137 * modules/wcwidth (Depends-on): Depend on wchar.
14138 * lib/wcwidth.h: Assume <wchar.h>.
14139 * m4/wcwidth.m4: Likewise.
14141 2007-01-16 Bruno Haible <bruno@clisp.org>
14143 * modules/csharpexec-script: New, created from...
14144 * modules/csharpexec: ... this.
14146 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
14148 * modules/javaexec-script: New, created from...
14149 * modules/javaexec: ... this.
14151 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14153 * modules/poll (Dependencies): Add sys_select.
14155 2007-01-15 Jim Meyering <jim@meyering.net>
14157 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
14158 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
14159 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
14160 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
14162 2007-01-15 Bruno Haible <bruno@clisp.org>
14164 * modules/striconveh: New file.
14165 * lib/striconveh.h: New file.
14166 * lib/striconveh.c: New file.
14167 * MODULES.html.sh (Internationalization functions): Add striconveh.
14169 * modules/striconveh-tests: New file.
14170 * tests/test-striconveh.c: New file.
14172 2007-01-15 Bruno Haible <bruno@clisp.org>
14174 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
14175 not from GNU libiconv or GNU libc.
14177 2007-01-15 Bruno Haible <bruno@clisp.org>
14179 * doc/gnulib-intro.texi (Copyright): Explain the different license
14180 terms for module descriptions, autoconf macros, tests, documentation.
14182 2007-01-14 Bruno Haible <bruno@clisp.org>
14184 * modules/striconv-tests: New file.
14185 * tests/test-striconv.c: New file.
14187 2007-01-14 Bruno Haible <bruno@clisp.org>
14189 * modules/iconv-tests: New file.
14190 * tests/test-iconv.c: New file.
14192 2007-01-14 Bruno Haible <bruno@clisp.org>
14194 * gnulib-tool (func_get_license): For test modules, use the license of
14197 2007-01-14 Bruno Haible <bruno@clisp.org>
14199 * modules/iconv (Include): Clarify that <iconv.h> can only be included
14200 if iconv is found to exist.
14202 2007-01-14 Bruno Haible <bruno@clisp.org>
14204 * modules/c-ctype-tests: New file.
14205 * tests/test-c-ctype.c: New file.
14207 2007-01-14 Bruno Haible <bruno@clisp.org>
14209 * modules/binary-io-tests: New file.
14210 * tests/test-binary-io.sh: New file.
14211 * tests/test-binary-io.c: New file.
14213 2007-01-14 Bruno Haible <bruno@clisp.org>
14215 * modules/array-oset-tests: New file.
14216 * tests/test-array_oset.c: New file.
14218 2007-01-14 Bruno Haible <bruno@clisp.org>
14220 * modules/array-list-tests: New file.
14221 * tests/test-array_list.c: New file.
14223 2007-01-14 Bruno Haible <bruno@clisp.org>
14225 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
14227 Reported by Simon Josefsson in
14228 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
14230 2007-01-14 Bruno Haible <bruno@clisp.org>
14232 * modules/allocsa-tests: New file.
14233 * tests/test-allocsa.c: New file.
14235 2007-01-14 Bruno Haible <bruno@clisp.org>
14237 * modules/fchdir (Depends-on): Add absolute-header.
14238 * modules/unistd (Depends-on): Likewise.
14240 2006-12-30 Bruno Haible <bruno@clisp.org>
14242 * modules/fchdir: New file.
14243 * modules/unistd (Files): Add lib/unistd_.h.
14244 (Makefile.am): Generate unistd.h from unistd_.h.
14245 * lib/fchdir.c: New file.
14246 * lib/dirent_.h: New file.
14247 * lib/unistd_.h: New file.
14248 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
14249 * m4/fchdir.m4: New file.
14250 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
14251 (gl_HEADER_UNISTD): Invoke it.
14252 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
14254 * lib/backupfile.c (opendir, closedir): Undefine.
14255 * lib/chown.c (open, close): Undefine.
14256 * lib/clean-temp.c (open, close): Undefine.
14257 * lib/copy-file.c (open, close): Undefine.
14258 * lib/execute.c (open, close): Undefine.
14259 * lib/fsusage.c (open, close): Undefine.
14260 * lib/gc-gnulib.c (open, close): Undefine.
14261 * lib/getcwd.c (opendir, closedir): Undefine.
14262 * lib/glob.c (opendir, closedir): Undefine.
14263 * lib/javacomp.c (open, close): Undefine.
14264 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
14265 * lib/openat-proc.c (open, close): Undefine.
14266 * lib/pagealign_alloc.c (open, close): Undefine.
14267 * lib/pipe.c (open, close): Undefine.
14268 * lib/progreloc.c (open, close): Undefine.
14269 * lib/savedir.c (opendir, closedir): Undefine.
14270 * lib/utime.c (open, close): Undefine.
14271 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
14273 2007-01-10 Bruno Haible <bruno@clisp.org>
14275 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
14277 2007-01-12 Eric Blake <ebb9@byu.net>
14279 Provide a robust <wchar.h>. Further simplifications are now
14280 possible in other modules, but not included here.
14281 * modules/wchar: New module.
14282 * m4/wchar.m4: New file.
14283 * lib/wchar_.h: Likewise.
14284 * modules/mbchar (Depends-on): Depend on wchar, as the first use
14286 * MODULES.html.sh (Extended multibyte and wide character utilities):
14289 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
14291 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
14292 to a reasonable default for memory allocation.
14293 (xreadlink): Don't allocate a huge buffer, to work around a buggy
14294 file system that reports garbage st_size values for symlinks.
14295 Problem reported by Liyang Hu.
14297 2007-01-11 Simon Josefsson <simon@josefsson.org>
14299 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
14300 Emacs .#* auto-save files).
14302 2007-01-11 Bruno Haible <bruno@clisp.org>
14304 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
14307 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
14309 Use @...@ consistently in lib/wctype_.h.
14310 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
14311 on it being set to 1 or 0.
14312 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
14313 go back to AC_SUBSTing it.
14314 * modules/wctype (Makefile.am): Undo previous change.
14316 2007-01-10 Eric Blake <ebb9@byu.net>
14318 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
14319 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
14320 * modules/wctype (Makefile.am): Likewise.
14321 Reported by Chris McGuire.
14323 2007-01-10 Jim Meyering <jim@meyering.net>
14325 fts.c: a small readability/maintainability improvement
14326 * lib/fts.c (fts_read): Make this code slightly more readable and
14327 maintainable by hoisting the "sp->fts_cur = p" assignments to
14328 immediately follow the statements that set P. Derived from
14329 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
14331 2007-01-10 Eric Blake <ebb9@byu.net>
14333 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
14334 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
14335 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14336 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14337 Reported by Chris McGuire.
14339 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14341 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
14344 2007-01-09 Bruno Haible <bruno@clisp.org>
14346 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
14347 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
14349 (func_module): Use them.
14351 2007-01-09 Bruno Haible <bruno@clisp.org>
14353 * modules/unistr/base: New file.
14354 * lib/unistr.h: New file.
14356 * modules/unistr/u8-to-u16: New file.
14357 * lib/unistr/u8-to-u16.c: New file.
14359 * modules/unistr/u8-to-u32: New file.
14360 * lib/unistr/u8-to-u32.c: New file.
14362 * modules/unistr/u16-to-u8: New file.
14363 * lib/unistr/u16-to-u8.c: New file.
14365 * modules/unistr/u16-to-u32: New file.
14366 * lib/unistr/u16-to-u32.c: New file.
14368 * modules/unistr/u32-to-u8: New file.
14369 * lib/unistr/u32-to-u8.c: New file.
14371 * modules/unistr/u32-to-u16: New file.
14372 * lib/unistr/u32-to-u16.c: New file.
14374 * modules/unistr/u8-check: New file.
14375 * modules/unistr/u16-check: New file.
14376 * modules/unistr/u32-check: New file.
14377 * lib/unistr/u8-check.c: New file.
14378 * lib/unistr/u16-check.c: New file.
14379 * lib/unistr/u32-check.c: New file.
14381 * modules/unistr/u8-chr: New file.
14382 * modules/unistr/u16-chr: New file.
14383 * modules/unistr/u32-chr: New file.
14384 * lib/unistr/u8-chr.c: New file.
14385 * lib/unistr/u16-chr.c: New file.
14386 * lib/unistr/u32-chr.c: New file.
14388 * modules/unistr/u8-cmp: New file.
14389 * modules/unistr/u16-cmp: New file.
14390 * modules/unistr/u32-cmp: New file.
14391 * lib/unistr/u8-cmp.c: New file.
14392 * lib/unistr/u16-cmp.c: New file.
14393 * lib/unistr/u32-cmp.c: New file.
14395 * modules/unistr/u8-cpy: New file.
14396 * modules/unistr/u16-cpy: New file.
14397 * modules/unistr/u32-cpy: New file.
14398 * lib/unistr/u8-cpy.c: New file.
14399 * lib/unistr/u16-cpy.c: New file.
14400 * lib/unistr/u32-cpy.c: New file.
14401 * lib/unistr/u-cpy.h: New file.
14403 * modules/unistr/u8-cpy-alloc: New file.
14404 * modules/unistr/u16-cpy-alloc: New file.
14405 * modules/unistr/u32-cpy-alloc: New file.
14406 * lib/unistr/u8-cpy-alloc.c: New file.
14407 * lib/unistr/u16-cpy-alloc.c: New file.
14408 * lib/unistr/u32-cpy-alloc.c: New file.
14409 * lib/unistr/u-cpy-alloc.h: New file.
14411 * modules/unistr/u8-endswith: New file.
14412 * modules/unistr/u16-endswith: New file.
14413 * modules/unistr/u32-endswith: New file.
14414 * lib/unistr/u8-endswith.c: New file.
14415 * lib/unistr/u16-endswith.c: New file.
14416 * lib/unistr/u32-endswith.c: New file.
14417 * lib/unistr/u-endswith.h: New file.
14419 * modules/unistr/u8-mblen: New file.
14420 * modules/unistr/u16-mblen: New file.
14421 * modules/unistr/u32-mblen: New file.
14422 * lib/unistr/u8-mblen.c: New file.
14423 * lib/unistr/u16-mblen.c: New file.
14424 * lib/unistr/u32-mblen.c: New file.
14426 * modules/unistr/u8-mbtouc: New file.
14427 * modules/unistr/u16-mbtouc: New file.
14428 * modules/unistr/u32-mbtouc: New file.
14429 * lib/unistr/u8-mbtouc.c: New file.
14430 * lib/unistr/u16-mbtouc.c: New file.
14431 * lib/unistr/u32-mbtouc.c: New file.
14433 * modules/unistr/u8-mbtouc-safe: New file.
14434 * modules/unistr/u16-mbtouc-safe: New file.
14435 * modules/unistr/u32-mbtouc-safe: New file.
14436 * lib/unistr/u8-mbtouc-safe.c: New file.
14437 * lib/unistr/u16-mbtouc-safe.c: New file.
14438 * lib/unistr/u32-mbtouc-safe.c: New file.
14440 * modules/unistr/u8-move: New file.
14441 * modules/unistr/u16-move: New file.
14442 * modules/unistr/u32-move: New file.
14443 * lib/unistr/u8-move.c: New file.
14444 * lib/unistr/u16-move.c: New file.
14445 * lib/unistr/u32-move.c: New file.
14446 * lib/unistr/u-move.h: New file.
14448 * modules/unistr/u8-next: New file.
14449 * modules/unistr/u16-next: New file.
14450 * modules/unistr/u32-next: New file.
14451 * lib/unistr/u8-next.c: New file.
14452 * lib/unistr/u16-next.c: New file.
14453 * lib/unistr/u32-next.c: New file.
14455 * modules/unistr/u8-prev: New file.
14456 * modules/unistr/u16-prev: New file.
14457 * modules/unistr/u32-prev: New file.
14458 * lib/unistr/u8-prev.c: New file.
14459 * lib/unistr/u16-prev.c: New file.
14460 * lib/unistr/u32-prev.c: New file.
14462 * modules/unistr/u8-set: New file.
14463 * modules/unistr/u16-set: New file.
14464 * modules/unistr/u32-set: New file.
14465 * lib/unistr/u8-set.c: New file.
14466 * lib/unistr/u16-set.c: New file.
14467 * lib/unistr/u32-set.c: New file.
14468 * lib/unistr/u-set.h: New file.
14470 * modules/unistr/u8-startswith: New file.
14471 * modules/unistr/u16-startswith: New file.
14472 * modules/unistr/u32-startswith: New file.
14473 * lib/unistr/u8-startswith.c: New file.
14474 * lib/unistr/u16-startswith.c: New file.
14475 * lib/unistr/u32-startswith.c: New file.
14476 * lib/unistr/u-startswith.h: New file.
14478 * modules/unistr/u8-stpcpy: New file.
14479 * modules/unistr/u16-stpcpy: New file.
14480 * modules/unistr/u32-stpcpy: New file.
14481 * lib/unistr/u8-stpcpy.c: New file.
14482 * lib/unistr/u16-stpcpy.c: New file.
14483 * lib/unistr/u32-stpcpy.c: New file.
14484 * lib/unistr/u-stpcpy.h: New file.
14486 * modules/unistr/u8-stpncpy: New file.
14487 * modules/unistr/u16-stpncpy: New file.
14488 * modules/unistr/u32-stpncpy: New file.
14489 * lib/unistr/u8-stpncpy.c: New file.
14490 * lib/unistr/u16-stpncpy.c: New file.
14491 * lib/unistr/u32-stpncpy.c: New file.
14492 * lib/unistr/u-stpncpy.h: New file.
14494 * modules/unistr/u8-strcat: New file.
14495 * modules/unistr/u16-strcat: New file.
14496 * modules/unistr/u32-strcat: New file.
14497 * lib/unistr/u8-strcat.c: New file.
14498 * lib/unistr/u16-strcat.c: New file.
14499 * lib/unistr/u32-strcat.c: New file.
14500 * lib/unistr/u-strcat.h: New file.
14502 * modules/unistr/u8-strchr: New file.
14503 * modules/unistr/u16-strchr: New file.
14504 * modules/unistr/u32-strchr: New file.
14505 * lib/unistr/u8-strchr.c: New file.
14506 * lib/unistr/u16-strchr.c: New file.
14507 * lib/unistr/u32-strchr.c: New file.
14509 * modules/unistr/u8-strcmp: New file.
14510 * modules/unistr/u16-strcmp: New file.
14511 * modules/unistr/u32-strcmp: New file.
14512 * lib/unistr/u8-strcmp.c: New file.
14513 * lib/unistr/u16-strcmp.c: New file.
14514 * lib/unistr/u32-strcmp.c: New file.
14516 * modules/unistr/u8-strcpy: New file.
14517 * modules/unistr/u16-strcpy: New file.
14518 * modules/unistr/u32-strcpy: New file.
14519 * lib/unistr/u8-strcpy.c: New file.
14520 * lib/unistr/u16-strcpy.c: New file.
14521 * lib/unistr/u32-strcpy.c: New file.
14522 * lib/unistr/u-strcpy.h: New file.
14524 * modules/unistr/u8-strcspn: New file.
14525 * modules/unistr/u16-strcspn: New file.
14526 * modules/unistr/u32-strcspn: New file.
14527 * lib/unistr/u8-strcspn.c: New file.
14528 * lib/unistr/u16-strcspn.c: New file.
14529 * lib/unistr/u32-strcspn.c: New file.
14530 * lib/unistr/u-strcspn.h: New file.
14532 * modules/unistr/u8-strdup: New file.
14533 * modules/unistr/u16-strdup: New file.
14534 * modules/unistr/u32-strdup: New file.
14535 * lib/unistr/u8-strdup.c: New file.
14536 * lib/unistr/u16-strdup.c: New file.
14537 * lib/unistr/u32-strdup.c: New file.
14538 * lib/unistr/u-strdup.h: New file.
14540 * modules/unistr/u8-strlen: New file.
14541 * modules/unistr/u16-strlen: New file.
14542 * modules/unistr/u32-strlen: New file.
14543 * lib/unistr/u8-strlen.c: New file.
14544 * lib/unistr/u16-strlen.c: New file.
14545 * lib/unistr/u32-strlen.c: New file.
14546 * lib/unistr/u-strlen.h: New file.
14548 * modules/unistr/u8-strmblen: New file.
14549 * modules/unistr/u16-strmblen: New file.
14550 * modules/unistr/u32-strmblen: New file.
14551 * lib/unistr/u8-strmblen.c: New file.
14552 * lib/unistr/u16-strmblen.c: New file.
14553 * lib/unistr/u32-strmblen.c: New file.
14555 * modules/unistr/u8-strmbtouc: New file.
14556 * modules/unistr/u16-strmbtouc: New file.
14557 * modules/unistr/u32-strmbtouc: New file.
14558 * lib/unistr/u8-strmbtouc.c: New file.
14559 * lib/unistr/u16-strmbtouc.c: New file.
14560 * lib/unistr/u32-strmbtouc.c: New file.
14562 * modules/unistr/u8-strncat: New file.
14563 * modules/unistr/u16-strncat: New file.
14564 * modules/unistr/u32-strncat: New file.
14565 * lib/unistr/u8-strncat.c: New file.
14566 * lib/unistr/u16-strncat.c: New file.
14567 * lib/unistr/u32-strncat.c: New file.
14568 * lib/unistr/u-strncat.h: New file.
14570 * modules/unistr/u8-strncmp: New file.
14571 * modules/unistr/u16-strncmp: New file.
14572 * modules/unistr/u32-strncmp: New file.
14573 * lib/unistr/u8-strncmp.c: New file.
14574 * lib/unistr/u16-strncmp.c: New file.
14575 * lib/unistr/u32-strncmp.c: New file.
14577 * modules/unistr/u8-strncpy: New file.
14578 * modules/unistr/u16-strncpy: New file.
14579 * modules/unistr/u32-strncpy: New file.
14580 * lib/unistr/u8-strncpy.c: New file.
14581 * lib/unistr/u16-strncpy.c: New file.
14582 * lib/unistr/u32-strncpy.c: New file.
14583 * lib/unistr/u-strncpy.h: New file.
14585 * modules/unistr/u8-strnlen: New file.
14586 * modules/unistr/u16-strnlen: New file.
14587 * modules/unistr/u32-strnlen: New file.
14588 * lib/unistr/u8-strnlen.c: New file.
14589 * lib/unistr/u16-strnlen.c: New file.
14590 * lib/unistr/u32-strnlen.c: New file.
14591 * lib/unistr/u-strnlen.h: New file.
14593 * modules/unistr/u8-strpbrk: New file.
14594 * modules/unistr/u16-strpbrk: New file.
14595 * modules/unistr/u32-strpbrk: New file.
14596 * lib/unistr/u8-strpbrk.c: New file.
14597 * lib/unistr/u16-strpbrk.c: New file.
14598 * lib/unistr/u32-strpbrk.c: New file.
14599 * lib/unistr/u-strpbrk.h: New file.
14601 * modules/unistr/u8-strrchr: New file.
14602 * modules/unistr/u16-strrchr: New file.
14603 * modules/unistr/u32-strrchr: New file.
14604 * lib/unistr/u8-strrchr.c: New file.
14605 * lib/unistr/u16-strrchr.c: New file.
14606 * lib/unistr/u32-strrchr.c: New file.
14608 * modules/unistr/u8-strspn: New file.
14609 * modules/unistr/u16-strspn: New file.
14610 * modules/unistr/u32-strspn: New file.
14611 * lib/unistr/u8-strspn.c: New file.
14612 * lib/unistr/u16-strspn.c: New file.
14613 * lib/unistr/u32-strspn.c: New file.
14614 * lib/unistr/u-strspn.h: New file.
14616 * modules/unistr/u8-strstr: New file.
14617 * modules/unistr/u16-strstr: New file.
14618 * modules/unistr/u32-strstr: New file.
14619 * lib/unistr/u8-strstr.c: New file.
14620 * lib/unistr/u16-strstr.c: New file.
14621 * lib/unistr/u32-strstr.c: New file.
14622 * lib/unistr/u-strstr.h: New file.
14624 * modules/unistr/u8-strtok: New file.
14625 * modules/unistr/u16-strtok: New file.
14626 * modules/unistr/u32-strtok: New file.
14627 * lib/unistr/u8-strtok.c: New file.
14628 * lib/unistr/u16-strtok.c: New file.
14629 * lib/unistr/u32-strtok.c: New file.
14630 * lib/unistr/u-strtok.h: New file.
14632 * modules/unistr/u8-uctomb: New file.
14633 * modules/unistr/u16-uctomb: New file.
14634 * modules/unistr/u32-uctomb: New file.
14635 * lib/unistr/u8-uctomb.c: New file.
14636 * lib/unistr/u16-uctomb.c: New file.
14637 * lib/unistr/u32-uctomb.c: New file.
14639 * MODULES.html.sh (Unicode string functions): Add the new modules.
14641 2007-01-08 Bruno Haible <bruno@clisp.org>
14643 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
14644 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
14647 2007-01-08 Karl Berry <karl@gnu.org>
14649 * doc/error.texi: mention that main() fns must set program_name
14650 when progname is used.
14652 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
14654 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
14655 WCTYPE_H is empty, for the benefit of builds from non-distclean
14656 directories. Problem reported by Eric Blake in
14657 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
14659 2007-01-08 Bruno Haible <bruno@clisp.org>
14661 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
14662 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
14663 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
14664 PROVIDE_CANONICALIZE_FILENAME_MODE.
14665 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
14667 2007-01-08 Bruno Haible <bruno@clisp.org>
14669 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
14670 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
14671 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
14672 * lib/fts.c: Likewise.
14673 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
14675 2006-12-25 Bruno Haible <bruno@clisp.org>
14677 * modules/utf8-ucs4-safe: New file.
14678 * lib/utf8-ucs4-safe.h: New file.
14679 * lib/unistr/utf8-ucs4-safe.c: New file.
14681 * modules/utf16-ucs4-safe: New file.
14682 * lib/utf16-ucs4-safe.h: New file.
14683 * lib/unistr/utf16-ucs4-safe.c: New file.
14685 * MODULES.html.sh (Unicode string functions): Add the new modules.
14687 2007-01-08 Bruno Haible <bruno@clisp.org>
14689 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
14690 (Depends-on): Add unitypes.
14691 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14692 (u8_mbtouc_aux): Move out to separate file.
14693 (u8_mbtouc): Use ucs4_t, uint8_t types.
14694 * lib/unistr/utf8-ucs4.c: New file.
14696 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
14697 (Depends-on): Add unitypes.
14698 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
14699 (u16_mbtouc_aux): Move out to separate file.
14700 (u16_mbtouc): Use ucs4_t, uint16_t types.
14701 * lib/unistr/utf16-ucs4.c: New file.
14703 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
14704 (Depends-on): Add unitypes.
14705 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
14706 (u8_uctomb_aux): Move out to separate file.
14707 (u8_uctomb): Use ucs4_t, uint8_t types.
14708 * lib/unistr/ucs4-utf8.c: New file.
14710 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
14711 (Depends-on): Add unitypes.
14712 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
14713 (u16_uctomb_aux): Move out to separate file.
14714 (u16_uctomb): Use ucs4_t, uint16_t types.
14715 * lib/unistr/ucs4-utf16.c: New file.
14717 2006-12-25 Bruno Haible <bruno@clisp.org>
14719 * modules/unitypes: New file.
14720 * lib/unitypes.h: New file.
14721 * MODULES.html.sh (func_all_modules): New section "Unicode string
14722 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
14723 this section. Add unitypes.
14725 2007-01-08 Bruno Haible <bruno@clisp.org>
14727 Avoid variable names that conflict with those from libtool.
14728 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
14729 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
14730 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
14731 library_names_spec to acl_library_names_spec, hardcode_* to
14733 Reported by Ralf Wildenhues.
14735 2007-01-08 Bruno Haible <bruno@clisp.org>
14737 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
14739 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
14741 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
14742 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
14744 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
14746 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
14747 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
14748 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
14749 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
14751 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
14753 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
14754 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
14755 GC_USE_<algorithm>.
14756 * lib/gc-libgcrypt.c: Likewise.
14757 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
14758 * modules/gc-arctwo (configure.ac): Likewise.
14759 * modules/gc-des (configure.ac): Likewise.
14760 * modules/gc-hmac-md5 (configure.ac): Likewise.
14761 * modules/gc-hmac-sha1 (configure.ac): Likewise.
14762 * modules/gc-md2 (configure.ac): Likewise.
14763 * modules/gc-md4 (configure.ac): Likewise.
14764 * modules/gc-md5 (configure.ac): Likewise.
14765 * modules/gc-random (configure.ac): Likewise.
14766 * modules/gc-rijndael (configure.ac): Likewise.
14767 * modules/gc-sha1 (configure.ac): Likewise.
14769 2007-01-08 Bruno Haible <bruno@clisp.org>
14771 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
14773 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
14775 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
14777 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
14778 * modules/fcntl-safer (configure.ac): Likewise.
14779 * modules/fopen-safer (configure.ac): Likewise.
14780 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
14781 GNULIB_FWRITEERROR macro definition.
14783 2007-01-08 Bruno Haible <bruno@clisp.org>
14785 * m4/gnulib-common.m4: New file.
14786 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
14787 (func_get_filelist): Add m4/gnulib-common.m4.
14789 2007-01-08 Bruno Haible <bruno@clisp.org>
14791 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
14794 2007-01-08 Jim Meyering <jim@meyering.net>
14796 Use a more robust test for a "can't happen" condition.
14797 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
14798 narrowed the st_size value. Presuming the "can't happen" condition
14799 is true, that narrowing could conceivably convert an invalid st_size
14800 value into a valid one. Instead, use a change based on Matthew
14801 Woehlke's original patch.
14803 Slight readability improvement: use an assert-like macro
14804 in place of literal "abort ()" uses.
14805 * lib/fts.c (fts_assert): Define.
14806 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
14807 Use this macro instead of a bare 'abort'.
14809 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
14811 Don't worry about using IRIX 5.3's wctype.h broken definitions;
14812 simply work around them.
14813 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
14814 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
14815 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
14817 Don't bother to define as macros, since the standard doesn't require it.
14818 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
14819 longer worry about IRIX 5.3.
14820 (HAVE_WCTYPE_CTMP_BUG): Remove.
14822 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
14824 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
14825 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
14826 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14827 Problems reported by Georg Schwarz for IRIX 5.3.
14829 * gnulib-tool (autoconf_minversion): Take the maximum version number
14830 found, not the minimum. Problem reported by James Youngman.
14832 2007-01-03 Karl Berry <karl@gnu.org>
14834 * doc/error.texi: new file, explaining interaction with progname.
14835 * doc/gnulib.texi: include it. Update copyright.
14837 2007-01-03 Simon Josefsson <simon@josefsson.org>
14839 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
14840 AC_CANONICAL_HOST, to improve autobuild outputs.
14842 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
14843 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14845 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
14846 sockets, server sockets, and other file descriptors. Count errors
14847 to compute the return value. Reorder the code a bit to be easier
14848 to follow. Don't set event bits that were not requested (except
14849 POLLERR and POLLHUP).
14851 2007-01-01 Bruno Haible <bruno@clisp.org>
14853 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
14855 2007-01-03 Jim Meyering <jim@meyering.net>
14857 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
14859 2007-01-02 Bruno Haible <bruno@clisp.org>
14861 * modules/settime (Include): Require timespec.h.
14862 * modules/nanosleep (Include): Likewise.
14864 2007-01-01 Bruno Haible <bruno@clisp.org>
14866 * gnulib-tool (func_emit_copyright_notice): Bump year.
14867 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
14869 2007-01-01 Bruno Haible <bruno@clisp.org>
14871 Improve support for OpenBSD.
14872 * build-aux/config.rpath (libname_spec): Export.
14873 (library_names_spec): New variable. Export.
14874 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
14875 library_names_spec from the config.rpath output. Locate shared library
14876 through the name pattern in library_names_spec.
14878 2007-01-01 Eric Blake <ebb9@byu.net>
14880 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
14882 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
14884 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
14885 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
14886 assume the C locale, and avoid an "eval" that could cause trouble.
14887 Problem with SORT reported by Bob Proulx.
14889 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
14890 Define. Trivial patch from Henning Nielsen Lund, originally
14891 sent to bug-grep@gnu.org today.
14893 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
14895 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
14896 struct stat. Problem reported by Henning Nielsen Lund.
14897 * lib/acl.c: Include acl.h first, to check interface. Don't
14898 bother to include sys/types.h and sys/stat.h again.
14900 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
14902 Import the following change from libc; problem reported by
14905 2005-10-13 Ulrich Drepper <drepper@redhat.com>
14908 * lib/argp.h: Remove __NTH for __argp_usage inline function.
14910 2006-12-28 Jim Meyering <jim@meyering.net>
14912 * build-aux/announce-gen: Do not assume that the package
14913 builds any of tar.gz, tar.bz2, and .xdelta files.
14914 Suggestion from Simon Josefsson.
14916 2006-12-28 Simon Josefsson <simon@josefsson.org>
14918 * modules/announce-gen: New file.
14920 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
14922 * lib/mbchar.h: Just include <wctype.h>; the wctype module
14923 handles its gotchas now.
14924 * lib/mbswidth.c: Likewise.
14925 * lib/wcwidth.h: Likewise.
14926 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
14927 and iswcntrl; the wctype module does this stuff now.
14928 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14929 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14930 * modules/mbchar (Depends-on): Add wctype.
14931 * modules/mbswidth (Depends-on): Likewise.
14932 * modules/wcwidth (Depends-on): Likewise.
14934 2006-12-27 Eric Blake <ebb9@byu.net>
14936 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
14937 module uses more than what <wctype.h> is required to provide.
14939 2006-12-26 Eric Blake <ebb9@byu.net>
14941 * gnulib-tool (sed_extract_prog): Avoid space-tab.
14943 2006-12-26 Eric Blake <ebb9@byu.net>
14945 * modules/absolute-header: New module.
14946 * modules/fcntl (Depends-on): Depend on it.
14947 * modules/inttypes (Depends-on): Likewise.
14948 * modules/stdint (Depends-on): Likewise.
14949 * modules/sys_stat (Depends-on): Likewise.
14950 * modules/wctype (Depends-on): Likewise.
14951 * MODULES.html.sh (Support for building libraries and
14952 executables): Document it.
14954 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
14956 * gnulib-tool (SED): Remove, undoing previous change.
14957 The problem was that it broke coreutils on Solaris, because
14958 "sed --posix" leaked into a makefile.
14959 (sed): New alias, if 'alias' and GNU sed.
14961 2006-12-24 Jim Meyering <jim@meyering.net>
14963 Work around an fchownat bug in glibc-2.4:
14964 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
14965 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
14966 in spite of the -P option.
14967 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
14969 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
14970 * modules/openat (Files): Add lib/fchownat.c.
14971 * lib/openat.c (fchownat): Don't define here. Move to...
14972 * lib/fchownat.c: ...this new file.
14974 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
14976 Fix bug reported by Bruno Haible in
14977 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
14978 where quotearg.c didn't compile on Mac OS X 10.2 because it
14979 lacks <wchar.h> and wint_t.
14980 * lib/wctype_.h (__wctype_wint_t): New type.
14981 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
14982 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
14983 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
14984 Arg is now of type __wctype_wint_t, not wint_t.
14985 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
14986 substitute HAVE_WINT_T.
14987 * modules/wctype (Files): Add m4/wint_t.m4.
14988 (wctype.h): Substitute HAVE_WINT_T.
14990 2006-12-23 Bruno Haible <bruno@clisp.org>
14992 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
14994 2006-12-23 Bruno Haible <bruno@clisp.org>
14996 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
14998 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
15001 2006-12-22 Bruno Haible <bruno@clisp.org>
15003 * lib/copy-file.c: Include acl.h.
15004 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
15005 Close the file descriptors only after being done with copy_acl.
15006 * modules/copy-file (Depends-on): Add acl.
15008 2006-12-22 Bruno Haible <bruno@clisp.org>
15010 * gnulib-tool (SED): New variable.
15011 Use $SED instead of sed everywhere.
15013 2006-12-22 Bruno Haible <bruno@clisp.org>
15015 * modules/no-c++: New file.
15016 * m4/no-c++.m4: New file.
15017 * MODULES.html.sh (Support for building libraries and executables):
15020 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
15022 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15023 Include <limits.h>, and use its INT_MAX to rewrite the
15024 j loop so that it does not overflow 'int'. Problem reported by
15026 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
15027 Play it safe by shifting left by 1 rather than multiplying by 2,
15028 as GCC is less likely to optimize this away when the value
15029 is signed (when it assumes overflow leads to undefined behavior).
15030 Also, don't assume time_t uses two's complement.
15032 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
15034 * MODULES.html.sh: New module wctype.
15035 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
15036 * lib/fnmatch.c: Don't bother to include <wchar.h> before
15037 <wctype.h>, since the new wctype module should fix this.
15038 * lib/quotearg.c: Include <wctype.h> unconditionally, since
15039 the wctype module should arrange for it.
15040 * lib/regex_internal.h: Likewise.
15041 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
15042 since the wctype module should handle this now.
15043 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
15044 * modules/fnmatch (Depends-on): Add wctype.
15045 * modules/quotearg (Depends-on): Likewise.
15046 * modules/regex (Depends-on): Likewise.
15048 2006-12-19 Bruno Haible <bruno@clisp.org>
15050 * lib/strdup.h [C++]: Wrap definitions in extern "C".
15051 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
15053 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15055 * modules/savewd (Depends-on): Fix dependency on fcntl.
15057 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
15059 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
15060 conforms to C99, rather than relying on the user's environment
15061 setting of STDINT_H.
15063 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
15064 and Eric Blake <ebb9@byu.net>
15066 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
15067 This is more consistent with the other defines here.
15068 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
15069 Port to z/OS. Problem reported by Paul Gilmartin.
15070 Change local vars to use gl_ prefix rather than ac_.
15071 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
15072 with other defines.
15073 * modules/double-slash-root: New module.
15074 * modules/dirname (Files): Remove m4/double-slash-root.m4.
15075 (Depends-on): Add double-slash-root.
15076 * MODULES.html.sh (File system functions): Mention new module.
15078 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
15080 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
15081 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
15082 This is for the benefit of gzip, which doesn't do i18n.
15084 2006-12-12 Jim Meyering <jim@meyering.net>
15086 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
15087 Reported by Andreas Schwab <schwab@suse.de>.
15089 2006-12-12 Bruno Haible <bruno@clisp.org>
15091 Merge these changes.
15092 2006-09-05 Bruno Haible <bruno@clisp.org>
15093 * lib/iconvme.c (iconv_string): No need to save and restore errno when
15094 iconv_alloc succeeded.
15095 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
15096 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
15097 test for " && dest " at the end - dest is always != NULL there. Call
15098 iconv with 4xNULL arguments initially, to reset the state. Call iconv
15099 with 2xNULL arguments, also to flush the state storage. Handle the
15100 IRIX iconv behaviour. Realloc the final result, to throw away unused
15103 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
15105 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
15106 and fchmodat unconditionally, since glibc 2.4 has them.
15107 Problem reported by Arkadiusz Miskiewicz.
15109 2006-12-10 Bruno Haible <bruno@clisp.org>
15111 * gnulib-tool (func_import): Show the include files only for those
15112 modules that are copied and specified.
15113 Reported by Karl Berry.
15115 2006-12-08 Jim Meyering <jim@meyering.net>
15117 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
15118 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
15120 * build-aux/announce-gen: Add two new options, both optional:
15121 --bootstrap-tools=TOOL_LIST
15122 a comma-separated list of tools, e.g.,
15123 autoconf,automake,bison,gnulib
15124 --gnulib-snapshot-date=DATE
15125 if gnulib is in the bootstrap tool list,
15126 then report this as the snapshot date.
15127 If not specified, use the current date/time.
15128 If you specify a date here, be sure it's UTC.
15130 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15132 * tests/test-argp-2.sh: Fix test to match actual output.
15133 (func_compare): Fix sed script to be portable.
15135 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
15137 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
15138 workaround for this case. It is not autoconfigured now; offhand
15139 it's hard to see how to autoconfigure it.
15141 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
15143 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
15144 a directory that is about to be chowned. Such a directory's
15145 initial file permissions should permit the owner only and this
15146 should not be changed until after the chown, since the group and
15147 other bits would be incorrect if they granted permission before
15150 Fix porting problem for iswctype reported by Georg Schwarz in:
15151 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
15152 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
15153 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
15154 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
15155 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15157 2006-12-03 Jim Meyering <jim@meyering.net>
15159 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
15160 p->fts_statp may not yet be defined.
15161 (fts_read): Instead, set it in the caller, once p->fts_statp is
15162 sure to be defined, and corresponds to a top-level directory.
15163 This bug made du -x fail. Here's the coreutils test case:
15164 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
15165 Reported by Mike Frysinger.
15167 2006-12-01 Jim Meyering <jim@meyering.net>
15169 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
15170 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
15171 Reported by Simon Josefsson.
15173 2006-11-30 Jim Meyering <jim@meyering.net>
15175 * m4/warning.m4: Use the all-permissive copyright notice
15176 recommended by RMS (rather than LGPL).
15177 * m4/vararrays.m4: Likewise.
15178 * m4/flexmember.m4: Likewise.
15180 2006-11-29 Bruno Haible <bruno@clisp.org>
15182 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15183 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
15185 Reported by Simon Josefsson <simon@josefsson.org>.
15187 2006-11-28 James Youngman <jay@gnu.org>
15189 * README: Advise users that they might find the bug-gnulib@gnu.org
15190 and autotools-announce@gnu.org mailing lists useful.
15192 2006-11-28 Bruno Haible <bruno@clisp.org>
15194 * m4/ptrdiff_max.m4: Remove file.
15196 2006-11-21 Bruno Haible <bruno@clisp.org>
15198 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
15200 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15201 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
15203 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15204 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
15206 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15208 2006-11-28 Jim Meyering <jim@meyering.net>
15210 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
15211 warning from "gcc -Wshadow" about shadowing the builtin.
15213 2006-11-27 Bruno Haible <bruno@clisp.org>
15215 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
15217 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15219 2006-11-27 Bruno Haible <bruno@clisp.org>
15220 Paul Eggert <eggert@cs.ucla.edu>
15222 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
15224 2006-11-26 Bruno Haible <bruno@clisp.org>
15226 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15227 noinst_LTLIBRARIES.
15229 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
15230 Bruno Haible <bruno@clisp.org>
15232 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
15233 if compiling with "gcc -ansi".
15235 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
15237 Fix some incompatibilities with gcc -ansi -pedantic.
15238 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
15239 if compiling pedantically with GCC, unless it's C99 or later.
15240 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
15241 it mishandles gcc -ansi -pedantic as well.
15242 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
15244 * lib/regexec.c (check_node_accept_bytes): Don't use auto
15245 initializers for struct if -pedantic, unless it's C99 or later.
15247 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
15249 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
15250 Don't close an fd more than once. Identical atimes indicate
15251 success, not failure.
15253 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
15255 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
15257 2006-11-23 Jim Meyering <jim@meyering.net>
15259 * build-aux/announce-gen: New file. From coreutils.
15261 2006-11-22 Jim Meyering <jim@meyering.net>
15263 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
15264 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
15265 (fts_read): Use a temporary to narrow the overused st_size member
15266 before using it in a switch statement. Reported by Matthew Woehlke.
15268 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
15269 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15271 2006-11-20 Bruno Haible <bruno@clisp.org>
15273 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
15274 changequote instead of pairs of brackets.
15275 Reported by Andreas Schwab <schwab@suse.de>.
15277 2006-11-21 Jim Meyering <jim@meyering.net>
15279 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
15280 so as to remain compatible with older compilers.
15281 Patch from Michael Deutschmann.
15283 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
15285 * MODULES.html.sh (File system functions): Add openat.
15287 * lib/openat.h (rpl_fstatat): New macro, if
15288 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
15289 (fstatat): Define to rpl_fstatat under the same conditions,
15290 unless COMPILING_FSTATAT.
15291 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
15292 seems to have the bug.
15293 * lib/fstatat.c: New file.
15294 * modules/openat (Files): Add it.
15296 2006-11-20 Bruno Haible <bruno@clisp.org>
15298 * Makefile: New file.
15300 2006-11-20 Jim Meyering <jim@meyering.net>
15302 The beginnings of syntax-related checks for gnulib.
15303 * lib/Makefile: New file.
15304 * lib/t-idcache: New script. Ensure that the two halves of
15305 idcache.c stay in sync.
15307 * lib/idcache.c: Adjust comments in user- and group- portions to
15308 be more accurate, and to be consistent with one another.
15310 2006-11-20 Jim Meyering <jim@meyering.net>
15312 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
15313 continue using the flexible array member (thus, this module performs
15314 half as many malloc calls), with the addition that...
15315 (getgroup, getuser): Consistently record a non-match via an empty
15316 "name" string, and map an empty string match to a NULL return value.
15317 * modules/idcache (Depends-on): Re-add flexmember.
15319 * lib/idcache.c (getuser): Remove all uses of the register keyword.
15320 (getuidbyname, getgroup, getgidbyname): Likewise.
15322 Use cleaner syntax: NULL rather than 0.
15323 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
15325 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
15327 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
15328 It mishandled the case where the group was missing.
15329 Problem reported by Greg Schafer.
15330 * modules/idcache: Likewise.
15332 2006-11-18 Jim Meyering <jim@meyering.net>
15334 * check-module (%exempt_header): Add exception for some
15335 conditionally-included headers.
15337 * modules/i-ring (Depends-on): Add verify.
15338 (License): Change to LGPL.
15340 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
15342 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
15343 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
15344 and inttostr.h. Use snprintf rather than uinttostr, so that
15345 LGPLed code doesn't depend on GPLed.
15347 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
15349 * modules/inline (License): Change from GPL to LGPL.
15351 2006-11-17 Jim Meyering <jim@meyering.net>
15353 * modules/d-type (License): Switch to LGPL.
15355 2006-11-15 Bruno Haible <bruno@clisp.org>
15357 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
15359 2006-11-15 Eric Blake <ebb9@byu.net>
15361 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
15362 the module dependency.
15364 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15365 Bruno Haible <bruno@clisp.org>
15367 * gnulib-tool (func_create_testdir): Add license consistency check.
15369 2006-11-15 Eric Blake <ebb9@byu.net>
15371 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
15372 random "(cached)" in configure output.
15374 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15376 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
15377 test for conforming inttypes.h is both announced and cached.
15379 * MODULES.html.sh (seen_modules, seen_files): New variables.
15380 (func_module): Rewrite to use a few less gnulib-tool and sed
15381 invocations. Avoid a couple of quadratic algorithms for ...
15382 (missed_modules, missed_files): ... these, with ...
15383 (func_append, func_tmpdir): ... these new functions, from
15384 gnulib-tool. Analogously, install traps for cleanup.
15386 * tests/test-gc.c (main): Remove unused variables.
15387 * tests/test-read-file.c: Include stdlib.h, for 'free'.
15389 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
15391 * modules/inttostr (License): Change to LGPL.
15393 2006-11-14 Eric Blake <ebb9@byu.net>
15395 * modules/tempname (License): Change to LGPL.
15397 2006-11-14 Eric Blake <ebb9@byu.net>
15399 * doc/functions.texi (Function Portability): *printf functions on
15400 Cygwin now understand all POSIX size specifiers.
15402 2006-11-14 Bruno Haible <bruno@clisp.org>
15404 * modules/c-ctype (License): Change to LGPL.
15406 2006-11-12 Bruno Haible <bruno@clisp.org>
15408 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15409 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15410 for GNOME libraries, for which the include files are installed in
15411 subdirectories of $prefix/include.
15413 2006-11-12 Bruno Haible <bruno@clisp.org>
15415 * m4/lib-link.m4: Require at least autoconf-2.54.
15416 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15417 name to underscores for the --with option.
15419 2006-11-13 Bruno Haible <bruno@clisp.org>
15421 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15422 the tests directory.
15423 Reported by Ralf Wildenhues.
15425 2006-11-13 Bruno Haible <bruno@clisp.org>
15427 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15428 (func_emit_initmacro_end): Undo the override here.
15429 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15430 Works around the famous automake error in coreutils.
15432 2006-11-13 Eric Blake <ebb9@byu.net>
15434 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15435 element, not its node.
15437 2006-11-12 Bruno Haible <bruno@clisp.org>
15439 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15440 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15442 2006-11-12 Bruno Haible <bruno@clisp.org>
15444 * gnulib-tool: New option --local-symlink.
15445 (func_usage): Document it.
15446 (lsymbolic): New variable.
15447 (func_import, func_create_testdir): If --symlink was not specified,
15448 test whether --local-symlink was specified and the file comes from
15449 the local_gnulib_dir.
15451 2006-11-12 Bruno Haible <bruno@clisp.org>
15453 * gnulib-tool (func_ln): New function.
15454 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15456 2006-11-12 Bruno Haible <bruno@clisp.org>
15458 Finish support for source files in subdirectories.
15459 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15460 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15462 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15464 2006-11-12 Bruno Haible <bruno@clisp.org>
15466 * gnulib-tool (func_get_automake_snippet): Synthesize also an
15467 EXTRA_lib_SOURCES augmentation.
15468 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15470 2006-11-12 Jim Meyering <jim@meyering.net>
15472 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15473 file descriptors. This also averts a failure on systems with
15474 native openat support when a traversed directory lacks "x" access.
15475 * lib/fts_.h: Include "i-ring.h"
15476 (struct FTS) [fts_fd_ring]: New member.
15477 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15478 (FCHDIR): Add parentheses.
15479 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15480 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
15481 When descending, rather than simply closing the previous
15482 fts_cwd_fd value, push that file descriptor onto the ring.
15483 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15484 (fts_open): Initialize the new fd_ring member.
15485 (fts_close): Clear the ring.
15486 (fts_safe_changedir): When possible, use our new fd_ring to skip
15487 the diropen and fstat and dev/ino comparison that would normally
15488 accompany a virtual `chdir ("..")'.
15490 * modules/fts (Depends-on): Add i-ring.
15491 * modules/i-ring: New module.
15492 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15493 * m4/i-ring.m4: New file.
15495 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15497 * gnulib-tool (func_create_testdir): Fix replacement of
15498 `build-aux' in configure.ac. Run autotools in gltests
15500 (func_create_testdir, func_create_megatestdir, test): There is
15501 no need for '--force' in most autotool invocations in a new
15502 tree. Actually fail the whole test if any of the tools, or the
15503 configure or make stages fail.
15505 Sync from Automake.
15506 * build-aux/gnupload: Revert last change. Add pointer to upload
15507 instructions of the GNU Maintenance Instructions.
15508 Suggestion by Karl Berry.
15510 2006-11-10 Jim Meyering <jim@meyering.net>
15512 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15514 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
15516 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15517 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15518 (bind_textdomain_codeset) [! ENABLE_NLS]:
15519 Evaluate all the arguments. That way, callers get compatible behavior
15520 if the arguments have side effects. Also, it avoids some GCC
15521 diagnostics in some cases; Joel E. Denny reported problems when Bison
15522 was configured with --enable-gcc-warnigs.
15524 2006-11-10 Jim Meyering <jim@meyering.net>
15526 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15527 relevant options in CFLAGS (like -O, -fno-inline) are taken into
15530 2006-11-10 Jim Meyering <jim@meyering.net>
15532 * modules/inline: New file/module.
15533 * modules/xalloc (Files): Remove m4/inline.m4.
15534 (Depends-on): Add inline, instead.
15535 * modules/oset: Likewise.
15536 * modules/list: Likewise.
15538 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
15540 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15541 Problem reported by Matthew Woehlke.
15543 2006-11-09 Bruno Haible <bruno@clisp.org>
15545 * lib/tempname.c (gen_tempname): Remove variant that invokes
15547 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15550 2006-11-08 Bruno Haible <bruno@clisp.org>
15552 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15553 to 'yes' instead of 'cross-compiling'.
15555 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
15557 * lib/quotearg.h (quotearg_free): New decl.
15558 * lib/quotearg.c (quotearg_free): New function.
15559 (slot0, nslots, slotvec0, slotvec):
15560 Now file-scope so that quotearg_free can get at them.
15562 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15564 Sync from Automake.
15565 * build-aux/gnupload: Add missing 'gnu' to example URL.
15566 Report by Karl Berry.
15568 2006-11-08 Bruno Haible <bruno@clisp.org>
15570 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15571 Suggested by Paul Eggert.
15573 2006-11-08 Jim Meyering <jim@meyering.net>
15575 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15576 It's already included if !_LIBC.
15577 (fts_safe_changedir): Add a comment.
15579 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
15581 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
15582 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
15585 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
15586 definitions up, to avoid colliding with change below.
15587 (static_inline) [HAVE_INLINE]: New macro.
15588 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15589 Provide extern decls when !HAVE_INLINE. Do not define unless
15590 static_inline is defined, either by us or by xmalloc.c. Use
15591 static_inline rather than static inline.
15592 (XCALLOC): Optimize sizeof(T) = 1 case.
15593 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
15595 2006-11-07 Bruno Haible <bruno@clisp.org>
15597 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
15598 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
15600 * modules/xalloc (Files): Add m4/inline.m4.
15602 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15604 * README: Fix typo.
15605 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
15606 (Miscellanous Notes): ...from this.
15608 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
15610 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
15611 Mention that offsetof should be used instead of sizeof.
15614 2006-11-07 Bruno Haible <bruno@clisp.org>
15616 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
15618 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
15620 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15621 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
15622 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15623 (gl_tree_add_before, gl_tree_add_after):
15624 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
15625 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
15626 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
15627 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
15628 (gl_linked_add_after, gl_linked_add_at): Likewise.
15629 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
15630 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
15631 (gl_tree_add_before, gl_tree_add_after): Likewise.
15632 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
15633 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
15634 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
15636 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15638 * lib/gl_oset.h: Use C comment style, not C++ comment style.
15640 2006-11-06 Bruno Haible <bruno@clisp.org>
15642 * m4/inline.m4: New file.
15643 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
15644 * modules/list (Files): Add m4/inline.m4.
15645 * modules/oset (Files): Likewise.
15647 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
15649 * lib/idcache.c: Include <stddef.h>, for offsetof.
15650 (struct userid.name): Change from char * to a flexible array member.
15652 * modules/idcache (Depends-on): Add flexmember.
15654 * MODULES.html.sh (Core language properties): New module flexmember.
15655 * modules/flexmember, m4/flexmember.m4: New files.
15657 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
15658 inline functions that are identical with the old xnmalloc_inline,
15659 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
15660 that we can avoid some unnecessary integer multiplications and
15661 divisions in the common case where the element size is known at
15663 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
15665 (xnboundedmalloc): Remove.
15666 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
15667 arguments, for consistency with rest of this header.
15668 (xcharalloc): Rewrite using XNMALLOC.
15669 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
15670 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
15671 versions have been moved to lib/xalloc.h and renamed to be the
15672 non-*_inline versions.
15673 (xmalloc, xrealloc): Implement without reference to the xnmalloc
15674 and xnrealloc functions, since those functions are now inline and
15676 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
15677 renaming described above.
15678 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
15679 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
15680 captures the dependency in AC_C_INLINE.
15682 New module canonicalize-lgpl, proposed by Charles Wilson in
15683 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
15684 with a few small changes afterwards.
15685 * MODULES.html.sh (File system functions): New module
15687 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
15688 and canonicalize_file_name.
15689 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
15690 * modules/canonicalize-lgpl: New files.
15692 2006-11-05 Bruno Haible <bruno@clisp.org>
15694 * gnulib-tool (func_import, func_create_testdir): Create directories
15695 also for files in subdirectories of lib/.
15697 2006-11-05 Bruno Haible <bruno@clisp.org>
15699 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
15702 2006-11-03 Bruno Haible <bruno@clisp.org>
15704 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
15705 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
15706 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
15707 (xnboundedmalloc): New inline function.
15708 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
15709 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
15711 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
15713 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
15714 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
15715 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
15717 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15718 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
15720 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
15721 gl_tree_add_after): Use XMALLOC instead of xmalloc.
15722 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
15724 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
15725 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
15726 gl_tree_add_after): Use XMALLOC instead of xmalloc.
15727 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
15728 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
15729 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
15730 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
15732 2006-11-03 Bruno Haible <bruno@clisp.org>
15734 * lib/c-ctype.h [C++]: Define functions without name mangling.
15735 * lib/fwriteerror.h [C++]: Likewise.
15736 * lib/gcd.h [C++]: Likewise.
15737 * lib/linebreak.h [C++]: Likewise.
15739 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
15741 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
15742 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
15743 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
15744 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
15745 Check for functions and headers just once.
15746 Check for declaration of canonicalize_file_name.
15747 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
15749 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
15751 * gnulib-tool (func_import): Fix typo in actioncmd.
15753 2006-11-02 Bruno Haible <bruno@clisp.org>
15755 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
15756 newline sequence in the Makefile.am snippet as a space, like "make"
15758 Reported by Roger Persson <perrog@gmail.com>.
15760 2006-11-01 Bruno Haible <bruno@clisp.org>
15762 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
15763 already declared in <string.h>.
15764 * lib/strcase.h (strncasecmp): Don't declare it if yes.
15766 2006-11-01 Bruno Haible <bruno@clisp.org>
15768 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
15769 * lib/strcase.h: Include <string.h>.
15770 (strcasecmp): Define to rpl_strcasecmp here.
15772 2006-11-01 Bruno Haible <bruno@clisp.org>
15774 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
15776 2006-11-01 Eric Blake <ebb9@byu.net>
15778 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
15780 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
15782 2006-10-29 Bruno Haible <bruno@clisp.org>
15784 Make it compile in C++ mode.
15785 * lib/full-write.c (full_rw): Add a cast.
15787 2006-11-01 Bruno Haible <bruno@clisp.org>
15789 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
15790 be POSIX compliant.
15791 Reported by Roger Persson <perrog@gmail.com>.
15793 2006-11-01 Eric Blake <ebb9@byu.net>
15795 * lib/getopt_.h: Fix comments.
15797 2006-10-31 Eric Blake <ebb9@byu.net>
15799 * modules/tmpdir (Depends-on): Add sys_stat.
15800 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
15801 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
15802 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
15803 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
15806 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
15808 Avoid some C++ diagnostics reported by Bruno Haible.
15809 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
15811 (quotearg_alloc): Use xcharalloc rather than xmalloc.
15812 (struct slotvec): Move to top level.
15813 (quotearg_n_options): Rewrite to avoid xmalloc.
15814 * lib/xalloc.h (xcharalloc): New function.
15815 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
15816 [defined __cplusplus]: Add function template that provides result
15817 type propagation. This part of the change is from Bruno Haible.
15819 2006-10-29 Bruno Haible <bruno@clisp.org>
15821 Make it compile in C++ mode.
15822 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
15823 * lib/strnlen1.c (strnlen1): Cast memchr result.
15824 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
15825 * lib/clean-temp.c (string_equals, string_hash): Add casts.
15826 (create_temp_dir): Rename local variable 'template'.
15827 (compile_csharp_using_sscli): Add cast.
15828 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
15829 * lib/findprog.c (find_in_path): Likewise.
15830 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
15831 * lib/wait-process.c (register_slave_subprocess): Likewise.
15833 2006-10-22 Bruno Haible <bruno@clisp.org>
15835 * modules/tsearch: New file.
15836 * lib/tsearch.h: New file.
15837 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
15838 * m4/tsearch.m4: New file.
15839 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
15841 2006-10-29 Eric Blake <ebb9@byu.net>
15843 * lib/arcfour.c: Assume config.h.
15844 * lib/arctwo.c: Likewise.
15845 * lib/base64.c: Likewise.
15846 * lib/check-version.c: Likewise.
15847 * lib/crc.c: Likewise.
15848 * lib/des.c: Likewise.
15849 * lib/gc-gnulib.c: Likewise.
15850 * lib/gc-libgcrypt.c: Likewise.
15851 * lib/gc-pbkdf2-sha1.c: Likewise.
15852 * lib/getaddrinfo.c: Likewise.
15853 * lib/getdelim.c: Likewise.
15854 * lib/getline.c: Likewise.
15855 * lib/hmac-md5.c: Likewise.
15856 * lib/hmac-sha1.c: Likewise.
15857 * lib/iconvme.c: Likewise.
15858 * lib/md2.c: Likewise.
15859 * lib/md4.c: Likewise.
15860 * lib/memxor.c: Likewise.
15861 * lib/read-file.c: Likewise.
15862 * lib/readline.c: Likewise.
15863 * lib/rijndael-alg-fst.c: Likewise.
15864 * lib/rijndael-api-fst.c: Likewise.
15865 * lib/xgetdomainname.c: Likewise.
15867 2006-10-28 Eric Blake <ebb9@byu.net>
15869 * lib/xstrndup.c: Assume config.h.
15871 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
15873 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
15874 stat-macros.h is now for our own macros, whereas stat_h is for
15875 macros in the <sys/stat.h> name space.
15876 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
15877 (STAT_MACROS_H): Remove.
15878 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
15879 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
15880 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
15881 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
15882 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
15883 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
15884 Move these macros to ...
15885 * lib/stat_.h: here. Don't include stat-macros.h.
15886 * lib/canonicalize.c: Don't include stat-macros.h.
15887 * lib/chown.c: Likewise.
15888 * lib/euidaccess.c: Likewise.
15889 * lib/file-type.c: Likewise.
15890 * lib/filemode.c: Likewise.
15891 * lib/glob.c: Likewise.
15892 * lib/isapipe.c: Likewise.
15893 * lib/lchown.c: Likewise.
15894 * lib/lstat.c: Likewise.
15895 * lib/mkdir-p.c: Likewise.
15896 * lib/rmdir.c: Likewise.
15897 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
15898 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
15899 unless mkdir isn't declared, to speed up 'configure'.
15900 Always create sys/stat.h, since it's unlikely any real sys/stat.h
15901 would define all the S_* symbols.
15902 * modules/canonicalize (Depends-on):
15903 Depend on sys_stat, not stat-macros.
15904 * modules/chown: Likewise.
15905 * modules/euidaccess: Likewise.
15906 * modules/filemode: Likewise.
15907 * modules/file-type: Likewise.
15908 * modules/glob: Likewise.
15909 * modules/isapipe: Likewise.
15910 * modules/lchown: Likewise.
15911 * modules/lstat: Likewise.
15912 * modules/mkancesdirs: Likewise.
15913 * modules/rmdir: Likewise.
15914 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
15915 * modules/modechange: Likewise.
15916 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
15917 (configure.ac): Remove gl_STAT_MACROS.
15918 * modules/sys_stat (Depends-on): Remove stat-macros.
15920 2006-10-27 Bruno Haible <bruno@clisp.org>
15922 * m4/signed.m4: Remove file.
15923 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
15925 * modules/vasnprintf (Files): Remove m4/signed.m4.
15927 2006-10-27 Bruno Haible <bruno@clisp.org>
15929 Update to GNU gettext 0.16.
15930 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
15931 m4/inttypes-h.m4, m4/signed.m4.
15932 * m4/gettext.m4: Update to GNU gettext 0.16.
15933 * m4/intl.m4: New file, from GNU gettext.
15934 * m4/intldir.m4: New file, from GNU gettext.
15935 * config/srclist.txt: Update
15937 2006-10-27 Eric Blake <ebb9@byu.net>
15939 * MODULES.html.sh: Document tempname.
15940 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
15942 (Files): Move lib/tempname.c...
15943 * modules/tempname: ...to this new module.
15944 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
15945 (gl_PREREQ_TEMPNAME): Move...
15946 * m4/tempname.m4: ...to this new file.
15947 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
15948 * modules/sys_stat (Depends-on): Add stat-macros.
15949 * lib/stat_.h (includes): Pick up stat macros.
15950 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
15951 if stat macros are broken.
15952 * lib/tempname.c (includes): No need to include "stat-macros.h".
15953 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
15954 (direxists, __path_search) [!_LIBC]: Don't compile these in
15955 gnulib; the tmpdir module covers that.
15956 * lib/tempname.h: New file.
15958 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
15960 * COPYING: Explain how gnulib-tool converts licence headers.
15961 Almost all wording by Eric Blake.
15963 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
15965 * lib/mbchar.h (is_basic_table): Make read-only.
15966 * lib/mbchar.c (is_basic_table): Likewise.
15967 Reported by John Darrington.
15969 2006-10-25 Bruno Haible <bruno@clisp.org>
15971 * lib/progname.h (set_program_name): Undefine before defining.
15973 2006-10-25 Bruno Haible <bruno@clisp.org>
15975 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
15976 false for non-gcc C++ compilers.
15977 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15979 2006-10-24 Bruno Haible <bruno@clisp.org>
15981 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
15982 iconv implementations like Irix iconv.
15984 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
15986 * modules/vararrays: New file.
15987 * m4/vararrays.m4: New file, taken from diffutils.
15988 * MODULES.html.sh: New module vararrays.
15990 2006-10-24 Karl Berry <karl@gnu.org>
15992 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
15993 Don't call GNU Unix.
15995 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15997 * users.txt: Add Libtool.
16001 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
16003 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
16004 to gnulib's policy of including config.h unconditionally.
16006 2006-10-24 Bruno Haible <bruno@clisp.org>
16008 * modules/wcwidth (Files): Add m4/wint_t.m4.
16009 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
16010 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
16012 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
16014 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
16015 to pacify GCC with some -W flags enabled. Problem reported by
16018 2006-10-24 Jim Meyering <jim@meyering.net>
16020 * MODULES.html.sh: Remove uinttostr. It's not a module.
16021 Reported by Karl Berry.
16023 2006-10-23 Bruno Haible <bruno@clisp.org>
16025 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
16027 2006-10-24 Bruno Haible <bruno@clisp.org>
16029 * lib/gl_list.h: Use C comment style, not C++ comment style.
16031 2006-10-23 Eric Blake <ebb9@byu.net>
16033 * lib/getaddrinfo.c (includes): Add missing include.
16035 2006-10-23 Bruno Haible <bruno@clisp.org>
16036 Paul Eggert <eggert@cs.ucla.edu>
16038 Ability to rename obstack_free.
16039 * lib/obstack.h (__obstack_free): New macro. Declare instead of
16041 (obstack_free): Invoke the __obstack_free macro.
16042 * lib/obstack.c (obstack_free): Use __obstack_free macro.
16044 2006-10-23 Bruno Haible <bruno@clisp.org>
16045 Paul Eggert <eggert@cs.ucla.edu>
16047 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
16048 __argc, __argv from the declaration. (They are defined as macros on
16051 2006-10-22 Bruno Haible <bruno@clisp.org>
16053 * doc/gnulib-intro.texi: New file.
16054 * doc/gnulib.texi: Include it.
16056 2006-10-21 Bruno Haible <bruno@clisp.org>
16058 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
16059 "Introduction", "Miscellanous Notes", "Particular Modules".
16061 2006-10-21 Bruno Haible <bruno@clisp.org>
16063 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16064 Change mostlyclean-local rule to avoid sh syntax error from bash
16065 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
16067 2006-10-23 Jim Meyering <jim@meyering.net>
16069 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
16070 in place of snprintf.
16072 * modules/inttostr (Files): Add lib/uinttostr.c.
16073 * lib/uinttostr.c (inttostr): New file/function.
16074 * lib/inttostr.h (uinttostr): Declare.
16075 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
16076 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16078 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
16080 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
16082 * lib/canonicalize.c (ELOOP): Define if not already defined.
16083 Problem reported by Bruno Haible in
16084 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
16086 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
16088 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
16089 Problem reported by Perry Smith and Ville Laurikari.
16091 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
16094 2006-10-19 Bruno Haible <bruno@clisp.org>
16096 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
16099 2006-10-19 Bruno Haible <bruno@clisp.org>
16101 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
16104 2006-10-19 Bruno Haible <bruno@clisp.org>
16106 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
16108 2006-10-19 Bruno Haible <bruno@clisp.org>
16110 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
16113 2006-10-19 Bruno Haible <bruno@clisp.org>
16115 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
16118 2006-10-19 Bruno Haible <bruno@clisp.org>
16120 * gnulib-tool (func_create_testdir): Don't include ftruncate and
16121 mountlist by default.
16123 2006-10-16 Bruno Haible <bruno@clisp.org>
16125 * lib/c-strstr.c: Include c-strstr.h.
16127 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
16129 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
16132 2006-10-18 Bruno Haible <bruno@clisp.org>
16134 * lib/lock.h [C++]: Wrap definitions in extern "C".
16136 2006-10-18 Bruno Haible <bruno@clisp.org>
16138 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
16141 2006-10-18 Bruno Haible <bruno@clisp.org>
16143 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
16145 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
16147 * lib/xstrtol.h: Include gettext.h.
16148 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
16149 Problem reported by Eric Blake.
16150 * modules/xstrtol (Depends-on): Add gettext-h.
16152 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
16154 * lib/strftime.c (advance): New macro.
16155 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
16156 incomplete type, so you can't add 0 to it. Problem and patch
16157 reported by Eelco Dolstra for dietlibc.
16159 2006-10-18 Jim Meyering <jim@meyering.net>
16161 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
16162 type for a local, and rename it: s/up/user_proc/.
16164 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
16166 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
16167 READ_UTMP_USER_PROCESS.
16168 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
16170 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
16172 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
16173 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
16175 2006-10-17 Eric Blake <ebb9@byu.net>
16177 * lib/sigprocmask.c (sigprocmask): Fix typo.
16179 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
16181 * modules/clean-temp (Makefile.am): Don't add to make output...
16182 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
16185 2006-10-17 Bruno Haible <bruno@clisp.org>
16187 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
16188 differently if DEFAULT_TEXT_DOMAIN is set.
16190 2006-10-16 Bruno Haible <bruno@clisp.org>
16192 * lib/clean-temp.c: Include fwriteerror.h.
16194 2006-10-16 Bruno Haible <bruno@clisp.org>
16196 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
16198 2006-10-16 Bruno Haible <bruno@clisp.org>
16200 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
16201 * lib/sigprocmask.h: Include <sys/types.h>.
16202 (sigset_t): Use the system's definition if present.
16204 2006-10-17 Eric Blake <ebb9@byu.net>
16206 * lib/xvasprintf.c (includes): Assume config.h.
16207 * lib/xasprintf.c (includes): Likewise.
16209 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
16211 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
16212 at least as wide as intmax_t.
16214 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
16216 (Imported from Automake.)
16217 * build-aux/gnupload: Update to version 1.1 of directive file.
16219 2006-10-16 Eric Blake <ebb9@byu.net>
16221 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
16222 match Automake 1.10a.
16224 2006-10-14 Bruno Haible <bruno@clisp.org>
16226 * modules/sigprocmask: New file.
16227 * lib/sigprocmask.h: New file.
16228 * lib/sigprocmask.c: New file.
16229 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
16230 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
16231 request sigprocmask.o.
16232 (gl_PREREQ_SIGPROCMASK): New macro.
16233 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
16234 (Depends-on): Add sigprocmask.
16235 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
16236 gt_SIGNALBLOCKING. Test for 'raise' only once.
16237 * lib/fatal-signal.c: Include sigprocmask.h.
16238 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
16239 unblock_fatal_signals): Define always.
16240 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16243 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
16245 Sync from Automake.
16246 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
16247 which incorrectly sets the mode of an existing destination
16248 directory. In some cases the unpatched install-sh could do the
16249 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
16250 system. We hope this is rare in practice, but it's clearly worth
16251 fixing. Problem reported by Alex Unleashed in
16252 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
16253 Also, don't bother to check for -m bugs unless we're using -m;
16254 suggested by Stepan Kasal.
16256 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16258 Sync from Automake.
16259 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
16260 `-c' flag, so they appear at the same position as in %FASTDEP%
16261 mode in depend2.am. Fixes build failure for FreeBSD's c89,
16262 which ignores unknown options only after the first non-option.
16263 Bug report against M4 by Nelson H. F. Beebe.
16265 2006-10-13 Jim Meyering <jim@meyering.net>
16267 Fix a bug in yesterday's change.
16268 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
16269 p->fts_statp->st_dev would be used uninitialized.
16270 Ensures that we always call fts_stat on the very first entry.
16271 Miklos Szeredi reported that find -xdev stopped working.
16273 2006-10-12 Bruno Haible <bruno@clisp.org>
16275 * gnulib-tool (func_get_automake_snippet): Append an automatically
16276 computed EXTRA_DIST augmentation.
16277 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
16278 * modules/alloca-opt (Makefile.am): Likewise.
16279 * modules/allocsa (Makefile.am): Likewise.
16280 * modules/arcfour (Makefile.am): Likewise.
16281 * modules/arctwo (Makefile.am): Likewise.
16282 * modules/argmatch (Makefile.am): Likewise.
16283 * modules/argz (Makefile.am): Likewise.
16284 * modules/atexit (Makefile.am): Likewise.
16285 * modules/backupfile (Makefile.am): Likewise.
16286 * modules/byteswap (Makefile.am): Likewise.
16287 * modules/c-strtod (Makefile.am): Likewise.
16288 * modules/c-strtold (Makefile.am): Likewise.
16289 * modules/calloc (Makefile.am): Likewise.
16290 * modules/canon-host (Makefile.am): Likewise.
16291 * modules/canonicalize (Makefile.am): Likewise.
16292 * modules/chdir-long (Makefile.am): Likewise.
16293 * modules/chdir-safer (Makefile.am): Likewise.
16294 * modules/check-version (Makefile.am): Likewise.
16295 * modules/chown (Makefile.am): Likewise.
16296 * modules/cloexec (Makefile.am): Likewise.
16297 * modules/close-stream (Makefile.am): Likewise.
16298 * modules/closeout (Makefile.am): Likewise.
16299 * modules/crc (Makefile.am): Likewise.
16300 * modules/csharpexec (Makefile.am): Likewise.
16301 * modules/cycle-check (Makefile.am): Likewise.
16302 * modules/des (Makefile.am): Likewise.
16303 * modules/dev-ino (Makefile.am): Likewise.
16304 * modules/dirfd (Makefile.am): Likewise.
16305 * modules/dirname (Makefile.am): Likewise.
16306 * modules/dup2 (Makefile.am): Likewise.
16307 * modules/eealloc (Makefile.am): Likewise.
16308 * modules/error (Makefile.am): Likewise.
16309 * modules/euidaccess (Makefile.am): Likewise.
16310 * modules/exclude (Makefile.am): Likewise.
16311 * modules/exitfail (Makefile.am): Likewise.
16312 * modules/fcntl-safer (Makefile.am): Likewise.
16313 * modules/fcntl (Makefile.am): Likewise.
16314 * modules/file-type (Makefile.am): Likewise.
16315 * modules/fileblocks (Makefile.am): Likewise.
16316 * modules/filemode (Makefile.am): Likewise.
16317 * modules/filenamecat (Makefile.am): Likewise.
16318 * modules/fnmatch (Makefile.am): Likewise.
16319 * modules/fopen-safer (Makefile.am): Likewise.
16320 * modules/fpending (Makefile.am): Likewise.
16321 * modules/fprintftime (Makefile.am): Likewise.
16322 * modules/free (Makefile.am): Likewise.
16323 * modules/fsusage (Makefile.am): Likewise.
16324 * modules/ftruncate (Makefile.am): Likewise.
16325 * modules/fts (Makefile.am): Likewise.
16326 * modules/gc-arcfour (Makefile.am): Likewise.
16327 * modules/gc-des (Makefile.am): Likewise.
16328 * modules/gc-hmac-md5 (Makefile.am): Likewise.
16329 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
16330 * modules/gc-md4 (Makefile.am): Likewise.
16331 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16332 * modules/gc-sha1 (Makefile.am): Likewise.
16333 * modules/gc (Makefile.am): Likewise.
16334 * modules/getaddrinfo (Makefile.am): Likewise.
16335 * modules/getcwd (Makefile.am): Likewise.
16336 * modules/getdelim (Makefile.am): Likewise.
16337 * modules/getdomainname (Makefile.am): Likewise.
16338 * modules/getgroups (Makefile.am): Likewise.
16339 * modules/gethostname (Makefile.am): Likewise.
16340 * modules/gethrxtime (Makefile.am): Likewise.
16341 * modules/getline (Makefile.am): Likewise.
16342 * modules/getloadavg (Makefile.am): Likewise.
16343 * modules/getlogin_r (Makefile.am): Likewise.
16344 * modules/getndelim2 (Makefile.am): Likewise.
16345 * modules/getopt (Makefile.am): Likewise.
16346 * modules/getpagesize (Makefile.am): Likewise.
16347 * modules/getpass-gnu (Makefile.am): Likewise.
16348 * modules/getpass (Makefile.am): Likewise.
16349 * modules/getsubopt (Makefile.am): Likewise.
16350 * modules/gettime (Makefile.am): Likewise.
16351 * modules/gettimeofday (Makefile.am): Likewise.
16352 * modules/getugroups (Makefile.am): Likewise.
16353 * modules/getusershell (Makefile.am): Likewise.
16354 * modules/glob (Makefile.am): Likewise.
16355 * modules/group-member (Makefile.am): Likewise.
16356 * modules/hard-locale (Makefile.am): Likewise.
16357 * modules/hash (Makefile.am): Likewise.
16358 * modules/hmac-md5 (Makefile.am): Likewise.
16359 * modules/hmac-sha1 (Makefile.am): Likewise.
16360 * modules/human (Makefile.am): Likewise.
16361 * modules/idcache (Makefile.am): Likewise.
16362 * modules/imaxabs (Makefile.am): Likewise.
16363 * modules/imaxdiv (Makefile.am): Likewise.
16364 * modules/inet_ntop (Makefile.am): Likewise.
16365 * modules/inet_pton (Makefile.am): Likewise.
16366 * modules/intprops (Makefile.am): Likewise.
16367 * modules/inttostr (Makefile.am): Likewise.
16368 * modules/inttypes (Makefile.am): Likewise.
16369 * modules/isapipe (Makefile.am): Likewise.
16370 * modules/javaversion (Makefile.am): Likewise.
16371 * modules/lchmod (Makefile.am): Likewise.
16372 * modules/lchown (Makefile.am): Likewise.
16373 * modules/localcharset (Makefile.am): Likewise.
16374 * modules/long-options (Makefile.am): Likewise.
16375 * modules/lstat (Makefile.am): Likewise.
16376 * modules/malloc (Makefile.am): Likewise.
16377 * modules/mathl (Makefile.am): Likewise.
16378 * modules/mbchar (Makefile.am): Likewise.
16379 * modules/md2 (Makefile.am): Likewise.
16380 * modules/md4 (Makefile.am): Likewise.
16381 * modules/md5 (Makefile.am): Likewise.
16382 * modules/memcasecmp (Makefile.am): Likewise.
16383 * modules/memchr (Makefile.am): Likewise.
16384 * modules/memcmp (Makefile.am): Likewise.
16385 * modules/memcoll (Makefile.am): Likewise.
16386 * modules/memcpy (Makefile.am): Likewise.
16387 * modules/memmem (Makefile.am): Likewise.
16388 * modules/memmove (Makefile.am): Likewise.
16389 * modules/mempcpy (Makefile.am): Likewise.
16390 * modules/memrchr (Makefile.am): Likewise.
16391 * modules/memset (Makefile.am): Likewise.
16392 * modules/memxor (Makefile.am): Likewise.
16393 * modules/mkancesdirs (Makefile.am): Likewise.
16394 * modules/mkdir-p (Makefile.am): Likewise.
16395 * modules/mkdir (Makefile.am): Likewise.
16396 * modules/mkdtemp (Makefile.am): Likewise.
16397 * modules/mkstemp (Makefile.am): Likewise.
16398 * modules/mktime (Makefile.am): Likewise.
16399 * modules/modechange (Makefile.am): Likewise.
16400 * modules/mountlist (Makefile.am): Likewise.
16401 * modules/nanosleep (Makefile.am): Likewise.
16402 * modules/obstack (Makefile.am): Likewise.
16403 * modules/openat (Makefile.am): Likewise.
16404 * modules/pagealign_alloc (Makefile.am): Likewise.
16405 * modules/pathmax (Makefile.am): Likewise.
16406 * modules/physmem (Makefile.am): Likewise.
16407 * modules/poll (Makefile.am): Likewise.
16408 * modules/posixtm (Makefile.am): Likewise.
16409 * modules/posixver (Makefile.am): Likewise.
16410 * modules/putenv (Makefile.am): Likewise.
16411 * modules/quote (Makefile.am): Likewise.
16412 * modules/quotearg (Makefile.am): Likewise.
16413 * modules/raise (Makefile.am): Likewise.
16414 * modules/read-file (Makefile.am): Likewise.
16415 * modules/readline (Makefile.am): Likewise.
16416 * modules/readlink (Makefile.am): Likewise.
16417 * modules/readtokens (Makefile.am): Likewise.
16418 * modules/readutmp (Makefile.am): Likewise.
16419 * modules/realloc (Makefile.am): Likewise.
16420 * modules/regex (Makefile.am): Likewise.
16421 * modules/rename-dest-slash (Makefile.am): Likewise.
16422 * modules/rename (Makefile.am): Likewise.
16423 * modules/rijndael (Makefile.am): Likewise.
16424 * modules/rmdir (Makefile.am): Likewise.
16425 * modules/rpmatch (Makefile.am): Likewise.
16426 * modules/safe-read (Makefile.am): Likewise.
16427 * modules/safe-write (Makefile.am): Likewise.
16428 * modules/same-inode (Makefile.am): Likewise.
16429 * modules/same (Makefile.am): Likewise.
16430 * modules/save-cwd (Makefile.am): Likewise.
16431 * modules/savedir (Makefile.am): Likewise.
16432 * modules/setenv (Makefile.am): Likewise.
16433 * modules/settime (Makefile.am): Likewise.
16434 * modules/sha1 (Makefile.am): Likewise.
16435 * modules/sig2str (Makefile.am): Likewise.
16436 * modules/snprintf (Makefile.am): Likewise.
16437 * modules/stat-macros (Makefile.am): Likewise.
16438 * modules/stat-time (Makefile.am): Likewise.
16439 * modules/stdbool (Makefile.am): Likewise.
16440 * modules/stdint (Makefile.am): Likewise.
16441 * modules/stdlib-safer (Makefile.am): Likewise.
16442 * modules/stpcpy (Makefile.am): Likewise.
16443 * modules/stpncpy (Makefile.am): Likewise.
16444 * modules/strcase (Makefile.am): Likewise.
16445 * modules/strcasestr (Makefile.am): Likewise.
16446 * modules/strchrnul (Makefile.am): Likewise.
16447 * modules/strcspn (Makefile.am): Likewise.
16448 * modules/strdup (Makefile.am): Likewise.
16449 * modules/strerror (Makefile.am): Likewise.
16450 * modules/strftime (Makefile.am): Likewise.
16451 * modules/strndup (Makefile.am): Likewise.
16452 * modules/strnlen (Makefile.am): Likewise.
16453 * modules/strpbrk (Makefile.am): Likewise.
16454 * modules/strsep (Makefile.am): Likewise.
16455 * modules/strstr (Makefile.am): Likewise.
16456 * modules/strtod (Makefile.am): Likewise.
16457 * modules/strtoimax (Makefile.am): Likewise.
16458 * modules/strtok_r (Makefile.am): Likewise.
16459 * modules/strtol (Makefile.am): Likewise.
16460 * modules/strtoll (Makefile.am): Likewise.
16461 * modules/strtoul (Makefile.am): Likewise.
16462 * modules/strtoull (Makefile.am): Likewise.
16463 * modules/strtoumax (Makefile.am): Likewise.
16464 * modules/strverscmp (Makefile.am): Likewise.
16465 * modules/sys_socket (Makefile.am): Likewise.
16466 * modules/sys_stat (Makefile.am): Likewise.
16467 * modules/sysexits (Makefile.am): Likewise.
16468 * modules/time_r (Makefile.am): Likewise.
16469 * modules/timegm (Makefile.am): Likewise.
16470 * modules/timespec (Makefile.am): Likewise.
16471 * modules/tmpfile-safer (Makefile.am): Likewise.
16472 * modules/trim (Makefile.am): Likewise.
16473 * modules/unistd-safer (Makefile.am): Likewise.
16474 * modules/unlinkdir (Makefile.am): Likewise.
16475 * modules/unlocked-io (Makefile.am): Likewise.
16476 * modules/userspec (Makefile.am): Likewise.
16477 * modules/utime (Makefile.am): Likewise.
16478 * modules/utimecmp (Makefile.am): Likewise.
16479 * modules/utimens (Makefile.am): Likewise.
16480 * modules/vasnprintf (Makefile.am): Likewise.
16481 * modules/vasprintf (Makefile.am): Likewise.
16482 * modules/vsnprintf (Makefile.am): Likewise.
16483 * modules/xalloc (Makefile.am): Likewise.
16484 * modules/xgetcwd (Makefile.am): Likewise.
16485 * modules/xnanosleep (Makefile.am): Likewise.
16486 * modules/xreadlink (Makefile.am): Likewise.
16487 * modules/xstrtod (Makefile.am): Likewise.
16488 * modules/xstrtol (Makefile.am): Likewise.
16489 * modules/xstrtold (Makefile.am): Likewise.
16490 * modules/yesno (Makefile.am): Likewise.
16491 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16493 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
16495 * modules/error (Makefile.am): Distribute files through
16496 EXTRA_DIST, not lib_SOURCES.
16498 2006-10-12 Eric Blake <ebb9@byu.net>
16500 * modules/error (Makefile.am): Distribute files in /lib.
16501 * modules/obstack (Makefile.am): Likewise.
16503 2006-10-12 Bruno Haible <bruno@clisp.org>
16505 * modules/acl (Makefile.am): Distribute all files in lib/ through
16507 * modules/arcfour (Makefile.am): Likewise.
16508 * modules/arctwo (Makefile.am): Likewise.
16509 * modules/argmatch (Makefile.am): Likewise.
16510 * modules/argz (Makefile.am): Likewise.
16511 * modules/atexit (Makefile.am): Likewise.
16512 * modules/backupfile (Makefile.am): Likewise.
16513 * modules/c-strtod (Makefile.am): Likewise.
16514 * modules/c-strtold (Makefile.am): Likewise.
16515 * modules/calloc (Makefile.am): Likewise.
16516 * modules/canon-host (Makefile.am): Likewise.
16517 * modules/canonicalize (Makefile.am): Likewise.
16518 * modules/chdir-long (Makefile.am): Likewise.
16519 * modules/chdir-safer (Makefile.am): Likewise.
16520 * modules/check-version (Makefile.am): Likewise.
16521 * modules/chown (Makefile.am): Likewise.
16522 * modules/cloexec (Makefile.am): Likewise.
16523 * modules/close-stream (Makefile.am): Likewise.
16524 * modules/closeout (Makefile.am): Likewise.
16525 * modules/crc (Makefile.am): Likewise.
16526 * modules/cycle-check (Makefile.am): Likewise.
16527 * modules/des (Makefile.am): Likewise.
16528 * modules/dirfd (Makefile.am): Likewise.
16529 * modules/dirname (Makefile.am): Likewise.
16530 * modules/dup2 (Makefile.am): Likewise.
16531 * modules/euidaccess (Makefile.am): Likewise.
16532 * modules/exclude (Makefile.am): Likewise.
16533 * modules/exitfail (Makefile.am): Likewise.
16534 * modules/fcntl-safer (Makefile.am): Likewise.
16535 * modules/file-type (Makefile.am): Likewise.
16536 * modules/fileblocks (Makefile.am): Likewise.
16537 * modules/filemode (Makefile.am): Likewise.
16538 * modules/filenamecat (Makefile.am): Likewise.
16539 * modules/fnmatch (Makefile.am): Likewise.
16540 * modules/fopen-safer (Makefile.am): Likewise.
16541 * modules/fpending (Makefile.am): Likewise.
16542 * modules/fprintftime (Makefile.am): Likewise.
16543 * modules/free (Makefile.am): Likewise.
16544 * modules/fsusage (Makefile.am): Likewise.
16545 * modules/ftruncate (Makefile.am): Likewise.
16546 * modules/fts (Makefile.am): Likewise.
16547 * modules/gc (Makefile.am): Likewise.
16548 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16549 * modules/getaddrinfo (Makefile.am): Likewise.
16550 * modules/getcwd (Makefile.am): Likewise.
16551 * modules/getdelim (Makefile.am): Likewise.
16552 * modules/getdomainname (Makefile.am): Likewise.
16553 * modules/getgroups (Makefile.am): Likewise.
16554 * modules/gethostname (Makefile.am): Likewise.
16555 * modules/gethrxtime (Makefile.am): Likewise.
16556 * modules/getline (Makefile.am): Likewise.
16557 * modules/getloadavg (Makefile.am): Likewise.
16558 * modules/getlogin_r (Makefile.am): Likewise.
16559 * modules/getopt (Makefile.am): Likewise.
16560 * modules/getpass (Makefile.am): Likewise.
16561 * modules/getpass-gnu (Makefile.am): Likewise.
16562 * modules/getsubopt (Makefile.am): Likewise.
16563 * modules/gettime (Makefile.am): Likewise.
16564 * modules/gettimeofday (Makefile.am): Likewise.
16565 * modules/getugroups (Makefile.am): Likewise.
16566 * modules/getusershell (Makefile.am): Likewise.
16567 * modules/glob (Makefile.am): Likewise.
16568 * modules/group-member (Makefile.am): Likewise.
16569 * modules/hard-locale (Makefile.am): Likewise.
16570 * modules/hash (Makefile.am): Likewise.
16571 * modules/hmac-md5 (Makefile.am): Likewise.
16572 * modules/hmac-sha1 (Makefile.am): Likewise.
16573 * modules/human (Makefile.am): Likewise.
16574 * modules/idcache (Makefile.am): Likewise.
16575 * modules/imaxabs (Makefile.am): Likewise.
16576 * modules/imaxdiv (Makefile.am): Likewise.
16577 * modules/inet_ntop (Makefile.am): Likewise.
16578 * modules/inet_pton (Makefile.am): Likewise.
16579 * modules/inttostr (Makefile.am): Likewise.
16580 * modules/isapipe (Makefile.am): Likewise.
16581 * modules/lchown (Makefile.am): Likewise.
16582 * modules/long-options (Makefile.am): Likewise.
16583 * modules/lstat (Makefile.am): Likewise.
16584 * modules/malloc (Makefile.am): Likewise.
16585 * modules/mathl (Makefile.am): Likewise.
16586 * modules/mbchar (Makefile.am): Likewise.
16587 * modules/md2 (Makefile.am): Likewise.
16588 * modules/md4 (Makefile.am): Likewise.
16589 * modules/md5 (Makefile.am): Likewise.
16590 * modules/memcasecmp (Makefile.am): Likewise.
16591 * modules/memchr (Makefile.am): Likewise.
16592 * modules/memcmp (Makefile.am): Likewise.
16593 * modules/memcoll (Makefile.am): Likewise.
16594 * modules/memcpy (Makefile.am): Likewise.
16595 * modules/memmem (Makefile.am): Likewise.
16596 * modules/memmove (Makefile.am): Likewise.
16597 * modules/mempcpy (Makefile.am): Likewise.
16598 * modules/memrchr (Makefile.am): Likewise.
16599 * modules/memset (Makefile.am): Likewise.
16600 * modules/memxor (Makefile.am): Likewise.
16601 * modules/mkancesdirs (Makefile.am): Likewise.
16602 * modules/mkdir (Makefile.am): Likewise.
16603 * modules/mkdir-p (Makefile.am): Likewise.
16604 * modules/mkdtemp (Makefile.am): Likewise.
16605 * modules/mkstemp (Makefile.am): Likewise.
16606 * modules/mktime (Makefile.am): Likewise.
16607 * modules/modechange (Makefile.am): Likewise.
16608 * modules/mountlist (Makefile.am): Likewise.
16609 * modules/nanosleep (Makefile.am): Likewise.
16610 * modules/openat (Makefile.am): Likewise.
16611 * modules/pagealign_alloc (Makefile.am): Likewise.
16612 * modules/physmem (Makefile.am): Likewise.
16613 * modules/poll (Makefile.am): Likewise.
16614 * modules/posixtm (Makefile.am): Likewise.
16615 * modules/posixver (Makefile.am): Likewise.
16616 * modules/putenv (Makefile.am): Likewise.
16617 * modules/quote (Makefile.am): Likewise.
16618 * modules/quotearg (Makefile.am): Likewise.
16619 * modules/raise (Makefile.am): Likewise.
16620 * modules/read-file (Makefile.am): Likewise.
16621 * modules/readline (Makefile.am): Likewise.
16622 * modules/readlink (Makefile.am): Likewise.
16623 * modules/readtokens (Makefile.am): Likewise.
16624 * modules/readutmp (Makefile.am): Likewise.
16625 * modules/realloc (Makefile.am): Likewise.
16626 * modules/regex (Makefile.am): Likewise.
16627 * modules/rename (Makefile.am): Likewise.
16628 * modules/rename-dest-slash (Makefile.am): Likewise.
16629 * modules/rijndael (Makefile.am): Likewise.
16630 * modules/rmdir (Makefile.am): Likewise.
16631 * modules/rpmatch (Makefile.am): Likewise.
16632 * modules/safe-read (Makefile.am): Likewise.
16633 * modules/safe-write (Makefile.am): Likewise.
16634 * modules/same (Makefile.am): Likewise.
16635 * modules/save-cwd (Makefile.am): Likewise.
16636 * modules/savedir (Makefile.am): Likewise.
16637 * modules/setenv (Makefile.am): Likewise.
16638 * modules/settime (Makefile.am): Likewise.
16639 * modules/sha1 (Makefile.am): Likewise.
16640 * modules/sig2str (Makefile.am): Likewise.
16641 * modules/snprintf (Makefile.am): Likewise.
16642 * modules/stdlib-safer (Makefile.am): Likewise.
16643 * modules/stpcpy (Makefile.am): Likewise.
16644 * modules/stpncpy (Makefile.am): Likewise.
16645 * modules/strcase (Makefile.am): Likewise.
16646 * modules/strcasestr (Makefile.am): Likewise.
16647 * modules/strchrnul (Makefile.am): Likewise.
16648 * modules/strcspn (Makefile.am): Likewise.
16649 * modules/strdup (Makefile.am): Likewise.
16650 * modules/strerror (Makefile.am): Likewise.
16651 * modules/strftime (Makefile.am): Likewise.
16652 * modules/strndup (Makefile.am): Likewise.
16653 * modules/strnlen (Makefile.am): Likewise.
16654 * modules/strpbrk (Makefile.am): Likewise.
16655 * modules/strsep (Makefile.am): Likewise.
16656 * modules/strstr (Makefile.am): Likewise.
16657 * modules/strtod (Makefile.am): Likewise.
16658 * modules/strtoimax (Makefile.am): Likewise.
16659 * modules/strtok_r (Makefile.am): Likewise.
16660 * modules/strtol (Makefile.am): Likewise.
16661 * modules/strtoll (Makefile.am): Likewise.
16662 * modules/strtoul (Makefile.am): Likewise.
16663 * modules/strtoull (Makefile.am): Likewise.
16664 * modules/strtoumax (Makefile.am): Likewise.
16665 * modules/strverscmp (Makefile.am): Likewise.
16666 * modules/time_r (Makefile.am): Likewise.
16667 * modules/timegm (Makefile.am): Likewise.
16668 * modules/tmpfile-safer (Makefile.am): Likewise.
16669 * modules/unistd-safer (Makefile.am): Likewise.
16670 * modules/unlinkdir (Makefile.am): Likewise.
16671 * modules/userspec (Makefile.am): Likewise.
16672 * modules/utime (Makefile.am): Likewise.
16673 * modules/utimecmp (Makefile.am): Likewise.
16674 * modules/utimens (Makefile.am): Likewise.
16675 * modules/vasnprintf (Makefile.am): Likewise.
16676 * modules/vasprintf (Makefile.am): Likewise.
16677 * modules/vsnprintf (Makefile.am): Likewise.
16678 * modules/xalloc (Makefile.am): Likewise.
16679 * modules/xgetcwd (Makefile.am): Likewise.
16680 * modules/xnanosleep (Makefile.am): Likewise.
16681 * modules/xreadlink (Makefile.am): Likewise.
16682 * modules/xstrtod (Makefile.am): Likewise.
16683 * modules/xstrtol (Makefile.am): Likewise.
16684 * modules/xstrtold (Makefile.am): Likewise.
16685 * modules/yesno (Makefile.am): Likewise.
16687 2006-10-12 Jim Meyering <jim@meyering.net>
16689 * m4/getloadavg.m4: Revert the change below.
16691 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
16692 lib/getloadavg.c using "ls -L", not "test -f". The latter would
16693 fail with a symlink, which is what coreutils' ./bootstrap now
16694 creates by default.
16696 2006-10-12 Bruno Haible <bruno@clisp.org>
16698 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
16700 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
16701 MSVC and mingw explicitly.
16703 2006-10-11 Simon Josefsson <jas@extundo.com>
16704 Bruno Haible <bruno@clisp.org>
16706 Add support for multiple gnulib-tool invocations in the scope of a
16707 single configure.ac file.
16708 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
16709 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
16710 with the same contents as the _LIBADD variable.
16711 (func_emit_initmacro_start, func_emit_initmacro_end,
16712 func_emit_initmacro_done): New functions.
16713 (func_import, func_create_testdir): Invoke them. Allow the identifiers
16714 gl_LIBOBJS and gl_LTLIBOBJS.
16716 2006-10-11 Bruno Haible <bruno@clisp.org>
16718 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
16719 (func_create_testdir): Don't create po/Makefile.am, don't invoke
16720 autoreconf. Instead, invoke autopoint explicitly but move back the
16721 *.m4 files from gnulib.
16723 2006-10-11 Bruno Haible <bruno@clisp.org>
16725 * gnulib-tool (func_usage): Make module names after --create-testdir
16727 (func_create_testdir): If no module was specified, use nearly all
16730 2006-10-12 Jim Meyering <jim@meyering.net>
16732 Big performance improvement for fts-based tools that use FTS_NOSTAT.
16733 Avoid spurious inode-mismatch problems on non-POSIX file systems.
16734 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
16735 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
16736 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
16737 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
16738 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
16739 (fts_set_stat_required): New function.
16740 (fts_open): Defer the calls to fts_stat, if possible or requested.
16741 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
16742 into fts_stat itself.
16743 (fts_read): Perform any required (deferred) fts_stat call.
16744 (fts_build): Likewise, for the directory we're about to open and read.
16745 In the readdir loop, carefully decide whether each entry will require
16746 an eventual call to fts_stat, using dirent.d_type info if available.
16747 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
16748 a command line argument into this function. Update all callers.
16749 Map a return value of FTS_DOT to FTS_D for a command line argument.
16750 * modules/fts (Depends-on): Add d-type. Alphabetize.
16751 Thanks to Miklos Szeredi for his tenacity and for the initial
16752 bug report about "find" failing on a FUSE-based file system.
16754 * lib/fts.c (fts_open): Use consistent indentation.
16756 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
16758 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
16759 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
16760 reported by Jim Meyering. All uses of cache variables renamed
16761 to match Autoconf's.
16762 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
16765 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16766 Fix misspelling in diagnostic.
16768 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
16770 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
16771 defined. Problem reported by Matthew Woehlke.
16773 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
16774 Add support for Tandem NonStop R series.
16775 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
16778 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
16779 (has_trailing_slash): Omit size arg; all callers changed.
16780 Omit 'inline', since it doesn't help performance and we'd
16781 need to configure it.
16782 Don't count //, ///, etc. as having a trailing slash.
16783 As a side effect, this removes a C99ism reported by Matthew Woehlke.
16784 (rpl_rename_dest_slash): On failure, use rename's errno rather
16785 than (in some cases) an incorrect or junk errno.
16786 Simplify code by removing need to compute length; this does
16787 cause it to make two passes instead of one over the file name,
16790 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
16791 change, since Autoconf's version may no longer be appropriate now
16792 that we are using CVS Autoconf's version. Add support for Tandem.
16794 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
16795 Bruno Haible <bruno@clisp.org>
16797 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
16798 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
16799 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
16800 gl_AC_TYPE_LONG_LONG.
16802 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
16803 instead of HAVE_LONG_LONG.
16804 * lib/printf-args.c (printf_fetchargs): Likewise.
16805 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16806 * lib/vasnprintf.c (VASNPRINTF): Likewise.
16807 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
16808 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
16809 gl_AC_TYPE_LONG_LONG.
16811 2006-10-11 Bruno Haible <bruno@clisp.org>
16813 * m4/longlong.m4: Add comments.
16814 * m4/ulonglong.m4: Likewise.
16816 2006-10-10 Bruno Haible <bruno@clisp.org>
16818 Make it possible to #define stpcpy, strdup to aliases.
16819 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
16820 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
16822 2006-10-10 Bruno Haible <bruno@clisp.org>
16824 Make it possible to #define gcd to an alias.
16825 * lib/gcd.c: Include config.h.
16827 2006-10-10 Bruno Haible <bruno@clisp.org>
16829 Make it possible to #define c_isascii to an alias.
16830 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
16831 defined. Undefine the macros before defining them, to avoid gcc
16833 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
16834 define NO_C_CTYPE_MACROS early.
16836 2006-10-10 Bruno Haible <bruno@clisp.org>
16838 Make it possible to #define set_program_name to an alias.
16839 * lib/progname.c: Don't undefine set_program_name; instead, undefine
16840 ENABLE_RELOCATABLE early.
16842 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
16844 Port to Tandem NSK OSS, which has 64-bit signed int but at most
16845 32-bit unsigned int. Problem reported by Matthew Woehlke in:
16846 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
16847 More generally, don't assume that 64-bit signed int is available
16848 if unsigned int is, and vice versa.
16849 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
16850 unsigned symbols, not on their signed counterparts.
16851 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
16852 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
16853 (UINT64_C, UINTMAX_C):
16855 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
16856 unsigned counterparts.
16857 (Have_long_long, Unsigned): New macros.
16858 (Int): Renamed from INT.
16859 (strtoimax): Use the new macros.
16860 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
16861 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
16862 * modules/inttypes (inttypes.h): Substitute
16863 HAVE_UNSIGNED_LONG_LONG_INT.
16864 * modules/stdint (stdint.h): Likewise.
16865 (Files): Add m4/ulonglong.m4.
16867 2006-10-10 Bruno Haible <bruno@clisp.org>
16869 Fix a gcc -Wshadow warning.
16870 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
16872 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
16873 gl_linked_indexof_from_to): Likewise.
16874 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
16876 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
16878 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
16879 Reported by Eric Blake.
16881 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
16883 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
16884 for NetBSD. Problem reported by Bruno Haible.
16886 2006-10-09 Jim Meyering <jim@meyering.net>
16888 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
16889 Patch from Bruno Haible.
16891 2006-10-09 Jim Meyering <jim@meyering.net>
16893 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
16894 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
16895 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
16897 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
16899 Don't include <config.h> twice; this doesn't work in some cases,
16900 e.g., when config.h has "#define intmax_t long long int" and
16901 we include <config.h>, <inttypes.h>, <config.h> in that order.
16902 Problem reported by Matthew Woehlke in:
16903 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
16904 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
16905 * lib/fts-cycle.c: Don't include config.h.
16906 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
16907 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
16908 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
16909 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
16911 * lib/xstrtoumax.c: Likewise.
16912 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
16913 __strtol and the like, so that this module is more like its siblings.
16914 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
16915 Remove; no longer needed now that we assume gnulib inttypes.h.
16917 2006-10-08 Bruno Haible <bruno@clisp.org>
16919 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
16922 2006-10-07 Jim Meyering <jim@meyering.net>
16924 * modules/inttypes (inttypes.h): Revert what seems to have been
16925 an inadvertent part of today's change: use "|", not "/" in the
16926 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
16928 2006-10-07 Bruno Haible <bruno@clisp.org>
16930 * modules/sublist: New file.
16932 2006-10-07 Bruno Haible <bruno@clisp.org>
16934 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
16935 * modules/argz (argz.h): Likewise.
16936 * modules/arpa_inet (arpa/inet.h): Likewise.
16937 * modules/byteswap (byteswap.h): Likewise.
16938 * modules/configmake (configmake.h): Likewise.
16939 * modules/fcntl (fcntl.h): Likewise.
16940 * modules/fnmatch (fnmatch.h): Likewise.
16941 * modules/getopt (getopt.h): Likewise.
16942 * modules/glob (glob.h): Likewise.
16943 * modules/inttypes (inttypes.h): Likewise.
16944 * modules/netinet_in (netinet/in.h): Likewise.
16945 * modules/poll (poll.h): Likewise.
16946 * modules/stdbool (stdbool.h): Likewise.
16947 * modules/stdint (stdint.h): Likewise.
16948 * modules/sys_select (sys/select.h): Likewise.
16949 * modules/sys_socket (sys/socket.h): Likewise.
16950 * modules/sys_stat (sys/stat.h): Likewise.
16951 * modules/sysexits (sysexits.h): Likewise.
16952 * modules/unistd (unistd.h): Likewise.
16953 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16954 Add a "DO NOT EDIT" comment to the generated file.
16955 (func_import): Likewise for gnulib-comp.m4.
16957 2006-10-07 Bruno Haible <bruno@clisp.org>
16959 * lib/gl_sublist.h: New file.
16960 * lib/gl_sublist.c: New file.
16962 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
16964 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
16965 name (relative to the original working directory) and the file
16966 name component (relative to the temporary working directory). All
16968 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
16969 * lib/mkdir-p.c (make_dir_parents): Likewise.
16970 * lib/mkdir-p.h (make_dir_parents): Likewise.
16972 2006-10-06 Eric Blake <ebb9@byu.net>
16974 Define several macros for use by the clean-temp module.
16975 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
16976 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
16977 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
16979 * lib/clean-temp.h (close_stream_temp): New declaration.
16980 * lib/clean-temp.c (includes): Pull in headers according to what
16981 other modules are in use.
16982 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
16984 2006-10-06 Bruno Haible <bruno@clisp.org>
16986 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
16987 instead of fopen, fwriteerror.
16989 2006-10-06 Bruno Haible <bruno@clisp.org>
16991 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
16992 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
16994 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
16995 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
16996 Return an error indicator.
16997 Suggested by Eric Blake.
16999 2006-10-06 Bruno Haible <bruno@clisp.org>
17001 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
17002 Reported by Eric Blake.
17004 2006-10-06 Bruno Haible <bruno@clisp.org>
17006 * modules/closeout (Description): Mention stderr too.
17008 2006-10-06 Bruno Haible <bruno@clisp.org>
17009 and Paul Eggert <eggert@cs.ucla.edu>
17011 * lib/closeout.c (close_stdout): Also close stderr.
17012 * lib/closeout.h: Update comment.
17014 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
17016 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
17017 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
17018 * lib/dirchownmod.c: Include lchown.h.
17019 * lib/lchown.c: Don't include files that lchown.h now includes.
17020 Don't declare chown, since lchown.h now does that.
17021 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
17022 (lchown): Define to rpl_chown if lchown is declared but
17023 does not exist. Declare using a prototype if lchown is not
17024 declared. Add a copyright notice.
17025 * lib/mkstemp.h: Include <unistd.h>.
17026 * lib/openat.c: Include lchown.h.
17028 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
17029 we now test for that separately.
17030 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
17031 rather than O_NOFOLLOW, when testing whether it's possible to
17032 avoid a race condition reliably.
17033 * lib/savewd.c (savewd_chdir): Likewise.
17035 Remove macros that are no longer needed now that stdint.h is
17037 * lib/fsusage.c (UINTMAX_MAX): Remove.
17038 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
17039 * lib/utimecmp.c (SIZE_MAX): Remove.
17041 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
17043 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
17044 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
17047 2006-10-05 Bruno Haible <bruno@clisp.org>
17049 * lib/gl_list.h (gl_sortedlist_search_from_to,
17050 gl_sortedlist_indexof_from_to): New declarations.
17051 (gl_list_implementation): New fields sortedlist_search_from_to,
17052 sortedlist_indexof_from_to.
17053 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
17055 * lib/gl_list.c (gl_sortedlist_search_from_to,
17056 gl_sortedlist_indexof_from_to): New functions.
17057 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
17059 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
17060 (gl_array_sortedlist_search_from_to): New function.
17061 (gl_array_list_implementation): Update.
17062 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
17064 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
17065 (gl_carray_sortedlist_search_from_to): New function.
17066 (gl_carray_list_implementation): Update.
17067 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
17068 gl_linked_sortedlist_indexof_from_to): New functions.
17069 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17070 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17071 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
17072 gl_tree_sortedlist_indexof_from_to): New functions.
17073 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17074 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17076 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17077 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
17080 2006-10-05 Bruno Haible <bruno@clisp.org>
17082 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
17083 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
17084 (struct gl_list_implementation): Add fields search_from_to,
17085 indexof_from_to. Remove fields search, indexof.
17086 (gl_list_search): Use the search_from_to method.
17087 (gl_list_search_from, gl_list_search_from_to): New functions.
17088 (gl_list_indexof): Use the indexof_from_to method.
17089 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17090 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
17091 (gl_list_search_from, gl_list_search_from_to): New functions.
17092 (gl_list_indexof): Use the indexof_from_to method.
17093 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17094 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
17095 gl_array_indexof. Add start_index, end_index arguments.
17096 (gl_array_search_from_to): Renamed from gl_array_search. Add
17097 start_index, end_index arguments.
17098 (gl_array_remove, gl_array_list_implementation): Update.
17099 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
17100 gl_carray_indexof. Add start_index, end_index arguments.
17101 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
17102 start_index, end_index arguments.
17103 (gl_carray_remove, gl_carray_list_implementation): Update.
17104 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
17105 gl_linked_search. Add start_index, end_index arguments.
17106 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
17107 start_index, end_index arguments.
17108 (gl_linked_remove): Update.
17109 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17110 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17111 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
17113 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
17114 gl_tree_search. Add start_index, end_index arguments.
17115 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17116 start_index, end_index arguments.
17117 (gl_tree_remove): Update.
17118 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17119 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17120 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
17122 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
17123 gl_tree_search. Add start_index, end_index arguments.
17124 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17125 start_index, end_index arguments.
17126 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17128 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17130 2006-10-05 Bruno Haible <bruno@clisp.org>
17132 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
17134 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
17135 fwriteerror_temp): New declarations.
17136 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
17137 (descriptors): New variable.
17138 (cleanup): First, close the descriptors.
17139 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
17140 fclose_temp, fwriteerror_temp): New functions.
17142 2006-10-04 Jim Meyering <jim@meyering.net>
17144 * lib/fts.c (fts_open): Tiny comment change.
17146 2006-10-04 Bruno Haible <bruno@clisp.org>
17148 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
17149 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
17151 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
17152 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
17153 gl_LOCK_EARLY_BODY.
17154 (gl_LOCK): Require gl_LOCK_BODY.
17156 2006-10-04 Bruno Haible <bruno@clisp.org>
17158 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
17159 (gl_oset_search_atleast): New declaration.
17160 (struct gl_oset_implementation): Add field 'search_atleast'.
17161 (gl_oset_search_atleast): New inline function.
17162 * lib/gl_oset.c (gl_oset_search_atleast): New function.
17163 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
17164 (gl_array_oset_implementation): Update.
17165 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
17166 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
17167 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
17169 2006-10-04 Bruno Haible <bruno@clisp.org>
17171 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
17173 2006-10-03 Bruno Haible <bruno@clisp.org>
17175 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
17176 from gl_avltreehash_list_implementation.
17178 2006-10-03 Bruno Haible <bruno@clisp.org>
17180 * lib/gl_oset.c (gl_oset_add): Fix return type.
17182 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
17184 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
17186 2006-10-02 Eric Blake <ebb9@byu.net>
17188 * modules/strnlen (Depends-on): Add extensions.
17190 2006-10-02 Eric Blake <ebb9@byu.net>
17192 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
17193 definition in 2.60+.
17195 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
17197 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
17200 2006-10-02 Bruno Haible <bruno@clisp.org>
17202 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
17203 to the AUTOMAKE_OPTIONS.
17204 Reported by Jim Meyering.
17206 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
17208 Work around bug in Solaris 10 /proc file system:
17209 /proc/self/fd/NNN/.. isn't the parent directory of
17210 the directory whose file descriptor is NNN. This needs to
17211 be worked around at run time, not compile time, since a
17212 program might be built on Solaris 8, where things work, and
17214 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
17215 to use the following interface instead:
17216 (OPENAT_BUFFER_SIZE): New macro.
17217 (openat_proc_name): New function.
17218 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
17219 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
17221 * lib/openat-proc.c: New file.
17222 * modules/openat (Files): Add lib/openat-proc.c.
17223 (Depends-on): Add same-inode, stdbool.
17224 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
17226 2006-09-29 Bruno Haible <bruno@clisp.org>
17228 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
17229 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
17230 argument. Set stdout_closed before testing for ferror, not after.
17231 (fwriteerror, fwriteerror_no_ebadf): New functions.
17233 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17235 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
17237 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
17239 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
17240 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
17242 2006-09-28 Jim Meyering <jim@meyering.net>
17244 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
17245 Include <unistd.h>.
17247 2006-09-28 Bruno Haible <bruno@clisp.org>
17249 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
17250 * modules/linkedhash-list (Depends-on): Likewise.
17251 * modules/rbtreehash-list (Depends-on): Likewise.
17253 2006-09-28 Bruno Haible <bruno@clisp.org>
17255 * lib/strndup.h: Simplify the redefinition of strndup.
17256 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
17257 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
17259 2006-09-28 Bruno Haible <bruno@clisp.org>
17261 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
17262 * lib/gl_linkedhash_list.c: Likewise.
17263 * lib/gl_rbtreehash_list.c: Likewise.
17265 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
17267 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
17270 * lib/__fpending.h: Don't include <stdio_ext.h> unless
17271 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
17272 it causes <stdio_ext.h> to cause a compile-time error.
17273 Problem reported by Nelson H. F. Beebe.
17274 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
17275 of HAVE_DECL___PENDING.
17277 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
17278 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
17281 2006-09-27 Jim Meyering <jim@meyering.net>
17283 This file could end up with a definition for a function
17284 named __strndup, rather than rpl_strndup on a system with
17285 incomplete weak_alias support.
17286 * lib/strndup.c (strndup): Rename from __strndup.
17287 Remove #defines that used to map __strndup to strndup.
17288 Don't use K&R prototypes.
17289 Remove LIBC-related code, since this file is not sync'd with glibc.
17290 * lib/strndup.h: Revamp, accordingly.
17291 * m4/strndup.m4: Modernize.
17293 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
17295 * modules/savewd (Depends-on): Add 'raise'.
17296 * lib/savewd.c: Include <signal.h>, for 'raise'.
17298 2006-09-26 Jim Meyering <jim@meyering.net>
17300 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
17301 when we detect Darwin 8.7.0's acl_get_file bug.
17302 Rearrange to perform the new (below) run-test while $LIBS
17303 contains any acl-related library. Set USE_ACL at the end.
17304 (gl_ACL_GET_FILE): New function.
17306 2006-09-26 Eric Blake <ebb9@byu.net>
17308 * lib/verror.c: Include <config.h> unconditionally.
17310 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
17312 * modules/clock-time (Maintainer): Add self.
17313 * modules/getlogin_r (Depends-on): Add extensions.
17315 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17317 * modules/clock-time: New module.
17318 * modules/nanosleep (Depends-on): Add clock-time.
17319 * modules/gethrxtime (Depends-on): Likewise.
17320 * modules/gettime (Depends-on): Likewise.
17321 * modules/settime (Depends-on): Likewise.
17323 * modules/fts-lgpl: Depend on openat.
17324 * modules/mkancesdirs: Depend on savewd.
17325 * modules/mkdir-p: Likewise.
17327 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17329 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
17331 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
17332 `gl_have_arbitrary_file_name_length_limit' to
17333 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
17334 actually works between configure runs.
17336 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17337 Bruno Haible <bruno@clisp.org>
17339 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
17341 2006-09-25 Jim Meyering <jim@meyering.net>
17343 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
17344 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
17346 2006-09-25 Eric Blake <ebb9@byu.net>
17348 * gnulib-tool (func_import, func_create_testdir): Fix typos in
17349 exec's in 2006-09-18 patch when shuffling fds.
17351 2006-09-25 Bruno Haible <bruno@clisp.org>
17353 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
17354 Reported by Jim Meyering.
17356 2006-09-24 Jim Meyering <jim@meyering.net>
17358 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
17359 compare a pointer against a literal "0". That caused failures with
17360 at least HP-UX's hpcc.
17362 2006-09-22 Simon Josefsson <jas@extundo.com>
17366 * modules/gc-hmac-sha1:
17367 * modules/gc-hmac-md5:
17369 * modules/gc-arcfour: Distribute more files.
17371 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17373 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
17374 (gl_linked_iterator_from_to): Initialize struct completely.
17375 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
17376 (gl_tree_iterator_from_to): Likewise
17377 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
17378 * lib/gl_array_list.c [lint] (gl_array_iterator)
17379 (gl_array_iterator_from_to): Likewise.
17380 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
17381 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
17382 (gl_carray_iterator_from_to): Likewise.
17384 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
17385 * lib/md4.c (md4_process_block): Remove unused variable.
17386 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
17387 parentheses for clarity.
17389 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17391 * modules/bison-i18n (Depends-on): Add gettext.
17393 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17395 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
17396 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17397 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
17398 also add missing comma that caused broken test.
17399 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
17400 stdlib.h, for `abort'.
17401 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
17403 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
17404 include unistd.h if present, for `rmdir'.
17405 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17407 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17408 in the process include standard headers for prototypes.
17409 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17410 gets declared on GNU/Linux.
17411 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17412 unistd.h, for `rmdir'.
17413 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17415 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17417 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17419 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17421 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17423 * gnulib-tool (func_version): Create output all at once. This
17424 may help avoid triggering unnecessary SIGPIPEs, and at any
17425 rate it doesn't hurt.
17427 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17428 Bruno Haible <bruno@clisp.org>
17430 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17431 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17432 * m4/signed.m4 (bh_C_SIGNED): Likewise.
17434 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17435 (gl_FUNC_VASPRINTF): Invoke it.
17437 2006-09-22 Bruno Haible <bruno@clisp.org>
17439 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17440 getloadavg.c as first argument.
17442 2006-09-22 Bruno Haible <bruno@clisp.org>
17444 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17445 at the beginning of the gl_INIT macro.
17446 * modules/getloadavg (configure.ac): Pass $gl_source_base to
17449 2006-09-22 Bruno Haible <bruno@clisp.org>
17451 * gnulib-tool (func_create_megatestdir): Don't include the config-h
17453 Suggested by Ralf Wildenhues.
17455 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
17457 Import this patch from libc:
17459 2006-09-06 Jakub Jelinek <jakub@redhat.com>
17461 * lib/regex_internal.c (re_string_reconstruct): Handle
17462 offset < pstr->valid_raw_len && pstr->offsets_needed case.
17463 Ensure no bytes read before raw_mbs array. Pass a saved copy of
17464 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17465 re_string_context_at.
17467 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17469 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17470 gl_REGEX now does it for us.
17471 (gl_REGEX): Add test taken from
17472 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17474 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17475 Check that large offsets work. Modernize Autoconf usages.
17476 Prefer "yes" to mean a good thing rather than a bad.
17477 Don't put "#define mkstemp" in config.h, as this might interfere
17478 with standard system headers that "#define mkstemp mkstemp64".
17480 * modules/mkstemp (Depends-on): Add extensions, so that
17481 mkstemp is visible on some platforms.
17482 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17483 (Include): Change to "mkstemp.h" from <stdlib.h>.
17484 (Files): Add mkstemp.h.
17486 * lib/mkstemp.h: New file, since some standard headers
17488 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17489 Include "mkstemp.h".
17490 Make the _LIBC code resemble glibc original more,
17491 e.g., use K&R style.
17492 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17493 (mkstemp): Remove, since mkstemp.h does this for us.
17494 * lib/stdlib--.h: Include mkstemp.h.
17496 Import this patch from libc:
17498 2006-04-07 Ulrich Drepper <drepper@redhat.com>
17500 * lib/tempname.c (__gen_tempname): Change attempts_min
17501 into a macro. Use preprocessor to decide how to initialize
17502 attempts [Coverity CID 67].
17504 2006-09-20 Bruno Haible <bruno@clisp.org>
17506 * lib/mkdtemp.c: Import from libc.
17507 2006-04-07 Ulrich Drepper <drepper@redhat.com>
17508 * sysdeps/posix/tempname.c (__gen_tempname): Change
17509 attempts_min into a macro. Use preprocessor to decide how to
17510 initialize attempts [Coverity CID 67].
17511 2001-11-27 Paul Eggert <eggert@twinsun.com>
17512 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17513 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17515 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17517 * gnulib-tool (func_exit): New function, to allow to pass the
17518 exit status portably through the trap. Use everywhere.
17519 (--help, --version): Signal a write error.
17520 (trap): catch SIGPIPE, for write errors.
17521 Exit at the end of the trap, with the correct exit status.
17523 2006-09-19 Karl Berry <karl@gnu.org>
17525 * doc/gnulib.texi: note about the license texinfo files.
17527 2006-09-19 Eric Blake <ebb9@byu.net>
17529 * gnulib-tool: Avoid space-tab.
17531 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
17533 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17534 that prevented coreutils 6.1 from building. Problem reported
17535 by Petter Reinholdtsen.
17537 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
17539 * gnulib-tool (avoidlist): Fix typo that broke options like
17540 --avoid=lock that are used by coreutils bootstrap.
17542 2006-09-18 Mark D. Baushke <mdb@gnu.org>
17544 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17545 more systematically.
17547 2006-09-18 Jim Meyering <jim@meyering.net>
17549 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17551 2006-09-18 Bruno Haible <bruno@clisp.org>
17553 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17555 2006-09-18 Bruno Haible <bruno@clisp.org>
17557 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17558 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17559 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17560 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17561 * m4/gettext.m4: Require autoconf >= 2.52.
17562 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17563 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17564 of gl_cv_header_inttypes_h.
17566 2006-09-18 Bruno Haible <bruno@clisp.org>
17568 * lib/javaversion.c: Include configmake.h.
17570 2006-09-18 Bruno Haible <bruno@clisp.org>
17572 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17573 avoid that the while loops be executed in a subshell.
17575 2006-09-18 Bruno Haible <bruno@clisp.org>
17577 * MODULES.html.sh (func_module): Break long lines.
17578 Suggested by Bruce Korb <bkorb@gnu.org>.
17580 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17582 Speed up by a factor of 1.12.
17583 * gnulib-tool (nl): New variable.
17584 (func_import): Rewrite include directive extraction to only read each
17587 2006-09-17 Bruno Haible <bruno@clisp.org>
17589 * modules/javaversion (Makefile.am): Remove DEFS setting.
17590 (Depends-on): Add configmake, for PKGDATADIR definition.
17592 2006-09-17 Bruno Haible <bruno@clisp.org>
17594 * gnulib-tool (func_create_testdir): Rewrite all files at once.
17596 2006-09-17 Bruno Haible <bruno@clisp.org>
17598 * gnulib-tool (func_append): New function, stolen from libtool.m4.
17599 (func_modules_transitive_closure, func_modules_add_dummy,
17600 func_modules_to_filelist, func_import, func_create_testdir,
17601 func_create_megatestdir, ...): Use it wherever possible.
17602 Suggested by Ralf Wildenhues.
17604 2006-09-16 Karl Berry <karl@gnu.org>
17606 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
17607 to avoid sectioning errors.
17608 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
17609 [ifinfo]: blank line after @center-ed titles.
17610 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
17611 Spell FSF address consistently with others.
17612 (These changes approved by rms.)
17614 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17616 Speed up by a factor of 1.61.
17617 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
17618 already checked module names again.
17620 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17622 Speed up by a factor of 1.13.
17623 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
17624 for new_files, and the input to func_add_or_update.
17626 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17628 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
17629 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
17631 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
17633 * modules/mkancesdirs (Depends-on): Add fcntl.
17634 * modules/savewd: New file.
17635 * MODULES.html.sh (File system functions): Add savewd.
17637 * modules/configmake (Makefile.am): Add support for the
17638 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
17640 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
17642 * m4/savewd.m4: New file.
17644 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
17646 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
17647 (dirchownmod): New arg FD. All callers changed.
17648 Use FD rather than opening the directory ourself, as opening is
17649 now the caller's responsibility.
17650 * lib/dirchownmod.h: Likewise.
17651 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
17652 hosts that require <sys/types.h> before <sys/stat.h>. Include
17653 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
17654 (test_dir): Remove.
17655 (mkancesdirs): Return length of prefix of FILE that has already
17656 been made, or -2 if there is a child doing the work. Redo
17657 algorithm so that it is O(N) rather than O(N**2). Optimize away
17658 ".", and treat ".." specially since it might stray back into
17659 already-created areas. Use a subprocess if necessary. New arg
17660 WD; all users changed. MAKE_DIR function should now return 1
17661 if it creates a directory that is not readable. Return -2 if
17662 a child process is spun off.
17663 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
17664 Adjust signature to match code.
17665 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
17666 (make_dir_parents): Use a subprocess if necessary. New arg WD;
17668 * lib/savewd.c, lib/savewd.h: New files.
17670 2006-09-15 Jim Meyering <jim@meyering.net>
17672 * modules/rename-dest-slash: New module.
17673 * MODULES.html.sh (posix_compat): Add it here.
17675 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
17677 2006-09-15 Jim Meyering <jim@meyering.net>
17679 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
17682 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
17684 2006-09-15 Jim Meyering <jim@meyering.net>
17686 * lib/rename-dest-slash.c (has_trailing_slash): Use
17687 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
17688 (rpl_rename_dest_slash): Perform the cheaper trailing slash
17689 test before testing whether SRC is a directory.
17690 Suggestions from Bruno Haible.
17692 Avoid a warning about an unused variable.
17693 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
17694 into the #ifdef block where it's used.
17696 * lib/rename-dest-slash.c: New file.
17698 2006-09-14 Bruno Haible <bruno@clisp.org>
17700 * lib/allocsa.c: Include <config.h> unconditionally.
17701 * lib/asnprintf.c: Likewise.
17702 * lib/asprintf.c: Likewise.
17703 * lib/c-strcasecmp.c: Likewise.
17704 * lib/c-strcasestr.c: Likewise.
17705 * lib/c-strncasecmp.c: Likewise.
17706 * lib/c-strstr.c: Likewise.
17707 * lib/classpath.c: Likewise.
17708 * lib/clean-temp.c: Likewise.
17709 * lib/concatpath.c: Likewise.
17710 * lib/copy-file.c: Likewise.
17711 * lib/csharpcomp.c: Likewise.
17712 * lib/csharpexec.c: Likewise.
17713 * lib/execute.c: Likewise.
17714 * lib/fatal-signal.c: Likewise.
17715 * lib/findprog.c: Likewise.
17716 * lib/fwriteerror.c: Likewise.
17717 * lib/gl_array_list.c: Likewise.
17718 * lib/gl_array_oset.c: Likewise.
17719 * lib/gl_avltree_list.c: Likewise.
17720 * lib/gl_avltree_oset.c: Likewise.
17721 * lib/gl_avltreehash_list.c: Likewise.
17722 * lib/gl_carray_list.c: Likewise.
17723 * lib/gl_linked_list.c: Likewise.
17724 * lib/gl_linkedhash_list.c: Likewise.
17725 * lib/gl_list.c: Likewise.
17726 * lib/gl_oset.c: Likewise.
17727 * lib/gl_rbtree_list.c: Likewise.
17728 * lib/gl_rbtree_oset.c: Likewise.
17729 * lib/gl_rbtreehash_list.c: Likewise.
17730 * lib/imaxabs.c: Likewise.
17731 * lib/imaxdiv.c: Likewise.
17732 * lib/javacomp.c: Likewise.
17733 * lib/javaexec.c: Likewise.
17734 * lib/javaversion.c: Likewise.
17735 * lib/linebreak.c: Likewise.
17736 * lib/localcharset.c: Likewise.
17737 * lib/lock.c: Likewise.
17738 * lib/mbchar.c: Likewise.
17739 * lib/mbswidth.c: Likewise.
17740 * lib/mkdtemp.c: Likewise.
17741 * lib/pipe.c: Likewise.
17742 * lib/printf-args.c: Likewise.
17743 * lib/printf-parse.c: Likewise.
17744 * lib/progname.c: Likewise.
17745 * lib/progreloc.c: Likewise.
17746 * lib/readlink.c: Likewise.
17747 * lib/sh-quote.c: Likewise.
17748 * lib/stpcpy.c: Likewise.
17749 * lib/stpncpy.c: Likewise.
17750 * lib/strcasecmp.c: Likewise.
17751 * lib/strcasestr.c: Likewise.
17752 * lib/strcspn.c: Likewise.
17753 * lib/striconv.c: Likewise.
17754 * lib/strncasecmp.c: Likewise.
17755 * lib/strnlen1.c: Likewise.
17756 * lib/strstr.c: Likewise.
17757 * lib/strtok_r.c: Likewise.
17758 * lib/tls.c: Likewise.
17759 * lib/tmpdir.c: Likewise.
17760 * lib/unicodeio.c: Likewise.
17761 * lib/unsetenv.c: Likewise.
17762 * lib/vasnprintf.c: Likewise.
17763 * lib/vasprintf.c: Likewise.
17764 * lib/wait-process.c: Likewise.
17765 * lib/xallocsa.c: Likewise.
17766 * lib/xsetenv.c: Likewise.
17767 * lib/xstriconv.c: Likewise.
17769 2006-09-13 Simon Josefsson <jas@extundo.com>
17771 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
17772 that internally, suggested by Ralf Wildenhues
17773 <Ralf.Wildenhues@gmx.de>.
17775 2006-09-13 Simon Josefsson <jas@extundo.com>
17777 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
17779 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17781 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
17783 * lib/_fpending.c: Include <config.h> unconditionally, since we no
17784 longer worry about uses that don't define HAVE_CONFIG_H.
17785 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
17786 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
17787 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
17788 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
17789 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
17790 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
17791 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
17792 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
17793 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
17794 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
17795 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
17796 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
17797 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
17798 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
17799 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
17800 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
17801 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
17802 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
17803 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
17804 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
17805 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
17806 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
17807 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
17808 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
17809 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
17810 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
17811 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
17812 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
17813 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
17814 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
17815 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
17816 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
17817 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
17818 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
17819 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
17820 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
17821 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
17822 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
17823 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
17824 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
17825 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
17828 2006-09-13 Eric Blake <ebb9@byu.net>
17830 * lib/getopt.c: Fix typo in last commit.
17832 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
17834 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
17837 2006-09-12 Jim Meyering <jim@meyering.net>
17839 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
17840 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
17841 Reported by Nelson H. F. Beebe.
17843 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
17845 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
17846 program_invocation_name and program_invocation_short_name are
17848 * lib/argp-namefrob.h: Move declarations of program_invocation_name
17849 and program_invocation_short_name to argp.h, so they are visible
17851 * lib/argp.h: Likewise
17853 2006-09-10 Bruno Haible <bruno@clisp.org>
17855 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
17856 m4/inttypes_h.m4, m4/uintmax_t.m4.
17858 2006-09-10 Bruno Haible <bruno@clisp.org>
17860 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
17861 gl_AC_TYPE_UINTMAX_T.
17863 2006-09-10 Bruno Haible <bruno@clisp.org>
17865 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
17867 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
17869 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
17870 convention. Text proposed by Bruno Haible.
17871 (struct argp_option): Document the use of N_() wrappers.
17873 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
17874 '\v', and translate the two parts separately, instead of feeding
17875 the whole string to gettext. This allows to exclude
17876 '\v' from the strings visible to the translator by writing doc
17877 strings as N_("..") "\v" N_("..").
17879 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
17881 * config/srclist.txt: Undo latest change; the bug was fixed.
17883 2006-09-09 Bruno Haible <bruno@clisp.org>
17885 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
17886 assignments if building a library without libtool.
17887 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
17888 in func_emit_lib_Makefile_am.
17889 (func_import): When building a static library libfoo.a, arrange to
17890 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
17891 (func_create_testdir): Likewise.
17892 * modules/gc (configure.ac, Makefile.am): If building statically,
17893 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
17894 * modules/iconvme (configure.ac, Makefile.am): Likewise.
17895 * modules/striconv (configure.ac, Makefile.am): Likewise.
17896 Based on a suggestion by Ralf Wildenhues.
17898 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17900 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
17901 Check for unistd.h too, since Autoconf doesn't assume POSIX.
17904 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17905 Add year_2050_test to catch glibc bug 2821
17906 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17908 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
17909 Prefer #ifdef to #if.
17911 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
17912 Return from 'main' instead of calling 'exit'.
17914 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17916 * lib/mktime.c (guess_time_tm): Fix bug where mktime
17917 returned the maximum time_t value rather than (time_t) -1.
17918 Problem originally reported by William Bardwell
17919 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
17921 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17923 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
17926 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
17928 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
17931 2006-09-08 Jim Meyering <jim@meyering.net>
17933 Don't make generated files read-only. That would bother too many
17934 people. However, do retain the ability to work when targets are
17935 read-only: remove the destination and temporary files before writing
17936 them (when generated via sed or echo), or by using the -f option for
17937 both cp and mv commands. Suggestion to use -f from Paul Eggert.
17938 * modules/alloca-opt, modules/argz, modules/arpa_inet:
17939 * modules/byteswap, modules/configmake, modules/fcntl:
17940 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17941 * modules/localcharset, modules/netinet_in, modules/poll:
17942 * modules/stdbool, modules/stdint, modules/sys_select:
17943 * modules/sys_socket, modules/sys_stat, modules/sysexits:
17945 2006-09-08 Jim Meyering <jim@meyering.net>
17947 Avoid new build failure on FreeBSD 6.0.
17948 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
17949 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
17950 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
17952 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17954 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
17956 2006-09-07 Jim Meyering <jim@meyering.net>
17958 Fix global typo in last change: use chmod u-w, not chmod u-x.
17959 Spotted by Paul Eggert and Bruce Korb.
17960 * modules/alloca-opt, modules/argz, modules/arpa_inet:
17961 * modules/byteswap, modules/configmake, modules/fcntl:
17962 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
17963 * modules/localcharset, modules/netinet_in, modules/poll:
17964 * modules/stdbool, modules/stdint, modules/sys_select:
17965 * modules/sys_socket, modules/sys_stat, modules/sysexits:
17967 2006-09-06 Jim Meyering <jim@meyering.net>
17969 Make generated files be read-only.
17970 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
17971 Ensure that each generated file is now read-only.
17972 * modules/argz: Likewise.
17973 * modules/arpa_inet: Likewise.
17974 * modules/byteswap: Likewise.
17975 * modules/configmake: Likewise.
17976 * modules/fcntl: Likewise.
17977 * modules/fnmatch: Likewise.
17978 * modules/getopt: Likewise.
17979 * modules/glob: Likewise.
17980 * modules/inttypes: Likewise.
17981 * modules/netinet_in: Likewise.
17982 * modules/poll: Likewise.
17983 * modules/stdbool: Likewise.
17984 * modules/stdint: Likewise.
17985 * modules/sys_select: Likewise.
17986 * modules/sys_socket: Likewise.
17987 * modules/sys_stat: Likewise.
17988 * modules/sysexits: Likewise.
17989 * modules/localcharset: Same as above, but continue using temporary
17990 file named "t-$@" (why different?) rather than the "$@-t" used
17993 * modules/sysexits (Makefile.am): Replace literal occurrences
17994 of "sysexit.h" more readable, and more consistent, "$@".
17996 2006-09-06 Bruno Haible <bruno@clisp.org>
17998 * modules/striconv: New file.
17999 * modules/xstriconv: New file.
18000 * MODULES.html.sh (Internationalization functions): Add striconv,
18003 2006-09-06 Bruno Haible <bruno@clisp.org>
18005 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
18006 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
18007 not using libtool correctly.
18009 2006-09-06 Bruno Haible <bruno@clisp.org>
18011 * lib/striconv.h: New file.
18012 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
18014 * lib/xstriconv.h: New file.
18015 * lib/xstriconv.c: New file.
18017 2006-09-06 Bruno Haible <bruno@clisp.org>
18019 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18022 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18024 * lib/argz_.h: Sync from Libtool.
18026 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
18027 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18029 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
18031 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
18033 * modules/trim: New file.
18035 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
18037 * lib/trim.h: New file.
18038 * lib/trim.c: New file.
18040 2006-09-05 Bruno Haible <bruno@clisp.org>
18042 * MODULES.html.sh (String handling): Add trim.
18044 2006-09-04 Karl Berry <karl@gnu.org>
18046 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
18047 until next release.
18049 2006-09-03 Bruno Haible <bruno@clisp.org>
18051 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
18054 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
18056 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
18057 not gl_GETLOADAVG. Omit unneeded semicolons.
18058 Problems reported by Ralf Wildenhues in
18059 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18060 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
18061 at the end, which is the usual gnulib style.
18063 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
18064 of doing all the work ourselves.
18065 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
18066 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
18068 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
18070 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
18071 Problem reported by Ralf Wildenhues in
18072 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18074 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
18075 HAVE_STRUCT_STATFS_F_FSTYPENAME.
18077 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
18079 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
18080 yesterday's patch by changing test -n to test -z.
18082 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
18084 * modules/getloadavg (Files): Add m4/getloadavg.m4.
18085 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
18086 the former is now obsolescent.
18088 * modules/chdir-long (Depends-on): Add fcntl.
18090 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
18092 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
18093 obsolescent, and programs should use gnulib instead.
18094 * m4/getloadavg.m4: New file, with contents taken from Autoconf
18095 but with prefixes changed.
18097 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
18099 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
18100 or stdbool.h, because they might not exist while configuring.
18102 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
18103 Don't include unistd.h or limits.h; not needed, since chdir-long.h
18105 (O_DIRECTORY): Remove.
18107 2006-08-31 Eric Blake <ebb9@byu.net>
18109 * gnulib-tool: Don't let emacs change spaces to TAB.
18111 2006-08-31 Bruno Haible <bruno@clisp.org>
18113 * gnulib-tool: When calling func_import more than once, do it in a
18115 Reported by Eric Blake <ebb9@byu.net>.
18117 2006-08-31 Bruno Haible <bruno@clisp.org>
18119 * gnulib-tool (nl): Remove variable.
18120 (sed_transform_lib_file): Use more robust test for config-h module.
18121 (func_import): Fix typo in 2006-08-25 patch.
18123 2006-08-31 Bruno Haible <bruno@clisp.org>
18125 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
18126 specified, augment Makefile.am variables instead of assigning them.
18128 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
18130 Work around a bug in both the Linux and SunOS 64-bit kernels:
18131 nanosleep mishandles sleeps for longer than 2**31 seconds.
18132 Problem reported by Frank v Waveren in
18133 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18134 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
18135 Check for nanosleep bug.
18136 (LIB_NANOSLEEP): Append clock_gettime library if needed.
18138 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
18140 Work around a bug in both the Linux and SunOS 64-bit kernels:
18141 nanosleep mishandles sleeps for longer than 2**31 seconds.
18142 Problem reported by Frank v Waveren in
18143 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18144 * lib/nanosleep.c (BILLION): New constant.
18145 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
18146 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
18149 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
18151 * modules/nanosleep (Depends-on): Add gettime.
18153 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
18154 and Simon Josefsson <jas@extundo.com>
18155 and Oskar Liljeblad <oskar@osk.mine.nu>
18157 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
18158 * gnulib-tool (func_import): New license type 'unmodifiable license
18160 * modules/fdl: Use it. Longer description.
18161 * module/gpl, module/lgpl: New files.
18163 2006-08-30 Jim Meyering <jim@meyering.net>
18165 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
18166 shadowing the parameter.
18168 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18172 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18174 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
18175 sharing with gnulib. Report by Eric Blake.
18177 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
18179 * modules/isapipe: New file.
18180 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
18182 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
18184 * modules/configmake (Makefile.am): Add a comment, and omit
18185 the CONFIGMAKE_ prefix from generated macro names. Suggested
18188 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
18190 * m4/isapipe.m4: New file.
18192 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
18194 * lib/isapipe.c, lib/isapipe.h: New files.
18196 2006-08-29 Jim Meyering <jim@meyering.net>
18198 * modules/configmake (Makefile.am): Make configmake.h depend on
18199 Makefile. Otherwise, a stale configmake.h could hang around.
18201 2006-08-29 Eric Blake <ebb9@byu.net>
18203 * lib/error.c (error_at_line, print_errno_message): Match libc, after
18204 resolution of upstream bug 3044.
18206 2006-08-29 Bruno Haible <bruno@clisp.org>
18208 * modules/localcharset (Depends-on): Add configmake.
18209 (Makefile.am): Remove setting of LIBDIR through DEFS.
18211 2006-08-29 Bruno Haible <bruno@clisp.org>
18213 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
18216 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
18218 * modules/fcntl: New file.
18219 * modules/chdir-safer (Depends-on): Add fcntl.
18220 * modules/fts: Likewise.
18221 * modules/mkdir-p: Likewise.
18223 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
18224 This undoes the most recent change, since we're now addressing the
18225 problem in a different way.
18227 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
18228 into output, since the output might be called Makefile.am even
18229 if $makefile_name is something different.
18230 (func_import): Use $makefile_am rather than
18231 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
18234 * modules/inttypes (Files): Add m4/inttypes-h.m4.
18236 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
18238 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
18239 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
18240 recent change to stdint.m4, since we're now addressing the problem in a
18243 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
18245 * m4/fcntl_h.m4: New file.
18247 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
18249 * lib/fcntl_.h: New file.
18250 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
18252 * lib/dirchownmod.c: Likewise.
18253 * lib/fts.c: Likewise.
18255 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
18256 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
18257 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
18258 just before including <inttypes.h>, to avoid circular inclusion.
18260 2006-08-28 Jim Meyering <jim@meyering.net>
18262 * doc/visibility.texi: Actually read and correct the grammar of the
18263 sentence affected by yesterday's change.
18265 2006-08-28 Eric Blake <ebb9@byu.net>
18267 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
18270 2006-08-28 Eric Blake <ebb9@byu.net>
18272 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
18274 2006-08-28 Eric Blake <ebb9@byu.net>
18276 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
18278 2006-08-28 Bruno Haible <bruno@clisp.org>
18280 * modules/c-strstr: New file, from GNU gettext.
18281 * MODULES.html.sh (String handling): Add c-strstr.
18283 2006-08-28 Bruno Haible <bruno@clisp.org>
18285 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
18287 Reported by Eric Blake.
18289 2006-08-28 Bruno Haible <bruno@clisp.org>
18291 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
18292 (VASNPRINTF): Return a string of length > INT_MAX without failing.
18293 * lib/vasprintf.c: Include errno.h, limits.h.
18294 (EOVERFLOW): New fallback definition.
18295 (vasprintf): Test here whether the string length is > INT_MAX.
18296 * lib/vsnprintf.c: Include errno.h, limits.h.
18297 (EOVERFLOW): New fallback definition.
18298 (vsnprintf): Fix bug when generated string was too long for the buffer.
18299 Test here whether the string length is > INT_MAX.
18301 2006-08-28 Bruno Haible <bruno@clisp.org>
18303 * lib/inttypes_.h (SCNX*): Remove definitions.
18304 Reported by Eric Blake.
18306 2006-08-28 Bruno Haible <bruno@clisp.org>
18308 * lib/c-strstr.h: New file, from GNU gettext.
18309 * lib/c-strstr.c: New file, from GNU gettext.
18311 2006-08-28 Bruno Haible <bruno@clisp.org>
18313 * gnulib-tool: Reorder some statements.
18315 2006-08-28 Bruno Haible <bruno@clisp.org>
18317 * gnulib-tool: New option --makefile-name.
18318 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
18320 (func_import): Write $makefile_name to the cache file, and read it from
18321 there unless explicitly specified. Use $makefile_name as file name
18322 instead of Makefile.am. Adjust the recommendations accordingly.
18324 2006-08-28 Bruno Haible <bruno@clisp.org>
18326 * gnulib-tool (func_verify_module): Check against misapplying patch.
18328 2006-08-28 Bruno Haible <bruno@clisp.org>
18330 * gnulib-tool (func_relativize, func_relconcat): New functions.
18331 Give an error if --local-dir is given with --update.
18332 Remove trailing slashes from $local_gnulib_dir.
18333 (func_import): Store the relativized $local_gnulib_dir in
18334 gnulib-cache.m4, and read it from there if not specified explicitly.
18336 2006-08-28 Bruno Haible <bruno@clisp.org>
18338 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
18339 is the current directory. Respect also $local_gnulib_dir.
18341 2006-08-28 Bruno Haible <bruno@clisp.org>
18342 Simon Josefsson <jas@extundo.com>
18345 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
18347 2006-08-27 Jim Meyering <jim@meyering.net>
18349 * doc/visibility.texi: Remove duplicate word: "pointer".
18351 2006-08-26 Bruno Haible <bruno@clisp.org>
18353 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
18354 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
18355 (Makefile.am): Create inttypes.h from inttypes_.h.
18356 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
18358 * modules/imaxabs: New file.
18360 * modules/imaxdiv: New file.
18362 2006-08-26 Bruno Haible <bruno@clisp.org>
18364 * m4/inttypes.m4: New file.
18365 * m4/_inttypes_h.m4: Remove file.
18366 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
18368 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
18370 * m4/imaxabs.m4: New file.
18372 * m4/imaxdiv.m4: New file.
18374 2006-08-26 Bruno Haible <bruno@clisp.org>
18376 * lib/inttypes_.h: New file.
18377 * lib/inttypes.h: Remove file.
18378 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
18380 * lib/imaxabs.c: New file.
18382 * lib/imaxdiv.c: New file.
18384 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
18386 New config-h module, so that "make" output needn't be cluttered
18387 by -DHAVE_CONFIG_H.
18388 * MODULES.html.sh (Support for building libraries and executables):
18390 * modules/config-h: New file.
18391 * gnulib-tool (nl, sed_transform_lib_file): New vars.
18392 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
18393 the config-h module is used.
18395 New configmake module, so that "make" output needn't be cluttered
18396 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
18397 * MODULES.html.sh (Support for building libraries and executables):
18399 * modules/configmake: New file.
18401 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
18403 * m4/config-h.m4: New file.
18405 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
18407 * config/srclist.txt: Add elisp-comp.
18409 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
18411 * MODULES.html.sh (Support for building libraries and executables):
18413 * build-aux/elisp-comp: New file.
18414 * modules/elisp-comp: New file.
18416 2006-08-24 Bruno Haible <bruno@clisp.org>
18418 * gnulib-tool (func_create_testdir): Use non-default values of
18419 sourcebase and m4base.
18421 2006-08-24 Bruno Haible <bruno@clisp.org>
18423 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18426 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
18428 * modules/openat (Depends-on): Add lchown.
18430 2006-08-23 Bruno Haible <bruno@clisp.org>
18432 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18433 of gl_LOCK_EARLY instead of gl_LOCK.
18435 2006-08-23 Bruno Haible <bruno@clisp.org>
18437 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18439 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18441 2006-08-23 Bruno Haible <bruno@clisp.org>
18443 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18446 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18447 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18448 (gl_LOCK): New macro.
18450 2006-08-22 Simon Josefsson <jas@extundo.com>
18452 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18455 2006-08-22 Simon Josefsson <jas@extundo.com>
18457 * MODULES.html.sh: Add "Support for maintaining and release
18460 * build-aux/gnupload: New file, from coreutils.
18462 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
18464 Avoid the need for AC_LIBSOURCES in m4 macros.
18465 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18466 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18467 * modules/check-version (EXTRA_DIST): Add check-version.h.
18468 * modules/crc (EXTRA_DIST): Add crc.h.
18469 * modules/des (EXTRA_DIST): Add des.h.
18470 * modules/gc (EXTRA_DIST): Add gc.h.
18471 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18472 * modules/getline (EXTRA_DIST): Add getline.h.
18473 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18474 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18475 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18476 * modules/md2 (EXTRA_DIST): Add md2.h.
18477 * modules/md4 (EXTRA_DIST): Add md4.h.
18478 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18479 * modules/read-file (EXTRA_DIST): Add read-file.h.
18480 * modules/readline (EXTRA_DIST): Add readline.h.
18481 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18482 rijndael-api-fst.h.
18484 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
18486 * m4/rijndael.m4 (gl_ARCFOUR):
18487 * m4/arctwo.m4 (gl_ARCTWO):
18488 * m4/check-version.m4 (gl_CHECK_VERSION):
18489 * m4/crc.m4 (gl_CRC):
18490 * m4/des.m4 (gl_DES):
18491 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18492 * m4/gc.m4 (gl_GC):
18493 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18494 * m4/getline.m4 (gl_FUNC_GETLINE):
18495 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18496 * m4/hmac-md5.m4 (gl_HMAC_MD5):
18497 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18498 * m4/md2.m4 (gl_MD2):
18499 * m4/md4.m4 (gl_MD4):
18500 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18501 * m4/read-file.m4 (gl_FUNC_READ_FILE):
18502 * m4/readline.m4 (gl_FUNC_READLINE):
18503 * m4/rijndael.m4 (gl_RIJNDAEL):
18504 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18505 to get the necessary .h files and whatnot.
18507 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
18509 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18510 gnulib rather than the other way around.
18511 * config/srclistvars.sh (COREUTILS): Remove.
18513 2006-08-22 Jim Meyering <jim@meyering.net>
18515 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18517 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18519 2006-08-22 Eric Blake <ebb9@byu.net>
18521 * modules/regexprops-generic: New file.
18522 * MODULES.html.sh (Support for building documentation): List it.
18524 2006-08-22 Eric Blake <ebb9@byu.net>
18526 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18527 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18528 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18529 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18531 2006-08-22 Bruno Haible <bruno@clisp.org>
18533 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18534 and lib_LTLIBRARIES like the other lib_* variables.
18536 2006-08-22 Bruno Haible <bruno@clisp.org>
18538 * build-aux/x-to-1.in: New file, from GNU gettext.
18540 2006-08-22 Bruno Haible <bruno@clisp.org>
18542 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18545 2006-08-22 Bruno Haible <bruno@clisp.org>
18547 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18550 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
18553 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18555 Problem reported by Bruno Haible.
18557 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
18559 Avoid the need for AC_LIBSOURCES in m4 macros.
18560 * modules/acl (EXTRA_DIST): Add acl.h.
18561 * modules/argmatch (Files): Add m4/argmatch.m4.
18562 (configure.ac): Add gl_ARGMATCH.
18563 (EXTRA_DIST): Renamed from lib_SOURCES, for
18564 consistency with the other modules. Remove argmatch.c.
18565 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18566 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18567 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18568 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18569 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18570 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18571 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18572 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18573 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18574 * modules/closeout (EXTRA_DIST): Add closeout.h.
18575 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18576 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18577 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18578 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
18579 dirname.h; remove basename.c and stripslash.c.
18580 * modules/exclude (EXTRA_DIST): Add exclude.h.
18581 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
18582 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
18583 * modules/file-type (EXTRA_DIST): Add file-type.h.
18584 * modules/filemode (EXTRA_DIST): Add filemode.h.
18585 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
18586 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18587 * modules/fpending (EXTRA_DIST): Add __fpending.h.
18588 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
18589 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
18590 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
18591 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
18592 * modules/getdate (EXTRA_DIST): Add getdate.c.
18593 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
18594 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
18595 * modules/getpass (EXTRA_DIST): Add getpass.h.
18596 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
18597 * modules/group-member (EXTRA_DIST): Add group-member.h.
18598 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
18599 * modules/hash (EXTRA_DIST): Add hash.h.
18600 * modules/human (EXTRA_DIST): Add human.h.
18601 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
18602 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
18603 * modules/lchown (EXTRA_DIST): Add lchown.h.
18604 * modules/long-options (EXTRA_DIST): Add long-options.h.
18605 * modules/lstat (EXTRA_DIST): Add lstat.h.
18606 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
18607 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
18608 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
18609 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
18610 * modules/memxor (EXTRA_DIST): Add memxor.h.
18611 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
18612 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
18613 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
18614 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
18615 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
18616 * modules/physmem (EXTRA_DIST): Add physmem.h.
18617 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
18618 * modules/posixver (EXTRA_DIST): Add posixver.h.
18619 * modules/quote (EXTRA_DIST): Add quote.h.
18620 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
18621 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
18622 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
18623 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
18624 regex_internal.h regexec.c.
18625 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
18626 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
18627 * modules/same (EXTRA_DIST): Add same.h.
18628 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
18629 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
18630 * modules/savedir (EXTRA_DIST): Add savedir.h.
18631 * modules/sha1 (EXTRA_DIST): Add sha1.h.
18632 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
18633 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
18634 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
18635 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
18636 * modules/strdup (EXTRA_DIST): Add strdup.h.
18637 * modules/strftime (EXTRA_DIST): Add strftime.h.
18638 * modules/strndup (EXTRA_DIST): Add strndup.h.
18639 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
18640 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
18641 * modules/time_r (EXTRA_DIST): Add time_r.h.
18642 * modules/timespec (EXTRA_DIST): Add timespec.h.
18643 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
18644 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
18645 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
18646 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
18647 * modules/userspec (EXTRA_DIST): Add userspec.h.
18648 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
18649 * modules/utimens (EXTRA_DIST): Add utimens.h.
18650 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
18651 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
18652 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
18653 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
18654 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
18655 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
18656 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
18657 * modules/yesno (EXTRA_DIST): Add yesno.h.
18659 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
18661 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
18663 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
18664 * m4/dev-ino.m4, same-inode.m4: Remove.
18666 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
18667 * m4/acl.m4 (AC_FUNC_ACL):
18668 * m4/backupfile.m4 (gl_BACKUPFILE):
18669 * m4/c-strtod.m4 (gl_C99_STRTOLD):
18670 * m4/canon-host.m4 (gl_CANON_HOST):
18671 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
18672 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
18673 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
18674 * m4/cloexec.m4 (gl_CLOEXEC):
18675 * m4/close-stream.m4 (gl_CLOSE_STREAM):
18676 * m4/closeout.m4 (gl_CLOSEOUT):
18677 * m4/dirfd.m4 (gl_FUNC_DIRFD):
18678 * m4/dirname.m4 (gl_DIRNAME):
18679 * m4/exclude.m4 (gl_EXCLUDE):
18680 * m4/exitfail.m4 (gl_EXITFAIL):
18681 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
18682 * m4/file-type.m4 (gl_FILE_TYPE):
18683 * m4/filemode.m4 (gl_FILEMODE):
18684 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
18685 * m4/fpending.m4 (gl_FUNC_FPENDING):
18686 * m4/fprintftime.m4 (gl_FPRINTFTIME):
18687 * m4/fts.m4 (gl_FUNC_FTS):
18688 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18689 * m4/getdate.m4 (gl_GETDATE):
18690 * m4/gethrxtime.m4 (gl_GETHRXTIME):
18691 * m4/getpagesize.m4 (gl_GETPAGESIZE):
18692 * m4/getpass.m4 (gl_FUNC_GETPASS):
18693 * m4/gettime.m4 (gl_GETTIME):
18694 * m4/getugroups.m4 (gl_GETUGROUPS):
18695 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
18696 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
18697 * m4/hard-locale.m4 (gl_HARD_LOCALE):
18698 * m4/hash.m4 (gl_HASH):
18699 * m4/idcache.m4 (gl_IDCACHE):
18700 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
18701 * m4/lchown.m4 (gl_FUNC_LCHOWN):
18702 * m4/long-options.m4 (gl_LONG_OPTIONS):
18703 * m4/lstat.m4 (gl_FUNC_LSTAT):
18704 * m4/md5.m4 (gl_MD5):
18705 * m4/memcasecmp.m4 (gl_MEMCASECMP):
18706 * m4/memcoll.m4 (gl_MEMCOLL):
18707 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
18708 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
18709 * m4/memxor.m4 (gl_MEMXOR):
18710 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
18711 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
18712 * m4/modechange.m4 (gl_MODECHANGE):
18713 * m4/mountlist.m4 (gl_MOUNTLIST):
18714 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18715 * m4/openat.m4 (gl_FUNC_OPENAT):
18716 * m4/pathmax.m4 (gl_PATHMAX):
18717 * m4/physmem.m4 (gl_PHYSMEM):
18718 * m4/posixtm.m4 (gl_POSIXTM):
18719 * m4/posixver.m4 (gl_POSIXVER):
18720 * m4/quote.m4 (gl_QUOTE):
18721 * m4/quotearg.m4 (gl_QUOTEARG):
18722 * m4/readtokens.m4 (gl_READTOKENS):
18723 * m4/readutmp.m4 (gl_READUTMP):
18724 * m4/regex.m4 (gl_REGEX):
18725 * m4/safe-read.m4 (gl_SAFE_READ):
18726 * m4/safe-write.m4 (gl_SAFE_WRITE):
18727 * m4/same.m4 (gl_SAME):
18728 * m4/save-cwd.m4 (gl_SAVE_CWD):
18729 * m4/savedir.m4 (gl_SAVEDIR):
18730 * m4/settime.m4 (gl_SETTIME):
18731 * m4/sha1.m4 (gl_SHA1):
18732 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
18733 * m4/stat-macros.m4 (gl_STAT_MACROS):
18734 * m4/stat-time.m4 (gl_STAT_TIME):
18735 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
18736 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
18737 * m4/strdup.m4 (gl_FUNC_STRDUP):
18738 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
18739 * m4/strndup.m4 (gl_FUNC_STRNDUP):
18740 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
18741 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
18742 * m4/time_r.m4 (gl_TIME_R):
18743 * m4/timespec.m4 (gl_TIMESPEC):
18744 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
18745 * m4/unlinkdir.m4 (gl_UNLINKDIR):
18746 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
18747 * m4/userspec.m4 (gl_USERSPEC):
18748 * m4/utimecmp.m4 (gl_UTIMECMP):
18749 * m4/utimens.m4 (gl_UTIMENS):
18750 * m4/xalloc.m4 (gl_XALLOC):
18751 * m4/xgetcwd.m4 (gl_XGETCWD):
18752 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
18753 * m4/xreadlink.m4 (gl_XREADLINK):
18754 * m4/xstrtod.m4 (gl_XSTRTOD):
18755 * m4/yesno.m4 (gl_YESNO):
18756 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18757 to get the necessary .h files and whatnot.
18759 2006-08-21 Mark D. Baushke <mdb@gnu.org>
18760 Bruno Haible <bruno@clisp.org>
18762 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
18763 /bin/sh understanding of '!' conditional negation.
18765 2006-08-21 Jim Meyering <jim@meyering.net>
18767 * modules/openat (Depends-on): Really alphabetize.
18769 * modules/acl (Depends-on): Add error and quote.
18771 * check-module (find_included_lib_files): Add at-func.c to the
18772 ok-to-include-more-than-once white list.
18774 * modules/openat (Depends-on): Add lstat. Alphabetize.
18776 2006-08-21 Bruno Haible <bruno@clisp.org>
18778 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18779 Emit a pkgdata_DATA variable only if some snippets add contents to it.
18780 Reported by Martin Lambers <marlam@marlam.de>.
18782 2006-08-21 Bruno Haible <bruno@clisp.org>
18784 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
18785 specify an installation location, don't emit a noinst_LIBRARIES or
18786 noinst_LTLIBRARIES assignment.
18788 2006-08-21 Bruno Haible <bruno@clisp.org>
18791 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
18792 BeOS has mbrtowc() but no <wctype.h>.
18794 2006-08-21 Bruno Haible <bruno@clisp.org>
18797 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
18800 2006-08-21 Bruno Haible <bruno@clisp.org>
18803 * lib/mbchar.h: Include <wctype.h> only if it exists.
18805 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
18807 Remove files that are no longer needed by their respective modules.
18808 * m4/obstack.m4: Remove.
18809 * m4/strerror_r.m4: Remove.
18810 * m4/uint32_t.m4: Remove.
18811 * m4/uintptr_t.m4: Remove.
18812 * m4/ullong_max.m4: Remove.
18813 * m4/xstrtoimax.m4: Remove.
18814 * m4/xstrtoumax.m4: Remove.
18816 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
18817 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
18818 dependencies now capture this.
18820 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18821 Do not use AC_LIBSOURCES, since gnulib modules now do this.
18822 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
18823 * m4/human.m4 (gl_HUMAN): Likewise.
18824 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
18825 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
18827 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
18829 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
18830 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
18832 * m4/human.m4 (gl_HUMAN): Likewise.
18833 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
18834 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
18835 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18836 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18837 * m4/xstrtol (gl_XSTRTOL): Likewise.
18839 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
18840 AC_TYPE_LONG_LONG_INT.
18841 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
18842 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
18843 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
18844 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
18846 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
18849 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
18850 (gl_PREREQ_XSTRTOUL): Remove.
18852 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
18854 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
18857 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
18859 Add and change modules to make it easier for coreutils to use
18861 * modules/backupfile (Files): Remove m4/d-ino.m4.
18862 (Depends-on): Add d-ino.
18863 * modules/cycle-check (Depends-on): Add stdint.
18864 (lib_SOURCES): Add cycle-check.h.
18865 * modules/d-ino: New module.
18866 * modules/d-type: New module.
18867 * modules/error (Files): Remove m4/strerror_r.m4.
18868 * modules/filemode (Files): Add m4/st_dm_mode.m4.
18869 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18870 m4/inttypes_h.m4, m4/uintmax_t.m4.
18871 (Depends-on): Add stdint.
18872 (lib_SOURCES): Add fsusage.h.
18873 * modules/getcwd (Files): Remove d-ino.m4.
18874 (Depends-on): Add d-ino.
18875 * modules/getndelim2 (Depends-on): Add stdint.
18876 * modules/glob (Files): Remove m4/d-type.m4.
18877 (Depends-on): Add d-type.
18878 * modules/host-os: New module.
18879 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18880 m4/inttypes_h.m4, m4/uintmax_t.m4.
18881 * Depends-on: Add stdint.
18882 (lib_SOURCES): Add human.h.
18883 * modules/inttostr (Files): Remove m4/intmax_t.m4,
18884 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
18885 m4/uintmax_t.m4, m4/ulonglong.m4.
18886 (Depends-on): Add stdint.
18887 (EXTRA_DIST): Add inttostr.h.
18888 * modules/lchmod: New module.
18889 * modules/link-follow: New module.
18890 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
18891 (Depends-on): Add lchmod.
18892 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
18893 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
18894 (Depends-on): Add stdint.
18895 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
18896 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
18897 (Depends-on): Add stdint.
18898 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
18899 * modules/perl: New module.
18900 * modules/regex (Depends-on): Add stdint.
18901 * modules/rmdir-errno: New module.
18902 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18904 (Depends-on): Add stdint.
18905 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
18907 (Depends-on): Add stdint.
18908 * modules/unlink-busy: New module.
18909 * modules/utimecmp (Depends-on): Add stdint.
18910 * modules/uptime: New module.
18911 * modules/winsz-ioctl: New module.
18912 * modules/winsz-termios: New module.
18913 * modules/xnanosleep (Depends-on): Add nanosleep.
18914 * modules/ullong_max: Remove.
18915 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
18916 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
18917 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
18918 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
18919 (Depends-on): Add inttypes.
18920 (lib_SOURCES): Add xstrtol.h.
18921 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
18922 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
18923 * MODULES.html.sh: Move 'assert' into the assert section.
18924 Move 'dummy' into the linking section.
18926 Add section for compatibility checks for POSIX:2001 functions,
18927 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
18928 winsz-ioctl, and winsz-termios into it.
18930 Add top-level Misc section and put host-os, perl, and uptime
18933 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
18935 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
18936 now assume the stdint module. Do not include inttypes.h.
18937 * lib/fsusage.h: Likewise.
18938 * lib/getndelim2.c: Likewise.
18939 * lib/human.h: Likewise.
18940 * lib/inttostr.h: Likewise.
18941 * lib/obstack.c: Likewise.
18942 * lib/regex_internal.h: Likewise.
18943 * lib/tempname.c: Likewise.
18944 * lib/utimecmp.c: Likewise.
18945 * lib/xstrtol.h: Likewise.
18947 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
18949 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
18950 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
18951 * lib/xtime.h: Likewise.
18953 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
18955 * modules/openat (Files): Add lib/fchmodat.c.
18956 Fixes problem reported by Jay Youngman.
18958 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
18960 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
18961 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
18963 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
18964 Bruno Haible <bruno@clisp.org>
18966 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
18967 and is a script that invokes bison. Tighten the code. Add comments.
18969 2006-08-18 Jim Meyering <jim@meyering.net>
18971 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
18972 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
18973 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
18974 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
18976 2006-08-18 Bruno Haible <bruno@clisp.org>
18978 * modules/bison-i18n: New file.
18979 * MODULES.html.sh (Internationalization functions): Add it.
18981 2006-08-18 Bruno Haible <bruno@clisp.org>
18983 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
18984 sys/statvfs.h. When getmntinfo was found, check its declaration and
18985 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
18987 2006-08-18 Bruno Haible <bruno@clisp.org>
18989 * m4/bison-i18n.m4: New file, from bison.
18991 2006-08-18 Bruno Haible <bruno@clisp.org>
18993 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
18994 (ME_DUMMY): Treat "kernfs" as a dummy.
18995 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
18997 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
18999 Update from coreutils.
19001 2006-08-15 Jim Meyering <jim@meyering.net>
19003 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
19005 2006-01-17 Jim Meyering <jim@meyering.net>
19007 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
19009 2006-01-11 Jim Meyering <jim@meyering.net>
19011 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
19012 Check for the lchmod function.
19014 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
19016 Update from coreutils.
19018 * lib/__fpending.h: Add copyright notice.
19019 * lib/fprintftime.h: Likewise.
19020 * lib/savedir.c: Use (C) in copyright notice.
19021 * lib/savedir.h: Likewise.
19023 2006-08-15 Jim Meyering <jim@meyering.net>
19025 * lib/at-func.c: New file, with the logic of all emulated at-functions.
19026 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
19027 in support of the EXPECTED_ERRNO macro.
19028 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
19029 definitions. Instead, define the appropriate symbols and include
19031 * lib/mkdirat.c (mkdirat): Likewise.
19032 * lib/fchmodat.c (fchmodat): Likewise.
19033 (ENOSYS): Remove definition.
19034 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
19035 it. Don't include "unistd--.h" -- it wasn't ever used.
19037 2006-01-17 Jim Meyering <jim@meyering.net>
19039 Rewrite fts.c not to change the current working directory,
19040 by using openat, fstatat, fdopendir, etc..
19042 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
19043 (HAVE_OPENAT_SUPPORT): Define.
19044 [_LIBC] (fchdir): Don't undef or define; no longer used.
19045 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
19046 Now, this `function' always succeeds, and consumes its file descriptor
19047 parameter -- so callers must not close such FDs. Update callers.
19048 (diropen_fd, opendirat, cwd_advance_fd): New functions.
19049 (diropen): Add parameter, SP. Adjust all callers.
19050 Implement using diropen_fd, rather than open.
19051 (fts_open): Initialize new member, fts_cwd_fd.
19052 Remove fts_rft-setting code.
19053 (fts_close): Close fts_cwd_fd, if necessary.
19054 (__opendir2): Define in terms of opendir or opendirat,
19055 depending on whether the FST_NOCHDIR flag is set.
19056 (fts_build): Since fts_safe_changedir consumes its FD, and since
19057 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
19058 and close the dup'd file descriptor upon failure.
19059 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
19060 (fts_safe_changedir): Tweak semantics to reflect that this function
19061 now calls cwd_advance_fd and hence consumes its FD argument.
19062 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
19063 [struct FTS] (fts_rft): Remove now-unused member.
19064 [struct FTS] (fts_cycle.state): Improve comment.
19066 * lib/openat.c (openat_needs_fchdir): New function.
19067 * lib/openat.h (openat_needs_fchdir): Declare it.
19069 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
19071 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
19072 Problem and fix reported by Pádraig Brady in
19073 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
19075 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
19077 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
19079 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
19081 * lib/memcoll.c (memcoll): Optimize for the common case where the
19082 arguments are bytewise equal.
19084 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
19086 * doc/regexprops-generic.texi: Add a copyright notice.
19088 2006-08-15 Bruno Haible <bruno@clisp.org>
19090 * modules/tmpdir (License): Change to LGPL.
19092 2006-08-15 Bruno Haible <bruno@clisp.org>
19094 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
19097 2006-08-14 Simon Josefsson <jas@extundo.com>
19099 * config/srclist.txt: Add gnupload.
19101 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
19103 Change copyright notice from LGPL 2 to GPL 2, since that's the
19104 standard form used in the gnulib repository.
19105 * tests/test-lock.c: Likewise.
19106 * tests/test-stdint.c: Likewise.
19107 * tests/test-tls.c: Likewise.
19109 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
19110 prelude-manager. User shorter URLs for GNU projects, without '?'.
19111 Add copyright notice.
19113 * check-module: Add copyright notice. Output a copyright
19114 notice if "--version" is specified.
19115 * modules/COPYING: New file.
19116 * tests/test-getaddrinfo.c: Add copyright notice.
19117 * tests/test-verify.c: Likewise.
19119 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
19121 Change copyright notice from LGPL 2 to GPL 2, since that's the
19122 standard form used in the gnulib repository.
19123 * lib/lock.c: LGPL -> GPL.
19124 * lib/lock.h: Likewise.
19125 * lib/strnlen1.c: Likewise.
19126 * lib/strnlen1.h: Likewise.
19127 * lib/tls.c: Likewise.
19128 * lib/tls.h: Likewise.
19129 * lib/tmpdir.c: Likewise.
19131 * lib/TODO: Remove; this belongs only in coreutils.
19133 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
19135 Add copyright notices to long-enough files that lack them, since
19136 otherwise the files aren't clearly free. Use the same notice that
19137 getdate.texi already uses.
19138 * doc/alloca-opt.texi: Add copyright notice.
19139 * doc/alloca.texi: Likewise.
19140 * doc/ctime.texi: Likewise.
19141 * doc/functions.texi: Likewise.
19142 * doc/gcd.texi: Likewise.
19143 * doc/gnulib-tool.texi: Likewise.
19144 * doc/inet_ntoa.texi: Likewise.
19145 * doc/visibility.texi: Likewise.
19147 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
19148 * doc/quote.texi: Add copyright notice.
19150 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
19151 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
19152 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
19153 Mention SunOS 5.11. Mention that everything before SunOS 5.7
19154 is now obsolete, and give a pointer to the Sun list.
19155 Add copyright notice.
19157 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
19159 * config/srclistvars.sh: Add copyright notice.
19161 2006-08-14 Eric Blake <ebb9@byu.net>
19163 Import the following change from libc:
19165 2006-08-12 Ulrich Drepper <drepper@redhat.com>
19168 * lib/misc/error.c: Add space between program name and message if file
19171 2006-08-12 Karl Berry <karl@gnu.org>
19173 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
19174 remove, these originate in gnulib now.
19176 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19178 * doc/Makefile (standards.info standards.html standards.dvi):
19179 Also depend on make-stds.texi.
19181 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
19183 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
19184 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
19186 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
19187 in wchar_t. Problem reported by Eric Blake.
19189 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
19190 LEN is smaller than SIZE. Suggested by Bruno Haible.
19191 Also, help the compiler to keep LEN in a register.
19193 2006-08-11 Eric Blake <ebb9@byu.net>
19195 * users.txt: Sort. Add tar.
19197 2006-08-11 Bruno Haible <bruno@clisp.org>
19199 * users.txt: New file.
19201 2006-08-11 Bruno Haible <bruno@clisp.org>
19203 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
19204 before <wchar.h>. Needed for OSF/1 and BSD/OS.
19206 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
19208 * modules/snprintf (Depends-on): Remove minmax.
19209 (Maintainer): Add self and Bruno.
19211 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
19213 * lib/.cppi-disable: Add snprintf.h, socket_.h.
19214 * lib/snprintf.c: Include <errno.h> and <limits.h>.
19215 (EOVERFLOW): Define if the system does not.
19216 Do not include "minmax.h"; it wasn't used.
19217 (snprintf): Don't assume size_t promotes to an unsigned type.
19218 Fix bug when generated string was too long for the buffer: the
19219 buffer's contents are supposed to be the initial prefix of the
19220 output. Don't assume vasnprintf returns EOVERFLOW if the size
19221 exceeds INT_MAX; do the check ourselves.
19223 Import the following changes from libc:
19225 2006-06-02 Jakub Jelinek <jakub@redhat.com>
19227 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
19228 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
19229 set wc to the byte which couldn't be converted.
19230 (re_string_reconstruct): Don't clear valid_raw_len before calling
19231 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
19232 tip_context using re_string_context_at.
19234 2006-05-02 Ulrich Drepper <drepper@redhat.com>
19236 * lib/posix/regex.h: g++ still cannot handled [restrict].
19238 2006-04-21 Ulrich Drepper <drepper@redhat.com>
19240 * lib/posix/regex.h: Remove special handling for VMS.
19242 2006-08-10 Jim Meyering <jim@meyering.net>
19244 * modules/same-inode: New module.
19245 * modules/dev-ino: New module.
19246 * modules/cycle-check: Depend on these modules, rather than simply
19247 including their .h files.
19248 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
19249 required via m4/cycle-check.m4.
19250 * modules/same: Depend on new same-inode module, rather than
19251 including same-inode.h.
19252 * modules/chdir-safer: New file.
19254 * modules/chown (Depends-on): Add stat-macros.
19256 2006-08-10 Jim Meyering <jim@meyering.net>
19258 * m4/cycle-check.m4: New file.
19259 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
19260 * m4/dev-ino.m4, m4/same-inode.m4: New files.
19262 2006-08-10 Eric Blake <ebb9@byu.net>
19264 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
19265 in from original proposal.
19267 2006-08-10 Eric Blake <ebb9@byu.net>
19268 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19270 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
19273 2006-08-10 Bruno Haible <bruno@clisp.org>
19275 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
19278 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
19280 Sync from coreutils.
19282 2006-07-19 Mike Frysinger <vapier@gentoo.org>
19284 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
19285 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
19287 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
19289 * modules/restrict: Remove; no longer needed now that we assume
19290 Autoconf 2.59 or later.
19291 * MODULES.html.sh: Remove 'restrict'.
19292 * modules/argp (Depends-on): Remove 'restrict'.
19293 * modules/base64 (Depends-on): Likewise.
19294 * modules/gc (Depends-on): Likewise.
19295 * modules/getaddrinfo (Depends-on): Likewise.
19296 * modules/glob (Depends-on): Likewise.
19297 * modules/inet_ntop (Depends-on): Likewise.
19298 * modules/inet_pton (Depends-on): Likewise.
19299 * modules/memxor (Depends-on): Likewise.
19300 * modules/regex (Depends-on): Likewise.
19301 * modules/strtok_r (Depends-on): Likewise.
19302 * modules/time_r (Depends-on): Likewise.
19304 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
19306 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
19307 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
19308 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19309 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
19310 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19311 * m4/memxor.m4 (gl_MEMXOR): Likewise.
19312 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
19313 gl_C_RESTRICT replaced by AC_C_RESTRICT.
19315 Merge from coreutils.
19316 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
19317 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
19318 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19319 * m4/time_r.m4 (gl_TIME_R): Likewise.
19321 2006-08-09 Karl Berry <karl@gnu.org>
19323 * config/srclist.txt: no more gettext-tools, per Bruno.
19325 2006-08-08 Eric Blake <ebb9@byu.net>
19327 * modules/verror: New module.
19328 * MODULES.html.sh: Document it.
19330 2006-08-08 Eric Blake <ebb9@byu.net>
19332 * lib/verror.h, lib/verror.c: New files.
19334 2006-08-08 Eric Blake <ebb9@byu.net>
19336 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
19337 verror_at_line output complies with GNU Coding Standards even when
19340 2006-08-07 Bruno Haible <bruno@clisp.org>
19342 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
19344 Reported by Ralf Wildenhues.
19346 2006-08-07 Bruno Haible <bruno@clisp.org>
19348 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
19349 in an AC_DEFUN. Needed so that the autoconf snippets can use
19352 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19354 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19355 Initialize pkgdata_DATA.
19356 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
19359 2006-08-06 Eric Blake <ebb9@byu.net>
19361 * lib/error.h: Fold in some upstream changes from glibc.
19362 * lib/error.c: Likewise.
19364 2006-08-04 Bruno Haible <bruno@clisp.org>
19366 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19367 Make the mostlyclean-local rule depend on mostlyclean-generic.
19368 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
19370 2006-07-31 Bruno Haible <bruno@clisp.org>
19372 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
19373 <stdlib.h>, <string.h>.
19375 2006-07-30 Bruno Haible <bruno@clisp.org>
19377 * modules/readlink (License): Change to LGPL.
19379 2006-07-30 Bruno Haible <bruno@clisp.org>
19381 * modules/javaversion (Makefile.am): Distribute javaversion.java and
19382 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
19383 set PKGDATADIR to point to it.
19385 2006-07-30 Bruno Haible <bruno@clisp.org>
19387 * modules/csharpexec (configure.ac): Comment out macro invocation.
19388 * modules/javaexec (configure.ac): Likewise.
19389 * modules/javacomp-script (configure.ac): Likewise.
19391 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
19393 2006-07-30 Bruno Haible <bruno@clisp.org>
19395 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
19398 2006-07-30 Bruno Haible <bruno@clisp.org>
19400 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
19402 2006-07-30 Bruno Haible <bruno@clisp.org>
19404 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19405 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19408 2006-07-29 Bruno Haible <bruno@clisp.org>
19410 Make it possible for gnulib-tool to work with locally modified or
19411 augmented gnulib repositories.
19412 * gnulib-tool (func_usage): Document --local-dir option.
19413 (local_gnulib_dir): New variable.
19414 Handle --local-dir option.
19415 (func_lookup_file): New function.
19416 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19417 (func_get_description, func_get_filelist, func_get_description,
19418 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19419 func_get_automake_snippet, func_get_include_directive,
19420 func_get_license, func_get_maintainer): Use func_lookup_file.
19421 (func_import, func_create_testdir): Use func_lookup_file.
19423 2006-07-29 Bruno Haible <bruno@clisp.org>
19425 * modules/setenv (Depends-on): Add unistd.
19427 2006-07-29 Bruno Haible <bruno@clisp.org>
19429 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19431 2006-07-29 Bruno Haible <bruno@clisp.org>
19433 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19435 2006-07-29 Bruno Haible <bruno@clisp.org>
19437 * gnulib-tool (import, update): If there is no Makefile.am, look at
19438 aclocal.m4, instead of bailing out.
19440 2006-07-29 Bruno Haible <bruno@clisp.org>
19442 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19443 Categorize the options by when they are useful.
19445 2006-07-29 Bruno Haible <bruno@clisp.org>
19447 * gnulib-tool (func_usage): Document option --no-libtool.
19448 Handle option --no-libtool.
19449 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19450 for changed semantics of $libtool variable.
19451 (func_import): Likewise. If libtool is not used, show this through
19452 an option --no-libtool.
19453 (func_create_testdir): Update.
19455 2006-07-29 Bruno Haible <bruno@clisp.org>
19457 * gnulib-tool (func_import): Extend error message about missing
19460 2006-07-29 Bruno Haible <bruno@clisp.org>
19462 * gnulib-tool (func_import): Don't create the $docbase directory if
19463 there is no file to store there.
19465 2006-07-29 Bruno Haible <bruno@clisp.org>
19467 * gnulib-tool (autoconf_minversion): If a --dir option is given and
19468 relevant, look for configure.ac there, not in the current directory.
19469 Also use a simple search for AC_PREREQ, not "autoconf --trace".
19471 2006-07-29 Bruno Haible <bruno@clisp.org>
19473 * gnulib-tool (SORT): New variable.
19474 (func_usage): Undocument --assume-autoconf option.
19475 Remove --assume-autoconf option handling.
19476 (autoconf_minversion): Determine from the contents of configure.ac.
19477 (func_import): Remove autoconf_minversion handling.
19478 Suggested by Eric Blake.
19480 2006-07-29 Bruno Haible <bruno@clisp.org>
19482 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19484 2006-07-29 Bruno Haible <bruno@clisp.org>
19486 * config/srclist.txt (*setenv.[ch]): Remove rules.
19488 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19490 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19492 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19494 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19497 2006-07-28 Simon Josefsson <jas@extundo.com>
19499 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19500 * modules/inet_pton (Depends-on): Likewise.
19502 2006-07-28 Simon Josefsson <jas@extundo.com>
19504 * m4/netinet_in_h.m4: New file.
19506 2006-07-28 Simon Josefsson <jas@extundo.com>
19508 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19511 2006-07-28 Simon Josefsson <jas@extundo.com>
19513 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19516 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
19518 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19519 setgid on directories only if they set these bits.
19520 * lib/modechange.h: Remove obsolete comment about masks.
19522 2006-07-28 Eric Blake <ebb9@byu.net>
19524 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19527 2006-07-28 Bruno Haible <bruno@clisp.org>
19529 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19531 2006-07-28 Bruno Haible <bruno@clisp.org>
19533 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19535 2006-07-28 Bruno Haible <bruno@clisp.org>
19537 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19538 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19540 Avoids link error on FreeBSD 4.x.
19541 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19543 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19545 * lib/mbswidth.c (iswcntrl): Likewise.
19547 2006-07-27 Bruno Haible <bruno@clisp.org>
19549 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19552 2006-07-27 Bruno Haible <bruno@clisp.org>
19554 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19555 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19558 2006-07-26 Eric Blake <ebb9@byu.net>
19560 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19562 2006-07-26 Eric Blake <ebb9@byu.net>
19564 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19565 like mingw that lack mkstemp.
19566 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19567 avoid compilation warning on mingw.
19569 2006-07-26 Bruno Haible <bruno@clisp.org>
19571 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19572 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19573 INT_FAST*_MIN, INTPTR_MIN.
19575 2006-07-25 Bruno Haible <bruno@clisp.org>
19577 * modules/version-etc (Depends-on): Add stdarg.
19579 2006-07-25 Bruno Haible <bruno@clisp.org>
19581 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
19584 2006-07-25 Bruno Haible <bruno@clisp.org>
19586 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
19587 defined in <stdarg.h> or config.h.
19589 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
19591 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
19592 (gl_STDIO_SAFER): Remove.
19594 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
19596 * MODULES.html.sh (File stream based Input/Output):
19597 Add fopen-safer, tmpfile-safer; remove stdio-safer.
19598 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
19599 * modules/fopen-safer, modules/tmpfile-safer: New files.
19600 * modules/stdio-safer: Remove.
19602 2006-07-24 Bruno Haible <bruno@clisp.org>
19604 * modules/tmpdir: New file.
19605 * MODULES.html.sh (File system functions): Add it.
19607 2006-07-24 Bruno Haible <bruno@clisp.org>
19609 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
19610 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
19612 2006-07-24 Bruno Haible <bruno@clisp.org>
19614 * modules/clean-temp: New file.
19616 2006-07-24 Bruno Haible <bruno@clisp.org>
19618 * m4/tmpdir.m4: New file, from GNU gettext.
19620 2006-07-24 Bruno Haible <bruno@clisp.org>
19622 * lib/tmpdir.h: New file, from GNU gettext.
19623 * lib/tmpdir.c: New file, from GNU gettext.
19625 2006-07-24 Bruno Haible <bruno@clisp.org>
19627 * lib/clean-temp.h: New file, from GNU gettext.
19628 * lib/clean-temp.c: New file, from GNU gettext.
19630 2006-07-23 Eric Blake <ebb9@byu.net>
19632 * modules/stdio-safer (Files): Add tmpfile-safer.c.
19633 (Depends-on): Add binary-io.
19635 2006-07-23 Eric Blake <ebb9@byu.net>
19637 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
19639 2006-07-23 Eric Blake <ebb9@byu.net>
19641 * lib/tmpfile-safer.c: New file.
19642 * lib/stdio-safer.h (fopen_safer): Add prototype.
19643 * lib/stdio--.h (tmpfile): Make safer.
19645 2006-07-23 Bruno Haible <bruno@clisp.org>
19647 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
19648 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
19649 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
19650 gl_linked_remove_at): Use it.
19652 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19653 and Simon Josefsson <jas@extundo.com>
19655 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
19657 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
19659 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
19661 * modules/close-stream: New file.
19662 * modules/closeout (Description): Make it clear that it exits
19663 with a diagnostic on error.
19664 (Depends-on): Add close-stream. Remove fpending, stdbool.
19665 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
19667 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
19669 * m4/close-stream.m4: New file.
19671 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
19673 * lib/close-stream.c, lib/close-stream.h: New files.
19675 2006-07-22 Bruno Haible <bruno@clisp.org>
19677 Merge from GNU gettext 0.15.
19679 2006-05-01 Bruno Haible <bruno@clisp.org>
19681 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
19683 2006-07-22 Bruno Haible <bruno@clisp.org>
19685 * modules/javaversion: New file.
19686 * MODULES.html.sh (Java): Add javaversion.
19688 2006-03-12 Bruno Haible <bruno@clisp.org>
19690 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
19692 2005-12-04 Bruno Haible <bruno@clisp.org>
19694 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
19697 2006-06-21 Bruno Haible <bruno@clisp.org>
19699 Avoid warnings from recent versions of mcs.
19700 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
19701 -o, -L, -r any more. Use options documented since mcs-1.0
19702 instead. Similarly for -g.
19704 2005-12-04 Bruno Haible <bruno@clisp.org>
19706 * build-aux/csharpcomp.sh.in: Suffix for resources is
19707 .resources, not .resource.
19709 2005-07-09 Bruno Haible <bruno@clisp.org>
19711 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
19713 Reported by Mark Junker <mjscod@gmx.de>.
19715 2006-07-22 Bruno Haible <bruno@clisp.org>
19717 * modules/gettext: Upgrade to gettext-0.15.
19718 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
19720 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
19722 2006-07-22 Bruno Haible <bruno@clisp.org>
19724 Merge from GNU gettext 0.15.
19726 2006-03-25 Bruno Haible <bruno@clisp.org>
19728 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
19730 2006-07-21 Bruno Haible <bruno@clisp.org>
19732 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
19735 2006-05-09 Bruno Haible <bruno@clisp.org>
19737 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
19738 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
19739 for the conftestver execution.
19741 2006-05-01 Bruno Haible <bruno@clisp.org>
19743 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
19744 optional target-version argument. Verify that the compiler
19745 groks source of the specified source-version, or add -source
19746 option as necessary. Verify that the compiler produces
19747 bytecode in the specified target-version, or add -target and
19748 -source options as necessary. Make the result of the test
19749 available as variable CONF_JAVAC. Also log error output in
19752 2006-03-11 Bruno Haible <bruno@clisp.org>
19754 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
19756 2006-05-09 Bruno Haible <bruno@clisp.org>
19758 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
19759 CLASSPATH_SEPARATOR to a semicolon.
19761 2006-03-12 Bruno Haible <bruno@clisp.org>
19763 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
19764 available as variable CONF_JAVA, for subsequent autoconf
19765 tests. Also log error output in config.log.
19767 2006-07-19 Bruno Haible <bruno@clisp.org>
19769 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
19770 that getline works on glibc2 systems. Needed to avoid trouble
19772 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
19774 2005-12-04 Bruno Haible <bruno@clisp.org>
19776 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
19777 launcher (untested).
19779 2005-12-04 Bruno Haible <bruno@clisp.org>
19781 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
19783 2006-07-22 Bruno Haible <bruno@clisp.org>
19785 * gettext.m4: Update from GNU gettext-0.15.
19786 * nls.m4: Likewise.
19788 * inttypes-pri.m4: Likewise.
19789 * inttypes-h.m4: Renamed from inttypes.m4.
19790 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
19792 2006-07-22 Bruno Haible <bruno@clisp.org>
19794 Merge from GNU gettext 0.15.
19796 2005-07-05 Bruno Haible <bruno@clisp.org>
19798 * printf-args.c (printf_fetchargs): Work around broken
19799 definition of wint_t on mingw.
19801 2005-02-12 Bruno Haible <bruno@clisp.org>
19803 * xallocsa.h: Add extern "C" for C++.
19805 2006-05-17 Bruno Haible <bruno@clisp.org>
19807 Cygwin portability.
19808 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
19810 2006-04-30 Bruno Haible <bruno@clisp.org>
19812 * progreloc.c: Include <mach-o/dyld.h> if available.
19813 (find_executable): Use _NSGetExecutablePath when possible.
19815 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
19817 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
19820 2005-12-29 Bruno Haible <bruno@clisp.org>
19822 * progreloc.c (set_program_name_and_installdir): Fix
19825 2005-12-04 Bruno Haible <bruno@clisp.org>
19827 Cygwin portability.
19828 * progreloc.c: Include <windows.h> also on Cygwin.
19829 (find_executable): Add support for Cygwin.
19830 (set_program_name_and_installdir): Handle also platforms with
19833 2006-07-11 Bruno Haible <bruno@clisp.org>
19835 * javacomp.c: Fix a comment.
19836 Reported by Jim Meyering.
19838 2006-04-30 Bruno Haible <bruno@clisp.org>
19840 * javacomp.h (compile_java_class): Add source_version,
19841 target_version arguments.
19842 * javacomp.c: Rewritten to choose only a compiler that
19843 respects the specified source_version and target_version.
19845 2006-06-27 Bruno Haible <bruno@clisp.org>
19847 Assume correct S_ISDIR macro.
19848 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
19850 2006-07-22 Bruno Haible <bruno@clisp.org>
19852 * javaversion.h: New file, from GNU gettext.
19853 * javaversion.c: New file, from GNU gettext.
19854 * javaversion.java: New file, from GNU gettext.
19855 * javaversion.class: New file, from GNU gettext.
19857 2006-05-17 Bruno Haible <bruno@clisp.org>
19859 Cygwin portability.
19860 * javaexec.c (execute_java_class): Test for jview program
19863 2006-04-09 Bruno Haible <bruno@clisp.org>
19865 * fatal-signal.c: Don't include string.h.
19866 (at_fatal_signal): Use a copying loop instead of memcpy.
19868 2005-12-04 Bruno Haible <bruno@clisp.org>
19870 * csharpexec.c: Add support for 'clix' launcher (untested).
19871 (execute_csharp_using_sscli): New function.
19872 (execute_csharp_program): Call it.
19874 2006-06-21 Bruno Haible <bruno@clisp.org>
19876 Avoid warnings from recent versions of mcs.
19877 * csharpcomp.c (compile_csharp_using_mono): Don't use options
19878 -o, -L, -r any more. Use options documented since mcs-1.0
19879 instead. Similarly for -g.
19881 2005-07-09 Bruno Haible <bruno@clisp.org>
19883 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
19885 Reported by Mark Junker <mjscod@gmx.de>.
19887 2006-06-17 Bruno Haible <bruno@clisp.org>
19889 * config.charset: Update for NetBSD 3.0.
19891 2006-05-17 Bruno Haible <bruno@clisp.org>
19893 Cygwin portability.
19894 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
19896 2006-05-16 Bruno Haible <bruno@clisp.org>
19898 * localcharset.c [CYGWIN]: Include <windows.h>.
19899 (get_charset_aliases): For Cygwin, return the same CPxxx
19900 aliases list as under WIN32.
19901 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
19902 the environment variables. Fall back to GetACP().
19904 2006-04-05 Bruno Haible <bruno@clisp.org>
19906 * config.charset: Update Juan Manuel Guerrero's address.
19908 2005-02-12 Bruno Haible <bruno@clisp.org>
19910 * allocsa.h: Add extern "C" for C++.
19912 2005-02-10 Bruno Haible <bruno@clisp.org>
19914 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
19915 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
19917 2006-07-22 Bruno Haible <bruno@clisp.org>
19919 * gettext.h: Update to GNU gettext-0.15.
19921 2006-07-22 Bruno Haible <bruno@clisp.org>
19923 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
19924 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
19925 lib-prefix.m4, longdouble.m4, ssize_t.m4.
19927 2006-07-21 Eric Blake <ebb9@byu.net>
19929 * modules/stdlib-safer: New file.
19930 * MODULES.html.sh (File stream based Input/Output): Add
19933 2006-07-21 Eric Blake <ebb9@byu.net>
19935 * lib/stdlib-safer.h: New file from coreutils, required by
19938 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
19940 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
19942 2006-07-20 Bruno Haible <bruno@clisp.org>
19944 * gnulib-tool: Recognize new option --assume-autoconf.
19945 (autoconf_minversion): New variable.
19946 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
19948 2006-07-20 Bruno Haible <bruno@clisp.org>
19950 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
19952 2006-07-19 Derek R. Price <derek@ximbiot.com>
19954 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
19955 Reindent and repaginate.
19957 2006-07-19 Derek Price <derek@ximbiot.com>
19959 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
19962 2006-07-17 Bruno Haible <bruno@clisp.org>
19964 * modules/list: New file.
19965 * modules/array-list: New file.
19966 * modules/carray-list, modules/carray-list-tests: New files.
19967 * modules/linked-list, modules/linked-list-tests: New files.
19968 * modules/avltree-list, modules/avltree-list-tests: New files.
19969 * modules/rbtree-list, modules/rbtree-list-tests: New files.
19970 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
19971 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
19972 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
19973 * modules/oset: New file.
19974 * modules/array-oset: New file.
19975 * modules/avltree-oset, modules/avltree-oset-tests: New files.
19976 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
19977 * tests/test-carray_list.c: New file.
19978 * tests/test-linked_list.c: New file.
19979 * tests/test-avltree_list.c: New file.
19980 * tests/test-rbtree_list.c: New file.
19981 * tests/test-linkedhash_list.c: New file.
19982 * tests/test-avltreehash_list.c: New file.
19983 * tests/test-rbtreehash_list.c: New file.
19984 * tests/test-avltree_oset.c: New file.
19985 * tests/test-rbtree_oset.c: New file.
19986 * MODULES.html.sh (Container data structures): New section.
19988 2006-07-17 Bruno Haible <bruno@clisp.org>
19990 * m4/gl_list.m4: New file.
19992 2006-07-17 Bruno Haible <bruno@clisp.org>
19994 * lib/gl_list.h: New file.
19995 * lib/gl_list.c: New file.
19996 * lib/gl_array_list.h: New file.
19997 * lib/gl_array_list.c: New file.
19998 * lib/gl_carray_list.h: New file.
19999 * lib/gl_carray_list.c: New file.
20000 * lib/gl_linked_list.h: New file.
20001 * lib/gl_linked_list.c: New file.
20002 * lib/gl_anylinked_list1.h: New file.
20003 * lib/gl_anylinked_list2.h: New file.
20004 * lib/gl_avltree_list.h: New file.
20005 * lib/gl_avltree_list.c: New file.
20006 * lib/gl_anyavltree_list1.h: New file.
20007 * lib/gl_anyavltree_list2.h: New file.
20008 * lib/gl_rbtree_list.h: New file.
20009 * lib/gl_rbtree_list.c: New file.
20010 * lib/gl_anyrbtree_list1.h: New file.
20011 * lib/gl_anyrbtree_list2.h: New file.
20012 * lib/gl_anytree_list1.h: New file.
20013 * lib/gl_anytree_list2.h: New file.
20014 * lib/gl_linkedhash_list.h: New file.
20015 * lib/gl_linkedhash_list.c: New file.
20016 * lib/gl_anyhash_list1.h: New file.
20017 * lib/gl_anyhash_list2.h: New file.
20018 * lib/gl_avltreehash_list.h: New file.
20019 * lib/gl_avltreehash_list.c: New file.
20020 * lib/gl_rbtreehash_list.h: New file.
20021 * lib/gl_rbtreehash_list.c: New file.
20022 * lib/gl_anytreehash_list1.h: New file.
20023 * lib/gl_anytreehash_list2.h: New file.
20025 * lib/gl_oset.h: New file.
20026 * lib/gl_oset.c: New file.
20027 * lib/gl_array_oset.h: New file.
20028 * lib/gl_array_oset.c: New file.
20029 * lib/gl_avltree_oset.h: New file.
20030 * lib/gl_avltree_oset.c: New file.
20031 * lib/gl_rbtree_oset.h: New file.
20032 * lib/gl_rbtree_oset.c: New file.
20033 * lib/gl_anytree_oset.h: New file.
20035 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
20037 * m4/mkancesdirs.m4: New file.
20038 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
20039 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
20040 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
20043 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
20045 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
20046 * lib/mkancesdirs.h: New files.
20047 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
20048 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
20049 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
20050 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
20051 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
20052 callers changed. Revamp internals significantly, by not
20053 attempting to create directories that are temporarily more
20054 permissive than the final results. Do not attempt to use
20055 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
20056 This removes some race conditions, fixes some bugs, and simplifies
20057 things. Use new dirchownmod function to do owner and mode changes.
20058 * lib/mkdir-p.h: Likewise.
20059 * lib/modechange.c (octal_to_mode): New function.
20060 (struct mode_change): New member mentioned.
20061 (make_node_op_equals): New arg mentioned. All callers changed.
20062 (mode_compile): Keep track of which mode bits the user has explicitly
20064 (mode_adjust): New arg DIR, so that we implement the X op correctly.
20065 New arg PMODE_BITS, to keep track of which mode bits the user
20066 mentioned; it treats S_ISUID and S_ISGID speciall.
20067 All callers changed.
20068 * lib/modechange.h: Likewise.
20070 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
20072 * MODULES.html.sh: Add mkancestors.
20073 * modules/mkancesdirs: New module.
20074 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
20075 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
20076 The chdir-safer and afs files are now orphans; I'll remove them
20077 unless someone speaks up.
20078 Add lib/dirchownmod.c, lib/dirchownmod.h.
20079 (Depends-on): Remove alloca, chown, save-cwd, dirname.
20080 Add lchown, mkancesdirs.
20081 (Maintainer): Add self.
20083 2006-07-15 Karl Berry <karl@gnu.org>
20085 * gnulib-tool: help message wording/arrangement.
20087 2006-07-14 Simon Josefsson <jas@extundo.com>
20089 * doc/gnulib.texi (Libtool and Windows): New section.
20091 2006-07-12 Simon Josefsson <jas@extundo.com>
20093 * modules/gendocs (License): Fix license, approved by Karl.
20095 2006-07-12 Eric Blake <ebb9@byu.net>
20097 * MODULES.html.sh: Add gendocs.
20099 2006-07-11 Eric Blake <ebb9@byu.net>
20101 * modules/fdl: New module, to install doc/fdl.texi.
20102 * MODULES.html.sh: Add new section for documentation modules.
20103 * gnulib-tool: Avoid space-tab.
20104 (--doc-base): New option, to manage files from doc.
20106 2006-07-11 Eric Blake <ebb9@byu.net>
20108 * m4/absolute-header.m4: Fix comments to match recent change.
20110 2006-07-11 Eric Blake <ebb9@byu.net>
20112 * gnulib-tool: List --doc-base before --tests-base.
20114 2006-07-11 Derek R. Price <derek@ximbiot.com>
20116 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
20118 2006-07-11 Bruno Haible <bruno@clisp.org>
20120 * README: Mention where to put documentation.
20122 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20124 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
20126 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
20128 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
20131 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
20133 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
20134 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
20135 "no/such/file/stdint.h" when there is no such file, so that
20136 the resulting C code can be parsed by dodgy compilers.
20137 Problems reported by Bob Proulx.
20139 2006-07-10 Derek R. Price <derek@ximbiot.com>
20141 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
20142 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
20143 macros into the GNU _D_EXACT_NAMLEN.
20144 * lib/savedir.c: Likewise.
20145 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
20147 2006-07-10 Derek R. Price <derek@ximbiot.com>
20148 and Paul Eggert <eggert@cs.ucla.edu>
20150 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
20152 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
20153 macros into the GNU _D_EXACT_NAMLEN.
20155 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
20157 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
20158 around the absolute name, to work around a problem with the HP-UX
20159 11.23 native C compiler, reported by Bob Proulx.
20161 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
20163 * doc/maintain.texi, make-stds.texi: Sync from
20164 <http://savannah.gnu.org/projects/gnustandards>.
20166 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
20168 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
20170 2006-07-09 Jim Meyering <jim@meyering.net>
20172 * m4/glob.m4: Remove a doubled word in a comment.
20174 2006-07-09 Jim Meyering <jim@meyering.net>
20176 * lib/argp-pv.c: Remove a doubled word in a comment.
20177 * lib/check-version.c (check_version): Likewise.
20178 * lib/javacomp.c (compile_java_class): Likewise.
20180 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
20182 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
20183 for the benefit of people using Autoconf 2.60. If you want to
20184 support older Autoconf versions you can copy m4/onceonly_2_57.m4
20185 (or m4/onceonly.m4, if pre-2.57) manually.
20187 2006-07-08 Jim Meyering <jim@meyering.net>
20189 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
20191 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
20192 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
20195 2006-07-08 Jim Meyering <jim@meyering.net>
20197 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
20199 2006-07-07 Simon Josefsson <jas@extundo.com>
20201 * tests/test-crc.c: Change expected crc value, the test vector
20202 were probably computed using the old broken crc.c?
20204 2006-07-06 Simon Josefsson <jas@extundo.com>
20206 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
20207 now the canonical place for the M4 file).
20209 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
20210 from the sys_socket dependency now.
20212 * modules/inet_pton (Files): Ditto.
20214 * modules/inet_ntop (Files): Ditto.
20216 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
20218 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
20219 not gl_PREREQ_GETUSERSHELL.
20221 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20223 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
20224 with only one argument, for Autoconf 2.60.
20225 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
20226 expand to nothing, so add a shell command to avoid syntax error.
20227 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20229 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20231 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
20233 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
20235 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
20236 no longer needed. Check for isblank decl.
20237 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
20238 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
20241 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
20243 * lib/getloadavg.c: Use __VMS, not VMS.
20244 * lib/getopt.c: Likewise.
20245 * lib/getpagesize.h: Likewise.
20246 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
20247 and probably does not work.
20249 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
20251 * lib/.cppi-disable: Add wcwidth.
20252 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
20253 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
20254 (ISGRAPH): Remove. All uses changed to isgraph.
20255 (FOLD) [!defined _LIBC]: Remove special case.
20256 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
20257 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
20259 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
20262 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
20264 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
20265 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
20266 brackets. Other minor changes to suppress some compiler
20269 2006-07-06 Derek R. Price <derek@ximbiot.com>
20270 and Paul Eggert <eggert@cs.ucla.edu>
20272 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
20273 of invoking obsolescent AC_HEADER_DIRENT macro.
20274 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20275 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20276 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20277 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20278 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
20279 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20280 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
20281 * m4/readdir.m4: Remove; no longer needed.
20283 2006-07-06 Derek R. Price <derek@ximbiot.com>
20284 and Paul Eggert <eggert@cs.ucla.edu>
20286 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
20287 Don't worry about this obsolete case any more.
20288 (HAVE_DIR): Remove. All uses removed; we now assume you can read
20290 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
20291 worry about this obsolete case any more.
20292 * lib/fts.c: Likewise.
20293 * lib/getcwd.c: Likewise.
20294 * lib/glob.h: Likewise.
20295 * lib/savedir.c: Likewise.
20297 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
20299 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
20300 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
20301 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
20304 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20305 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20306 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
20308 * m4/getdate.m4 (gl_GETDATE): Likewise.
20309 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20310 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20311 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20312 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20313 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20314 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20315 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
20318 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
20320 * lib/memcasecmp.c: Include <limits.h>.
20321 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
20322 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
20323 Don't assume isdigit succeeds only on '0' through '9'.
20325 2006-07-05 Eric Blake <ebb9@byu.net>
20327 * modules/getaddrinfo (Depends-on): Add snprintf.
20329 2006-07-05 Eric Blake <ebb9@byu.net>
20331 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
20332 to avoid 'header present but could not be compiled' on cygwin.
20334 2006-07-05 Eric Blake <ebb9@byu.net>
20336 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
20337 missing from netdb.h.
20338 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
20340 2006-07-05 Derek R. Price <derek@ximbiot.com>
20342 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
20344 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
20345 * m4/getdate.m4 (gl_GETDATE): Likewise.
20346 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20347 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20348 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20349 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20350 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20352 2006-07-05 Derek R. Price <derek@ximbiot.com>
20354 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
20355 All uses of is_space replaced by isspace.
20356 * lib/exit.h: Don't talk about STDC_HEADERS.
20357 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
20358 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
20359 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
20360 replaced by isprint etc.
20361 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
20362 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20363 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
20364 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
20365 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
20366 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20368 2006-07-05 Bruno Haible <bruno@clisp.org>
20370 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
20371 the function exists, before testing against AIX.
20372 Reported by Martin Lambers <marlam@marlam.de>.
20374 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
20376 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
20377 From Mark D. Baushke.
20379 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
20381 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
20382 to the absolute name, not just one, to bypass Sun C 5.8's
20383 "warning: #include of /usr/include/... may be non-portable".
20385 2006-07-04 Eric Blake <ebb9@byu.net>
20387 * modules/dirname-tests: New test module.
20388 * tests/test-dirname.c: New file, replacing dirname.c
20389 TEST_DIRNAME section that was recently deleted.
20391 2006-07-04 Bruno Haible <bruno@clisp.org>
20393 Assume ANSI C header files and <ctype.h> functions.
20394 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
20395 (mbsnwidth): Use isprint, iscntrl instead.
20397 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
20399 Merge from coreutils.
20400 * MODULES.html.sh: Add xstrtold.
20401 * modules/xstrtold: New file.
20402 * modules/cycle-check (Files): Add lib/same-inode.h.
20403 * modules/dirname (Files): Add m4/double-slash-root.m4.
20404 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
20405 * modules/mkdir-p (Files): Add lib/same-inode.h.
20406 * modules/same (Files): Add lib/same-inode.h.
20408 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
20410 * m4/absolute-header.m4: Renamed from full-header-path.m4.
20411 This is to keep the terminology clean; POSIX talks about
20412 "absolute pathnames", not "full pathnames", but the GNU
20413 Coding Standards say to use "path" for something else;
20414 so use "absolute" to keep both sides happy.
20415 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20416 Set gl_absolute_header, not gl_full_header_path.
20417 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20418 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20421 Merge from coreutils.
20423 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
20425 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20426 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20427 want to require the building of c-strtod.o.
20428 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20429 needs -lm directly.
20430 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20432 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
20434 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20435 --as-needed option if available. Problem reported by Albert Chin in
20436 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20437 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20438 cc merely issues a bunch of annoying warnings for --as-needed
20439 (this problem was reported by Bob Proulx). Also, try linking with
20440 -lm to detect a bug in binutils 2.16 (this problem was reported
20441 by Ralf Wildenhues).
20443 2006-06-18 Jim Meyering <jim@meyering.net>
20445 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20446 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20448 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20449 also check for glibc-2.4's abort-inducing bug.
20451 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20452 Low-probability clean-up should be to use rmdir to get rid of
20453 the just-created directory, not unlink.
20455 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20456 configure fail, and request a bug report to inform us about it.
20457 Add a comment that, barring reports to the contrary, in 2007 we'll
20458 assume ftruncate is universally available.
20460 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
20462 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20464 2006-03-12 Jim Meyering <jim@meyering.net>
20466 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20467 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20468 * m4/same.m4 (gl_SAME): Likewise.
20469 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20471 2006-03-11 Eric Blake <ebb9@byu.net>
20473 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20474 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20475 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20476 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20478 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
20480 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20481 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
20482 reported by Mark D. Baushke, one in
20483 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20485 Merge from coreutils.
20487 * lib/.cppi-disable: Add stdint_.h.
20488 * lib/.cvsignore: Add stdint.h.
20490 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
20492 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20493 both double and long double versions.
20494 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
20495 * lib/xstrtold.c: New file.
20496 * lib/xstrtod.h (xstrtold): New decl.
20498 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
20500 * lib/filemode.c (setst): Remove.
20501 (strmode): Rewrite to avoid setst. This makes the code shorter,
20502 (arguably) clearer, and the generated code is a bit smaller on my
20503 Debian GNU/Linux stable x86 host.
20505 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
20507 * lib/filemode.c: Include "filemode.h" first, to test the interface.
20508 Assume that filemode.h includes sys/types.h and sys/stat.h.
20509 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20510 (ftypelet): Reorder to put common cases first, for efficiency.
20511 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
20513 (strmode): Renamed from mode_string, and now stores 12 bytes instead
20514 of 10, for compatibility with FreeBSD. All callers changed.
20515 (filemodestring): Now stores 12 bytes instead of 10, and sets file
20516 types that can't be deduced solely from st_mode. First arg is now a
20518 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20519 (strmode): Renamed from mode_string.
20520 (filemodestring): New decl.
20521 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20522 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20524 (S_ISPORT, S_ISWHT): New macros, if not already defined.
20526 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
20528 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20529 fsusage.h now does that. Include fsusage.h first, to test interface.
20530 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
20531 at most one method (the old code could have generated decls that
20532 didn't conform to C89, not that this was ever exercised).
20533 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20535 2006-03-19 Jim Meyering <jim@meyering.net>
20537 Work even in a chroot where d_ino values for entries in "/"
20538 don't match the stat.st_ino values for the same names.
20539 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20540 number, iterate through all entries again, using lstat instead.
20541 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20542 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20544 * lib/getcwd.c (__getcwd): Clarify a comment.
20545 Use memcpy in place of a call to strcpy.
20547 2006-03-12 Jim Meyering <jim@meyering.net>
20549 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20550 matches that of the current directory (which we're about to chdir ".."
20551 out of), then save the dev-ino of the parent, instead.
20553 * lib/same-inode.h (SAME_INODE): New file/macro.
20554 * lib/chdir-safer.c (SAME_INODE): Remove definition.
20555 Include "same-inode.h", instead.
20556 * lib/same.c: Likewise.
20557 * lib/cycle-check.h: Include "same-inode.h".
20558 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20559 * lib/cycle-check.c (SAME_INODE): Remove definition.
20560 * lib/root-dev-ino.h: Include "same-inode.h".
20562 2006-03-11 Eric Blake <ebb9@byu.net>
20564 * lib/same.c (same_name): s/base_name/last_component/
20565 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20566 * lib/filenamecat.c (file_name_concat): Likewise.
20568 2006-03-11 Eric Blake <ebb9@byu.net>,
20569 Paul Eggert <eggert@cs.ucla.edu>
20571 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20572 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20574 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20575 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20576 (last_component): New method.
20577 * lib/dirname.c (dir_len): Determine when drive letters need a
20578 subsequent slash. Preserve // when it is special.
20579 (dir_name): Don't append dot when drive letter is absolute.
20580 [TEST_DIRNAME]: Move into a full-blown gnulib test.
20581 * lib/basename.c (base_name): New semantics - malloc the result.
20582 Preserve // when it is special. Preserve relative files that look
20583 like drive letters.
20584 (base_len): Preserve // when it is special.
20585 (last_component): New method, similar to old base_name semantics.
20586 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
20587 base_name. Strip redundant slashes from ///.
20589 2006-07-03 Jim Meyering <jim@meyering.net>
20591 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
20592 macro is used before the first cycle_check call.
20594 2006-07-03 Eric Blake <ebb9@byu.net>
20596 * modules/dirname (Depends-on): Add xstrndup.
20598 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
20600 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
20601 test cases, so that config.log is a bit easier to follow.
20603 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
20605 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
20606 both are 64 bits, since this seems to be the tradition, and this
20607 prevents gcc -Wformat from warning about usages with PRIuMAX. If
20608 we ever run into a host that prefers long long to long in this
20609 case, we'll need another configure-time test. Problem reported by
20612 2006-07-02 Eric Blake <ebb9@byu.net>
20614 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
20616 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
20618 * modules/inttypes (Depends-on): No longer depends on stdint.
20619 * modules/stdint (Description): Say more about assumptions.
20620 Say that the fast types might differ. Say macros are used.
20621 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
20622 (Makefile.am): Revise list of substituted symbols to match
20624 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
20625 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
20626 * tests/test-stdint.c (verify_same_types)
20627 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
20628 the code conforms to C99/C89.
20629 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
20630 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
20632 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
20634 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
20635 but fix a bug, by requiring at least 64 bits.
20636 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20637 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
20638 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
20639 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
20641 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
20642 changes. Make 2.59 a prerequisite. Check and substitute for
20643 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
20644 inttypes.h. Do not use special include files; just use the
20645 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
20646 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
20647 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
20648 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
20649 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
20650 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
20651 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
20652 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
20653 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
20654 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
20655 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
20656 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
20657 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
20658 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
20659 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
20660 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
20661 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
20662 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
20663 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
20664 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
20665 WINT_MAX. Check for C99 conformance more strictly, by detecting
20666 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
20667 not check for things that C99 does not require, e.g., int8_t. If
20668 a test isn't needed unless <stdint.h> isn't working, and is
20669 unlikely to be needed for any other reason, then don't do it
20670 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
20671 size_t, since we assume C89 freestanding at least. Do not check
20672 for sig_atomic_t, wchar_t, or wint_t, since the code now does
20673 the right thing even if the types are not defined. Instead use:
20674 (gl_STDINT_TYPE_PROPERTIES): New macro.
20675 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
20676 testing whether <sys/types.h> clashes, as Autoconf does this for
20677 us now. All uses removed.
20678 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
20679 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
20680 (gl_CHECK_TYPE_SAME):
20681 Remove; no longer needed.
20682 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
20683 exists, since we'll return 0 anyway in that case.
20684 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
20686 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
20688 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
20689 possible collision with system files.
20690 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
20691 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
20692 WCHAR_MIN and WCHAR_MAX in this case.
20693 (<stddef.h>): Do not include; no longer needed.
20694 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
20695 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
20696 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
20697 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
20698 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
20699 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
20700 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
20701 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
20702 !defined(__c99))]: Include in this case too, since it's harmless
20704 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
20705 dangerous to do so.
20706 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
20707 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
20708 (_STDINT_MIN, _STDINT_MAX): New macros.
20709 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
20710 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
20711 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
20712 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
20713 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
20714 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
20715 macros, not typedefs; this simplifies things quite a bit.
20716 Use long int for all types narrower than int64_t.
20717 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
20718 Define in terms of long long int or int64_t or long int,
20719 not int64_t or int32_t. This saves some compile-time testing.
20720 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
20721 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
20722 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
20723 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
20724 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
20725 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
20726 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
20727 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
20728 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
20729 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
20730 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20731 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20732 undef any previous version and define our own version, for
20733 simplicity and consistency with the new macros for types.
20734 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
20735 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
20736 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
20737 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
20738 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
20739 @WINT_T_SUFFIX@ to keep things simple here.
20740 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
20741 Simplify by assuming typical 8/16/32/64 host, since we're
20742 already doing that elsewhere anyway.
20743 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
20744 and assume long long int is 64 bits if available. This
20745 speeds up 'configure'.
20747 2006-07-01 Eric Blake <ebb9@byu.net>
20749 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
20750 Reported by Andreas Buening.
20752 2006-07-01 Eric Blake <ebb9@byu.net>
20754 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
20756 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
20758 * lib/getaddrinfo.c: fixed typo
20760 2006-06-29 Jim Meyering <jim@meyering.net>
20762 * modules/strftime (Maintainer): Add my name, since with the
20763 FPRINTFTIME changes strftime.c has forked from glibc.
20765 2006-06-29 Eric Blake <ebb9@byu.net>
20767 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
20769 2006-06-29 Eric Blake <ebb9@byu.net>
20771 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
20773 2006-06-29 Eric Blake <ebb9@byu.net>
20775 * lib/stat_.h: New file.
20777 2006-06-29 Eric Blake <ebb9@byu.net>
20779 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
20780 unused static function.
20782 2006-06-29 Eric Blake <ebb9@byu.net>
20784 * doc/functions.texi (Function Portability): Document missing lstat
20787 2006-06-29 Eric Blake <ebb9@byu.net>
20789 * MODULES.html.sh: Add sys_stat.
20790 * modules/sys_stat: New module.
20791 * modules/mkstemp (Depends-on): Add sys_stat.
20793 2006-06-29 Derek R. Price <derek@ximbiot.com>
20795 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
20797 2006-06-29 Derek R. Price <derek@ximbiot.com>
20799 * m4/c-bs-a.m4: Removed.
20801 2006-06-29 Derek R. Price <derek@ximbiot.com>
20803 * lib/strftime.c: Assume strftime() exists.
20805 2006-06-29 Derek Price <derek@ximbiot.com>
20807 * modules/c-bs-a: Removed - \a is C89.
20808 * MODULES.html.sh: Remove c-bs-a.
20810 2006-06-29 Bruno Haible <bruno@clisp.org>
20812 * modules/wcwidth (License): Change to LGPL.
20814 2006-06-28 Simon Josefsson <jas@extundo.com>
20816 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
20819 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
20822 2006-06-28 Simon Josefsson <jas@extundo.com>
20824 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
20826 2006-06-28 Simon Josefsson <jas@extundo.com>
20828 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
20829 functions there. It will succeed on Windows XP, but on Windows
20830 2000 and (presumably) earlier, it will fail, and use the internal
20832 (use_win32_p): New function.
20833 (getaddrinfo): Use strtoul on servname, to support numeric ports.
20834 Support AI_NUMERICSERV to disable getservbyname.
20835 (getnameinfo): New function, only supports
20836 NI_NUMERICHOST|NI_NUMERICSERV for now.
20838 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
20839 only have some of them. Add AI_NUMERICSERV. Add prototype for
20842 2006-06-28 Eric Blake <ebb9@byu.net>
20844 * modules/wcwidth: New file.
20845 * modules/mbchar (Depends-on): Add wcwidth.
20846 * modules/mbswidth (Depends-on): Add wcwidth.
20847 * MODULES.html.sh: Add wcwidth.
20849 2006-06-28 Eric Blake <ebb9@byu.net>
20851 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
20852 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
20854 2006-06-28 Eric Blake <ebb9@byu.net>
20856 * lib/xvasprintf.h: Fix comments.
20858 2006-06-28 Eric Blake <ebb9@byu.net>
20860 * lib/mbchar.h (wcwidth): Include wcwidth.h.
20861 * lib/mbswidth.c (wcwidth): Move from here...
20862 * lib/wcwidth.h: ...to this new file.
20864 2006-06-28 Derek R. Price <derek@ximbiot.com>
20866 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
20868 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
20870 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
20872 2006-06-28 Derek R. Price <derek@ximbiot.com>
20874 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
20875 Autoconf 2.60 says this stuff was obsolete.
20877 2006-06-28 Bruno Haible <bruno@clisp.org>
20879 * modules/wcwidth (Files): Add m4/wchar_t.m4.
20881 2006-06-28 Bruno Haible <bruno@clisp.org>
20883 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
20886 2006-06-28 Bruno Haible <bruno@clisp.org>
20888 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
20889 declaration for wcwidth.
20890 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
20892 2006-06-28 Bruno Haible <bruno@clisp.org>
20894 * lib/mkdtemp.c [MINGW]: Include <io.h>.
20895 (mkdir): Define using _mkdir.
20897 2006-06-28 Bruno Haible <bruno@clisp.org>
20899 * lib/getaddrinfo.h: Fix POSIX URL.
20900 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
20902 (use_win32_p): Make static.
20903 (getaddrinfo): Reject service name if it is empty or does not consist
20904 solely of decimal digits, or if its value is > 65535.
20905 (getnameinfo): Remove useless casts.
20907 2006-06-27 Simon Josefsson <jas@extundo.com>
20909 * modules/sys_select: New file, suggested by Bruno Haible, Paul
20910 Eggert and Martin Lambers.
20912 2006-06-27 Simon Josefsson <jas@extundo.com>
20914 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
20915 Eggert and Martin Lambers.
20917 2006-06-27 Bruno Haible <bruno@clisp.org>
20919 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
20920 result to 0, not to empty.
20921 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
20923 2006-06-27 Bruno Haible <bruno@clisp.org>
20925 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
20927 2006-06-26 Simon Josefsson <jas@extundo.com>
20929 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
20932 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
20934 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
20935 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
20936 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
20938 2006-06-26 Mark D. Baushke <mdb@gnu.org>
20940 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
20942 2006-06-26 Bruno Haible <bruno@clisp.org>
20944 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
20946 2006-06-26 Bruno Haible <bruno@clisp.org>
20948 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
20950 2006-06-26 Bruno Haible <bruno@clisp.org>
20952 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
20953 SGI C compiler in pre-C99 mode.
20954 Suggested by Mark D. Baushke and Larry Jones.
20956 2006-06-26 Bruno Haible <bruno@clisp.org>
20958 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
20960 Reported by Mark D. Baushke and Larry Jones.
20962 2006-06-26 Bruno Haible <bruno@clisp.org>
20964 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
20966 Suggested by Mark D. Baushke and Larry Jones.
20968 2006-06-23 Simon Josefsson <jas@extundo.com>
20969 Bruno Haible <bruno@clisp.org>
20971 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
20972 Emit mostlyclean-local rule.
20973 (func_emit_tests_Makefile_am): Likewise.
20974 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
20976 2006-06-23 Mark D. Baushke <mdb@gnu.org>
20978 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
20980 2006-06-23 Bruno Haible <bruno@clisp.org>
20982 * tests/test-stdint.c: Update to match ISO C 99 Technical
20985 2006-06-23 Bruno Haible <bruno@clisp.org>
20987 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
20989 2006-06-23 Bruno Haible <bruno@clisp.org>
20991 * lib/stdint_.h: Treat IRIX like OpenBSD.
20993 2006-06-23 Bruno Haible <bruno@clisp.org>
20995 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
20996 ISO C 99 Technical Corrigendum 1.
20998 2006-06-22 Simon Josefsson <jas@extundo.com>
21000 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
21003 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
21005 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
21006 needed. Some compiler complained about some of them. Problem reported
21008 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
21010 2006-06-21 Simon Josefsson <jas@extundo.com>
21012 * tests/test-getaddrinfo.c: New file.
21014 * modules/getaddrinfo-tests: New file.
21016 * MODULES.html.sh: Add inet_pton.
21018 * modules/inet_pton: New file.
21020 2006-06-21 Simon Josefsson <jas@extundo.com>
21022 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
21023 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
21024 of using the (limited) gnulib implementation on Windows XP.
21026 * m4/inet_pton.m4: New file.
21028 2006-06-21 Simon Josefsson <jas@extundo.com>
21030 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
21033 * lib/socket_.h: Don't define WINVER.
21035 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
21036 slightly modified to work in gnulib.
21038 2006-06-21 Simon Josefsson <jas@extundo.com>
21040 * doc/gnulib.texi (Windows sockets): Add.
21042 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
21044 * lib/read-file.c (fread_file): Start with buffer allocation of
21045 0 bytes rather than 1 byte; this simplifies the code.
21046 Don't invoke feof; it's not needed. Refactor to avoid duplicate
21047 code to free buffer and save/restore errno.
21048 (internal_read_file): Remove unused local.
21050 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
21052 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
21053 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
21054 Problem reported by Denis Excoffier in
21055 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
21057 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21059 * modules/sys_socket, modules/socklen: Include sys/types since
21060 FreeBSD 4.x's sys/socket.h needs it.
21062 2006-06-19 Simon Josefsson <jas@extundo.com>
21064 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
21066 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
21068 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
21070 2006-06-19 Bruno Haible <bruno@clisp.org>
21072 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
21073 and FULL_PATH_INTTYPES_H in angle brackets.
21074 Reported by Mark D. Baushke <mdb@gnu.org>.
21076 2006-06-17 Eric Blake <ebb9@byu.net>
21078 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
21081 2006-06-17 Bruno Haible <bruno@clisp.org>
21083 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
21086 2006-06-17 Bruno Haible <bruno@clisp.org>
21088 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
21089 whether errno is declared. Assume <errno.h> declares errno.
21091 2006-06-17 Bruno Haible <bruno@clisp.org>
21093 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
21095 2006-06-17 Bruno Haible <bruno@clisp.org>
21097 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
21098 problem on Solaris 2.5.1.
21100 2006-06-16 Eric Blake <ebb9@byu.net>
21102 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
21103 * lib/unicodeio.c [!defined errno]: Likewise.
21104 * lib/strtol.c [!defined errno]: Likewise.
21105 * lib/strtod.c [!defined errno]: Likewise.
21107 2006-06-15 Eric Blake <ebb9@byu.net>
21109 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
21111 2006-06-15 Eric Blake <ebb9@byu.net>
21113 * config/srclist.txt (ssize_t.m4): Lose sync.
21115 2006-06-15 Bruno Haible <bruno@clisp.org>
21117 * modules/stdint (Files): Include m4/full-header-path.m4,
21118 m4/size_max.m4, m4/wchar_t.m4.
21119 (Makefile.am): Many more substitutions.
21120 * modules/stdint-tests: New file.
21121 * tests/test-stdint.c: New file.
21123 2006-06-15 Bruno Haible <bruno@clisp.org>
21125 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
21126 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
21127 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
21128 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
21129 gl_CHECK_TYPE_SAME): New macros.
21131 2006-06-15 Bruno Haible <bruno@clisp.org>
21133 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
21135 2006-06-15 Bruno Haible <bruno@clisp.org>
21137 * lib/stdint_.h: Rewritten to be fully auto-configured.
21138 Fixes bug on HP-UX/IA64.
21140 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
21142 * lib/getdate.y (__attribute__): Don't define if already defined.
21143 Problem reported by Larry Jones.
21144 * lib/utimens.c (__attribute__): Likewise.
21146 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
21148 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
21149 reported by Andreas Schwab.
21151 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21152 Bruno Haible <bruno@clisp.org>
21154 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
21155 check for the declaration of strnlen and a run test that exposes the
21156 AIX 5.1 strnlen bug. In the failure case, #define strndup to
21159 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21160 Bruno Haible <bruno@clisp.org>
21162 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
21164 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21166 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
21167 compile test, for Tru64 4.0D.
21169 2006-05-28 Karl Berry <karl@gnu.org>
21171 * config/srclist.txt (printf-args.c): lose sync.
21173 2006-05-26 Martin Lambers <marlam@marlam.de>
21175 * lib/getpass.c: Updates the test for the native W32 API, and adds
21176 missing includes, thus fixing compilation warnings.
21178 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
21180 * lib/exclude.c (exclude_fnmatch): New function.
21181 (excluded_file_name): Call exclude_fnmatch.
21182 * lib/exclude.h (excluded_file_name): New prototype
21184 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
21186 * lib/tempname.c (small_open, large_open): New macros.
21187 (__open, __open64) [!_LIBC]: Remove.
21188 (__gen_tempname): Use small_open and large_open instead of __open
21189 and __open64. This fixes a portability bug on HP-UX 11.11i
21190 reported by Simon Wing-Tang in
21191 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
21193 2006-05-24 Bruno Haible <bruno@clisp.org>
21195 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
21196 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
21197 Reported by Thorsten Maerz <torte@netztorte.de> via
21198 Aaron Stone <aaron@serendipity.cx>.
21200 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
21202 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
21203 gl_ rather than jm_. Link, don't run, so that cross-compiles are
21204 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
21205 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
21206 not really conditional on the cache.
21207 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
21209 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
21211 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
21212 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
21213 (my_usleep): Don't mishandle maximum value.
21215 2006-05-19 Jim Meyering <jim@meyering.net>
21217 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
21219 2006-05-17 Bruno Haible <bruno@clisp.org>
21221 Cygwin portability.
21222 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
21224 2006-05-17 Bruno Haible <bruno@clisp.org>
21226 * lib/stdint_.h: Fix recognition of Cygwin.
21228 2006-05-15 Bruno Haible <bruno@clisp.org>
21230 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
21231 on libtool patch by Ralf Wildenhues.
21233 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
21235 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
21236 test for C99 conformance; (bool) 0.5 is an integer constant
21237 expression, but (bool) -0.5 is not. Problem reported by Fedor
21238 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
21240 2006-05-11 Simon Josefsson <jas@extundo.com>
21242 * m4/xvasprintf.m4: Fix obvious typo.
21244 2006-05-11 Jim Meyering <jim@meyering.net>
21246 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
21249 2006-05-10 Simon Josefsson <jas@extundo.com>
21251 * lib/md4.c: Typo fix, update copyright years.
21252 (K1, K2): Don't use L because it turn computations into 64-bit on
21255 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
21257 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
21258 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
21259 unwanted sign propagation, e.g., on hosts with 64-bit int.
21260 There still are some problems with reeelly weird theoretical hosts
21261 (e.g., 33-bit int) but it's not worth worrying about now.
21262 * lib/sha1.c (rol): Likewise.
21263 (K1, K2, K3, K4): Remove unnecessary L suffix.
21265 2006-05-10 Bruno Haible <bruno@clisp.org>
21267 * lib/des.c: Cast to avoid warnings.
21269 2006-05-09 Bruno Haible <bruno@clisp.org>
21271 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
21272 (Depends-on): Depend also on xsize, stdarg.
21273 (configure.ac): Add gl_XVASPRINTF.
21275 2006-05-09 Bruno Haible <bruno@clisp.org>
21277 * m4/xvasprintf.m4: New file.
21279 2006-05-09 Bruno Haible <bruno@clisp.org>
21281 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
21282 (EOVERFLOW): Define fallback value.
21283 (xstrcat): New function.
21284 (xvasprintf): Recognize the special case of a string concatenation.
21286 2006-05-08 Eric Blake <ebb9@byu.net>
21288 * gnulib-tool (func_version): Base copyright year on CVS date.
21289 (func_emit_copyright_notice): New function.
21290 (func_emit_lib_Makefile_am): Use it.
21291 (func_emit_tests_Makefile_am): Likewise.
21292 (func_import): Likewise.
21294 2006-05-08 Bruno Haible <bruno@clisp.org>
21296 * modules/stdarg: New file.
21297 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
21299 2006-05-08 Bruno Haible <bruno@clisp.org>
21301 * m4/stdarg.m4: New file, from GNU gettext.
21303 2006-05-08 Bruno Haible <bruno@clisp.org>
21305 * config/srclist.txt (build-aux/config.rpath): different from latest
21308 2006-05-08 Bruno Haible <bruno@clisp.org>
21310 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
21312 2006-05-05 Jim Meyering <jim@meyering.net>
21314 * m4/warning.m4: New file, derived from bison's file by the same name.
21316 2006-05-03 Bruno Haible <bruno@clisp.org>
21318 * lib/stdint_.h: Shorter URL.
21319 * lib/inttypes.h: Likewise.
21321 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
21323 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
21325 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
21327 * lib/verify.h: Document the internals better. Most of this change
21328 was written by Bruno Haible.
21330 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
21332 * doc/verify.texi: New file, partly based on a proposal by
21335 2006-05-02 Bruno Haible <bruno@clisp.org>
21337 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
21339 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
21341 2006-04-29 Bruno Haible <bruno@clisp.org>
21343 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
21344 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
21346 2006-04-29 Bruno Haible <bruno@clisp.org>
21348 * gnulib-tool: Make --update option actually work.
21350 2006-04-29 Bruno Haible <bruno@clisp.org>
21352 * doc/gcd.texi: New file.
21353 * doc/gnulib.texi: Include it.
21355 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
21357 * lib/getdate.y (get_date): When adding relative date, start with the
21358 initial time, not with the result of the first mktime call.
21360 2006-04-25 Bruno Haible <bruno@clisp.org>
21362 * gnulib-tool (func_import): Output the include directives in three
21363 blocks, sorted separately.
21364 Reported by Ben Pfaff <blp@cs.stanford.edu>.
21366 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
21368 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
21369 to define main with arguments, for C++. Reported by Eric Blake.
21370 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
21371 Prefer 'int main ()' to 'int main (void)', for C++.
21372 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21373 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
21374 for 'main', for C99 and C++.
21376 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
21378 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
21379 Don't assume that exit status -1 is valid.
21380 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21381 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21382 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21383 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
21384 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
21385 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
21386 not AC_TRY_RUN. Use return, not exit. Don't assume that
21387 functions can be used without declaring them, or that you can
21388 exit with status -1.
21389 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21391 2006-04-24 Karl Berry <karl@gnu.org>
21393 * config/srclist.txt (longdouble.m4): sync lost.
21395 2006-04-24 Eric Blake <ebb9@byu.net>
21397 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
21399 2006-04-24 Bruno Haible <bruno@clisp.org>
21401 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
21402 poll() implementation in AIX.
21403 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21405 2006-04-24 Bruno Haible <bruno@clisp.org>
21407 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21408 assigned exactly once.
21410 2006-04-23 Claudio Fontana <claudio@gnu.org>
21411 Bruno Haible <bruno@clisp.org>
21413 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21414 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21417 2006-04-23 Bruno Haible <bruno@clisp.org>
21419 * modules/copy-file: Depend on unistd.
21420 * modules/execute: Likewise.
21421 * modules/fatal-signal: Likewise.
21422 * modules/findprog: Likewise.
21423 * modules/mkdtemp : Likewise.
21424 * modules/pipe: Likewise.
21425 * modules/wait-process: Likewise.
21427 2006-04-23 Bruno Haible <bruno@clisp.org>
21429 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21430 condition was already detected.
21431 Reported by Ben Pfaff <blp@cs.stanford.edu>.
21433 2006-04-23 Bruno Haible <bruno@clisp.org>
21435 * lib/copy-file.c: Include <unistd.h> unconditionally.
21436 * lib/execute.c: Likewise.
21437 * lib/fatal-signal.c: Likewise.
21438 * lib/findprog.c: Likewise.
21439 * lib/mkdtemp.c: Likewise.
21440 * lib/pipe.h: Likewise.
21441 * lib/pipe.c: Likewise.
21442 * lib/wait-process.h: Likewise.
21444 2006-04-23 Bruno Haible <bruno@clisp.org>
21446 * gnulib-tool (func_usage): Fix --import description. Document
21448 (func_import): Create temporary file in a temporary directory, if
21449 --dry-run is specified. Silence errors from 'grep' when there are no
21450 m4 files in $m4dir.
21451 (func_create_testdir): Silence errors from 'grep' when there are no
21452 m4 files in $m4dir.
21453 Reported by Karl Berry <karl@freefriends.org>.
21455 2006-04-20 Bruno Haible <bruno@clisp.org>
21457 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21458 one argument, so that the code will be portable to Autoconf 2.60.
21459 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21460 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21461 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21463 2006-04-19 Derek Price <derek@ximbiot.com>
21464 Eric Blake <ebb9@byu.net>
21466 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21467 rather than "/full/path.h". Update comment to match. Shorten &
21468 generalize m4_translit call via AS_TR_CPP.
21470 2006-04-19 Derek Price <derek@ximbiot.com>
21471 Eric Blake <ebb9@byu.net>
21473 * lib/inttypes.h: Correct grammar in comment.
21475 2006-04-18 Derek Price <derek@ximbiot.com>
21476 Paul Eggert <eggert@cs.ucla.edu>
21478 * modules/inttypes: New file.
21479 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21481 2006-04-18 Derek Price <derek@ximbiot.com>
21482 Paul Eggert <eggert@cs.ucla.edu>
21484 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21487 2006-04-18 Derek Price <derek@ximbiot.com>
21488 Paul Eggert <eggert@cs.ucla.edu>
21490 * lib/inttypes.h: New file.
21491 * lib/strtoimax.c: Assume <inttypes.h>.
21493 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
21495 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21496 isn't mounted. Problem reported by Kir Kolyshkin.
21498 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
21500 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21501 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
21503 * lib/regex.h (RE_DUP_MAX): Update comment to match current
21506 2006-04-12 Eric Blake <ebb9@byu.net>
21508 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21509 is now done automatically by the corresponding Autoconf macro.
21511 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
21513 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21516 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21518 Merge regex changes from libc, removing some of our
21519 POSIX-conformance changes that were rejected and redoing them in a
21520 less-intrusive way.
21522 * lib/regcomp.c (re_compile_internal, init_dfa):
21523 Length arg is now size_t, not Idx. All uses changed.
21524 (peek_token): Forward decl now says internal_function.
21525 (__re_error_msgid, __re_error_msgid_idx):
21526 Now static rather than extern with attribute_hidden.
21527 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21528 For some reason libc prefers K&R style defns for external functions.
21529 (regerror) [!defined _LIBC]: Likewise.
21530 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21531 (seek_collating_symbol_entry, lookup_collation_sequence_value):
21532 (build_range_exp, build_collating_symbol):
21533 Use K&R-style defn.
21534 (re_compile_fastmap): Use '\0' to memset, not 0.
21535 (utf8_sb_map): Make the calculations more obvious.
21536 (init_dfa, parse_bracket_exp, build_charclass_op):
21537 Call calloc and cast result, as glibc does.
21538 (init_word_char, fetch_token, peek_token, peek_token_bracket):
21539 (build_range_exp, build_collating_symbol):
21540 Now internal functions.
21542 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21544 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
21545 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21546 Don't depend on VMS; depend on __VMS instead, for POSIX
21547 namespace cleanness.
21548 (regoff_t): Define to ssize_t, not long int.
21550 Remove the REG_ macros named below. Instead, make the old names
21551 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21553 (REG_BACKSLASH_ESCAPE_IN_LISTS):
21554 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21555 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21556 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21557 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21558 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21559 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21560 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21561 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21562 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21563 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21564 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21565 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21566 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21567 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21568 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21569 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21571 Remove. All uses replaced by the old RE_* names.
21572 (RE_BACKSLASH_ESCAPE_IN_LISTS):
21573 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21574 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21575 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21576 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21577 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21578 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
21579 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
21580 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
21581 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
21582 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
21583 Don't bother having these macros be independent of each others'
21584 values, since they no longer exist in the POSIX name space.
21586 Rename the following member names back to their old names,
21587 unless !__USE_GNU_REGEX. All uses changed back.
21588 (buffer): Renamed from re_buffer.
21589 (allocated): Renamed from re_allocated.
21590 (used): Renamed from re_used.
21591 (syntax): Renamed from re_syntax.
21592 (fastmap): Renamed from re_fastmap.
21593 (translate): Renamed from re_translate.
21594 (can_be_null): Renamed from re_can_be_null.
21595 (regs_allocated): Renamed from re_regs_allocated.
21596 (fastmap_accurate): Renamed from re_fastmap_accurate.
21597 (no_sub): Renamed from re_no_sub.
21598 (not_bol): Renamed from re_not_bol.
21599 (not_eol): Renamed from re_not_eol.
21600 (newline_anchor): Renamed from re_newline_anchor.
21601 (num_regs): Renamed from rm_num_regs.
21602 (start): Renamed from rm_start.
21603 (end): Renamed from rm_end.
21605 (free_state): Move up a bit.
21607 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
21608 #define to be empty.
21609 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
21610 when that is what is intended.
21611 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
21612 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
21614 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
21615 All uses changed back to re_malloc, etc. It's now the caller's
21616 responsibility to check for overflow; all callers changed.
21617 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
21618 (re_x2nrealloc): Remove.
21619 (free_state): Remove decl.
21621 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
21622 (re_set_registers, re_exec):
21623 Use K&R-style defn.
21625 2006-01-31 Roland McGrath <roland@redhat.com>
21627 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
21628 Reported by Mike Frysinger <vapier@gentoo.org>.
21630 2006-01-15 Andreas Jaeger <aj@suse.de>
21633 * lib/regex_internal.c (re_string_reconstruct): Adjust for
21634 build_wcs_upper_buffer change.
21635 (build_wcs_upper_buffer): Change return type.
21637 2005-12-10 Ulrich Drepper <drepper@redhat.com>
21639 * lib/regex_internal.h: Include <stdint.h> if available.
21641 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
21643 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
21645 2005-10-14 Ulrich Drepper <drepper@redhat.com>
21647 * lib/regcomp.c: Adjust for changed secondary hash function.
21649 2005-09-30 Ulrich Drepper <drepper@redhat.com>
21651 * lib/regex.h: Pretty printing.
21652 Clean up namespace a bit.
21654 2005-09-30 Jakub Jelinek <jakub@redhat.com>
21656 * lib/regexec.c (update_cur_sifted_state, check_arrival,
21657 check_arrival_add_next_nodes): Avoid using uninitialized variable.
21659 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
21660 Ulrich Drepper <drepper@redhat.com>
21663 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
21665 (bitset_word_t): Renamed from bitset_word. All uses changed.
21667 2005-09-22 Ulrich Drepper <drepper@redhat.com>
21670 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
21671 * lib/regcomp.c: Remove unnecessary uses of
21672 unsigned RE_TRANSLATE_TYPE.
21673 * lib/regex_internal.h: Likewise.
21674 * lib/regex_internal.c: Likewise.
21675 * lib/regexec.c: Likewise.
21676 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
21678 2005-09-07 Ulrich Drepper <drepper@redhat.com>
21680 * lib/regexec.c (find_recover_state): Remove unnecessary
21682 (transit_state_bkref): Make DFA a const pointer.
21683 (get_subexp): Likewise.
21684 (check_arrival): Likewise.
21685 (update_cur_sifted_state): Likewise.
21686 (re_search_internal): Likewise.
21687 (prune_impossible_nodes): Likewise.
21688 (acquire_init_state_context): Likewise.
21689 (proceed_next_node): Likewise.
21690 (set_regs): Likewise.
21691 (free_fail_stack_return): Likewise.
21692 (check_arrival_expand_ecl): Mark DFA parameter as const.
21693 (check_arrival_expand_ecl_sub): Likewise.
21694 (check_subexp_limits): Likewise.
21695 (sub_epsilon_src_nodes): Likewise.
21696 (add_epsilon_src_nodes): Likewise.
21697 (merge_state_array): Likewise.
21698 (update_regs): Likewise.
21699 (build_trtable): Likewise.
21700 (sift_states_backward): Mark MCTX parameter as const.
21701 (build_sifted_states): Likewise.
21702 (update_cur_sifted_state): Likewise.
21703 (sift_states_mkref): Likewise.
21704 (check_arrival_expand_ecl): Mark eclosure as const.
21705 (check_dst_limits_calc_pos_1): Likewise.
21706 * lib/regex_internal.h (re_match_context_t): Make dfa a const
21709 2005-09-06 Ulrich Drepper <drepper@redhat.com>
21711 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
21712 (transit_state_sb): Likewise.
21713 (transit_state_mb): Likewise.
21714 (sift_states_iter_mb): Likewise.
21715 (check_arrival_add_next_nodes): Likewise.
21716 (check_node_accept_bytes): Change first parameter to pointer-to-const.
21717 [_LIBC] (re_search_2_stub): Use mempcpy.
21719 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
21720 mbrtowc for very simple UTF-8 case.
21722 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
21723 a pointer-to-const.
21724 (re_acquire_state_context): Likewise.
21725 * lib/regex_internal.h: Adjust prototypes.
21727 * lib/regex.c: Prevent using C++ compilers.
21729 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
21730 (re_acquire_state_context): Likewise.
21732 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21734 * modules/regex (Depends-on): Add ssize_t.
21736 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21738 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
21741 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
21743 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
21745 2006-03-29 Mark D. Baushke <mdb@gnu.org>
21746 Bruno Haible <bruno@clisp.org>
21748 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
21749 <sys/types.h> and <inttypes.h>.
21751 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21753 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
21754 `__error_t_defined', so argp.h will not typedef the former.
21756 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
21758 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
21759 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
21760 glibc names. Even if glibc is changed to conform to POSIX, the
21761 traditional names will be available anyway, since regex depends on
21762 the extensions module. Also, fix a longstanding typo in the
21763 implementation of Spencer ERE test #75 from grep 2.3. Problems
21764 reported by Emanuele Giaquinta. Also, change sense of cached
21765 variable, so that the message makes sense.
21767 2006-03-24 Simon Josefsson <jas@extundo.com>
21769 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
21770 including some doc fixes.
21771 (base64_encode_alloc): Fix +1 bug on allocation failures.
21773 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21775 * lib/base64.c (base64_encode): Do not read past end of array with
21776 unsanitized input on systems with CHAR_BIT > 8.
21778 2006-03-24 Eric Blake <ebb9@byu.net>
21780 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
21782 2006-03-22 Karl Berry <karl@gnu.org>
21784 * config/srclist.txt (*setenv.[ch]): get from coreutils.
21785 * config/srclistvars.sh (COREUTILS): new var.
21787 2006-03-17 Jim Meyering <jim@meyering.net>
21789 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
21790 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
21792 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
21794 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
21795 no longer needs it. Instead, check that regoff_t is as least
21796 as wide as ptrdiff_t.
21798 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
21799 so that our regex.h stays compatible with the installed regex.
21800 This is helpful for installers who configure --without-included-regex.
21801 Problem reported by Emanuele Giaquinta.
21803 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
21805 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
21806 Typedef to long int, not to off_, as POSIX will likely change
21809 2006-03-15 Eric Blake <ebb9@byu.net>
21811 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
21813 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
21815 * lib/argp-help.c (validate_uparams): Fix typo
21816 * lib/argp-parse.c (argp_default_options): Consistently begin help
21817 messages with a lowercase letter.
21819 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
21821 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
21822 overrun buffers and shouldn't be used (much as gets shouldn't be
21824 * lib/time_r.c (asctime_r, ctime_r): Likewise.
21826 2006-03-08 Simon Josefsson <jas@extundo.com>
21828 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
21829 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21831 2006-03-08 Simon Josefsson <jas@extundo.com>
21833 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
21834 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21836 2006-03-08 Simon Josefsson <jas@extundo.com>
21838 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
21839 signal that configure disabled the device.
21841 2006-03-08 Simon Josefsson <jas@extundo.com>
21843 * build-aux/maint.mk: Fix refresh-po, to handle no translated
21846 2006-03-07 Simon Josefsson <jas@extundo.com>
21848 * modules/getopt (Depends-on): Add unistd.
21850 * modules/unistd: New file.
21852 2006-03-07 Simon Josefsson <jas@extundo.com>
21854 * modules/gc-random: New file.
21856 2006-03-07 Simon Josefsson <jas@extundo.com>
21858 * m4/unistd_h.m4: New file.
21860 2006-03-07 Simon Josefsson <jas@extundo.com>
21862 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
21863 test to be side-effect free by storing the result in the cache
21864 variable gl_cv_lib_readline, and moving the assignment of
21865 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
21866 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21868 2006-03-07 Simon Josefsson <jas@extundo.com>
21870 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
21871 error on missing devices (the functions will return an error).
21873 * m4/gc.m4: Move random stuff to gc-random.m4
21875 2006-03-07 Simon Josefsson <jas@extundo.com>
21877 * lib/unistd_.h: New file.
21879 2006-03-07 Simon Josefsson <jas@extundo.com>
21881 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
21883 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
21885 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
21886 Problem reported by Juan Manuel Guerrero.
21888 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
21890 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
21892 * lib/getlogin_r.c: Likewise.
21893 * lib/getlogin_r.h: Likewise.
21894 * lib/glob.c: Likewise.
21895 * lib/pagealign_alloc.c: Likewise.
21896 * lib/unistd_.h: Remove; no longer needed.
21898 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
21900 * MODULES.html.sh (Support for systems lacking POSIX:2001):
21902 * modules/c-stack (Depends-on): Add unistd.
21903 * modules/getlogin_r: Likewise.
21904 * modules/glob: Likewise.
21905 * modules/pagealign_alloc: Likewise.
21906 * modules/unistd (Files): Remove lib/unistd_.h.
21907 (EXTRA_DIST): Remove.
21908 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
21910 (MOSTLYCLEANFILES): Remove unistd.h-t.
21912 2006-03-03 Simon Josefsson <jas@extundo.com>
21914 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
21916 2006-03-03 Simon Josefsson <jas@extundo.com>
21918 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
21921 2006-03-03 Simon Josefsson <jas@extundo.com>
21923 * build-aux/maint.mk: Add indent target.
21925 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
21927 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
21928 our replacement poll.h in any case, to avoid a differing
21929 declaration from a system header. Seen on AIX.
21931 2006-03-01 Simon Josefsson <jas@extundo.com>
21933 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
21936 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
21938 * modules/gettime (Depends-on): Add extensions module.
21939 * modules/nanosleep (Depends-on): Likewise.
21940 * modules/settime (Depends-on): Likewise.
21942 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
21944 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
21945 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
21947 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21948 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
21950 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
21951 not "==". Reported by Ralf Wildenhues.
21953 2006-03-01 Karl Berry <karl@gnu.org>
21955 * doc/Copyright/request-*: new files, synced from gnuorg.
21957 2006-03-01 Karl Berry <karl@gnu.org>
21959 * config/srclist.txt (Copyright/*): new entries.
21961 2006-02-28 Simon Josefsson <jas@extundo.com>
21963 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
21965 2006-02-27 Simon Josefsson <jas@extundo.com>
21967 * lib/base64.h: Indent #define's. From Jim Meyering
21968 <jim@meyering.net>.
21970 2006-02-27 Jim Meyering <jim@meyering.net>
21972 Revert the change of 2006-02-24, so these files can continue
21973 to be sync'd from gettext.
21974 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
21977 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
21979 * modules/intprops: New file.
21980 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
21982 * modules/getloadavg (Files): Remove lib/intprops.h.
21983 (Depends-on): Add intprops.
21984 * modules/human: Likewise.
21985 * modules/inttostr: Likewise.
21986 * modules/openat: Likewise.
21987 * modules/sig2str: Likewise.
21988 * modules/userspec: Likewise.
21989 * modules/utimecmp: Likewise.
21990 * modules/xnanosleep: Likewise.
21991 * modules/xstrtol: Likewise.
21993 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
21995 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
21996 * modules/lock-tests (TESTS): Use $(EXEEXT).
21997 * modules/tls-tests: Likewise.
21998 * modules/argp-tests: Likewise.
21999 (check_PROGRAMS): New var, replacing...
22000 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
22002 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22004 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
22007 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
22009 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
22011 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22013 Sync from coreutils.
22014 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
22017 2006-02-22 Jim Meyering <jim@meyering.net>
22019 Sync from coreutils.
22020 * m4/chdir-safer.m4: New file.
22022 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
22024 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
22025 AT_FDCWD exceeds INT_MAX.
22026 * lib/openat.h (AT_FDCWD): Likewise.
22028 2006-02-17 Eric Blake <address@hidden>
22030 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
22032 2006-02-16 Simon Josefsson <jas@extundo.com>
22034 * modules/getaddrinfo (Depends-on): Add sys_socket.
22036 2006-02-15 Simon Josefsson <jas@extundo.com>
22038 * build-aux/maint.mk: Add dsyntax-check rule.
22040 2006-02-15 Eric Blake <ebb9@byu.net>
22042 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
22043 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
22044 'present but cannot compile' warnings on cygwin.
22045 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
22046 use ws2tcpip.h if sys/socket.h works.
22047 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
22048 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
22050 2006-02-14 Simon Josefsson <jas@extundo.com>
22052 * modules/maintainer-makefile (Files): Rename.
22054 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
22055 and (the local) Makefile.cfg to maint-cfg.mk.
22057 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
22060 * modules/maintainer-makefile: New module.
22062 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
22063 severaly stripped to make it possible to build it up from scratch
22064 with reliable tests.
22066 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
22067 fixes to permit overriding the default actions when configure and
22068 makefile are not available.
22070 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
22072 Sync from coreutils.
22073 * modules/lstat (Depends-on): Don't depend on xalloc.
22074 (License): Change from GPL to LGPL, since this is now simply a
22075 replacement for a libc function.
22077 2006-02-14 Jim Meyering <jim@meyering.net>
22079 Sync from coreutils.
22081 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
22082 failure on deficient systems, and simplify gnulib lgpl dependencies.
22083 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
22084 xmalloc/lstat combination. Based on a patch from Bruno Haible.
22086 * lib/xalloc-die.c: Remove unused definition of N_.
22088 2006-02-14 Jim Meyering <jim@meyering.net>
22090 Sync from coreutils.
22091 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
22092 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
22093 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
22094 double-quote uses of that variable, to accommodate the rare case in
22095 which getmntent is available in none of the libraries checked. This
22096 happens at least on FreeBSD 5.0.
22098 2006-02-13 Simon Josefsson <jas@extundo.com>
22100 * gnulib-tool (Usage): Fix --import, from
22101 karl@freefriends.org (Karl Berry).
22103 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
22105 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
22107 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
22109 * lib/argp-namefrob.h: Restore changes accidentally lost during the
22110 "autoupdate" on 2005-12-12.
22112 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
22114 * modules/closeout (Depends-on): Remove atexit.
22116 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
22118 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
22119 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
22121 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
22123 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
22124 __EXTENSIONS__ if this causes compilation to fail. Problem
22125 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
22126 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
22128 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
22130 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
22131 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
22132 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
22135 2006-01-26 Simon Josefsson <jas@extundo.com>
22137 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
22138 prototype is visible on mingw32.
22140 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
22143 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
22146 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
22148 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
22149 attempt to open for write; this always fails, at least on POSIX
22150 hosts. This reinstates the 2006-01-09 change, which was
22151 inadvertently removed.
22153 2006-01-26 Bruno Haible <bruno@clisp.org>
22155 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
22156 Reported by Paul Eggert.
22158 2006-01-26 Bruno Haible <bruno@clisp.org>
22159 Paul Eggert <eggert@cs.ucla.edu>
22161 * lib/stdbool_.h (_Bool)
22162 [(! (defined __cplusplus || defined __BEOS__)
22163 && !defined __GNUC__
22164 && !(defined __HP_cc || defined __xlc__
22165 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
22166 || defined __sgi))]:
22167 #define to signed char in these cases too; this simplifies
22168 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
22169 etc., separately) and makes it more conservative.
22171 2006-01-25 Simon Josefsson <jas@extundo.com>
22173 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
22174 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
22175 ws2tcpip.h with WINVER=0x0501. All for mingw32.
22177 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
22179 * lib/argp-namefrob.h: Bugfix. Remove stray #
22181 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
22183 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
22184 so that we test the test.
22185 Check for yet another HP-UX cc bug involving *bool |= bool.
22187 2006-01-25 Karl Berry <karl@gnu.org>
22189 * config/srclist.txt (vasnprintf.c): sync lost.
22191 2006-01-25 Jim Meyering <jim@meyering.net>
22193 Sync from the stable (b5) branch of coreutils:
22195 * lib/fts.c (fts_children): Don't let close() clobber errno from
22198 * lib/fts.c (fts_stat): When following a symlink-to-directory,
22199 don't necessarily interpret stat-fails+lstat-succeeds as indicating
22200 a dangling symlink. That can also happen at least for ELOOP.
22201 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
22202 FYI, this bug predates the inclusion of fts.c in coreutils.
22204 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
22205 in their own block, so pre-c99 compilers don't object.
22207 Avoid the double-free (first in fts_read, second in fts_close) that
22208 would occur when an `active' directory is made inaccessible (e.g.,
22209 via chmod a-x) during a traversal.
22210 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22211 before returning. Reproduce this failure by
22212 mkdir -p a/b; cd a; chmod a-x . b
22213 Reported by Stavros Passas.
22215 2006-01-25 Jim Meyering <jim@meyering.net>
22217 * lib/fileblocks.c: Remove more useless parentheses.
22218 * lib/readutmp.h: Likewise.
22220 2006-01-25 Bruno Haible <bruno@clisp.org>
22222 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
22224 Reported by Paul Eggert.
22226 2006-01-25 Bruno Haible <bruno@clisp.org>
22228 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
22229 rid of a trap command. For Solaris sh.
22230 Reported by Mark D. Baushke <mdb@gnu.org>.
22232 2006-01-24 Simon Josefsson <jas@extundo.com>
22234 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
22237 2006-01-24 Karl Berry <karl@gnu.org>
22239 * config/srclist.txt (argp-namefrob.h): sync lost.
22241 2006-01-24 Jim Meyering <jim@meyering.net>
22243 * modules/openat (Files): Add lib/intprops.h.
22244 From Mark D. Baushke.
22246 2006-01-24 Jim Meyering <jim@meyering.net>
22248 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
22249 Reported by Mark D. Baushke.
22251 2006-01-24 Jim Meyering <jim@meyering.net>
22253 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
22255 2006-01-24 Bruno Haible <bruno@clisp.org>
22257 * modules/strnlen (Maintainer): Change from glibc to all.
22259 2006-01-24 Bruno Haible <bruno@clisp.org>
22261 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
22262 Patch by Paul Eggert.
22264 2006-01-24 Bruno Haible <bruno@clisp.org>
22266 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
22268 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
22271 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
22272 'signed char' to avoid problems with the built-in _Bool type.
22273 Reported by Paul Eggert on 2005-11-26.
22275 2006-01-24 Bruno Haible <bruno@clisp.org>
22277 * gnulib-tool (func_import): Avoid constructing complicated sed
22278 expressions inside backquote.
22279 Report and solution by Mark D. Baushke <mdb@gnu.org>.
22281 2006-01-23 Ulrich Drepper <drepper@redhat.com>
22283 These changes imported from libc.
22284 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
22285 test and two separate function calls.
22286 * lib/strndup.c (__strndup): Add libc_hidden_def.
22288 2006-01-23 Simon Josefsson <jas@extundo.com>
22290 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
22291 Remove the test_*_SOURCES variable: automake infers it by default.
22292 * modules/tls-tests: Likewise.
22294 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
22296 Work around porting bugs reported by Dieter in
22297 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
22298 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
22299 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
22300 Include "getopt.h" first, to check interface.
22301 (getenv): Declare only if defined HAVE_DECL_GETENV &&
22303 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
22304 (__strndup): Revert to K&R-style function dfns, the glibc style.
22305 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
22306 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
22307 Include strnlen.h first, to get prototype properly.
22308 (strnlen): Renamed from __strnlen.
22311 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
22313 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
22315 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
22317 * config/srclist.txt: Adjust to reflect glibc reorganization.
22318 This affects only comments.
22320 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
22322 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
22323 Reported by Bruce Korb <bkorb@gnu.org>.
22325 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
22327 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
22328 to pacify gcc -Wswitch-default.
22330 2006-01-22 Bruno Haible <bruno@clisp.org>
22332 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
22333 temporary buffer for sprintf, take into account the precision also
22334 for 'd', 'i', 'u', 'o', 'x', 'X'.
22336 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
22338 * modules/argp-tests: New module
22339 * tests/test-argp.c: New file
22340 * tests/test-argp-2.sh: New file
22342 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
22344 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
22345 (__argp_base_name): Removed
22346 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
22348 (__argp_base_name): Provide macro definition or extern declaration
22349 depending on the configuration
22351 2006-01-20 Simon Josefsson <jas@extundo.com>
22353 * modules/inet_ntop (Depends-on): Depend on sys_socket.
22355 2006-01-20 Simon Josefsson <jas@extundo.com>
22357 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
22359 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
22361 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
22362 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
22363 Suggested by Bruno Haible.
22365 2006-01-20 Karl Berry <karl@gnu.org>
22367 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
22368 until changes propagate, I guess.
22370 2006-01-19 Simon Josefsson <jas@extundo.com>
22372 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
22374 2006-01-19 Simon Josefsson <jas@extundo.com>
22376 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
22378 2006-01-19 Simon Josefsson <jas@extundo.com>
22380 * gnulib-tool: Set check_PROGRAMS.
22382 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22383 modules/des-tests, modules/gc-arcfour-tests,
22384 modules/gc-arctwo-tests, modules/gc-des-tests,
22385 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22386 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22387 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22388 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22389 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22390 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
22391 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
22394 2006-01-18 Simon Josefsson <jas@extundo.com>
22396 * modules/socklen (Depends-on): Depend on sys_socket.
22398 2006-01-18 Simon Josefsson <jas@extundo.com>
22400 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22401 modules/des-tests, modules/gc-arcfour-tests,
22402 modules/gc-arctwo-tests, modules/gc-des-tests,
22403 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22404 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22405 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22406 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22407 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22408 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22409 $(EXEEXT) to automake TESTS variable, for mingw32.
22411 2006-01-17 Simon Josefsson <jas@extundo.com>
22413 * modules/socklen (Include): Need sys/socket.h.
22415 2006-01-17 Bruno Haible <bruno@clisp.org>
22417 * modules/ssize_t (Include): Add <sys/types.h>.
22419 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
22421 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22422 it's not portable and it doesn't work with cross-compiles.
22423 Problem reported by Bruno Haible. Fix missing-$ typo in
22424 'test "gl_cv_ignore_unused_libraries" ...' that prevented
22425 -zignore from being used with Sun's C compiler.
22427 2006-01-12 Simon Josefsson <jas@extundo.com>
22429 * lib/base64.c: Fix warning, reported by Bruno Haible
22430 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22432 2006-01-12 Bruno Haible <bruno@clisp.org>
22434 * modules/ldd: New file.
22435 * build-aux/ldd.sh.in: New file.
22436 * MODULES.html.sh (Support for building libraries and executables): Add
22439 2006-01-12 Bruno Haible <bruno@clisp.org>
22441 * m4/ldd.m4: New file.
22443 2006-01-12 Bruno Haible <bruno@clisp.org>
22445 * gnulib-tool (func_import, func_create_testdir): Don't go into an
22446 endless loop while replacing $auxdir with build-aux.
22448 2006-01-11 Simon Josefsson <jas@extundo.com>
22450 * lib/stdint_.h (SIZE_MAX): Add missing (.
22452 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
22454 Sync from coreutils.
22455 * lib/md5.c: Fix commentary typos.
22456 (alignof, UNALIGNED_P): No need for a GCC-specific version.
22457 * lib/md5.h (__attribute__): Remove; unused.
22458 * lib/sha1.c: Fix commentary to match md5 better.
22459 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22460 so that we don't need to worry about alignment. All uses changed.
22461 This merges the 2005-10-28 md5 change into sha1.
22463 2006-01-11 Jim Meyering <jim@meyering.net>
22465 Sync from coreutils.
22466 * lib/md5.c (OP): Fix spacing.
22468 2006-01-11 Bruno Haible <bruno@clisp.org>
22470 Ensure automatic ordering between gl_LOCK and gl_ARGP.
22471 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22472 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22474 2006-01-11 Bruno Haible <bruno@clisp.org>
22476 Ensure automatic ordering between gl_LOCK and gl_ARGP.
22477 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22478 the "early" section as well.
22480 2006-01-11 Bruno Haible <bruno@clisp.org>
22482 Avoid "ar: no archive members specified" error on MacOS X.
22483 * gnulib-tool (func_modules_add_dummy): New function.
22484 (func_import, func_create_testdir): Invoke it.
22486 2006-01-11 Bruno Haible <bruno@clisp.org>
22488 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22489 with $auxdir in AC_CONFIG_FILES statements.
22491 2006-01-11 Bruno Haible <bruno@clisp.org>
22493 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22494 Initialize also noinst_HEADERS to empty.
22496 2006-01-11 Bruno Haible <bruno@clisp.org>
22498 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22500 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22503 2006-01-11 Bruno Haible <bruno@clisp.org>
22505 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22506 overridable by the user.
22507 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22509 2006-01-10 Simon Josefsson <jas@extundo.com>
22511 * modules/sys_socket: New file.
22513 2006-01-10 Simon Josefsson <jas@extundo.com>
22515 * m4/sys_socket_h.m4: New file.
22517 2006-01-10 Simon Josefsson <jas@extundo.com>
22519 * lib/socket_.h: New file.
22521 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
22523 * modules/readutmp (Maintainer): Add myself.
22525 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
22527 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22528 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
22529 People who are still concerned with buggy memcmp implementations
22530 can invoke gl_FUNC_MEMCMP themselves.
22532 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
22534 * lib/regex_internal.h (BITSET_WORD_BITS):
22535 Work around a bug in 64-bit PGC (before version 6.1-2), where the
22536 preprocessor mishandles large unsigned values as if they were signed.
22537 Problem reported by Claudio Fontana in
22538 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22540 2006-01-10 Jim Meyering <jim@meyering.net>
22542 Avoid the double-free (first in fts_read, second in fts_close) that
22543 would occur when an `active' directory is made inaccessible (e.g.,
22544 via chmod a-x) during a traversal.
22545 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22546 before returning. Reproduce this failure by
22547 mkdir -p a/b; cd a; chmod a-x . b
22548 Reported by Stavros Passas.
22550 Sync from coreutils.
22551 * lib/sha1.c: Tweak grammar in a comment.
22553 2006-01-10 Jim Meyering <jim@meyering.net>
22555 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22556 Patch by Joerg Sonnenberger.
22558 2006-01-10 Bruno Haible <bruno@clisp.org>
22560 * modules/readutmp: Depend on module free.
22561 * modules/strtok_r: Depend on module restrict.
22563 2006-01-10 Bruno Haible <bruno@clisp.org>
22565 * modules/gettext (configure.ac): Add an invocation of
22566 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22568 2006-01-10 Bruno Haible <bruno@clisp.org>
22570 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22571 Reported by Werner Lemberg <wl@gnu.org>.
22573 2006-01-10 Bruno Haible <bruno@clisp.org>
22575 * lib/localcharset.c: Update from GNU gettext.
22577 2006-01-10 Bruno Haible <bruno@clisp.org>
22579 * lib/argp.h (__const): Remove macro. Use const instead.
22580 * lib/argp-fmtstream.h (__const): Likewise.
22581 * lib/glob_.h (__const): Remove macro.
22582 * lib/glob-libc.h: Use const instead of __const.
22584 2006-01-10 Bruno Haible <bruno@clisp.org>
22586 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
22588 Needed to avoid an automake error regarding the 'gettext' module.
22590 2006-01-09 Simon Josefsson <jas@extundo.com>
22592 * modules/inet_ntop (Depends-on): Add restrict.
22594 2006-01-09 Simon Josefsson <jas@extundo.com>
22596 * modules/gc-rijndael-tests (License): Put under LGPL.
22598 * modules/gc-des-tests (License): Likewise.
22600 * modules/gc-arcfour-tests (License): Likewise.
22602 * modules/gc-arctwo-tests (License): Likewise.
22604 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
22606 * modules/gc-hmac-sha1-tests (Files): Likewise.
22608 * modules/gc-hmac-md5-tests (License): Likewise.
22610 * modules/gc-sha1-tests (License): Likewise.
22612 * modules/gc-md5-tests (License): Likewise.
22614 * modules/gc-md4-tests (License): Likewise.
22616 * modules/gc-md2-tests (License): Likewise.
22618 * modules/gc-tests (License): Likewise.
22620 * modules/des-tests (License): Likewise.
22622 * modules/md4-tests (License): Likewise.
22624 * modules/md2-tests (License): Likewise.
22626 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22628 Sync from coreutils:
22630 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
22631 * modules/lib-ignore: New file.
22632 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
22633 chdir-safer.m4, lchmod.m4.
22634 * modules/openat: Add mkdirat.c, openat-priv.h.
22636 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22638 Sync from coreutils.
22639 * m4/lib-ignore.m4: New file.
22640 * m4/lchmod.m4: New file.
22642 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22644 Sync from coreutils.
22645 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
22646 for write access: POSIX says that must fail.
22647 * lib/fts.c (diropen): Likewise.
22648 * lib/save-cwd.c (save_cwd): Likewise.
22649 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
22650 well, for minor improvements on hosts that lack O_DIRECTORY.
22651 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
22652 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
22653 Fall back on chown if open failed with EACCES.
22655 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
22656 Report an error at compile-time if only a 1-second nominal clock
22657 resolution is found.
22659 * lib/lchmod.h: New file.
22660 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
22661 (make_dir_parents): Use lchown rather than chown, and
22662 lchmod rather than chmod.
22664 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
22665 dummies too. Problem with "none" reported by Bob Proulx. Problem with
22666 "proc" reported by n0dalus.
22668 * lib/mountlist.c: Include <limits.h>.
22669 (dev_from_mount_options)
22670 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
22671 New function. It no longer assumes "dev=" has the System V meaning
22672 on Linux (since it doesn't). It also parses "dev=" more carefully.
22673 (read_file_system_list)
22674 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
22675 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
22678 * lib/posixtm.h (PDS_PRE_2000): New macro.
22679 * lib/posixtm.c (year): Arg is now syntax_bits rather than
22680 allow_century. All usages changed. Reject dates outside the range
22681 1969-1999 if PDS_PRE_2000 is used.
22683 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
22685 Sync from coreutils.
22686 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
22687 (Time of day items): Mention the possibility of leap seconds.
22688 Problem reported by Dr. David Alan Gilbert.
22690 2006-01-09 Jim Meyering <jim@meyering.net>
22692 Sync from coreutils.
22694 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
22696 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
22698 * lib/modechange.c (mode_compile): Reject an invalid mode string
22699 that starts with an octal digit. From Andreas Gruenbacher.
22701 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
22702 and dup to open_safer and dup_safer, respectively.
22703 (openat_permissive): Fix typo in comment.
22705 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
22706 "gettext.h"; either no longer needed or are guaranteed by openat.h.
22707 (_): Remove; no longer needed.
22708 (openat): Renamed from rpl_openat; no need for rpl_openat
22709 since openat.h renames openat for us.
22710 Replace most of the body with a call to openat_permissive,
22711 to avoid duplicate code.
22712 Port to (probably hypothetical) environments were mode_t is
22714 (openat_permissive): Require mode arg, so that we can check
22715 types better. Put it just after flags. Change cwd failure
22716 indicator from pointer-to-bool to pointer-to-errno-value.
22717 All callers changed.
22718 Invoke openat_save_fail and/or openat_restore_fail if
22719 cwd_errno is null, so that openat can call us.
22720 (openat_permissive, fdopendir, fstatat, unlinkat):
22721 Simplify errno handling to avoid some duplicate code,
22722 as it's OK to set errno on success.
22723 * lib/openat.h: Revamp code so that function macros depend on
22724 __OPENAT_PREFIX only, not also on AT_FDCWD.
22725 (openat_ro): Remove. Caller changed to use openat_permissive.
22726 (openat_permissive): Now a macro, if not a function.
22727 (openat_restore_fail, openat_save_fail): Now always functions,
22728 since mkdirat needs them even if __OPENAT_PREFIX is defined.
22730 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
22732 * lib/mkdirat.c: Include openat-priv.h.
22733 Remove definitions of macros defined therein.
22734 * lib/openat.c: Likewise.
22736 * lib/mkdirat.c (mkdirat): New file and function.
22737 * lib/openat.h (mkdirat): Declare.
22739 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
22741 * lib/openat.h (openat_permissive): Declare.
22742 (openat_ro): Define.
22744 * lib/openat.c (EXPECTED_ERRNO): New macro.
22745 (openat_permissive): New function -- used in remove.c rewrite.
22746 (all functions): Set errno just before returning, only if there
22747 was an actual failure.
22748 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
22750 Emulate openat-family functions using Linux's procfs, if possible.
22751 Idea and some code based on Ulrich Drepper's glibc changes.
22753 * lib/openat.c: (BUILD_PROC_NAME): New macro.
22754 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
22755 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
22756 before falling back on save_cwd and restore_cwd.
22757 (fdopendir, fstatat, unlinkat): Likewise.
22759 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
22760 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
22762 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
22763 as second argument to va_arg. Otherwise, some versions of gcc
22764 warn that `if this code is reached, the program will abort'.
22766 2006-01-09 Jim Meyering <jim@meyering.net>
22768 Sync from coreutils.
22769 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
22770 Require openat-priv.h.
22772 2006-01-09 Bruno Haible <bruno@clisp.org>
22774 * modules/strnlen (Include): Use strnlen.h.
22776 2006-01-09 Bruno Haible <bruno@clisp.org>
22778 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
22780 2006-01-09 Bruno Haible <bruno@clisp.org>
22782 * lib/sysexit_.h (EX_OK): New macro.
22783 Suggested by Martin Lambers <marlam@marlam.de>.
22785 2006-01-09 Bruno Haible <bruno@clisp.org>
22787 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
22788 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
22790 2006-01-09 Bruno Haible <bruno@clisp.org>
22792 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
22795 2006-01-09 Bruno Haible <bruno@clisp.org>
22797 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
22798 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
22799 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
22800 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
22802 2006-01-09 Bruno Haible <bruno@clisp.org>
22804 * build-aux/javacomp.sh.in: New file, moved from lib/.
22805 * modules/javacomp-script (Files): Update.
22806 (configure.ac): Add AC_CONFIG_FILES invocation.
22807 (EXTRA_DIST): Remove variable.
22809 * build-aux/javaexec.sh.in: New file, moved from lib/.
22810 * modules/javaexec (Files): Update.
22811 (configure.ac): Add AC_CONFIG_FILES invocation.
22812 (EXTRA_DIST): Remove javaexec.sh.in.
22814 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
22815 * modules/csharpcomp-script (Files): Update.
22816 (configure.ac): Add AC_CONFIG_FILES invocation.
22817 (EXTRA_DIST): Remove variable.
22819 * build-aux/csharpexec.sh.in: New file, moved from lib/.
22820 * modules/csharpexec (Files): Update.
22821 (configure.ac): Add AC_CONFIG_FILES invocation.
22822 (EXTRA_DIST): Remove csharpexec.sh.in.
22824 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
22826 Sync from coreutils.
22828 Add POSIX ACL support
22829 * lib/acl.h (copy_acl, set_acl): Add declarations.
22830 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
22831 systems other than Linux.
22832 (chmod_or_fchmod): New function: use fchmod when possible,
22833 and chmod otherwise.
22834 (file_has_acl): Add a POSIX ACL implementation, with a
22835 Linux-specific subcase.
22836 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
22837 S_ISVTX from one file to another. Fall back to fchmod/chmod when
22838 acls are unsupported.
22839 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
22840 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
22843 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
22845 Sync from coreutils.
22846 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
22848 2006-01-07 Bruno Haible <bruno@clisp.org>
22850 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
22853 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
22855 * lib/strftime.c (tzname): Don't declare if it is already #defined.
22856 Problem reported for Mingw by Mark Junker.
22858 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
22860 * README: Gnulib normally doesn't generate a tarball.
22862 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
22864 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
22865 long int, not int, for nanosecond counts, so that people who are
22866 used to POSIX struct timespec won't be surprised. Reported by Jim
22869 2005-12-28 Bruno Haible <bruno@clisp.org>
22871 * build-aux/config.rpath: Update from GNU gettext.
22873 2005-12-16 Jim Meyering <jim@meyering.net>
22875 * modules/fprintftime: New module.
22876 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
22878 2005-12-16 Jim Meyering <jim@meyering.net>
22880 * m4/fprintftime.m4: New file.
22882 2005-12-16 Jim Meyering <jim@meyering.net>
22884 * lib/fprintftime.c, lib/fprintftime.h: New files.
22886 2005-12-15 Simon Josefsson <jas@extundo.com>
22888 * modules/socklen (configure.ac): Fix M4 macro name, to align with
22891 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
22893 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
22894 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
22896 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
22898 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
22899 * lib/argp-help.c (fill_in_uparams): Check if the constructed
22900 struct uparams is valid. Fall back to the default values if it is
22903 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
22905 * modules/argp (Files): Add argp-pin.c
22906 (Depends-on): dirname
22907 (lib_SOURCES): Add argp-pin.c
22909 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
22911 * m4/argp.m4: Check if program_invocation_name and
22912 program_invocation_short_name are declared and define appropriate
22913 macros if they are not.
22915 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
22917 * lib/argp-help.c (__argp_base_name): New function
22918 (__argp_short_program_name): Rewrite using __argp_base_name
22919 * lib/argp-namefrob.h: Define program_invocation_name and
22920 program_invocation_short_name if requested
22921 (__argp_base_name): Add prototype
22922 * lib/argp-parse.c (argp_def): Use gettext wrappers
22923 (argp_default_parser): Use __argp_base_name
22924 * lib/argp-pin.c: New file. Defines program_invocation_name and
22925 program_invocation_short_name on systems that lack them.
22927 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
22929 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
22930 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22931 porting problem reported by Georg Schwarz in
22932 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22934 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
22936 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
22937 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
22938 porting problem reported by Georg Schwarz in
22939 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
22941 2005-12-05 Bruno Haible <bruno@clisp.org>
22943 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
22944 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
22945 Reported by Mark Junker <mjscod@gmx.de>.
22947 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
22949 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
22950 Use implementation from Albert Chin, with some
22951 comments/corrections by Stepan Kasal and myself.
22953 2005-12-02 Bruno Haible <bruno@clisp.org>
22955 * gnulib-tool (func_import): Accept GPLed build tool modules when
22957 * modules/csharpcomp-script: New file.
22958 * modules/csharpcomp: Depend on it.
22959 * modules/javacomp-script: New file.
22960 * modules/javacomp: Depend on it.
22961 Suggested by Simon Josefsson.
22963 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
22965 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
22966 statement, to work around an HP-UX 10.20 compiler bug reported by
22969 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
22971 * modules/savedir (Depends-on): Add openat.
22973 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
22975 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
22976 (uintmax_t) [defined uintmax_t]: Do not declare.
22977 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
22978 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
22979 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
22980 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
22981 sake of portability to weird hosts that C allows (though we don't
22982 know of any practical examples).
22984 * lib/savedir.h (fdsavedir): New decl.
22985 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
22986 contains most of the former guts of savedir.
22987 (savedir): Use savedirstream.
22988 Include "openat.h".
22990 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
22992 * modules/obstack (Files): Add m4/ulonglong.m4.
22993 Problem reported by Davide Angelocola.
22995 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
22997 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
22998 coreutils no longer futzes with rounding modes.
23000 2005-11-14 Jim Meyering <jim@meyering.net>
23002 * lib/mkstemp-safer.c: Include <config.h>, required for possible
23003 replacement of mkstemp.
23005 2005-11-10 Simon Josefsson <jas@extundo.com>
23007 * lib/readline.c: Remove EOL.
23009 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
23011 * modules/gethrxtime (Depends-on): Add gettime.
23013 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
23015 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
23016 or gettimeofday; no longer needed.
23018 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
23020 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
23022 (gethrxtime) [! (HAVE_NANOUPTIME
23023 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
23024 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
23025 our own approximation.
23027 2005-11-08 Eric Blake <ebb9@byu.net>
23029 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23031 2005-11-08 Eric Blake <ebb9@byu.net>
23033 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23035 2005-11-04 Bruno Haible <bruno@clisp.org>
23037 * gnulib-tool: Implement --update mode.
23039 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
23041 Fix porting problem reported by Theodoros V. Kalamatianos.
23042 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
23043 Don't assume that futimes failing means we must fail.
23045 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
23047 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
23048 variables to suggest the intended function of the PATH_MAX check.
23050 2005-10-30 Kean Johnston <jkj@sco.com>
23052 Trivial changes to support SCO systems.
23053 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
23055 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
23056 where __ptr is null when no I/O is pending.
23058 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
23060 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
23061 leave errno alone. Problem reported by Dmitry V. Levin.
23063 2005-10-28 Simon Josefsson <jas@extundo.com>
23065 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
23068 * tests/test-gc-md2.c, tests/test-md2.c: New files.
23070 * modules/md2, modules/md2-tests: New files.
23072 2005-10-28 Simon Josefsson <jas@extundo.com>
23074 * m4/inet_ntop.m4: More tests.
23076 * m4/gc-md2.m4, md2.m4: New file.
23078 2005-10-28 Simon Josefsson <jas@extundo.com>
23080 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
23081 "restrict" keywords, as per POSIX. Protect the function
23082 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
23083 Don't use K&R prototypes. Check the sprintf return values.
23084 Re-define EAFNOSUPPORT if not present. Indent.
23086 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
23087 suggested by Bruno Haible <bruno@clisp.org>.
23089 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
23091 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
23093 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
23096 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
23098 * lib/md2.h, lib/md2.c: New files.
23100 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
23102 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
23103 errno alone. Problem reported by Frederic Jolliton.
23105 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
23107 * modules/verify (License): Change from GPL to LGPL. This is a
23108 tiny module and there are apparently near-equivalents that are
23109 under the BSD license.
23111 2005-10-24 Simon Josefsson <jas@extundo.com>
23113 * modules/sha1: Relicense to LGPL.
23115 2005-10-24 Simon Josefsson <jas@extundo.com>
23117 * lib/md4.h: Shrink buffer size, now that we changed the type.
23119 2005-10-23 Simon Josefsson <jas@extundo.com>
23121 * gnulib-tool (func_import): Fix --tests-base.
23123 2005-10-22 Simon Josefsson <jas@extundo.com>
23125 * modules/arcfour (Depends-on): Need stdint.
23127 2005-10-22 Simon Josefsson <jas@extundo.com>
23129 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
23130 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
23132 2005-10-22 Simon Josefsson <jas@extundo.com>
23134 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
23135 suggested by Bruno Haible <bruno@clisp.org>.
23137 2005-10-22 Simon Josefsson <jas@extundo.com>
23139 * lib/crc.h: Include stddef.h, for size_t.
23141 2005-10-22 Simon Josefsson <jas@extundo.com>
23143 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
23144 arcfour_context struct (simplify test vector testing in GNU
23147 2005-10-21 Simon Josefsson <jas@extundo.com>
23149 * modules/des, modules/des-tests: New files.
23151 * modules/gc-des, modules/gc-des-tests: New files.
23153 * tests/test-des.c, tests/test-gc-des.c: New file.
23155 2005-10-21 Simon Josefsson <jas@extundo.com>
23157 * modules/arctwo, modules/arctwo-tests: New files.
23159 * tests/test-arctwo.c: New file.
23161 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
23163 * tests/test-gc-arctwo.c: New file.
23165 2005-10-21 Simon Josefsson <jas@extundo.com>
23167 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
23168 Bruno Haible <bruno@clisp.org>.
23170 * m4/gc-des.m4: New file.
23172 2005-10-21 Simon Josefsson <jas@extundo.com>
23174 * m4/arctwo.m4: New file.
23176 * m4/gc-arctwo.m4: New file.
23178 2005-10-21 Simon Josefsson <jas@extundo.com>
23180 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
23183 2005-10-21 Simon Josefsson <jas@extundo.com>
23185 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
23188 * lib/hmac-sha1.c (hmac_sha1): Likewise.
23190 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
23191 Bruno Haible <bruno@clisp.org>.
23193 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
23196 2005-10-21 Simon Josefsson <jas@extundo.com>
23198 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
23200 2005-10-21 Simon Josefsson <jas@extundo.com>
23202 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
23204 2005-10-21 Simon Josefsson <jas@extundo.com>
23206 * lib/des.h, lib/des.c: New files.
23208 * lib/gc-gnulib.c: Support DES.c
23210 2005-10-21 Simon Josefsson <jas@extundo.com>
23212 * lib/arctwo.h, lib/arctwo.c: New files.
23214 * lib/gc-gnulib.c: Support ARCTWO.
23216 2005-10-21 Simon Josefsson <jas@extundo.com>
23218 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
23219 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23221 2005-10-21 Simon Josefsson <jas@extundo.com>
23223 * gnulib-tool (func_import, func_create_testdir): Define automake
23224 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
23225 Makefile.am snippet),
23226 suggested by Bruno Haible <bruno@clisp.org>.
23228 * modules/gc (Makefile.am): Use it.
23230 2005-10-21 Bruno Haible <bruno@clisp.org>
23232 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
23235 2005-10-19 Simon Josefsson <jas@extundo.com>
23237 * tests/test-gc-rijndael.c: New file.
23239 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
23241 2005-10-19 Simon Josefsson <jas@extundo.com>
23243 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
23246 2005-10-19 Simon Josefsson <jas@extundo.com>
23248 * tests/test-gc-arcfour.c: New file.
23250 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
23252 2005-10-19 Simon Josefsson <jas@extundo.com>
23254 * modules/gc-md4, modules/gc-md4-tests: New file.
23256 * tests/test-gc-md4.c: New file.
23258 2005-10-19 Simon Josefsson <jas@extundo.com>
23260 * m4/gc-md4.m4: New file.
23262 2005-10-19 Simon Josefsson <jas@extundo.com>
23264 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
23265 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
23268 2005-10-19 Simon Josefsson <jas@extundo.com>
23270 * m4/gc-arcfour.m4: New file.
23272 * m4/gc-rijndael.m4: New file.
23274 2005-10-19 Simon Josefsson <jas@extundo.com>
23276 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
23278 2005-10-19 Simon Josefsson <jas@extundo.com>
23280 * lib/gc-gnulib.c: Support ARCFOUR.
23282 2005-10-19 Simon Josefsson <jas@extundo.com>
23284 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
23287 * lib/gc.h: Add ECB enum type.
23289 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
23291 2005-10-18 Simon Josefsson <jas@extundo.com>
23293 * tests/test-md5.c: New file.
23295 * modules/md5-tests: New file.
23297 2005-10-18 Simon Josefsson <jas@extundo.com>
23299 * tests/test-md4.c: New file.
23301 * modules/md4, modules/md4-tests: New files.
23303 2005-10-18 Simon Josefsson <jas@extundo.com>
23305 * m4/md4.m4: New file.
23307 2005-10-18 Simon Josefsson <jas@extundo.com>
23309 * lib/md4.h, lib/md4.c: New files, based on md5.?.
23311 2005-10-17 Stepan Kasal <kasal@ucw.cz>
23313 * gnulib-tool (func_create_testdir): Omit the second check whether
23314 BUILT_SOURCES in nonempty.
23316 2005-10-17 Simon Josefsson <jas@extundo.com>
23318 * tests/test-rijndael.c: New file.
23320 2005-10-17 Simon Josefsson <jas@extundo.com>
23322 * modules/sha1: Depend on stdint instead of md5.
23324 * modules/md5: Depend on stdint, remove uint32_t.
23326 2005-10-17 Simon Josefsson <jas@extundo.com>
23328 * modules/gc-sha1-tests: New file.
23330 * tests/test-gc-sha1.c: New file.
23332 2005-10-17 Simon Josefsson <jas@extundo.com>
23334 * m4/md5.m4: Remove call to uint32_t.m4.
23336 2005-10-17 Simon Josefsson <jas@extundo.com>
23338 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
23340 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
23343 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
23345 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
23347 2005-10-17 Simon Josefsson <jas@extundo.com>
23349 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
23351 2005-10-17 Simon Josefsson <jas@extundo.com>
23353 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
23355 2005-10-17 Simon Josefsson <jas@extundo.com>
23357 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
23359 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
23361 2005-10-17 Bruno Haible <bruno@clisp.org>
23363 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
23364 that it can also be used in a test.
23366 2005-10-16 Bruno Haible <bruno@clisp.org>
23368 * gnulib-tool (func_emit_tests_Makefile_am): Also define
23369 TESTS_ENVIRONMENT, so that individual tests can augment it.
23371 * gnulib-tool (func_create_testdir): Use an intermediate target for
23372 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
23373 macros, like $(ALLOCA_H), which cannot be passed through the command
23376 2005-10-15 Simon Josefsson <jas@extundo.com>
23378 * modules/rijndael-tests: New file.
23380 * modules/rijndael: New file.
23382 2005-10-15 Simon Josefsson <jas@extundo.com>
23384 * m4/rijndael.m4: New file.
23386 2005-10-15 Simon Josefsson <jas@extundo.com>
23388 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
23390 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
23392 2005-10-14 Simon Josefsson <jas@extundo.com>
23394 * tests/test-arcfour.c: New file.
23396 * modules/arcfour, modules/arcfour-tests: New files.
23398 2005-10-14 Simon Josefsson <jas@extundo.com>
23400 * m4/arcfour.m4: New file.
23402 2005-10-14 Simon Josefsson <jas@extundo.com>
23404 * lib/arcfour.h, lib/arcfour.c: New files.
23406 2005-10-14 Roland McGrath <roland@redhat.com>
23408 Import from libc. [BZ #1331]
23409 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23411 Reported by Matej Vela <vela@debian.org>.
23413 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
23415 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23416 include <wchar.h>; no longer needed.
23418 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
23420 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23422 2005-10-14 Jakub Jelinek <jakub@redhat.com>
23423 and Ulrich Drepper <drepper@redhat.com>
23426 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23427 instead of inline stream orientation test and two separate
23428 function calls. Pay no attention to USE_IN_LIBIO.
23430 2005-10-13 Simon Josefsson <jas@extundo.com>
23432 * modules/gc-hmac-md5-tests: New file.
23434 * tests/test-gc-hmac-sha1.c: New file.
23436 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23438 * modules/gc-hmac-md5-tests: New file.
23440 * tests/test-gc-md5.c: New file.
23442 * modules/gc-md5-tests: New file.
23444 2005-10-13 Simon Josefsson <jas@extundo.com>
23446 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23447 Move memory allocation outside of loop.
23449 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
23451 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23452 intermediate directory is in a read-only file system. Problem
23453 reported by Eric Blake.
23455 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
23457 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23459 2005-10-12 Simon Josefsson <jas@extundo.com>
23461 * tests/test-hmac-sha1.c: New file.
23463 * modules/hmac-sha1-tests: New file.
23465 * modules/hmac-sha1: New file.
23467 2005-10-12 Simon Josefsson <jas@extundo.com>
23469 * modules/gc-sha1: New file.
23471 2005-10-12 Simon Josefsson <jas@extundo.com>
23473 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23475 * tests/test-gc-pbkdf2-sha1.c: New file.
23477 2005-10-12 Simon Josefsson <jas@extundo.com>
23479 * modules/gc-md5, modules/gc-hmac-md5: New files.
23481 * modules/gc (Files): Remove md5, memxor and hmac files.
23483 2005-10-12 Simon Josefsson <jas@extundo.com>
23485 * m4/gc-pbkdf2-sha1.m4: New file.
23487 * m4/gc-hmac-sha1.m4: New file.
23489 * m4/gc-sha1: New file.
23491 * m4/hmac-sha1.m4: New file.
23493 2005-10-12 Simon Josefsson <jas@extundo.com>
23495 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23497 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23499 2005-10-12 Simon Josefsson <jas@extundo.com>
23501 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23502 suggested by Bruno Haible <bruno@clisp.org>.
23504 2005-10-12 Simon Josefsson <jas@extundo.com>
23506 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23508 2005-10-12 Simon Josefsson <jas@extundo.com>
23510 * lib/gc-pbkdf2-sha1.c: New file.
23512 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23514 2005-10-12 Simon Josefsson <jas@extundo.com>
23516 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23518 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23520 2005-10-12 Simon Josefsson <jas@extundo.com>
23522 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23523 GC_USE_HMAC_MD5, respectively.
23525 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23526 (gc_md5): Fix typo.
23528 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23530 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23532 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23534 2005-10-12 Bruno Haible <bruno@clisp.org>
23536 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23537 Reported by Stepan Kasal <kasal@ucw.cz>.
23539 2005-10-11 Simon Josefsson <jas@extundo.com>
23541 * tests/test-crc.c: New file.
23543 * modules/crc, modules/crc-tests: New files.
23545 2005-10-11 Simon Josefsson <jas@extundo.com>
23547 * m4/crc.m4: New file.
23549 2005-10-11 Simon Josefsson <jas@extundo.com>
23551 * lib/gc.h: Add gc_hash and gc_hash_buffer.
23553 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
23555 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23557 2005-10-11 Simon Josefsson <jas@extundo.com>
23559 * lib/crc.h, lib/crc.c: New files.
23561 * lib/gc.h (gc_hash_buffer): Add doc.
23563 2005-10-11 Bruno Haible <bruno@clisp.org>
23565 * modules/c-strcasestr: New file.
23566 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23568 2005-10-11 Bruno Haible <bruno@clisp.org>
23570 * modules/c-strcase: New file.
23571 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23573 2005-10-11 Bruno Haible <bruno@clisp.org>
23575 * lib/strcasecmp.c: Include limits.h.
23576 (strcasecmp): Avoid integer overflow on exotic platforms.
23577 * lib/strncasecmp.c: Include limits.h.
23578 (strncasecmp): Avoid integer overflow on exotic platforms.
23579 Reported by Paul Eggert.
23581 2005-10-11 Bruno Haible <bruno@clisp.org>
23583 * lib/c-strcasestr.h: New file, from GNU gettext.
23584 * lib/c-strcasestr.c: New file, from GNU gettext.
23586 2005-10-11 Bruno Haible <bruno@clisp.org>
23588 * lib/c-strcase.h: New file, from GNU gettext.
23589 * lib/c-strcasecmp.c: New file, from GNU gettext.
23590 * lib/c-strncasecmp.c: New file, from GNU gettext.
23592 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
23594 * modules/mempcpy (License): GPL -> LGPL.
23595 * modules/strchrnul (License): Likewise.
23596 * modules/sysexits (License): Likewise.
23598 2005-10-08 Simon Josefsson <jas@extundo.com>
23600 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
23602 2005-10-07 Simon Josefsson <jas@extundo.com>
23604 * m4/memxor.m4: Remove gl_C_RESTRICT call.
23606 2005-10-06 Simon Josefsson <jas@extundo.com>
23608 * tests/test-hmac-md5.c: New file.
23610 * modules/hmac-md5-tests: New file.
23612 * modules/hmac-md5: New file.
23614 2005-10-06 Simon Josefsson <jas@extundo.com>
23616 * m4/hmac-md5.m4: New file.
23618 * m4/memxor.m4: Require gl_C_RESTRICT.
23620 2005-10-06 Simon Josefsson <jas@extundo.com>
23622 * lib/memxor.c (memxor): Avoid casts and warnings.
23624 2005-10-06 Simon Josefsson <jas@extundo.com>
23626 * lib/hmac-md5.c: New file.
23628 * lib/hmac.h: New file.
23630 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
23632 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
23633 promotes to int, not unsigned int, to catch the AIX 5.3
23636 2005-10-05 Simon Josefsson <jas@extundo.com>
23638 * modules/memxor: New file.
23640 * modules/iconv (Files): Move config.rpath to havelib, it is used
23643 * modules/havelib (Files): Add config.rpath.
23645 2005-10-05 Simon Josefsson <jas@extundo.com>
23647 * m4/memxor.m4: New file.
23649 2005-10-05 Simon Josefsson <jas@extundo.com>
23651 * lib/memxor.c (memxor): Fix compiler error.
23653 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
23654 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
23656 * lib/memxor.h, lib/memxor.c: New files.
23658 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
23659 we assume all systems have it, suggested by Jim Meyering
23660 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
23661 any systems lack sys/socket.h; mingw32 is known to lack it, but we
23662 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
23665 2005-10-05 Simon Josefsson <jas@extundo.com>
23667 * config/srclist.txt: Add glibc bug 1423 for md5.h.
23669 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
23671 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
23672 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
23673 needed, since the source code now assumes these .h files.
23675 2005-10-05 Derek Price <derek@ximbiot.com>
23677 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
23679 2005-10-05 Bruno Haible <bruno@clisp.org>
23681 * modules/stdint (License): Change to LGPL.
23683 2005-10-04 Simon Josefsson <jas@extundo.com>
23685 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
23686 D. Baushke" <mdb@gnu.org>.
23688 2005-10-04 Bruno Haible <bruno@clisp.org>
23690 * lib/verify.h (verify_true): Provide alternative definition for C++.
23692 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
23694 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
23695 (SSIZE_MAX): New macro, if not already defined.
23696 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
23699 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
23701 Sync from coreutils.
23702 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
23703 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
23704 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
23705 ULLONG_MAX doesn't work with 2.7.2.1.
23707 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
23709 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
23712 * modules/exclude (Depends-on): Depend on verify.
23713 * modules/strtoimax (Depends-on): Likewise.
23714 * modules/utimecmp (Depends-on): Likewise.
23716 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
23718 * lib/exclude.c: Include verify.h.
23719 (verify): Remove. All callers changed to use verify.h's version.
23720 * lib/strtoimax.c: Likewise.
23721 * lib/utimecmp.c: Likewis.e
23723 Sync from coreutils.
23724 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
23725 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
23726 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
23727 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
23728 bother returning ENOSYS if settimeofday or stime fails; just let
23729 them return whatever errno they want to return.
23730 * lib/utimens.c: Include unistd.h, for dup2.
23731 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
23732 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
23734 2005-10-02 Jim Meyering <jim@meyering.net>
23736 Sync from coreutils.
23737 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
23738 from glibc-2.2.5 that fails for read-only files.
23740 2005-10-02 Jim Meyering <jim@meyering.net>
23742 Sync from coreutils.
23743 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
23744 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
23745 `#if HAVE_CONFIG_H'.
23746 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
23747 Remove AT_FDCWD test.
23748 Do not consume the fd unless successful.
23749 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
23750 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
23751 block, so that we don't even try to compile it if settimeofday is
23752 available. This works around a compilation failure on OSF1 V5.1,
23753 due to stime requiring a `long int*' while tv_sec is `int'.
23755 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
23757 Sync from coreutils.
23758 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
23759 against `yes', rather than just testing for nonempty.
23761 2005-10-01 Simon Josefsson <jas@extundo.com>
23763 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
23766 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
23767 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
23768 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
23769 freeaddrinfo and gai_strerror are declared by the POSIX headers.
23770 Check if struct addrinfo is declared.
23772 2005-10-01 Simon Josefsson <jas@extundo.com>
23774 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
23775 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
23776 AI_* and EAI_* definitions. Protect function declarations.
23778 2005-10-01 Jim Meyering <jim@meyering.net>
23780 Sync from coreutils.
23782 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
23783 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
23784 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
23785 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23786 in the inet and nsl libraries. Required on Solaris 5.7.
23788 2005-10-01 Jim Meyering <jim@meyering.net>
23790 Sync from coreutils.
23791 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
23792 in the inet and nsl libraries. Required on Solaris 5.7.
23794 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
23796 * lib/getdelim.c (getdelim): Remove unused variables.
23798 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
23800 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
23801 so that the code works even with ancient cpp. Portability problem
23802 with GCC 2.7.2.1 reported by Thomas M.Ott.
23804 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
23806 * modules/regex (Depends-on): Add strcase.
23808 * modules/gethostname (Licence): Change from GPL to LGPL, since
23809 gethostname.c is a trivial implementation of a standard library
23811 * modules/poll (License): Change from GPL to LGPL, since it's
23812 derived from LGPL code.
23814 2005-09-27 Jim Meyering <jim@meyering.net>
23816 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
23819 * lib/intprops.h (signed_type_or_expr__): Define.
23820 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
23821 for unsigned types.
23823 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
23825 * lib/verify.h (verify_expr): Remove, replacing with:
23826 (verify_true): New macro that returns true instead of void.
23827 (verify_type__): Remove.
23828 (verify): Use verify_true rather than verify_type__.
23830 2005-09-26 Bruno Haible <bruno@clisp.org>
23832 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
23834 (lib_SOURCES): Remove mbchar.c.
23835 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
23836 (Files): Add m4/mbrtowc.m4.
23837 * modules/mbiter: Likewise.
23838 * modules/mbuiter: Likewise.
23840 2005-09-26 Bruno Haible <bruno@clisp.org>
23842 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
23843 compile mbchar.c if they are not both present.
23844 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
23845 * m4/mbiter.m4 (gl_MBITER): Likewise.
23846 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
23847 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
23848 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
23850 2005-09-25 Jim Meyering <jim@meyering.net>
23852 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
23853 also uses socklen_t.
23855 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
23857 * lib/utimens.c (ENOSYS): Define if not already defined.
23858 (futimens): Support having a null PATH if the file descriptor
23861 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
23863 (__attribute): Define to empty unless GCC 3.1 or later.
23864 This works around a core dump on OpenBSD 3.4, which has GCC
23865 2.95.3, which dumps core when given __attribute__(()). It also
23866 simplifies other tests, since we really don't want to bother with
23867 worrying about which ancient version of GCC supported what.
23868 Original problem reported by Yoann Vandoorselaere, with part of
23869 the fix suggested by Derek Price.
23871 2005-09-24 Jim Meyering <jim@meyering.net>
23873 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
23874 so we can once again use a positive bitfield width of 1 -- now we
23875 don't have to explain why we were using a bitfield width of 2.
23877 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
23879 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
23880 and similarly for the other external symbols. Problem reported
23883 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
23884 bug reported by Jim Meyering.
23886 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
23887 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
23888 not needed, since socklen is a prerequisite module.
23890 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
23892 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
23893 Problem reported by Eric Blake.
23894 (getaddrinfo): Initialize se so that it's not garbage.
23895 Redo internal storage allocation so that it doesn't make unportable
23896 assumptions about alignment.
23899 * lib/utimens.c (futimens): Use futimesat if available.
23900 Prefer it to futimes since it doesn't have the futimes bug.
23902 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
23903 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
23904 Instead, declare a function that returns a pointer to an array,
23905 and use verify_type__ to declare the size of the array.
23906 Problem and germ of a solution reported by Bruno Haible.
23907 (verify_type__): Use 2, not 1, for bitfield size, to avoid
23908 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
23910 2005-09-23 Jim Meyering <jim@meyering.net>
23912 Sync from coreutils.
23913 Correct build failure (socklen_t not defined) on at least
23914 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
23915 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
23917 2005-09-23 Jim Meyering <jim@meyering.net>
23919 * modules/getaddrinfo (Depends-on): Add socklen.
23921 2005-09-23 Bruno Haible <bruno@clisp.org>
23923 * tests/test-verify.c: New file.
23925 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23927 Sync from coreutils.
23929 * modules/argmatch (Depends-on): Add verify.
23930 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
23932 * modules/save-cwd (Depends-on): Likewise.
23934 * modules/openat (Files): Add lib/openat-die.c.
23935 (Depends-on): Remove error, exitfail.
23938 * modules/verify: New file.
23939 * MODULES.html.sh (Diagnostics <assert.h>): New section,
23940 with "verify" module.
23942 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23944 Sync from coreutils.
23946 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
23947 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
23948 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
23949 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
23950 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
23951 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
23952 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
23953 Don't bother checking for string.h, stdlib.h, unistd.h.
23954 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
23955 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
23957 * m4/jm-macros.m4 (gl_MACROS): Likewise.
23958 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
23960 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
23961 (gl_GETDATE): Use it.
23963 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
23965 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
23967 Sync from coreutils.
23969 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
23971 * lib/argmatch.h: Include verify.h
23972 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
23973 (ARGMATCH_ASSERT): Remove; unused.
23974 * lib/canonicalize.c: Assume STDC_HEADERS.
23975 * lib/exclude.c: Include "strcase.h".
23976 * lib/regex_internal.h [!defined _LIBC]: Likewise.
23977 * lib/getusershell.c: Include stdio--.h rather than stdio.h
23979 (getusershell): Call fopen, not fopen_safer.
23980 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
23981 Do not include unistd-safer.h.
23982 (save_cwd): Don't call fd_safer; no longer needed
23983 now that we include fcntl--.h.
23985 * lib/getdate.y (relative_time): New type.
23986 (RELATIVE_TIME_0): New constant.
23987 (parser_control): Use relative_time instead of doing it ourselves.
23988 (%union): Add new relative_time rel member.
23989 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
23991 (relunit, relunit_snumber): Now of type rel.
23992 (zone, rel, relunit, get_date): Adjust to above changes.
23994 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
23995 Do not include unistd-safer.h.
23996 (getloadavg): Don't call fd_safer; no longer needed
23997 now that we include fcntl--.h.
23999 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
24000 (make_dir_parents): Treat ENOSYS like EEXIST.
24002 Improve quality of diagnostics on restore_cwd failure.
24003 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
24004 (make_dir_parents): Last arg is now int * (for errno), not bool *.
24005 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
24006 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
24007 each time through the loop. Do not diagnose restore_cwd failure;
24008 that is the caller's job (and perhaps the caller does not care).
24010 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
24011 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
24012 If the file already exists but is not a directory, don't bother
24013 to try to make its parents.
24014 Close potential file descriptor leak if we can't chdir("/") (!).
24015 Don't always return true if chdir($PWD) fails; return true only
24016 if the requested action was done successfully (except for the
24018 Don't log final directory unless we actually made it.
24019 Refactor to avoid duplicate code to fix up permissions.
24020 Don't attempt to fix up parent permissions if chdir($PWD) fails.
24022 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
24023 to make it a bit faster and (I hope) clearer.
24024 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
24025 Fix bug in formats like %2N.
24027 * lib/verify.h: New file.
24029 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
24031 Sync from coreutils.
24032 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
24034 2005-09-22 Jim Meyering <jim@meyering.net>
24036 Sync from coreutils.
24038 * m4/lstat.m4 (gl_FUNC_LSTAT):
24039 Use AC_LIBSOURCES to require lstat.c and lstat.h.
24040 Remove obsolete comment.
24041 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
24042 * m4/xstrtod.m4: Likewise.
24044 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
24046 2005-09-22 Jim Meyering <jim@meyering.net>
24048 Sync from coreutils.
24050 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
24052 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
24053 the .tm_year member, since otherwise gcc-4.0 would now warn about
24054 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
24056 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
24057 order to avoid an unsuppressible warning from gcc on 64-bit systems.
24059 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
24060 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
24061 when run in a time zone for which daylight savings time is in effect
24062 for the starting date.
24064 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
24065 stop us from restricting permissions of just-created absolute-named
24067 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
24068 to restore initial working directory.
24069 * lib/mkdir-p.c (make_dir_parents): New parameter:
24070 different_working_dir, to tell caller if/when we change the working
24071 directory and are unable to return to the initial one.
24072 * lib/mkdir-p.h (make_dir_parents): Update prototype.
24073 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
24074 `return false'. This fixes a bug introduced on 2004-07-30.
24076 * lib/openat.c (fdopendir): Be sure to close the supplied
24077 file descriptor before returning. This makes our replacement
24078 implementation a little closer to Solaris's, where fdopendir
24079 ties the file descriptor to the returned DIR* pointer.
24080 * lib/openat.c (unlinkat): New function.
24081 * lib/openat.h (unlinkat): Add prototype.
24082 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
24083 (openat_restore_fail): Rename from openat_restore_die.
24084 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
24086 Provide an alternative to exiting immediately upon save_cwd or
24087 restore_cwd failure. Now, an application can arrange e.g.,
24088 to perform a longjump in that case.
24089 * lib/openat.c: Include dirname.h.
24090 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
24091 (rpl_openat, fdopendir, fstatat): Call openat_save_die
24092 and openat_restore_die rather than calling error directly.
24093 Don't include "error.h" or "exitfail.h"; they're no longer needed.
24095 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
24096 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
24099 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
24100 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
24101 int utc, int nanoseconds);
24103 date should not have to allocate a megabyte of virtual memory to
24104 handle a format argument like +%1048575T. When implemented with
24105 strftime, it must allocate such a buffer, use strftime to fill it
24106 in, print it, then free it.
24107 With fprintftime, it simply prints everything and exits.
24108 With no need for memory allocation, that's one fewer way to fail.
24109 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
24110 optional field width, not before, so we accept %9:z, not %:9z.
24111 (my_strftime): Be sure to use L_('x') for literals.
24113 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
24114 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
24115 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
24116 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
24117 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
24118 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
24119 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
24120 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
24121 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
24122 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
24123 * lib/xgethostname.c, lib/xreadlink.c:
24124 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
24126 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
24127 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
24128 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
24129 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24130 and don't include <sys/file.h>).
24132 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
24134 Sync from coreutils.
24136 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
24137 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
24138 [!LDAV_DONE]: Avoid unused variable warning.
24140 2005-09-21 Bruno Haible <bruno@clisp.org>
24142 * lib/unicodeio.h (unicode_to_mb): New declaration.
24144 2005-09-20 Derek Price <derek@ximbiot.com>
24146 * lib/getaddrinfo.c: Don't include <netdb.h> included from
24149 2005-09-20 Bruno Haible <bruno@clisp.org>
24151 * gnulib-tool: Remove trailing slashes from the values specified for
24152 --source-base, --m4-base, --tests-base, --aux-dir.
24153 Suggested by Simon Josefsson <jas@extundo.com>.
24155 2005-09-20 Bruno Haible <bruno@clisp.org>
24157 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
24158 func_modules_to_filelist, func_import, func_create_testdir): Make all
24159 sorting results locale-independent, so that gnulib-cache.m4 doesn't
24160 change when gnulib-tool is invoked in a different locale.
24162 2005-09-19 Simon Josefsson <jas@extundo.com>
24164 * m4/socklen.m4: Fix typo.
24166 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24168 Use a consistent style for including <config.h>.
24169 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
24170 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
24171 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
24172 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
24173 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
24174 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
24175 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
24176 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
24177 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
24178 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
24179 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
24180 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
24181 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
24182 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
24183 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
24184 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
24185 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
24186 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
24187 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
24188 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
24189 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
24190 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
24191 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
24192 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
24193 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
24194 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
24195 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
24196 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
24197 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
24198 lib/xstrtoumax.c, lib/yesno.c:
24199 Standardize inclusion of config.h.
24200 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
24201 lib/inttostr.h: Removed inclusion of config.h from header files.
24202 * lib/inttostr.c: Adjusted in-tree users.
24203 * lib/timespec.h: Remove superfluous warning to include config.h.
24204 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
24205 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
24206 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
24207 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
24208 config.h with HAVE_CONFIG_H.
24210 2005-09-19 Jim Meyering <jim@meyering.net>
24212 * modules/pathmax (License): Change to LGPL.
24214 2005-09-19 Derek Price <derek@ximbiot.com>
24216 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
24218 2005-09-19 Bruno Haible <bruno@clisp.org>
24220 * gnulib-tool (import): Provide default for --tests-base.
24222 2005-09-19 Bruno Haible <bruno@clisp.org>
24224 * doc/quote.texi: New file, extracted from gnulib.texi.
24225 * doc/ctime.texi: New file, extracted from gnulib.texi.
24226 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
24227 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
24228 * doc/gnulib.texi: Include them.
24230 2005-09-18 Bruno Haible <bruno@clisp.org>
24233 * gnulib-tool (func_readlink): New function.
24234 (func_ln_if_changed): Use it.
24236 2005-09-18 Bruno Haible <bruno@clisp.org>
24238 * gnulib-tool: Support --with-tests also with --import.
24239 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
24240 (func_import): Use variables $testsbase and $inctests. Emit a
24241 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
24242 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
24243 SUBDIRS += $testsdir.
24244 (func_create_testdir): Update.
24246 2005-09-18 Bruno Haible <bruno@clisp.org>
24248 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
24249 instead of $dry_run.
24250 (func_cp_if_changed, func_mv_if_changed): Remove functions.
24251 (func_ln_if_changed): Don't handle dry-run here.
24252 (func_import): In dry-run mode, detect more precisely which actions
24253 would be performed, and don't use "...ing" verbs.
24255 2005-09-18 Bruno Haible <bruno@clisp.org>
24257 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
24258 (func_import): Use join on two temporary files instead of three nested
24259 loops, in order to determine which files are new or old.
24261 2005-09-18 Bruno Haible <bruno@clisp.org>
24263 * gnulib-tool (func_import): Comment out code that spits out the
24264 new files with --dry-run.
24266 2005-09-18 Bruno Haible <bruno@clisp.org>
24268 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
24270 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
24272 * lib/stat-time.h: New file.
24273 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
24274 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
24275 in a different way.
24276 (timespec_cmp): New function.
24277 * lib/utimecmp.c: Include stat-time.h.
24278 (SYSCALL_RESOLUTION): Depend on whether various struct stat
24279 members exist, not on the obsolescent ST_MTIM_NSEC.
24280 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
24282 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
24284 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
24286 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
24288 * MODULES.html.sh (File system functions): Add stat-time.
24289 * modules/stat-time: New file.
24290 * modules/timespec (Files): Remove m4/st_mtim.m4; this
24291 is now done in a different way, by the stat-time module.
24292 * modules/utimecmp (Depends-on): Add stat-time.
24294 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
24296 * m4/st_mtim.m4: Remove. Superseded by...
24297 * m4/stat-time.m4: New file.
24298 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
24299 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
24301 2005-09-15 Derek Price <derek@ximbiot.com>
24303 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
24305 2005-09-15 Derek Price <derek@ximbiot.com>
24307 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
24308 * lib/regex_internal.c: Ditto, using this...
24309 (__GNUC_PREREQ): ...new macro.
24310 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
24312 (__GNUC_PREREQ): ...this new macro.
24314 * lib/strstr.h: Include string.h. Define strstr as a macro here.
24316 2005-09-15 Derek Price <derek@ximbiot.com>
24317 Paul Eggert <eggert@cs.ucla.edu>
24319 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
24320 changes, consolidating in...
24321 * lib/regex_internal.h: ...this file.
24323 2005-09-13 Jim Meyering <jim@meyering.net>
24325 * lib/canon-host.c: Filter through gnu indent and reword comments
24327 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
24329 2005-09-13 Derek Price <derek@ximbiot.com>
24331 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
24333 Reported by Jim Meyering <jim@meyering.net>.
24335 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
24337 * lib/base64.c: Typo.
24338 (base64_encode): Put b64str in initialized data section.
24340 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
24342 Merge glibc and coreutils changes into gnulib, plus a few
24344 * lib/md5.c: Use #error rather than a string.
24345 (CYCLIC): New macro, from glibc source. Use it instead of rol.
24346 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
24347 (__attribute__): Define to empty for non recent-GCC.
24348 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
24349 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
24350 Renamed from their non-__ counterparts, with new macros replacing
24351 them if not _LIBC. Add __THROW attribute.
24353 (struct md5_ctx): Align buffer if using GCC.
24354 * lib/sha1.h (struct sha1_ctx): Likewise.
24355 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
24356 The old name was backwards.
24357 (NOTSWAP): Remove; not used.
24358 (rol): New macro, moved here from md5.h.
24359 (sha1_process_block): Remove a FIXME that doesn't make sense.
24361 2005-09-12 Derek Price <derek@ximbiot.com>
24363 Return usable errors from canon-host.
24364 * lib/canon-host.h: New file.
24365 * lib/canon-host.c (canon_host): Wrap...
24366 (canon_host_r): ...this new function, which now relies exclusively on
24368 (ch_strerror): New function.
24369 (last_cherror): New global.
24370 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
24372 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
24374 (freeaddrinfo): Free ai->ai_canonname when set.
24376 2005-09-12 Derek Price <derek@ximbiot.com>
24378 Make canon-host require getaddrinfo.
24379 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
24380 AC_LIBSOURCE canon-host.h. Call...
24381 (gl_PREREQ_CANON_HOST): ...this new function, which requires
24383 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
24385 2005-09-12 Derek Price <derek@ximbiot.com>
24387 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
24389 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
24391 2005-09-12 Derek Price <derek@ximbiot.com>
24393 * lib/gai_strerror.c: Include config.h when available. Include
24394 getaddrinfo.h before other headers to test interface.
24395 Reported by Larry Jones <lawrence.jones@ugs.com>.
24397 2005-09-12 Derek Price <derek@ximbiot.com>
24398 Paul Eggert <eggert@cs.ucla.edu>
24400 * modules/glob (Files): Add glob-libc.h.
24402 2005-09-12 Derek Price <derek@ximbiot.com>
24403 Paul Eggert <eggert@cs.ucla.edu>
24405 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24406 glob_.h, glob-libc.h.
24407 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24409 2005-09-12 Derek Price <derek@ximbiot.com>
24410 Paul Eggert <eggert@cs.ucla.edu>
24412 * lib/glob-libc.h: Renamed from glob_.h. The new version is
24413 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24414 protecting things that should be done only in gnulib contexts.
24415 * lib/glob_.h: New file, containing only the glob things needed for
24417 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
24418 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24419 (glob, globfree, glob_pattern_p): Now defined simply in terms of
24420 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24421 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24422 and to respect the namespace rules better.
24424 2005-09-08 Simon Josefsson <jas@extundo.com>
24426 * modules/socklen: New file.
24428 2005-09-08 Simon Josefsson <jas@extundo.com>
24430 * m4/socklen.m4: New file.
24432 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
24434 * modules/utimens (Files): Add m4/utimbuf.m4, since
24435 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24436 Reported by Sergey Poznyakoff.
24438 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
24440 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24441 definitions, since that's the preferred style in glibc.
24442 Fix a minor spacing issue, and update copyright notice to match
24445 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
24447 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24449 2005-09-06 Simon Josefsson <jas@extundo.com>
24451 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24452 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
24454 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
24456 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24459 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
24461 * config/srclist.txt: Add glibc bug 1302.
24463 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
24465 Change bitset word type from unsigned int to unsigned long int,
24466 as this has better performance on typical 64-bit hosts.
24467 Port bitset code to hosts with unusual word sizes.
24468 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24469 (build_collating_symbol):
24470 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24471 argument is a bitset. This is merely a style issue, but it makes
24472 it clearer that an entire array is expected.
24473 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24474 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24475 Port to the case where bitset_word is not the same as unsigned int.
24476 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24477 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24479 * lib/regexec.c (check_dst_limits_calc_pos_1,
24480 check_subexp_matching_top):
24481 (build_trtable, group_nodes_into_DFAstates):
24483 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24484 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24485 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24486 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24487 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24488 * lib/regcomp.c (optimize_subexps, lower_subexp):
24489 Work even if bitset_word has holes in its bitwise representation.
24490 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24491 * lib/regexec.c (check_dst_limits_calc_pos_1,
24492 check_subexp_matching_top):
24494 * lib/regex_internal.c (re_string_reconstruct):
24495 Don't assume UCHAR_MAX == 255.
24496 * lib/regex_internal.h (bitset_set_all): Likewise.
24497 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24499 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
24500 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24502 (BITSET_WORD_MAX): New macro.
24503 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24504 (bitset_set_all, bitset_copy): Now inline functions, not macros.
24505 (bitset_empty, bitset_copy):
24506 Prefer sizeof (bitset) to multiplying it out ourselves.
24507 (bitset_not_merge): Remove; unused.
24508 (bitset_contain): Return bool, not unsigned int with one bit on.
24509 All callers changed.
24510 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24511 alignment than re_node_set; do this by defining a new internal
24512 type struct dests_alloc and using it to allocate memory.
24514 2005-09-05 Bruno Haible <bruno@clisp.org>
24516 * gnulib-tool (func_import): Fix comparison in handling of symbolic
24519 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
24521 * modules/size_max (Makefile.am): Add size_max.h
24523 2005-09-04 Derek Price <derek@ximbiot.com>
24525 * gnulib-tool (func_import): Fix reversed $symbolic logic.
24527 2005-09-03 Simon Josefsson <jas@extundo.com>
24529 * gnulib-tool: Fix typo.
24531 2005-09-03 Simon Josefsson <jas@extundo.com>
24533 * config/srclist.txt: Add glibc bug 1293.
24535 2005-09-03 Derek Price <derek@ximbiot.com>
24537 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24538 From Larry Jones <lawrence.jones@ugs.com>.
24540 2005-09-02 Simon Josefsson <jas@extundo.com>
24542 * modules/socklen: New file.
24544 2005-09-02 Simon Josefsson <jas@extundo.com>
24546 * modules/havelib: New module.
24548 * modules/gettext, modules/iconv, modules/lock, modules/readline:
24551 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
24553 Check for arithmetic overflow when calculating sizes, to prevent
24554 some buffer-overflow issues. These patches are conservative, in the
24555 sense that when I couldn't determine whether an overflow was possible,
24556 I inserted a run-time check.
24557 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24559 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24560 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24561 (re_xnrealloc, re_x2nrealloc): New inline functions.
24562 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24563 parse_bracket_exp):
24564 (build_equiv_class, build_charclass): Check for arithmetic overflow
24565 in size expression calculations.
24566 * lib/regex_internal.c (re_string_realloc_buffers):
24567 (build_wcs_upper_buffer, re_node_set_add_intersect):
24568 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24569 (re_dfa_add_node, register_state): Likewise.
24570 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24571 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24572 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24573 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24575 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
24577 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24578 m4/ulonglong.m4. Problem reported by Martin Lambers.
24580 2005-09-02 Bruno Haible <bruno@clisp.org>
24582 Support for lib vs. lib64 distinction on biarch platforms.
24583 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
24584 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
24585 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
24587 2005-09-02 Bruno Haible <bruno@clisp.org>
24589 * gnulib-tool (import): In the other first-use case, provide defaults
24592 2005-09-02 Bruno Haible <bruno@clisp.org>
24594 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
24595 patches not yet found in the latest gettext release.
24597 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
24599 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
24600 to avoid a collision with bits/local_lim.h in glibc.
24601 All uses changed. Problem reported by Dmitry V. Levin in
24602 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
24604 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
24605 bugs in int versus size_t comparisons.
24606 (re_string_context_at): Fix bug where the code assumed that
24609 Use bool where appropriate.
24610 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
24611 All callers changed.
24612 (calc_eclosure_iter): Likewise, for ROOT arg.
24613 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
24614 (build_charclass_op): Likewise, for NON_MATCH arg.
24615 * lib/regex_internal.c (re_string_allocate, re_string_construct):
24616 (re_string_construct_common): Likewise, for ICASE arg.
24617 * lib/regexec.c (re_search_2_stub, re_search_stub):
24618 Likewise, for RET_LEN arg.
24619 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
24620 (set_regs): Likewise, for FL_BACKTRACK arg.
24621 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
24622 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
24623 (calc_eclosure_iter, parse_bracket_exp):
24624 Use bool for internal variables that are booleans.
24625 * lib/regexec.c (re_search_internal, check_matching,
24626 proceed_next_node):
24627 (set_regs, build_sifted_states, sift_states_bkref):
24628 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
24629 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
24630 (find_collation_sequence_value):
24632 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
24633 (re_node_set_compare):
24634 Return bool, not int. All callers changed.
24635 * lib/regexec.c (check_halt_node_context, check_dst_limits):
24636 (build_trtable, check_node_accept): Likewise.
24637 * lib/regex_internal.h: Include stdbool.h.
24639 Fix bugs uncovered when converting to bool.
24640 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
24641 failure instead of charging ahead blindly.
24642 * lib/regex_internal.c (register_state): Likewise.
24643 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
24644 for freeing internal storage.
24645 (group_nodes_into_DFA_states): Use unsigned int, not int, for
24646 bitset pieces used as boolean, to avoid undefined behavior
24647 on hosts that do int overflow checking.
24649 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
24651 * config/srclist.txt: Add glibc bugs 1285-1287.
24653 2005-09-01 Jim Meyering <jim@meyering.net>
24655 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
24656 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
24657 Require gl_STAT_MACROS, too.
24659 2005-09-01 Bruno Haible <bruno@clisp.org>
24661 * gnulib-tool (import): In the first-use case, provide defaults.
24663 2005-09-01 Bruno Haible <bruno@clisp.org>
24665 * gnulib-tool (func_import): Remove the .tmp files.
24667 2005-09-01 Bruno Haible <bruno@clisp.org>
24669 * gnulib-tool (func_import): Fix handling of symbolic links.
24671 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24673 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
24674 old glibc regex code mishandles strings longer than 2**31 bytes.
24675 This patch fixes this when the regex code is used in gnulib
24676 (i.e., outside glibc).
24678 This patch should not affect the use of the regex code inside
24679 glibc. No doubt this problem also needs to be handled for glibc
24680 as well, but the result will be an incompatible change to the
24681 glibc ABI, and the old ABI will have to be supported too. That
24682 can be the the subject for another patch.
24684 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
24685 governing whether the rest of this patch is active. By default,
24686 the macro is disabled and the patch has no effect.
24687 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
24688 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
24689 (struct re_pattern_buffer, re_search, re_search_2, re_match):
24690 (re_match_2, re_set_registers): Use the new types.
24691 * lib/regex_internal.h (Idx, re_hashval_t): New types.
24692 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
24694 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
24695 (re_string_context_at, bin_tree_t, re_dfastate_t):
24696 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
24697 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
24698 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
24699 (re_string_char_size_at, re_string_wchar_at):
24700 (re_string_elem_size_at):
24701 Use the new types and macros to port to 64-bit hosts.
24702 Use unsigned types for internal values, so that the code
24703 mostly works even for arrays larger than SSIZE_MAX.
24704 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
24705 (search_duplicated_node, calc_eclosure_iter, fetch_number):
24706 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24707 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
24708 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
24709 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
24710 (calc_inveclosure, parse_dup_op, build_range_exp):
24711 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
24712 (fetch_number, create_token_tree, mark_opt_subexp):
24714 * lib/regex_internal.c (re_string_construct_common,
24715 create_ci_newstate):
24716 (create_cd_newstate, re_string_allocate, re_string_construct):
24717 (re_string_realloc_buffers, build_wcs_upper_buffer):
24718 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
24719 (re_string_reconstruct, re_string_peek_byte_case):
24720 (re_string_fetch_byte_case, re_string_context_at):
24721 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
24722 (re_node_set_init_copy, re_node_set_add_intersect):
24723 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24724 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24725 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
24726 (re_acquire_state, re_acquire_state_context, register_state):
24728 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
24729 search_cur_bkref_entry):
24730 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
24731 (re_search_internal, re_search_2_stub, re_search_stub)
24732 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
24733 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
24734 (update_cur_sifted_state, check_dst_limits):
24735 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24736 (check_subexp_limits, sift_states_bkref, merge_state_array):
24737 (check_subexp_matching_top, get_subexp, get_subexp_sub):
24738 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
24739 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
24740 (expand_bkref_cache, check_node_accept_bytes):
24741 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
24742 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
24743 (acquire_init_state_context, check_halt_node_context):
24744 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
24745 (sift_states_backward, clean_state_log_if_needed):
24746 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
24747 (find_recover_state, transit_state_sb, transit_state_mb):
24748 (transit_state_bkref, build_trtable, match_ctx_clean):
24750 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
24751 to work around an assumption that REG_MISSING is negative.
24753 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
24754 (seek_collating_symbol_entry) [defined _LIBC]:
24755 (lookup_collation_sequence_value) [defined _LIBC]:
24756 (build_range_exp, build_collating_symbol) [defined _LIBC]:
24757 Use prototypes rather than old-style function definitions.
24758 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
24759 (transit_state_sb) [0]:
24760 (find_collation_sequence_value) [defined _LIBC]: Likewise.
24762 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
24765 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
24766 (optimize_subexps, lower_subexp):
24767 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
24768 since the signed shift might overflow. Use 1u<<31 instead.
24769 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24771 * lib/regexec.c (check_dst_limits_calc_pos_1,
24772 check_subexp_matching_top): Likewise.
24774 * lib/regcomp.c (optimize_subexps, lower_subexp):
24775 Use CHAR_BIT rather than 8, for clarity.
24776 * lib/regexec.c (check_dst_limits_calc_pos_1):
24777 (check_subexp_matching_top): Likewise.
24778 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
24779 have to worry about portability issues when shifting it left.
24780 Remove no-longer-needed test for table_size > 0.
24781 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
24782 in a word, as the resulting behavior is undefined.
24783 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
24784 in one case, a <= should have been an <, and in another case the
24785 whole test was missing.
24786 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
24787 the standard name CHAR_BIT.
24788 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
24789 this is not true on one's complement and signed-magnitude hosts.
24791 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
24793 (struct re_dfa_t): Remove unused member states_alloc.
24794 * lib/regcomp.c (init_dfa): Don't initialize unused members.
24796 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24798 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
24799 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
24800 and large-file glibc and in 32-bit large-file Solaris.
24802 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24804 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
24805 lengths fit in regoff_t; this isn't true if regoff_t is the same
24807 * lib/regex.c (re_search_internal): 5th arg is LAST_START
24808 (= START + RANGE) instead of RANGE. This avoids overflow
24809 problems when regoff_t is the same width as size_t.
24810 All callers changed.
24811 (re_search_2_stub): Check for overflow when adding the
24812 sizes of the two strings.
24813 (re_search_stub): Check for overflow when adding START
24814 to RANGE; if it occurs, substitute the extreme value.
24816 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
24818 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
24820 2005-08-31 Jim Meyering <jim@meyering.net>
24822 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
24823 a pointer-to-const.
24824 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
24825 (register_state): Likewise.
24826 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
24827 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
24828 (group_nodes_into_DFAstates): Likewise.
24830 2005-08-31 Jim Meyering <jim@meyering.net>
24832 * check-module: Add a FIXME comment.
24834 2005-08-31 Eric Blake <ebb9@byu.net>
24836 * modules/unistd-safer (Files): Add unistd--.h.
24837 * modules/stdio-safer (Files): Add stdio--.h.
24839 2005-08-31 Derek Price <derek@ximbiot.com>
24841 * lib/getdelim.c (getdelim): Return EOF on EOF.
24842 Reported by Larry Jones <lawrence.jones@ugs.com>.
24844 2005-08-31 Bruno Haible <bruno@clisp.org>
24846 Avoid unnecessary diffs in the generated lib/Makefile.am.
24847 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
24848 the generated files.
24849 (func_import): Don't set cmd.
24851 2005-08-31 Bruno Haible <bruno@clisp.org>
24853 * lib/strstr.c: Include <stddef.h>, for NULL.
24854 * lib/strcasestr.c: Likewise.
24855 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24857 2005-08-31 Bruno Haible <bruno@clisp.org>
24859 * gnulib-tool: New option --macro-prefix.
24860 (func_import): Use macro_prefix.
24861 (import): Handle option --macro-prefix.
24863 2005-08-31 Bruno Haible <bruno@clisp.org>
24865 * gnulib-tool (import): Rename most ac_* variables to cached_*.
24866 Also use new variables cached_lgpl, cached_libtool.
24868 2005-08-31 Bruno Haible <bruno@clisp.org>
24870 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
24871 always instantiating them.
24873 2005-08-31 Bruno Haible <bruno@clisp.org>
24875 * gnulib-tool (func_import): Read the previous cached settings
24876 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
24877 earlier added by gnulib but are now dropped. Warn when a gnulib file
24878 overwrites a non-gnulib file.
24880 2005-08-31 Bruno Haible <bruno@clisp.org>
24882 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
24883 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
24884 projects that don't keep autogenerated files in CVS. Put into
24885 actioncmd only the specified modules, not the transitive closure.
24887 2005-08-31 Bruno Haible <bruno@clisp.org>
24889 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
24890 Create directories that shall be filled.
24891 (import): Don't look for gl_* macros in configure.ac. Recurse across
24892 all directories containing a gnulib-cache.m4 files, if meaningful.
24894 2005-08-31 Bruno Haible <bruno@clisp.org>
24896 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
24897 (import): Set seen_libtool when we see gl_LIBTOOL.
24899 2005-08-31 Bruno Haible <bruno@clisp.org>
24901 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
24902 declaration macro definitions from generated gnulib.m4.
24904 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
24906 * lib/iconvme.h: Add prototype for iconv_alloc.
24908 2005-08-29 Simon Josefsson <jas@extundo.com>
24910 * lib/iconvme.c: Fix errno.
24912 2005-08-29 Bruno Haible <bruno@clisp.org>
24914 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
24915 that it works when the directory contains spaces.
24917 2005-08-29 Bruno Haible <bruno@clisp.org>
24919 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
24921 2005-08-29 Bruno Haible <bruno@clisp.org>
24923 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
24926 2005-08-29 Bruno Haible <bruno@clisp.org>
24927 and Stepan Kasal <kasal@ucw.cz>
24929 * check-module: If more parameters are given, check each of them
24930 separately; add more exceptions, as noted by Jim Meyering.
24931 (check_module): New procedure.
24932 (%exempt_header): Now contains all exceptions.
24934 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
24936 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
24938 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
24940 * lib/iconvme.c: Split iconv_string into iconv_alloc.
24942 2005-08-28 Bruno Haible <bruno@clisp.org>
24944 * m4/gnulib-tool.m4: New file.
24946 2005-08-27 Jim Meyering <jim@meyering.net>
24948 * modules/unistd-safer (Files): Add pipe-safer.c.
24949 * modules/fcntl-safer (Files): Add creat-safer.c.
24951 2005-08-27 Jim Meyering <jim@meyering.net>
24953 * m4/stdlib-safer.m4: New file. From coreutils.
24954 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
24955 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
24956 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
24957 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
24958 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
24960 2005-08-27 Jim Meyering <jim@meyering.net>
24962 * lib/fopen-safer.c: Merge minor changes from coreutils.
24963 * lib/dup-safer.c: Likewise.
24964 * lib/fd-safer.c: Likewise.
24966 Merge from coreutils.
24967 * lib/stdio--.h: New file.
24968 * lib/stdlib--.h: New file.
24969 * lib/mkstemp-safer.c: New file.
24971 GNU tar needs these.
24972 * lib/pipe-safer.c: New file.
24973 * lib/creat-safer.c: New file.
24974 * lib/fcntl--.h (creat): Define to creat_safer.
24975 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
24976 * lib/unistd--.h (pipe): Define to pipe_safer.
24977 * lib/unistd-safer.h: Declare pipe_safer.
24979 2005-08-26 Simon Josefsson <jas@extundo.com>
24981 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
24982 Haible <bruno@clisp.org>.
24984 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
24986 * lib/regex_internal.h: Remove all references to
24987 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
24989 (bitset_not, bitset_merge, bitset_not_merge):
24990 (bitset_mask, re_string_allocate, re_string_construct):
24991 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
24992 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
24993 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
24994 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
24995 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
24996 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
24997 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
24998 (re_acquire_state_context):
24999 Remove unnecessary forward decls.
25000 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
25001 Put __attribute at function definition,
25002 now that the function decl has been removed.
25003 * lib/regex_internal.c (re_string_peek_byte_case):
25004 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
25007 2005-08-25 Stepan Kasal <kasal@ucw.cz>
25009 * m4/regex.m4: Add AC_PREREQ(2.50).
25010 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
25012 2005-08-25 Simon Josefsson <jas@extundo.com>
25014 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
25017 2005-08-25 Simon Josefsson <jas@extundo.com>
25019 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
25020 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
25021 GLIBC specific code.
25023 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
25025 Make regex safe for g++. This fixes one real bug (an "err"
25026 that should have been "*err"). g++ problem reported by
25028 * lib/regex_internal.h (re_calloc): New macro, consistent with
25029 re_malloc etc. All callers of calloc changed to use re_calloc.
25030 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
25031 not int. All callers changed.
25032 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
25033 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
25034 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
25035 (find_recover_state): Change "err" to "*err"; this fixes what
25036 appears to be a real bug.
25037 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
25040 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
25042 * modules/regex (Depends-on): Add malloc, since the code
25043 assumes that !malloc(0) means failure.
25045 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
25047 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
25049 alloca modernization/simplification for regex.
25050 * lib/regex.c: Remove portability cruft for alloca. This no longer
25051 needs to be at the start of the file, and can be moved into
25052 regex_internal.h and simplified.
25053 * lib/regex_internal.h: Include <alloca.h>.
25054 (__libc_use_alloca) [!defined _LIBC]: New macro.
25055 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
25056 now works outside glibc.
25058 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
25060 * config/srclist.txt: Add glibc bugs 1241, 1245.
25062 2005-08-25 Jim Meyering <jim@meyering.net>
25064 * lib/open-safer.c: Include <config.h>.
25065 Otherwise, we'd lose LARGEFILE support in any file using
25068 2005-08-25 Bruno Haible <bruno@clisp.org>
25070 * m4/minmax.m4: Require autoconf 2.52.
25071 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
25072 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
25073 alternatives of translit over the alphabet.
25074 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
25076 2005-08-24 Simon Josefsson <jas@extundo.com>
25078 * tests/test-getpass.c: New file.
25080 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
25082 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
25083 for GNU regex features.
25085 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
25087 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
25088 * lib/regex.h (regerror): Likewise.
25090 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
25091 requires this. (The code never needed it.)
25093 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
25094 All uses of recently-renamed identifiers changed to use the new,
25095 POSIX-compliant names. The code will build and run just fine
25096 without these changes, but it's better to eat our own dog food
25097 and use the standard-conforming names.
25099 * lib/regex.h: Fix a multitude of POSIX name space violations.
25100 These changes have an effect only for programs that define
25101 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
25102 do not change anything for programs compiled in the normal way.
25103 Also, there is no effect on the ABI.
25105 (_REGEX_SOURCE): New macro.
25106 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
25107 defined and _GNU_SOURCE is not; this fixes a name space violation.
25109 Rename the following macros to obey POSIX requirements.
25110 The old names are still visible as macros if _REGEX_SOURCE is defined.
25111 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
25112 RE_BACKSLASH_ESCAPE_IN_LISTS.
25113 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
25114 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
25115 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
25116 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
25117 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
25118 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
25119 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
25120 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
25121 (REG_INTERVALS): renamed from RE_INTERVALS.
25122 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
25123 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
25124 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
25125 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
25126 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
25127 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
25128 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
25129 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
25130 RE_UNMATCHED_RIGHT_PAREN_ORD.
25131 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
25132 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
25133 (REG_DEBUG): renamed from RE_DEBUG.
25134 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
25135 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
25136 unusual, since we can't clash with the POSIX REG_ICASE.
25137 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
25138 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
25139 (REG_NO_SUB): renamed from RE_NO_SUB.
25140 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
25141 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
25142 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
25143 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
25144 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
25145 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
25146 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
25147 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
25148 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
25149 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
25150 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
25151 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
25152 RE_SYNTAX_POSIX_MINIMAL_BASIC.
25153 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
25154 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
25155 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
25156 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
25157 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
25158 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
25159 (REG_FIXED): Renamed from REGS_FIXED.
25160 (REG_NREGS): Renamed from RE_NREGS.
25162 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
25163 of other REG_* macros, since POSIX says the user is allowed to
25164 #undef these macros selectively.
25166 (reg_errcode_t): Update comment stating what other tables need
25169 Rename the following enum values to obey POSIX requirements.
25170 The old names are still visible as macros.
25171 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
25172 is not defined, since GNU is supposed to be a superset of POSIX as
25173 much as possible, and since we want reg_errcode_t to be a signed
25174 type for implementation consistency.
25175 (_REG_NOERROR): Renamed from REG_NOERROR.
25176 (_REG_NOMATCH): Renamed from REG_NOMATCH.
25177 (_REG_BADPAT): Renamed from REG_BADPAT.
25178 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
25179 (_REG_ECTYPE): Renamed from REG_ECTYPE.
25180 (_REG_EESCAPE): Renamed from REG_EESCAPE.
25181 (_REG_ESUBREG): Renamed from REG_ESUBREG.
25182 (_REG_EBRACK): Renamed from REG_EBRACK.
25183 (_REG_EPAREN): Renamed from REG_EPAREN.
25184 (_REG_EBRACE): Renamed from REG_EBRACE.
25185 (_REG_BADBR): Renamed from REG_BADBR.
25186 (_REG_ERANGE): Renamed from REG_ERANGE.
25187 (_REG_ESPACE): Renamed from REG_ESPACE.
25188 (_REG_BADRPT): Renamed from REG_BADRPT.
25189 (_REG_EEND): Renamed from REG_EEND.
25190 (_REG_ESIZE): Renamed from REG_ESIZE.
25191 (_REG_ERPAREN): Renamed from REG_ERPAREN.
25192 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
25193 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
25194 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
25195 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
25197 (_REG_RE_NAME, _REG_RM_NAME): New macros.
25198 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
25199 changed. But support the old name if the new one is not defined
25200 and if _REGEX_SOURCE.
25202 Change the following member names in struct re_pattern_buffer.
25203 The old names are still supported if !_REGEX_SOURCE.
25204 The new names are always supported, regardless of _REGEX_SOURCE.
25205 (re_buffer): Renamed from buffer.
25206 (re_allocated): Renamed from allocated.
25207 (re_used): Renamed from used.
25208 (re_syntax): Renamed from syntax.
25209 (re_fastmap): Renamed from fastmap.
25210 (re_translate): Renamed from translate.
25211 (re_can_be_null): Renamed from can_be_null.
25212 (re_regs_allocated): Renamed from regs_allocated.
25213 (re_fastmap_accurate): Renamed from fastmap_accurate.
25214 (re_no_sub): Renamed from no_sub.
25215 (re_not_bol): Renamed from not_bol.
25216 (re_not_eol): Renamed from not_eol.
25217 (re_newline_anchor): Renamed from newline_anchor.
25219 Change the following member names in struct re_registers.
25220 The old names are still supported if !_REGEX_SOURCE.
25221 The new names are always supported, regardless of _REGEX_SOURCE.
25222 (rm_num_regs): Renamed from num_regs.
25223 (rm_start): Renamed from start.
25224 (rm_end): Renamed from end.
25226 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
25227 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
25228 Prepend __ to parameter names.
25230 Undo yesterday's changes.
25232 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
25234 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
25235 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
25238 2005-08-24 Jim Meyering <jim@meyering.net>
25240 Sync from coreutils.
25241 * m4/fcntl-safer.m4: New file.
25243 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
25244 and object files for this module.
25246 2005-08-24 Jim Meyering <jim@meyering.net>
25248 Sync from coreutils.
25249 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
25251 2005-08-24 Jim Meyering <jim@meyering.net>
25253 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
25254 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
25256 2005-08-24 Jim Meyering <jim@meyering.net>
25258 * modules/fcntl-safer: New module.
25259 * modules/fts (Depends-on): Add fcntl-safer.
25260 * MODULES.html.sh (File descriptor based Input/Output):
25263 2005-08-24 Bruno Haible <bruno@clisp.org>
25265 Support for unit test modules.
25266 * modules/README: Mention tests modules.
25267 * modules/TEMPLATE-TESTS: New file.
25268 * gnulib-tool: New options --extract-tests-module, --with-tests and
25269 --tests-base (unused for the moment).
25270 (testsbase, inctests): New variables.
25271 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
25272 (func_verify_module): Exclude TEMPLATE-TESTS.
25273 (func_verify_nontests_module, func_verify_tests_module): New functions.
25274 (func_get_dependencies): Add implicit dependency for tests modules.
25275 (func_get_tests_module): New function.
25276 (func_modules_transitive_closure): When --with-tests was specified,
25277 include the unit tests as well, unless explicitly avoided.
25278 (func_emit_lib_Makefile_am): Ignore the tests modules here.
25279 (func_emit_tests_Makefile_am): New function.
25280 (func_create_testdir): When --with-tests was specified, emit a
25282 * MODULES.html.sh (Future developments): Update.
25284 2005-08-24 Bruno Haible <bruno@clisp.org>
25286 * modules/tls-tests: New file.
25287 * tests/test-tls.c: New file, from GNU gettext.
25289 2005-08-24 Bruno Haible <bruno@clisp.org>
25291 * modules/lock-tests: New file.
25292 * tests/test-lock.c: New file, from GNU gettext.
25294 2005-08-24 Bruno Haible <bruno@clisp.org>
25296 * lib/lock.h: Add multiple inclusion guard.
25297 * lib/tls.h: Add multiple inclusion guard.
25299 2005-08-24 Bruno Haible <bruno@clisp.org>
25301 * gnulib-tool: Add support for the --aux-dir option to
25302 --create-testdir, --create-megatestdir, --test, --megatest.
25303 (func_create_testdir, func_create_megatestdir): Optionally emit a
25304 AC_CONFIG_AUX_DIR directive.
25305 (create-testdir, create-megatestdir, test, megatest): Provide a
25306 default value for $auxdir.
25308 2005-08-24 Bruno Haible <bruno@clisp.org>
25310 * gnulib-tool (import): Use compound statement instead of subshell
25313 2005-08-24 Bruno Haible <bruno@clisp.org>
25315 * gnulib-tool (import): Change --aux-dir default to "build-aux".
25317 2005-08-24 Bruno Haible <bruno@clisp.org>
25319 * gnulib-tool (func_version): Update.
25321 2005-08-24 Bruno Haible <bruno@clisp.org>
25323 * gnulib-tool (func_import, func_create_testdir,
25324 func_create_megatestdir): Quote all autoconf macro arguments.
25326 2005-08-24 Bruno Haible <bruno@clisp.org>
25328 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
25329 option --force, because --force causes the aclocal.m4 of each
25330 subdirectory to be newer than the corresponding config.h.in.
25332 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
25334 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
25335 All contents moved to gl_REGEX.
25336 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
25337 assume that it does.
25339 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
25341 * lib/regex.h (REG_NOSYS)
25342 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
25343 Define, since POSIX requires it as of 2001.
25345 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
25346 New private symbol, used to keep the enum signed in all cases.
25347 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
25349 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
25351 * lib/regex_internal.c (re_string_skip_chars, register_state):
25353 Remove forward decls; no longer needed now that we use prototypes.
25354 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
25355 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
25356 (clean_state_log_if_needed): Likewise.
25358 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
25360 * config/srclist.txt: Add glibc bugs 1231-1233.
25362 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
25364 Fix problems reported by Sam Steingold in
25365 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
25366 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
25367 assumed that reg_errcode_t is a signed type, which is not
25368 necessarily true if _XOPEN_SOURCE is not defined.
25369 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
25370 since some compilers warn about it otherwise.
25372 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
25374 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
25375 (init_word_char, create_initial_state, duplicate_node_closure):
25376 (fetch_token, peek_token_bracket, build_range_exp):
25377 (build_collating_symbol): Remove forward decls; no longer needed
25378 now that we use prototypes.
25381 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
25382 (re_compile_fastmap_iter, regcomp, regerror, regfree):
25383 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
25384 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
25385 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
25386 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
25387 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
25388 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
25389 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
25390 (build_range_exp, build_collating_symbol, parse_bracket_exp):
25391 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
25392 (build_charclass, build_charclass_op, fetch_number, create_tree):
25393 (create_token_tree, mark_opt_subexp, duplicate_tree):
25394 Use prototypes rather than old-style definitions.
25396 * lib/regex_internal.c:
25397 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
25398 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
25399 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25400 (re_string_reconstruct, re_string_peek_byte_case):
25401 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
25402 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25403 (re_node_set_init_copy, re_node_set_add_intersect):
25404 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25405 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25406 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25407 (re_acquire_state, re_acquire_state_context, register_state):
25408 (create_ci_newstate, create_cd_newstate, free_state):
25410 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25412 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25413 (re_search_internal, prune_impossible_nodes):
25414 (acquire_init_state_context, check_matching, static):
25415 (check_halt_node_context, check_halt_state_context, proceed_next_node):
25416 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25417 (update_regs, sift_states_backward, build_sifted_states):
25418 (clean_state_log_if_needed, merge_state_array):
25419 (update_cur_sifted_state, add_epsilon_src_nodes):
25420 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25421 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25422 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25423 (find_recover_state, check_subexp_matching_top, transit_state_mb):
25424 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25425 (check_arrival, check_arrival_add_next_nodes):
25426 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25427 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25428 (check_node_accept_bytes, check_node_accept, extend_buffers):
25429 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25430 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25434 * lib/regex_internal.h:
25435 (re_string_allocate, re_string_construct, re_string_reconstruct):
25436 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25437 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25438 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25439 (re_string_context_at, re_string_peek_byte_case):
25440 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25441 is defined, since we now use prototypes always.
25443 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
25444 C89 or better. All uses removed.
25446 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
25448 * config/srclist.txt: Add glibc bugs 1220-1227.
25450 2005-08-20 Jim Meyering <jim@meyering.net>
25452 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25453 of unused local, dfa.
25455 2005-08-20 Bruno Haible <bruno@clisp.org>
25457 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25459 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
25461 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25462 (re_node_set_insert_last, re_dfa_add_node):
25463 Rename local variables to avoid GCC shadowing warnings.
25465 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
25467 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25468 [defined lint]: Suppress bogus uninitialized-variable warnings.
25470 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25471 and let the caller return REG_ESPACE if out of space. This
25472 removes an uninitialied-variable warning with GCC 4.0.1, and also
25473 avoids taking the address of a local variable. All callers
25476 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
25478 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25479 $LIBCSRC/posix/regexec.c.
25480 Add glibc bug 1217 for regcomp.c.
25482 2005-08-19 Jim Meyering <jim@meyering.net>
25484 * lib/regexec.c (proceed_next_node): Redo local variables to
25485 avoid GCC shadowing warnings.
25487 2005-08-18 Bruno Haible <bruno@clisp.org>
25489 * lib/strstr.c (strstr): Fix return value in multibyte case.
25490 * lib/strcasestr.c (strcasestr): Likewise.
25492 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
25494 * lib/regex.h: Remove useless space-before-tab. From coreutils.
25496 2005-08-17 Jim Meyering <jim@meyering.net>
25498 Make the %s format (seconds since the epoch) work for a negative
25499 number and when used with a zero-padded field width, e.g. %015s.
25501 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25502 label so that it precedes the code to set `digits'. Otherwise,
25503 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
25504 print `00-22'. Now, it prints `-0022', as it should.
25506 2005-08-17 Bruno Haible <bruno@clisp.org>
25508 * modules/strstr (Files): Add m4/mbrtowc.m4.
25509 (Depends-on): Add mbuiter.
25511 2005-08-17 Bruno Haible <bruno@clisp.org>
25513 * modules/strcasestr: New file.
25514 * MODULES.html.sh (String handling, based on ANSI C 89): Add
25517 2005-08-17 Bruno Haible <bruno@clisp.org>
25519 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25521 2005-08-17 Bruno Haible <bruno@clisp.org>
25523 * modules/mbuiter: New file.
25524 * MODULES.html.sh (Extended multibyte and wide character utilities):
25527 2005-08-17 Bruno Haible <bruno@clisp.org>
25529 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25530 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25532 2005-08-17 Bruno Haible <bruno@clisp.org>
25534 * m4/strcasestr.m4: New file.
25536 2005-08-17 Bruno Haible <bruno@clisp.org>
25538 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25539 * lib/strstr.c: Completely rewritten, with multibyte locale support.
25541 2005-08-17 Bruno Haible <bruno@clisp.org>
25543 * lib/strcasestr.h: New file.
25544 * lib/strcasestr.c: New file.
25546 2005-08-17 Bruno Haible <bruno@clisp.org>
25548 * lib/strcasecmp.c: Use mbuiter.h.
25550 2005-08-17 Bruno Haible <bruno@clisp.org>
25552 * lib/mbuiter.h: New file.
25554 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
25556 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25557 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
25558 and gl_GETOPT are both invoked via different paths (as happens
25559 with GNU tar CVS because it uses both argp and getopt), the former
25562 2005-08-16 Bruno Haible <bruno@clisp.org>
25564 * modules/tls: New file.
25565 * MODULES.html.sh (Multithreading): Add tls.
25567 2005-08-16 Bruno Haible <bruno@clisp.org>
25569 * modules/strnlen1: New file.
25570 * MODULES.html.sh (String handling): Add strnlen1.
25572 2005-08-16 Bruno Haible <bruno@clisp.org>
25574 * modules/strcase (Files): Add m4/mbrtowc.m4.
25575 (Depends-on): Add strnlen1, mbchar.
25577 2005-08-16 Bruno Haible <bruno@clisp.org>
25579 * modules/mbiter: New file.
25580 * MODULES.html.sh (Extended multibyte and wide character utilities):
25583 2005-08-16 Bruno Haible <bruno@clisp.org>
25585 * modules/mbfile: New file.
25586 * MODULES.html.sh (Extended multibyte and wide character utilities):
25589 2005-08-16 Bruno Haible <bruno@clisp.org>
25591 * modules/mbchar: New file.
25592 * MODULES.html.sh (Extended multibyte and wide character utilities):
25595 2005-08-16 Bruno Haible <bruno@clisp.org>
25597 * m4/tls.m4: New file, from GNU gettext.
25599 2005-08-16 Bruno Haible <bruno@clisp.org>
25601 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
25603 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
25605 2005-08-16 Bruno Haible <bruno@clisp.org>
25607 * m4/mbiter.m4: New file.
25609 2005-08-16 Bruno Haible <bruno@clisp.org>
25611 * m4/mbfile.m4: New file.
25613 2005-08-16 Bruno Haible <bruno@clisp.org>
25615 * m4/mbchar.m4: New file.
25617 2005-08-16 Bruno Haible <bruno@clisp.org>
25619 * lib/tls.h: New file, from GNU gettext.
25620 * lib/tls.c: New file, from GNU gettext.
25622 2005-08-16 Bruno Haible <bruno@clisp.org>
25624 * lib/strnlen1.h: New file.
25625 * lib/strnlen1.c: New file.
25627 2005-08-16 Bruno Haible <bruno@clisp.org>
25629 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
25630 (mbi_init): Update.
25631 (mbi_avail, mbi_advance): Let the iteration end before the terminating
25632 NUL byte, not after it.
25634 2005-08-16 Bruno Haible <bruno@clisp.org>
25636 * lib/strcase.h (strcasecmp): Add note in comments.
25637 * lib/strncasecmp.c: Use code from strcasecmp.c.
25638 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
25639 (strcasecmp): Work correctly in multibyte locales.
25641 2005-08-16 Bruno Haible <bruno@clisp.org>
25643 * lib/mbiter.h: New file.
25645 2005-08-16 Bruno Haible <bruno@clisp.org>
25647 * lib/mbfile.h: New file.
25649 2005-08-16 Bruno Haible <bruno@clisp.org>
25651 * lib/mbchar.h: New file.
25652 * lib/mbchar.c: New file.
25654 2005-08-16 Bruno Haible <bruno@clisp.org>
25656 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
25657 the valid ones. Makes the comparison operations transitive:
25658 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
25659 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
25661 2005-08-15 Simon Josefsson <jas@extundo.com>
25663 * modules/ssize_t (License): Change to 'unlimited'.
25665 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
25667 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
25669 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
25670 Add comments for each pending glibc patch.
25672 2005-08-15 Bruno Haible <bruno@clisp.org>
25674 * lib/regex.h (__restrict_arr): Don't define to __restrict if
25675 __cplusplus is defined.
25677 2005-08-14 Jim Meyering <jim@meyering.net>
25679 Sync from coreutils.
25681 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
25682 Use the hash-table-based cycle-detection code not just when
25683 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
25684 Reported by James Youngman in
25685 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
25686 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
25687 FTS_TIGHT_CYCLE_CHECK.
25688 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
25689 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
25691 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
25692 * lib/fts.c (fd_safer): Remove decl.
25693 Include fcntl--.h rather than unistd-safer.h
25694 (fts_safe_changedir): Don't call fd_safer; no longer needed
25695 now that we include fcntl--.h.
25697 2005-08-12 Simon Josefsson <jas@extundo.com>
25699 * modules/getndelim2: Use ssize_t module.
25700 * modules/getnline: Likewise.
25701 * modules/safe-read: Likewise.
25702 * modules/xreadlink: Likewise.
25704 * modules/ssize_t: New file.
25706 2005-08-12 Simon Josefsson <jas@extundo.com>
25708 * m4/readline.m4: Look for termcap, curses or ncurses if required.
25710 2005-08-12 Simon Josefsson <jas@extundo.com>
25712 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25715 2005-08-12 Simon Josefsson <jas@extundo.com>
25717 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
25718 readline, getdelim and check_version.
25719 (Support for systems lacking ISO C 99: Sizes of integer types):
25722 2005-08-12 Bruno Haible <bruno@clisp.org>
25724 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
25726 2005-08-11 Simon Josefsson <jas@extundo.com>
25728 * modules/readline: New file.
25730 * modules/strnlen (Files): Add strnlen.h.
25732 2005-08-11 Simon Josefsson <jas@extundo.com>
25734 * m4/readline.m4: New file.
25736 2005-08-11 Simon Josefsson <jas@extundo.com>
25738 * lib/readline.h, readline.c: New file.
25740 2005-08-11 Simon Josefsson <jas@extundo.com>
25742 * doc/gnulib.texi (Initial import, Finishing touches): Mention
25745 2005-08-11 Bruno Haible <bruno@clisp.org>
25747 * lib/strnlen.h (strnlen): Change parameter name to match comment.
25749 2005-08-10 Stepan Kasal <kasal@ucw.cz>
25751 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
25753 2005-08-10 Simon Josefsson <jas@extundo.com>
25755 * tests/test-iconvme.c: New file.
25757 2005-08-10 Simon Josefsson <jas@extundo.com>
25759 * m4/strnlen.m4: New file.
25761 * m4/strndup.m4: Don't check for strnlen declaration, done in
25764 2005-08-10 Simon Josefsson <jas@extundo.com>
25766 * lib/strndup.c: Use strnlen.h.
25768 * lib/strnlen.h: New file.
25770 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25774 2005-08-02 Simon Josefsson <jas@extundo.com>
25776 * modules/readline: New file.
25778 2005-08-02 Simon Josefsson <jas@extundo.com>
25780 * modules/getdelim: New file.
25782 * modules/getline: Rewrite, don't use getndelim2.
25784 2005-08-02 Simon Josefsson <jas@extundo.com>
25786 * m4/getline.m4: Separate out getdelim stuff into separate module.
25788 * m4/getdelim.m4: New file.
25790 2005-08-02 Simon Josefsson <jas@extundo.com>
25792 * lib/getline.h, getline.c: Rewrite.
25794 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
25796 2005-07-31 Bruno Haible <bruno@clisp.org>
25798 * lib/lock.h (gl_lock_initializer): New macro.
25799 (gl_lock_define_initialized): Use it.
25800 (gl_rwlock_initializer): New macro.
25801 (gl_rwlock_define_initialized): Use it.
25802 (gl_recursive_lock_initializer): New macro.
25803 (gl_recursive_lock_define_initialized): Use it.
25805 2005-07-30 Karl Berry <karl@gnu.org>
25807 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
25808 Report from Ben Pfaff, regarding getopt.
25810 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
25812 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
25814 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
25815 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
25816 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
25817 (gl_GETOPT): Use the new macros. Most of the implementation
25818 is moved to the new macros. This is for programs like Emacs
25819 that don't want all the functionality of gl_GETOPT.
25821 2005-07-26 Bruno Haible <bruno@clisp.org>
25823 * m4/lock.m4: Update from GNU gettext.
25825 2005-07-26 Bruno Haible <bruno@clisp.org>
25827 * lib/lock.h: Update from GNU gettext.
25828 * lib/lock.c: Update from GNU gettext.
25830 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
25832 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
25833 obsolescent AC_TRY_RUN. Include the default includes files, for
25836 2005-07-24 Bruno Haible <bruno@clisp.org>
25838 * modules/visibility: New file.
25839 * MODULES.html.sh (Misc): Add visibility.
25841 2005-07-24 Bruno Haible <bruno@clisp.org>
25843 * m4/visibility.m4: New file.
25845 2005-07-24 Bruno Haible <bruno@clisp.org>
25847 * doc/visibility.texi: New file.
25849 2005-07-22 Bruno Haible <bruno@clisp.org>
25851 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
25852 $(ALLOCA_H), redundant through BUILT_SOURCES.
25853 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
25854 redundant through BUILT_SOURCES.
25855 * modules/byteswap (Makefile.am): Remove explicit dependency on
25856 $(BYTESWAP_H), redundant through BUILT_SOURCES.
25857 * modules/fnmatch (Makefile.am): Remove explicit dependency on
25858 $(FNMATCH_H), redundant through BUILT_SOURCES.
25859 * modules/getopt (Makefile.am): Remove explicit dependency on
25860 $(GETOPT_H), redundant through BUILT_SOURCES.
25861 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
25862 redundant through BUILT_SOURCES.
25863 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
25864 redundant through BUILT_SOURCES.
25865 * modules/stdbool (Makefile.am): Remove explicit dependency on
25866 $(STDBOOL_H), redundant through BUILT_SOURCES.
25867 * modules/stdint (Makefile.am): Remove explicit dependency on
25868 $(STDINT_H), redundant through BUILT_SOURCES.
25869 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
25870 Remove explicit dependency on $(SYSEXITS_H).
25871 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
25873 2005-07-18 Simon Josefsson <jas@extundo.com>
25875 * lib/check-version.c (check_version): Accept identical versions too.
25877 2005-07-18 Bruno Haible <bruno@clisp.org>
25879 * modules/lock: New file.
25880 * MODULES.html.sh (Multithreading): New section.
25882 2005-07-18 Bruno Haible <bruno@clisp.org>
25884 * m4/lock.m4: New file, from GNU gettext.
25886 2005-07-18 Bruno Haible <bruno@clisp.org>
25888 * lib/lock.h: New file, from GNU gettext.
25889 * lib/lock.c: New file, from GNU gettext.
25891 2005-07-18 Bruno Haible <bruno@clisp.org>
25893 * lib/lock.h (gl_once_t): New type.
25894 (gl_once_define, gl_once): New macros.
25895 * lib/lock.c (fresh_once): New variable.
25896 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
25899 2005-07-16 Simon Josefsson <jas@extundo.com>
25901 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
25902 workaround, suggested by Bruno.
25904 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
25906 * modules/xalloc (Depends-on): Add xalloc-die.
25907 * modules/xvasprintf (Depends-on): Add xalloc-die.
25909 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
25911 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
25912 with a minor change.
25914 2005-07-15 Bruno Haible <bruno@clisp.org>
25916 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
25917 When using lib/poll.c, define poll as rpl_poll.
25919 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
25921 * modules/argp (Depends-on): Remove unlocked-io.
25923 2005-07-14 Derek Price <derek@ximbiot.com>
25925 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
25926 for glob symlink bug.
25928 2005-07-14 Bruno Haible <bruno@clisp.org>
25930 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
25931 Instead, test for *_unlocked function declarations directly.
25933 2005-07-11 Simon Josefsson <jas@extundo.com>
25935 * modules/size_max: New file.
25937 * modules/xsize: Depend on size_max module for size_max.m4.
25939 2005-07-11 Simon Josefsson <jas@extundo.com>
25941 * lib/size_max.h: New file.
25943 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
25945 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
25946 copyright symbol and the year.
25947 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
25948 (version_etc_va): Use parameterized copyright notice.
25949 Reword to conform to the current GNU coding standards.
25951 2005-07-11 Karl Berry <karl@gnu.org>
25953 * doc/gnulib.texi (Quoting): new node.
25954 (Initial import): more info, from Patrice.
25956 2005-07-11 Bruno Haible <bruno@clisp.org>
25958 * gnulib-tool (func_usage): Document option --avoid.
25959 (Command line options): Handle --avoid.
25960 (func_acceptable): New function.
25961 (func_modules_transitive_closure): Use it.
25963 2005-07-11 Bruno Haible <bruno@clisp.org>
25965 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
25966 Reported by Jim Meyering.
25968 2005-07-10 Bruno Haible <bruno@clisp.org>
25970 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
25971 Needed when size_t is smaller than 'unsigned int'.
25972 Reported by Paul Eggert.
25974 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
25976 * modules/argp (Depends-on): Add unlocked-io
25978 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
25980 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
25983 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
25985 * config/srclist.txt: Comment out regcomp.c, since we have a porting
25988 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
25989 and Paul Eggert <eggert@cs.ucla.edu>
25991 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
25992 in wint_t, not wchar_t. Remove now-unnecessary cast.
25994 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
25996 * modules/regex (Files): Add lib/regex_internal.c,
25997 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
25998 (Depends-on): Add extensions.
25999 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
26001 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
26003 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
26005 * m4/same.m4 (gl_SAME): Likewise.
26006 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
26008 * m4/regex.m4: Adjust to new libc regex implementation.
26009 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
26010 all the .c and .h parts of (the new) regex.
26011 Quote the m4 stuff better.
26012 Check for RE_ICASE bug of old gnulib.
26013 Check for REG_STARTEND of recent libc.
26014 Rename local variables from jm_* to gl_*.
26015 Quote operand of "test -f".
26016 Say "recent enough" version of libc, not "version 2".
26017 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
26018 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
26019 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
26020 Remove check for btowc, isascii.
26021 Require AM_LANGINFO_CODESET.
26023 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
26025 * lib/regex.c, regex.h: Sync from libc.
26026 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
26028 New files, synced from libc, except that regex_internal.h
26029 currently has a small porting fix.
26031 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
26033 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
26034 regex_internal.c, regexec.c.
26035 Add regex_internal.h too, but as a comment, since the libc version
26036 is currently broken in gnulib mode.
26038 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
26040 Support programs like Emacs that use gnulib but not gettext.
26041 * MODULES.html.sh (Internationalization functions): Add gettext-h.
26042 * modules/gettext-h: New file.
26043 * modules/gettext (Files): Remove lib/gettext.h.
26044 (Depends-on): Add gettext-h.
26045 (Makefile.am): Remove lib_SOURCES.
26046 * modules/argmatch, modules/c-stack, modules/closeout:
26047 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
26048 * modules/execute, modules/file-type, modules/getaddrinfo:
26049 * modules/getopt, modules/human, modules/javacomp:
26050 * modules/javaexec, modules/mkdir-p, modules/obstack:
26051 * modules/openat, modules/pagealign_alloc, modules/pipe:
26052 * modules/quotearg, modules/regex, modules/rpmatch:
26053 * modules/unicodeio, modules/userspec, modules/version-etc:
26054 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
26056 Depend on gettext-h, not gettext.
26058 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
26060 * gnulib-tool (func_import): Add support for 'public domain' license.
26061 * modules/alloca, modules/atexit, modules/memmove:
26062 Now public domain, not GPL.
26063 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
26064 * modules/realloc, modules/strerror, modules/strtod:
26067 2005-07-05 Bruno Haible <bruno@clisp.org>
26069 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
26070 autoconf CVS. Needed for mingw.
26072 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
26074 Remove the dependency of the strftime module on the tzset module.
26075 * modules/strftime (Depends-on): Remove dependency on tzset.
26077 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
26079 Remove the dependency of the strftime module on the tzset module.
26080 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
26081 gl_FUNC_TZSET_CLOBBER.
26083 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
26085 Remove the dependency of the strftime module on the tzset module.
26086 * lib/strftime.c (my_strftime)
26087 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
26088 Copy the input structure, to work around some of the bug with
26089 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
26090 Solaris releases, you should also use the tzset module, but we won't
26091 require it as a dependency any more since we don't want LGPLed code
26092 to depend on GPLed code.
26094 2005-07-02 Jim Meyering <jim@meyering.net>
26096 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
26097 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
26098 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
26099 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
26101 2005-07-02 Jim Meyering <jim@meyering.net>
26103 * lib/backupfile.c (backup_args): Change a `0' to NULL.
26105 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
26107 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
26108 declares only 'struct timespec;' (!).
26110 2005-07-01 Jim Meyering <jim@meyering.net>
26112 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
26113 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
26114 * lib/save-cwd.c, tempname.c:
26115 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26116 and don't include <sys/file.h>).
26118 2005-06-29 Jim Meyering <jim@meyering.net>
26120 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
26121 type name. Use the variable name instead.
26122 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26125 2005-06-28 Simon Josefsson <jas@extundo.com>
26127 * modules/check-version (Files): Add check-version.m4.
26129 2005-06-28 Simon Josefsson <jas@extundo.com>
26131 * m4/check-version.m4: New file, suggested by Jim Meyering
26132 <jim@meyering.net>.
26134 2005-06-28 Simon Josefsson <jas@extundo.com>
26136 * lib/check-version.h, lib/check-version.c: New files.
26138 2005-06-28 Simon Josefsson <jas@extundo.com>
26140 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
26141 collision with global variable. Better indentation. Don't
26142 increment buffer pointer beyond buffer end. Based on comments
26143 from Paul Eggert <eggert@cs.ucla.edu>.
26145 * lib/base64.h: Indent.
26147 2005-06-28 Simon Josefsson <jas@extundo.com>
26149 * doc/gnulib.texi (Library version handling): New section.
26151 2005-06-28 Jim Meyering <jim@meyering.net>
26153 * check-module (find_included_lib_files): Hard-code another
26154 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
26155 but modules/fts-lgpl (correctly) does not list those files.
26157 * modules/canonicalize (Files): Add lib/pathmax.h.
26159 2005-06-25 Simon Josefsson <jas@extundo.com>
26161 * modules/check-version: New file.
26163 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
26165 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
26166 initializer of struct addrinfo, as an indication that we don't
26167 care how many members the structure has.
26169 2005-06-24 Derek Price <derek@ximbiot.com>
26170 and Bruno Haible <bruno@clisp.org>
26172 Remove stat module & update lstat.
26173 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
26174 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26175 * m4/stat.m4: Remove this file.
26177 2005-06-24 Derek Price <derek@ximbiot.com>
26178 and Bruno Haible <bruno@clisp.org>
26180 Remove stat module & update lstat.
26181 * lib/stat.c: Remove this file...
26182 (slash_aware_lstat): ...moving this content and its support...
26183 * lib/lstat.c (rpl_lstat): ...into here.
26184 * lib/lstat.h: New file.
26186 2005-06-24 Derek Price <derek@ximbiot.com>
26187 and Bruno Haible <bruno@clisp.org>
26189 Remove stat module & update lstat.
26190 * config/srclist.txt (libc sources): Remove stat.
26192 2005-06-24 Derek Price <derek@ximbiot.com>
26193 and Bruno Haible <bruno@clisp.org>
26195 Remove stat module & update lstat.
26196 * MODULES.html.sh (stat): Remove.
26197 * MODULES.html: Regenerated.
26198 * modules/lstat (Description): Correct function name.
26199 (Files): Add "lstat.h".
26200 (Depends-on): Remove stat, add xalloc, stat-macros.
26201 * modules/stat: Remove this file.
26202 (Include): Add "lstat.h", remove <sys/stat.h>.
26204 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
26206 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
26207 (ranged_convert): Don't save conversion in a temporary struct.
26208 This causes a warning with GCC 4.0.0, and anyway in the typical
26209 case it's not worth the extra 100 bytes or so of code.
26210 (ranged_convert, __mktime_internal): When calling a function via a
26211 pointer P, use P () rather than (*P) (), as we now assume C89 or
26214 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
26216 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
26217 "who -r" failed to give output. Problem reported by Tim Waugh.
26219 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
26220 (xcalloc): Use it to avoid needless tests.
26221 Problem reported by Jim Meyering.
26223 2005-06-20 Derek Price <derek@ximbiot.com>
26225 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
26226 unnecessary for Autoconfs > 2.59c.
26228 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
26230 * lib/argp.h (__option_is_short): Check upper limit of
26231 __key. Isprint() requires its argument to have the value
26232 of an unsigned char or EOF.
26234 2005-06-16 Jim Meyering <jim@meyering.net>
26236 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
26237 when either N or S is zero.
26239 2005-06-16 Derek Price <derek@ximbiot.com>
26241 * m4/bison.m4: Declare YACC & YFLAGS precious.
26243 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
26245 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
26246 multibyte string or pattern, fall back on unibyte matching.
26247 Problem reported by James Youngman.
26249 2005-06-08 Bruno Haible <bruno@clisp.org>
26251 * modules/csharpcomp: New file.
26252 * MODULES.html.sh (C#): Add csharpcomp.
26254 2005-06-08 Bruno Haible <bruno@clisp.org>
26256 * m4/csharpcomp.m4: New file, from GNU gettext.
26258 2005-06-08 Bruno Haible <bruno@clisp.org>
26260 * lib/csharpcomp.h: New file, from GNU gettext.
26261 * lib/csharpcomp.c: New file, from GNU gettext.
26262 * lib/csharpcomp.sh.in: New file, from GNU gettext.
26264 2005-06-08 Bruno Haible <bruno@clisp.org>
26266 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
26269 2005-06-07 Derek Price <derek@ximbiot.com>
26272 * lib/glob_.h: Indent nested #ifdef.
26274 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
26276 Sync from coreutils.
26277 Use "file name" when talking about file names, instead of "filename"
26278 or "path", as per the GNU coding standards.
26279 * lib/mkdir-p.c: Renamed from makepath.c.
26280 (make_dir_parents): Renamed from make_path. All callers changed.
26281 * lib/mkdir-p.h: Likewise. All includers changed.
26282 * lib/filenamecat.c: Renamed from path-concat.c.
26283 (file_name_concat): Renamed from path_concat. All callers changed.
26284 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
26285 * lib/filenamecat.h: Likewise. All includers changed.
26286 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
26287 in comments or local variable names.
26288 * lib/basename.c: Likewise.
26289 * lib/canonicalize.c, canonicalize.h: Likewise.
26290 * lib/dirname.c, dirname.h: Likewise.
26291 * lib/euidaccess.c: Likewise.
26292 * lib/exclude.c: Likewise
26293 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
26294 * lib/fsusage.c, fsuage.h: Likewise.
26295 * lib/fts.c, fts_.h: Likewise.
26296 * lib/getcwd.c: Likewise.
26297 * lib/getloadavg.c: Likewise.
26298 * lib/mkstemp.c: Likewise.
26299 * lib/mountlist.c, mountlist.h: Likewise.
26300 * lib/openat.c, openat.h: Likewise.
26301 * lib/readlink-stub.c: Likewise.
26302 * lib/readutmp.c, readutmp.h: Likewise.
26303 * lib/rename.c: Likewise.
26304 * lib/rmdir.c: Likewise.
26305 * lib/same.c: Likewise.
26306 * lib/savedir.c: Likewise.
26307 * lib/stripslash.c: Likewise.
26308 * lib/tempname.c: Likewise.
26309 * lib/xreadlink.c: Likewise.
26310 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
26312 * lib/exclude.h: Likewise.
26314 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
26315 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26316 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
26317 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26318 * lib/pathmax.h: Include <limits.h> unconditionally, since other
26319 files have been getting away with it for years (MORE/BSD 4.3
26321 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
26322 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26324 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
26325 Define to 256, not 255, as per modern POSIX.
26327 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
26329 Sync from coreutils.
26330 Use "file name" when talking about file names, instead of "filename"
26331 or "path", as per the GNU coding standards.
26332 * MODULES.html.sh: mkdir-p renamed from makepath.
26333 filenamecat renamed from path-concat.
26334 * modules/filenamecat: Renamed from modules/path-concat.
26335 (Files): filenamecat.h and filenamecat.c renamed from
26336 path-concat.h and path-concat.c.
26337 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
26338 (Include): filenamecat.h, not path-concat.h.
26339 * modules/mkdir-p: Renamed from modules/makepath.
26340 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
26342 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
26343 (Include): mkdir-p.h, not makepath.h.
26345 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
26347 Sync from coreutils.
26348 * m4/mkdir-p.m4: Renamed from makepath.m4.
26349 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
26350 Rename files from makepath.c to mkdir-p.c, and from
26351 makepath.h to mkdir-p.h.
26352 * m4/filenamecat.m4: Renamed from path-concat.m4.
26353 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
26354 Rename files from path-concat.c to filenamecat.c,
26355 and from path-concat.h to filenamecat.h.
26356 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
26357 "file name" in local variables or comments.
26358 * m4/rename.m4: Likewise.
26360 2005-06-01 Bruno Haible <bruno@clisp.org>
26362 * modules/csharpexec: New file.
26363 * MODULES.html.sh (C#): New section.
26365 2005-06-01 Bruno Haible <bruno@clisp.org>
26367 * m4/csharp.m4: New file, from GNU gettext.
26368 * m4/csharpexec.m4: New file, from GNU gettext.
26370 2005-06-01 Bruno Haible <bruno@clisp.org>
26372 * lib/csharpexec.h: New file, from GNU gettext.
26373 * lib/csharpexec.c: New file, from GNU gettext.
26374 * lib/csharpexec.sh.in: New file, from GNU gettext.
26376 2005-05-31 Derek Price <derek@ximbiot.com>
26377 Paul Eggert <eggert@cs.ucla.edu>
26380 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26382 2005-05-31 Derek Price <derek@ximbiot.com>
26383 Paul Eggert <eggert@cs.ucla.edu>
26386 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26388 2005-05-29 Derek Price <derek@ximbiot.com>
26390 * config/srclist.txt (glob_.h, glob.c): Add these files.
26392 2005-05-29 Derek Price <derek@ximbiot.com>
26394 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
26395 * modules/glob: New file.
26396 * modules/getlogin_r: Add link to POSIX spec in description.
26398 2005-05-29 Derek Price <derek@ximbiot.com>
26399 Paul Eggert <eggert@cs.ucla.edu>
26401 * m4/glob.m4: New file.
26403 2005-05-29 Derek Price <derek@ximbiot.com>
26404 Paul Eggert <eggert@cs.ucla.edu>
26406 * lib/glob_.h, lib/glob.c: New files.
26408 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
26410 * modules/fts (Files): Remove m4/inttypes-pri.m4.
26411 * modules/fts-lgpl (Depends-on): Remove gettext.
26413 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
26415 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26416 and don't require gt_INTTYPES_PRI.
26418 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
26420 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26422 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26423 the configuration hassle isn't worth it.
26424 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26425 (LONGEST_MODIFIER, PRIuMAX): Remove.
26427 2005-05-27 Bruno Haible <bruno@clisp.org>
26429 * lib/getlogin_r.h: Remove second include of <stddef.h>.
26431 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
26433 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26434 _POSIX_PTHREAD_SEMANTICS for Solaris.
26436 2005-05-25 Derek Price <derek@ximbiot.com>
26438 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26440 2005-05-25 Derek Price <derek@ximbiot.com>
26441 Paul Eggert <eggert@cs.ucla.edu>
26443 * modules/getlogin_r, m4/getlogin_r.m4: New files.
26444 * lib/getlogin_r.c, getlogin_r.h: New files.
26446 2005-05-25 Bruno Haible <bruno@clisp.org>
26447 Derek Price <derek@ximbiot.com>
26449 * lib/getlogin_r.h: Simplify API documentation.
26451 2005-05-23 Derek Price <derek@ximbiot.com>
26453 * modules/minmax (Files): Add m4/minmax.m4.
26454 (configure.ac): Add gl_MINMAX.
26456 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
26458 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26459 so that unistd-safer.h (GPL'ed code) need not be included.
26461 2005-05-22 Bruno Haible <bruno@clisp.org>
26463 * m4/minmax.m4: New file.
26464 Based on a patch by Derek Price <derek@ximbiot.com>.
26466 2005-05-22 Bruno Haible <bruno@clisp.org>
26468 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26469 (INT64_MIN): Fix definition.
26470 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26472 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26473 NEED_SIGNED_INT_TYPES.
26475 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26476 HAVE_SYSTEM_INTTYPES.
26478 2005-05-22 Bruno Haible <bruno@clisp.org>
26480 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26481 Also include <sys/param.h> if it defines MIN, MAX.
26482 Based on a patch by Derek Price <derek@ximbiot.com>.
26484 2005-05-21 Jim Meyering <jim@meyering.net>
26486 * modules/fts (Files): Add m4/inttypes-pri.m4.
26487 (Depends-on): Add lstat and remove gettext. Alphabetize.
26489 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
26492 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26493 (setup_dir, free_dir): New functions.
26494 (enter_dir, leave_dir): Define trivial
26495 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
26496 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
26497 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26498 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26499 Move to fts-cycle.c.
26500 (fts_open): Use setup_dir.
26501 (fts_close): Use free_dir.
26502 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26503 This adds a label and some gotos, but the alternatives were messier.
26504 Check for memory allocation failure when entering a dir.
26505 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26506 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26507 (FTS): New member fts_cycle, that is a union that contains the
26508 old active_dir_ht and cycle_state. All uses changed to mention
26509 fts_cycle.ht and fts_cycle.state.
26510 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26511 fts.c, with the following changes:
26512 (setup_dir, free_dir): New functions.
26513 (enter_dir): Now returns bool. Return true if successful, false
26514 if memory exhausted. All callers changed.
26515 Do not bother partly cleaning up on
26516 memory allocation failure; that is free_dir's job.
26517 However, free ad if hash_insert fails, to avoid memory leak.
26518 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26519 fts->fts_options to see which union member to use.
26521 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
26523 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26524 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26526 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
26528 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26530 2005-05-20 Jim Meyering <jim@meyering.net>
26532 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26533 Now a macro, to pacify GCC.
26535 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
26537 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26540 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
26542 * lib/chown.c (rpl_chown): Return -1 on failure.
26544 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
26546 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26547 Don't check for stddef.h.
26548 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26549 don't use its results.
26550 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26551 since we include them unconditionally. Don't require
26552 AM_STDBOOL_H, since stdbool is a prerequisite.
26553 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26554 since we assume C89 or better.
26555 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26556 as we don't use their results.
26557 Don't check for fchdir, memmove, memset, strrchr, as we use
26558 them unconditionally.
26559 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26560 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26562 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
26564 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26565 Include <stddef.h> unconditionally, since we assume C89 now.
26566 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26567 * lib/fts.c: Include fts_.h first, to check interface.
26568 Do not include intprops.h; no longer needed.
26569 Include cycle-check.h and hash.h, since fts_.h no longer does.
26570 Remove unnecessary casts of closedir to void.
26571 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26572 decide whether to decrement nlinks.
26573 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26574 (FTS): Use struct hash_table * instead of Hash_table, so that
26575 we no longer need to include hash.h here.
26577 2005-05-18 Jim Meyering <jim@meyering.net>
26579 * modules/dirfd (License): Change to LGPL. Most of the code
26580 is already in the public domain.
26582 2005-05-18 Jim Meyering <jim@meyering.net>
26584 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
26585 Reported by Yoann Vandoorselaere.
26587 2005-05-17 Jim Meyering <jim@meyering.net>
26589 * m4/fts.m4: New file, from coreutils.
26591 2005-05-17 Jim Meyering <jim@meyering.net>
26593 * lib/fts.c, lib/fts_.h: New files, from coreutils.
26595 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
26597 Sync from coreutils.
26598 * m4/unlinkdir.m4: New file.
26600 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
26602 Sync from coreutils.
26603 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
26604 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
26605 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
26606 White space changes only.
26607 * lib/makepath.c (make_path): Port to hosts where leading "//" is
26609 * lib/yesno.c: Include getline.h, not ctype.h.
26610 (yesno): Don't remove leading white space; POSIX doesn't allow it.
26611 Use getline to remove arbitrary restriction on response length.
26613 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
26615 * config/srclist-update: Spell out "Street" in FSF postal
26616 mail address; this is the style the FSF seems to prefer.
26618 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
26619 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
26620 this updates FSF postal mail address.
26622 Sync from coreutils.
26623 * modules/unlinkdir: New file.
26624 * modules/yesno (Depends-on): Add getline.
26625 * MODULES.html.sh (File system functions): Add unlinkdir.
26627 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
26629 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
26631 Change the initial comment to refer to GPL, not LGPL.
26632 gnulib-tool will change it to LGPL as needed.
26634 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
26635 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
26636 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
26637 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
26638 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
26639 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
26640 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
26641 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
26642 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
26643 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
26644 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
26645 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
26646 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
26647 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
26648 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
26649 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
26650 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
26651 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
26652 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
26653 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
26654 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
26655 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
26656 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
26657 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
26658 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
26659 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
26660 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
26661 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
26662 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
26663 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
26664 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
26665 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
26666 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
26667 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
26668 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
26669 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
26670 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
26671 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
26672 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
26673 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
26674 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
26675 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
26676 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
26677 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
26678 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
26679 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
26680 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
26681 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
26682 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
26683 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
26684 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
26685 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
26686 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
26687 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
26688 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
26689 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
26690 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
26691 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
26692 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
26693 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
26694 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
26695 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
26696 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
26697 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
26698 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
26699 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
26700 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
26701 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
26702 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
26703 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
26704 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
26705 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
26706 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
26707 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
26708 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
26709 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
26710 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
26711 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
26712 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
26713 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
26714 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
26715 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
26716 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
26717 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
26718 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
26719 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
26720 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
26721 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
26722 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
26723 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
26724 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
26725 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
26726 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
26727 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
26728 lib/yesno.c, lib/yesno.h:
26729 Update FSF postal mail address.
26731 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
26733 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
26734 tests/test-memmem.c, tests/test-stpncpy.c:
26735 Update FSF postal mail address.
26737 2005-05-13 Bruno Haible <bruno@clisp.org>
26739 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
26740 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
26741 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
26742 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
26743 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
26744 Add support for 64-bit integers in the MSVC compiler.
26746 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
26748 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
26750 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
26752 * gnulib-tool (func_import): Sort and uniquify recommended includes.
26754 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
26756 * doc/getdate.texi (General date syntax): Don't say that date
26757 date --iso-8601=ns generates acceptable dates; it doesn't yet.
26758 Problem reported by Nic Ferrier.
26760 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26762 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
26763 specified in ai_socktype. Fix invalid ai_protocol
26764 check. ai_protocol is usually set to 0 or depending on
26765 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
26766 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
26767 ai_socktype / ai_protocol in the returned addrinfo structure.
26769 2005-05-10 Simon Josefsson <jas@extundo.com>
26771 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
26772 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26774 2005-05-10 Karl Berry <karl@gnu.org>
26776 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
26777 (from http://www.gnu.org/licenses).
26778 * doc/COPYING.LIB: also rename to COPYING.LESSER.
26779 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
26782 2005-05-10 Karl Berry <karl@gnu.org>
26784 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
26785 (COPYING.DOC): remove.
26787 * config/srclist-update: new FSF address.
26789 2005-05-10 Derek Price <derek@ximbiot.com>
26791 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
26794 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26795 Bruno Haible <bruno@clisp.org>
26797 * modules/inet_ntop: New file.
26798 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26801 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26802 Bruno Haible <bruno@clisp.org>
26804 * m4/inet_ntop.m4: New file.
26806 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26807 Bruno Haible <bruno@clisp.org>
26809 * lib/inet_ntop.h: New file.
26810 * lib/inet_ntop.c: New file, from glibc with modifications.
26812 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
26814 * modules/time_r (License): Change to LGPL.
26815 * modules/extensions (License): Change to LGPL. Actually,
26816 the license is more permissive than that, but currently gnulib-tool
26817 doesn't know how to handle more-permissive licenses.
26819 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
26820 Problem reported by Dave Love.
26822 2005-05-08 Jim Meyering <jim@meyering.net>
26824 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
26827 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
26829 * modules/argmatch (Depends-on): Add stdbool.
26830 * modules/backupfile (Depends-on): Likewise.
26831 * modules/chdir-long (Depends-on): Likewise.
26832 * modules/closeout (Depends-on): Likewise.
26833 * modules/cycle-check (Depends-on): Likewise.
26834 * modules/dirname (Depends-on): Likewise.
26835 * modules/fnmatch (Depends-on): Likewise.
26836 * modules/fsusage (Depends-on): Likewise.
26837 * modules/fwriteerror (Depends-on): Likewise.
26838 * modules/getcwd (Depends-on): Likewise.
26839 * modules/getloadavg (Depends-on): Likewise.
26840 * modules/hard-locale (Depends-on): Likewise.
26841 * modules/makepath (Depends-on): Likewise.
26842 * modules/mountlist (Depends-on): Likewise.
26843 * modules/nanosleep (Depends-on): Likewise.
26844 * modules/posixtm (Depends-on): Likewise.
26845 * modules/quotearg (Depends-on): Likewise.
26846 * modules/readtokens (Depends-on): Likewise.
26847 * modules/readtokens0 (Depends-on): Likewise.
26848 * modules/readutmp (Depends-on): Likewise.
26849 * modules/save-cwd (Depends-on): Likewise.
26850 * modules/strftime (Depends-on): Likewise.
26851 * modules/userspec (Depends-on): Likewise.
26852 * modules/utimecmp (Depends-on): Likewise.
26853 * modules/xgetcwd (Depends-on): Likewise.
26854 * modules/xnanosleep (Depends-on): Likewise.
26855 * modules/xstrtod (Depends-on): Likewise.
26856 * modules/yesno (Depends-on): Likewise.
26858 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
26860 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
26863 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26865 Merge from coreutils. Among other things,
26866 add bulletproofing for cases where stdin, stdout, or stderr are closed.
26867 * lib/fd-safer.c: New file.
26868 * lib/fcntl-safer.h, open-safer.c: Remove.
26869 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
26870 * lib/dup-safer.c: Include unistd-safer.h first.
26871 Don't include errno.h.
26872 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
26873 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
26874 * lib/file-type.c: Rely on file-type.h change.
26875 * lib/getloadavg.c: Include unistd-safer.h.
26876 (getloadavg): Use safer open.
26877 * lib/getusershell.c: Include "stdio-safer.h".
26878 (getusershell): Use safer fopen.
26879 * lib/long-options.c (long_options): Use NULL rather than 0.
26880 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
26882 * lib/modechange.c: Likewise.
26883 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
26884 (MODE_DONE): New constant.
26885 (struct mode_change): Remove 'next' member.
26886 (make_node_op_equals): New function; like the old one of the
26887 same name, except it allocates an array.
26888 (mode_compile, mode_create_from_ref): Use it.
26889 (mode_compile): Allocate result as an array, not a linked list.
26890 Parse octal string ourself, so that we catch mistakes like "+0".
26891 (mode_adjust): Arg is an array, not a linked list.
26892 * lib/modechange.c: Include stat-macros.h, xalloc.h.
26893 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
26894 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
26895 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
26896 Remove. This is now stat-macros.h's job.
26897 (talloc): Remove. All callers replaced by xalloc, so that
26898 our invokers don't have to worry about reporting memory failures.
26899 (make_node_op_equals): Remove.
26900 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26902 (struct mode_change): Moved here from modechange.h.
26903 (mode_append_entry): Remove.
26904 (mode_compile): Remove MASKED_OPS arg, since it encouraged
26905 apps to have incorrect behavior. Use simpler algorithm for head
26906 and tail. Don't futz with umask; that's now the job of mode_adjust.
26907 Detect more invalid usages rather than having somewhat-random behavior.
26908 Don't insert an "a=" action, as that leads to incorrect behavior.
26909 (mode_compile, mode_create_from_ref): Return NULL on error instead
26910 of an enum, since now there's only one way to have an error. All
26912 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
26913 at the correct time. Simplify calculation of "+u" and its ilk.
26914 Don't mishandle "+X".
26915 (mode_free): Remove "register" and localize decls.
26916 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
26917 (struct mode_change): Move to modechange.c; callers don't
26918 need to see this stuff.
26919 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
26920 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
26921 (mode_change, mode_adjust): Reflect the new signatures noted above.
26922 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
26923 that might redefine system include files.
26924 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
26925 (my_usleep): Use NULL rather than (void *) 0.
26926 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
26927 Use siginterrupt to specify that system calls should be interrupted.
26928 (rpl_nanosleep): Move initialization of suspended closer to call of
26930 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
26931 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
26932 (desirable_utmp_entry): New function.
26933 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
26934 using x2nrealloc, to simplify logic.
26935 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
26936 size calculation. Do not assume utmp file is a regular file.
26937 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
26938 (READ_UTMP_CHECK_PIDS): New constant.
26939 * lib/save-cwd.c: Include unistd-safer.h.
26940 (save_cwd): Use fd_safer.
26941 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
26942 [!_LIBC] Include "stat-macros.h" instead.
26943 * lib/unistd-safer.h (fd_safer): New decl.
26945 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26947 * modules/getloadavg (Depends-on): Add unistd-safer.
26948 * modules/getusershell (Depends-on): Add stdio-safer.
26949 * modules/lstat (Depends-on): Remove xalloc.
26950 * modules/mkstemp (Depends-on): Add stat-macros.
26951 * modules/modechange (Depends-on): Remove xstrtol.
26952 Add stat-macros, xalloc.
26953 * modules/save-cwd (Depends-on): Add unistd-safer.
26954 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
26955 * modules/unistd-safer (Files): Add lib/fd-safer.c
26956 (Makefile.am): Remove lib_SOURCES.
26958 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
26959 Remove fcntl-safer; unistd-safer supersedes it.
26961 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
26963 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
26965 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
26966 (gl_PREREQ_CHOWN): Remove.
26967 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
26968 it. Don't require AC_HEADER_STAT.
26969 (gl_PREREQ_LSTAT): Remove.
26970 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
26971 Don't require AC_HEADER_STAT.
26972 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
26973 (gl_PREREQ_RMDIR): Remove.
26974 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
26975 mention stat-macros.h or AC_HEADER_STAT, since we'll make
26976 the stat-macros module a prerequisite.
26977 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
26978 * m4/filemode.m4 (gl_FILEMODE): Likewise.
26979 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
26980 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
26981 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
26983 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
26984 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
26986 * m4/fcntl-safer.m4: Remove.
26987 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
26988 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
26989 Invoke gl_PREREQ_FD_SAFER.
26990 (gl_PREREQ_FD_SAFER): New macro.
26991 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
26992 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
26993 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
26994 Remove duplicate call to AC_LIBOBJ(readutmp).
26995 (gl_PREREQ_READUTMP): Remove. All uses inlined.
26997 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
26998 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
27000 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
27002 * MODULES.html.sh (Misc): Add byteswap.
27004 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
27006 * modules/getcwd (Depends-on): Add extensions.
27007 * modules/openat (Depends-on): Likewise.
27009 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
27011 * modules/byteswap: New file.
27013 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
27015 * m4/byteswap.m4: New file.
27017 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
27019 * lib/byteswap_.h: New file.
27021 2005-04-25 Karl Berry <karl@gnu.org>
27023 * m4/gettext.m4: Update from GNU gettext 0.14.4.
27025 2005-04-25 Albert Chin <china@thewrittenword.com>
27027 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
27030 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
27032 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
27033 (func_ln_if_changed) Remove forcibly for no error message
27034 in case file does not exist.
27036 2005-04-19 Simon Josefsson <jas@extundo.com>
27038 * gnulib-tool (Options): Make --symlink mean --symbolic.
27040 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
27042 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
27044 2005-04-16 Simon Josefsson <jas@extundo.com>
27046 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
27048 2005-04-15 Simon Josefsson <jas@extundo.com>
27050 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
27052 2005-04-15 Simon Josefsson <jas@extundo.com>
27054 * gnulib-tool: Rename --symlink to --symbolic.
27056 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
27058 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
27059 symbolic links to files instead of copying/moving. Add --aux-dir,
27060 specifying directory relative --dir where auxiliary build tools
27063 2005-04-14 Bruno Haible <bruno@clisp.org>
27065 * modules/allocsa (License): Change to LGPL.
27066 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27068 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
27070 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
27071 that "UTC +1 second" continues to work. Problem reported
27072 by Dmitry V. Levin.
27073 (relunit_snumber): New rule.
27076 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
27078 * lib/getdate.y (universal_time_zone_table): New constant.
27079 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
27080 universal_time_zone_table.
27081 (lookup_zone): Prefer universal_time_zone_table to
27082 local_time_zone_table, so that "GMT" time stamps are allowed in
27083 London during the summer. Problem reported by Ian Abbott.
27085 2005-04-12 Jim Meyering <jim@meyering.net>
27087 * lib/human.c (humblock): Set *options even when returning due to
27088 xstrtoumax conversion failure. Thanks to a used-uninitialized
27089 warning from gcc-4.
27091 2005-04-09 Jim Meyering <jim@meyering.net>
27093 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
27094 -Wuninitialized: initialize tm0.tm_year.
27096 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
27098 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
27099 count, since there's no maximum. All uses changed.
27100 Add member dsts_seen.
27101 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
27103 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
27104 Use pc_rels_seen to decide whther a date is absolute.
27106 * lib/getdate.y (number): Don't overwrite year.
27107 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
27110 2005-04-02 Simon Josefsson <jas@extundo.com>
27112 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
27113 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
27115 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
27117 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
27118 where no absolute path name can be longer than PATH_MAX.
27120 2005-03-27 Jim Meyering <jim@meyering.net>
27122 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
27124 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
27126 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
27127 "one's complement" -> "ones' complement" in comment, as per Knuth.
27128 "value of type" -> "type or expression" in comment.
27129 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
27131 2005-03-26 Jim Meyering <jim@meyering.net>
27134 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
27135 Correct typos: s/or/of/.
27137 2005-03-26 Jim Meyering <jim@meyering.net>
27139 * modules/check-include-files: Move to ../ and rename to...
27140 * check-module: ...this.
27142 2005-03-25 Jim Meyering <jim@meyering.net>
27144 * modules/xvasprintf (Files): Add xalloc.h.
27146 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
27148 * modules/gettext (Files): config/config.rpath ->
27149 build-aux/config.rpath
27150 * modules/iconv (Files): Likewise.
27151 Problem reported by Oskar Liljeblad.
27153 2005-03-23 Jim Meyering <jim@meyering.net>
27155 * modules/check-include-files: New script to check for
27156 missing dependencies, multiple includes, etc.
27158 * modules/c-strtold (Depends-on): Add xalloc.
27159 * modules/c-strtod (Depends-on): Add xalloc.
27160 * modules/hash (Depends-on): Add xalloc.
27161 (Files): Remove lib/xalloc.h.
27163 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
27164 * modules/userspec (Files): Add lib/inttostr.h.
27166 2005-03-23 Jim Meyering <jim@meyering.net>
27168 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
27170 2005-03-22 Jim Meyering <jim@meyering.net>
27172 * modules/stat-macros: New module.
27173 * modules/canonicalize, modules/euidaccess, modules/file-type,
27174 * modules/filemode, modules/lchown, modules/makepath,
27175 * modules/rmdir, modules/stat: Depend on new stat-macros module
27176 rather than listing lib/stat-macros.h manually.
27177 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
27179 2005-03-22 Jim Meyering <jim@meyering.net>
27181 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
27183 2005-03-22 Bruno Haible <bruno@clisp.org>
27185 * config/srclist.txt: Replace target directory 'config' with
27187 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
27188 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
27191 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
27193 * modules/chdir-long (Depends-on): Add mempcpy.
27195 * modules/acl, modules/backupfile, modules/c-strtod,
27196 modules/c-strtold, modules/canon-host, modules/canonicalize,
27197 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
27198 modules/exclude, modules/exitfail, modules/file-type,
27199 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
27200 modules/getdate, modules/getline, modules/getpagesize,
27201 modules/getpass, modules/getugroups, modules/group-member,
27202 modules/hard-locale, modules/hash, modules/human, modules/idcache,
27203 modules/inttostr, modules/long-options, modules/makepath,
27204 modules/md5, modules/memcasecmp, modules/memcoll,
27205 modules/modechange, modules/mountlist, modules/path-concat,
27206 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
27207 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
27208 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
27209 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
27210 modules/strftime, modules/strndup, modules/strverscmp,
27211 modules/timespec, modules/unlocked-io, modules/userspec,
27212 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
27214 Remove lib_SOURCES line from Makefile.am section, as this is now
27215 done automatically by the corresponding Autoconf macro.
27217 2005-03-21 Jim Meyering <jim@meyering.net>
27219 Changes imported from coreutils.
27221 * lib/cycle-check.c: Don't include xalloc.h.
27223 * lib/path-concat.c: Don't include assert.h.
27224 (path_concat): Remove assertion that would have triggered
27225 for ABASE starting with more than one slash.
27226 Reported by Andreas Schwab.
27228 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
27229 properly when ABASE is an absolute file name.
27230 Correct the description of this function.
27231 Include <assert.h>.
27232 Add an assertion and a test driver.
27233 This fixes a bug introduced on 2004-07-02.
27234 Andreas Schwab reported the resulting failure of cp --parents:
27235 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
27237 2005-03-21 Jim Meyering <jim@meyering.net>
27239 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
27240 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
27242 2005-03-21 Jim Meyering <jim@meyering.net>
27243 and Paul Eggert <eggert@cs.ucla.edu>
27245 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
27246 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
27247 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
27248 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
27249 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
27250 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
27251 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
27252 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
27253 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
27254 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
27255 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
27256 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
27257 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
27258 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
27259 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
27260 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
27261 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
27264 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
27266 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
27267 (which shouldn't happen), generate nothing instead of returning 0
27268 immediately, so that nstrftime (NULL, ...) doesn't return 0.
27270 2005-03-16 Bruno Haible <bruno@clisp.org>
27272 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
27273 HAVE_LONGLONG_64BIT.
27275 2005-03-16 Bruno Haible <bruno@clisp.org>
27277 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
27278 HAVE_LONGLONG_64BIT.
27280 2005-03-16 Bruno Haible <bruno@clisp.org>
27282 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
27283 HAVE_LONGLONG_64BIT.
27285 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
27287 * lib/strftime.c (my_strftime): Prepend space to format so that we can
27288 reliably distinguish strftime failure from empty output on POSIX
27291 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
27293 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
27294 (iconv_string): Don't guess a size-zero buffer, as that might cause
27295 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
27296 result would be 'too large', where 'too large' is (heuristically)
27297 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
27298 overflow concerns. This will prevent some unwanted malloc failures
27299 when the inputs are very large.
27301 2005-03-15 Karl Berry <karl@gnu.org>
27303 * config/srclist.txt (config.rpath): from gettext.
27304 * config/config.rpath: update.
27306 2005-03-15 Bruno Haible <bruno@clisp.org>
27308 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
27311 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
27314 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
27317 2005-03-14 Simon Josefsson <jas@extundo.com>
27319 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
27322 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
27324 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
27325 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
27327 * lib/strtol.c: Likewise.
27329 2005-03-14 Jim Meyering <jim@meyering.net>
27331 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
27332 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
27333 to be nonzero so that we (and caller) can detect the difference
27334 between a valid zero-length expansion and an error return, even
27335 when the underlying strftime fails before writing anything into
27338 2005-03-14 Bruno Haible <bruno@clisp.org>
27340 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
27341 Update from GNU gettext 0.14.3.
27343 2005-03-10 Jim Meyering <jim@meyering.net>
27345 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
27347 2005-03-10 Jim Meyering <jim@meyering.net>
27349 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
27350 so that this module works on systems without fchdir.
27352 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
27354 Factor int-properties macros into a single file, except for
27355 glibc-related files.
27356 * lib/intprops.h: New file.
27357 * lib/getloadavg.c: Include it instead of limits.h.
27358 (INT_STRLEN_BOUND): Remove.
27359 * lib/human.c: Include intprops.h.
27360 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
27361 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
27363 * lib/inttostr.h: Include intprops.h instead of limits.h.
27364 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
27365 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
27366 for consistency with intprops.h.
27367 (time_t_is_integer, twos_complement_arithmetic): Use them.
27368 * lib/sig2str.h: Include <signal.h>, intprops.h.
27369 (INT_STRLEN_BOUND): Remove.
27370 * lib/strftime.c (TYPE_SIGNED): Remove.
27371 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
27372 * lib/strtol.c: Adjust comments to match intprops.h.
27373 * lib/userspec.c: Include intprops.h.
27374 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
27375 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
27376 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
27377 instead of rolling our own expressions.
27378 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
27380 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
27382 (my_strftime): Do not mishandle years close to INT_MAX, by doing
27383 the right thing even if adding 1900 would overflow. Similarly
27384 for tm_mon + 1 and tm_yday + 1.
27385 Make %Y always equivalent to %C%y, and similarly for %G and %g.
27386 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
27387 (DO_SIGNED_NUMBER): New macro.
27388 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
27390 2005-03-07 Bruno Haible <bruno@clisp.org>
27392 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
27394 2005-03-07 Bruno Haible <bruno@clisp.org>
27396 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
27398 2005-03-04 Derek R. Price <derek@ximbiot.com>
27400 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
27401 (func_import): Only replace files via --import when they have actually
27404 2005-03-03 Derek R. Price <derek@ximbiot.com>
27406 * m4/mmap-anon.m4: New file.
27407 * m4/pagealign_alloc.m4: New file.
27409 2005-03-03 Derek R. Price <derek@ximbiot.com>
27410 Bruno Haible <bruno@clisp.org>
27412 * modules/pagealign_alloc: New file.
27413 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27415 2005-03-03 Derek R. Price <derek@ximbiot.com>
27416 Bruno Haible <bruno@clisp.org>
27418 * lib/pagealign_alloc.h: New file.
27419 * lib/pagealign_alloc.c: New file.
27421 2005-03-03 Bruno Haible <bruno@clisp.org>
27423 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27424 Use an all-permissive copyright notice, recommended by RMS.
27426 2005-03-02 Bruno Haible <bruno@clisp.org>
27428 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27429 of AIX, the replacement has to be done only after <string.h> is
27430 included, therefore not in config.h. stpncpy.h does the replacement,
27431 and stpncpy.c uses it.
27433 2005-03-02 Bruno Haible <bruno@clisp.org>
27435 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27438 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
27440 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27441 The workaround isn't strictly needed for POSIX conformance, and
27442 it's too much of a pain to configure and maintain. We'll ask
27443 people to fix their kernels instead.
27444 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27445 (NANOSLEEP_BUG_WORKAROUND): Remove.
27446 (xnanosleep): Remove the workaround.
27448 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
27450 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27451 Reported by Derek Price.
27452 (Include): Add "timespec.h".
27454 * modules/xnanosleep (Depends-on): Remove gethrxtime.
27456 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
27458 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27459 to detect nanosleep bug.
27461 2005-03-01 Bruno Haible <bruno@clisp.org>
27463 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27465 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
27467 * modules/gethrxtime: New file.
27468 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27469 (Depends-on): Add gethrxtime.
27470 (configure.ac): Add gl_XNANOSLEEP.
27471 (Makefile.am): Remove lib_SOURCES line.
27473 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
27475 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27476 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27478 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
27480 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27481 * lib/timespec.h (gettime): Return void, since it always
27482 succeeds now. All uses changed.
27483 * lib/gettime.c (gettime) Likewise.
27484 [HAVE_NANOTIME]: Prefer nanotime.
27485 Assume gettimeofday succeeds, as POSIX requires.
27486 Assime time () succeeds, since other code already does.
27487 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27488 (timespec_subtract): Remove.
27489 (NANOSLEEP_BUG_WORKAROUND): New constant.
27490 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27491 things considerably. Use it only on GNU/Linux hosts, since the
27492 workaround shouldn't be needed elsewhere.
27494 2005-02-24 Bruno Haible <bruno@clisp.org>
27496 * modules/gettext (Files): Add m4/glibc2.m4.
27498 2005-02-24 Bruno Haible <bruno@clisp.org>
27500 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27501 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27503 Update from GNU gettext 0.14.2.
27504 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27506 2005-02-24 Bruno Haible <bruno@clisp.org>
27508 * lib/localcharset.c: Update from GNU gettext 0.14.2.
27509 * lib/config.charset: Update from GNU gettext 0.14.2.
27511 2005-02-24 Bruno Haible <bruno@clisp.org>
27513 * lib/gettext.h: Update from GNU gettext 0.14.2.
27515 2005-02-23 Simon Josefsson <jas@extundo.com>
27517 * m4/iconvme.m4: New file.
27519 2005-02-23 Jim Meyering <jim@meyering.net>
27521 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27523 Thanks to Bruno Haible for catching it.
27525 2005-02-22 Simon Josefsson <jas@extundo.com>
27527 * modules/iconvme: New file.
27529 * MODULES.html.sh: Add iconvme.
27531 2005-02-22 Simon Josefsson <jas@extundo.com>
27533 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27535 2005-02-22 Simon Josefsson <jas@extundo.com>
27537 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27539 2005-02-22 Jim Meyering <jim@meyering.net>
27541 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27544 2005-02-20 Neil Conway <neilc@samurai.com>
27546 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27547 returned by OSX/Darwin if the specified buffer is not large
27548 enough for the hostname.
27550 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27552 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27553 pass it to _help, otherwise the latter coredumps trying to
27554 dereference state.root_argp.
27556 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
27558 * modules/chdir-long (Depends-on): Add memrchr.
27559 * modules/memrchr (Files): Add lib/memrchr.h.
27560 (Include): "memrchr.h".
27562 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
27564 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27566 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
27568 * lib/memrchr.h: New file.
27569 * lib/chdir-long.c: Include it.
27570 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27571 Don't bother including stddef.h.
27573 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
27575 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27577 Include <sys/types.h>, for dev_t.
27578 (ME_DUMMY, ME_REMOTE): Move from here....
27579 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
27580 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
27582 Include mountlist.h first, to test the interface.
27584 2005-01-29 Bruno Haible <bruno@clisp.org>
27586 * lib/progname.c (program_name): Initialize.
27587 Needed when linking statically on MacOS X.
27589 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
27591 Sync from coreutils.
27592 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
27593 (Depends-on): Add c-strtod.
27594 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
27596 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
27598 Sync from coreutils.
27599 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
27601 Remove files that are specific to coreutils.
27602 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
27604 2005-01-28 Bruno Haible <bruno@clisp.org>
27606 * modules/javacomp: New file.
27607 * MODULES.html.sh (Java): Add javacomp.
27609 2005-01-28 Bruno Haible <bruno@clisp.org>
27611 * m4/javacomp.m4: New file, from GNU gettext.
27613 2005-01-28 Bruno Haible <bruno@clisp.org>
27615 * lib/javacomp.sh.in: New file, from GNU gettext.
27616 * lib/javacomp.h: New file, from GNU gettext.
27617 * lib/javacomp.c: New file, from GNU gettext.
27619 2005-01-26 Simon Josefsson <jas@extundo.com>
27621 * lib/gai_strerror.c: Use GPL in header.
27623 2005-01-26 Bruno Haible <bruno@clisp.org>
27625 * modules/javaexec: New file.
27626 * MODULES.html.sh (Java): Add javaexec.
27628 2005-01-26 Bruno Haible <bruno@clisp.org>
27630 * m4/javaexec.m4: New file, from GNU gettext.
27632 2005-01-26 Bruno Haible <bruno@clisp.org>
27634 * lib/javaexec.sh.in: New file, from GNU gettext.
27635 * lib/javaexec.h: New file, from GNU gettext.
27636 * lib/javaexec.c: New file, from GNU gettext.
27638 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27640 * modules/lchown (Depends-on): Remove lchown.h
27642 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27644 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
27645 must be defined if the header file was not found, in order
27646 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
27648 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27650 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
27651 initializers for struct pentry_state.
27652 (__argp_error): Check return value of __asprintf
27653 (__argp_failure): Translate error message
27655 * lib/argp-parse.c: Removed braces around the expansion of N_()
27657 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
27659 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
27660 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
27661 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
27662 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
27663 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
27664 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
27665 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
27666 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
27667 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
27668 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
27669 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
27670 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
27671 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
27672 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
27673 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
27674 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
27675 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
27676 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
27677 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
27678 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
27679 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
27680 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
27681 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
27682 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
27683 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
27684 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
27685 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
27686 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
27687 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
27688 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
27689 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
27690 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
27691 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
27692 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
27693 xstrtol.m4, xstrtoumax.m4, yesno.m4:
27694 Use an all-permissive copyright notice, recommended by RMS.
27696 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
27698 * modules/chdir-long (Depends-on): Remove mempcpy.
27700 2005-01-21 Jim Meyering <jim@meyering.net>
27702 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
27703 same value as for Solaris 9.
27705 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
27706 component length. This included changing the parameter to be
27707 of type `char *' rather than `char const *'.
27708 * lib/chdir-long.h (chdir_long): Update prototype.
27710 * lib/openat.c (fdopendir, fstatat): New functions.
27711 * lib/openat.h: Include headers required for use of DIR and struct
27713 [AT_SYMLINK_NOFOLLOW]: Define.
27714 (fdopendir, fstatat): Add prototypes.
27716 2005-01-21 Bruno Haible <bruno@clisp.org>
27718 * modules/classpath: New file.
27719 * MODULES.html.sh (Java): Add classpath.
27721 2005-01-21 Bruno Haible <bruno@clisp.org>
27723 * lib/classpath.h: New file, from GNU gettext.
27724 * lib/classpath.c: New file, from GNU gettext.
27726 2005-01-20 Simon Josefsson <jas@extundo.com>
27728 * modules/version-etc-fsf: New file.
27730 2005-01-20 Simon Josefsson <jas@extundo.com>
27732 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
27733 * lib/version-etc.c: Remove version_etc_copyright.
27734 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
27735 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
27737 2005-01-20 Simon Josefsson <jas@extundo.com>
27739 * lib/base64.h (isbase64): Add.
27741 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
27742 using a unsigned prototype, don't inline.
27743 (base64_decode): Use it.
27745 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
27747 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
27750 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
27752 * lib/save-cwd.c (save_cwd): Remove code to support the case
27753 where fchdir is missing or flaky.
27755 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
27757 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
27759 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
27761 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
27762 AC_LIBSOURCES now does this.
27763 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
27764 with new ullong_max module.
27766 2005-01-19 Bruno Haible <bruno@clisp.org>
27768 * modules/sh-quote: New file.
27769 * MODULES.html.sh (Executing programs): Add sh-quote.
27771 2005-01-19 Bruno Haible <bruno@clisp.org>
27773 * lib/sh-quote.h: New file, from GNU gettext.
27774 * lib/sh-quote.c: New file, from GNU gettext.
27776 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
27778 Merge from coreutils.
27779 * m4/ullong_max.m4: New file.
27780 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
27781 (gl_MACROS): Assume localeconv exists.
27783 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
27785 Merge changes from coreutils, as described below in several
27786 changelogs dated today.
27788 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
27789 (O_DIRECTORY): Remove; not needed here, since "." must be
27790 a directory. All uses removed.
27791 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
27792 universal on Suns, and we also need to test for IRIX.
27793 Revamp code to use 'if' rather than '#if'.
27794 Avoid unnecessary comparison of cwd->desc to 0.
27796 * lib/utimens.c (futimens): Robustify the previous patch, by checking
27797 for known valid error numbers rather than observed invalid ones.
27799 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
27801 * modules/ullong_max: New file.
27803 * modules/chdir-long, modules/openat: New files.
27804 * modules/save-cwd (Depends-on): Depend on chdir-long.
27805 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
27807 2005-01-18 Jim Meyering <jim@meyering.net>
27809 Merge from coreutils.
27810 * m4/chdir-long.m4, m4/openat.m4: New files.
27811 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
27812 save-cwd.h. Add AC_LIBOBJ for save-cwd.
27813 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
27814 is sane and DOES follow symlinks. Besides, testing 20 different
27815 systems found no broken chown implementations.
27816 Prompted by a change in rsync's copy of this macro.
27817 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
27819 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
27821 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
27822 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
27823 NULL-means-set-to-current-time semantics.
27824 Remove temporary file immediately, rather than waiting
27825 for configure's at-exit trap code to do it.
27827 2005-01-18 Jim Meyering <jim@meyering.net>
27829 * lib/version-etc.c (version_etc_copyright): Update copyright date.
27831 * lib/utimens.c (futimens): Account for the fact that futimes
27832 can also fail with errno == ENOSYS or errno == ENOENT.
27833 Patch from Dmitry V. Levin.
27835 Change the name of the robust chdir function from chdir to chdir_long.
27836 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
27837 (restore_cwd): Use chdir_long, not chdir.
27838 * lib/chdir-long.c: Renamed from chdir.c.
27839 * lib/chdir-long.h: Renamed from chdir.h.
27840 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
27843 2005-01-18 Bruno Haible <bruno@clisp.org>
27845 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
27846 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
27847 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
27848 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
27849 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
27850 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
27851 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
27852 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
27853 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
27854 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
27855 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
27856 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
27857 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
27858 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
27859 Use an all-permissive copyright notice, recommended by RMS.
27861 2005-01-18 Bob Proulx <bob@proulx.com>
27863 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
27864 simplify offsetof() macro construct to avoid compile failure with
27865 native HP-UX 11.0 ANSI C compiler.
27867 2005-01-17 Bruno Haible <bruno@clisp.org>
27869 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
27870 redundant because stpncpy.m4 takes care of it.
27872 2005-01-17 Bruno Haible <bruno@clisp.org>
27874 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
27876 2005-01-17 Bruno Haible <bruno@clisp.org>
27878 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
27881 2005-01-17 Bruno Haible <bruno@clisp.org>
27883 * lib/fwriteerror.h (fwriteerror): Change specification to include
27885 * lib/fwriteerror.c: Include <stdbool.h>.
27886 (fwriteerror): At the end, close the file stream. Record whether
27887 stdout was already closed.
27889 2005-01-17 Bruno Haible <bruno@clisp.org>
27891 * lib/execute.c (environ): Declare if needed.
27892 * lib/pipe.c (environ): Likewise.
27893 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
27895 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27897 * modules/argp: Depend on vsnprintf
27899 2005-01-10 Jim Meyering <jim@meyering.net>
27901 * modules/closeout (Depends-on): Add atexit.
27903 2005-01-06 Bruno Haible <bruno@clisp.org>
27905 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
27907 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
27909 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
27910 definitions to be after all include files, to avoid collisions.
27911 Problem reported by Bob Proulx.
27913 2005-01-04 Jim Meyering <jim@meyering.net>
27915 Changes imported from coreutils.
27916 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
27917 as the mkstemp template, use a temporary directory and an
27918 8.3-friendly template to avoid trouble on systems like DJGPP.
27919 Reported by Juan M. Guerrero via Stepan Kasal.
27920 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
27921 close. Remove the temporary directory right away, rather than waiting
27922 for configure's at-exit trap code to do it.
27923 Suggestion from Stepan Kasal.
27925 2005-01-01 Simon Josefsson <jas@extundo.com>
27927 * gnulib-tool: Print #include directives when --import'ing.
27929 2004-12-28 Simon Josefsson <jas@extundo.com>
27931 * tests/test-base64.c: Include required header files. Remove
27934 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
27936 * modules/error (Depends-on): Remove gettext.
27938 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
27940 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
27941 not needed. This removes a dependency on the gettext module.
27942 [defined _LIBC]: Do not include <libintl.h>; not needed.
27944 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
27946 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
27947 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
27949 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
27951 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
27954 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
27956 * modules/getdate (Depends-on): Remove alloca-opt.
27958 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
27960 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
27962 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
27964 * lib/argp-parse.c: Include <stddef.h>.
27965 (alignof, alignto): New macros.
27966 (parser_init): Don't assume that void * is aligned sufficiently
27969 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
27970 need to extend the stack.
27971 (YYINITDEPTH): New macro, so that the initial stack isn't overly
27974 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27976 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
27978 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
27980 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
27981 (2004-10-24) change. Apparently this was a false alarm.
27983 * modules/getdate: Depend on alloca-opt, not alloca.
27985 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
27987 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
27988 Remove now-obsolete comment about AIX.
27989 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
27990 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
27991 (YYMAXDEPTH): New macro.
27993 2004-12-18 Simon Josefsson <jas@extundo.com>
27995 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
27997 2004-12-18 Bruno Haible <bruno@clisp.org>
27999 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
28001 2004-12-18 Bruno Haible <bruno@clisp.org>
28003 * lib/fatal-signal.c (fatal_signals): Make non-const.
28004 (init_fatal_signals): New function.
28005 (uninstall_handlers, install_handlers): Ignore signals that were set to
28007 (at_fatal_signal): Call init_fatal_signals.
28008 (init_fatal_signal_set): Likewise. Ignore signals that were set to
28010 Reported by Paul Eggert.
28012 2004-12-18 Bruno Haible <bruno@clisp.org>
28014 * doc/alloca.texi: New file.
28015 * doc/alloca-opt.texi: New file.
28017 2004-12-17 Jim Meyering <jim@meyering.net>
28019 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
28020 Otherwise, install-sh could exit with improper exit status when
28021 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
28023 2004-12-16 Simon Josefsson <jas@extundo.com>
28025 * tests/test-base64.c: Add license.
28027 2004-12-15 Stepan Kasal <address@hidden>
28029 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
28031 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
28033 * modules/getcwd (Files): Add m4/d-ino.m4.
28034 Suggested by Mark D. Baushke.
28036 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
28038 * lib/getdate.y (textint): New member "negative".
28039 (time_zone_hhmm): New function.
28040 Expect 14 shift-reduce conflicts, not 13.
28041 (o_colon_minutes): New rule.
28042 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
28043 (yylex): Set the "negative" member of signed numbers.
28045 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
28047 * doc/getdate.texi (Time of day items, Time zone items):
28048 Describe new formats +00:00, UTC+00:00.
28050 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
28052 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
28053 spurious "-l"s. Problem reported by Stepan Kasal.
28055 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
28057 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
28058 in Autoconf 2.59. Problem reported by Mark D. Baushke.
28060 2004-12-04 Simon Josefsson <jas@extundo.com>
28062 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
28063 Vandoorselaere <yoann@prelude-ids.org>.
28065 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
28067 Changes imported from coreutils.
28068 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
28070 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
28072 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
28074 Changes imported from coreutils.
28075 * lib/hard-locale.c: Assume <locale.h> exists.
28076 Include "strdup.h".
28077 (GLIBC_VERSION): New macro.
28078 (hard_locale): Assume setlocale exists.
28079 Rewrite to avoid #ifdef.
28080 Use strdup rather than malloc + strcpy.
28081 * lib/human.c: Assume <locale.h> exists.
28082 (human_readable): Assume localeconv exists.
28084 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
28086 * modules/hard-locale (Depends-on): Add strdup.
28088 2004-12-01 Jakub Jelinek <jakub@redhat.com>
28090 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
28091 convert T2, not T. (Imported from libc.)
28093 2004-11-30 Simon Josefsson <jas@extundo.com>
28095 * modules/restrict (License): Change to LGPL.
28097 2004-11-30 Simon Josefsson <jas@extundo.com>
28099 * m4/restrict.m4: Add copyright and copying conditions.
28101 2004-11-30 Simon Josefsson <jas@extundo.com>
28103 * m4/base64.m4: New file.
28105 2004-11-30 Simon Josefsson <jas@extundo.com>
28107 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
28110 * tests/test-base64.c: New file.
28112 * modules/base64: New file.
28114 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
28116 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
28117 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
28119 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
28121 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
28123 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
28124 (__getcwd.c): Don't restore errno; glibc doesn't.
28125 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
28126 first, falling back to our code only if its results look suspicious.
28127 Ensure that the resulting buffer is only as large as necessary.
28129 * lib/readutmp.c: Include readutmp.h first.
28130 Include <errno.h>, since readutmp.h no longer does that.
28131 * lib/readutmp.h: Don't include <errno.h>,
28132 <sys/param.h>, <time.h>; not needed to establish interface.
28133 (errno): Remove decl.
28134 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
28135 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
28136 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
28138 2004-11-28 Simon Josefsson <jas@extundo.com>
28140 * lib/base64.h, base64.c: New file.
28142 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
28144 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
28146 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
28148 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
28149 (Depends-on): Remove pathmax, same. Add mempcpy.
28150 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
28151 (Makefile.am): Append getcwd.h to lib_SOURCES.
28152 (Include): Add getcwd.h.
28153 (Maintainer): Change from Jim Meyering to "all, glibc",
28154 since getdate now uses intended-for-glibc code.
28155 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
28156 (Depends-on): Depend on getcwd. Do not depend on pathmax.
28158 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
28160 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
28161 HP's ANSI C compiler.
28162 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
28163 Declaring int functions causes warnings on some modern systems and
28164 shouldn't be needed to compile on ancient ones.
28165 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
28168 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
28169 with the following changes.
28170 (__set_errno): Parenthesize properly.
28171 Include <stdbool.h>.
28172 (MIN, MAX, MATCHING_INO): New macros.
28173 (__getcwd): Define with prototype, not K&R form.
28174 Use heuristics to allocate default buffer on stack if possible.
28175 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
28176 behavior, and to avoid the PATH_MAX limit when computing
28178 Use MATCHING_INO to compare inode number to file.
28179 Check for arithmetic overflow in size calculations.
28180 Fix bug in reallocation of dot array that caused getcwd to fail
28181 on directories nested deeper than 75.
28182 Be more careful about saving errno on error.
28183 Do not use realloc; use only free+malloc, as this is a bit
28184 more flexible and avoids a needless copy operation.
28185 Do not inspect st_dev and st_ino for symbolic links; POSIX
28186 doesn't specify the latter.
28187 Check for closedir errors.
28188 Avoid needless casts.
28189 Use "#ifdef weak_alias" around weak_alias, to be like other
28191 The following changes to getcwd.c have effect only when used in
28192 gnulib; they have no effect inside glibc proper.
28193 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
28194 as alloca isn't used.
28195 (alloca, __alloca): Likewise.
28196 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
28197 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
28198 unconditionally, as gnulib assumes C89 or better.
28199 Do not include <sys/param.h>.
28200 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
28201 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
28203 (NULL) [!defined NULL]: Remove; we assume C89 or better.
28204 Include <dirent.h> in a way that is compatible with modern Autoconf.
28205 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
28206 New macros, if not already defined.
28207 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
28208 Use "_LIBC", not "defined _LIBC", for consistency.
28209 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
28211 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
28212 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
28213 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
28214 credit only to Jim Meyering and adjust the copyright dates.
28215 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
28216 <stdlib.h>, <unistd.h>, "pathmax.h".
28217 Instead, include "xgetcwd.h" (first) and "getcwd.h".
28218 (INITIAL_BUFFER_SIZE): Remove.
28219 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
28221 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
28223 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
28224 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
28225 Use the _ONCE methods, for efficiency.
28226 Check for fcntl.h. In test program, include <errno.h>
28227 and <fcntl.h> if available. Remove old K&R cruft from
28228 test program. Check for common errors in GNU/Linux,
28229 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
28230 don't do AC_LIBOBJ, as that's getcwd.m4's job.
28231 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
28232 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
28234 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
28235 accommodate new getcwd.c.
28236 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
28237 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
28238 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
28239 that's all we need now.
28241 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28243 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
28244 argp-parse.c depends on getopt internals, that means we should
28245 always use our getopt, to be on the safe side.
28246 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
28247 order not to spoil the result of an eventual previous invocation
28248 of gl_GETOPT_SUBSTITUTE.
28250 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28252 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
28253 redefinition warnings. To avoid them, include the defines
28254 in `#if !defined __need_getopt ... #endif'. The only place
28255 where __getopt_argv_const is used is in definitions
28256 of getopt_long and getopt_long_only below, which are as well
28257 protected by `#ifndef __need_getopt'.
28258 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
28259 __need_getopt after including <stdio.h> and <unistd.h> These
28260 headers might have defined it.
28262 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
28264 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
28266 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
28268 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
28269 (futimens): New function, which uses futimes if available.
28270 (futimens, utimens): Support timespec==NULL, with same semantics
28271 as utime and utimens.
28272 * lib/utimens.h (futimens): New decl.
28274 2004-11-23 Jim Meyering <jim@meyering.net>
28276 * lib/getopt_.h: Remove trailing blanks.
28278 2004-11-23 Jim Meyering <jim@meyering.net>
28280 * lib/__fpending.c: Add comment.
28282 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
28284 * modules/canonicalize (Depends-on): Add xreadlink.
28285 Problem reported by James Youngman.
28287 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
28289 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
28291 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
28292 optopt): Use them instead of invoking ## directly; otherwise, the
28293 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
28295 2004-11-19 Bruno Haible <bruno@clisp.org>
28297 * lib/strtok_r.c: Move comments from here...
28298 * lib/strtok_r.h: ... to here.
28300 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
28302 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
28303 implementations that mishandle size_t overflow.
28305 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
28307 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
28308 might fail. Problem reported by Yoann Vandoorselaere.
28309 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
28310 implementations that mishandle size_t overflow.
28312 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
28314 * modules/canon-host (Depends-on): Add strdup.
28316 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
28318 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
28320 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
28322 * lib/canon-host.c: Include "strdup.h".
28323 (canon_host): Use getaddrinfo if available, so that IPv6 works.
28324 Use strdup instead of malloc/strcpy to duplicate strings.
28326 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
28327 (human_space_before_unit): New constant.
28328 * lib/human.c (human_readable): Support it.
28330 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
28331 (xgetcwd): Set errno correctly when failing.
28332 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
28333 the failure is actually due to a PATH_MAX problem.
28335 Further getopt changes to make it more likely that glibc will
28336 buy the changes back.
28337 * lib/getopt.c (POSIXLY_CORRECT): New constant.
28338 (getopt): Use it, so to preserve glibc semantic
28339 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
28340 when compiling for libc.
28341 * lib/getopt_.h (__getopt_argv_const): Bring it back.
28342 (getopt_long, getopt_long_only): Use it.
28344 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28345 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
28346 (getopt): Argv is now char * const *, as per standard.
28347 (_getopt_internal_r, _getopt_internal): Argv is now char **,
28348 not char *__getopt_argv_const *.
28349 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28350 _getopt_long_only_r): Likewise.
28351 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
28352 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28353 _getopt_long_r, _getopt_long_only_r): Likewise.
28354 * lib/getopt_.h (__getopt_argv_const): Remove.
28355 (getopt): Argv is now char * const *, as per standard.
28357 * lib/getdate.y (tORDINAL): New token.
28358 (day, relunit): Allow it for relative times.
28359 (relative_time_table): Use tORDINAL for ordinals.
28361 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
28363 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
28364 Document that "second" isn't allowed as an ordinal number.
28366 2004-11-16 Jim Meyering <jim@meyering.net>
28368 * modules/closeout (Depends-on): Add fpending.
28370 2004-11-15 Jim Meyering <jim@meyering.net>
28372 * lib/closeout.c: Include "__fpending.h" once again.
28373 Include <stdbool.h>.
28374 (close_stdout): Don't fail just because stdout was closed initially,
28375 since some programs don't write to stdout in the normal course of
28376 operation (other than --version and --help), and we don't want this
28377 function to make e.g. `touch file >&-' fail.
28378 But do fail if it was closed and someone has tried to write to it.
28379 E.g., `printf foo >&-' must fail.
28381 2004-11-13 Jim Meyering <jim@meyering.net>
28383 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
28385 2004-11-12 Simon Josefsson <jas@extundo.com>
28387 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
28388 small doc fix is still pending.
28390 2004-11-11 Simon Josefsson <jas@extundo.com>
28392 * modules/strtok_r: New file.
28394 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28397 2004-11-11 Simon Josefsson <jas@extundo.com>
28399 * m4/strtok_r.m4: New file.
28401 * m4/getopt.m4: Replace opterr.
28403 2004-11-11 Simon Josefsson <jas@extundo.com>
28405 * lib/strtok_r.h, strtok_r.c: New file.
28407 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
28409 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28410 of replacing opterr, getopt, etc. This should handle the
28411 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28413 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
28415 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28416 we can stop lying to compilers about the constness of argv when we
28417 are compiled outside glibc.
28418 (getopt, getopt_long, getopt_long_only): Use it.
28419 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28420 _getopt_internal, getopt): Likewise.
28421 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28422 _getopt_long_only_r): Likewise.
28423 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28424 _getopt_long_r, _getopt_long_only_r): Likewise.
28426 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28427 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28428 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28429 the other external symbols.
28430 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28431 declaration, since the above renaming now works around collisions.
28433 2004-11-11 Jim Meyering <jim@meyering.net>
28435 * lib/linebreak.c: Remove trailing blanks.
28436 * lib/alloca_.h: Likewise.
28437 * lib/acosl.c: Likewise.
28438 * lib/euidaccess.c: Likewise.
28439 * lib/allocsa.h: Likewise.
28441 2004-11-10 Simon Josefsson <jas@extundo.com>
28443 * m4/getaddrinfo.m4: New file.
28445 2004-11-10 Simon Josefsson <jas@extundo.com>
28447 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28449 2004-11-10 Simon Josefsson <jas@extundo.com>
28451 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28454 * modules/getaddrinfo: New file.
28456 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
28458 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28460 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
28462 * lib/mktime.c (SHR): New macro, which is a portable
28463 substitute for >> that should work even on Crays.
28464 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28465 Problem reported by Mark D. Baushke in
28466 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28467 * lib/getdate.y (SHR): Likewise.
28469 * lib/strftime.c (SHR): Likewise.
28471 * lib/quotearg.c (struct quoting_options): Use unsigned int for
28472 quote_these_too, so that right shifts are well defined. All uses
28475 2004-11-10 Jim Meyering <jim@meyering.net>
28477 Ensure that no close failure goes unreported.
28478 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
28479 return early when it seems there's nothing to flush.
28480 Don't include __fpending.h.
28482 2004-11-10 Jim Meyering <jim@meyering.net>
28484 * modules/closeout (Depends-on): Remove fpending.
28486 2004-11-10 Jim Meyering <jim@meyering.net>
28488 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28490 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
28492 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
28494 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28495 and AC_REQUIRE when possible, to avoid duplicate checks.
28496 Check for <wchar.h>.
28498 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
28500 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28502 2004-11-09 Bruno Haible <bruno@clisp.org>
28504 * m4/sockpfaf.m4: New file.
28506 2004-11-05 Bruno Haible <bruno@clisp.org>
28508 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28509 Reported by Mark D. Baushke <mdb@cvshome.org>.
28511 2004-11-04 Bruno Haible <bruno@clisp.org>
28513 2004-09-11 Bruno Haible <bruno@clisp.org>
28514 * allocsa.valgrind: New file.
28515 2004-02-06 Bruno Haible <bruno@clisp.org>
28516 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28517 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28518 Reported by Christopher Seip <chris.seip@hp.com>.
28520 2004-11-04 Bruno Haible <bruno@clisp.org>
28522 * modules/allocsa (Files): Add lib/allocsa.valgrind.
28523 (Makefile.am): Distribute it.
28525 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
28527 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28528 with errno == ERANGE if the buffer is too small.
28529 Problem reported by Mark D. Baushke.
28531 2004-11-03 Albert Chin <china@thewrittenword.com>
28532 Paul Eggert <eggert@cs.ucla.edu>
28534 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28535 equivalent, substitute $ac_type for equivalent type rather than
28536 blindly using uint32_t *always* which won't work if uint32_t is not
28537 available. Define _UINT32_T to work around typedef of uint32_t if
28538 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28541 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
28543 * m4/jm-macros.m4: Sync from coreutils.
28544 (gl_MACROS): Check for mbrlen, for pathchk.
28545 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28547 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
28549 * lib/xreadlink.c (MAXSIZE): New macro.
28550 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
28551 size does not exceed MAXSIZE. Avoid cast.
28552 As suggested by Mark D. Baushke in
28553 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28554 if readlink fails with buffer size just under MAXSIZE, try again
28557 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
28559 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28561 2004-11-02 Derek R. Price <derek@ximbiot.com>
28562 and Paul Eggert <eggert@cs.ucla.edu>
28564 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28565 (get_date): Overparenthesize to avoid GCC warning.
28567 2004-11-02 Bruno Haible <bruno@clisp.org>
28569 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28572 2004-11-02 Bruno Haible <bruno@clisp.org>
28574 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28575 function returns void.
28577 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
28579 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
28580 fflush_unlocked, flockfile, funlockfile, funlockfile,
28581 fputs_unlocked, putc_unlocked.
28583 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
28585 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28586 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
28589 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
28591 * modules/getdate (Files): Add doc/getdate.texi.
28592 (Depends-on): Add setenv, xalloc.
28594 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
28596 * lib/getdate.y: Add support for TZ="foo" within a date string.
28597 Fix some bugs near time_t boundaries. Reject dates with
28598 out-of-range components, e.g., "Sept 31".
28599 Include <stdlib.h>, "setenv.h", "xalloc.h".
28600 (ISDIGIT_LOCALE): Remove; unused.
28601 Note that the TZ and time functions used here are not reentrant.
28602 (mktime_ok, get_tz): New functions.
28603 (TZBUFSIZE): New constant.
28604 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
28605 This requires that we sometimes generate our own TZ="XXX..." setting.
28607 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
28609 * doc/getdate.texi: New file, from coreutils with modifications for
28610 the new TZ parsing.
28612 2004-10-27 Derek R. Price <derek@ximbiot.com>
28614 * lib/mktime.c (not_equal_tm): Remove redundant check.
28616 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
28618 * modules/regex (lib_SOURCES): Add regex.c.
28619 Reported by James Youngman in
28620 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
28622 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
28624 * lib/getdate.y: Use Bison 1.875 features, and some minor
28625 code cleanups. This change does not affect semantics.
28626 Don't include <stdlib.h>; no longer needed.
28627 Don't include unlocked-io.h; only the "#if TEST" code uses
28628 stdio, and performance isn't crucial there.
28629 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
28630 Bison 1.875 features as described below.
28631 All uses of "PC." replaced by "pc->".
28632 (YYSTYPE): Add a forward declaration.
28633 (yylex, yyerror): Use full prototypes in forward decls.
28634 Use "%pure-parser" rather than obsolescent "%pure_parser".
28635 Use %parse-param and %lex-param instead of obsolescent
28636 YYPARSE_PARAM and YYLEX_PARAM.
28637 (meridian_table, month_and_day_table, time_units_table,
28638 relative_time_table, time_zone_table, military_table,
28639 lookup_zone, lookup_word, get_date):
28640 Use NULL instead of 0 where appropriate.
28641 (to_hour): Avoid abort (), to avoid a dependency on
28643 (yyerror, yylex): Now accepts parser_control * arg.
28644 (main) [TEST]: Use '\0' rather than 0 for char.
28646 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
28648 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
28650 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
28652 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
28653 It's now the caller's responsibility to handle the case where
28654 !HAVE_GETPAGESIZE && !defined getpagesize.
28656 * lib/mktime.c (leapyear): Arg is long int, not int.
28658 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
28660 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
28662 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
28664 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
28665 missing. Problem reported by James Youngman.
28667 2004-10-16 Simon Josefsson <jas@extundo.com>
28669 * gnulib-tool: Fix comments. Fix parse problem.
28670 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
28672 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
28674 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
28675 implementation of getopt_long. Problem reported by Alexander Taler in:
28676 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
28678 2004-10-15 Bruno Haible <bruno@clisp.org>
28680 * gnulib-tool: Untabify. Initialize supplied_libname.
28681 (func_usage): More homogenous output.
28682 (func_modules_transitive_closure, func_modules_to_filelist,
28683 func_emit_lib_Makefile_am): New functions.
28684 (func_import): New function, extracted from big case statement. Use
28685 func_get_license, func_modules_transitive_closure,
28686 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
28687 opt_lgpl. Don't use test -a, as it's not portable.
28688 (func_create_testdir): Use func_modules_transitive_closure,
28689 func_modules_to_filelist, func_emit_lib_Makefile_am.
28691 2004-10-15 Bruno Haible <bruno@clisp.org>
28693 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
28695 2004-10-15 Bruno Haible <bruno@clisp.org>
28697 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
28698 the portions belonging to each module.
28699 Suggested by Derek Robert Price <derek@ximbiot.com>.
28701 2004-10-12 Simon Josefsson <jas@extundo.com>
28703 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
28704 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
28707 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
28709 * modules/vsnprintf: New file.
28711 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
28713 * m4/vsnprintf.m4: New file.
28715 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
28717 * lib/vsnprintf.h: New file.
28718 * lib/vsnprintf.c: New file.
28720 2004-10-11 Bruno Haible <bruno@clisp.org>
28722 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
28725 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
28727 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
28729 2004-10-07 Bruno Haible <bruno@clisp.org>
28731 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
28732 fits into the provided buffer.
28734 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
28736 * lib/diacrit.c, diacrit.h: Add GPL notice.
28738 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
28740 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
28741 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
28742 This avoids a potential constant-folding bug.
28744 2004-10-05 Bruno Haible <bruno@clisp.org>
28746 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
28747 for the declaration of strsep.
28749 2004-10-05 Bruno Haible <bruno@clisp.org>
28751 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
28753 2004-10-04 Simon Josefsson <jas@extundo.com>
28755 * modules/memmem: New file.
28756 * tests/test-memmem.c: New file.
28757 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
28759 2004-10-04 Simon Josefsson <jas@extundo.com>
28761 * m4/memmem.m4: New file.
28763 2004-10-04 Simon Josefsson <jas@extundo.com>
28765 * lib/memmem.h: New file.
28766 * lib/memmem.c: New file, taken from glibc.
28768 2004-10-04 Simon Josefsson <jas@extundo.com>
28770 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
28771 '#ifdef USE_UNLOCKED_IO'.
28773 2004-10-04 Simon Josefsson <jas@extundo.com>
28775 * config/srclist.txt: Add memmem from glibc.
28777 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28779 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
28781 * modules/argmatch, modules/argp, modules/closeout, modules/error,
28782 modules/exclude, modules/getdate, modules/getline,
28783 modules/getndelim2, modules/getpass, modules/getpass-gnu,
28784 modules/getusershell, modules/linebuffer, modules/md5,
28785 modules/mountlist, modules/posixtm, modules/readtokens,
28786 modules/readutmp, modules/regex, modules/sha1,
28787 modules/version-etc, modules/yesno:
28788 Remove dependency on unlocked-io.
28790 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28792 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
28794 * m4/unlocked-io.m4: Add copyright notice.
28795 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
28797 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28799 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
28800 * lib/xmalloc.c (xmemdup): Likewise.
28801 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
28802 XFREE): Remove these long-obsolescent macros.
28803 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
28804 * lib/xstrdup.c: Remove.
28806 * lib/regex.c (re_comp): Cast gettext return value to char *,
28807 Problem reported by Martin Neitzel via Mark D. Baushke.
28809 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
28811 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
28812 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
28813 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
28814 regex.c, sha1.c, version-etc.c, yesno.c:
28815 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
28816 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
28817 the includer's responsibility.
28819 Sync from coreutils.
28821 * lib/modechange.c (mode_compile): Don't decrement a pointer that
28822 points to the start of a string, as the C Standard says the
28823 resulting behavior is undefined.
28825 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
28826 simple -> simple_backups, numbered_existing ->
28827 numbered_existing_backups, numbered -> numbered_backups
28828 to avoid shadowing problems. All uses changed.
28829 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
28830 * lib/backupfile.c (check_extension, numbered_backup):
28831 Rename locals to avoid shadowing 'basename'.
28832 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
28835 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
28836 * lib/.cvsignore: Add getopt.h.
28838 2004-10-04 Bruno Haible <bruno@clisp.org>
28840 * modules/README: New file.
28841 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
28844 2004-10-02 Jim Meyering <jim@meyering.net>
28846 * lib/dirfd.h, getpagesize.h: Add copyright notice.
28848 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
28850 * modules/strsep: New file.
28852 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
28854 * m4/strsep.m4: New file.
28856 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
28858 * lib/strsep.h: New file.
28859 * lib/strsep.c: New file.
28861 2004-10-01 Simon Josefsson <jas@extundo.com>
28863 * lib/snprintf.c (snprintf): Handle size==0.
28865 2004-10-01 Simon Josefsson <jas@extundo.com>
28866 Bruno Haible <bruno@clisp.org>
28868 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
28869 (snprintf): Declare 'args'.
28871 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
28873 * lib/snprintf.c: Remove comments as to why each header is needed.
28875 2004-10-01 Bruno Haible <bruno@clisp.org>
28877 * MODULES.html.sh: Add strsep.
28879 2004-09-30 Simon Josefsson <jas@extundo.com>
28881 * modules/snprintf: New file.
28883 2004-09-30 Simon Josefsson <jas@extundo.com>
28885 * m4/snprintf.m4: New file.
28887 2004-09-30 Simon Josefsson <jas@extundo.com>
28889 * lib/snprintf.h, lib/snprintf.c: New files.
28891 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28893 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
28894 (hol_entry_help): Never translate an empty string.
28895 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
28896 * lib/argp.h (OPTION_NO_TRANS): New option.
28898 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
28900 * modules/argp (Maintainer): Replace Simon Josefsson
28901 by Sergey Poznyakoff.
28903 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
28905 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
28906 changes merged back into glibc.
28908 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
28910 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
28912 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
28914 * lib/xvasprintf.c: Include xalloc.h.
28915 (xvasprintf): Use xalloc_die, not xmalloc_die.
28917 2004-09-29 Bruno Haible <bruno@clisp.org>
28919 * modules/alloca-opt: New file, derived from modules/alloca.
28920 * modules/allocsa: Depend on alloca-opt instead of alloca.
28921 * modules/setenv: Likewise.
28922 * modules/vasnprintf: Likewise.
28923 * MODULES.html.sh: Add alloca-opt.
28925 2004-09-28 Simon Josefsson <jas@extundo.com>
28927 * gnulib-tool: New parameter --lgpl, to asseert that modules are
28928 LGPL, and to replace license template from GPL to LGPL.
28930 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
28932 * modules/dummy: Change license to LGPL.
28934 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
28936 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
28938 2004-09-24 Simon Josefsson <jas@extundo.com>
28940 * modules/minmax (License): Change from GPL to LGPL.
28942 2004-09-23 Simon Josefsson <jas@extundo.com>
28944 * gnulib-tool (--import): Typo.
28946 2004-09-23 Simon Josefsson <jas@extundo.com>
28948 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
28950 2004-09-22 Bruno Haible <bruno@clisp.org>
28952 * modules/*: Add 'License' field.
28953 * gnulib-tool: Accept --extract-license option.
28954 (func_get_license): New function.
28956 2004-09-21 Bruno Haible <bruno@clisp.org>
28958 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28959 Reported by Simon Josefsson.
28961 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
28963 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
28964 gl_AC_TYPE_LONG_LONG.
28966 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
28968 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
28970 2004-09-18 Simon Josefsson <jas@extundo.com>
28971 and Paul Eggert <eggert@cs.ucla.edu>
28973 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
28974 calls with autoreconf. Define GL_LIB.
28976 2004-09-14 Karl Berry <karl@gnu.org>
28978 * config/srclist.txt: unsync setenv.c, sigh.
28980 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
28982 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
28983 Problem reported by Bruno Haible in:
28984 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
28986 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
28988 * config/srclist.txt: Comment out argp-pvh.c.
28990 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
28992 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
28993 in case some system header has #define'd it. Problem reported by
28994 Soeren D. Schulze in
28995 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
28997 2004-09-09 Karl Berry <karl@gnu.org>
28999 * regex.[ch]: delete from the root. These were supposed to be
29000 synced with emacs cvs, but this has not happened for about
29001 a year, and anyway nothing else uses emacs regex.[ch].
29002 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
29003 lib/regex[.ch] is untouched.
29005 2004-09-09 Bruno Haible <bruno@clisp.org>
29007 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
29009 2004-09-09 Bruno Haible <bruno@clisp.org>
29011 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
29013 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
29015 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
29017 * modules/xvasprintf: New file.
29018 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
29020 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
29022 * lib/xvasprintf.h: New file.
29023 * lib/xvasprintf.c: New file.
29024 * lib/xasprintf.c: New file.
29026 2004-09-08 Bruno Haible <bruno@clisp.org>
29028 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
29030 2004-09-08 Bruno Haible <bruno@clisp.org>
29032 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
29033 length is > INT_MAX.
29034 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
29037 2004-09-08 Bruno Haible <bruno@clisp.org>
29039 * lib/stdint_.h: New file, taken from GNU clisp.
29041 2004-09-08 Bruno Haible <bruno@clisp.org>
29042 Oskar Liljeblad <oskar@osk.mine.nu>
29044 * modules/stdint: New file.
29045 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
29047 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
29049 Import from coreutils.
29050 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
29051 strings on unbounded length. alloca's performance benefits aren't
29052 that important here.
29053 (V_STRDUP): Remove.
29054 (parse_with_separator): New function, with most of the internals
29055 of the old parse_user_spec. Allow user to omit both user and group,
29056 for compatibility with FreeBSD.
29057 Clone only the user name, not the entire spec.
29058 Do not set *uid, *gid unless entirely successful.
29059 Avoid memory leak in some failing cases.
29060 Fix regression for USER.GROUP reported by Dmitry V. Levin in
29061 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
29062 (parse_user_spec): Rewrite to use parse_with_separator.
29064 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
29066 * modules/userspec: Don't depend on alloca.
29068 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
29070 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
29072 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
29074 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
29075 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
29076 utimecmp, utimens, xnanosleep. Rename sha to sha1.
29078 2004-08-16 Simon Josefsson <jas@extundo.com>
29080 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
29081 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
29082 Add --dry-run for --import.
29083 Let user provided command line parameters override configure.ac
29086 2004-08-12 Simon Josefsson <jas@extundo.com>
29088 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
29089 as discussed with Paul Eggert in threads rooted at
29090 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
29092 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
29093 Before, the test was empty, and relied on ELIDE_CODE in source
29095 (gl_PREREQ_GETOPT): New macro.
29096 (gl_GETOPT): Use them.
29098 2004-08-12 Simon Josefsson <jas@extundo.com>
29100 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
29101 * lib/getopt_.h: Renamed from getopt.h.
29103 2004-08-12 Simon Josefsson <jas@extundo.com>
29105 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
29106 Change default library name from libfoo to libgnu.
29107 Now, if you have a configure.ac that says:
29110 gl_MODULES(error getopt etcetera)
29112 you can import all you need by running:
29113 ../gnulib/gnulib-tool --import
29115 * modules/getopt (Files): Rename getopt.h to getopt_.h.
29116 (Makefile.am): Rewrite, use logic from argz.
29117 (Include): Use <getopt.h> instead of "getopt.h".
29119 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
29121 * modules/argp (Files): Add m4/unlocked-io.m4.
29122 (Depends-on): Add extensions.
29124 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
29126 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
29127 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
29128 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
29129 Check for program_invocation_name, program_invocation_short_name,
29130 flockfile, funlockfile, features.h, _getopt_long_only_r.
29132 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
29134 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
29135 its complicated substitute.
29136 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
29137 and program_invocation_name.
29138 (__argp_basename) [!_LIBC]: Remove; the only use was
29139 replaced by its body.
29140 (__argp_short_program_name): Change condition from
29141 !defined __argp_short_program_name to
29142 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
29143 to match argp-namefrob.h.
29144 (__argp_failure): Don't assume strerror_r returns char *.
29145 * lib/argp-parse.c (N_): Define unconditionally.
29146 (argp_default_options): Fill out initializers with 0 to avoid
29149 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
29151 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
29154 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
29156 Merge from coreutils.
29158 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
29160 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
29161 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
29163 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
29165 Merge from coreutils.
29167 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
29168 wmemchr or wmemcpy. Problem reported by Robert Dahlem
29169 for Reliant Unix 5.43.
29171 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
29172 (union fooround): Use uintmax_t, not long int.
29173 The rest is a merge from libc:
29174 [defined _LIBC]: Include <shlib-compat.h>.
29175 (_obstack) [defined _LIBC]: Remove after 2.3.4.
29177 * lib/settime.c (settime): Recode to avoid warning with
29180 * lib/strverscmp.c: Convert to UTF-8.
29182 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
29184 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29187 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
29189 * modules/xalloc-die: New file.
29190 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
29192 * modules/md5 (Files): Add m4/uint32_t.m4.
29193 * modules/sha1: Renamed from modules/sha.
29195 Rename lib/sha.h to lib/sha1.h.
29196 Rename lib/sha.c to lib/sha1.c.
29197 Rename m4/sha.m4 to m4/sha1.m4.
29198 (lib_SOURCES): Likewise.
29199 (configure.ac): Rename gl_SHA to gl_SHA1.
29200 (Include): sha.h -> sha1.h.
29202 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
29204 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
29205 * m4/sha1.m4: Renamed from sha.m4.
29206 (gl_SHA1): Renamed from gl_SHA. All uses changed.
29208 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
29210 * lib/obstack.h (obstack_empty_p):
29211 Don't assume that chunk->contents is suitably aligned.
29212 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
29213 Likewise. Problem reported by Benno in
29214 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
29216 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
29217 readable. This could be improved further but it'd take some work.
29219 2004-08-08 Simon Josefsson <jas@extundo.com>
29221 * modules/xgethostname (Depends-on): Remove exit and error (not
29224 * modules/getpass-gnu: Add getpass.h.
29225 (Depends-on): Add stdbool.
29226 * modules/getpass: Add getpass.h.
29228 2004-08-08 Simon Josefsson <jas@extundo.com>
29230 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
29231 Check getpass declaration.
29233 2004-08-08 Simon Josefsson <jas@extundo.com>
29235 * lib/xgethostname.c: Don't include error.h (not used).
29237 * lib/getpass.h: Add.
29238 * lib/getpass.c: Include getpass.h first.
29240 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
29242 * lib/xalloc-die.c: New file.
29243 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
29245 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
29246 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
29248 (_, N_, xalloc_die): Move to xalloc-die.c.
29249 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
29250 so that we needn't mess with xalloc_msg_memory_exhausted.
29252 * lib/sha1.h: Renamed from sha.h.
29253 (SHA1_H): Renamed from _SHA_H.
29254 (sha1_ctx): Renamed from sha_ctx.
29255 (sha1_init_ctx): Renamed from sha_init_ctx.
29256 (sha1_process_block): Renamed from sha_process_block.
29257 (sha1_process_bytes): Renamed from sha_process_bytes.
29258 (sha1_finish_ctx): Renamed from sha_finish_ctx.
29259 (sha1_read_ctx): Renamed from sha_read_ctx.
29260 (sha1_stream): Renamed from sha_stream.
29261 (sha1_buffer): Renamed from sha_buffer.
29262 * lib/sha1.c: Likewise; renamed from sha.c.
29263 Do not include <sys/types.h>.
29264 Include <stddef.h> rather than <stdlib.h>.
29266 2004-08-08 Bruno Haible <bruno@clisp.org>
29268 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
29269 FILESYSTEM_PREFIX_LEN.
29270 * lib/progreloc.c: Likewise.
29271 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
29273 2004-08-06 Simon Josefsson <jas@extundo.com>
29275 * modules/progname (Depends-on): Don't depend on stdbool.
29277 2004-08-06 Simon Josefsson <jas@extundo.com>
29279 * modules/getsubopt: New file.
29280 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29283 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
29285 More merge from coreutils.
29287 * m4/utimens.m4, m4/utimecmp.m4: New files.
29288 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
29289 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
29290 prereq.m4, sha.m4: Import changes from coreutils.
29292 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
29294 More merge from coreutils.
29295 * modules/raise, modules/readtokens0, modules/utimens:
29296 * modules/utimecmp, module/xnanosleep: New files.
29297 * modules/strftime: Add lib/strftime.h.
29298 Change include from <time.h> to "strftime.h".
29299 * modules/yesno: Add lib/yesno.h.
29300 * modules/backupfile: Remove lib/addext.c.
29301 * modules/euidaccess: Add stat-macros.h.
29302 * modules/canonicalize, modules/euidaccess,
29303 modules/filemode, modules/lchown, modules/makepath,
29304 modules/rmdir, modules/stat: Likewise.
29306 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
29309 * lib/argp-help.c (make_hol, hol_append): Don't assume that
29310 SIZE_MAX is a valid preprocessor constant.
29311 (__argp_basename): Change from "#ifndef _LIBC"
29312 to "#ifndef __argp_short_program_name", so that
29313 we don't compile these functions for tar.
29315 More merges from coreutils.
29316 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
29317 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
29318 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
29319 * lib/addext.c: Remove; no longer needed.
29320 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
29321 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
29322 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
29323 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
29324 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
29325 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
29326 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
29327 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
29328 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
29329 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29330 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
29331 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
29332 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
29333 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
29334 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
29335 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
29336 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
29337 Import changes from coreutils.
29339 2004-08-05 Simon Josefsson <jas@extundo.com>
29341 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
29343 2004-08-05 Simon Josefsson <jas@extundo.com>
29345 * m4/getsubopt.m4: New file.
29347 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
29349 Merge from coreutils.
29351 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
29352 * m4/getcwd-path-max.m4: New files.
29354 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
29355 FILESYSTEM_PREFIX_LEN ->
29356 FILE_SYSTEM_PREFIX_LEN.
29357 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
29358 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
29359 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
29360 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
29362 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
29363 prerequisite modules now handle the DOS stuff.
29364 Don't check for unistd.h.
29366 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
29368 Merge from coreutils.
29370 * lib/.gdb-history: Remove; this doesn't belong here.
29372 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
29373 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
29374 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
29375 * lib/getcwd.c: New files.
29377 * lib/dirname.h: Include <stdbool.h>.
29378 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
29379 for consistency with POSIX terminology. All uses changed.
29380 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
29381 (strip_trailing_slashes): Use bool for booleans.
29382 * lib/stripslash.c (strip_trailing_slashes): Likewise.
29384 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
29385 sometimes returns a positive errno value even when it succeeds.
29386 (print_errno_message) [!LIBC]: Fall back on strerror if
29387 __strerror_r fails.
29389 * lib/path-concat.c (mempcpy): Don't define if a system header defines
29390 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
29391 (longest_relative_suffix): New function.
29392 (path_concat): Use it. Assume first argument is not NULL.
29393 Port to DOS. Omit redundant separators.
29394 Report an error instead of returning NULL.
29395 Use mempcpy instead of memcpy.
29396 (xpath_concat): Remove: not declared or used.
29398 * lib/same.h: Include <stdbool.h>
29399 (same_name): Return bool, not int.
29400 * lib/same.c (same_name): Likewise.
29401 (errno): Don't declare; we assume C89 or better now.
29403 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
29404 if not already defined.
29406 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29407 * lib/dup-safer.c (errno): Likewise.
29409 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
29411 Merge from coreutils.
29412 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29413 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29414 * modules/path-concat: Don't depend on strdup.
29416 2004-08-03 Simon Josefsson <jas@extundo.com>
29418 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29419 * lib/progname.h: Don't include stdbool.h.
29421 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
29423 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29424 * MODULES.html.sh (func_all_modules): Remove fatal.
29426 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
29428 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29430 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
29432 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29435 2004-08-02 Simon Josefsson <jas@extundo.com>
29437 * lib/getsubopt.h: New file, with comments from Bruno Haible.
29438 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29439 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29441 2004-08-01 Simon Josefsson <jas@extundo.com>
29443 * lib/xgetdomainname.c: Include stdlib.h, for free().
29445 2004-07-19 Bruno Haible <bruno@clisp.org>
29447 * MODULES.html.sh (func_all_modules): Add dummy.
29449 2004-07-16 Simon Josefsson <jas@extundo.com>
29451 * modules/dummy: New file.
29453 2004-07-16 Simon Josefsson <jas@extundo.com>
29455 * lib/dummy.c: New file.
29457 2004-07-16 Bruno Haible <bruno@clisp.org>
29459 * lib/backupfile.h: Add extern "C" for C++.
29460 * lib/closeout.h: Likewise.
29461 * lib/copy-file.h: Likewise.
29462 * lib/findprog.h: Likewise.
29463 * lib/full-write.h: Likewise.
29464 * lib/pathname.h: Likewise.
29465 * lib/progname.h: Likewise.
29466 * lib/stpcpy.h: Likewise.
29467 * lib/stpncpy.h: Likewise.
29468 * lib/strcase.h: Likewise.
29469 * lib/strstr.h: Likewise.
29470 * lib/xalloc.h: Likewise.
29472 * lib/mbswidth.h: Add extern "C" for C++.
29473 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29475 2004-07-13 Robert Millan <robertmh@gnu.org>
29477 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29479 2004-07-09 Simon Josefsson <jas@extundo.com>
29481 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
29482 failed without this.)
29484 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
29486 * modules/chown (Files): Add lib/fchown-stub.c, since
29487 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29489 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
29491 * lib/fchown-stub.c: New file.
29493 2004-06-24 Jim Meyering <jim@meyering.net>
29495 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29497 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29499 * modules/argz: Omit "#include".
29501 * MODULES.html.sh (func_all_modules): Add calloc, to match
29502 2004-06-01 addition of calloc module.
29504 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29506 * m4/argz.m4: New file, which is autoupdated from libtool.
29508 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29510 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29513 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
29515 * config/srclist-update: Don't insist on "USA." before the
29516 close-comment, as libtool omits the period and puts the */ on a
29518 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29519 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29521 2004-06-22 Gary V. Vaughan <gary@gnu.org>
29523 * modules/argz: New file.
29524 * MODULES.html.sh (func_all_modules): Add argz.
29526 2004-06-12 Jim Meyering <jim@meyering.net>
29527 and Paul Eggert <eggert@cs.ucla.edu>
29529 * modules/hash (Files): Add lib/xalloc.h.
29530 * modules/pipe (Depends-on): Add wait-process.
29531 * modules/stat (Depends-on): Add xalloc.
29532 * modules/userspec (Files): Add lib/userspec.h.
29535 Upgrade from gettext-0.13.
29536 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29537 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29538 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29540 2004-06-10 Jim Meyering <jim@meyering.net>
29542 * lib/calloc.c: New file.
29544 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
29546 * lib/getdate.y (yylex): Allow space between sign and number.
29547 Problem reported by Dan Jacobson.
29549 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
29551 Merge from coreutils CVS.
29553 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29554 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29555 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29556 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29557 xstrtol.m4: Fix copyright date and/or serial number.
29559 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29560 See if we need an fchown replacement.
29561 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29562 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29563 and use the replacement function if we detect either defect.
29565 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29568 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
29569 and Jim Meyering <jim@meyering.net>
29571 Merge from coreutils CVS.
29573 * lib/stat-macros.h: New file, with contents from file-type.h
29574 and coreutils' system.h.
29575 * lib/file-type.c: Include "stat-macros.h".
29576 * lib/file-type.h (file_type): Move all macro definitions to new file,
29579 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
29580 Wrap old code with this conditional.
29581 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
29582 function that does not dereference symlinks.
29583 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
29585 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
29586 dependency problems.
29587 (xreadlink): Accept new arg SIZE, for efficiency.
29588 All decls and uses changed.
29589 * lib/xreadlink.h: Include <stddef.h>, for size_t.
29591 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
29592 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
29594 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
29597 2004-06-01 Jim Meyering <jim@meyering.net>
29599 * m4/calloc.m4: New file.
29601 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
29603 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
29604 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
29605 Also, fix a typo in a diagnostic.
29607 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
29609 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
29610 or AC_FUNC_REALLOC.
29612 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
29614 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
29615 macros to be defined.
29616 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
29617 the allocator returns NULL because the requested size is zero.
29619 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
29621 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
29622 var. Add comment explaining why libc still defines it. This
29623 merges the following patch from glibc:
29624 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
29626 2004-05-20 Andreas Schwab <schwab@suse.de>
29628 * m4/free.m4: Replace free if it not known to work, not the other
29631 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
29633 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
29634 present in glibc since revision 1.1 of this file.
29635 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
29636 obstack_alignment_mask, obstack_alloc, obstack_base,
29637 obstack_blank, obstack_blank_fast, obstack_chunk_size,
29638 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
29639 obstack_grow0, obstack_init, obstack_int_grow,
29640 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
29641 obstack_next_free, obstack_object_size, obstack_ptr_grow,
29642 obstack_ptr_grow_fast, obstack_room): Remove declarations of
29643 nonexistent functions.
29645 2004-05-18 Karl Berry <karl@gnu.org>
29647 * config/srclist.txt: break link for vasnprintf.c.
29649 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
29651 Port obstack to the AS/400, where pointers are 16 bytes wide and
29652 you cannot cast an integer to a valid pointer. This patch is
29653 currently waiting to be integrated into glibc; see
29654 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
29656 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
29657 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
29658 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
29659 (struct obstack): temp member is now a union of a pointer and
29660 an integer, instead of an integer. All integer uses changed.
29661 This does not affect the physical layout of struct obstack,
29662 except on hosts (like the AS/400) where the size or alignment of
29663 void * is greater than that of ptrdiff_t.
29664 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
29665 __STDC__)]: Store temporary in pointer member of union, not
29667 * lib/obstack.c: Include <stddef.h>, for offsetof.
29668 (struct fooalign): Remove; it doesn't need a name.
29669 (union fooround): Change double to long double, and add void *.
29670 (DEFAULT_ALIGNMENT): Use offsetof to compute.
29671 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
29672 not a macro. Hence the values are always int; so remove all
29673 casts-to-int in uses.
29675 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
29677 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
29678 we can get this patch merged into glibc.
29680 2004-05-17 Derek R. Price <derek@ximbiot.com>
29681 Paul Eggert <eggert@cs.ucla.edu>
29683 * m4/argp: Depend on alloca.
29685 2004-05-17 Derek R. Price <derek@ximbiot.com>
29686 Paul Eggert <eggert@cs.ucla.edu>
29688 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
29691 2004-05-17 Bruno Haible <bruno@clisp.org>
29693 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
29694 precision that consists of a '.' followed by an empty digit string.
29695 Patch by Tor Lillqvist <tml@iki.fi>.
29697 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
29699 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
29700 for backward compatibility with older code. We need our own
29701 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
29702 it under some other name, and our alloca.h will define it.
29704 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
29705 Derek Price <derek@ximbiot.com>
29707 * lib/alloca.c: Include <alloca.h>, to get our interface.
29708 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
29709 include <alloca.h> first. Use C89 prototype for alloca; this
29710 requires including <stddef.h> for size_t. Use extern "C" if C++.
29711 Use #elif for simplicity, since we can assume C89 now.
29712 Don't try to source the system alloca.h since it will not be found
29713 and to prevent recursively including its replacement.
29714 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
29715 * lib/regex.c: Likewise.
29717 2004-05-16 Derek Price <derek@ximbiot.com>
29718 Paul Eggert <eggert@cs.ucla.edu>
29720 getline cleanup. This changes the getndelim2 API: both order of
29721 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
29724 * lib/getline.c: Don't include stddef.h or stdio.h, since our
29725 interface does that.
29726 (getline): Always use getdelim, so that we don't have two
29727 copies of this code.
29728 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
29730 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
29731 (GETNDELIM2_MAXIMUM): New macro.
29732 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
29733 instead of the old practice of delim2==0. All callers changed.
29734 Return -1 on overflow, instead of returning junk.
29735 Do not set *linesize unless allocation succeeds.
29736 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
29737 that we include sys/types.h.
29738 * lib/getnline.h: Likewise.
29739 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
29740 (getndelim2): Reorder arguments.
29741 * lib/getnline.c (getnline, getndelim):
29742 Don't discard the NMAX argument.
29743 (getnline): Invoke getndelim, to avoid code duplication.
29744 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
29745 of (size_t) -1 by callers of the getnline family.
29747 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
29749 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
29750 Check for gettimeofday.
29751 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
29752 Check for settimeofday, stime.
29754 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
29756 * lib/nanosleep.c (suspended): Change its type from int to
29757 sig_atomic_t volatile.
29758 (first_call): Make it private to rpl_nanosleep, and have it
29759 be zero initially as that's a bit faster.
29760 (my_usleep): Round up fractional times instead of truncating them,
29761 as this is the usual meaning for 'sleep'.
29763 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
29765 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
29766 (ENOSYS): Define if not defined.
29767 (settime): Fall back on stime if it exists and settimeofday fails.
29768 But don't bother with fallbacks if a method fails with errno == EPERM.
29770 2004-05-11 Jim Meyering <jim@meyering.net>
29772 Prior to this change, the save_cwd caller required read access to the
29773 current directory on most systems (ones with the fchdir function).
29775 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
29776 fails, try write-only, and finally, resort to using xgetcwd.
29778 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
29780 * lib/obstack.c, obstack.h: Import changes from libc.
29782 2004-04-28 Bruno Haible <bruno@clisp.org>
29784 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
29785 also implicitly appends .exe to executables.
29786 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
29787 accepts Windows pathnames.
29788 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29789 Treat Cygwin like Windows, since it now accepts Windows pathnames.
29790 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
29791 Treat Cygwin like Windows, since it now accepts Windows pathnames.
29792 Reported by Derek Robert Price <derek@ximbiot.com>.
29794 2004-04-21 Karl Berry <karl@gnu.org>
29796 * config/srclist.txt (localcharset.c): break sync.
29798 2004-04-20 Paul Eggert <eggert@twinsun.com>
29800 * m4/host-os.m4: Add a copyright notice.
29802 2004-04-20 Jim Meyering <jim@meyering.net>
29804 Change UTILS_ to gl_ in AC_DEFINE'd names.
29805 Change utils_- and jm_-prefixed variables, too.
29806 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
29807 UTILS_FUNC_MKDIR_TRAILING_SLASH.
29808 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
29810 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
29811 Don't emit trailing blanks.
29812 Also rename jm_-prefixed variables to have gl_ prefix.
29814 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
29815 Also rename jm_-prefixed variables to have gl_ prefix.
29817 * m4/jm-macros.m4: Reflect the renamings.
29818 * m4/prereq.m4: Likewise.
29820 2004-04-20 Jim Meyering <jim@meyering.net>
29822 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
29825 2004-04-20 Jim Meyering <jim@meyering.net>
29826 Bruno Haible <bruno@clisp.org>
29828 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
29829 memory when realloc fails.
29831 2004-04-19 Jim Meyering <jim@meyering.net>
29833 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
29834 now that readutmp.c may call `free (0)'.
29836 2004-04-19 Bruno Haible <bruno@clisp.org>
29838 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
29839 * m4/inttypes_h.m4: Likewise.
29840 * m4/stdint_h.m4: Likewise.
29841 * m4/intmax_t.m4: Likewise.
29842 * m4/uintmax_t.m4: Likewise.
29844 2004-04-18 Jim Meyering <jim@meyering.net>
29846 * m4/prereq.m4: Don't forbid jm_ prefix.
29848 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
29849 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
29850 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
29851 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
29852 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
29853 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
29854 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
29855 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
29856 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
29857 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
29858 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
29859 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
29860 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
29861 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
29862 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
29863 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
29864 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
29865 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
29866 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
29868 2004-04-18 Jim Meyering <jim@meyering.net>
29870 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
29871 failure, don't leak memory and do call END_UTMP_ENT.
29873 2004-04-16 Jim Meyering <jim@meyering.net>
29875 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
29876 coreutils' stat program.
29877 (gl_PREREQ): Don't require jm_PREREQ_STAT.
29879 2004-04-11 Paul Eggert <eggert@twinsun.com>
29881 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
29883 (CHAR_BIT): Remove, since we assume C89.
29884 Include <stdint.h> if available, as per current Autoconf CVS advice.
29886 2004-03-31 Jim Meyering <jim@meyering.net>
29888 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
29889 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
29890 * m4/xalloc.m4: Likewise.
29892 2004-03-30 Paul Eggert <eggert@twinsun.com>
29894 Merge from coreutils.
29896 * m4/inttostr.m4: New file.
29897 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
29898 Require AM_STDBOOL_H and gl_TIMESPEC instead.
29899 Require gl_CLOCK_TIME.
29900 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
29902 2004-03-30 Paul Eggert <eggert@twinsun.com>
29904 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
29905 not bool, to be more consistent with Unix conventions.
29906 Suggested by Bruno Haible.
29908 Merge from coreutils.
29910 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
29911 * lib/umaxtostr.c: New files.
29913 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
29914 the usual <time.h> dance.
29915 (get_date): Change signature to support fractional time stamps.
29916 All callers changed.
29917 * lib/getdate.y: Include "getdate.h" first, as we can now
29918 assume C89 and don't need to worry about 'const'.
29919 Similarly, include "unlocked-io.h" near start, not in middle.
29920 Include <limits.h>.
29921 (textint.value): Use long int rather than int.
29922 (textint.digits): Use size_t rather than int.
29923 (BILLION, LOG10_BILLION): New constants.
29924 (parser_control): New member rel_ns. Members day_ordinal,
29925 time_zone, month, day, hour, minutes, rel_year, rel_month,
29926 rel_day, rel_hour, rel_minutes, rel_seconds
29927 are now long int, not int. Member seconds is now struct timespec,
29928 not int. New member timespec_seen. Members dates_seen, days_seen,
29929 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
29931 (%union.intval): Now long int, not int.
29932 New member timespec.
29933 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
29934 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
29935 (spec): Now is a timespec or an item list.
29936 (timespec, items): New nonterminals.
29937 (time, rel, relunit, number, get_date):
29938 Add support for fractional seconds.
29939 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
29940 (gmtime, localtime, mktime): Remove decls; not needed with C89.
29941 (to_hour): First arg is now long int, not int.
29942 (to_year): Returns long int, not int.
29943 Don't treat year -70 like 70.
29944 (tm_diff): Returns long int, not int.
29945 (lookup_word): Use bool instead of int when appropriate.
29946 (yylex): Use size_t for count, not int.
29947 Detect overflow when parsing large integer constants.
29948 Add support for fractions.
29949 (get_date): Make pointers 'const' if possible.
29950 Use more-portable code to detect integer overflow.
29951 (main) [TEST]: Adjust to above changes. Test for localtime failure.
29952 Don't use ctime; it's not reliable if the year has >4 digits.
29954 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
29955 This is for compatibility with BSD.
29957 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
29958 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
29959 From coreutils' system.h.
29961 * lib/userspec.c: Don't include "posixver.h".
29962 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
29963 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
29964 compatible extension. Simplify code by removing a boolean int
29965 that was always nonzero if a string was nonnull.
29967 2004-03-30 Jim Meyering <jim@meyering.net>
29969 Merge from coreutils.
29971 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
29972 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
29973 on some systems one must include <grp.h> before it.
29974 Reported by Christian Krackowizer.
29976 2004-03-30 Jim Meyering <jim@meyering.net>
29978 Merge from coreutils.
29980 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
29982 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
29983 an empty input stream.
29985 * lib/readtokens.c: Include <stdbool.h>.
29986 (readtoken): Use `size_t' rather than int/long.
29987 All callers adjusted.
29988 Use `bool' rather than `int' where appropriate.
29989 Use memset rather than an explicit loop.
29990 Use x2nrealloc rather than xrealloc.
29991 Allow the use of `\0' as a delimiter.
29992 (readtokens): Likewise.
29993 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
29995 2004-03-30 Jim Meyering <jim@meyering.net>
29997 * m4/realloc.m4: Remove file, since now it does no more than
29998 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
29999 the `configure.ac' section of module/realloc.
30000 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
30002 2004-03-30 Bruno Haible <bruno@clisp.org>
30004 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
30007 2004-03-29 Paul Eggert <eggert@twinsun.com>
30009 Merge changes to getloadavg.c from coreutils and Emacs.
30011 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
30012 Define to an expression, not to the empty string.
30013 Include cloexec.h and xalloc.h.
30014 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
30015 Use set_cloexec_flag rather than rolling our own.
30016 * lib/cloexec.c, lib/cloexec.h: New files.
30018 2004-03-29 Paul Eggert <eggert@twinsun.com>
30020 * m4/cloexec.m4: New file.
30022 2004-03-18 Paul Eggert <eggert@twinsun.com>
30024 * lib/getopt.h: Sync with libc CVS.
30026 2004-03-18 Paul Eggert <eggert@twinsun.com>
30027 Bruno Haible <bruno@clisp.org>
30029 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
30032 2004-03-18 Paul Eggert <eggert@twinsun.com>
30033 Bruno Haible <bruno@clisp.org>
30035 * lib/mbswidth.h: Include <wchar.h> only if
30036 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
30038 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
30040 2004-03-09 Paul Eggert <eggert@twinsun.com>
30042 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
30043 Sync with libc CVS.
30044 * lib/getopt_int.h: New file, also synced from libc.
30046 2004-03-09 Paul Eggert <eggert@twinsun.com>
30048 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
30049 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
30050 Bring back getopt.c, getopt.h, getopt1.c.
30052 2004-03-07 Paul Eggert <eggert@twinsun.com>
30054 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
30055 All uses changed. Check for sa_sigaction member; this fixes
30056 a bug first reported by Jason Andrade in
30057 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30059 2004-03-07 Paul Eggert <eggert@twinsun.com>
30061 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
30062 '#if' expressions. Unlike the code it replaces, it does not
30063 depend on (defined _SC_PAGESIZE). However, it does depend on
30064 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
30065 first reported by Jason Andrade in
30066 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30068 2004-02-25 Simon Josefsson <jas@extundo.com>
30070 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
30072 2004-02-25 Simon Josefsson <jas@extundo.com>
30074 * lib/strdup.h: New file.
30075 * lib/strdup.c: Include it.
30076 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
30077 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
30079 2004-02-23 Karl Berry <karl@gnu.org>
30081 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
30082 (from fencepost.gnu.org:/gd/gnuorg).
30084 2004-02-23 Karl Berry <karl@gnu.org>
30086 * config/srclistvars.sh (GNUORG) [karl]: redefine.
30087 * config/srclist.txt: add maintain/standards documents.
30089 2004-02-18 Bruno Haible <bruno@clisp.org>
30091 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
30092 Reported by Derek Robert Price <derek@ximbiot.com>.
30094 2004-02-16 Karl Berry <karl@gnu.org>
30096 * config/mkinstalldirs, install-sh: update from automake.
30098 2004-02-06 Karl Berry <karl@gnu.org>
30100 * m4/po.m4: update from gettext 0.14.1.
30102 2004-02-06 Karl Berry <karl@gnu.org>
30104 * lib/config.charset: update from gettext 0.14.1.
30106 2004-02-05 Paul Eggert <eggert@twinsun.com>
30108 Add comments and code, prompted by suggestions from Bruno Haible
30110 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
30111 describing the enum quoting_style values.
30112 * lib/quotearg.c (quotearg_alloc): New function.
30113 (quotearg_buffer_restyled): Treat lone { and } as special.
30114 Treat = as special. Work around bug with older shells
30115 that "see" a '\' that is really the 2nd byte of a multibyte char.
30116 Quote empty string with shell_quoting_style.
30118 2004-02-03 Bruno Haible <bruno@clisp.org>
30120 * m4/pipe.m4: New file, from GNU gettext.
30122 2004-02-03 Bruno Haible <bruno@clisp.org>
30124 * lib/pipe.h: New file, from GNU gettext.
30125 * lib/pipe.c: New file, from GNU gettext.
30127 2004-01-27 Bruno Haible <bruno@clisp.org>
30129 * m4/execute.m4: New file, from GNU gettext.
30131 2004-01-27 Bruno Haible <bruno@clisp.org>
30133 * lib/execute.h: New file, from GNU gettext.
30134 * lib/execute.c: New file, from GNU gettext.
30135 * lib/w32spawn.h: New file, from GNU gettext.
30137 2004-01-24 Paul Eggert <eggert@twinsun.com>
30139 Merge from diffutils.
30141 * lib/file-type.c (file_type): Add typed memory objects.
30142 * lib/file-type.h (S_TYPEISTMO): New macro.
30144 * lib/c-stack.h (c_stack_action): Remove argv argument.
30145 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
30146 (die): Don't calculate message unless segv_action returns.
30147 (get_stack_location, min_address_from_argv, max_address_from_argv,
30148 volatile stack_base, volatile_stack_size): Remove.
30149 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
30150 that every segmentation violation is a stack overflow. (Ouch!)
30151 See Debian bug 136249 (still outstanding) for more info about why
30152 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
30154 2004-01-24 Paul Eggert <eggert@twinsun.com>
30156 Exit-status fix from coreutils.
30158 Use exit_failure consistently in place of EXIT_FAILURE,
30159 so that program exit statuses are consistent on failure.
30161 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
30162 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
30163 * lib/argmatch.h: Comment fix to match the above.
30164 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
30165 Now a macro referring to exit_failure, instead of a separate
30166 variable. Include "exitfail.h" to get it.
30167 * lib/xstrtol.h: Include "exitfail.h".
30168 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
30170 * lib/long-options.c (parse_long_options): Use prototype
30171 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
30174 2004-01-21 Jim Meyering <jim@meyering.net>
30176 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
30177 so as not to conflict with a different-sized __mktime_internal
30178 function in GNU libc.
30179 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
30180 Problem building statically-linked `ls' reported by Michael Brunnbauer.
30182 2004-01-20 Karl Berry <karl@gnu.org>
30184 * config/config.guess: update from config.
30186 * config/srclistvars.sh: GNUWWWLICENSES for karl.
30188 2004-01-20 Bruno Haible <bruno@clisp.org>
30190 Safer stack allocation.
30191 * lib/setenv.c: Include allocsa.h.
30192 (alloca): Remove fallback definition.
30193 (freea): Remove macro.
30194 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
30197 2004-01-20 Bruno Haible <bruno@clisp.org>
30199 * m4/eealloc.m4: New file, from GNU gettext.
30201 2004-01-20 Bruno Haible <bruno@clisp.org>
30203 * m4/allocsa.m4: New file, from GNU gettext.
30205 2004-01-20 Bruno Haible <bruno@clisp.org>
30207 * lib/xallocsa.h: New file, from GNU gettext.
30208 * lib/xallocsa.c: New file, from GNU gettext.
30210 2004-01-20 Bruno Haible <bruno@clisp.org>
30212 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
30214 2004-01-20 Bruno Haible <bruno@clisp.org>
30216 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
30217 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
30220 2004-01-20 Bruno Haible <bruno@clisp.org>
30222 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
30225 2004-01-20 Bruno Haible <bruno@clisp.org>
30227 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
30229 2004-01-20 Bruno Haible <bruno@clisp.org>
30231 * lib/eealloc.h: New file.
30233 2004-01-20 Bruno Haible <bruno@clisp.org>
30235 * lib/binary-io.h: Avoid warnings on Cygwin.
30237 2004-01-20 Bruno Haible <bruno@clisp.org>
30239 * lib/allocsa.h: New file, from GNU gettext.
30240 * lib/allocsa.c: New file, from GNU gettext.
30242 2004-01-18 Karl Berry <karl@gnu.org>
30244 * doc/gpl.texi, doc/lgpl.texi: new files.
30246 2004-01-18 Karl Berry <karl@gnu.org>
30248 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
30249 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
30251 2004-01-15 Paul Eggert <eggert@twinsun.com>
30253 Merge from coreutils.
30255 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
30256 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
30257 (gl_DEFAULT_POSIX2_VERSION): Move
30258 the documentation from 'configure' into 'config.hin',
30259 so that 'configure --help' isn't burdened by it and
30260 we don't have to worry about its formatting there.
30261 Reword the documentation so that it's more succinct
30262 and can be run together into a single paragraph.
30263 * m4/same.m4 (gl_SAME): Check for pathconf.
30265 2004-01-15 Paul Eggert <eggert@twinsun.com>
30267 Merge from coreutils.
30269 * lib/posixver.c: Include posixver.h.
30271 * lib/same.c: Include <stdbool.h>, <limits.h>.
30272 (_POSIX_NAME_MAX): Define if not defined.
30274 (same_name): If file names are silently truncated, report
30275 that the file names are the same if they are the same after
30276 the silent truncation.
30278 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
30279 conversion function.
30280 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
30281 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
30284 2004-01-15 Jim Meyering <jim@meyering.net>
30286 Merge from coreutils.
30288 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
30289 if no library is required.
30290 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
30291 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
30292 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
30293 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
30294 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
30295 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
30296 value, $ac_cv_search_crypt, if it's "none required".
30297 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
30298 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
30299 not gl_FUNC_GETLOADAVG.
30300 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
30301 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
30303 2004-01-15 Jim Meyering <jim@meyering.net>
30305 Merge from coreutils.
30307 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
30308 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
30309 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
30311 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
30312 optional configure-time default.
30314 * lib/version-etc.c (version_etc_copyright): Update copyright date.
30316 * lib/xreadlink.c (xreadlink): Correct outdated comment.
30318 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
30320 Merge from coreutils.
30322 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
30323 value, $ac_cv_search_nanosleep, if it's "none required".
30325 2004-01-14 Paul Eggert <eggert@twinsun.com>
30327 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
30328 with like-named macro in fnmatch.c.
30329 (EXT): Use an internal constant instead.
30331 Merge fnmatch patches from glibc.
30332 * lib/fnmatch.c (mbsinit): Remove define.
30333 Add libc_hidden_ver (__fnmatch, fnmatch).
30334 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
30335 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
30337 2004-01-14 Karl Berry <karl@gnu.org>
30339 * config/install-sh: update from automake.
30341 2004-01-13 Karl Berry <karl@gnu.org>
30343 * config/install-sh: update from automake.
30345 2004-01-09 Karl Berry <karl@gnu.org>
30347 * config/install-sh: update from automake.
30349 2004-01-05 Karl Berry <karl@gnu.org>
30351 * config/config.{sub,guess}: update from config.
30353 2003-12-31 Karl Berry <karl@gnu.org>
30355 * config/depcomp: update from automake.
30357 2003-12-14 Karl Berry <karl@gnu.org>
30359 * lib/config.charset: update from gettext-runtime.
30361 2003-12-03 Paul Eggert <eggert@twinsun.com>
30363 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
30364 Bug reported by Alfred M. Szmidt.
30366 2003-12-03 Bruno Haible <bruno@clisp.org>
30368 * m4/gettext.m4: Upgrade from gettext-0.13.
30369 * m4/po.m4: Upgrade from gettext-0.13.
30370 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
30371 * m4/intmax.m4: New file, from gettext-0.13.
30372 * m4/printf-posix.m4: New file, from gettext-0.13.
30374 2003-11-29 Karl Berry <karl@gnu.org>
30376 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
30378 2003-11-25 Paul Eggert <eggert@twinsun.com>
30379 Bruno Haible <bruno@clisp.org>
30381 * lib/printf-parse.h: Don't include sys/types.h.
30382 (ARG_NONE): New macro.
30383 (char_directive): Change type of *arg_index fields to size_t.
30384 * lib/printf-parse.c: Don't include sys/types.h.
30385 (SSIZE_MAX): Remove macro.
30386 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
30387 Remove unnecessary overflow check.
30388 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
30391 2003-11-25 Bruno Haible <bruno@clisp.org>
30393 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
30395 2003-11-25 Bruno Haible <bruno@clisp.org>
30397 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
30400 2003-11-24 Paul Eggert <eggert@twinsun.com>
30402 * modules/alloca: Remove dependency on xalloc.
30404 2003-11-24 Paul Eggert <eggert@twinsun.com>
30406 * lib/alloca.c: Remove dependency on xalloc module.
30407 (xalloc_die): Remove.
30408 (memory_full) [!defined emacs]: New macro.
30409 [!defined emacs]: Don't include xalloc.h.
30410 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30411 address arithmetic overflows. Change datatypes a bit to avoid
30414 2003-11-22 Jim Meyering <jim@meyering.net>
30416 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30419 2003-11-21 Karl Berry <karl@gnu.org>
30421 * config/config.{sub,guess}: update from config.
30423 2003-11-18 Karl Berry <karl@gnu.org>
30425 * config/config.{sub,guess}: update from config.
30427 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30429 2003-11-17 Paul Eggert <eggert@twinsun.com>
30431 * README: Mention that S+T cannot overflow if S is the size of
30432 an existing object and T is sufficiently small.
30434 2003-11-17 Jim Meyering <jim@meyering.net>
30436 On systems without utime and without a utimes function capable of
30437 dealing with a NULL struct utimbuf* argument, this utime replacement
30438 could -- in unusual circumstances -- leak a file descriptor.
30439 * lib/utime.c: Include <unistd.h> and <errno.h>.
30440 (utime_null): Be sure to close `fd' and to preserve errno.
30441 Reported by Geoff Collyer via Arnold Robbins.
30443 2003-11-17 Bruno Haible <bruno@clisp.org>
30445 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30446 (Depends-on): Add xsize.
30448 2003-11-17 Bruno Haible <bruno@clisp.org>
30450 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30452 2003-11-17 Bruno Haible <bruno@clisp.org>
30454 * lib/vasnprintf.c (alloca): Remove fallback definition.
30455 (freea): Remove definition.
30456 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30457 Reported by Paul Eggert.
30459 2003-11-16 Paul Eggert <eggert@twinsun.com>
30460 Bruno Haible <bruno@clisp.org>
30462 Protect against address arithmetic overflow.
30463 * lib/printf-args.h: Include stddef.h.
30464 (arguments): Change type of field 'count' to size_t.
30465 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30466 'unsigned int' where appropriate.
30467 * lib/printf-parse.h: Include sys/types.h.
30468 (char_directive): Change type of *arg_index fields to ssize_t.
30469 (char_directives): Change type of fields 'count', max_*_length to
30471 * lib/printf-parse.c: Include sys/types.h and xsize.h.
30472 (SSIZE_MAX): Define fallback value.
30473 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30474 instead of 'int' where appropriate. Check a_allocated, d_allocated
30475 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30476 * lib/vasnprintf.c: Include xsize.h.
30477 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30478 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30479 overflow. Avoid wraparound when converting a width or precision from
30482 2003-11-16 Bruno Haible <bruno@clisp.org>
30484 Update from GNU gettext.
30485 * lib/printf-parse.c: Generalize to it can be compiled for wide
30487 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30488 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30489 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30490 SNPRINTF): New macros.
30491 Don't include <alloca.h> if the file is used inside libintl.
30492 (local_wcslen): New function, for Solaris 2.5.1.
30493 (VASNPRINTF): Use it instead of wcslen.
30495 2003-11-16 Bruno Haible <bruno@clisp.org>
30497 * lib/xsize.h (xmax): New function.
30498 (xsum, xsum3, xsum4): Declare as "pure" functions.
30500 2003-11-12 Paul Eggert <eggert@twinsun.com>
30502 * modules/xalloc (Files): Undo latest change, since xalloc.h
30503 no longer needs SIZE_MAX or PTRDIFF_MAX.
30505 2003-11-12 Paul Eggert <eggert@twinsun.com>
30507 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30510 2003-11-12 Paul Eggert <eggert@twinsun.com>
30512 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30513 "return", to pacify some unknown compiler. Problem reported
30514 by Joerg Schilling.
30516 2003-11-12 Paul Eggert <eggert@twinsun.com>
30518 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30519 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30520 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
30521 heuristic is just as accurate as far as we know, and it removes a
30522 dependency on size_max.m4 and ptrdiff_max.m4.
30524 2003-11-11 Bruno Haible <bruno@clisp.org>
30526 * modules/xsize (Files): Add m4/size_max.m4.
30527 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30529 2003-11-11 Bruno Haible <bruno@clisp.org>
30531 * m4/size_max.m4: New file.
30532 * m4/ptrdiff_max.m4: New file.
30533 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30534 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30535 (gl_XALLOC): Invoke it.
30537 2003-11-11 Bruno Haible <bruno@clisp.org>
30539 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30540 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30543 2003-11-10 Paul Eggert <eggert@twinsun.com>
30545 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30546 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30547 rejected some allocations of exactly SIZE_MAX - 2 bytes.
30549 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30550 not (size_t) -1, since it's defined here.
30552 2003-11-09 Karl Berry <karl@gnu.org>
30554 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30556 2003-11-06 Paul Eggert <eggert@twinsun.com>
30558 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30559 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30560 Reject sizes of exactly SIZE_MAX bytes.
30561 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30562 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30564 2003-11-05 Bruno Haible <bruno@clisp.org>
30566 * lib/xsize.h: Include limits.h, to avoid a possible collision with
30567 SIZE_MAX defined in <limits.h> on Solaris.
30569 2003-11-04 Jim Meyering <jim@meyering.net>
30571 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30572 variable names, rather than @VAR@.
30573 * modules/poll: Likewise.
30575 2003-11-04 Bruno Haible <bruno@clisp.org>
30577 * modules/xsize: New file.
30578 * modules/linebreak: Depend on xsize.
30579 * MODULES.html.sh (func_all_modules): Add xsize.
30581 2003-11-04 Bruno Haible <bruno@clisp.org>
30583 * m4/xsize.m4: New file.
30585 2003-11-04 Bruno Haible <bruno@clisp.org>
30587 * lib/xsize.h: New file.
30588 * lib/linebreak.c: Include xsize.h.
30589 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
30590 argument for overflow.
30591 Suggested by Paul Eggert.
30593 2003-11-03 Karl Berry <karl@gnu.org>
30595 * config/config.{guess,sub}: update from config.
30597 2003-11-03 Jim Meyering <jim@meyering.net>
30599 * modules/userspec (lib_SOURCES): Add userspec.h.
30600 (Include): Add "userspec.h".
30601 Improve description.
30603 2003-11-03 Jim Meyering <jim@meyering.net>
30605 * lib/userspec.c: Include "userspec.h".
30606 * lib/userspec.h: New file.
30608 2003-11-03 Bruno Haible <bruno@clisp.org>
30610 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
30612 2003-11-03 Bruno Haible <bruno@clisp.org>
30614 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
30615 available, to avoid (extremely rare) race condition.
30616 Suggested by Paul Eggert.
30618 2003-11-02 Karl Berry <karl@gnu.org>
30620 * config/srclist.txt (vasprintf.c): sync broken, sigh.
30622 2003-10-31 Paul Eggert <eggert@twinsun.com>
30624 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
30625 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
30626 (read_filesystem_list): Set and use me_type_malloced.
30627 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
30628 whatever the type happens to be), for brevity and consistency.
30629 Check for size calculation overflow on Alphas running OSF/1.
30631 2003-10-31 Jim Meyering <jim@meyering.net>
30633 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
30635 * lib/linebuffer.c: Include <string.h> for declaration of memset.
30637 2003-10-30 Paul Eggert <eggert@twinsun.com>
30638 Bruno Haible <bruno@clisp.org>
30640 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
30641 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
30643 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
30645 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
30646 netbsd*-gnu*. Suggested by Robert Millan.
30648 2003-10-29 Paul Eggert <eggert@twinsun.com>
30650 * modules/group-member: Depend on stdbool.
30652 2003-10-29 Paul Eggert <eggert@twinsun.com>
30654 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
30656 2003-10-29 Paul Eggert <eggert@twinsun.com>
30658 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
30659 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
30660 after the 'gnu' in these cases. This fixes some bugs in the
30661 previous change, and is based on suggestions by Robert Millan.
30663 2003-10-29 Paul Eggert <eggert@twinsun.com>
30665 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
30666 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
30668 * lib/quotearg.c (quotearg_n_options): Use it.
30669 * lib/group-member.c: Include <stdbool.h>.
30670 (free_group_info): Arg is now const *; don't free arg.
30671 (get_group_info): Now returns bool and accepts struct group_info *,
30672 rather than returning a malloc'ed struct group_info *.
30673 All uses changed. Check for overflow in internal size calculation.
30675 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
30676 rather than xmalloc/xrealloc.
30677 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
30678 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
30679 conformance bug: the old code used a pointer after freeing the
30680 storage that it addressed.
30681 * lib/hash.c (hash_initialize): Simplify the code by using
30682 xalloc_oversized rather than doing it by hand.
30683 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
30684 the buffer preserved. Use free and xmalloc instead.
30685 * lib/quotearg.c (quotearg_n_options): Likewise.
30686 Use a simpler test for size overflow. Don't use xalloc_oversized
30687 because unsigned int might be wider than size_t (!); this suggests
30688 that we should switch from unsigned int to size_t for slot numbers.
30690 2003-10-28 Paul Eggert <eggert@twinsun.com>
30692 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
30693 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
30694 NetBSD kernels. Requested by Richard Stallman.
30696 2003-10-27 Paul Eggert <eggert@twinsun.com>
30698 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
30699 to allocate the returned structure. Do not allocate a subarray,
30700 as x2nrealloc will do that.
30701 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
30702 instead of xnrealloc.
30703 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
30705 2003-10-27 Bruno Haible <bruno@clisp.org>
30707 * lib/stdbool_.h: Better support for BeOS.
30709 2003-10-26 Paul Eggert <eggert@twinsun.com>
30711 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
30714 2003-10-26 Paul Eggert <eggert@twinsun.com>
30716 * lib/xalloc.h (xalloc_oversized): New static inline function, for
30717 callers that want to do their own size-overflow checking. Include
30718 <stdbool.h>, since xalloc_oversized returns bool.
30719 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
30720 to use xalloc_oversized.
30722 Add two functions x2realloc, x2nrealloc, for programs that grow
30723 arrays dynamically by doubling their sizes.
30724 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
30725 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
30728 Port to C99 semantics for 'inline' of external functions.
30729 Bug reported by Bruno Haible.
30730 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
30731 with the old contents of xnmalloc.
30732 (xnmalloc, xmalloc): Use it.
30733 (xnrealloc_inline): New static inline function,
30734 with the old contents of xnrealloc.
30735 (xnrealloc, xrealloc): Use it.
30737 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
30740 2003-10-26 Karl Berry <karl@gnu.org>
30742 * config/srclist.txt (COPYING.DOC): no longer available from
30743 /gd/gnuorg; don't know where the ultimate source is.
30745 2003-10-25 Paul Eggert <eggert@twinsun.com>
30747 Fix several address-calculation bugs in the hash modules,
30748 plus some minor code cleanup.
30750 * lib/hash.h: Include <stdbool.h>, for bool.
30751 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
30752 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
30753 hash_get_n_entries, hash_get_max_bucket_length,
30754 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
30755 hash_rehash): Use size_t rather than unsigned.
30756 * lib/hash.c (struct hash_table, hash_get_n_buckets,
30757 hash_get_n_buckets_used, hash_get_n_entries,
30758 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
30759 hash_get_entries, hash_do_for_each, hash_string, is_prime,
30760 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
30762 (SIZE_MAX): Define if not defined.
30763 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
30764 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
30766 Use const * when possible.
30767 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
30768 (check_tuning): Fix bug: if tuning parameters were very close to
30769 0 or 1, rounding errors could have caused subscript violations.
30770 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
30771 (hash_initialize): Add 'fail:' label
30772 to free table and return NULL, and use it to simplify code.
30773 Use calloc rather than clearing the storage ourself.
30774 (hash_initialize, hash_rehash): Check for arithmetic overflow in
30775 buffer size calculations.
30776 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
30777 Include <stddef.h>, for size_t.
30778 * lib/hash-pjw.c (hash_pjw): Likewise.
30779 Switch to method described by Bruno Haible.
30780 Include <limits.h>, for CHAR_BIT.
30781 (SIZE_BITS): New macro.
30783 2003-10-23 Paul Eggert <eggert@twinsun.com>
30785 * m4/getline.m4 (AM_FUNC_GETLINE):
30786 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
30787 hosts. Problem reported by Derek Robert Price in
30788 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
30789 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
30790 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
30792 2003-10-21 Paul Eggert <eggert@twinsun.com>
30794 * lib/getndelim2.c (getndelim2): When size calculation overflows,
30795 ceiling the allocation at NMAX bytes rather than silently
30796 discarding input bytes before NMAX is reached. This makes
30797 a difference only if NMAX exceeds SIZE_MAX / 2.
30799 * lib/obstack.c: Merge from glibc.
30800 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
30801 Add libc_hidden_def (_obstack_newchunk).
30802 (_obstack_free) [! defined _LIBC]: Remove.
30803 [defined _LIBC]: Make a strong alias from obstack_free, rather than
30804 a clone of the function body.
30805 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
30806 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
30808 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
30810 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
30813 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
30814 (obstack_ptr_grow_fast, obstack_int_grow_fast):
30815 Don't use lvalue casts, as GCC plans to remove support for them
30816 in GCC 3.5. Reported by Joseph S. Myers. This bug
30817 was also present in the non-GCC version, indicating that this
30818 code had always been buggy and had never been widely used.
30819 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
30820 Use the fast variant of each macro, rather than copying the
30821 definiens of the fast variant; that way, we'll be more likely to
30822 catch future bugs in the fast variants.
30824 2003-10-20 Bruno Haible <bruno@clisp.org>
30826 * modules/wait-process: New file.
30827 * MODULES.html.sh (func_all_modules): Add wait-process.
30829 2003-10-20 Bruno Haible <bruno@clisp.org>
30831 * m4/wait-process.m4: New file.
30833 2003-10-20 Bruno Haible <bruno@clisp.org>
30835 * lib/wait-process.h: New file, from GNU gettext.
30836 * lib/wait-process.c: New file, from GNU gettext.
30838 2003-10-19 Jim Meyering <jim@meyering.net>
30840 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
30843 2003-10-18 Karl Berry <karl@gnu.org>
30845 * config/config.guess: update from config.
30847 2003-10-16 Paul Eggert <eggert@twinsun.com>
30849 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
30850 (getgroups): First arg is int, not size_t.
30851 Don't let 'free' mangle errno.
30853 2003-10-16 Paul Eggert <eggert@twinsun.com>
30855 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
30857 2003-10-16 Karl Berry <karl@gnu.org>
30859 * config/config.{guess,sub}: update from config.
30861 2003-10-16 Jim Meyering <jim@meyering.net>
30863 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
30866 2003-10-15 Paul Eggert <eggert@twinsun.com>
30868 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
30869 (SIZE_MAX): Remove.
30870 (new_exclude, add_exclude_file): Initial size no longer needs to
30872 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
30873 our own address arithmetic overflow checking.
30875 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
30876 (fnmatch): Do not alloca more than 2000 wide characters;
30877 instead, use malloc for large buffers.
30878 Check for address arithmetic overflow, and return -1
30879 with errno set to ENOMEM in that case.
30880 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
30881 (NEW_PATTERN): Do not alloca more than 8000 bytes;
30882 instead, return -1. Check for address arithmetic overflow.
30884 2003-10-14 Paul Eggert <eggert@twinsun.com>
30886 Handle invalid suffixes and overflow independently, so that
30887 callers can treat them independently as needed. Fix some bugs in
30888 suffix handling, e.g., "100k@" was not diagnosed as an invalid
30889 suffix for a human-readable blocksize. The major caller-visible
30890 change is the addition of a new
30891 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
30892 that both overflow and suffix chars were found.
30894 * lib/human.c (humblock): Don't check separately for invalid suffix
30895 char; that is xstrtoumax's job (now that its bug is fixed).
30896 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
30897 INTMAX_MAX]: New macros.
30898 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
30899 TYPE_MAXIMUM): New macros.
30900 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
30901 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
30902 if overflow occurs, as it's what __strtol does and it's more useful
30904 (__xstrtol): If __strtol reports some error other than ERANGE,
30905 reflect it to the caller as LONGINT_INVALID. If it reports
30906 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
30907 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
30908 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
30910 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
30911 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
30912 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
30913 [defined UINTMAX_MAX]: New macros.
30915 2003-10-14 Bruno Haible <bruno@clisp.org>
30917 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
30919 2003-10-14 Bruno Haible <bruno@clisp.org>
30921 * m4/sig_atomic_t: New file, from GNU gettext.
30922 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
30924 2003-10-14 Bruno Haible <bruno@clisp.org>
30926 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
30927 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
30928 Also use volatile where needed.
30930 2003-10-12 Paul Eggert <eggert@twinsun.com>
30932 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
30933 Change maintainer from Bruno Haible to 'all'.
30935 2003-10-12 Paul Eggert <eggert@twinsun.com>
30937 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
30939 2003-10-12 Paul Eggert <eggert@twinsun.com>
30941 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
30942 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
30943 and define in terms of the other primitives.
30944 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
30945 (SIZE_MAX): Define if not already defined.
30946 (array_size_overflow): New function.
30947 (xalloc_die): Abort instead of exiting if 'error' returns.
30948 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
30949 (xmalloc, xrealloc): Use them.
30950 (xcalloc): Check for address arithmetic overflow.
30951 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
30952 a bit faster than strcpy.
30954 2003-10-10 Simon Josefsson <jas@extundo.com>
30956 * modules/argp (Depends-on): Add restrict and strcase.
30958 2003-10-10 Simon Josefsson <jas@extundo.com>
30960 * m4/argp.m4: Add AC_C_INLINE.
30962 2003-10-08 Paul Eggert <eggert@twinsun.com>
30964 Merge getpass from libc, plus a few fixes.
30966 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
30967 Include <stdbool.h>.
30968 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
30969 __fsetlocking to empty.
30970 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
30971 do include <bits/libc-lock.h>.
30972 Do not include <fcntl.h>; not needed.
30973 [_LIBC]: Include <wchar.h>.
30974 (NOTCANCEL_MODE): New macro.
30975 (flockfile, funlockfile) [_LIBC]: New macros.
30976 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
30977 [!_LIBC]: New macros.
30978 (call_fclose): New function.
30979 (getpass): Use it. Save tty stream separately; this simplifies the
30980 code and makes it more reliable if stdin happens to equal stdout.
30981 Invoke __fsetlocking on tty.
30982 Handle thread cancellation if needed.
30983 Namespace cleanup (use __tcgetattr, __getline).
30984 Use bool for Booleans.
30985 [USE_IN_LIBIO]: Handle wide streams.
30986 [!_LIBC]: Unconditionally do the fseek, since we don't know what
30987 stream might go where.
30989 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
30990 doesn't have to include <stdio.h> before us.
30991 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
30992 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
30993 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
30994 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
30995 if not declared, so that we can use getpass.c code from libc without
30997 (flockfile, ftrylockfile, funlockfile): New macros.
30999 2003-10-08 Paul Eggert <eggert@twinsun.com>
31001 * modules/getpass: Depend on stdbool.
31003 2003-10-08 Paul Eggert <eggert@twinsun.com>
31005 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
31007 2003-10-07 Karl Berry <karl@gnu.org>
31009 * config/config.{guess,sub}: update from config.
31011 2003-10-06 Jim Meyering <jim@meyering.net>
31012 Bruno Haible <bruno@clisp.org>
31014 This lets translators provide better translations for the
31015 "Written by ..." part of --version output.
31016 * lib/version-etc.h: Include stdarg.h.
31017 (version_etc_copyright): Declare as readonly.
31018 (version_etc): Make this function variadic with a NULL-terminated list
31019 of author name strings.
31020 (version_etc_va): New declaration.
31021 * lib/version-etc.c: Include stdarg.h, stdlib.h.
31022 (version_etc_copyright): Declare as readonly.
31023 (version_etc_va): New function. Provide a different translatable string
31024 for each possible number of authors < 10. Abbreviate when there are 10
31026 (version_etc): Make this function variadic. Call version_etc_va.
31027 Suggestion from Gary V. Vaughan.
31029 * lib/long-options.h (parse_long_options): Change prototype: the
31030 authors string is moved to the end and becomes variadic.
31031 * lib/long-options.c: Include stdarg.h.
31032 (parse_long_options): Make this function variadic, too.
31033 Call version_etc_va, not version_etc.
31035 2003-10-06 Bruno Haible <bruno@clisp.org>
31037 * modules/version-etc-2: Remove file.
31038 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
31040 2003-10-06 Bruno Haible <bruno@clisp.org>
31042 * modules/fatal-signal: New file.
31043 * MODULES.html.sh (func_all_modules): Add fatal-signal.
31045 2003-10-06 Bruno Haible <bruno@clisp.org>
31047 * m4/fatal-signal.m4: New file.
31048 * m4/signalblocking.m4: New file, from GNU gettext.
31050 2003-10-06 Bruno Haible <bruno@clisp.org>
31052 * lib/version-etc-2.h: Remove file.
31053 * lib/version-etc-2.c: Remove file.
31055 2003-10-06 Bruno Haible <bruno@clisp.org>
31057 * lib/fatal-signal.h: New file, from GNU gettext.
31058 * lib/fatal-signal.c: New file, from GNU gettext.
31060 2003-10-05 Paul Eggert <eggert@twinsun.com>
31062 * README: Rework advice for preventing empty .o files.
31063 Don't recommend ELIDE constructs. Recommend <stddef.h>,
31066 2003-10-04 Karl Berry <karl@gnu.org>
31068 * lib/argp*: update from libc.
31070 2003-10-04 Karl Berry <karl@gnu.org>
31072 * config/config.{guess,sub}: update from config.
31074 2003-10-02 Bruno Haible <bruno@clisp.org>
31076 * modules/lchown (Include): Add lchown.h.
31077 * modules/time_r (Include): Use "..." syntax.
31078 * modules/xgetdomainname (Include): Add xgetdomainname.h.
31080 2003-10-01 Simon Josefsson <jas@extundo.com>
31082 * MODULES.html.sh (func_all_modules): Move gethostname from section
31083 'based on' to section 'lacking' POSIX:2001.
31085 2003-10-01 Larry Jones <lawrence.jones@eds.com>
31087 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
31088 to output mode on the same stream.
31090 2003-09-29 Paul Eggert <eggert@twinsun.com>
31092 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
31093 Fix arg typo in previous patch.
31095 2003-09-28 Jim Meyering <jim@meyering.net>
31097 * lib/error.c: Correct cpp indentation.
31099 2003-09-27 Paul Eggert <eggert@twinsun.com>
31101 * modules/free: New file.
31103 2003-09-27 Paul Eggert <eggert@twinsun.com>
31105 * m4/free.m4: New file.
31107 2003-09-27 Paul Eggert <eggert@twinsun.com>
31109 * lib/minmax.h (MIN, MAX)
31110 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
31111 Omit the special code that used __typeof__, since we worry that
31112 it could be more trouble than it's worth. See:
31113 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
31114 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
31116 * lib/free.c: New file.
31118 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
31120 Trivial fixes to Makefile.am parts of module listings.
31121 * modules/strstr: Append strstr.h to lib_SOURCES.
31122 * modules/strcase: Likewise, for strcase.h.
31124 2003-09-27 Karl Berry <karl@gnu.org>
31126 * config/mkinstalldirs: update from automake.
31128 2003-09-26 Paul Eggert <eggert@twinsun.com>
31130 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
31131 (error_tail): Do not loop, reallocating temporary buffer, since
31132 the output cannot contain more wide characters than the input
31133 contains bytes, the size must be big enough already. This avoids
31134 one potential size overflow calculation. Check for size overflow
31135 when calculating temporary buffer size. Free temporary buffer
31136 when done, if it was allocated with malloc; this plugs a memory
31137 leak. Remove casts from void * to pointers, that are no longer
31138 needed now that we're assuming C89 or better.
31140 Merge error changes from glibc.
31142 * lib/error.c, error.h: Update copyright notice header to match glibc.
31143 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
31144 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
31145 Disable cancellation while printing error.
31146 * lib/error.h: Prepend __ to parameter names.
31148 2003-09-26 Jim Meyering <jim@meyering.net>
31150 * lib/error.c (error_tail): Move some declarations
31151 into inner scope where the local variables are used.
31153 2003-09-26 Bruno Haible <bruno@clisp.org>
31155 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
31157 Don't define stpncpy through config.h; it's now done through stpncpy.h.
31159 2003-09-26 Bruno Haible <bruno@clisp.org>
31161 * lib/stpncpy.h (gnu_stpncpy): New declaration.
31162 (stpncpy): Define as alias for gnu_stpncpy.
31163 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
31165 2003-09-25 Simon Josefsson <jas@extundo.com>
31167 * lib/xgetdomainname.h: New file.
31168 * lib/xgetdomainname.c: New file.
31170 2003-09-25 Simon Josefsson <jas@extundo.com>
31171 Bruno Haible <bruno@clisp.org>
31173 * modules/getdomainname: New file.
31174 * modules/xgetdomainname: New file.
31175 * MODULES.html.sh (func_all_modules): Add getdomainname,
31178 2003-09-25 Simon Josefsson <jas@extundo.com>
31179 Bruno Haible <bruno@clisp.org>
31181 * m4/getdomainname.m4: New file.
31183 2003-09-25 Simon Josefsson <jas@extundo.com>
31184 Bruno Haible <bruno@clisp.org>
31186 * lib/getdomainname.h: New file.
31187 * lib/getdomainname.c: New file.
31189 2003-09-25 Karl Berry <karl@gnu.org>
31191 * lib/argp-fmtstream.c, argp-help.c: update from libc.
31193 2003-09-25 Karl Berry <karl@gnu.org>
31195 * config/install-sh: update from automake.
31197 2003-09-25 Bruno Haible <bruno@clisp.org>
31199 * modules/version-etc-2: New file, from modules/version-etc with
31201 * MODULES.html.sh (func_all_modules): Add version-etc-2.
31203 2003-09-25 Bruno Haible <bruno@clisp.org>
31205 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
31206 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
31208 2003-09-24 Simon Josefsson <jas@extundo.com>
31210 * modules/xgethostname: Add xgethostname.h.
31212 2003-09-24 Paul Eggert <eggert@twinsun.com>
31214 * lib/linebuffer.c (freebuffer): Don't free the argument, just
31215 the buffer associated with the argument. Bug reported by
31218 2003-09-24 Paul Eggert <eggert@twinsun.com>
31220 * README: Document assumptions that 'int' is at least 32 bits
31221 wide, that integer arithmetic is 2's complement without overflow,
31222 that there are no holes in integer values, that adding sizes of
31223 two nonoverlapping objects can't overflow, and that all-bits-zero
31224 yields scalar zero. Fix spelling and capitalization typos.
31226 2003-09-19 Karl Berry <karl@gnu.org>
31228 * lib/argp.h: update from libc.
31230 2003-09-17 Paul Eggert <eggert@twinsun.com>
31232 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
31233 to avoid spurious warnings like "AC_RUN_IFELSE was called before
31234 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
31236 2003-09-17 Paul Eggert <eggert@twinsun.com>
31238 * gnulib-tool: Use "test -h", not "test -L", for portability
31239 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
31240 (tags_regexp): Remove, since \| doesn't conform to POSIX.
31241 (sed_extract_prog): Issue s commands one-by-one, rather than
31242 using \| in one s command.
31244 2003-09-16 Paul Eggert <eggert@twinsun.com>
31246 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
31247 input error, instead of returning NULL the next time we are called
31248 (and therefore losing track of errno).
31250 2003-09-16 Bruno Haible <bruno@clisp.org>
31252 * gnulib-tool (func_create_testdir): Warn about duplicated
31255 2003-09-15 Paul Eggert <eggert@twinsun.com>
31257 * modules/argmatch, modules/fatal, modules/obstack,
31258 modules/xalloc, modules/xgethostname: Sort dependencies by
31259 importance, not alphabetically.
31261 2003-09-15 Paul Eggert <eggert@twinsun.com>
31263 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
31264 fails, so that the caller gets the proper errno.
31266 * lib/readutmp.c (read_utmp): Likewise.
31267 Check for fstat error. Close stream and free storage
31270 2003-09-14 Karl Berry <karl@gnu.org>
31272 * config/srclist.txt (strdup.c): disable for c89 changes.
31274 2003-09-14 Jim Meyering <jim@meyering.net>
31276 * lib/getloadavg.c: Correct cpp indentation.
31277 * lib/strdup.c: Likewise.
31278 * lib/vasnprintf.c: Likewise.
31280 2003-09-14 Bruno Haible <bruno@clisp.org>
31282 * modules/fwriteerror: New file.
31283 * MODULES.html.sh (func_all_modules): Add fwriteerror.
31285 2003-09-14 Bruno Haible <bruno@clisp.org>
31287 * lib/fwriteerror.h: New file.
31288 * lib/fwriteerror.c: New file.
31290 2003-09-12 Paul Eggert <eggert@twinsun.com>
31292 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
31293 modules/xgethostname, modules/xalloc: Depend on exit.
31295 2003-09-12 Paul Eggert <eggert@twinsun.com>
31297 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
31299 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
31300 and AC_MINIX, too, so that their extensions are available.
31302 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
31303 This macro has been superseded by gl_BACKUPFILE.
31305 More patches to assume C89 or better.
31307 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
31309 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
31311 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
31312 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
31313 Include <string.h>, <stdlib.h> unconditionally.
31314 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
31315 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
31316 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
31317 headers or for string.h.
31318 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
31321 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
31323 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
31324 * m4/userspec.m4 (gl_USERSPEC): Likewise.
31325 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
31326 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
31327 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31328 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
31330 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
31331 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
31332 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
31334 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
31335 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
31336 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
31339 2003-09-12 Paul Eggert <eggert@twinsun.com>
31341 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
31342 * lib/obstack.c [!defined _LIBC]: Likewise.
31343 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
31344 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
31345 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
31347 More changes to assume C89 or better.
31349 * lib/error.c (error_tail): Assume vprintf.
31351 * lib/argmatch.c (getenv): Remove decl.
31352 * lib/progreloc.c (get_full_program_name): Define via prototype.
31353 * lib/setenv.c (clearenv): Likewise.
31354 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
31356 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
31357 (malloc, memcpy): Remove decls.
31358 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
31359 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
31360 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31361 (memcpy): Remove macro.
31362 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
31363 (__P): Remove. All uses removed.
31364 (PTR): Remove. All uses changed to void *.
31365 (CHAR_BIT, NULL): Remove.
31366 (spaces, zeros, memset_space, memset_zero)
31367 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
31369 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
31370 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
31371 Define with prototype.
31372 Remove now-unnecessary prototype decl.
31373 (extra_args_spec): Assume ANSI C. All uses changed.
31374 (extra_args_spec_iso): Remove.
31375 (my_strftime, emacs_strftimeu): Define via prototype.
31376 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
31378 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
31379 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
31380 (strtoul, strtol): Remove decls.
31381 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
31383 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31384 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
31385 (LOCALE_PARAM_PROTO): New macro.
31386 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
31387 (INTERNAL (strtol), strtol): Define with a prototype.
31388 (PARAMS): Remove. All uses removed.
31389 * lib/tempname.c: Include <string.h> unconditionally.
31390 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
31391 * lib/xgethostname.c (main): Define with a prototype.
31392 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
31393 Include <stdlib.h> unconditionally.
31394 (calloc, malloc, realloc, free): Remove decls.
31395 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
31396 Include <stdlib.h> unconditionally. Sort include file names.
31398 (xstrtod): Define with a prototype.
31399 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
31400 (strtol, strtoul): Remove decls.
31402 2003-09-11 Paul Eggert <eggert@twinsun.com>
31404 More patches to assume C89 or better.
31405 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31406 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31407 string.h, memchr, STDC_HEADERS.
31409 2003-09-11 Paul Eggert <eggert@twinsun.com>
31411 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31412 Include <stdlib.h>, <string.h> unconditionally.
31413 Remove now-unnecessary cast to char *.
31414 * lib/strnlen.c: Include <string.h> unconditionally.
31415 * lib/yesno.c (yesno): Define with a prototype.
31417 2003-09-11 Bruno Haible <bruno@clisp.org>
31419 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31421 2003-09-10 Jim Meyering <jim@meyering.net>
31423 * lib/error.c: Correct indentation of cpp directives.
31425 2003-09-10 Bruno Haible <bruno@clisp.org>
31427 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31428 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31429 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31430 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31431 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31432 <stdlib.h> and <string.h> checks.
31433 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31434 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31436 2003-09-10 Bruno Haible <bruno@clisp.org>
31438 * lib/strcspn.c: Include <string.h> unconditionally.
31439 * lib/strpbrk.c: Include <string.h> unconditionally.
31440 * lib/strstr.c: Include <string.h> unconditionally.
31441 * lib/unicodeio.c: Include <string.h> unconditionally.
31442 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31443 * lib/unsetenv.c: Likewise.
31444 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31445 * lib/yesno.c: Include <stdlib.h> unconditionally.
31446 (rpmatch): Add prototype.
31448 2003-09-09 Paul Eggert <eggert@twinsun.com>
31450 More patches to assume C89 or better.
31451 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31452 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31453 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31455 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31457 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31459 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31461 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31462 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31463 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31465 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31466 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31468 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31470 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31471 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31472 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31473 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31474 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31475 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31477 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31478 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31479 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31480 C headers, or for string.h.
31481 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31482 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31483 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31484 headers, memory.h, stdlib.h, string.h, strings.h.
31485 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31486 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31487 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31489 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31490 headers, memory.h, string.h.
31491 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31492 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31494 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31496 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31497 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31498 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31499 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31500 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31502 2003-09-09 Paul Eggert <eggert@twinsun.com>
31506 * lib/acosl.c (main): Use a prototype.
31507 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31510 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31512 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31513 (getopt, etopt_long, getopt_long_only, _getopt_internal)
31514 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31516 * lib/getopt.c (const): Remove macro.
31517 Include <string.h> unconditionally.
31518 (my_index): Remove; all uses changed to strchr.
31519 (strlen): Remove decl.
31520 (exchange): Remove forward decl; no longer needed.
31521 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31522 Define with prototype.
31523 * lib/getopt1.c (const): Remove macro.
31524 (getopt_long, getopt_long_only, main): Define with prototype.
31526 * lib/getugroups.c: Include <string.h> unconditionally.
31528 * lib/getusershell.c: Include <stdlib.h> unconditionally.
31529 (getusershell, setusershell, endusershell, readname, main):
31530 Define with prototypes.
31532 * lib/group-member.c: Include group-member.h first.
31533 Include <stdlib.h> unconditionally.
31535 * lib/hard-locale.c: Include hard-locale.h first.
31536 Include <stdlib.h>, <string.h> unconditionally.
31538 * lib/hash.c (free, malloc): Remove decls.
31539 Include <stdlib.h> unconditionally.
31541 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31542 (getenv): Do not declare.
31544 * lib/idcache.c: Include <string.h> unconditionally.
31546 * lib/long-options.c: Include long-options.h first, to test interface.
31547 Include <stdlib.h> unconditionally.
31549 * lib/makepath.c: Include makepath.h first, to test interface.
31550 Include <stdlib.h> and <string.h> unconditionally.
31552 * lib/linebuffer.c: Include <stdlib.h>.
31553 (free): Remove decl.
31555 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31556 stddef.h. rpl_malloc returns void *, not char *.
31557 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
31560 * lib/md5.h: Include <limits.h> unconditionally.
31561 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31562 (__P): Remove; all uses removed.
31563 * lib/md5.c: Include "md5.h" first.
31564 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31565 md5_buffer, md5_process_bytes, md5_process_block):
31566 Define with prototypes.
31567 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
31568 * lib/sha.c: Include "sha.h" first.
31569 Include <stdlib.h>, <string.h> unconditionally.
31571 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31572 * lib/memcmp.c (__ptr_t): Likewise.
31573 * lib/memrchr.c (__ptr_t): Likewise.
31574 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31575 Include <string.h> unconditionally.
31576 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31577 * lib/memchr.c: Include <stdlib.h> unconditionally.
31578 * lib/memchr.c (LONG_MAX): Remove.
31579 * lib/memrchr.c (LONG_MAX): Likewise.
31580 * lib/memchr.c (__memchr): Define via a prototype.
31581 * lib/memrchr.c (__memrchr): Likewise.
31582 * lib/memcmp.c (__P): Remove, and remove all uses.
31583 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
31584 Remove forward decls; no longer needed.
31585 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
31586 Use types required by C89 in prototype.
31588 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
31589 * lib/savedir.c: Likewise.
31590 * lib/mkdir.c (free): Remove decl.
31591 * lib/rmdir.c (rmdir): Define with a prototype.
31592 * lib/savedir.c: Include savedir.h first, to test interface.
31594 * lib/mktime.c (STDC_HEADERS): Remove.
31595 Include <stdlib.h>, <string.h> unconditionally.
31597 * lib/modechange.c: Include <stdlib.h> unconditionally.
31598 (malloc): Remove decl.
31600 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
31601 (free): Remove decl.
31603 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
31604 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
31605 (This type really should be intptr_t, but that's a C99ism.)
31606 (_obstack_memcpy): Remove: all uses changed to memcpy.
31607 Include <string.h> unconditionally.
31608 (struct obstack): Assume __STDC__ for types of members
31609 chunkfun, freefun, extra_arg.
31610 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
31611 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
31612 obstack_begin, obstack_specify_allocation,
31613 obstack_specify_allocation_with_arg, obstack_chunkfun,
31614 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
31615 Remove unprototyped decls and the macros that use them.
31616 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
31617 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
31618 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
31619 (defined __STDC__ && __STDC__)]:
31620 Remove nonprototyped code.
31621 Include <stdlib.h> unconditionally.
31622 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
31623 _obstack_allocated_p, _obstack_free, obstack_free,
31624 _obstack_memory_used, print_and_abort):
31625 Define using prototypes.
31626 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
31627 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
31628 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
31629 obstack_next_free, obstack_object_size, obstack_room) [0]:
31630 Remove unused, unprototyped code.
31632 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
31634 * lib/physmem.c (physmem_total, physmem_available, main): Define
31637 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
31638 (main): Define with a prototype.
31640 * lib/posixver.c (getenv): Remove decl.
31642 * lib/putenv.c (malloc): Returns void *, not char *.
31643 Include <string.h> unconditionally.
31644 (strchr, memcpy, NULL): Do not define.
31646 * lib/readtokens.c: Include readtokens.h first, to test interface.
31647 Include <stdlib.h>, <string.h> unconditionally.
31648 (init_tokenbuffer): Define with a prototype.
31650 * lib/regex.c (PARAMS): Remove. All uses removed.
31651 All uses of _RE_ARGS removed, too.
31652 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
31654 (bzero): Assume memset exists.
31655 (memcmp, memcpy, NULL): Remove.
31656 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
31657 char, or assignments to local vars of type signed char.
31658 (init_syntax_once, PREFIX(extract_number_and_incr),
31659 PREFIX(print_partial_compiled_pattern),
31660 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
31661 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
31662 PREFIX(regex_grow_registers), PREFIX(regex_compile),
31663 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
31664 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
31665 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
31666 wcs_compile_range, byte_compile_range, truncate_wchar,
31667 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
31668 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
31669 count_mbs_length, wcs_re_match_2_internal,
31670 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
31671 PREFIX(alt_match_null_string_p),
31672 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
31673 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
31674 regfree, PREFIX(extract_number)): Define with prototype. Remove
31675 now-unnecessary declaration, if any.
31676 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
31678 Remove now-unnecessary casts among pointer types.
31679 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
31681 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
31682 (free): Remove decl.
31684 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
31686 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
31687 (free): Remove decl.
31689 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
31690 * lib/xgetcwd.c: Likewise.
31692 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
31693 (free): Remove decl.
31695 * lib/strchrnul.c (strchrnul): Define with a prototype.
31696 Fix bug: c_in was not converted to char before searching.
31698 The following changes are not K&R related:
31700 * lib/group-member.h: Include <sys/types.h>, so that this file is
31702 * lib/makepath.h: Likewise.
31704 * lib/getusershell.c (readname, default_index, line_size, readname):
31705 Use size_t, not int, for sizes.
31706 (readname): If the size overflows, report an error instead of
31709 2003-09-09 Paul Eggert <eggert@twinsun.com>
31711 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
31714 2003-09-09 Paul Eggert <eggert@twinsun.com>
31716 * README: New section: portability guidelines.
31718 2003-09-09 Derek Robert Price <derek@ximbiot.com>
31720 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
31723 2003-09-09 Derek Robert Price <derek@ximbiot.com>
31725 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
31727 2003-09-08 Paul Eggert <eggert@twinsun.com>
31729 Assume C89 or better; remove K&R cruft.
31730 A few of these changes were first proposed by Derek Robert Price
31731 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
31733 * lib/addext.c: Include <string.h> unconditionally.
31734 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
31735 Don't declare getenv or malloc.
31737 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
31738 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
31740 (find_stack_direction, alloca): Use prototypes.
31742 * lib/atexit.c (atexit): Define using a prototype.
31744 * lib/basename.c, dirname.c, stripslash.c:
31745 Include <string.h> unconditionally.
31747 * lib/bcopy.c: Include <stddef.h>.
31748 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
31750 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
31752 * lib/error.h (error, error_at_line, error_print_progname)
31753 [! (defined (__STDC__) && __STDC__)]: Remove decls.
31754 * lib/error.c: Include error.h first, to check interface.
31755 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31756 (VA_START): Remove; all uses changeed to va_start.
31757 (exit, strerror): Remove decls.
31758 (error_print_progname): Prototype uncondionally.
31759 Don't include <errno.h>; no longer needed.
31760 (private_strerror): Remove.
31761 (error_tail): Always define.
31762 (error, error_at_line): Assume C89 or better; always use prototypes.
31763 * lib/fatal.c: Include "fatal.h" first, to test interface.
31764 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
31765 (VA_START): Remove; all uses changed to va_start.
31766 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
31768 (exit): Remove decl.
31769 (fatal): Prototype unconditionally. Assume va_start works.
31770 Abort at end, to pacify gcc.
31772 * lib/euidaccess.c (main): Define with a prototype.
31774 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
31776 * lib/exitfail.c: Include <stdlib.h> unconditionally.
31778 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
31780 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
31781 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
31782 (getenv): Remove decl.
31783 (fnmatch): Define using a prototype.
31784 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
31785 (FCT): Define using a prototype.
31787 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
31789 * lib/gethostname.c: Include <stddef.h>.
31790 (gethostname): Define with prototype. Length is size_t, not int.
31792 2003-09-08 Paul Eggert <eggert@twinsun.com>
31794 Assume C89 or better; remove K&R cruft.
31795 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
31796 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
31797 string.h, getenv, malloc.
31798 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
31800 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
31801 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
31802 do not check for strerror.
31803 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
31804 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
31805 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
31806 do not check for doprnt or vprintf.
31807 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
31808 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
31810 2003-09-08 Paul Eggert <eggert@twinsun.com>
31812 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
31813 getversion.c should have been removed then, but was accidentally
31816 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
31817 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
31819 2003-09-08 Karl Berry <karl@gnu.org>
31821 * config/config.sub, config.guess, srclistvars.sh: update from savannah
31822 config, forget about prep.
31824 * config/depcomp, missing: update from automake.
31826 2003-09-07 Paul Eggert <eggert@twinsun.com>
31828 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
31829 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31831 2003-09-07 Paul Eggert <eggert@twinsun.com>
31833 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
31834 copy_tm_result. Bug reported by Simon Josefsson in
31835 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
31837 2003-09-06 Paul Eggert <eggert@twinsun.com>
31839 * m4/time_r.m4: New file.
31840 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
31841 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
31842 is. Check for timegm declaration.
31843 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
31844 Do not check for gmtime_r.
31845 Replace mktime if __mktime_internal does not exist and if mktime
31846 hasn't been replaced already.
31848 2003-09-06 Paul Eggert <eggert@twinsun.com>
31850 * lib/time_r.c, lib/time_r.h: New files.
31852 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
31854 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
31855 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
31857 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
31859 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
31860 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
31861 Include <time_r.h>.
31863 * lib/timegm.c: Switch to glibc implementation, with the following
31865 [defined HAVE_CONFIG_H]: Include <config.h>.
31866 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
31867 (__mktime_internal) [!defined _LIBC]: New decl.
31868 (__gmtime_r) [!defined _LIBC]: New macro and function.
31869 (timegm): Use a prototype, since gnulib assumes C89.
31870 Do not bother declaring tmp to be const, as it's not really usefu.
31871 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
31872 (timegm): Declare only if HAVE_DECL_TIMEGM.
31874 2003-09-06 Paul Eggert <eggert@twinsun.com>
31876 * MODULES.html.sh (func_all_modules): Add time_r.
31877 * modules/time_r: New file.
31878 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
31879 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
31881 2003-09-03 Paul Eggert <eggert@twinsun.com>
31883 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
31884 Bug reported by Lute Kamstra in
31885 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
31887 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
31888 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
31889 course with correspondingly smaller numbers for tomorrow and
31890 yesterday. From Tadayoshi Funaba. Originally installed into
31891 sh-utils on 1999-08-07, but the patch got lost (I guess during the
31894 2003-08-31 Simon Josefsson <jas@extundo.com>
31896 * modules/timegm: New file.
31897 * MODULES.html.sh (func_all_modules): Add timegm.
31899 2003-08-31 Simon Josefsson <jas@extundo.com>
31901 * m4/timegm.m4: New file.
31903 2003-08-31 Simon Josefsson <jas@extundo.com>
31905 * lib/timegm.h: New file.
31906 * lib/timegm.c: New file. Based on
31907 wget-1.8.2/src/http.c:mktime_from_utc.
31909 2003-08-31 Karl Berry <karl@gnu.org>
31911 * lib/argp.h: update from libc.
31913 2003-08-28 Bruno Haible <bruno@clisp.org>
31915 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
31916 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
31917 followed by '#define fnmatch fnmatch_posix' gives an error.
31919 2003-08-28 Bruno Haible <bruno@clisp.org>
31921 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
31922 warning on QNX, which defines O_BINARY to 000000.
31924 2003-08-27 Jim Meyering <jim@meyering.net>
31926 * m4/mkstemp.m4: Require that the system mkstemp be able to create
31927 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
31928 would fail after 32. Reported by Danny Levinson. Details here:
31929 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
31931 2003-08-24 Bruno Haible <bruno@clisp.org>
31933 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
31934 MSVC7 <stdio.h> is included later.
31936 2003-08-22 Simon Josefsson <jas@extundo.com>
31938 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
31940 2003-08-20 Karl Berry <karl@gnu.org>
31942 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
31944 2003-08-20 Bruno Haible <bruno@clisp.org>
31946 * modules/progname: New file.
31947 * MODULES.html.sh (func_all_modules): Add progname.
31949 2003-08-20 Bruno Haible <bruno@clisp.org>
31951 * lib/progname.h: New file, from GNU gettext.
31952 * lib/progname.c: New file, from GNU gettext.
31953 * lib/progreloc.c: New file, from GNU gettext.
31955 2003-08-19 Jim Meyering <jim@meyering.net>
31957 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
31958 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
31960 2003-08-19 Bruno Haible <bruno@clisp.org>
31962 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
31965 2003-08-19 Bruno Haible <bruno@clisp.org>
31967 * lib/xstrdup.c: Assume <string.h> exists.
31969 2003-08-18 Paul Eggert <eggert@twinsun.com>
31971 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
31974 2003-08-18 Jim Meyering <jim@meyering.net>
31976 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
31977 * m4/lib-ld.m4: Likewise.
31979 2003-08-18 Jim Meyering <jim@meyering.net>
31981 * lib/setenv.h: Indent nested cpp directive.
31982 * lib/vasnprintf.c: Remove trailing blanks.
31984 2003-08-17 Simon Josefsson <jas@extundo.com>
31986 * modules/xstrndup: New file.
31987 * MODULES.html.sh (func_all_modules): Add xstrndup.
31989 2003-08-17 Simon Josefsson <jas@extundo.com>
31991 * modules/argp: Fix autoconf macro name. Add more dependencies.
31993 2003-08-17 Simon Josefsson <jas@extundo.com>
31995 * m4/xstrndup.m4: New file.
31997 2003-08-17 Simon Josefsson <jas@extundo.com>
31999 * m4/argp.m4: New file.
32001 2003-08-17 Simon Josefsson <jas@extundo.com>
32002 Bruno Haible <bruno@clisp.org>
32004 * lib/xstrndup.h: New file.
32005 * lib/xstrndup.c: New file.
32007 2003-08-17 Bruno Haible <bruno@clisp.org>
32009 * modules/strndup (Files, Include): Add lib/strndup.h.
32011 2003-08-17 Bruno Haible <bruno@clisp.org>
32013 * modules/euidaccess (Files): Add lib/euidaccess.h.
32015 2003-08-17 Bruno Haible <bruno@clisp.org>
32017 * lib/strndup.h: New file.
32019 2003-08-17 Bruno Haible <bruno@clisp.org>
32021 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
32022 like AC_GNU_SOURCE.
32023 * modules/extensions (configure.ac): Comment out the invocation of
32024 gl_USE_SYSTEM_EXTENSIONS.
32026 2003-08-16 Paul Eggert <eggert@twinsun.com>
32028 Merges from coreutils, etc.
32029 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
32030 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
32031 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
32033 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
32034 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
32036 2003-08-16 Paul Eggert <eggert@twinsun.com>
32038 Document merge from coreutils.
32039 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
32040 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
32041 * modules/utime: Add m4/utimes-null.m4.
32043 2003-08-16 Paul Eggert <eggert@twinsun.com>
32045 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
32046 space, undoing this 2003-08-12 change:
32047 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32049 2003-08-16 Paul Eggert <eggert@twinsun.com>
32051 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
32052 strtoul.c from libc, undoing this 2003-08-12 change:
32053 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32055 2003-08-16 Jim Meyering <jim@meyering.net>
32057 Merges from coreutils.
32058 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
32059 prefix. Adjust cache variables similarly. Create 500 rather than
32060 just 300 files, to exercise bug on Darwin6.5, too.
32061 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
32063 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
32064 AM_SYS_POSIX_TERMIOS.
32065 Reported by mkc@mathdogs.com.
32066 Also change use of $am_cv_sys_posix_termios
32067 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
32068 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
32069 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
32070 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
32071 in /proc/mounts until it finds one with matching device number. This
32072 is unnecessary when the FILE argument *is* a mount point. No stat call
32073 is necessary in that case. So, disable the statvfs-testing code on
32074 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
32075 as RedHat bug# 84846.
32076 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32077 to 1MB, so as not to render systems with no stack size limit (e.g.,
32078 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
32079 Include <unistd.h>. On some systems,
32080 it is required for the definition of _SC_PAGESIZE.
32082 2003-08-16 Jim Meyering <jim@meyering.net>
32084 Merge from coreutils.
32085 * lib/xstrtoimax.c: #else #if -> #elif.
32086 * lib/xstrtoumax.c: Likewise.
32088 2003-08-16 Jim Meyering <jim@meyering.net>
32090 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
32091 * m4/utimes.m4: Removed.
32092 * m4/utimes-null.m4: Renamed from utimes.m4.
32094 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32095 to 1MB, so as not to render systems with no stack size limit (e.g.,
32096 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
32097 Include <unistd.h>. On some systems,
32098 it is required for the definition of _SC_PAGESIZE.
32100 2003-08-16 Jim Meyering <jim@meyering.net>
32101 and Paul Eggert <eggert@cs.ucla.edu>
32103 Merges from coreutils, etc.
32105 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
32106 using the latest version from cvs. This avoids problems with #line
32107 directives using a vendor (Sun) compiler.
32108 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
32109 Don't set GETGROUPS_LIB here; now it's
32110 done via getgroups.m4's wrapper function.
32111 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
32112 rather than just in sh-util/configure.in, so that the
32113 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
32115 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
32116 AC_FUNC_GETLOADAVG where to find getloadavg.c.
32117 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
32118 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
32119 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
32120 Remove code that is now done by the newly-required macros.
32121 Append $(EXEEXT) to DF_PROG.
32122 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
32123 Do not invoke or require the following here,
32124 since prereq.m4 or some gnulib .m4 now does this for us:
32125 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
32126 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
32127 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
32128 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
32129 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
32130 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
32131 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
32133 Do not replace the following functions, as this is now the job
32134 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
32135 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
32136 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
32137 atexit getpass, strdup, getpagesize.
32139 Do not check for the following functions, as this is now the job
32140 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
32141 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
32143 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
32144 Check for sys/sysctl.h.
32145 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
32146 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
32147 of checking for ssize_t ourselves.
32149 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
32150 Require every macro that gnulib/modules/* suggests for us.
32151 (jm_PREREQ_ADDEXT): New macro.
32152 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
32153 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
32155 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
32156 (gl_PHYSMEM): Use it.
32157 Also check for `table' function.
32158 Check for new headers and functions.
32159 Add check for sys/sysmp.h.
32160 With suggestions from Kaveh Ghazi.
32161 Ignore headers that are present but cannot be compiled. This
32162 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
32165 2003-08-15 Paul Eggert <eggert@twinsun.com>
32167 Document merge from coreutils.
32168 * modules/userspec: Depend on posixver.
32169 * modules/strftime: Depend on tzset.
32171 2003-08-15 Paul Eggert <eggert@twinsun.com>
32173 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
32174 rather than tab, after '#' in shell-script copyright notices.
32175 Suggested by Bruno Haible.
32177 2003-08-15 Paul Eggert <eggert@twinsun.com>
32179 * config/srclist-update: Use three spaces, rather than tab, after '#'
32180 in shell-script copyright notices. Suggested by Bruno Haible.
32181 Remove unnecessary parenthesization in regular expression.
32183 2003-08-15 Jim Meyering <jim@meyering.net>
32185 Merge from coreutils.
32186 * lib/xgethostname.c: Include <stdlib.h>.
32187 (xghostname): Don't exit for anything other than memory-related
32188 failure; just return NULL.
32189 * lib/userspec.c: Include "posixver.h".
32190 (parse_user_spec): Accept `.' as a separator only
32191 in pre-POSIX-200112 mode.
32192 * lib/strtoimax.c: Use #elif rather than #else #if.
32193 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
32194 Remove function, now that we can rely on a working tzset function.
32195 [!_LIBC]: Ensure that the required autoconf test has been run.
32196 [!defined _NL_CURRENT && HAVE_STRFTIME]:
32197 Use underlying_strftime for %r.
32198 * lib/sha.c: Merge in some clean-up and optimization changes from
32200 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
32201 Ensure that it is a multiple of 64.
32202 Rearrange loop exit tests so as to avoid performing an
32203 additional fread after encountering an error or EOF.
32204 * lib/realloc.c: Update copyright date.
32206 2003-08-15 Jim Meyering <jim@meyering.net>
32207 and Paul Eggert <eggert@twinsun.com>
32209 Merge from coreutils.
32210 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
32211 member but strut utmpx does not. Needed for AIX 4.3.3.
32212 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
32214 2003-08-15 Jim Meyering <jim@meyering.net>
32215 and Paul Eggert <eggert@cs.ucla.edu>
32217 Merges from coreutils, etc.
32218 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
32219 Require gl_FUNC_TZSET_CLOBBER.
32220 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
32221 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
32224 2003-08-14 Paul Eggert <eggert@twinsun.com>
32226 Help the merge from coreutils.
32227 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
32228 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
32229 * m4/tzset.m4: Use it too.
32231 2003-08-14 Paul Eggert <eggert@twinsun.com>
32233 * modules/tzset: New file.
32235 2003-08-14 Jim Meyering <jim@meyering.net>
32237 Merges from coreutils.
32238 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
32239 variable names, rather than @FNMATCH_H@.
32240 * modules/alloca: Likewise for $(ALLOCA_H).
32242 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
32243 the three copies of the literal target, `fnmatch.h'.
32244 * modules/alloca (alloca.h): Likewise.
32246 2003-08-14 Jim Meyering <jim@meyering.net>
32248 Merge from coreutils.
32249 * m4/tzset.m4: New file.
32250 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
32251 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
32252 otherwise, AIX 5.1 systems would end up using the latter.
32253 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
32254 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
32255 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
32256 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
32258 2003-08-14 Jim Meyering <jim@meyering.net>
32260 Merge from coreutils.
32261 * lib/obstack.h: Whitespace changes.
32262 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
32263 and xcalloc return values.
32264 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
32265 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
32266 hang on OSF/1 5.1 for DIR on both local and remote file systems.
32267 Reported by (and fix confirmed by) Nelson H. F. Beebe.
32268 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32270 Use mntctl's return value to drive the entry-processing loop, since
32271 we can't rely on the value of the vmt_length member in the last
32272 entry. On some systems doing so could result in exhausting
32273 virtual memory. Based in part on a patch from Mike Jetzer.
32275 2003-08-14 Jim Meyering <jim@meyering.net>
32276 and Paul Eggert <eggert@twinsun.com>
32278 Merges from coreutils, plus other fixes.
32279 * lib/physmem.c: Merge in portability changes from gcc/libiberty
32280 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
32281 for credits and details. Thanks to Kaveh Ghazi for helping
32282 to keep these files in sync.
32283 (ARRAY_SIZE): Define it.
32284 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
32285 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
32286 (memcasecmp): Don't assume size_t fits in unsigned int.
32287 Remove casts and duplicate code.
32288 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
32289 (memcpy): Remove definition.
32290 Merge in some clean-up and optimization changes from glibc.
32291 [BLOCKSIZE]: Move definition to top of file.
32292 Ensure that it is a multiple of 64.
32293 Rearrange loop exit tests so as to avoid performing an
32294 additional fread after encountering an error or EOF.
32295 * lib/md5.h (md5_uintptr): Define.
32296 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
32297 return to the initial working directory. Preserve errno
32299 * lib/idcache.c: Include "xalloc.h".
32300 (xmalloc, xrealloc): Remove decls.
32301 (getuser): Remove casts no longer required in C89.
32302 * lib/human.c: Include stdio.h, for sprintf.
32303 * lib/group-member.c: Include "xalloc.h".
32304 (xmalloc, xrealloc): Remove decls.
32305 (get_group_info): Remove casts no longer required in C89.
32306 * lib/getusershell.c (readname): Remove casts no longer required in
32308 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
32309 * lib/getline.c: Whitespace fix, from coreutils.
32311 2003-08-13 Paul Eggert <eggert@twinsun.com>
32313 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
32316 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32317 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32318 Undo previous (whitespace-only) change.
32320 2003-08-13 Paul Eggert <eggert@twinsun.com>
32322 * lib/exclude.c: Include <ctype.h>
32323 (IN_CTYPE_DOMAIN): New macro.
32324 (is_space): New fn.
32325 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
32328 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32329 Undo previous (whitespace-only) change.
32331 2003-08-13 Paul Eggert <eggert@twinsun.com>
32333 * config/srclist-update: Change update back to the old behavior,
32334 leaving whitespace alone. Use one 'sed' command rather than a
32336 (fixlicense): Now a variable, not a function.
32337 (remove_trailing_blanks): Remove.
32338 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
32339 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32340 Undo previous (whitespace-only) change.
32342 2003-08-12 Paul Eggert <eggert@twinsun.com>
32344 Merge from coreutils.
32345 * modules/euidaccess: Add lib_SOURCES, include for new
32348 2003-08-12 Paul Eggert <eggert@twinsun.com>
32350 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32351 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32352 Normalize leading white space and remove trailing white space.
32354 Merge from coreutils
32355 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
32357 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
32358 0.12.1. These files are now being upgraded automatically by
32359 ../config/srclist-update.
32361 2003-08-12 Paul Eggert <eggert@twinsun.com>
32363 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32364 Normalize leading white space and remove trailing white space.
32365 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
32366 notice, as per ../config/srclist-update.
32368 Merge from coreutils.
32369 * lib/euidaccess.h: New file.
32370 * lib/euidaccess.c: Include it.
32371 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
32372 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
32373 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
32375 2003-08-12 Paul Eggert <eggert@twinsun.com>
32377 * config/srclist-update: Add copyright notice.
32378 (remove_id_lines, remove_trailing_blanks): New constants.
32379 (fixfile): Use them to normalize spacing a bit in copied files.
32380 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32381 Normalize leading white space and remove trailing white space.
32383 * config/texinfo.tex: Sync with texinfo.
32385 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
32386 strtoul.c from libc, to merge coreutils whitespace changes.
32388 * config/srclist.txt: Get the following m4 files from gettext:
32389 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
32390 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
32391 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
32394 2003-08-12 Karl Berry <karl@gnu.org>
32396 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
32399 2003-08-11 Paul Eggert <eggert@twinsun.com>
32401 * modules/gnu-source, m4/gnu-source.m4:
32402 Remove; we're assuming Autoconf 2.54 or later now.
32403 Suggested by Bruno Haible.
32404 * MODULES.html.sh (func_all_modules): Remove gnu-source.
32406 2003-08-11 Bruno Haible <bruno@clisp.org>
32408 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32410 2003-08-11 Bruno Haible <bruno@clisp.org>
32412 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32413 (vasnprintf): Use it instead of wcslen.
32415 2003-08-11 Bruno Haible <bruno@clisp.org>
32417 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32418 value to ensure that _Bool promotes to int. Use #define for _Bool when
32419 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32421 2003-08-10 Karl Berry <karl@gnu.org>
32423 * lib/regex.h: update from libc (whitespace fix).
32425 2003-08-09 Paul Eggert <eggert@twinsun.com>
32427 Merge some files from coreutils. These changes were
32428 originally made by Jim Meyering.
32429 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32430 many older Unixes require this.
32431 * lib/alloca.c (alloca): Remove cast to argument of free;
32432 no longer needed in C89.
32433 * lib/alloca_.h, regex.h: Fix white space to match
32434 what GNU indent does.
32436 2003-08-09 Paul Eggert <eggert@twinsun.com>
32438 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32439 apparently Emacs's Unicode mode got confused before my 2003-08-05
32442 2003-08-08 Paul Eggert <eggert@twinsun.com>
32444 * m4/extensions.m4: New file.
32445 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32446 Require gl_USE_SYSTEM_EXTENSIONS.
32447 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32448 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32450 2003-08-08 Paul Eggert <eggert@twinsun.com>
32452 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32453 * modules/extensions, modules/gnu-source: New files.
32454 * modules/timespec, modules/unlocked-io: Depend on extensions.
32456 2003-08-07 Paul Eggert <eggert@twinsun.com>
32458 * modules/restrict: New file.
32459 * MODULES.html.sh (func_all_modules): Add restrict.
32460 * modules/regex: Depend on restrict.
32462 2003-08-07 Paul Eggert <eggert@twinsun.com>
32464 * m4/restrict.m4: New file.
32465 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32467 2003-08-07 Bruno Haible <bruno@clisp.org>
32469 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32470 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32472 2003-08-07 Bruno Haible <bruno@clisp.org>
32474 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32475 makes the module 'getndelim2' compatible with the module 'getline'.
32477 2003-08-05 Paul Eggert <eggert@twinsun.com>
32479 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32480 byte with "\201" to avoid glitches when editing that source file
32481 with multi-gnome-terminal.
32483 2003-08-05 Paul Eggert <eggert@twinsun.com>
32485 * lib/bumpalloc.h: Remove.
32487 2003-08-05 Paul Eggert <eggert@twinsun.com>
32489 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32490 * modules/bumpalloc: Remove.
32492 2003-08-04 Paul Eggert <eggert@twinsun.com>
32494 * lib/getloadavg.c: Change copyright notice and spacing to conform to
32497 Merge from coreutils.
32498 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32500 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32501 from Karl Berry, implemented by Jim Meyering.
32502 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32503 from Dmitry V. Levin.
32504 Remove anachronistic cast of xrealloc.
32505 * lib/fnmatch_.h (__const): Remove. Use 'const'.
32506 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32507 type. Otherwise, it wouldn't compile with at least /bin/cc on
32508 ymp-cray-unicos9.0.2.X.
32509 Combine two mostly-identical uses of alloca into one.
32510 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32512 2003-08-04 Dave Love <d.love@dl.ac.uk>
32516 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
32517 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
32518 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32519 obsolete NLIST_NAME_UNION.
32520 [__GNU__]: Undef BSD and FSCALE.
32521 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32523 2003-08-03 Paul Eggert <eggert@twinsun.com>
32525 * lib/stdbool_.h (_Bool): Make it signed char, instead of
32526 an enum type, so that it's guaranteed to promote to int. See:
32527 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32529 2003-08-03 Karl Berry <karl@gnu.org>
32531 * config/depcomp: update from automake.
32533 2003-07-31 Paul Eggert <eggert@twinsun.com>
32535 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
32536 (strerror): Don't assume that a printable int fits in 14 bytes.
32538 2003-07-31 Bruno Haible <bruno@clisp.org>
32540 * modules/getpass-gnu: New file.
32541 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32543 2003-07-31 Bruno Haible <bruno@clisp.org>
32545 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32547 2003-07-24 Karl Berry <karl@gnu.org>
32549 * config/missing: update from automake.
32551 2003-07-24 Derek Robert Price <derek@ximbiot.com>
32552 Bruno Haible <bruno@clisp.org>
32554 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32555 * lib/getline.c (getline, getdelim): Likewise.
32556 Remove _GNU_SOURCE define; now it's defined in config.h through
32559 2003-07-23 Karl Berry <karl@gnu.org>
32561 * config/config.sub: update from prep.
32563 2003-07-22 Paul Eggert <eggert@twinsun.com>
32565 * modules/xalloc (Depends-on): Add exitfail.
32566 * modules/xmemcoll: Likewise.
32568 2003-07-22 Paul Eggert <eggert@twinsun.com>
32570 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32571 over-parenthesization in macros.
32573 Sync with coreutils.
32575 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32578 Use `exit_failure' for xalloc and xmemcoll instead of their own
32579 private exit-failure variables.
32580 * lib/xalloc.h (xalloc_exit_failure): Remove.
32581 * lib/xmalloc.c: Likewise. Include exitfail.h.
32582 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
32583 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
32584 * lib/xmemcoll.c: Likewise. Include exitfail.h.
32585 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
32587 2003-07-20 Jim Meyering <jim@meyering.net>
32589 * modules/closeout (Depends-on): Add exitfail.
32590 Suggestion from Bruno Haible.
32592 2003-07-19 Karl Berry <karl@gnu.org>
32594 * config/config.sub: update from prep.
32596 2003-07-18 Paul Eggert <eggert@twinsun.com>
32598 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
32600 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
32601 to test that it can stand by itself. Include "exitfail.h".
32602 Clients should set exit_failure instead.
32603 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
32605 2003-07-18 Bruno Haible <bruno@clisp.org>
32607 * modules/getndelim2: New file.
32608 * modules/getline: Share files with module getndelim2.
32609 * modules/getnline: Depend on getndelim2 instead of sharing files with
32610 it. Add getnline.c to lib_SOURCES.
32611 * MODULES.html.sh (func_all_modules): Add getndelim2.
32613 2003-07-18 Bruno Haible <bruno@clisp.org>
32615 * m4/getndelim2.m4: New file.
32616 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
32617 invoke gl_PREREQ_GETNDELIM2.
32618 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
32619 gl_PREREQ_GETNDELIM2.
32620 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
32623 2003-07-18 Bruno Haible <bruno@clisp.org>
32625 * lib/getndelim2.h: New file.
32626 * lib/getndelim2.c: Make into a module of its own. Include config.h,
32628 (getndelim2): Make non-static. Change return type to ssize_t.
32629 * lib/getline.h: Change argument names.
32630 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
32631 * lib/getnline.c: Include getndelim2.h.
32633 2003-07-18 Andreas Schwab <schwab@suse.de>
32635 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
32637 2003-07-17 Karl Berry <karl@gnu.org>
32639 * config/config.sub: update from prep.
32641 2003-07-17 Bruno Haible <bruno@clisp.org>
32643 * modules/getnline: New file.
32644 * modules/getline: Add lib/getndelim2.c to source file list.
32645 * MODULES.html.sh (func_all_modules): Add getnline.
32647 2003-07-17 Bruno Haible <bruno@clisp.org>
32649 * m4/getnline.m4: New file.
32651 2003-07-17 Bruno Haible <bruno@clisp.org>
32653 * m4/Makefile.am.in: Remove file.
32654 * m4/Makefile.am: Remove file.
32655 * m4/Makefile.in: Remove file.
32657 2003-07-17 Bruno Haible <bruno@clisp.org>
32659 * lib/getnline.h: New file.
32660 * lib/getnline.c: New file.
32661 * lib/getndelim2.c: New file, extracted from getline.c.
32662 (getndelim2): Renamed from getdelim2, with added nmax argument.
32663 * lib/getline.c: Include getndelim2.c.
32664 (getdelim2): Moved out to getndelim2.c.
32665 (getline, getdelim): Update.
32667 2003-07-17 Bruno Haible <bruno@clisp.org>
32669 * lib/Makefile.am: Remove file.
32670 * lib/Makefile.in: Remove file.
32672 2003-07-17 Bruno Haible <bruno@clisp.org>
32674 * configure.in: Remove file.
32675 * Makefile.in: Remove file.
32677 2003-07-17 Bruno Haible <bruno@clisp.org>
32679 * MODULES.html.sh: Put the </BODY> right before </HTML>.
32681 2003-07-16 Karl Berry <karl@gnu.org>
32683 * config/srclist-update: was running fixlicense twice, which caused
32684 texinfo.tex to be nullified for some reason. Simplify,
32685 $gplsrc is no longer needed as far as I can see?
32687 2003-07-16 Jim Meyering <jim@meyering.net>
32689 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
32691 2003-07-15 Paul Eggert <eggert@twinsun.com>
32693 * config/srclist.txt: Get the following files from gettext-runtime/intl
32694 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
32695 ref-del.sin. From Bruno Haible.
32696 * config/srclist-update (fixfile): Change grep pattern again, since the
32697 previous fix didn't work (there was another trailing $). Use
32698 '[$]' to escape the $s.
32700 2003-07-15 Karl Berry <karl@gnu.org>
32702 * lib/vasnprintf.c: update from gettext.
32704 2003-07-15 Karl Berry <karl@gnu.org>
32706 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
32707 gets expanded when surrounded by '$'.
32709 2003-07-15 Jim Meyering <jim@meyering.net>
32711 * modules/save-cwd: Don't depend on error. From Derek Price.
32713 2003-07-15 Jim Meyering <jim@meyering.net>
32715 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
32717 2003-07-14 Simon Josefsson <jas@extundo.com>
32719 * modules/mempcpy: New file.
32720 * MODULES.html.sh (func_all_modules): Add mempcpy.
32722 2003-07-14 Simon Josefsson <jas@extundo.com>
32724 * m4/mempcpy.m4: New file.
32726 2003-07-14 Simon Josefsson <jas@extundo.com>
32728 * lib/mempcpy.h: New file.
32729 * lib/mempcpy.c: New file.
32731 2003-07-14 Paul Eggert <eggert@twinsun.com>
32733 * modules/getdate, modules/posixtm: Depend on mktime.
32735 2003-07-14 Paul Eggert <eggert@twinsun.com>
32737 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
32738 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
32739 unicodeio.c, unicodeio.h, unlocked-io.h:
32740 Switch from LGPL to GPL.
32742 2003-07-14 Paul Eggert <eggert@twinsun.com>
32744 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
32745 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
32746 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
32747 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
32748 vasprintf.c, vasprintf.h: Regenerate. These files are now being
32749 updated automatically by ../config/srclist-update. This changes
32750 their license from LPGL to GPL.
32752 2003-07-14 Paul Eggert <eggert@twinsun.com>
32754 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
32755 assumed to refer to the root of the most recent stable gettext version.
32756 * config/srclistvars.sh: Add defaults for eggert.
32757 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
32758 Match "This program" as well as "The program". This is needed
32761 2003-07-14 Jim Meyering <jim@meyering.net>
32763 Don't emit diagnostics. Let callers do that.
32764 * lib/save-cwd.c: Don't include "error.h".
32765 (save_cwd): Don't call error. Ensure that errno is valid
32766 when returning nonzero.
32768 * lib/save-cwd.h (restore_cwd): Update prototype.
32769 * lib/save-cwd.c (restore_cwd): Remove two parameters.
32770 Simplify. Don't call error upon failure. Let callers do that.
32771 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
32772 when auditing is enabled. But don't bother updating the #if.
32774 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
32776 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
32777 it breaks C++ compilation.
32778 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
32780 2003-07-10 Simon Josefsson <jas@extundo.com>
32782 * modules/strchrnul (Makefile.am): Add strchrnul.h.
32784 2003-07-10 Jim Meyering <jim@meyering.net>
32786 * m4/clock_time.m4: Remove trailing blank.
32787 * m4/intmax_t.m4: Likewise.
32789 2003-07-10 Jim Meyering <jim@meyering.net>
32791 * lib/vasnprintf.c: Remove trailing blanks.
32792 Make cpp indentation consistent.
32794 2003-07-09 Paul Eggert <eggert@twinsun.com>
32796 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
32797 posixver.c, strftime.c, strnlen.c, strverscmp.c:
32798 Switch from LGPL to GPL.
32800 2003-07-09 Paul Eggert <eggert@twinsun.com>
32802 * config/srclist.txt: Sort sublists. Add
32803 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
32804 that differ from gnulib for one reason or another; we'd like this list
32805 to be smaller but for now let's document what we have.
32807 2003-07-08 Paul Eggert <eggert@twinsun.com>
32809 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
32810 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
32811 and sweeter "eval x=$x".
32812 * config/srclist.txt: Get lib/argp* from glibc.
32814 2003-07-07 Paul Eggert <eggert@twinsun.com>
32816 * lib/mktime.c: Fix some boundary cases and remove need for floating
32819 Issue a compile-time diagnostic if time_t is floating point, or if
32820 two's complement arithmetic is not in effect, or if arithmetic
32821 right shift does not propagate the sign. These assumptions were
32822 all in the original code but they weren't checked.
32824 (TIME_T_MIDPOINT, verify): New macros.
32825 (__isleap): Remove; it has integer overflow problems.
32826 (leapyear): New function, without those problems.
32827 (ydhms_tm_diff): Remove; splitting into two parts.
32828 (ydhms_diff): New function, containing the arithmetic part of
32829 the old ydhms_tm_diff function. Issue a compile-time
32830 diagnostic if we are not using C99 integer division.
32831 Avoid casts when possible.
32832 (guess_time_tm): New function, containing the checking part of
32833 the old ydhms_tm_diff function. Return the new value, rather than
32834 the difference between it and the old. Accept a new argument T
32835 so that *T specifies the old value. Check for overflow in the result.
32837 (__mktime_internal): Use a time_t offset, not a long int offset.
32838 This undoes the 2003-06-04 change, which is no longer needed now
32839 that we have better overflow checking.
32840 (localtime_offset): Likewise.
32842 (__mktime_internal): Avoid harmful overflow on hosts where time_t
32843 and long are 64-bit but int is only 32-bit.
32844 (ydhms_diff): Use long int to store year1 and yday1.
32845 Issue a compile-time diagnostic if long int is not wide enough.
32847 (__mktime_internal): Use long int to store adjusted year and yday.
32848 Use plain C rather than preprocessor commands, if that doesn't
32850 Check for overflow (and try to repair) after each probe
32851 rather than checking only at the very end. This avoids some bugs
32852 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
32853 does not equal GMT offset at maximum time).
32854 Use integer to check for overflow rather than floating point; this
32855 is more portable to non-IEEE hosts, and is a tad faster.
32856 When we detect that we are oscillating between two values,
32857 don't check whether tm_isdst has the requested value, since
32858 we already know the answer. When tm_isdst has the wrong value,
32859 use a different heuristic to find the right one, based on the
32860 extreme values actually observed in practice in tz2003a,
32861 rather than the (overly optimistic) "previous 3 calendar quarters".
32863 (not_equal_tm, print_tm, check_result): Use "const T" rather than
32864 "T const" to accommodate glibc style.
32865 (check_result): Use less-confusing report format. "long" -> "long int.
32867 Don't loop if the iteration overflows time_t.
32868 Allow a negative step in the iteration.
32870 2003-07-06 Karl Berry <karl@gnu.org>
32872 * config/depcomp: update from automake.
32873 * config/config.sub: update from prep.
32875 2003-07-03 Karl Berry <karl@gnu.org>
32877 * config/config.guess: update from prep.
32879 2003-07-01 Paul Eggert <eggert@twinsun.com>
32881 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
32882 xreadlink.c now includes it unconditionally.
32884 2003-07-01 Paul Eggert <eggert@twinsun.com>
32886 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
32887 having it depend on HAVE_SYS_TYPES_H.
32889 2003-07-01 Bruno Haible <bruno@clisp.org>
32891 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
32892 <sys/types.h> should be sufficient.
32893 Reported by Paul Eggert.
32895 2003-06-26 Karl Berry <karl@gnu.org>
32897 * config/depcomp: update from automake.
32899 2003-06-26 Bruno Haible <bruno@clisp.org>
32901 * modules/human: Depend on module stdbool.
32903 2003-06-25 Bruno Haible <bruno@clisp.org>
32905 * modules/readlink: New file.
32906 * modules/xreadlink: Depend on it.
32907 * MODULES.html.sh (func_all_modules): Add readlink.
32909 2003-06-25 Bruno Haible <bruno@clisp.org>
32911 * m4/readlink.m4: New file.
32913 2003-06-25 Bruno Haible <bruno@clisp.org>
32915 * lib/readlink.c: New file.
32917 2003-06-22 Karl Berry <karl@gnu.org>
32919 * config/srclist.txt: update mkinstalldirs from automake.
32920 * config/mkinstalldirs: update.
32922 2003-06-22 Bruno Haible <bruno@clisp.org>
32924 Portability to mingw32.
32925 * m4/ssize_t.m4: New file, from GNU gettext.
32926 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
32927 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
32929 2003-06-22 Bruno Haible <bruno@clisp.org>
32931 * modules/safe-read: Add m4/ssize_t.m4.
32932 * modules/xreadlink: Add m4/ssize_t.m4.
32934 2003-06-20 Bruno Haible <bruno@clisp.org>
32936 Assume C89, so PARAMS isn't needed.
32937 * lib/unicodeio.h (PARAMS): Remove.
32938 * lib/unicodeio.c: Don't use PARAMS.
32940 2003-06-18 Karl Berry <karl@gnu.org>
32942 * config/config.{guess,sub}: update from prep.
32944 2003-06-18 Jim Meyering <jim@meyering.net>
32946 Merge changes from coreutils.
32947 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
32948 Remove explicit declarations of xmalloc and realloc.
32950 (read_utmp): Remove anachronistic cast of xmalloc.
32952 2003-06-17 Paul Eggert <eggert@twinsun.com>
32954 Assume C89, so PARAMS isn't needed.
32955 * lib/backupfile.h (PARAMS): Remove. All uses removed.
32956 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
32957 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
32958 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
32959 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
32960 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
32961 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
32962 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
32963 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
32964 lib/xstrtod.h, lib/xstrtol.h: Likewise.
32965 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
32966 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
32967 no longer needed. Anyway, config.h should always be included before any
32970 2003-06-11 Simon Josefsson <jas@extundo.com>
32972 * modules/sysexits: New file.
32973 * MODULES.html.sh (func_all_modules): Add sysexits.
32975 2003-06-11 Simon Josefsson <jas@extundo.com>
32977 * lib/sysexit_.h: New file.
32979 2003-06-11 Derek Price <derek@ximbiot.com>
32981 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
32984 2003-06-11 Bruno Haible <bruno@clisp.org>
32986 * m4/sysexits.m4: New file.
32988 2003-06-10 Simon Josefsson <jas@extundo.com>
32990 * lib/argp.h: New file, from glibc.
32991 * lib/argp-ba.c: New file, from glibc.
32992 * lib/argp-eexst.c: New file, from glibc.
32993 * lib/argp-fmtstream.c: New file, from glibc.
32994 * lib/argp-fmtstream.h: New file, from glibc.
32995 * lib/argp-fs-xinl.c: New file, from glibc.
32996 * lib/argp-help.c: New file, from glibc.
32997 * lib/argp-namefrob.h: New file, from glibc.
32998 * lib/argp-parse.c: New file, from glibc.
32999 * lib/argp-pv.c: New file, from glibc.
33000 * lib/argp-pvh.c: New file, from glibc.
33001 * lib/argp-xinl.c: New file, from glibc.
33003 2003-06-10 Simon Josefsson <jas@extundo.com>
33005 * modules/strchrnul: New file.
33007 2003-06-10 Simon Josefsson <jas@extundo.com>
33009 * modules/argp: New file.
33011 2003-06-10 Simon Josefsson <jas@extundo.com>
33013 * m4/strchrnul.m4: New file.
33015 2003-06-10 Simon Josefsson <jas@extundo.com>
33017 * lib/strchrnul.h: New file.
33018 * lib/strchrnul.c: New file.
33020 2003-06-10 Bruno Haible <bruno@clisp.org>
33022 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
33024 2003-06-07 Karl Berry <karl@gnu.org>
33026 * config/config.{guess,sub}: update from prep.
33028 2003-06-07 Jim Meyering <jim@meyering.net>
33030 * modules/strtod: Use $(...) notation, not @...@ for
33031 AC_REPLACE'd variables.
33032 * modules/localcharset: Likewise.
33034 2003-06-07 Jim Meyering <jim@meyering.net>
33036 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
33037 in place of my name in the copyright comment.
33038 Remove definition and uses of __P.
33041 * lib/stat.c: Don't declare xmalloc explicitly.
33042 Instead, include "xalloc.h".
33043 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
33044 xrealloc, and xcalloc return values.
33045 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
33047 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
33049 2003-06-07 Bruno Haible <bruno@clisp.org>
33051 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
33052 avoid AC_CONFIG_LINKS.
33053 * modules/fnmatch (Makefile.am): Use explicit creation rule for
33054 fnmatch.h, to avoid AC_CONFIG_LINKS.
33055 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
33057 2003-06-07 Bruno Haible <bruno@clisp.org>
33059 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
33060 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
33061 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33063 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
33064 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33067 2003-06-06 Jim Meyering <jim@meyering.net>
33069 Merge from coreutils.
33070 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
33071 Consolidate declarations and initializations of *_base* locals.
33073 Merge from coreutils.
33074 This avoids a core dump on systems without GNU putenv,
33075 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
33076 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
33077 (unsetenv): New static function, from GNU libc.
33078 (rpl_putenv): Use it.
33080 * lib/modechange.c: Remove trailing blanks.
33082 Merge from coreutils.
33083 * lib/fsusage.c: Remove declaration of statfs.
33084 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
33086 * lib/posixtm.c: Include <stdbool.h> unconditionally.
33088 2003-06-06 Jim Meyering <jim@meyering.net>
33090 * lib/stdbool_.h: Renamed from stdbool.h.in.
33092 2003-06-06 Jim Meyering <jim@meyering.net>
33093 Bruno Haible <bruno@clisp.org>
33095 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
33096 Adjust Makefile.am snippet not to redirect directly to target.
33097 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
33099 2003-06-05 Paul Eggert <eggert@twinsun.com>
33101 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
33102 mismatch, look in future quarters as well as past. This fixes a
33103 bug when processing fall-backwards gaps immediately after a long
33104 period of daylight-saving time.
33106 * lib/mktime.c: Assume freestanding C89 or better.
33107 (HAVE_LIMITS_H): Remove. Assume it's 1.
33108 (__P): Remove; not used.
33109 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
33110 (mktime, not_equal_tm, print_tm, check_result,
33111 main): Use prototypes. Use const * where appropriate.
33112 (main): Fix typo in testing code that uncovered by above changes.
33113 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
33115 2003-06-04 Paul Eggert <eggert@twinsun.com>
33117 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
33118 locale.h, localeconv. This merges changes from coreutils.
33120 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
33121 It can be removed after the next Autoconf is released.
33122 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
33125 2003-06-04 Paul Eggert <eggert@twinsun.com>
33127 * lib/mktime.c: Fix Debian bug 177940
33128 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
33129 (localtime_offset): Now long int, not time_t, because we want it
33130 to be guaranteed to be signed. All uses changed.
33131 (__mktime_internal): If overflow would occur when adding offset,
33134 Merge 'human' changes from coreutils. Rewrite to support
33135 locale-specific notations like thousands separators.
33136 * lib/human.c: Simplify authorship notice.
33137 Include human.h immediately after config.h.
33138 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
33139 <limits.h>: Do not include, since human.h does.
33140 (SIZE_MAX, UINTMAX_MAX): New macros.
33141 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
33142 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
33143 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
33144 (power_letter): Renamed from suffixes.
33145 (generate_suffix_backwards): Remove.
33146 (adjust_value): Now takes int style (because of human.h changes)
33147 and long double value (for greater precision on some platforms).
33148 (group_number): New function.
33149 (human_readable): Use it. Use integer options, not enum.
33150 Put the options before the sizes in the arg list.
33151 Support all the new options.
33152 The old human_readable function has been removed;
33153 use inttostr.h instead.
33154 (human_readable, default_block_size, humblock):
33155 Use uintmax_t, not int, for block sizes.
33156 (human_readable_inexact, block_size_types): Remove.
33157 (block_size_opts): New constant.
33158 (human_options): Renamed from human_block_size, with new signature
33159 that allows block sizes up to UINTMAX_MAX. All callers changed.
33160 * lib/human.h: Add copyright and authorship notice.
33161 Include <limits.h> and <stdbool.h> unconditionally.
33162 (PARAMS): Remove. All uses removed.
33163 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
33164 (enum human_inexact_style): Remove tag; now a nameless enum.
33165 (human_floor, human_ceiling, human_round_to_even): Now have
33166 values 2, 0, 1 rather than -1, 1, 0.
33167 (human_group_digits, human_suppress_point_zero, human_autoscale,
33168 human_base_1024, human_SI, human_B): New constants.
33169 (human_readable_inexact, human_block_size): Remove.
33170 (human_readable): Size args are now uintmax_t, not int.
33171 (human_options): New decl.
33173 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
33174 unnecessary now that we assume C89 or better. This change
33175 imported from coreutils.
33177 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33178 arbitrarily. This is the same patch as 2003-05-28, but it got lost
33179 in the 2003-05-30 sync from glibc.
33181 .h files should stand alone, but we shouldn't include <sys/types.h>
33182 if we can get away with just <stddef.h>.
33184 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
33185 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
33186 rather than <sys/types.h>, as we merely need size_t.
33187 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
33189 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
33190 Include <stdio.h>, to get FILE.
33191 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
33192 memcasecmp.h has included <stddef.h> and all we need is size_t.
33193 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
33194 our interface, instead of including <sys/types.h>
33196 2003-06-04 Paul Eggert <eggert@twinsun.com>
33198 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
33199 now, as glibc mktime is buggy on non-glibc systems.
33201 2003-06-03 Karl Berry <karl@gnu.org>
33203 * config/config.sub: update from prep.
33205 2003-06-02 Paul Eggert <eggert@twinsun.com>
33208 Fix some minor time-related bugs with POSIX time arguments.
33209 Some valid time stamps were being rejected (notably -1, and
33210 time stamps before 1900 on 64-bit hosts). And some invalid
33211 time stamps were being accepted, e.g. September 31.
33213 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
33214 that we can return (time_t) -1 successfully.
33215 * lib/posixtm.c: Likewise.
33216 [HAVE_STDBOOL_H]: Include <stdbool.h>.
33217 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
33218 (t): Remove static var.
33219 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
33220 of static var. All uses changed.
33221 (year): Do not reject years before 1900; they can occur with
33223 (posix_time_parse): Do not check for out-of-range components;
33224 that is now the caller's responsibility, since our checks were
33225 only approximations.
33226 (posixtime): Use mktime to check for out-of-range components,
33227 since it knows them exactly.
33228 If mktime returns (time_t) -1, check whether an error actually occurred
33229 by invoking localtime on -1.
33230 (main) [TEST_POSIXTIME]: Check for input data errors, and report
33231 posixtime failures better.
33232 Improve the test data (in comments only).
33234 2003-06-02 Karl Berry <karl@gnu.org>
33236 * config/mkinstalldirs (version): new variable.
33237 (--version): new option.
33238 (usage): improve message.
33240 2003-05-30 Karl Berry <karl@gnu.org>
33242 * lib/mktime.c: update from libc.
33244 2003-05-30 Bruno Haible <bruno@clisp.org>
33246 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
33247 * config/config.rpath: Upgrade to gettext-0.12.1.
33249 2003-05-30 Bruno Haible <bruno@clisp.org>
33251 * m4/gettext.m4: Upgrade to gettext-0.12.1.
33252 * m4/nls.m4: New file, from gettext-0.12.1.
33253 * m4/po.m4: New file, from gettext-0.12.1.
33254 * m4/progtest.m4: Upgrade to gettext-0.12.1.
33256 2003-05-30 Bruno Haible <bruno@clisp.org>
33258 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
33259 * lib/localcharset.h: Likewise.
33260 * lib/localcharset.c: Likewise.
33262 2003-05-29 Karl Berry <karl@gnu.org>
33264 * config/config.rpath: update from gettext.
33266 2003-05-28 Paul Eggert <eggert@twinsun.com>
33268 Assume the headers required for C89 freestanding compilers.
33269 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
33270 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
33271 * m4/human.m4 (gl_HUMAN): Likewise.
33272 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
33273 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
33274 * m4/userspec.m4 (gl_USERSPEC): Likewise.
33275 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
33276 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33277 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
33279 2003-05-28 Paul Eggert <eggert@twinsun.com>
33281 Assume the headers required for C89 freestanding compilers.
33282 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
33283 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
33284 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
33285 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
33286 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
33287 define, since <limits.h> is guaranteed to do that.
33288 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
33289 * lib/exclude.c: Include <stdbool.h> unconditionally.
33290 * lib/tempname.c: Include <stddef.h> unconditionally.
33291 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
33292 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
33293 <stddef.h> does that.
33294 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
33295 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
33296 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
33298 * lib/xstrtol.c: Likewise.
33299 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
33300 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
33302 * lib/addext.c (addext): Use assignment rather than cast, to avoid
33303 warnings on some platforms.
33305 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33308 2003-05-26 Jim Meyering <jim@meyering.net>
33310 Merge in a change from coreutils:
33311 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
33312 that is guaranteed to be `no'. Use `no_such_member' to indicate
33313 that condition, rather than `-1' which is slightly misleading.
33314 Change the name of the cache variable to have the gl_ prefix.
33315 Prompted by a patch from Richard Dawe for DJGPP.
33317 2003-05-24 Karl Berry <karl@gnu.org>
33319 * config/config.guess: update from prep.
33321 2003-05-22 Karl Berry <karl@gnu.org>
33323 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
33325 2003-05-20 Karl Berry <karl@gnu.org>
33327 * config/config.guess: update from prep.
33329 2003-05-18 Karl Berry <karl@gnu.org>
33331 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
33332 might actually be set by the user.
33334 * config/depcomp, install-sh, mdate-sh: update from automake.
33336 2003-05-17 Bruno Haible <bruno@clisp.org>
33338 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
33339 invalid expansion for AC_EGREP_CPP.
33340 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
33341 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33342 Suggested by Akim Demaille <akim@epita.fr> in
33343 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
33345 2003-05-12 Jim Meyering <jim@meyering.net>
33347 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
33348 the space-padded-by-default conversion specifiers, %e, %k, %l.
33350 2003-05-12 Bruno Haible <bruno@clisp.org>
33352 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
33353 the string is longer than 4 KB.
33355 2003-05-11 Karl Berry <karl@gnu.org>
33357 * config/config.{guess,sub}: update from prep.
33359 2003-05-09 Bruno Haible <bruno@clisp.org>
33361 * modules/error: Add m4/strerror_r.m4 to file list.
33363 2003-05-03 Bruno Haible <bruno@clisp.org>
33365 Upgrade to Unicode-4.0.
33366 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
33367 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
33368 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
33369 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
33370 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
33371 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
33372 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
33373 Change width of U+E0100..U+E01EF from 1 to 0.
33375 2003-04-25 Jim Meyering <jim@meyering.net>
33377 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
33378 of type size_t, not int.
33380 2003-04-25 Bruno Haible <bruno@clisp.org>
33382 * lib/copy-file.c: Include <stddef.h>, for size_t.
33384 2003-04-21 Paul Eggert <eggert@twinsun.com>
33386 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
33387 code which expansion is under static control. Patch imported from
33388 Akim Demaille's patch to Bison; see
33389 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
33391 2003-04-14 Bruno Haible <bruno@clisp.org>
33393 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
33395 2003-04-11 Jim Meyering <jim@meyering.net>
33397 Merge changes from Coreutils.
33399 2003-03-22 Jim Meyering <jim@meyering.net>
33401 * lib/strftime.c (widen): Cast alloca return value to proper type.
33403 2003-01-19 Ulrich Drepper <drepper@redhat.com>
33406 * lib/strftime.c (my_strftime): Handle very large width
33407 specifications for numeric values correctly. Improve checks for
33410 2003-01-19 Jim Meyering <jim@meyering.net>
33412 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33414 (nl_get_alt_digit) [! defined my_strftime]: Define.
33415 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33416 _nl_get_alt_digit and _nl_get_walt_digit.
33418 * lib/strftime.c (my_strftime): Merge in locale-related changes from
33419 libc. These changes have no effect outside of _LIBC.
33421 2003-04-10 Bruno Haible <bruno@clisp.org>
33423 * modules/findprog: New file.
33424 * MODULES.html.sh (func_all_modules): Add it.
33426 2003-04-10 Bruno Haible <bruno@clisp.org>
33428 * m4/findprog.m4: New file.
33429 * m4/eaccess.m4: New file.
33431 2003-04-10 Bruno Haible <bruno@clisp.org>
33433 * lib/findprog.h: New file, from GNU gettext.
33434 * lib/findprog.c: New file, from GNU gettext.
33436 2003-04-05 Jim Meyering <jim@meyering.net>
33438 Merge changes from Coreutils.
33440 * lib/exclude.h (PARAMS): Remove definition and uses.
33441 * lib/exclude.c: Remove uses of `PARAMS'.
33443 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33444 Add test-cases for DOS filenames. Declare program_name.
33445 (main): Set up program_name. Patch by Rich Dawe.
33447 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33449 Use mntctl's return value to drive the entry-processing loop, since
33450 we can't rely on the value of the vmt_length member in the last
33451 entry. On some systems doing so could result in exhausting
33452 virtual memory. Based in part on a patch from Mike Jetzer.
33454 2003-04-04 Bruno Haible <bruno@clisp.org>
33456 * modules/linebreak: New file.
33457 * MODULES.html.sh (func_all_modules): Add it.
33459 2003-04-04 Bruno Haible <bruno@clisp.org>
33461 * m4/linebreak.m4: New file.
33463 2003-04-04 Bruno Haible <bruno@clisp.org>
33465 * lib/linebreak.h: New file, from GNU gettext.
33466 * lib/linebreak.c: New file, from GNU gettext with slight
33468 * lib/lbrkprop.h: New file, from GNU gettext.
33470 2003-04-03 Bruno Haible <bruno@clisp.org>
33472 * modules/utf8-ucs4: New file.
33473 * modules/utf16-ucs4: New file.
33474 * modules/ucs4-utf8: New file.
33475 * modules/ucs4-utf16: New file.
33476 * MODULES.html.sh (func_all_modules): Add them.
33478 2003-04-03 Bruno Haible <bruno@clisp.org>
33480 * m4/utf-ucs4.m4: New file.
33481 * m4/ucs4-utf.m4: New file.
33483 2003-04-03 Bruno Haible <bruno@clisp.org>
33485 * lib/utf8-ucs4.h: New file, from GNU gettext.
33486 * lib/utf16-ucs4.h: New file, from GNU gettext.
33487 * lib/ucs4-utf8.h: New file, from GNU gettext.
33488 * lib/ucs4-utf16.h: New file, from GNU gettext.
33490 2003-04-02 Bruno Haible <bruno@clisp.org>
33492 * modules/binary-io: New file.
33493 * MODULES.html.sh (func_all_modules): Add it.
33495 2003-04-02 Bruno Haible <bruno@clisp.org>
33497 * lib/binary-io.h: New file, from GNU gettext.
33499 2003-04-01 Bruno Haible <bruno@clisp.org>
33501 * modules/pathname: New file.
33502 * MODULES.html.sh (func_all_modules): Add it.
33504 2003-04-01 Bruno Haible <bruno@clisp.org>
33506 * lib/pathname.h: New file, from GNU gettext.
33507 * lib/concatpath.c: New file, from GNU gettext.
33509 2003-03-30 Bruno Haible <bruno@clisp.org>
33511 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33513 2003-03-30 Bruno Haible <bruno@clisp.org>
33515 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33516 function chown() doesn't exist.
33518 2003-03-28 Bruno Haible <bruno@clisp.org>
33520 * modules/copy-file: New file.
33521 * MODULES.html.sh (func_all_modules): Add it.
33523 2003-03-28 Bruno Haible <bruno@clisp.org>
33525 * m4/copy-file.m4: New file.
33527 2003-03-28 Bruno Haible <bruno@clisp.org>
33529 * lib/copy-file.h: New file, from GNU gettext.
33530 * lib/copy-file.c: New file, from GNU gettext.
33532 2003-03-18 Jim Meyering <jim@meyering.net>
33534 * lib/quote.c (quote_n): Fix typo in comment.
33536 2003-03-18 Bruno Haible <bruno@clisp.org>
33538 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33540 * m4/onceonly_2_57.m4: Likewise.
33542 2003-03-17 Bruno Haible <bruno@clisp.org>
33544 * m4/onceonly.m4: Require autoconf 2.54 or newer.
33545 (m4_quote): Remove macro.
33546 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33548 2003-03-14 Jim Meyering <jim@meyering.net>
33550 Merge changes from Coreutils.
33551 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33552 to be const, in order to avoid warnings.
33553 (obstack_room): Likewise.
33554 (obstack_empty_p): Likewise.
33556 2003-03-14 Bruno Haible <bruno@clisp.org>
33558 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33559 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33561 2003-03-13 Paul Eggert <eggert@twinsun.com>
33563 Merge changes from Bison.
33564 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33565 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33566 when compiling Bison 1.875's `bitset bset = obstack_alloc
33567 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
33568 * lib/hash.c: Include <stdbool.h> unconditionally.
33570 2003-03-13 Paul Eggert <eggert@twinsun.com>
33572 * m4/onceonly.m4 (m4_quote): New macro.
33573 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33574 Quote AC_FOREACH variable-expansions properly.
33576 2003-03-13 Paul Eggert <eggert@twinsun.com>
33578 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
33580 2003-03-09 Paul Eggert <eggert@twinsun.com>
33582 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
33583 Reported by Bruce Becker; see:
33584 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
33586 2003-03-03 Paul Eggert <eggert@twinsun.com>
33587 Bruno Haible <bruno@clisp.org>
33589 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
33590 Reported by John Hughes, see
33591 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
33593 2003-02-20 Bruno Haible <bruno@clisp.org>
33595 * MODULES.html.sh (func_all_modules): Add poll.
33597 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
33599 * modules/poll: New file.
33601 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
33603 * lib/poll_.h: New file.
33604 * lib/poll.c: New file.
33606 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
33608 * m4/poll.m4: New file.
33610 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
33612 * modules/mathl: New file.
33614 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
33616 * lib/mathl.h: New file.
33617 * lib/acosl.c: New file.
33618 * lib/asinl.c: New file.
33619 * lib/atanl.c: New file.
33620 * lib/ceill.c: New file.
33621 * lib/cosl.c: New file.
33622 * lib/expl.c: New file.
33623 * lib/floorl.c: New file.
33624 * lib/frexpl.c: New file.
33625 * lib/ldexpl.c: New file.
33626 * lib/logl.c: New file.
33627 * lib/sincosl.c: New file.
33628 * lib/sinl.c: New file.
33629 * lib/sqrtl.c: New file.
33630 * lib/tanl.c: New file.
33631 * lib/trigl.c: New file.
33632 * lib/trigl.h: New file.
33634 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
33636 * m4/mathl.m4: New file.
33638 2003-02-18 Bruno Haible <bruno@clisp.org>
33640 * MODULES.html.sh (func_all_modules): Add mathl.
33642 2003-02-17 Bruno Haible <bruno@clisp.org>
33644 * modules/mkdtemp: New module.
33645 * MODULES.html.sh (func_all_modules): Add it.
33647 2003-02-17 Bruno Haible <bruno@clisp.org>
33649 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
33651 2003-02-17 Bruno Haible <bruno@clisp.org>
33653 * lib/mkdtemp.h: New file, from GNU gettext.
33654 * lib/mkdtemp.c: New file, from GNU gettext.
33656 2003-02-02 Jim Meyering <jim@meyering.net>
33658 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
33661 2003-01-31 Bruno Haible <bruno@clisp.org>
33663 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
33665 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
33667 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
33669 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
33672 2003-01-31 Bruno Haible <bruno@clisp.org>
33674 * lib/rename.c: #undef rename before defining rpl_rename.
33675 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
33677 2003-01-30 Bruno Haible <bruno@clisp.org>
33679 * modules/vasnprintf, modules/vasprintf: New modules.
33680 * MODULES.html.sh (func_all_modules): Add them.
33682 2003-01-30 Bruno Haible <bruno@clisp.org>
33684 * m4/signed.m4: New file, from GNU gettext.
33685 * m4/longdouble.m4: New file, from GNU gettext.
33686 * m4/wchar_t.m4: New file, from GNU gettext.
33687 * m4/wint_t.m4: New file, from GNU gettext.
33688 * m4/vasnprintf.m4: New file.
33689 * m4/vasprintf.m4: New file.
33691 2003-01-30 Bruno Haible <bruno@clisp.org>
33693 * lib/printf-args.h: New file, from GNU gettext.
33694 * lib/printf-args.c: New file, from GNU gettext.
33695 * lib/printf-parse.h: New file, from GNU gettext.
33696 * lib/printf-parse.c: New file, from GNU gettext.
33697 * lib/vasnprintf.h: New file, from GNU gettext.
33698 * lib/vasnprintf.c: New file, from GNU gettext.
33699 * lib/asnprintf.c: New file, from GNU gettext.
33700 * lib/vasprintf.h: New file, from GNU gettext with modifications.
33701 * lib/vasprintf.c: New file, from GNU gettext.
33702 * lib/asprintf.c: New file, from GNU gettext.
33704 2003-01-29 Bruno Haible <bruno@clisp.org>
33706 * modules/stpncpy: New module.
33707 * MODULES.html.sh (func_all_modules): Add it.
33709 2003-01-29 Bruno Haible <bruno@clisp.org>
33711 * m4/stpncpy.m4: New file.
33713 2003-01-29 Bruno Haible <bruno@clisp.org>
33715 * lib/stpncpy.h: New file, from GNU gettext with modifications.
33716 * lib/stpncpy.c: New file, from GNU gettext with modifications.
33718 2003-01-28 Bruno Haible <bruno@clisp.org>
33720 * modules/c-ctype: New module.
33721 * MODULES.html.sh (func_all_modules): Add it.
33723 2003-01-28 Bruno Haible <bruno@clisp.org>
33725 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
33727 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
33730 2003-01-27 Bruno Haible <bruno@clisp.org>
33732 * modules/xsetenv: New module.
33733 * MODULES.html.sh (func_all_modules): Add it.
33735 2003-01-27 Bruno Haible <bruno@clisp.org>
33737 * lib/xsetenv.h: New file, from GNU gettext.
33738 * lib/xsetenv.c: New file, from GNU gettext.
33740 2003-01-23 Jim Meyering <jim@meyering.net>
33742 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
33743 from working on systems without dirfd (at least Irix and OSF1/Tru64).
33745 2003-01-23 Bruno Haible <bruno@clisp.org>
33747 * modules/minmax: New module.
33748 * MODULES.html.sh (func_all_modules): Add it.
33750 2003-01-23 Bruno Haible <bruno@clisp.org>
33752 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
33755 2003-01-22 Bruno Haible <bruno@clisp.org>
33757 * modules/exit: New module.
33758 * MODULES.html.sh (func_all_modules): Add it.
33760 2003-01-22 Bruno Haible <bruno@clisp.org>
33762 * lib/exit.h: New file, from GNU gettext.
33764 2003-01-19 Bruno Haible <bruno@clisp.org>
33766 * gnulib-tool: Recognize option --extract-maintainer.
33767 (func_get_maintainer): New function.
33768 * modules/*: Add Maintainer entry.
33770 2003-01-16 Jim Meyering <jim@meyering.net>
33772 * m4/regex.m4: The `regex' struct is both input and output.
33773 Initialize it before each use. Patch by Tim Waugh.
33775 2003-01-16 Bruno Haible <bruno@clisp.org>
33777 * MODULES.html.sh: Add a table of contents. Add the module name as
33778 leftmost column. Add hyperlinks.
33780 2003-01-15 Bruno Haible <bruno@clisp.org>
33782 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
33784 2003-01-15 Bruno Haible <bruno@clisp.org>
33786 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
33787 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
33790 2003-01-15 Bruno Haible <bruno@clisp.org>
33792 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
33794 2003-01-15 Bruno Haible <bruno@clisp.org>
33796 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
33797 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
33799 2003-01-14 Jim Meyering <jim@meyering.net>
33801 * lib/same.c (same_name): Tweak a comment.
33803 2003-01-14 Bruno Haible <bruno@clisp.org>
33805 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
33806 when a string comparison is sufficient.
33808 2003-01-14 Bruno Haible <bruno@clisp.org>
33810 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
33813 2003-01-14 Bruno Haible <bruno@clisp.org>
33815 * lib/hash-pjw.c: Add comment about low quality of this function.
33817 2003-01-13 Bruno Haible <bruno@clisp.org>
33819 * modules/stpcpy: Distribute lib/stpcpy.h.
33820 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
33822 2003-01-13 Bruno Haible <bruno@clisp.org>
33824 * modules/*: Add a description.
33825 * modules/strpbrk: Fix Makefile.am snippet.
33826 * modules/strtoimax: Fix dependencies.
33827 * modules/strtoumax: Likewise.
33829 2003-01-13 Bruno Haible <bruno@clisp.org>
33831 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
33832 * modules/alloca (Makefile.am): All object files depend on alloca.h.
33833 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
33835 2003-01-13 Bruno Haible <bruno@clisp.org>
33837 * gnulib-tool (func_create_testdir): Store config/* files in the main
33839 * config.rpath: Move to ...
33840 * config/config.rpath: ... here.
33841 * modules/gettext: Contains config/config.rpath, not config.rpath.
33842 * modules/iconv: Likewise.
33844 2003-01-12 Paul Eggert <eggert@twinsun.com>
33846 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33847 to avoid collisions with libcurses and libreadline.
33849 * m4/getstr.m4: Remove.
33850 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
33852 2003-01-12 Paul Eggert <eggert@twinsun.com>
33854 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33855 to avoid collisions with libcurses and libreadline.
33857 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
33858 * lib/getstr.h, getstr.c: Remove.
33859 * lib/getline.c: Include "getline.h", to check interface.
33860 Move body of old getstr.c here: this defines MIN_CHUNK and
33861 declares getdelim2, which is renamed from getstr.
33862 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
33864 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
33866 * lib/linebuffer.h: Likewise.
33867 (readline): Remove backward-compatibility macro.
33869 2003-01-12 Paul Eggert <eggert@twinsun.com>
33871 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
33872 to avoid collisions with libcurses and libreadline.
33874 * MODULES.html.sh: Remove getstr.
33875 * modules/getline: Depend on unlocked-io, not getstr.
33877 2003-01-12 Jim Meyering <jim@meyering.net>
33879 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
33881 2003-01-10 Bruno Haible <bruno@clisp.org>
33883 * modules/alloca: Change Makefile.am requirements. Simplify Include
33884 requirements. Add lib/alloca_.h to file list.
33886 2003-01-10 Bruno Haible <bruno@clisp.org>
33888 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
33890 2003-01-10 Bruno Haible <bruno@clisp.org>
33892 * lib/alloca_.h: New file.
33893 * lib/getdate.y: Unconditionally include alloca.h.
33894 * lib/makepath.c: Likewise.
33895 * lib/setenv.c: Likewise.
33896 * lib/userspec.c: Likewise.
33898 2003-01-09 Karl Berry <karl@gnu.org>
33900 * MODULES.html.sh: include `dirname $0` in PATH, to find
33903 2003-01-09 Bruno Haible <bruno@clisp.org>
33905 * modules/stdbool: Change configure.ac, Makefile.am requirements.
33906 Simplify Include requirements. Add lib/stdbool.h.in to file list.
33908 2003-01-09 Bruno Haible <bruno@clisp.org>
33910 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
33912 2003-01-09 Bruno Haible <bruno@clisp.org>
33914 * lib/stdbool.h.in: New file.
33916 2003-01-09 Bruno Haible <bruno@clisp.org>
33918 * gnulib-tool (func_all_modules): Ignore files ending in ~.
33919 * MODULES.html.sh: Likewise.
33921 2003-01-08 Jim Meyering <jim@meyering.net>
33923 * lib/full-write.c: Undefine and define-away `const' after inclusion
33924 of errno.h, not before. Suggestion from Bruno Haible.
33926 2003-01-08 Bruno Haible <bruno@clisp.org>
33928 * modules/full-read: Depend on full-write.
33930 2003-01-08 Bruno Haible <bruno@clisp.org>
33932 * lib/safe-read.c: Include specification header first, to ensure its
33934 * lib/full-write.c: Likewise.
33936 2003-01-07 Jim Meyering <jim@meyering.net>
33938 * lib/full-write.c: Rework so that it may serve to define full_read,
33940 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
33942 2003-01-07 Bruno Haible <bruno@clisp.org>
33944 * lib/strtoimax.c: Include <stdint.h> as an alternative to
33946 * lib/xstrtol.h: Likewise.
33947 * lib/xstrtoimax.c: Likewise.
33948 * lib/xstrtoumax.c: Likewise.
33949 * lib/human.h: Likewise.
33951 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
33952 on systems that have <inttypes.h> but not <stdint.h>.
33954 2003-01-07 Bruno Haible <bruno@clisp.org>
33956 * MODULES.html.sh: Add copyright notice.
33957 (missed_files): Omit CVS directory entries.
33958 (func_module): Make it work with sed-3.02.
33959 * MODULES.txt: Remove file.
33961 2003-01-06 Jim Meyering <jim@meyering.net>
33963 * lib/version-etc.c: Update year in translatable copyright string.
33965 2003-01-03 Karl Berry <karl@gnu.org>
33967 * config/config.{guess,sub}: update from prep.
33969 2003-01-02 Karl Berry <karl@gnu.org>
33971 * doc/COPYING.DOC: belatedly updated to 1.2.
33973 2003-01-01 Karl Berry <karl@gnu.org>
33975 * gnulib-tool (func_verify_module): report module name $module in
33976 error message, not $1.
33977 * gnulib-tool (create-testdir): don't complain if destdir couldn't
33978 be created, only if it doesn't exist.
33979 * gnulib-tool (last_checkin_date): don't expand the $Date here.
33981 2002-12-31 Paul Eggert <eggert@twinsun.com>
33983 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
33985 2002-12-31 Paul Eggert <eggert@twinsun.com>
33987 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
33988 memcmp if strcoll doesn't work.
33990 2002-12-31 Bruno Haible <bruno@clisp.org>
33992 * lib/utime.c (utime_null): No need to call ftruncate if the file was
33995 2002-12-31 Bruno Haible <bruno@clisp.org>
33997 * lib/memcoll.c (STRCOLL): New macro.
34000 2002-12-31 Bruno Haible <bruno@clisp.org>
34002 * lib/localcharset.h: New file.
34003 * lib/localcharset.c: Include it.
34004 * lib/unicodeio.c: Likewise.
34006 2002-12-31 Bruno Haible <bruno@clisp.org>
34008 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
34009 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
34011 2002-12-31 Bruno Haible <bruno@clisp.org>
34013 * lib/getline.h: Include <stddef.h>, for size_t.
34015 * lib/unicodeio.h: Include <stddef.h>, for size_t.
34016 * lib/unicodeio.c: Don't include <stddef.h>.
34018 2002-12-31 Bruno Haible <bruno@clisp.org>
34020 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
34023 2002-12-24 Karl Berry <karl@gnu.org>
34025 * config/config.guess: update from prep.
34027 2002-12-24 Bruno Haible <bruno@clisp.org>
34029 General infrasructure.
34030 * m4/README: Rewritten.
34031 * m4/onceonly.m4: New file.
34032 * m4/onceonly_2_57.m4: New file.
34035 * m4/atexit.m4: New file.
34038 * m4/strtod.m4: New file.
34041 * m4/strtol.m4: New file.
34044 * m4/strtoul.m4: New file.
34047 * m4/memchr.m4: New file.
34050 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
34051 (jm_FUNC_MEMCMP): Invoke it.
34054 * m4/memcpy.m4: New file.
34057 * m4/memmove.m4: New file.
34060 * m4/memset.m4: New file.
34063 * m4/strcspn.m4: New file.
34066 * m4/strpbrk.m4: New file.
34069 * m4/strstr.m4: New file.
34072 * m4/strerror.m4: New file.
34075 * m4/mktime.m4: Renamed from jm-mktime.m4.
34076 (gl_PREREQ_MKTIME): New macro.
34077 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
34080 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
34081 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
34082 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
34085 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
34086 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
34087 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
34090 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
34091 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
34092 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
34094 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
34097 * m4/xalloc.m4: New file.
34100 * m4/alloca.m4: New file.
34103 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34104 (jm_FUNC_PUTENV): Invoke it.
34107 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
34108 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
34109 when invoked twice.
34110 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
34114 * m4/memrchr.m4: New file.
34117 * m4/stpcpy.m4: New file.
34120 * m4/strcase.m4: New file.
34123 * m4/strdup.m4: New file.
34126 * m4/strnlen.m4: New file.
34129 * m4/strndup.m4: New file.
34132 * m4/xstrtod.m4: New file.
34135 * m4/xstrtol.m4: New file.
34138 * m4/getdate.m4: New file.
34140 Module unlocked-io.
34141 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
34142 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
34143 * m4/jm-glibc-io.m4n: Remove file.
34145 Module long-options.
34146 * m4/long-options.m4: New file.
34149 * m4/md5.m4: New file.
34152 * m4/sha.m4: New file.
34155 * m4/getstr.m4: New file.
34158 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
34159 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
34160 <sys/types.h>, for size_t. Use the function name gnu_getline, not
34161 simply getline. Infoke gl_PREREQ_GETLINE.
34164 * m4/obstack.m4: New file.
34167 * m4/hash.m4: New file.
34170 * m4/readtokens.m4: New file.
34173 * m4/strverscmp.m4: New file.
34176 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
34180 * m4/strtoll.m4: New file.
34183 * m4/strtoull.m4: New file.
34186 * m4/strtoimax.m4: New file.
34189 * m4/strtoumax.m4: New file.
34192 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
34193 jm_AC_PREREQ_XSTRTOIMAX.
34194 Moved the strtol prerequisites to strtol.m4.
34195 Moved the strtoll prerequisites to strtoll.m4.
34196 Moved the strtoimax prerequisites to strtoimax.m4.
34199 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
34200 jm_AC_PREREQ_XSTRTOUMAX.
34201 Moved the strtoul prerequisites to strtoul.m4.
34202 Moved the strtoull prerequisites to strtoull.m4.
34203 Moved the strtoumax prerequisites to strtoumax.m4.
34206 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
34207 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
34210 * m4/dup2.m4: New file.
34213 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
34214 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
34217 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
34218 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
34220 Module gettimeofday.
34221 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
34222 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
34223 gl_PREREQ_GETTIMEOFDAY.
34226 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
34227 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
34230 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
34231 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
34232 jm_AC_TYPE_UINTMAX_T.
34233 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
34236 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
34237 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
34240 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
34241 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
34244 * m4/timespec.m4 (gl_TIMESPEC): New macro.
34245 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
34246 * m4/st_mtim.m4: Indentation.
34249 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
34250 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
34251 gl_PREREQ_NANOSLEEP.
34254 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
34255 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
34256 (gl_REGEX): New macro.
34259 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
34260 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
34263 * m4/rmdir.m4: New file.
34266 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
34267 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
34268 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
34271 * m4/dirname.m4: New file.
34274 * m4/getopt.m4: New file.
34276 Module unistd-safer.
34277 * m4/unistd-safer.m4: New file.
34280 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
34282 (gl_PREREQ_FNMATCH_EXTRA): New macro.
34283 (gl_FUNC_FNMATCH_POSIX): New macro.
34284 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
34285 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
34289 * m4/exclude.m4: New file.
34292 * m4/human.m4: New file.
34298 * m4/backupfile.m4: New file.
34299 * m4/d-ino.m4: Indentation.
34302 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
34303 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
34304 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
34307 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
34311 * m4/euidaccess.m4: New file.
34314 * m4/file-type.m4: New file.
34317 * m4/fileblocks.m4: New file.
34320 * m4/filemode.m4: New file.
34323 * m4/isdir.m4: New file.
34326 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
34327 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
34330 * m4/makepath.m4: New file.
34333 * m4/modechange.m4: New file.
34336 * m4/mountlist.m4: New file.
34337 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
34340 Module path-concat.
34341 * m4/path-concat.m4: New file.
34344 * m4/pathmax.m4: New file.
34347 * m4/same.m4: New file.
34350 * m4/save-cwd.m4: New file.
34353 * m4/savedir.m4: New file.
34356 * m4/xgetcwd.m4: New file.
34357 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
34360 * m4/xreadlink.m4: New file.
34363 * m4/safe-read.m4: New file.
34366 * m4/safe-write.m4: New file.
34369 * m4/closeout.m4: New file.
34371 Module stdio-safer.
34372 * m4/stdio-safer.m4: New file.
34375 * m4/getpass.m4: New file.
34378 * m4/getugroups.m4: New file.
34380 Module group-member.
34381 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
34382 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
34385 * m4/idcache.m4: New file.
34388 * m4/userspec.m4: New file.
34391 * m4/clock_time.m4: New file.
34392 * m4/gettime.m4: New file.
34395 * m4/settime.m4: New file.
34398 * m4/posixtm.m4: New file.
34400 Module gethostname.
34401 * m4/gethostname.m4: New file.
34404 * m4/canon-host.m4: New file.
34407 * m4/codeset.m4: New file, from gettext-0.11.5.
34408 * m4/gettext.m4: New file, from gettext-0.11.5.
34409 * m4/glibc21.m4: New file, from gettext-0.11.5.
34410 * m4/iconv.m4: New file, from gettext-0.11.5.
34411 * m4/intdiv0.m4: New file, from gettext-0.11.5.
34412 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34413 * m4/inttypes.m4: New file, from gettext-0.11.5.
34414 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34415 * m4/isc-posix.m4: New file, from gettext-0.11.5.
34416 * m4/lcmessage.m4: New file, from gettext-0.11.5.
34417 * m4/lib-ld.m4: New file, from gettext-0.11.5.
34418 * m4/lib-link.m4: New file, from gettext-0.11.5.
34419 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34420 * m4/progtest.m4: New file, from gettext-0.11.5.
34421 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34422 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34423 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34425 Module localcharset.
34426 * m4/localcharset.m4: New file.
34428 Module hard-locale.
34429 * m4/hard-locale.m4: New file.
34432 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34434 * m4/mbrtowc.m4: Add comment.
34437 * m4/memcasecmp.m4: New file.
34440 * m4/memcoll.m4: New file.
34443 * m4/unicodeio.m4: New file.
34446 * m4/rpmatch.m4: New file.
34449 * m4/yesno.m4: New file.
34452 * m4/exitfail.m4: New file.
34455 * m4/c-stack.m4 (gl_C_STACK): New macro.
34456 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34459 * m4/error.m4 (gl_ERROR): New macro.
34460 (jm_PREREQ_ERROR): Use onceonly macros.
34463 * m4/fatal.m4: New file.
34466 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34467 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34469 Module getpagesize.
34470 * m4/getpagesize.m4: New file.
34472 Module getusershell.
34473 * m4/getusershell.m4: New file.
34476 * m4/physmem.m4: New file.
34479 * m4/posixver.m4: New file.
34482 * m4/quotearg.m4: New file.
34485 * m4/quote.m4: New file.
34488 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34491 * m4/sig2str.m4: New file.
34494 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34496 * m4/intmax_t.m4: New file.
34497 * m4/d-type.m4: Indentation.
34498 * m4/jm-macros.m4: Update.
34499 * m4/prereq.m4 (jm_PREREQ): Update.
34500 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34501 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34502 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34503 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34504 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34505 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34506 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34507 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34508 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34509 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34510 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34511 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34512 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34513 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34514 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34515 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34516 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34517 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34518 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34520 2002-12-24 Bruno Haible <bruno@clisp.org>
34522 * MODULES.txt: Update according to m4/ changes.
34525 * config.rpath: New file, from gettext-0.11.5.
34527 * modules/*: New module descriptions.
34528 * gnulib-tool: New file.
34529 * MODULES.html.sh: New file.
34531 2002-12-21 Karl Berry <karl@gnu.org>
34533 * doc/fdl.texi: update to version 1.2.
34535 2002-12-19 Karl Berry <karl@gnu.org>
34537 * config/config.guess: update from prep.
34539 2002-12-18 Bruno Haible <bruno@clisp.org>
34541 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34542 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34544 2002-12-17 Bruno Haible <bruno@clisp.org>
34546 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34547 stdlib.h, string.h.
34549 2002-12-17 Bruno Haible <bruno@clisp.org>
34551 * lib/canon-host.c (strdup): Remove unused declaration.
34553 * lib/fsusage.c: Include full_read.h.
34554 (get_fs_usage): Use full_read instead of safe_read.
34556 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34558 2002-12-12 Karl Berry <karl@gnu.org>
34560 * config/config.guess: update from prep.
34562 2002-12-11 Bruno Haible <bruno@clisp.org>
34564 * m4/setenv.m4: New file, from gettext-0.11.5.
34566 2002-12-11 Bruno Haible <bruno@clisp.org>
34568 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34570 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34573 2002-12-11 Bruno Haible <bruno@clisp.org>
34575 * setenv.c (alloca): Fall back to malloc.
34576 (freea): New macro.
34577 (setenv): Use freea() to free memory allocated with alloca().
34579 2002-11-13 Bruno Haible <bruno@clisp.org>
34581 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
34582 function declarations.
34583 * unsetenv.c (unsetenv): Likewise.
34585 2002-03-04 Bruno Haible <bruno@clisp.org>
34587 Portability to AIX 4.3.3.
34588 * unsetenv.c: New file, extracted from setenv.c.
34589 * setenv.c: Move the unsetenv() function to unsetenv.c.
34591 2001-12-20 Bruno Haible <bruno@clisp.org>
34593 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
34594 use malloc instead. For SunOS 4.
34596 2001-12-11 Bruno Haible <bruno@clisp.org>
34598 * setenv.c: Declare alloca.
34599 (compar_fn_t): New typedef.
34600 (KNOWN_VALUE, STORE_VALUE): Use it.
34602 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
34605 2002-12-10 Paul Eggert <eggert@twinsun.com>
34607 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
34608 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
34609 Choose values that are less likely to collide with system fnmatch
34611 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
34612 defined (e.g., a pure POSIX system).
34613 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
34614 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
34616 2002-12-06 Paul Eggert <eggert@twinsun.com>
34618 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
34619 a pain in practice to deal with generated m4 files. This change
34620 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
34622 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
34623 and jm-glibc-io.m4, as they are no longer a special case.
34624 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
34625 kludge and the auto-generation stuff. Check only whether the
34626 functions are declared, not whether they exist, since older hosts
34627 that don't declare the functions can't use the optimization anyway.
34629 2002-12-06 Jim Meyering <jim@meyering.net>
34631 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
34633 Merge in changes from libc's misc/error.c, in preparation
34634 for the merge of gnulib's changes back into libc.
34636 * lib/error.c (_): Define only if not already defined.
34637 Move definition to follow all #include directives.
34638 Include unlocked-io.h only if !_LIBC.
34639 [_LIBC]: Include <libio/libioP.h>.
34640 [USE_IN_LIBIO]: Include <libio/iolibio.h>
34641 (fflush): Tweak definition to use INTUSE.
34644 2002-12-05 Paul Eggert <eggert@twinsun.com>
34646 * lib/alloca.c [defined emacs]: Include "lisp.h".
34647 (xalloc_die) [defined emacs]: New macro.
34648 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
34649 [! defined emacs]: Include <xalloc.h>.
34650 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
34651 (pointer): Typedef to POINTER_TYPE *.
34652 (malloc): Remove decl; we now always use xmalloc.
34653 (alloca): Use old-style definition, since Emacs needs this.
34654 Check for arithmetic overflow when computing combined size.
34656 2002-12-04 Paul Eggert <eggert@twinsun.com>
34658 Do not generate unlocked-io.h automatically, since it's easier to
34659 maintain it by hand.
34661 * lib/unlocked-io.h: New file, from GNU diffutils,
34662 but with proper copyright notice and attribution.
34663 * lib/gen-uio: Remove.
34664 * lib/Makefile.am: Add copyright notice.
34665 (libfetish_a_SOURCES): Add unlocked-io.h.
34666 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
34667 (DISTCLEANFILES, io_functions): Remove macros.
34668 (EXTRA_DIST): Remove gen_uio.
34669 (unlocked-io.h): Remove rule.
34671 2002-12-04 Jim Meyering <jim@meyering.net>
34673 Reflect the fact that stat.c and lstat.c are no longer generated.
34674 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
34675 (DISTCLEANFILES): Likewise.
34676 (EXTRA_DIST): Likewise.
34677 (all_local): Don't depend on stat.c or lstat.c.
34678 (stat.c, lstat.c): Remove rules.
34679 (EXTRA_DIST): Remove xstat.in.
34681 * lib/xstat.in: Remove file. Contents moved into stat.c.
34682 * lib/stat.c: New file. Contents mostly from xstat.in.
34683 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
34684 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
34686 * lib/safe-read.c: Rework so that it may serve to define safe_write,
34688 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
34690 2002-12-03 Jim Meyering <jim@meyering.net>
34692 * lib/safe-read.c, safe-write.c: Change variable names and comments,
34693 but not semantics, to minimize the differences between these two files.
34694 (safe_read): Change comment to mention SAFE_READ_ERROR.
34696 * lib/safe-read.c (IS_EINTR): Define.
34697 (safe_read): Use IS_EINTR in place of in-function cpp directives.
34699 2002-12-02 Jim Meyering <jim@meyering.net>
34701 * lib/safe-read.c (EINTR): Define.
34702 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
34703 (INT_MAX): Provide fallback.
34704 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
34706 * lib/safe-read.h (SAFE_READ_ERROR): Define.
34708 2002-12-02 Bruno Haible <bruno@clisp.org>
34710 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
34711 Define, taken from safe-read.c.
34712 (INT_MAX): Provide fallback.
34713 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
34714 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
34716 * lib/safe-read.c (EINTR): Remove definition.
34717 (safe_read): Don't use EINTR if it is absent.
34719 2002-12-01 Jim Meyering <jim@meyering.net>
34721 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
34723 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
34725 2002-11-27 Paul Eggert <eggert@twinsun.com>
34727 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
34728 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
34729 with `if (! (value < limit)) abort ();', for readability.
34731 2002-11-26 Karl Berry <karl@gnu.org>
34733 * lib/strdup.c: copy from libc again, with jim's ok.
34734 * lib/.cppi-disable: re-add strdup.c
34736 2002-11-25 Karl Berry <karl@gnu.org>
34738 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
34739 instead of "strtol.c".
34741 2002-11-25 Karl Berry <karl@gnu.org>
34743 * config/install-sh: update from automake for variable quoting, $0 in
34746 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
34747 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
34750 2002-11-25 Jim Meyering <jim@meyering.net>
34752 * lib/mktime.c: Sync from libc, now that it has the latest fix.
34754 2002-11-24 Karl Berry <karl@gnu.org>
34756 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
34757 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
34759 2002-11-24 Jim Meyering <jim@meyering.net>
34761 Update from coreutils:
34763 * lib/mktime.c: Merge in changes from libc.
34765 Avoid a link-time failure on some Linux systems.
34766 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
34768 (__mon_yday): Declare with the STATIC attribute.
34769 (__mktime_internal): Likewise.
34770 Based on a report from Greg Schafer.
34772 2002-11-23 Jim Meyering <jim@meyering.net>
34774 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
34775 Use `unsigned', not `int', as type of index.
34777 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
34779 * lib/fsusage.c: Remove unneeded parentheses around operands of
34782 2002-11-22 Paul Eggert <eggert@twinsun.com>
34784 * lib/quotearg.h: Allow multiple inclusion by surrounding with
34785 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
34786 so that we can be included first.
34787 (PARAMS): Remove; we now assume C89 or later. All uses removed.
34788 * lib/quotearg.c: Include quotearg.h immediately after config.h.
34789 No need to include stddef.h or sys/types.h any more.
34790 Surround local include files with "", not "<>".
34791 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
34792 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
34793 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
34794 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
34795 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
34796 (ISPRINT): Remove; no longer needed now that we assume C89.
34798 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
34801 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
34802 quotearg_char): Use SIZE_MAX rather than
34803 (size_t) -1 when we are talking about "infinity".
34805 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
34807 2002-11-22 Paul Eggert <eggert@twinsun.com>
34809 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
34810 hint that one should use `if (! x) abort ();' rather than `assert
34811 (x);', and anyway it's one less thing to worry about configuring.
34812 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
34813 hash_rehash, hash_insert): Use abort rather than assert.
34815 2002-11-22 Bruno Haible <bruno@clisp.org>
34817 * lib/safe-read.h: Assume C89. Add comments.
34818 (safe_read): Change return type to size_t.
34819 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
34820 byte counts > SSIZE_MAX correctly.
34821 * lib/safe-write.h: New file.
34822 * lib/safe-write.c: New file.
34823 * lib/full-read.h: New file.
34824 * lib/full-read.c: New file.
34825 * lib/full-write.h: Assume C89. Add comments.
34826 * lib/full-write.c: Include safe-write.h.
34827 (full_write): Rewritten to use safe_write.
34828 Suggested by Jim Meyering and Paul Eggert.
34830 2002-11-21 Jim Meyering <jim@meyering.net>
34832 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
34834 Merge in changes from the coreutils.
34836 2002-09-25 Paul Eggert <eggert@twinsun.com>
34837 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
34839 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
34840 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
34841 int. Work more efficiently if X is the same width as uintmax_t.
34842 Do not compare X to -1, to avoid bogus compiler warning.
34843 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
34844 Don't assume that f_frsize and f_bsize are the same type.
34846 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
34847 warning on FreeBSD.
34849 * lib/makepath.c (make_path): Restore umask *before* creating the final
34851 (make_path): Minor reformatting.
34853 * lib/xmalloc.c: Adjust to work with new autoconf macros,
34854 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
34855 HAVE_MALLOC/HAVE_REALLOC.
34857 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
34858 dummy ones. At least on GNU/Linux systems, `auto' means something
34860 From Michael Stone.
34862 2002-11-21 Bruno Haible <bruno@clisp.org>
34864 Remove case insensitive option matching.
34865 * lib/argmatch.h (argcasematch): Remove declaration.
34866 (ARGCASEMATCH): Remove macro.
34867 (__xargmatch_internal): Remove case_sensitive argument.
34868 (XARGMATCH): Update.
34869 (XARGCASEMATCH): Remove macro.
34870 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
34871 case_sensitive argument.
34872 (argcasematch): Remove function.
34873 (__xargmatch_internal): Remove case_sensitive argument.
34874 (main): Use XARGMATCH instead of XARGCASEMATCH.
34876 * lib/xmalloc.c: Change compile-time error message. Add comment about
34877 required autoconf version.
34879 2002-11-20 Paul Eggert <eggert@twinsun.com>
34881 Merge argmatch cleanups from Bison. Assume C89.
34883 * lib/argmatch.c: Include config.h here, not in argmatch.h.
34884 Include stdlib.h, for EXIT_FAILURE.
34885 Always include <string.h>, since we assume C89.
34886 (EXIT_FAILURE): Remove pre-C89 bug workaround.
34887 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
34888 Include <stddef.h> instead, since it's all we need for size_t.
34889 (PARAMS): Remove. All uses removed.
34890 (ARRAY_CARDINALITY): Do not bother to #undef.
34891 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
34892 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34893 Remove unnecessary parentheses.
34894 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
34895 Insert necessary parentheses.
34896 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
34897 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
34899 2002-11-19 Bruno Haible <bruno@clisp.org>
34901 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
34902 * lib/mbswidth.h: Include <stddef.h>, for size_t.
34904 * lib/mbswidth.h (PARAMS): Remove macro.
34905 (mbswidth, mbsnwidth): Use ANSI C function declarations.
34906 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
34908 * lib/gcd.h (PARAMS): Remove macro.
34909 (gcd): Use ANSI C function declarations.
34910 * lib/gcd.c (gcd): Likewise.
34912 2002-11-15 Bruno Haible <bruno@clisp.org>
34914 * lib/strcspn.c: Include <stddef.h>.
34915 (strcspn): Use ANSI C function declaration. Change return type to
34917 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
34918 (strpbrk): Use NULL.
34919 * lib/strpbrk.h (PARAMS): Remove macro.
34920 (strpbrk): Use ANSI C function declaration.
34921 * lib/strstr.c: Don't include <sys/types.h>.
34922 * lib/strstr.h (PARAMS): Remove macro.
34923 (strstr): Use ANSI C function declarations.
34925 2002-11-14 Karl Berry <karl@gnu.org>
34927 * config/mkinstalldirs: `do' on separate line, instead of
34930 2002-11-06 Bruno Haible <bruno@clisp.org>
34932 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
34933 * lib/gcd.c (gcd): Likewise.
34935 2002-11-05 Bruno Haible <bruno@clisp.org>
34937 * lib/gcd.h: New file, from gettext-0.11.5.
34938 * lib/gcd.c: New file, from gettext-0.11.5.
34940 2002-11-05 Bruno Haible <bruno@clisp.org>
34942 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34943 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34944 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34945 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
34947 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
34949 * lib/makepath.c: Include gettext.h instead of <locale.h> and
34952 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
34953 * lib/human.c: Include gettext.h instead of <libintl.h>.
34954 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
34955 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
34956 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
34957 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
34958 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
34959 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
34960 (textdomain): Remove definition.
34961 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
34963 * lib/long-options.c: Remove include of <libintl.h> and definition of
34965 * lib/same.c: Remove include of <libintl.h> and definition of _.
34967 2002-11-04 Owen Taylor <otaylor@redhat.com>
34969 * lib/config.charset: A few additions for Solaris.
34971 2002-11-04 Bruno Haible <haible@clisp.cons.org>
34973 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
34974 * lib/localcharset.c (locale_charset): Declare as extern "C".
34976 2002-11-04 Bruno Haible <haible@clisp.cons.org>
34978 * lib/config.charset: msdos in uk_UA uses CP1125.
34980 2002-11-04 Bruno Haible <bruno@clisp.org>
34982 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
34983 * lib/strcase.h: New file, from GNU gettext-0.11.5.
34984 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
34985 * lib/strstr.h: New file, from GNU gettext-0.11.5.
34986 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
34988 2002-11-04 Bruno Haible <bruno@clisp.org>
34990 * lib/localcharset.c (locale_charset): Don't return an empty string.
34992 2002-11-04 Bruno Haible <bruno@clisp.org>
34994 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
34997 2002-11-04 Bruno Haible <bruno@clisp.org>
34999 * lib/config.charset: Update for newest glibc. Add canonical names
35000 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
35002 2002-11-04 Bruno Haible <bruno@clisp.org>
35004 * lib/config.charset: Add support for NetBSD.
35006 2002-11-04 Bruno Haible <bruno@clisp.org>
35008 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
35010 2002-11-01 Bruno Haible <bruno@clisp.org>
35012 * configure.in: Add AC_CONFIG_AUX_DIR call.
35013 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
35015 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
35017 2002-09-28 Karl Berry <karl@gnu.org>
35019 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
35020 installed automake until the next release, since changes have been
35023 2002-09-25 Karl Berry <karl@gnu.org>
35025 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
35026 * lib/getopt*: copy from libc/posix.
35027 * lib/gettext.h: copy from gettext.
35028 * lib/.cppi-disable: add strdup.c, gettext.h.
35030 2002-09-25 Karl Berry <karl@gnu.org>
35032 * config/srclist.txt: enable gettext.h check.
35033 * config/config.{guess,sub}: update from prep.
35034 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
35035 from automake 1.6.3.
35038 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
35040 * regex.c (PATFETCH): Remove the translating fetch.
35041 (PATFETCH_RAW): Rename to PATFETCH.
35042 (set_image_of_range): New fun.
35043 (SET_RANGE_TABLE_WORK_AREA): Use it.
35044 (regex_compile): Don't translate the pattern chars so eagerly.
35045 Only do it when inserting an `exactn' bytecode or when handling
35047 (mutually_exclusive_p): Avoid empty statement.
35049 2002-07-06 Jim Meyering <meyering@lucent.com>
35051 * m4/README: Don't mention Makefile.am.in.
35052 Outline how I've tested changes to .m4 files. Yep, it's a pain.
35054 2002-07-01 Jim Meyering <meyering@lucent.com>
35056 * lib/c-stack.c: Include sys/time.h.
35057 From Volker Borchert.
35059 2002-06-26 Paul Eggert <eggert@twinsun.com>
35061 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
35063 2002-06-26 Paul Eggert <eggert@twinsun.com>
35065 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
35066 New macro. Use it uniformly instead of
35067 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
35068 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
35069 reported by Vin Shelton.
35071 2002-06-22 Paul Eggert <eggert@twinsun.com>
35073 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
35074 Do not assume SA_SIGINFO behavior.
35075 Bug reported by Jim Meyering on NetBSD 1.5.2.
35077 2002-06-22 Jim Meyering <meyering@lucent.com>
35079 * m4/c-stack.m4: New file, from diffutils-2.8.2.
35080 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
35082 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
35083 now that configure.ac uses AC_GNU_SOURCE.
35084 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
35085 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
35087 Update to latest tools. Suggestions from Paul Eggert.
35088 * m4/stdbool.m4: New file, from diffutils-2.8.2.
35089 * m4/gnu-source.m4: Update from diffutils-2.8.2.
35090 * m4/fnmatch.m4: Likewise.
35091 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
35092 to AC_HEADER_STDBOOL
35094 2002-06-22 Jim Meyering <meyering@lucent.com>
35096 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
35097 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
35099 2002-06-22 Jim Meyering <meyering@lucent.com>
35101 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
35103 * lib/exitfail.c, exitfail.h: Likewise.
35104 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
35106 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
35108 (EXTRA_DIST): Add fnmatch_loop.c.
35109 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
35111 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
35112 * lib/fnmatch.c: Update from diffutils-2.8.2.
35113 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
35114 * lib/fnmatch.h: Remove file.
35116 2002-06-21 Jim Meyering <meyering@lucent.com>
35118 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
35119 * m4/mbrtowc.m4: Likewise.
35121 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
35122 * m4/mbswidth.m4: Reflect name change:
35123 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
35124 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35126 * m4/lib-link.m4: Update from gettext-0.11.2.
35127 * m4/gettext.m4: Likewise.
35129 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
35130 From Alfred M. Szmidt.
35132 2002-06-18 Paul Eggert <eggert@twinsun.com>
35134 * lib/file-type.h: Report an error if neither S_ISREG nor
35135 S_IFREG is defined, instead of using a test specific to glibc
35136 2.2. This should be safe, since POSIX requires S_ISREG and
35137 Unix Version 7 had S_IFREG. We don't need to check for
35138 <sys/types.h> since we don't use any symbols that it defines.
35140 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
35142 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
35143 $@-t, so that each temporary file name is unique and valid in the first
35144 8 characters, for operation under DOS.
35146 2002-06-15 Paul Eggert <eggert@twinsun.com>
35148 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
35150 2002-06-15 Jim Meyering <meyering@lucent.com>
35152 Work even with DJGPP 2.03, which lacks support for symlinks.
35154 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
35156 * lib/lchown.c (S_ISLNK): Likewise.
35158 2002-06-15 Jim Meyering <meyering@lucent.com>
35160 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
35161 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
35162 have been included before this file.
35164 2002-06-14 Jim Meyering <meyering@lucent.com>
35166 * lib/file-type.h: Use the version from diffutils-2.8.2.
35167 * lib/file-type.c: Likewise.
35169 2002-06-07 Jim Meyering <meyering@lucent.com>
35171 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
35172 They're needed at least for NetBSD 1.5.2.
35173 ($statxfs_includes): Include those same headers.
35174 ($statxfs_includes): Include sys/vfs.h if available.
35175 ($statxfs_includes): Likewise for sys/statvfs.h.
35176 Check for the following members in both structs statfs and statvfs:
35177 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
35179 2002-06-01 Jim Meyering <meyering@lucent.com>
35181 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
35182 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
35184 2002-05-28 Jim Meyering <meyering@lucent.com>
35186 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
35187 Reported by Volker Borchert.
35189 2002-05-27 Jim Meyering <meyering@lucent.com>
35191 Fix a problem seen only on nonconforming systems whereby ls.c's
35192 use of localtime, and then of gettimeofday would cause trouble:
35193 the localtime call used to initialize rpl_gettimeofday's save
35194 mechanism would clobber ls's current local time information so
35195 that in any long listing the first file would always be listed
35196 with date 1970-01-01. Analysis by Volker Borchert.
35198 * lib/gettimeofday.c (localtime): Undefine.
35199 (rpl_localtime): New function.
35201 2002-05-27 Jim Meyering <meyering@lucent.com>
35203 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
35206 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
35207 use the replacement function; it wouldn't resolve at link time.
35208 Reported by Volker Borchert.
35210 2002-05-22 Jim Meyering <meyering@lucent.com>
35212 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
35214 * lib/file-type.h: New file.
35215 * lib/file-type.c (file_type): New file/function. Extracted from
35218 2002-04-30 Jim Meyering <meyering@lucent.com>
35220 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
35222 2002-04-29 Paul Eggert <eggert@twinsun.com>
35224 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
35226 2002-04-29 Paul Eggert <eggert@twinsun.com>
35228 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
35229 Do not check for alloca.h (no longer used) or stdbool.h (was never
35230 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
35232 2002-04-29 Paul Eggert <eggert@twinsun.com>
35234 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
35236 2002-04-29 Jim Meyering <meyering@lucent.com>
35238 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
35239 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
35240 Use AC_FUNC_STRNLEN here instead.
35242 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
35243 With autoconf-2.53a, it's part of AC_PROG_CC.
35245 2002-04-28 Paul Eggert <eggert@twinsun.com>
35247 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
35248 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
35250 2002-04-28 Paul Eggert <eggert@twinsun.com>
35252 * lib/sig2str.h, lib/sig2str.c: New files.
35253 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
35255 2002-04-28 Paul Eggert <eggert@twinsun.com>
35257 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
35258 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
35259 of 127, since 64 is the largest conceivable number for ancient
35261 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
35263 2002-04-28 Jim Meyering <meyering@lucent.com>
35265 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
35267 2002-04-24 Jim Meyering <meyering@lucent.com>
35269 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
35270 (jm_PREREQ): Use it.
35272 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
35273 mach/mach.h fcntl.h.
35274 Check for this function: setlocale.
35276 2002-04-24 Jim Meyering <meyering@lucent.com>
35278 * lib/gettext.h: New file, from Gettext.
35279 * lib/Makefile.am (INCLUDES): Remove -I../intl.
35280 (libfetish_a_SOURCES): Add gettext.h.
35282 2002-04-16 Jim Meyering <meyering@lucent.com>
35284 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
35285 ut_pid, ut_id, ut_exit.
35287 2002-04-16 Jim Meyering <meyering@lucent.com>
35289 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
35290 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
35291 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
35293 2002-04-12 Jim Meyering <meyering@lucent.com>
35295 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
35296 now-bogus check for f_type in sys/mount.h. Instead, just test for the
35297 existence of the getmntinfo function. Needed for Darwin 5.3.
35299 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
35300 This is necessary at least on Darwin 5.3.
35302 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
35303 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
35304 strnlen.o in the library, and that makes some versions of ranlib
35307 2002-04-12 Jim Meyering <meyering@lucent.com>
35309 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
35311 2002-04-09 Jim Meyering <meyering@lucent.com>
35313 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
35314 to be more precise. Rather than saying we're checking whether the
35315 function `works', say what we're testing.
35316 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
35317 Reported by Bruno Haible.
35319 2002-03-10 Jim Meyering <meyering@lucent.com>
35321 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
35322 Suggestion from Santiago Vila.
35324 2002-03-08 Jim Meyering <meyering@lucent.com>
35326 * lib/rename.c: Mention that this wrapper is needed also on
35327 mips-dec-ultrix4.4 systems.
35329 2002-03-02 Jim Meyering <meyering@lucent.com>
35331 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
35332 not HAVE_CLOCK_SETTIME.
35334 2002-02-27 Paul Eggert <eggert@twinsun.com>
35336 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
35337 Check for clock_settime.
35339 2002-02-27 Paul Eggert <eggert@twinsun.com>
35341 * lib/nanosleep.h: Rename to....
35342 * lib/timespec.h: New name for nanosleep.h. All uses changed.
35344 * lib/gettime.c: New file.
35345 * lib/settime.c: New file.
35346 * lib/stime.c: Remove.
35348 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
35349 timespec.h. Remove nanosleep.h.
35351 2002-02-25 Paul Eggert <eggert@twinsun.com>
35353 * m4/acl.m4: New file.
35354 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
35355 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
35357 2002-02-25 Paul Eggert <eggert@twinsun.com>
35359 * lib/acl.c, lib/acl.h: New files.
35360 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
35362 2002-02-24 Jim Meyering <meyering@lucent.com>
35364 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
35365 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
35366 cause trouble. Reported by Nelson Beebe.
35368 2002-02-23 Paul Eggert <eggert@twinsun.com>
35370 * lib/path-concat.c (xpath_concat): Reorder code to pacify
35371 compilers that don't know that xalloc_die never returns.
35373 2002-02-20 Jim Meyering <meyering@lucent.com>
35375 * lib/getdate.c: Regenerate using bison-1.33.
35377 2002-02-17 Jim Meyering <meyering@lucent.com>
35379 * config/config.guess (main): Don't use `head -1'; it's no longer
35380 portable. Use `sed 1q' instead.
35382 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
35384 * m4/codeset.m4: Upgrade to gettext-0.11.
35385 * m4/gettext.m4: Upgrade to gettext-0.11.
35386 * m4/glibc21.m4: Upgrade to gettext-0.11.
35387 * m4/iconv.m4: Upgrade to gettext-0.11.
35388 * m4/isc-posix.m4: Upgrade to gettext-0.11.
35389 * m4/lcmessage.m4: Upgrade to gettext-0.11.
35390 * m4/lib-ld.m4: New file, from gettext-0.11.
35391 * m4/lib-link.m4: New file, from gettext-0.11.
35392 * m4/lib-prefix.m4: New file, from gettext-0.11.
35393 * m4/progtest.m4: Upgrade to gettext-0.11.
35395 2002-02-15 Paul Eggert <eggert@twinsun.com>
35397 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
35398 (jm_PREREQ): Use it.
35400 2002-02-15 Paul Eggert <eggert@twinsun.com>
35402 * lib/posixver.c, lib/posixver.h: New files.
35403 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35405 2002-02-02 Paul Eggert <eggert@twinsun.com>
35406 Bruno Haible <bruno@clisp.org>
35408 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35409 (fwrite_success_callback): New declaration.
35410 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35411 print_unicode_char. Call failure callback instead of error.
35412 (fwrite_success_callback): New function.
35413 (exit_failure_callback): New function.
35414 (fallback_failure_callback): New function.
35415 (print_unicode_char): Call unicode_to_mb.
35417 2002-01-26 Jim Meyering <meyering@lucent.com>
35419 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35420 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35422 2002-01-26 Jim Meyering <meyering@lucent.com>
35424 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35426 2002-01-22 Paul Eggert <eggert@twinsun.com>
35428 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35430 2002-01-22 Jim Meyering <meyering@lucent.com>
35432 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35433 Otherwise, some versions of automake would omit the rule that makes
35434 Makefile from Makefile.in.
35436 2002-01-21 Paul Eggert <eggert@twinsun.com>
35438 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35439 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35440 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35441 (memcoll): Set errno to zero if there is no error.
35443 * lib/quotearg.c (quotearg_buffer_restyled):
35444 Fix bug with quoting buffers containing NUL when backslashing escapes.
35445 This bug was exposed by the other changes in this patch.
35446 (quotearg_n_options): New arg ARGSIZE.
35447 All callers changed.
35448 (quoting_options_from_style): New function.
35449 (quotearg_n_style): Use it.
35450 (quotearg_n_style_mem): New function.
35452 * lib/quotearg.h (quotearg_n_style_mem): New function.
35454 2002-01-19 Jim Meyering <meyering@lucent.com>
35456 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35457 Remove useless quotes: DF_PROG="df".
35458 * m4/strnlen.m4: New file.
35460 2002-01-16 Paul Eggert <eggert@twinsun.com>
35462 * lib/backupfile.c (ISDIGIT): Comment fix.
35463 * lib/getdate.y (ISDIGIT): Likewise.
35464 * lib/posixtm.c (ISDIGIT, year): Likewise.
35465 * lib/strverscmp.c (ISDIGIT): Likewise.
35466 * lib/userspec.c (ISDIGIT): Likewise.
35468 2002-01-16 Jim Meyering <meyering@lucent.com>
35470 * lib/getdate.y: Add three semicolons, each just before a closing
35471 brace. Bison (as of version 1.31) no longer papers over that mistake.
35473 2002-01-05 Jim Meyering <meyering@lucent.com>
35475 * lib/version-etc.c (version_etc_copyright): Update copyright year.
35477 2001-12-19 Paul Eggert <eggert@twinsun.com>
35479 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35480 not silently exit merely because the output buffer happens to
35481 have nothing pending.
35483 2001-12-18 Paul Eggert <eggert@twinsun.com>
35485 See the big note in ../ChangeLog.
35486 * lib/human.c (suffixes): Prefer K to k for 1024.
35487 (generate_suffix_backwards): New function.
35488 (human_readable_inexact): Use it.
35489 * lib/xstrtol.c (__xstrtol): If there is no number but there
35490 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
35491 Accept 'K' as well as 'k'.
35493 2001-12-15 Jim Meyering <meyering@lucent.com>
35495 * lib/regex.h (__restrict_arr): Update from libc.
35497 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35498 as `remote' if the name starts with `//'. Suggested by Michael Stone.
35501 2001-12-14 Jim Meyering <meyering@lucent.com>
35503 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35504 Suggestion from Bruno Haible.
35506 2001-12-10 Jim Meyering <meyering@lucent.com>
35508 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35509 xrealloc, Instead, include "xalloc.h".
35510 (initbuffer): Don't cast xmalloc return value to char*.
35511 (readline): Reword comment.
35512 Don't cast xrealloc return value to char*
35513 Return NULL, not 0.
35515 2001-12-09 Jim Meyering <meyering@lucent.com>
35517 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35518 about `signed and unsigned type in conditional expression'.
35519 * lib/posixtm.c (posix_time_parse): Likewise.
35521 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35523 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35524 to avoid a pedantic warning.
35526 * lib/getstr.c: Don't include assert.h.
35527 (getstr): Remove warning-evoking assertions.
35528 Return -1 if offset parameter is out of bounds.
35529 Change the type of a local from int to size_t.
35531 * lib/strftime.c (my_strftime_localtime_r): Include this function
35532 definition in the `#if ! HAVE_TM_GMTOFF' block.
35534 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35535 Include xalloc.h instead.
35537 2001-12-02 Jim Meyering <meyering@lucent.com>
35539 * lib/tempname.c: Don't declare getenv, thus reverting the change of
35540 2001-11-18. It's no longer necessary, now that stdlib.h is always
35543 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35544 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
35546 2001-11-30 Akim Demaille <akim@epita.fr>
35548 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35549 before being defined.
35551 2001-11-27 Paul Eggert <eggert@twinsun.com>
35553 * lib/quotearg.h (quotearg_n, quotearg_n_style):
35554 First arg is int, not unsigned.
35555 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35556 (SIZE_MAX, UINT_MAX): New macros.
35557 (quotearg_n_options): Abort if N is negative.
35558 Avoid overflow check on hosts where size_t is 64 bits and int
35559 is 32 bits, as overflow is impossible there.
35560 Fix off-by-one typo that caused unnecessary reallocation.
35562 2001-11-27 Jim Meyering <meyering@lucent.com>
35564 * lib/tempname.c: Merge with version from libc.
35565 * lib/regex.c: Likewise.
35567 * lib/tempname.c: Include stdlib.h unconditionally. On some old
35568 systems for which STDC_HEADERS is 0, it was not included, resulting in
35569 a warning about an integer-to-pointer conversion problem with getenv.
35570 Reported by Volker Borchert.
35572 2001-11-26 Jim Meyering <meyering@lucent.com>
35574 * lib/gtod.h: Remove file.
35575 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35576 * lib/gettimeofday.c: Don't include gtod.h.
35577 (GTOD_init): Remove function.
35578 (rpl_gettimeofday): Do its job here instead, rather than aborting.
35579 Suggestion from Volker Borchert.
35581 2001-11-23 Jim Meyering <meyering@lucent.com>
35583 * lib/hash.h (struct hash_table): Don't define here. Merely declare
35585 * lib/hash.c (struct hash_table): Define it here instead.
35587 2001-11-22 Jim Meyering <meyering@lucent.com>
35589 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
35591 2001-11-20 Jim Meyering <meyering@lucent.com>
35593 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
35594 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
35596 2001-11-19 Jim Meyering <meyering@lucent.com>
35598 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
35599 directory. Use "conftestXXXXXX" as the template.
35600 Suggestion from Paul Eggert.
35602 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
35603 immediately, so the test doesn't mistakenly hit the max-open-files
35606 2001-11-18 Paul Eggert <eggert@twinsun.com>
35608 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
35609 (TEMPORARIES): New macro.
35610 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
35611 removes an artificial limitation (e.g. HP-UX 10.20, where
35614 2001-11-18 Jim Meyering <meyering@lucent.com>
35616 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
35618 2001-11-18 Jim Meyering <meyering@lucent.com>
35620 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
35623 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
35624 files will be created before anything else.
35626 2001-11-17 Paul Eggert <eggert@twinsun.com>
35628 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
35629 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
35631 2001-11-17 Jim Meyering <meyering@lucent.com>
35633 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
35634 Prompted by a report from Bob Proulx.
35636 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
35637 Instead, require UTILS_FUNC_MKSTEMP.
35639 2001-11-17 Jim Meyering <meyering@lucent.com>
35641 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
35642 Now, that's done as part of AC_FUNC_STRTOD.
35644 2001-11-17 Jim Meyering <meyering@lucent.com>
35646 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
35647 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
35648 rather than group writable. Patch by Juan F. Codagnone.
35650 * lib/readtokens.c: Remove explicit declarations of xmalloc and
35651 xrealloc, Instead, include "xalloc.h".
35653 * lib/mountlist.c: Include unlocked-io.h after all system headers.
35654 Remove explicit declarations of xmalloc, xrealloc,
35655 and xstrdup. Instead, include "xalloc.h".
35657 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
35659 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
35661 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
35663 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
35664 Reported by Padraig Brady.
35666 * lib/mkstemp.c: #undef mkstemp.
35668 (rpl_mkstemp): Rename from mkstemp.
35671 2001-11-16 Jim Meyering <meyering@lucent.com>
35673 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
35674 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
35675 determine the amount of total physical memory, use pstat_getstatic.
35676 HPUX-11 doesn't define _SC_PHYS_PAGES.
35677 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
35678 If sysconf couldn't be used to determine the amount of available
35679 physical memory, use both pstat_getstatic and pstat_getdynamic.
35680 Based on a patch from Bob Proulx.
35682 2001-11-10 Jim Meyering <meyering@lucent.com>
35684 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
35685 (jm_PREREQ): Use it.
35687 2001-11-09 Jim Meyering <meyering@lucent.com>
35689 * m4/jm-macros.m4: Require autoconf-2.52f.
35690 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
35691 Use these AC_-prefixed names, not the AM_-prefixed ones.
35693 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
35695 2001-11-05 Jim Meyering <meyering@lucent.com>
35697 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
35699 2001-11-04 Jim Meyering <meyering@lucent.com>
35701 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
35704 2001-11-03 Jim Meyering <meyering@lucent.com>
35706 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
35709 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
35710 know the name of the variable in the macro definition.
35712 2001-11-03 Jim Meyering <meyering@lucent.com>
35714 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
35715 in argmatch_to_argument call.
35717 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
35720 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
35721 e.g., a fault due to an attempt to free a NULL pointer.
35723 2001-11-01 Jim Meyering <meyering@lucent.com>
35725 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
35726 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
35728 2001-11-01 Jim Meyering <meyering@lucent.com>
35730 * lib/dirfd.c, lib/dirfd.h: New files.
35731 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
35733 * lib/hash.c (hash_print) [TESTING]: Clean up.
35735 2001-10-22 Paul Eggert <eggert@twinsun.com>
35737 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
35738 to avoid a warning if -Wall.
35740 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
35743 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
35744 (per RMS's instructions, this is now the canonical source)
35745 * lgpl/, gpl/: New directories.
35747 2001-10-21 Paul Eggert <eggert@twinsun.com>
35749 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
35751 2001-10-21 Jim Meyering <meyering@lucent.com>
35753 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
35754 this code would end up calling gettext even in packages built
35755 with --disable-nls.
35756 * lib/getopt.c (_): Likewise.
35757 * lib/regex.c (_): Likewise.
35759 2001-10-20 Paul Eggert <eggert@twinsun.com>
35761 * m4/error.m4 (jm_PREREQ_ERROR):
35762 Do not invoke AC_CHECK_FUNCS with strerror_r, as
35763 AC_FUNC_STRERROR_R does that.
35764 Check for strerror declaration.
35766 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
35767 are supposed to have them these days.
35768 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
35769 Merge changes from latest Autoconf CVS.
35770 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
35771 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
35772 POSIX decided to standardize on the int flavor of strerror_r.
35774 2001-10-20 Paul Eggert <eggert@twinsun.com>
35776 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
35777 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
35778 Use strerror_r that is only a macro, even if it is not a function.
35779 (strerror): Check for HAVE_DECL_STRERROR before declaring.
35780 (private_strerror): Use prototypes, not old-style function definition.
35781 (print_errno_message): New function.
35782 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
35783 char*-flavored one.
35784 (error_tail, error, error_at_line): Use it.
35786 2001-10-11 Jim Meyering <meyering@lucent.com>
35788 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
35789 and quote_n (1, ... to avoid clobbering a buffer.
35791 2001-10-05 Jim Meyering <meyering@lucent.com>
35793 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
35795 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
35796 * lib/hash-pjw.h: New file.
35798 2001-09-30 Jim Meyering <meyering@lucent.com>
35800 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
35801 `struct fsstat' has the `f_fstypename' member.
35802 Use that to define FS_TYPE, which is now used to make
35803 the getfsstat link test tighter.
35805 2001-09-30 Jim Meyering <meyering@lucent.com>
35807 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
35808 Include <sys/ucred.h>, for Apple Darwin.
35809 Include sys/mount.h and sys/fs_types.h only if available.
35811 (read_filesystem_list): Use FS_TYPE.
35813 2001-09-29 Paul Eggert <eggert@twinsun.com>
35815 * lib/exclude.c (excluded_filename): 0 -> false, since it's
35818 2001-09-29 Jim Meyering <meyering@lucent.com>
35820 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35821 [one-argument getmntent function]): Include stdio.h before mntent.h.
35822 SunOS 4.1.x needs it for the declaration of `FILE'.
35823 Patch by Volker Borchert.
35825 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
35826 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
35827 sys/fs_types.h, and make the link-test for getfsstat guard #include
35828 directives with appropriate #if HAVE_*_H tests so that we can
35829 detect getfsstat on Apple Darwin1.3.7 systems.
35830 Reported by Nelson Beebe.
35831 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
35833 2001-09-28 Paul Eggert <eggert@twinsun.com>
35835 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35836 #defines strtoimax. Also treat the other strto* functions
35839 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
35840 Check for strtoul and strtoumax,
35841 as those declarations are made even in the signed case.
35842 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
35843 Likewise, for strtol and strtoimax.
35845 2001-09-28 Paul Eggert <eggert@twinsun.com>
35847 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
35848 #defines strtoimax. Also treat the other strto* functions
35851 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
35852 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
35853 (strtoimax, strtoumax): Do not declare if already defined as a macro.
35855 2001-09-26 Jim Meyering <meyering@lucent.com>
35857 Most macros in unlocked-io.h had the wrong number of arguments.
35858 * lib/gen-uio: New script.
35859 (USE_UNLOCKED_IO): Define to 1 if not already defined.
35860 * lib/unlocked-io.hin: Remove file.
35861 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
35862 rather than trying to embed it here.
35863 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
35864 Reported by Padraig Brady.
35866 2001-09-25 Volker Borchert <bt@teknon.de>
35868 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
35871 2001-09-24 Jim Meyering <meyering@lucent.com>
35873 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
35875 2001-09-23 Jim Meyering <meyering@lucent.com>
35877 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
35878 instead of the mere test for existence of mntent.h. The latter
35879 would get a false-positive on AIX 3.4 systems.
35880 In the outer getmntent if-block, don't die if neither of the getmntent
35881 tests succeeds. Instead, just fall through and continue with the
35884 2001-09-23 Jim Meyering <meyering@lucent.com>
35886 * lib/mountlist.c: Remove useless parentheses in #if directives.
35887 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
35888 the deprecated MOUNTED symbol is no longer defined in mntent.h.
35890 2001-09-22 Jim Meyering <meyering@lucent.com>
35892 * m4/gettext.m4: New file. From gettext.
35893 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
35894 * m4/progtest.m4: Likewise
35895 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
35896 * m4/glibc21.m4: Likewise.
35898 * m4/libintl.m4: Remove. No longer used.
35900 2001-09-22 Jim Meyering <meyering@lucent.com>
35902 * lib/localcharset.c: Update from latest gettext.
35903 * lib/config.charset: Likewise.
35905 2001-09-20 Jim Meyering <meyering@lucent.com>
35907 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
35909 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
35912 2001-09-20 Jim Meyering <meyering@lucent.com>
35914 * lib/xstrtol.c (strtoimax): Guard declaration with
35915 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
35916 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
35917 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
35918 (strtoumax): Likewise, for completeness (it wasn't necessary).
35920 2001-09-17 Paul Eggert <eggert@twinsun.com>
35922 * lib/strtoimax.c (HAVE_LONG_LONG):
35923 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
35924 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
35925 to work around bug in IBM C compiler.
35927 2001-09-17 Jim Meyering <meyering@lucent.com>
35929 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
35930 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
35931 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
35932 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
35933 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
35934 whenever the right hand side need not be expanded by the shell.
35936 2001-09-16 Paul Eggert <eggert@twinsun.com>
35938 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
35939 library. It's not correct, as some older glibcs are buggy.
35940 fnmatch wasn't fixed until glibc 2.2.
35942 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
35943 special shell magic here.
35945 2001-09-16 Jim Meyering <meyering@lucent.com>
35947 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
35948 * m4/jm-macros.m4: Require it.
35950 2001-09-16 Jim Meyering <meyering@lucent.com>
35952 * lib/mkdir.c: New file.
35954 2001-09-15 Jim Meyering <meyering@lucent.com>
35956 * m4/jm-macros.m4: Check for help2man.
35958 2001-09-11 Jim Meyering <meyering@lucent.com>
35960 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
35961 The body, by Paul Eggert, was moved here from configure.in.
35962 * m4/jm-macros.m4: Require UTILS_HOST_OS.
35964 2001-09-04 Paul Eggert <eggert@twinsun.com>
35966 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
35967 (jm_PREREQ): Use it.
35969 2001-09-04 Paul Eggert <eggert@twinsun.com>
35971 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
35972 Use ssize_t, not int, to store result of readlink.
35973 Check for ssize_t overflow as well as size_t overflow,
35974 as POSIX says the result of readlink is implementation-defined
35975 when ssize_t overflows.
35976 Remove unnecessary cast to char*.
35977 Use free+malloc instead of realloc, as the storage doesn't need
35978 to be preserved and it's clearer and can be more efficient that way.
35979 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
35980 * lib/xreadlink.h (xreadlink): Update prototype.
35982 2001-09-04 Paul Eggert <eggert@twinsun.com>
35984 * lib/xgetcwd.c: Revert some of the previous change; intead,
35985 fix the HAVE_GETCWD_NULL code to behave more like the
35986 !HAVE_GETCWD_NULL code used to.
35988 Include "xalloc.h".
35989 (xgetcwd): Do not return NULL when memory is exhausted; instead,
35992 2001-09-03 Paul Eggert <eggert@twinsun.com>
35994 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
35995 sys/param.h, as pathmax.h includes them.
35997 2001-09-03 Paul Eggert <eggert@twinsun.com>
35999 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
36000 (jm_PREREQ_XGETCWD): New macro.
36002 * m4/getcwd.m4: New file.
36004 2001-09-03 Paul Eggert <eggert@twinsun.com>
36006 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
36007 like the HAVE_GETCWD_NULL code.
36008 Include pathmax.h if not HAVE_GETCWD.
36009 Do not include xalloc.h.
36010 (INITIAL_BUFFER_SIZE): New symbol.
36011 Do not use xmalloc / xrealloc, since the caller is responsible for
36012 handling errors. Preserve errno around `free' during failure.
36013 Do not overrun buffer when using getwd.
36015 2001-09-03 Paul Eggert <eggert@twinsun.com>
36017 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
36018 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
36021 2001-09-03 Paul Eggert <eggert@twinsun.com>
36023 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
36024 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
36025 spotted by Jim Meyering.
36027 2001-09-03 Jim Meyering <meyering@lucent.com>
36029 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
36032 2001-09-02 Jim Meyering <meyering@lucent.com>
36034 * lib/error.c: Update from GNU libc.
36036 2001-09-01 Jim Meyering <meyering@lucent.com>
36038 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
36041 2001-09-01 Jim Meyering <meyering@lucent.com>
36043 * lib/xreadlink.c: New file.
36044 * lib/xreadlink.h: New file.
36045 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
36048 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
36049 doesn't conflict with sparc Solaris 7's definition in
36050 /usr/include/sys/int_types.h.
36052 * lib/exclude.c: Use `""', not `<>' to #include non-system header
36054 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
36055 and strncasecmp as r-values. Unixware didn't have declarations.
36057 2001-08-31 Paul Eggert <eggert@twinsun.com>
36059 * lib/xstrtol.h: Add copyright notice.
36060 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
36061 LONGINT_INVALID_SUFFIX_CHAR.
36063 2001-08-31 Paul Eggert <eggert@twinsun.com>
36065 * lib/xstrtol.c (strtoimax): New decl.
36067 2001-08-31 Paul Eggert <eggert@twinsun.com>
36069 * lib/xgetcwd.c: Don't include pathmax.h.
36070 Include stdlib.h and unistd.h if available.
36072 (xmalloc, xstrdup, free): Remove decls.
36073 (xgetcwd): Don't assume sizes fit in unsigned.
36074 Check for overflow when computing sizes.
36075 Simplify reallocation code.
36077 2001-08-31 Paul Eggert <eggert@twinsun.com>
36079 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
36080 a directory's st_size can have an arbitrary value, so the old
36081 usage could waste an arbitrary amount of memory. All uses
36083 * lib/savedir.h: Update prototype.
36085 2001-08-31 Paul Eggert <eggert@twinsun.com>
36087 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
36089 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
36092 Also, make the following further changes to make this file's
36093 configuration more similar to that of strtol.c:
36094 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
36095 (strtoumax, uintmax_t, strtoull, strtol): Remove.
36096 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
36097 (strtoimax): Renamed from strtoumax. All uses of unsigned values
36098 changed to signed values.
36100 And make the following changes as well:
36101 Fix copyright notice, as 1999 was missing.
36102 (verify): New macro.
36103 (strtoimax): Check sizes at compile-time, not run-time.
36104 Prefer strtol to strtoll if both work.
36105 (main): Remove; it was not that useful and was a pain to maintain.
36107 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
36109 2001-08-31 Jim Meyering <meyering@lucent.com>
36111 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
36112 Use an initial, malloc'd, buffer of length 128 rather than
36113 a statically allocated one of length 1024.
36115 2001-08-30 Paul Eggert <eggert@twinsun.com>
36117 Simplify code, partly by assuming autoconf 2.52 semantics.
36119 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
36121 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
36122 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
36124 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
36125 Move AC_REQUIRE to next-to-top level, to avoid confusion.
36126 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
36127 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
36128 jm_AC_HEADER_INTTYPES_H.
36129 * m4/jm-macros.m4 (jm_MACROS): Likewise.
36131 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
36133 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36134 Quote first arg of AC_DEFUN.
36135 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
36136 since they are needed to parse the include file even if we need
36137 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
36138 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
36139 but with opposite signedness.
36141 2001-08-30 Paul Eggert <eggert@twinsun.com>
36143 Merge 'exclude' changes from tar 1.13.22.
36144 This fixes one or two unlikely storage allocation overflow bugs,
36145 but doesn't change user-visible behavior otherwise.
36147 2001-08-30 Paul Eggert <eggert@twinsun.com>
36149 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
36150 (jm_PREREQ_EXCLUDE): New macro.
36152 2001-08-30 Paul Eggert <eggert@twinsun.com>
36154 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
36157 2001-08-30 Paul Eggert <eggert@twinsun.com>
36159 * lib/hash.c: Remove '2001' from copyright notice.
36161 2001-08-30 Paul Eggert <eggert@twinsun.com>
36163 * lib/full-write.h: New file.
36164 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
36165 * lib/full-write.c: Correct credits, as cccp.c no longer
36166 exists and anyway it was so heavily changed from the old cccp
36167 code as to be unrecognizable. Include full-write.h.
36168 (full_write) Return size_t, with short writes meaning failure.
36169 All callers changed. This fixes a bug with large buffers
36171 * lib/utime.c: Include full-write.h.
36173 2001-08-30 Paul Eggert <eggert@twinsun.com>
36175 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
36176 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
36177 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
36178 Include if available.
36179 (<xalloc.h>): Include
36180 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
36181 (verify): New macro. Use it to verify that EXCLUDE macros do not
36182 collide with FNM macros.
36183 (struct patopts): New struct.
36184 (struct exclude): Use it, as exclude patterns now come with options.
36185 (new_exclude): Support above changes.
36186 (new_exclude, add_exclude_file):
36187 Initial size must now be a power of two to simplify overflow checking.
36188 (free_exclude, fnmatch_no_wildcards): New function.
36189 (excluded_filename): No longer requires options arg, as the options
36190 are determined by add_exclude. Now returns bool, not int.
36191 (excluded_filename, add_exclude):
36192 Add support for the fancy new exclusion options.
36193 (add_exclude, add_exclude_file): Now takes int options arg.
36194 Check for arithmetic overflow when computing sizes.
36195 (add_exclude_file): xrealloc might modify errno, so don't
36196 realloc until after errno might be used.
36198 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
36200 (free_exclude): New decl.
36201 (add_exclude, add_exclude_file): Now takes int options arg.
36202 (excluded_filename): No longer requires options arg, as the options
36203 are determined by add_exclude. Now returns bool, not int.
36205 2001-08-30 Paul Eggert <eggert@twinsun.com>
36207 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
36209 2001-08-27 Jim Meyering <meyering@lucent.com>
36211 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
36213 * lib/version-etc.c (N_): Remove definition.
36214 Revert most of last change.
36215 Instead, simply don't mark the `Copyright...' string for translation.
36216 Based on advice from Paul Eggert.
36218 * lib/strtoxmax.c: Tweak comment.
36220 2001-08-26 Jim Meyering <meyering@lucent.com>
36222 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
36224 * m4/xstrtoimax.m4: New file.
36225 * m4/xstrtoumax.m4: Add comments explaining why we
36226 AC_REPLACE_FUNCS(strtol).
36228 2001-08-26 Jim Meyering <meyering@lucent.com>
36230 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
36231 of copyright with `%s' so translators don't get an untranslated
36233 (COPYRIGHT_YEAR): Define.
36234 (version_etc): Use fprintf rather than fputs.
36235 Suggestion from Ulrich Drepper.
36237 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
36239 * lib/strtoll.c: New file, from GNU libc.
36240 * lib/xstrtoimax.c: New file.
36242 * lib/xstrtol.h: Add xstrtoimax.
36243 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
36244 * lib/strtoimax.c: New file. Likewise, but first define
36247 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
36249 * lib/strtoxmax.c: ... then renamed to this.
36251 2001-08-18 Paul Eggert <eggert@twinsun.com>
36253 * m4/inttypes.m4: Add AC_PREREQ(2.13).
36254 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
36255 (jm_AC_TYPE_INTMAX_T): New macro.
36256 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
36258 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
36260 * m4/longlong.m4: Renamed from ulonglong.m4.
36261 * m4/inttypes.m4: Renamed from inttypes_h.m4.
36262 * m4/uintmax_t.m4: Removed.
36264 2001-08-13 Paul Eggert <eggert@twinsun.com>
36266 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
36267 Port to Solaris 8, where 'sed' requires a space after the 'r'
36268 command, and where sh dislikes "$/". Clean up the spacing a bit.
36269 Redirect output to $tmp just once.
36271 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
36273 * lib/addext.c (<errno.h>): Include.
36274 (errno): Declare if not defined.
36275 (addext): Work correctly when pathconf returns -1 and leaves
36276 errno alone because there is no limit. Also, work even if
36277 pathconf returns a value greater than SIZE_MAX.
36279 2001-08-12 Jim Meyering <meyering@lucent.com>
36281 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
36282 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
36283 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
36284 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
36285 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
36286 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
36287 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
36288 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
36289 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
36290 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
36291 utime.m4, utimes.m4, xstrtoumax.m4:
36292 Quote the first argument in each use of AC_DEFUN.
36294 2001-08-12 Jim Meyering <meyering@lucent.com>
36296 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
36297 Simply `return getcwd (NULL, 0);'.
36298 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
36299 Use 1300 as initial value for length, not PATH_MAX.
36301 * lib/pathmax.h: Clean up cpp syntax.
36303 2001-08-12 Jim Meyering <meyering@lucent.com>
36305 * lib/gettimeofday.c: New file.
36306 * lib/gtod.h: New file.
36307 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
36309 2001-08-05 Jim Meyering <meyering@lucent.com>
36311 * m4/jm-macros.m4: Require autoconf-2.52.
36313 2001-08-04 Jim Meyering <meyering@lucent.com>
36315 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
36316 stmt, to get in sync with glibc.
36318 2001-08-03 Paul Eggert <eggert@twinsun.com>
36320 The following changes are from gettext 0.10.39 as maintained by
36323 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
36324 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
36325 with inverted sense. All uses changed.
36327 * lib/mbswidth.c: Don't include <limits.h>.
36328 Include <stdlib.h> and <string.h> unconditionally.
36329 (iswcntrl, mbsinit, ISCNTRL): New macros.
36330 (mbsnwidth): Use K&R style function declarations.
36331 Don't bother checking for MB_LEN_MAX == 1, since the compiler
36332 can optimize it when MB_CUR_MAX == 1.
36333 The width of control characters is zero, not 1.
36335 2001-08-03 Paul Eggert <eggert@twinsun.com>
36337 The following changes are from gettext 0.10.39 as maintained by
36338 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
36340 * m4/codeset.m4: Upgrade to serial AM1.
36341 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
36342 all uses changed. Quote first arg of AC_DEFUN.
36343 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
36345 * m4/iconv.m4: Upgrade to serial AM2.
36346 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
36347 Add --with-libconv-prefix.
36348 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
36349 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
36350 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
36351 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
36352 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
36354 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
36355 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
36356 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
36357 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
36358 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
36359 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
36360 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36361 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
36362 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
36364 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
36367 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
36368 not the default value.
36370 2001-06-25 Bruno Haible <haible@clisp.cons.org>
36371 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
36372 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
36373 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
36374 Also check for iswcntrl, used for wcwidth fallback.
36375 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
36378 2001-08-03 Jim Meyering <meyering@lucent.com>
36380 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
36381 as it was in the original. Reported by Paul Eggert.
36383 2001-07-16 Jim Meyering <meyering@lucent.com>
36385 * m4/gettimeofday.m4: New file.
36386 Prompted by a report from Bernhard Baehr.
36388 2001-07-15 Jim Meyering <meyering@lucent.com>
36390 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
36391 stuff. Now it's in ../Makefile.cfg.
36393 2001-07-15 Jim Meyering <meyering@lucent.com>
36395 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
36396 (BUILT_SOURCES): Add unlocked-io.h.
36397 (io_functions): Define.
36398 (unlocked-io.h): New rule.
36399 (DISTCLEANFILES): Add unlocked-io.h.
36400 (all-local): Depend on unlocked-io.h, to ensure it is created.
36402 * lib/unlocked-io.hin: New file
36404 * lib/regex.c: Update from glibc.
36406 2001-07-05 Jim Meyering <meyering@lucent.com>
36408 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36410 (libfetish_a_SOURCES): Put all .h files here instead.
36411 Remove a thus-exposed (better checks in automake) duplicate and
36412 two unnecessary .h files.
36414 2001-07-04 Jim Meyering <meyering@lucent.com>
36416 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
36417 that generates jm-glibc-io.m4 so that it doesn't trigger any make
36420 2001-07-02 Jim Meyering <meyering@lucent.com>
36422 The following changes were prompted by suggestions from Bruno Haible.
36424 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36426 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36427 definition of EXTRA_DIST.
36428 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36429 ensure that the generated file is created/updated whenever the list
36430 of $(unlocked_functions) is changed.
36431 (jm-glibc-io.m4): New rule.
36432 (unlocked-io.h): New rule -- currently unused.
36434 2001-06-24 Jim Meyering <meyering@lucent.com>
36436 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36437 unmatched right bracket, rather than kludging it with an extra,
36438 falsely-matching quote in a comment. Patch by Akim Demaille.
36440 2001-06-11 Jim Meyering <meyering@lucent.com>
36442 * lib/regex.c: Update from GNU libc.
36444 2001-05-27 Jim Meyering <meyering@lucent.com>
36446 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36447 Check for ut_type in struct utmp.
36449 2001-05-27 Jim Meyering <meyering@lucent.com>
36451 * lib/readutmp.h (UT_TYPE): Define.
36453 2001-05-24 Jim Meyering <meyering@lucent.com>
36455 * lib/argmatch.c: Include "quote.h".
36456 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
36457 quote function. Reported by Göran Uddeborg.
36459 2001-05-22 Jim Meyering <meyering@lucent.com>
36461 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36462 now that we use the package-supplied version unconditionally.
36463 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36465 2001-05-21 Jim Meyering <meyering@lucent.com>
36467 * m4/regex.m4: Change a couple backticks to single quotes to avoid
36468 shell syntax errors.
36470 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
36472 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36474 2001-05-20 Paul Eggert <eggert@twinsun.com>
36476 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36477 Don't bother to check library strftime, since
36478 we'll be using our own my_strftime function anyway.
36479 Define my_strftime instead of strftime.
36481 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
36483 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36484 which is not yet declared.
36486 2001-05-15 Jim Meyering <meyering@lucent.com>
36488 * m4/regex.m4: Use proper quoting so brackets appear in the test
36490 Reported by, and with help from, Bruno Haible.
36492 2001-05-13 Jim Meyering <meyering@lucent.com>
36494 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36497 2001-05-11 Paul Eggert <eggert@twinsun.com>
36499 dirname code cleanup. base_name now behaves more compatibly
36500 with POSIX basename when given file names that have trailing
36501 slashes, and similarly for dir_name. Add new primitives
36502 base_len and dir_len. Put the directory-name-related decls
36505 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36506 * lib/backupfile.c (base_name): Likewise.
36507 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36508 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36509 * lib/makepath.c (strip_trailing_slashes): Likewise.
36510 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36511 ISSLASH): Likewise.
36512 * lib/rename.c (strip_trailing_slashes): Likewise.
36513 * lib/same.c (base_name): Likewise.
36514 * lib/stripslash.c (ISSLASH): Likewise.
36516 * lib/addext.c: Include <dirname.h> after size_t is defined.
36517 * lib/backupfile.c: Likewise.
36519 * lib/addext.c (addext): Use base_len to trim redundant
36520 trailing slashes instead of doing it ourselves.
36521 But do not trim the last slash if it is not redundant.
36523 * lib/backupfile.c (find_backup_file_name,
36524 max_backup_version): Use base_len instead of rolling it ourselves.
36525 Handle the case of "" and (on DOS) "C:" correctly.
36527 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36528 needed. Include <string.h>, <dirname.h>.
36529 (base_name): Allow file names ending in slashes, other than names
36530 that are all slashes. In this case, return the basename followed
36531 by the slashes. This is more general, and can be used in places
36532 where the original base_name purposely had an assertion failure.
36533 (base_len): New function.
36535 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36536 Do not include <assert.h>; no longer needed.
36538 (memrchr): Remove decl.
36539 (dir_name_r): Remove.
36540 (dir_len): Renamed from dirlen. All callers changed.
36541 Rewrite in terms of base_name, for simplicity and consistency.
36542 (dir_name): Never return NULL. All callers changed.
36543 Do not include <stdlib.h> in test program; no longer needed.
36544 return 0; is fine for test program.
36546 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36548 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36550 * lib/path-concat.c (path_concat): Use base_len to compute
36551 base length, not strlen; this means we cannot rely on memcpy
36554 * lib/same.c (STREQ): Remove.
36555 (same_name): Handle the case where the basename ends in trailing '/'.
36557 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36558 a slash was stripped. Do not strip the last slash after a
36559 file system prefix.
36561 2001-05-11 Paul Eggert <eggert@twinsun.com>
36563 * lib/Makefile.am (libfetish_a_SOURCES):
36564 Add strftime.c, since we now compile it on all hosts.
36566 * lib/strftime.c (my_strftime):
36567 Define to nstrftime if emacs, but only if my_strftime is not defined.
36568 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36569 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36570 Add one more extra argument: a nanoseconds value.
36573 (my_strftime function): Add %N format.
36574 (emacs_strftimeu): Renamed from emacs_strftime,
36575 with extra ut argument.
36577 2001-05-09 Paul Eggert <eggert@twinsun.com>
36579 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
36581 2001-04-21 Jim Meyering <meyering@lucent.com>
36583 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
36586 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
36588 * m4/ftruncate.m4: Check for chsize.
36589 Link with ftruncate.o unconditionally if ftruncate is missing.
36590 This was required when cross-compiling to i586-mingw32msvc.
36592 2001-04-08 Jim Meyering <meyering@lucent.com>
36594 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
36595 recomputed; that's necessary when the offset spans a DST transition.
36596 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
36598 2001-04-02 Jim Meyering <meyering@lucent.com>
36600 * lib/regex.h, regex.c: Update from GNU libc.
36602 2001-03-24 Jim Meyering <meyering@lucent.com>
36604 * m4/jm-macros.m4: Require autoconf-2.49d.
36606 2001-03-20 Bruno Haible <haible@clisp.cons.org>
36608 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
36610 2001-03-19 Paul Eggert <eggert@twinsun.com>
36612 * lib/version-etc.c (version_etc_copyright): Update to 2001.
36614 2001-03-17 Jim Meyering <meyering@lucent.com>
36616 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
36617 now that the version in autoconf is equivalent.
36618 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
36620 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
36621 Suggestion from Akim Demaille.
36623 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
36624 (jm_PREREQ_TEMPNAME): New function.
36626 2001-03-16 Paul Eggert <eggert@twinsun.com>
36628 * lib/tempname.c (uint64_t): Define to uintmax_t if
36629 not defined, and if UINT64_MAX is not defined.
36630 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
36631 Reported by John David Anglin.
36633 2001-03-15 Bruno Haible <haible@clisp.cons.org>
36635 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
36636 resolve alias if codeset is empty.
36637 * lib/config.charset (BeOS): Use wildcard syntax.
36639 2001-03-13 Jim Meyering <meyering@lucent.com>
36641 * lib/path-concat.c (path_concat)
36642 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
36643 concatenating e.g., `C:' and `foo'.
36646 2001-03-06 Bruno Haible <haible@clisp.cons.org>
36648 * lib/localcharset.c (locale_charset): Don't use
36649 setlocale(LC_CTYPE,NULL). Don't return NULL.
36650 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
36652 2001-03-06 Bruno Haible <haible@clisp.cons.org>
36654 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
36655 support for DOS/DJGPP.
36657 2001-03-01 Paul Eggert <eggert@twinsun.com>
36659 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
36660 lacks mkstemp. Compile our own tempname.c if we compile our own
36661 mkstemp.c, as mkstemp relies on tempname.
36663 2001-03-01 Jim Meyering <meyering@lucent.com>
36665 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
36666 AH_VERBATIM really does output its argument verbatim.
36668 2001-02-28 Paul Eggert <eggert@twinsun.com>
36670 * lib/Makefile.am (libfetish_a_SOURCES):
36671 Add dup-safer.c, fopen-safer.c.
36672 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
36674 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
36675 * lib/unistd-safer.h: New files.
36677 2001-02-25 Paul Eggert <eggert@twinsun.com>
36679 The mkstemp replacement is taken from glibc 2.2.2, with some
36680 portability fixes for use outside glibc, as follows:
36682 * lib/tempname.c (struct_stat64): New macro.
36683 (direxists, __gen_tempname): Use it.
36684 This avoids a portability problem with Solaris 8.
36686 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
36687 (<stddef.h>, <stdint.h>, <string.h>):
36688 Include only if STDC_HEADERS || _LIBC.
36689 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
36690 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
36691 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
36692 (__set_errno): Define this macro if <errno.h> doesn't.
36693 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
36694 Define these macros if <stdio.h> doesn't.
36695 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
36696 Define these macros if <sys/stat.h>
36697 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
36698 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
36699 __xstat64): Define if not _LIBC.
36700 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
36701 (__gen_tempname): Invoke gettimeofday only if
36702 HAVE_GETTIMEOFDAY || _LIBC;
36703 otherwise, fall back on plain "time".
36704 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
36706 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
36708 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
36710 2001-02-18 Paul Eggert <eggert@twinsun.com>
36712 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
36714 2001-02-17 Paul Eggert <eggert@twinsun.com>
36716 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
36717 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
36718 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
36719 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36721 2001-02-17 Paul Eggert <eggert@twinsun.com>
36723 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
36724 Remove workaround macros for hosts that have mbrtowc but not
36725 mbstate_t, as we now insist on proper declarations for both
36726 before using mbrtowc.
36728 2001-02-17 Jim Meyering <meyering@lucent.com>
36730 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
36731 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
36732 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
36735 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
36736 rather than AC_CACHE_VAL.
36738 2001-02-17 Jim Meyering <meyering@lucent.com>
36740 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
36741 around included file name.
36743 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
36745 * lib/strftime.c: Update from GNU libc (the only changes were to
36748 2001-02-17 Jim Meyering <meyering@lucent.com>
36750 * lib/regex.c: Update from libc.
36752 2001-02-17 Bruno Haible <haible@clisp.cons.org>
36754 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
36757 2001-02-16 Paul Eggert <eggert@twinsun.com>
36759 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
36760 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
36761 Reported by Mark Hounschell via Paul Eggert.
36763 2001-02-07 Jim Meyering <meyering@lucent.com>
36765 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
36767 2001-02-05 Jim Meyering <meyering@lucent.com>
36769 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
36770 it includes the patch required for `large file' support with at least
36771 HP-UX's 10.20 /bin/cc.
36773 2001-02-03 Jim Meyering <meyering@lucent.com>
36775 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
36776 AS_IF, now that it works once again (mysteriously).
36777 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36779 2001-01-30 Jim Meyering <meyering@lucent.com>
36781 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
36782 * m4/chown.m4: Rename conftestchown to conftest.chown.
36783 * m4/rename.m4: s/conftestdir/conftest.d1/ and
36784 s/conftestdir2/conftest.d2/.
36785 * m4/utimes.m4: s/conftestdata/conftest.data/
36786 Inspired by Pavel Roskin's change in autoconf.
36788 2001-01-30 Bruno Haible <haible@clisp.cons.org>
36790 * lib/config.charset: Update for FreeBSD 4.2.
36792 2001-01-27 Jim Meyering <meyering@lucent.com>
36794 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
36796 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
36798 2001-01-26 Jim Meyering <meyering@lucent.com>
36800 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
36801 quotearg.c includes it.
36803 2001-01-26 Jim Meyering <meyering@lucent.com>
36805 * lib/quotearg.c: Include stddef.h.
36806 * lib/quote.c: Include stddef.h.
36807 Reported by Axel Kittenberger.
36809 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
36810 line in double quotes so that it evokes a better diagnostic.
36811 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
36812 Reported by Axel Kittenberger.
36814 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
36816 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
36817 as if it was a `charset'.
36819 2001-01-21 Bruno Haible <haible@clisp.cons.org>
36821 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
36824 2001-01-21 Bruno Haible <haible@clisp.cons.org>
36826 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
36827 to avoid a warning. Add back 'const' to inptr.
36829 2001-01-20 Jim Meyering <meyering@lucent.com>
36831 Be sure that headers are checked before used in code compiled
36832 for the type checks.
36833 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
36834 In place of that, invoke jm_CHECK_ALL_TYPES.
36835 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
36836 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
36837 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
36838 The check for ssize_t was mistakenly run before the test for unistd.h.
36840 The configure-time check for stdbool.h was missing.
36841 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
36842 (jm_PREREQ_HASH): New function.
36844 2001-01-17 Jim Meyering <meyering@lucent.com>
36846 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
36847 for autoconf-2.49c.
36848 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
36850 2001-01-16 Jim Meyering <meyering@lucent.com>
36852 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
36855 2001-01-14 Jim Meyering <meyering@lucent.com>
36857 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
36858 foo and bar. Create conftestdir/ in the script, not in the C code.
36859 Remove directories in the script, not in the C code.
36860 Remove conftestdir{,2} before trying to create the directory.
36861 Make the entire configure script fail if the mkdir fails.
36863 2001-01-14 Jim Meyering <meyering@lucent.com>
36865 * lib/rename.c: New file. From Volker Borchert.
36866 Include stdlib.h, string.h or strings.h, and xalloc.h.
36867 Use strip_trailing_slashes rather than open-coding it.
36869 2001-01-03 Paul Eggert <eggert@twinsun.com>
36871 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
36873 2001-01-03 Jim Meyering <meyering@lucent.com>
36875 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
36876 of local `inptr' to avoid warning with some system declarations of
36879 2001-01-02 Volker Borchert <bt@teknon.de>
36881 * m4/rename.m4: New file.
36882 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
36884 2001-01-01 Jim Meyering <meyering@lucent.com>
36886 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
36887 even on systems with utmpx.h. It's necessary for the declaration of
36888 utmp's ut_user member. Reported by Andreas Jaeger.
36890 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
36891 available. They are required for the declarations of getgrgid and
36893 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
36894 Reported by Andreas Jaeger.
36896 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
36898 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
36899 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
36900 so `make install' also works in VPATH builds.
36902 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
36904 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
36905 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
36906 can be used in subdirectories.
36908 2000-12-29 Paul Eggert <eggert@twinsun.com>
36910 * lib/modechange.c: Do not assume that mode_t uses the
36911 traditional octal encoding. E.g. "chmod 1 FOO" should set
36912 the other-execute bit of FOO even if S_IXOTH != 1.
36914 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
36915 WOTH, XOTH, ALLM): New macros.
36916 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
36917 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
36919 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
36920 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
36922 No need to use uintmax_t; unsigned long is long enough.
36923 Don't bother to get suffix since we don't use it.
36925 2000-12-26 Jim Meyering <meyering@lucent.com>
36927 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
36928 better with autoheader.
36930 2000-12-24 Jim Meyering <meyering@lucent.com>
36932 * lib/hash.c (is_prime): Return explicit boolean values.
36933 (hash_get_first): Return NULL to appease Irix5.6's 89.
36934 Reported by Nelson Beebe.
36936 2000-12-19 Bruno Haible <haible@clisp.cons.org>
36938 * lib/localcharset.c (locale_charset): Add support for Win32.
36940 2000-12-18 Paul Eggert <eggert@twinsun.com>
36942 * lib/physmem.h, lib/physmem.c: New files.
36944 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
36945 (noinst_HEADERS): Add physmem.h.
36947 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
36948 't' for compatibility with Solaris 8 sort.
36950 2000-12-18 Bruno Haible <haible@clisp.cons.org>
36952 * lib/config.charset: Add support for BeOS.
36954 2000-12-17 Jim Meyering <meyering@lucent.com>
36956 * m4/dos.m4 (jm_AC_DOS): New file and macro.
36957 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
36959 2000-12-16 Jim Meyering <meyering@lucent.com>
36961 This bug had a serious impact on chown: `chown N:M FILE' (for integer
36962 N and M) would have treated it like `chown N:N FILE'.
36964 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
36966 2000-12-16 Jim Meyering <meyering@lucent.com>
36968 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
36969 SHELLS_FILE to a file name that's useful on djgpp systems.
36971 (ADDITIONAL_DEFAULT_SHELLS): Define.
36972 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
36973 Based mostly on a patch from Prashant TR.
36975 2000-12-16 Bruno Haible <haible@clisp.cons.org>
36977 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
36978 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
36979 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
36981 2000-12-08 Andreas Schwab <schwab@suse.de>
36983 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
36984 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
36986 2000-12-07 Jim Meyering <meyering@lucent.com>
36988 * lib/stripslash.c (ISSLASH): Define.
36989 (strip_trailing_slashes): Use ISSLASH rather than comparing against
36993 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
36994 (dir_name_r): Declare this function as static.
36995 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
36996 manifest itself on a name containing a mix of slashes and
36998 Make this function work with names starting with a DOS-style
36999 drive letter and colon prefix.
37000 (dir_name): Append `.' if necessary.
37001 Based mostly on patches from Prashant TR and Eli Zaretskii.
37003 * lib/dirname.h (dir_name_r): Remove prototype.
37005 2000-12-06 Paul Eggert <eggert@twinsun.com>
37007 * m4/off_t-format.m4: Remove this file.
37008 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
37010 2000-12-06 Jim Meyering <meyering@lucent.com>
37012 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
37013 replacement strtoull, we may well need the replacement strtoul, too.
37014 Check for declarations of strtoul and strtoull.
37015 Check for strtol. Mainly as a cue to cause automake to include
37016 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
37017 Check for limits.h -- strtol.c needs it.
37019 2000-12-05 Jim Meyering <meyering@lucent.com>
37021 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
37023 2000-12-04 Jim Meyering <meyering@lucent.com>
37025 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
37026 Also include memory.h, stdlib.h, unistd.h if appropriate.
37027 Reported by Andreas Jaeger (conflicting declaration of malloc).
37029 2000-12-02 Jim Meyering <meyering@lucent.com>
37031 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
37032 * m4/jm-macros.m4 (jm_MACROS): require it.
37034 2000-12-02 Jim Meyering <meyering@lucent.com>
37036 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
37038 2000-12-01 Paul Eggert <eggert@twinsun.com>
37040 * lib/memrchr.c: Include <config.h> before any system include file.
37042 2000-11-30 Jim Meyering <meyering@lucent.com>
37044 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
37046 2000-11-30 Jim Meyering <meyering@lucent.com>
37048 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
37050 2000-11-29 Paul Eggert <eggert@twinsun.com>
37052 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
37054 2000-11-26 Jim Meyering <meyering@lucent.com>
37056 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
37058 2000-11-22 Paul Eggert <eggert@twinsun.com>
37060 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
37061 size of (size_t) -1; it's not portable.
37063 2000-11-17 Jim Meyering <meyering@lucent.com>
37065 * lib/strstr.c: Update from GNU libc.
37067 2000-11-17 Akim Demaille <akim@epita.fr>
37069 * lib/obstack.h: Formatting changes.
37070 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
37071 prevent type checking.
37072 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
37073 cast the value to (void *): assigning a `foo *' to a `void *'
37075 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
37077 2000-11-16 Jim Meyering <meyering@lucent.com>
37079 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
37081 2000-11-11 Jim Meyering <meyering@lucent.com>
37083 * lib/error.c: Add a couple #includes, merging from GNU libc version.
37085 2000-11-10 Jim Meyering <meyering@lucent.com>
37087 * lib/obstack.h: Update from GNU libc.
37088 * lib/obstack.c: Likewise.
37090 2000-11-08 Bruno Haible <haible@clisp.cons.org>
37092 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
37094 2000-11-06 Paul Eggert <eggert@twinsun.com>
37096 * lib/getusershell.c (setusershell): Use rewind rather than
37097 fseek/fseeko, to avoid configuration hassles with fseeko.
37098 Don't bother opening SHELLS_FILE if shellstream is NULL;
37099 it's not necessary.
37101 2000-11-05 Jim Meyering <meyering@lucent.com>
37103 * lib/makepath.h (make_dir): Declare.
37104 * lib/makepath.c (make_dir): Remove `static' attribute.
37107 2000-11-04 Jim Meyering <meyering@lucent.com>
37109 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
37111 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
37113 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
37114 last one in a bucket, advance to the next bucket.
37116 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
37118 * lib/fnmatch.c: Do not comment out all the code if we are using
37119 the GNU C library, because in some cases we are replacing buggy
37120 code in the GNU C library itself.
37122 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
37124 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
37125 (regex_compile): Catch bogus \(\1\).
37127 2000-10-30 Paul Eggert <eggert@twinsun.com>
37129 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
37130 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
37131 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
37133 2000-10-30 Paul Eggert <eggert@twinsun.com>
37135 * lib/error.h, getline.h, modechange.h:
37136 Remove "2000" from Copyright line, as the file hasn't been
37137 changed this year other than in the copyright notice.
37139 * lib/xalloc.h: Add "2000" to Copyright line, as this file
37140 was changed this year.
37142 2000-10-29 Jim Meyering <meyering@lucent.com>
37144 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
37146 * m4/ls-mntd-fs.m4: Likewise
37148 2000-10-29 Jim Meyering <meyering@lucent.com>
37150 * lib/xstat.in: Fix grammar in comment.
37152 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
37154 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
37155 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
37156 doesn't define __restrict_arr.
37158 2000-10-28 Jim Meyering <meyering@lucent.com>
37160 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
37161 (jm_PREREQ_MEMCHR): New function.
37163 2000-10-28 Jim Meyering <meyering@lucent.com>
37165 * lib/memchr.c: Update from libc.
37166 Adjust for portability:
37167 [HAVE_STDLIB_H]: Include stdlib.h.
37168 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
37169 Undef __memchr, too.
37170 [!weak_alias]: Define __memchr to memchr.
37172 * lib/regex.c: Update from libc.
37173 * lib/regex.h: Likewise.
37174 * lib/getopt1.c: Likewise.
37175 * lib/memcmp.c: Likewise.
37177 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
37178 Avoid using fseek, when possible -- it's broken by design.
37179 Patch by Ulrich Drepper.
37181 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
37183 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
37184 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
37185 Giving in to popular pressure to shut up the compiler with casts.
37187 2000-10-26 Jim Meyering <meyering@lucent.com>
37189 * lib/strftime.c: Update from libc.
37191 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
37193 * regex.c: More `unsigned char' -> `re_char' changes.
37194 Also change several `int' into `re_wchar_t'.
37195 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
37196 (PUSH_FAILURE_POINTER): Don't cast any more.
37197 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
37198 We want GCC to complain, since this piece of code makes
37199 re_match non-reentrant, which *should* be fixed.
37200 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
37201 (EXTEND_BUFFER): Use RETALLOC.
37202 (SET_LIST_BIT): Don't cast.
37203 (re_wchar_t): New type.
37204 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
37205 that those two functions will always properly return.
37206 (IMMEDIATE_QUIT_CHECK): Cast to void.
37207 (analyse_first): Use recursion rather than an explicit stack.
37208 (re_compile_fastmap): Can't fail anymore.
37209 (re_search_2): Don't check re_compile_fastmap for failure.
37210 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
37211 Now also sets the new value (passed in a new argument).
37212 (re_match_2_internal): Use it.
37213 Also, use a new var `reg' of type size_t when looping through regs
37214 rather than reuse the inappropriate `mcnt'.
37216 2000-10-25 Jim Meyering <meyering@lucent.com>
37218 * lib/obstack.c: Update from libc.
37220 2000-10-24 Kenichi Handa <handa@etl.go.jp>
37222 * regex.c (regex_compile): Change the way of handling a range from
37223 a char less than 256 to a char not less than 256.
37225 2000-10-24 Andrew Innes <andrewi@gnu.org>
37227 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
37229 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
37230 so that re_search functions only quit when callers expect them to.
37232 2000-10-23 Jim Meyering <meyering@lucent.com>
37234 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
37235 wrong. That set_locale call must not have any side effects.
37238 2000-10-22 Jim Meyering <meyering@lucent.com>
37240 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
37241 [CYCLIC]: Remove now-unused definition.
37243 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
37244 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
37245 Suggestion from Ulrich Drepper.
37247 2000-10-21 Jim Meyering <meyering@lucent.com>
37249 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
37250 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
37251 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
37253 2000-10-21 Jim Meyering <meyering@lucent.com>
37255 * lib/dirname.c (memrchr): Declare if necessary.
37256 (dir_name): Remove the restriction that there be no
37257 trailing slashes. Now, this code skips past them, effectively
37259 [TEST_DIRNAME] (main): New unit tests.
37261 * lib/memrchr.c: New file from GNU libc.
37262 Undef __memrchr, too.
37263 [!weak_alias]: Define __memrchr to memrchr.
37264 Guard weak_alias use with `#ifdef weak_alias'.
37266 2000-10-21 Jim Meyering <meyering@lucent.com>
37268 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
37269 (dir_name): Use dir_name_r.
37270 * lib/dirname.h (dir_name_r): Declare it.
37272 2000-10-17 Jim Meyering <meyering@lucent.com>
37274 * lib/quote.h (PARAMS): Define and use.
37275 Reported by Akim Demaille.
37277 * lib/getopt.c: Update from libc.
37279 2000-10-16 Jim Meyering <meyering@lucent.com>
37281 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
37285 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
37287 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
37289 2000-09-25 Jim Meyering <meyering@lucent.com>
37291 * lib/md5.h (rol): Define (from GnuPG).
37293 * lib/sha.c: Give credit (GnuPG) where due.
37294 (M): Use rol rather than open-coding it.
37295 Add a FIXME comment.
37297 2000-09-21 Jim Meyering <meyering@lucent.com>
37299 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
37300 Reported by Michael Stone.
37302 2000-09-20 Jim Meyering <meyering@lucent.com>
37304 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
37305 (noinst_HEADERS): Add sha.h.
37306 Based on code from Scott G. Miller and from GnuPG.
37308 2000-09-18 Jim Meyering <meyering@lucent.com>
37310 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
37311 LIBS. Otherwise, everyone ends up linking with -lelf for some
37313 Reported by Mike Stone.
37315 2000-09-15 Jim Meyering <meyering@lucent.com>
37317 * lib/regex.c: Update from libc.
37319 2000-09-10 Jim Meyering <meyering@lucent.com>
37321 * lib/getopt.c (_getopt_internal): Update from glibc.
37323 2000-09-09 Jim Meyering <meyering@lucent.com>
37325 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
37326 think it should be used as a general replacement for isascii.
37327 * lib/fnmatch.c: Likewise.
37328 * lib/mbswidth.c: Likewise
37329 * lib/regex.c: Likewise.
37332 * lib/userspec.c: Include sys/param.h and limits.h.
37334 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37335 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
37336 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
37337 UID, GID. Check range.
37339 2000-09-06 Jim Meyering <meyering@lucent.com>
37341 * lib/getopt.c (_getopt_internal): Update from glibc.
37343 2000-08-30 Jim Meyering <meyering@lucent.com>
37345 * lib/strftime.c: Merge in changes from GNU libc.
37347 2000-08-26 Jim Meyering <meyering@lucent.com>
37349 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
37350 * m4/fpending.m4: New file.
37352 2000-08-26 Jim Meyering <meyering@lucent.com>
37354 * lib/closeout.c: Include "__fpending.h".
37355 (close_stdout_status): Return right away if there's nothing to flush.
37357 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
37358 * lib/__fpending.c: New file.
37359 * lib/__fpending.h: New file.
37361 2000-08-20 Jim Meyering <meyering@lucent.com>
37363 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
37364 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
37365 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
37367 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
37369 Improve fileutils installation on systems where running
37370 programs (like install) can't be unlinked.
37371 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
37372 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
37374 2000-08-07 Paul Eggert <eggert@twinsun.com>
37376 Standardize on "memory exhausted" instead of "Memory exhausted"
37377 or "virtual memory exhausted".
37378 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
37379 "virtual memory exhausted".
37380 * lib/same.c (same_name): Invoke xalloc_die instead of printing
37382 * lib/userspec.c (parse_user_spec): Likewise.
37383 * lib/bumpalloc.h: comment fix
37384 * lib/same.c, userspec.c: Include xalloc.h.
37386 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
37387 not char *const and pointing to a constant array.
37388 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
37389 (xrealloc): Comment fix.
37391 * lib/userspec.c (parse_user_spec):
37392 Don't translate a message until just before returning,
37393 to avoid unnecessary translation.
37395 2000-08-07 Jim Meyering <meyering@lucent.com>
37397 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
37398 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
37399 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
37400 getgroups.c, gethostname.c, getopt.h, group-member.c,
37401 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
37402 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
37403 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
37404 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
37405 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37406 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37407 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37408 yesno.c: Back out Copyright date changes for each file with no change
37409 this year. This eases coordination with other programs using the same
37410 source code modules. From Paul Eggert.
37412 2000-08-06 Paul Eggert <eggert@twinsun.com>
37414 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37415 not char, for compatibility with glibc 2.1.3 strftime.c.
37417 2000-08-03 Greg McGary <greg@mcgary.org>
37419 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37420 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37421 (EXTEND_BUFFER): Use them.
37423 2000-08-01 Jim Meyering <meyering@lucent.com>
37425 * lib/dirname.c (ISSLASH): Define.
37426 (BACKSLASH_IS_PATH_SEPARATOR): Define.
37427 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37428 both `\' and `/' may be use as path separators.
37429 Based on a patch from Prashant TR.
37431 2000-07-31 Paul Eggert <eggert@twinsun.com>
37433 * lib/quotearg.c (quotearg_n_options): Don't make the initial
37434 slot vector a constant, since it might get modified.
37436 2000-07-31 Jim Meyering <meyering@lucent.com>
37438 * lib/xmalloc.c: Use `virtual memory exhausted', not
37439 `Memory exhausted'.
37440 * lib/obstack.c (print_and_abort): Likewise.
37442 2000-07-30 Paul Eggert <eggert@twinsun.com>
37444 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37445 buffer, so that the caller can always quote one small
37446 component of a "memory exhausted" message in slot 0.
37447 From a suggestion by Jim Meyering.
37449 2000-07-30 Jim Meyering <meyering@lucent.com>
37451 * lib/makepath.c (make_path): Quote the other instance, too.
37453 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37454 (STATIC_BUF_SIZE): Define.
37455 (quotearg_n_options): Use only statically allocated storage when
37456 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37457 than STATIC_BUF_SIZE.
37459 2000-07-29 Jim Meyering <meyering@lucent.com>
37461 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37462 * lib/dirname.c (dir_name): Likewise.
37464 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37467 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37468 (dir_name): Assert that there are no trailing slashes.
37470 2000-07-29 Bruno Haible <haible@clisp.cons.org>
37472 * lib/mbswidth.h (mbswidth): Add a flags argument.
37473 (mbswidth): New declaration.
37474 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37475 * lib/mbswidth.c (mbswidth): Add a flags argument.
37476 (mbsnwidth): New function.
37478 2000-07-24 Jim Meyering <meyering@lucent.com>
37480 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
37482 2000-07-23 Paul Eggert <eggert@twinsun.com>
37484 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37486 2000-07-23 Paul Eggert <eggert@twinsun.com>
37488 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37489 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37490 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37491 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37492 invoke multibyte primitives.
37494 2000-07-23 Paul Eggert <eggert@twinsun.com>
37497 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37498 so that mbstate_t is always defined.
37500 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37501 be 1 in at least one GCC installation, and this configuration
37502 error is likely to be common. Ignoring MB_LEN_MAX hurts
37503 performance on hosts that have mbrtowc but have only unibyte
37504 locales, but I assume these hosts are rare.
37506 2000-07-23 Paul Eggert <eggert@twinsun.com>
37508 * lib/mbswidth.c (_XOPEN_SOURCE):
37509 Don't define; this causes problems on Solaris 7.
37510 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37512 2000-07-23 Jim Meyering <meyering@lucent.com>
37514 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37515 too: getgrgid, getpwuid, getuid.
37517 2000-07-23 Jim Meyering <meyering@lucent.com>
37519 * lib/basename.c (base_name): Add an assertion.
37521 2000-07-23 Bruno Haible <haible@clisp.cons.org>
37523 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37524 shadow its mbsinit function.
37526 2000-07-17 Bruno Haible <haible@clisp.cons.org>
37528 * lib/mbswidth.h: New file.
37529 * lib/mbswidth.c: New file.
37530 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37531 (noinst_HEADERS): Add mbswidth.h.
37533 2000-07-17 Bruno Haible <haible@clisp.cons.org>
37535 * lib/config.charset: Add support for FreeBSD. Improve support for
37538 2000-07-16 Bruno Haible <haible@clisp.cons.org>
37540 * m4/mbswidth.m4: New file.
37541 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37543 2000-07-15 Jim Meyering <meyering@lucent.com>
37545 * lib/makepath.c: Include quote.h.
37546 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37547 corresponding argument in a `quote (...)' call.
37548 Give better diagnostics.
37550 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37551 (noinst_HEADERS): Add quote.h.
37553 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
37554 from tar's src/misc.c.
37555 * lib/quote.h: New file. Prototypes for same.
37557 2000-07-14 Paul Eggert <eggert@twinsun.com>
37559 From a suggestion by Bruno Haible.
37560 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37561 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37562 to decide whether to define the BeOS workaround macro;
37563 this adjusts to the change to AC_MBSTATE_T.
37565 2000-07-14 Jim Meyering <meyering@lucent.com>
37567 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37568 jm_AC_TYPE_UINTMAX_T.
37570 2000-07-13 Paul Eggert <eggert@twinsun.com>
37572 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37574 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37575 quotearg_buffer_restyled): Add support for
37576 clocale_quoting_style. Undo previous change to
37577 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37578 and "{RIGHT QUOTATION MARK}" msgids.
37580 2000-07-10 Paul Eggert <eggert@twinsun.com>
37582 From a suggestion by Bruno Haible.
37583 * m4/mbstate_t.m4 (AC_MBSTATE_T):
37584 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
37585 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
37586 and mbstate_t, to a single-part test that simply defines mbstate_t.
37587 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
37588 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
37590 2000-07-10 Jim Meyering <meyering@lucent.com>
37592 * m4/strerror_r.m4: Mirror the correction made in autoconf.
37594 * m4/gnu-source.m4: Output to confdefs.h directly.
37595 Suggestion from Akim Demaille.
37597 2000-07-09 Paul Eggert <eggert@twinsun.com>
37599 The old behavior of quoting `like this' doesn't look good with
37600 newer, ISO-style fonts. See:
37601 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
37603 Instead, quote "like this" by default. Let the translator
37604 tailor the locale-specific quoting behavior by providing
37605 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
37607 * lib/quotearg.c (N_): New macro.
37608 (gettext_default): New function.
37609 (quotearg_buffer_restyled): Use
37610 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
37611 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
37613 2000-07-09 Jim Meyering <meyering@lucent.com>
37615 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
37616 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
37618 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
37619 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
37621 2000-07-09 Jim Meyering <meyering@lucent.com>
37623 * lib/Most files: Update copyright dates to include 2000.
37625 2000-07-08 Jim Meyering <meyering@lucent.com>
37627 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
37629 (xgethostname): Remove now-unnecessary #ifdef.
37630 Move declaration of `err' into loop where it's used.
37632 2000-07-05 Paul Eggert <eggert@twinsun.com>
37633 and Bruno Haible <haible@clisp.cons.org>
37635 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
37636 only if the test for an object-type mbstate_t fails. This
37637 prevents us from mistakenly reporting that mbstate_t is a
37638 system object type after we "#define mbstate_t int" to work
37641 2000-07-05 Paul Eggert <eggert@twinsun.com>
37642 and Bruno Haible <haible@clisp.cons.org>
37644 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
37646 2000-07-05 Bruno Haible <haible@clisp.cons.org>
37648 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
37650 Include <ctype.h> for use of isalpha.
37652 2000-07-05 Bruno Haible <haible@clisp.cons.org>
37654 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
37655 by allocating a larger buffer. Test the gethostname return value for
37656 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
37657 returns an error and ENAMETOOLONG isn't defined.
37659 2000-07-05 Bruno Haible <haible@clisp.cons.org>
37661 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
37664 2000-07-04 Jim Meyering <meyering@lucent.com>
37666 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
37667 of the deprecated AC_CHECKING.
37669 2000-07-04 Jim Meyering <meyering@lucent.com>
37671 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
37672 Reported by Bruno Haible.
37674 2000-07-04 Jim Meyering <meyering@lucent.com>
37676 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
37677 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
37680 2000-07-03 Paul Eggert <eggert@twinsun.com>
37682 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
37683 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
37685 2000-07-03 Paul Eggert <eggert@twinsun.com>
37686 and Bruno Haible <haible@clisp.cons.org>
37688 * lib/quotearg.c (mbrtowc):
37689 Assign to *pwc, and return 1 only if result is nonzero.
37690 (iswprint): Use ISPRINT when substituting our own mbrtowc.
37692 2000-07-03 Jim Meyering <meyering@lucent.com>
37694 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
37696 2000-07-03 Jim Meyering <meyering@lucent.com>
37698 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
37699 This is necessary to get a definition of e.g., UTMP_FILE on
37703 2000-07-02 Jim Meyering <meyering@lucent.com>
37705 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
37707 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
37708 AC_LIBOBJ(function_name).
37709 * m4/chown.m4: Likewise.
37710 * m4/fnmatch.m4: Likewise.
37711 * m4/ftruncate.m4: Likewise.
37712 * m4/getgroups.m4: Likewise.
37713 * m4/getline.m4: Likewise.
37714 * m4/group-member.m4: Likewise.
37715 * m4/jm-macros.m4: Likewise.
37716 * m4/lstat.m4: Likewise.
37717 * m4/malloc.m4: Likewise.
37718 * m4/memcmp.m4: Likewise.
37719 * m4/nanosleep.m4: Likewise.
37720 * m4/putenv.m4: Likewise.
37721 * m4/realloc.m4: Likewise.
37722 * m4/regex.m4: Likewise.
37723 * m4/stat.m4: Likewise.
37724 * m4/strftime.m4: Likewise.
37726 2000-07-02 Jim Meyering <meyering@lucent.com>
37728 * lib/quotearg.c (mbstate_t): Don't define here.
37730 2000-07-02 Jim Meyering <meyering@lucent.com>
37732 * lib/nanosleep.c (SIGCONT): Define if not already defined.
37734 2000-07-01 Jim Meyering <meyering@lucent.com>
37736 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
37738 2000-07-01 Jim Meyering <meyering@lucent.com>
37740 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
37743 2000-07-01 Bruno Haible <haible@clisp.cons.org>
37745 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
37746 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
37748 2000-07-01 Bruno Haible <haible@clisp.cons.org>
37750 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
37751 per change in ../m4/ls-mntd-fs.m4.
37752 (read_filesystem_list): Ignore symbolic links.
37754 2000-06-29 Jim Meyering <meyering@lucent.com>
37756 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
37757 for declaration of strcmp.
37759 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
37761 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
37762 Avoid warning by casting result to `char *' to remove `const'.
37764 2000-06-28 Jim Meyering <meyering@lucent.com>
37766 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
37767 included by quotearg.c, for which we perform this test. From
37770 2000-06-27 Bruno Haible <haible@clisp.cons.org>
37772 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
37773 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
37774 <utmpx.h> exists, put readutmp.o into LIBOBJS.
37776 2000-06-27 Bruno Haible <haible@clisp.cons.org>
37778 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
37780 2000-06-26 Paul Eggert <eggert@twinsun.com>
37782 savedir now sets errno on failure and invokes xmalloc to get memory.
37783 Fix a couple of other minor bugs while we're at it.
37785 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
37786 (NAMLEN): Remove macro.
37787 (malloc, realloc): Remove decls.
37788 (stpcpy): Likewise.
37789 ("xalloc.h"): Include.
37790 (NAME_SIZE_DEFAULT): New macro.
37791 (savedir): Use xmalloc / xrealloc to allocate memory.
37792 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
37793 Skip "" directory entries.
37794 Use strlen to calculate directory entry length, since the old method
37795 is rarely used these days and isn't worth supporting.
37796 Don't use a pointer after freeing it.
37797 Check for integer overflow when calculating allocation size.
37798 Use memcpy to copy entries, instead of stpcpy.
37799 Set errno properly when returning NULL.
37800 Check for readdir error.
37802 2000-06-26 Jim Meyering <meyering@lucent.com>
37804 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
37806 2000-06-25 Jim Meyering <meyering@lucent.com>
37808 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
37809 Linux header bug when _XOPEN_SOURCE is defined to 500.
37811 2000-06-25 Bruno Haible <haible@clisp.cons.org>
37813 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
37816 2000-06-25 Bruno Haible <haible@clisp.cons.org>
37818 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
37820 Don't include <stdlib.h>. Don't declare malloc, realloc.
37822 2000-06-24 Jim Meyering <meyering@lucent.com>
37824 * m4/strerror_r.m4: Revive this file -- to try out an experimental
37825 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
37826 for which strerror does return char*, but which lacks a conveniently
37827 accessible declaration of the function. If the compile-test says
37828 strerror_r doesn't work, then resort to a `run'-test that works on
37829 BeOS and segfaults on DEC Unix.
37831 2000-06-24 Jim Meyering <meyering@lucent.com>
37833 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
37835 2000-06-23 Paul Eggert <eggert@twinsun.com>
37837 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
37838 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
37840 2000-06-23 Paul Eggert <eggert@twinsun.com>
37842 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
37843 (mbrtowc, mbstate_t): Define substitutes if
37844 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
37845 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
37846 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
37848 2000-06-23 Jim Meyering <meyering@lucent.com>
37850 * m4/afs.m4: Add missing AC_MSG_RESULT.
37851 Reported by Bruno Haible.
37853 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
37854 Suggestion from Bruno Haible.
37856 2000-06-23 Jim Meyering <meyering@lucent.com>
37858 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
37860 2000-06-21 Jim Meyering <meyering@lucent.com>
37862 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
37864 2000-06-21 Jim Meyering <meyering@lucent.com>
37866 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
37867 (noinst_HEADERS): Add getstr.h.
37869 * lib/getline.c (getstr): Move into a separate file.
37870 * lib/getstr.c (getstr): New file, extracted from getline.c, with
37871 the following changes: new parameter, delim2; both delim[12]
37872 parameters have type `int', not `char'. The latter would lose
37873 with 8-bit delimiters.
37874 * lib/getstr.h: New file.
37876 2000-06-21 Bruno Haible <haible@clisp.cons.org>
37878 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
37879 than 1024, return a memory chunk of least possible size, instead
37880 of size PATH_MAX + 2. In the loop, increment the size proportionally.
37881 Use free/xmalloc instead of xrealloc to avoid copying for very long
37884 2000-06-21 Bruno Haible <haible@clisp.cons.org>
37886 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
37889 2000-06-21 Bruno Haible <haible@clisp.cons.org>
37891 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
37892 address, not strdup. Include <stdlib.h> and don't declare free().
37894 2000-06-19 Jim Meyering <meyering@lucent.com>
37896 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
37898 2000-06-18 Jim Meyering <meyering@lucent.com>
37900 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
37902 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
37903 `checking whether...' message to be consistent with that of the
37906 2000-06-18 Jim Meyering <meyering@lucent.com>
37908 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
37909 Besides, these days every porting target provides a mkdir function.
37911 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
37912 needed. (this snippet comes from src/system.h).
37914 2000-06-16 Bruno Haible <haible@clisp.cons.org>
37916 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
37918 2000-06-15 Paul Eggert <eggert@twinsun.com>
37920 * lib/human.c (adjust_value): New function.
37921 (human_readable_inexact): Apply rounding style even when
37922 printing approximate values.
37924 2000-06-14 Paul Eggert <eggert@twinsun.com>
37926 * lib/human.c (human_readable_inexact): Allow an input block
37927 size that is not a multiple of the output block size, and vice versa.
37928 Reported by Piergiorgio Sartor.
37930 2000-06-14 Paul Eggert <eggert@twinsun.com>
37932 * lib/getdate.y (get_date): Apply relative times after time
37933 zone indicator, not before. Reported by Todd A. Jacobs.
37935 2000-06-13 Jim Meyering <meyering@lucent.com>
37937 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
37939 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
37941 2000-06-12 Paul Eggert <eggert@twinsun.com>
37943 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
37945 2000-06-12 Jim Meyering <meyering@lucent.com>
37947 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
37948 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
37950 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
37951 the optional argument, `lib'.
37953 2000-06-08 Jim Meyering <meyering@lucent.com>
37955 * m4/largefile.m4: Remove file (now that it's part of autoconf).
37957 2000-06-04 Paul Eggert <eggert@twinsun.com>
37959 Rewrite largefile configuration so that we don't need to run
37960 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
37961 AC_CANONICAL_HOST in configure.in -- jmm]
37963 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
37964 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
37965 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
37966 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
37967 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
37969 Instead of inspecting the output of getconf, try to compile the
37970 test program without and with the macro definition.
37971 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
37972 for getconf. Instead, check for the needed flags by compiling
37975 2000-06-04 Paul Eggert <eggert@twinsun.com>
37977 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
37979 2000-06-04 Jim Meyering <meyering@lucent.com>
37981 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
37982 SunOS 4.1.4 for which gid_t is an unsigned type.
37984 2000-06-03 Jim Meyering <meyering@lucent.com>
37986 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
37987 now that autoconf requires that.
37989 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
37990 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
37991 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
37993 2000-06-03 Jim Meyering <meyering@lucent.com>
37995 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
37997 2000-06-03 Bruno Haible <haible@clisp.cons.org>
37999 * m4/glibc21.m4: New file.
38000 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
38002 2000-06-03 Bruno Haible <haible@clisp.cons.org>
38004 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
38005 newer, don't install charset.alias.
38006 * lib/config.charset: Change the Linux/glibc rules so they become empty
38007 on glibc-2.1 or newer.
38009 2000-06-02 Jim Meyering <meyering@lucent.com>
38011 * lib/mountlist.c: Back out last change. Instead, do this...
38012 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
38013 me_dummy member using the same `ignore'-testing code.
38014 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
38018 2000-05-29 Jim Meyering <meyering@lucent.com>
38020 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
38021 mounts with the `ignore' attribute. Based on a patch from
38024 2000-05-28 Jim Meyering <meyering@lucent.com>
38026 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
38027 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38028 * m4/stat.m4: Likewise.
38029 * m4/lstat.m4: Likewise.
38030 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
38032 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
38033 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
38035 2000-05-26 Jim Meyering <meyering@lucent.com>
38037 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
38039 2000-05-24 Jim Meyering <meyering@lucent.com>
38041 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
38042 autoconf requires that.
38043 * m4/lib-check.m4: Likewise.
38044 * m4/jm-macros.m4: Likewise.
38045 * m4/strftime.m4: Likewise.
38047 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
38048 AC_CHECK_DECLS, now that autoconf requires that.
38050 2000-05-22 Jim Meyering <meyering@lucent.com>
38052 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38053 * m4/lstat.m4: Likewise.
38055 2000-05-22 Jim Meyering <meyering@lucent.com>
38057 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
38059 2000-05-20 Jim Meyering <meyering@lucent.com>
38061 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
38062 (jm_PREREQ): Use it.
38064 2000-05-18 Jim Meyering <meyering@lucent.com>
38066 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
38067 back, too, since it may have been modified by allocate_entry.
38068 (hash_delete): Rewrite to use neither the assignment operator
38069 nor the comma operator in an if-expression.
38071 2000-05-15 Paul Eggert <eggert@twinsun.com>
38074 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
38075 Remove; no longer needed.
38076 "quotearg.h": Add include.
38077 (file_name): Do not bother to explicitly initialize to NULL; it's less
38078 efficient on some hosts.
38079 (close_stdout_status): Remove test as to whether stdout was already
38080 closed; it breaks for the case "echo x | sort >&-".
38081 Quote file name colons.
38082 Do not assume that _("write error") lacks format strings.
38084 2000-05-15 Jim Meyering <meyering@lucent.com>
38086 * lib/version-etc.c (version_etc_copyright): Update the copyright
38087 string used in all --version output.
38089 2000-05-14 Jim Meyering <meyering@lucent.com>
38091 * lib/closeout.c (close_stdout_set_file_name): New function.
38092 (close_stdout_status): Use new file-scoped global.
38093 Return right away if fstat says the stdout file descriptor is invalid.
38094 * lib/closeout.h (close_stdout_set_file_name): Declare.
38096 2000-05-10 Jim Meyering <meyering@lucent.com>
38098 * lib/closeout.c [default_exit_status]: New file-scoped variable.
38099 (close_stdout_set_status): New function.
38100 * lib/closeout.h (close_stdout_set_status): Declare.
38102 2000-05-09 Jim Meyering <meyering@lucent.com>
38104 * m4/gettext.m4: Rename this...
38105 * m4/libintl.m4: ...to this.
38107 2000-05-08 Jim Meyering <meyering@lucent.com>
38109 * lib/long-options.c: Don't include closeout.h.
38110 (parse_long_options): Don't call close_stdout for --version.
38112 2000-05-06 Paul Eggert <eggert@twinsun.com>
38114 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
38115 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
38116 2.1.3 bug. This avoids a clash when files like regex.c define
38119 2000-05-06 Jim Meyering <meyering@lucent.com>
38121 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
38122 (AC_REPLACE_FUNCS): Add strnlen.
38124 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
38125 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
38127 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
38128 AC_SEARCH_LIBS call for nanosleep.
38129 (LIB_NANOSLEEP): Set and AC_SUBST.
38131 2000-05-06 Jim Meyering <meyering@lucent.com>
38133 * lib/strnlen.c: Undefine __strnlen and strnlen.
38134 [!weak_alias]: Define __strnlen to strnlen.
38136 * lib/atexit.c: New file, from libiberty.
38138 2000-05-06 Jim Meyering <meyering@lucent.com>
38140 * lib/closeout.c (close_stdout_status): Also check for errors on the
38143 2000-05-05 Jim Meyering <meyering@lucent.com>
38145 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
38146 AC_SEARCH_LIBS call for clock_gettime.
38147 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
38149 * m4/search-libs.m4: Update from autoconf.
38151 su doesn't work on Solaris 2.6.
38152 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
38153 <shadow.h>. Reported by Dragos Harabor.
38155 2000-05-05 Bruno Haible <haible@clisp.cons.org>
38157 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
38158 memcpy instead of xmalloc, xrealloc, path_concat.
38159 (locale_charset): Treat empty environment variables as absent.
38160 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
38162 2000-05-04 Jim Meyering <meyering@lucent.com>
38164 * lib/getopt.c: Update from glibc.
38165 * lib/obstack.c: Likewise.
38166 * lib/obstack.h: Likewise.
38167 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
38170 * lib/regex.h: Likewise.
38171 * lib/strndup.c: Likewise.
38172 * lib/strnlen.c: New file, from glibc.
38174 2000-05-03 Jim Meyering <meyering@lucent.com>
38176 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
38178 2000-05-02 Paul Eggert <eggert@twinsun.com>
38180 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
38181 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
38182 compile-time test, rather than inspecting host and OS, to
38183 decide whether to define _LARGEFILE_SOURCE.
38185 2000-05-01 Jim Meyering <meyering@lucent.com>
38187 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
38189 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
38190 Based on a patch from Bruno Haible.
38192 2000-05-01 Jim Meyering <meyering@lucent.com>
38194 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
38196 2000-04-29 Jim Meyering <meyering@lucent.com>
38198 * lib/path-concat.c: Declare strdup only if it's not defined.
38199 * lib/canon-host.c: Likewise.
38201 2000-04-28 Jim Meyering <meyering@lucent.com>
38203 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
38204 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
38205 is included first, then limits.h is included by locale.h by libintl.h.
38206 From John David Anglin.
38208 2000-04-25 Jim Meyering <meyering@lucent.com>
38210 * lib/makepath.c (S_IRWXUGO): Define.
38211 (make_path): Always perform explicit chmod if MODE specifies any
38212 of the `special' permission bits. Prompted by a bug report against
38213 install from Mate Wierdl and Joost van Baal.
38215 2000-04-18 Jim Meyering <meyering@lucent.com>
38217 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
38218 (jm_PREREQ): Use it.
38220 2000-04-18 Jim Meyering <meyering@lucent.com>
38222 * lib/README: New file.
38224 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
38225 getpagesize. For BeOS. Based on a patch from Bruno Haible.
38227 2000-04-17 Jim Meyering <meyering@lucent.com>
38230 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
38231 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
38232 Suggestion from Akim Demaille.
38234 2000-04-17 Jim Meyering <meyering@lucent.com>
38236 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
38237 the definition of it to rpl_strftime also defined-away the system's
38240 2000-04-15 Jim Meyering <meyering@lucent.com>
38242 Use `C' to denote so-called `contiguous' files, the same way
38244 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
38245 (ftypelet): Use S_ISCTG.
38246 From Michael Deutschmann.
38248 2000-04-14 Jim Meyering <meyering@lucent.com>
38250 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
38251 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
38254 2000-04-14 Jim Meyering <meyering@lucent.com>
38256 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
38258 2000-04-13 Jim Meyering <meyering@lucent.com>
38260 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
38261 AH_VERBATIM to insert required #ifndef into config.h.in.
38262 Suggestion from Akim Demaille.
38264 2000-04-12 Jim Meyering <meyering@lucent.com>
38266 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
38267 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
38268 Christian Krackowizer.
38270 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
38271 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
38272 (AC_SYS_LARGEFILE): Require.
38273 (AM_C_PROTOTYPES): Require.
38275 2000-04-08 Jim Meyering <meyering@lucent.com>
38277 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
38278 names don't conflict. Reported by Eli Zaretskii.
38280 2000-04-07 Jim Meyering <meyering@lucent.com>
38282 * lib/putenv.c: Move inclusion of errno.h so it follows that of
38283 sys/types.h, to work around system header problems on AIX 3.2.5.
38286 2000-04-07 Bruno Haible <haible@clisp.cons.org>
38288 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
38289 bug. Deal with the different error behavior of Irix iconv.
38291 2000-04-05 Paul Eggert <eggert@twinsun.com>
38293 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
38294 IRIX if the installer said otherwise.
38296 2000-04-05 Jim Meyering <meyering@lucent.com>
38298 Portability tweaks required for ultrix4.3.
38299 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
38300 (jm_CHECK_DECLS): Add getutent to the list of functions.
38301 (_jm_DECL_HEADERS): Add utmpx.h.
38302 From John David Anglin.
38304 * m4/strftime.m4: Back out the 2000-04-02 change.
38305 Instead of that change, simply undefine putenv in the test program.
38307 2000-04-05 Jim Meyering <meyering@lucent.com>
38309 Portability tweaks required for ultrix4.3.
38310 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
38312 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
38313 * lib/canon-host.c: Declare strdup.
38314 * lib/path-concat.c: Likewise.
38315 From John David Anglin.
38317 2000-04-04 Jim Meyering <meyering@lucent.com>
38319 Be more DOS 8.3-friendly.
38320 * lib/ref-add.sin: Renamed from ref-add.sed.in.
38321 * lib/ref-del.sin: Renamed from ref-del.sed.in.
38322 * lib/Makefile.am: Reflect renaming.
38323 Reported by Eli Zaretskii.
38325 Use a temporary file name that won't clash with `charset.alias'
38326 in the DOS 8.3 name space.
38327 * lib/Makefile.am (charset_tmp): Define.
38328 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
38329 (uninstall-local): Likewise.
38330 Reported by Eli Zaretskii.
38332 2000-04-03 Jim Meyering <meyering@lucent.com>
38334 * m4/gettext.m4: Fix typo in comment.
38336 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
38337 textutils/configure.in). Suggestion from Paul Eggert.
38338 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
38340 2000-04-02 Paul Eggert <eggert@twinsun.com>
38342 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
38343 variable in the shell rather than using putenv, which isn't
38344 portable. This avoids the configure-time inter-test dependency
38345 on the potentially-renamed putenv function.
38347 2000-03-30 Paul Eggert <eggert@twinsun.com>
38349 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
38350 before checking struct stat.st_blksize, so that
38351 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
38353 2000-03-29 Paul Eggert <eggert@twinsun.com>
38355 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
38356 since strftime.c uses HAVE_STRFTIME to decide whether to use
38357 the underlying strftime.
38359 2000-03-29 Paul Eggert <eggert@twinsun.com>
38361 * lib/time/strftime.c (my_strftime): Make sure we call the system
38362 strftime, not ourselves, when invoking the underlying strftime.
38364 2000-03-24 Jim Meyering <meyering@lucent.com>
38366 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
38367 (charset_alias): Define.
38368 (install-exec-local): Factor out common code.
38369 (uninstall-local): Split lines longer than 80.
38370 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
38371 (SUFFIXES): Define.
38372 (.sed.in.sed): New rule. Don't redirect directly to $@.
38373 (CLEANFILES): Add ref-add.sed and ref-del.sed.
38375 2000-03-19 Bruno Haible <haible@clisp.cons.org>
38377 * lib/config.charset: Output a line containing "Packages using this
38379 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
38380 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
38381 ref-del.sed): New rules.
38383 2000-03-17 Jim Meyering <meyering@lucent.com>
38385 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
38386 Otherwise, include <strings.h>
38388 2000-03-17 Bruno Haible <haible@clisp.cons.org>
38390 * lib/unicodeio.c (utf8_wctomb): New function.
38391 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
38392 format instead of in UCS-4 with platform dependent endianness.
38394 2000-03-10 Jim Meyering <meyering@lucent.com>
38396 * m4/lib-check.m4: Look for getspnam in -lgen, too.
38397 From Marco Franzen.
38399 2000-03-07 Paul Eggert <eggert@twinsun.com>
38401 * lib/savedir.c (savedir): Work even if directory size is
38402 negative; this can happen with some screwy NFS configurations.
38404 2000-03-06 Jim Meyering <meyering@lucent.com>
38406 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38407 if it's NULL (because we ran out of memory). From Bruno Haible.
38409 2000-03-05 Jim Meyering <meyering@lucent.com>
38411 * lib/localcharset.c ("path-concat.h"): Include.
38412 (get_charset_aliases): Use path_concat instead of ANSI string
38415 * lib/unicodeio.h (PARAMS): Define.
38416 Use it to guard prototype.
38418 2000-03-04 Jim Meyering <meyering@lucent.com>
38420 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38421 for lib/localcharset.c.
38423 2000-03-04 Jim Meyering <meyering@lucent.com>
38425 * lib/Makefile.am (install-exec-local): Create $(libdir) before
38426 installing into it.
38427 (uninstall-local): Uncomment this rule so `make distcheck' works
38430 * lib/unicodeio.c (<errno.h>): Include it.
38431 (errno): Declare if not defined.
38433 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38435 * lib/config.charset: New version, incorporating remarks from a linux
38436 i18n mailing list. From Bruno Haible.
38438 2000-03-04 Bruno Haible <haible@clisp.cons.org>
38440 * m4/codeset.m4: New file.
38441 * m4/iconv.m4: New file.
38442 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38444 2000-03-03 Jim Meyering <meyering@lucent.com>
38446 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38448 2000-03-02 Jim Meyering <meyering@lucent.com>
38450 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38451 the messages come out on separate lines.
38453 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38454 rather than jm_CHECK_DECLARATIONS.
38455 * m4/decl.m4: Remove now-unused file.
38457 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38460 2000-03-02 Jim Meyering <meyering@lucent.com>
38462 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38464 2000-03-01 Jim Meyering <meyering@lucent.com>
38466 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38467 * lib/unicodeio.c: Likewise.
38469 2000-03-01 Bruno Haible <haible@clisp.cons.org>
38471 * lib/config.charset: New file.
38472 * lib/localcharset.c: New file.
38473 * lib/unicodeio.h, lib/unicodeio.c: New files.
38474 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38475 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38476 (noinst_HEADERS): Add unicodeio.h.
38477 (all-local, install-exec-local, charset.alias): New targets.
38479 2000-02-28 Paul Eggert <eggert@twinsun.com>
38481 * lib/quotearg.c (ALERT_CHAR): New macro.
38482 (quotearg_buffer_restyled): Use it.
38484 2000-02-27 Jim Meyering <meyering@lucent.com>
38486 * m4/check-decl.m4: Add getenv to the list.
38488 2000-02-27 Jim Meyering <meyering@lucent.com>
38490 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38491 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38493 * lib/backupfile.c: Guard inclusion of stdlib.h with
38494 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38495 Declare malloc if needed.
38497 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38498 `#ifndef HAVE_DECL..'
38499 now that autoconf always defines the HAVE_DECL_ symbols.
38500 * lib/human.c: Likewise.
38501 * lib/same.c: Likewise.
38502 * lib/strtoumax.c: Likewise.
38504 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38505 declaration check was not run.
38506 * lib/hash.c: Likewise.
38507 * lib/human.c: Likewise.
38508 * lib/same.c: Likewise.
38509 * lib/strtoumax.c: Likewise.
38511 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38512 `.', then first look up the entire `.'-containing string as a login
38515 2000-02-23 Jim Meyering <meyering@lucent.com>
38517 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38518 in place of my hack.
38520 2000-02-18 Paul Eggert <eggert@twinsun.com>
38522 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38523 (textint): New typedef.
38524 (parser_control): Member year changed from int to textint.
38526 (YYSTYPE): Removed; replaced by %union with int and textint members.
38527 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38528 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38529 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38530 (tSNUMBER, tUNUMBER): Now of type <textintval>.
38531 (date, number, to_year): Use width of number in digits, not its value,
38532 to determine whether it's a 2-digit year, or a 2-digit time.
38533 (yylex): Store number of digits of numeric tokens.
38534 Reported by John Kendall.
38536 (parser_control): Changed from struct parser_control to typedef (for
38537 consistency). All uses changed.
38539 (tID): Removed; not used.
38540 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38542 2000-02-14 Paul Eggert <eggert@twinsun.com>
38544 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38545 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38547 2000-02-12 Jim Meyering <meyering@lucent.com>
38549 * lib/userspec.c (ISDIGIT): Define it.
38550 (isdigit): Remove definition.
38551 (is_number): Use ISDIGIT, not isdigit.
38552 <libintl.h>: Include.
38553 (_ and N_): Define.
38554 (parse_user_spec): Mark translatable strings.
38556 2000-02-10 Jim Meyering <meyering@lucent.com>
38558 With these changes, nanosleep.[ch] are finally enough like the other
38559 lib/* replacement files to compile on a few more losing systems.
38561 * lib/nanosleep.h: Don't include config.h.
38562 Remove prototype from declaration of nanosleep.
38563 (PARAMS): Remove now-unneeded definition.
38564 * lib/nanosleep.c: #undef nanosleep.
38565 (rpl_nanosleep): Rename from nanosleep.
38567 2000-02-10 Jim Meyering <meyering@lucent.com>
38569 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38570 gnu_nanosleep to rpl_nanosleep.
38572 2000-02-09 Jim Meyering <meyering@lucent.com>
38574 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38575 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
38577 2000-02-08 Akim Demaille <akim@epita.fr>
38579 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
38580 `[' and `]' and remove uses of `changequote'.
38581 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
38582 (AC_SYS_LARGEFILE): Likewise.
38583 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38584 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
38586 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
38587 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
38588 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
38589 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
38591 2000-02-05 Jim Meyering <meyering@lucent.com>
38593 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
38594 Remove explicit use of AC_HEADER_TIME. It is required by
38595 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
38596 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
38597 in autoconf whereby the expansion of the latter ended up preceding
38598 the expansion of its prerequisite, AC_HEADER_TIME.
38599 Reported by Volker Borchert.
38601 2000-02-03 Jim Meyering <meyering@lucent.com>
38603 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
38605 2000-02-03 Jim Meyering <meyering@lucent.com>
38607 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
38608 rather than with `#if HAVE_UTMPNAME'.
38610 2000-02-02 Jim Meyering <meyering@lucent.com>
38612 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
38613 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
38614 Reported by Eli Zaretskii.
38616 2000-02-01 Jim Meyering <meyering@lucent.com>
38618 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
38620 2000-01-31 Jim Meyering <meyering@lucent.com>
38622 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
38623 functions. Add the time.h and sys/time.h headers along with the
38624 AC_REQUIRE'ment of AC_HEADER_TIME.
38626 2000-01-31 Jim Meyering <meyering@lucent.com>
38628 * lib/nanosleep.h (nanosleep): Guard declaration with
38629 `#if ! HAVE_DECL_NANOSLEEP'.
38630 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
38631 the declaration in that vendor's sys/timers.h.
38632 Reported by Christian Krackowizer.
38634 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
38635 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
38636 (ISPRINT): Likewise.
38637 Reported by Tom Tromey.
38639 2000-01-30 Jim Meyering <meyering@lucent.com>
38641 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
38643 * m4/prereq.m4 (utmp_includes): Define.
38644 Check for ut_user and ut_name members in both struct utmpx
38647 2000-01-30 Jim Meyering <meyering@lucent.com>
38649 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
38650 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
38651 header files where only utmpx.ut_user is declared.
38653 * lib/readutmp.h (UT_USER): Define.
38655 2000-01-29 Jim Meyering <meyering@lucent.com>
38657 * m4/lib-check.m4: New file containing library-related checks from
38658 fileutils and sh-utils (textutils had none).
38660 2000-01-28 Jim Meyering <meyering@lucent.com>
38662 * m4/perl.m4: Change format of warning message to look more like that
38663 from the missing script. Suggestion from François Pinard.
38665 2000-01-25 Jim Meyering <meyering@lucent.com>
38667 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
38668 well as time.h in the compile check.
38669 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
38670 Fix typo in cross-compiling case: s/yes/no/.
38672 2000-01-23 Jim Meyering <meyering@lucent.com>
38674 * m4/jm-macros.m4: Move df-related tests here from
38675 fileutils/configure.in
38677 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
38678 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
38680 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
38681 s/space/ac_fsusage_space/.
38682 (jm_FILE_SYSTEM_USAGE): Take two parameters.
38684 * m4/ftruncate.m4: New file (derived from part of
38685 fileutils/configure.in).
38686 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
38687 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
38689 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
38690 AC_SUBST these here, rather than just in sh-util/configure.in, so
38691 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
38693 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
38694 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
38695 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
38696 (AC_SUBST(POW_LIBM)): Likewise.
38697 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
38699 2000-01-23 Jim Meyering <meyering@lucent.com>
38701 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
38704 2000-01-22 Jim Meyering <meyering@lucent.com>
38706 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
38708 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
38710 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
38712 (AC_CHECK_HEADERS): Likewise for sh-utils.
38713 (AC_CHECK_HEADERS): Likewise for textutils.
38714 Merge the three lists of headers.
38716 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
38717 from fileutils' configure.in.
38719 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
38720 code. Moved tests into their own function (_jm_DECL_HEADERS) in
38723 * m4/check-decl.m4: Use #if rather than #ifdef.
38724 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
38725 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
38726 (_jm_DECL_HEADERS): Define new function.
38727 (jm_CHECK_DECLARATIONS): Require it.
38729 2000-01-22 Jim Meyering <meyering@lucent.com>
38731 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
38732 [! HAVE_DECL_STRTOULL]: Declare strtoull.
38733 Required for some AIX systems. Reported by Christian Krackowizer.
38734 [TESTING] (main): New function.
38736 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
38737 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
38740 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
38743 * lib/strverscmp.c (ISDIGIT): Define.
38744 (strverscmp): Use ISDIGIT, not isdigit.
38746 2000-01-19 Jim Meyering <meyering@lucent.com>
38748 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
38749 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
38750 defines `struct timespec' in <sys/time.h>
38752 * m4/c-bs-a.m4: Remove uses of changequote altogether.
38753 Thanks to Akim for explaining.
38755 2000-01-17 Paul Eggert <eggert@twinsun.com>
38757 * lib/nanosleep.c (nanosleep):
38758 Don't use SA_INTERRUPT to decide whether to call sigaction, as
38759 POSIX.1 doesn't require SA_INTERRUPT and some systems
38760 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
38761 it's been part of POSIX.1 since day 1 (in 1988).
38763 2000-01-17 Jim Meyering <meyering@lucent.com>
38765 * lib/interlock: Remove unused file. Reported by François Pinard.
38767 2000-01-16 Paul Eggert <eggert@twinsun.com>
38769 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
38770 alert, backslash, formfeed, and vertical tab unnecessarily in
38771 shell quoting style.
38773 2000-01-16 Jim Meyering <meyering@lucent.com>
38775 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
38776 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
38777 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
38778 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
38780 2000-01-16 Jim Meyering <meyering@lucent.com>
38782 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
38783 because the latter didn't work.
38785 2000-01-15 Jim Meyering <meyering@lucent.com>
38787 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
38788 (AC_REPLACE_FUNCS): Add memcpy and memset.
38789 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
38791 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
38793 2000-01-12 Jim Meyering <meyering@lucent.com>
38795 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
38796 (jm_PREREQ): Use it.
38797 (jm_PREREQ_READUTMP): New macro.
38798 (jm_PREREQ): Use it.
38800 2000-01-11 Paul Eggert <eggert@twinsun.com>
38802 Quote multibyte characters correctly.
38803 * m4/c-bs-a.m4: New file.
38804 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
38805 (jm_PREREQ): Use it.
38807 2000-01-11 Paul Eggert <eggert@twinsun.com>
38809 * m4/uintmax_t.m4: Port to autoconf 2.13.
38811 2000-01-08 Jim Meyering <meyering@ascend.com>
38813 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
38814 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
38816 2000-01-04 Jim Meyering <meyering@ascend.com>
38818 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
38819 jm_STRUCT_DIRENT_D_TYPE.
38820 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
38821 jm_STRUCT_DIRENT_D_INO.
38822 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
38824 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
38826 * m4/utime.m4: Likewise.
38828 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
38829 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
38831 2000-01-03 Paul Eggert <eggert@twinsun.com>
38833 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
38834 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
38836 2000-01-02 Jim Meyering <meyering@ascend.com>
38838 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
38839 remember if this is necessary.
38841 1999-12-26 Jim Meyering <meyering@ascend.com>
38843 * m4/jm-macros.m4: Use it here.
38844 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
38846 1999-12-23 Jim Meyering <meyering@ascend.com>
38848 * m4/jm-macros.m4: Check for clock_gettime (moved from
38849 fileutils/configure.in)
38850 Check for gettimeofday.
38852 1999-12-20 Jim Meyering <meyering@ascend.com>
38854 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
38855 autoconf-2.14a-1999-12-20.
38857 1999-12-19 Jim Meyering <meyering@ascend.com>
38859 * m4/lstat-slash.m4: New file.
38860 * m4/jm-macros.m4: Use the new macro:
38861 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38863 1999-12-07 Jim Meyering <meyering@ascend.com>
38865 * m4/perl.m4: Require that File::Compare be available, too.
38866 Too many systems seem to lack it.
38868 * m4/strftime.m4: Add checks for most of the cpp macros tested in
38869 GNU's strftime.c. Prompted by a patch from Paul Eggert.
38871 1999-11-18 Paul Eggert <eggert@twinsun.com>
38873 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
38874 problem with the QNX 4.25 shell, which doesn't propagate exit
38875 status of failed commands inside shell assignments.
38877 1999-11-17 Jim Meyering <meyering@ascend.com>
38879 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
38881 1999-11-07 Jim Meyering <meyering@ascend.com>
38883 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
38885 1999-11-06 Jim Meyering <meyering@ascend.com>
38887 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
38888 * m4/jm-macros.m4 (jm_MACROS): Use it here.
38890 1999-11-05 Jim Meyering <meyering@ascend.com>
38892 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
38893 configure.in of textutils, fileutils, and sh-utils into this one
38894 (shared between those packages) file.
38895 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
38896 AC_STRUCT_ST_BLKSIZE.
38898 1999-11-03 Jim Meyering <meyering@ascend.com>
38900 * m4/ssize_t.m4: Remove file. No longer needed since the new version
38901 of AC_CHECK_TYPE checks includes unistd.h.
38902 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
38903 Suggestion from Akim Demaille.
38905 1999-10-30 Jim Meyering <meyering@ascend.com>
38907 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
38909 * m4/ls-mntd-fs.m4: Likewise.
38910 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
38911 * m4/jm-winsz1.m4: Likewise.
38913 * m4/const.m4: Remove file, since the fix made it into the experimental
38914 version of autoconf.
38915 * m4/mktime.m4: Likewise.
38917 * m4/check-type.m4: Remove file, now that the latest version of
38918 AC_CHECK_TYPE takes a third arg to specify additional #includes.
38920 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
38921 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
38924 1999-10-04 Jim Meyering <meyering@ascend.com>
38926 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
38928 1999-09-22 Paul Eggert <eggert@twinsun.com>
38930 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
38931 2.95.1 bug with HP-UX 10.20.
38933 1999-09-17 Jim Meyering <meyering@ascend.com>
38935 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
38936 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
38937 due to missing strdup (against sh-utils-2.0).
38939 1999-08-29 Jim Meyering <meyering@ascend.com>
38941 * m4/jm-macros.m4: Require jm_BISON.
38942 * m4/bison.m4: New file.
38944 1999-08-17 Paul Eggert <eggert@twinsun.com>
38946 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
38947 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
38949 1999-08-05 Jim Meyering <meyering@ascend.com>
38951 * m4/getline.m4: Rename test file from conftestdata to conftest.data
38952 to avoid conflicts with `conftest' on 8+3 filesystems.
38953 Suggestion from Eli Zaretskii.
38955 1999-08-04 Jim Meyering <meyering@ascend.com>
38957 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
38958 fileutils and sh-utils (textutils's getline test was inadequate).
38959 (AM_FUNC_GETLINE): Run this test.
38960 (AC_CHECK_FUNCS): Check for getdelim.
38961 Reported by Bob Proulx.
38963 1999-08-02 Jim Meyering <meyering@ascend.com>
38965 * m4/jm-macros.m4: Add a comment.
38967 1999-08-01 Paul Eggert <eggert@twinsun.com>
38969 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
38970 <inttypes.h> defines strtoumax as a macro (and not as a
38973 1999-08-01 Paul Eggert <eggert@twinsun.com>
38975 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
38976 that we can shift, multiply and divide unsigned long long
38977 values; Ultrix cc can't do it.
38979 1999-08-01 Paul Eggert <eggert@twinsun.com>
38981 * m4/mktime.m4: New file, which is a preview of what should appear
38982 in the next public autoconf release.
38984 1999-08-01 Paul Eggert <eggert@twinsun.com>
38986 * m4/lfs.m4: Remove this file.
38987 * m4/largefile.m4: New file. It contains the old contents of
38988 lfs.m4, except that all names with prefix AC_LFS have been
38989 changed to use the prefix AC_SYS_LARGEFILE instead, to be
38990 compatible with future autoconf versions. Also, some minor m4
38991 quoting problems have been fixed.
38993 1999-08-01 Paul Eggert <eggert@twinsun.com>
38995 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
38996 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
38997 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
38998 and simplify the shell code.
39000 1999-08-01 Jim Meyering <meyering@ascend.com>
39002 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
39005 1999-07-20 Jim Meyering <meyering@ascend.com>
39007 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
39009 1999-07-15 Jim Meyering <meyering@ascend.com>
39011 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
39013 1999-05-22 Jim Meyering <meyering@ascend.com>
39015 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
39017 1999-05-20 Jim Meyering <meyering@ascend.com>
39019 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
39020 Add a colon after each `then' in case $4 is empty.
39022 1999-05-16 Jim Meyering <meyering@ascend.com>
39024 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
39026 1999-05-10 Jim Meyering <meyering@ascend.com>
39028 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
39030 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
39033 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
39035 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
39037 1999-05-04 Paul Eggert <eggert@twinsun.com>
39039 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
39040 not CPPFLAGS, so that linking works correctly in IRIX.
39042 1999-04-30 Paul Eggert <eggert@twinsun.com>
39044 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
39046 1999-04-20 Paul Eggert <eggert@twinsun.com>
39048 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
39049 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
39050 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
39051 jm_AC_TYPE_UNSIGNED_LONG_LONG.
39052 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
39054 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
39056 1999-04-20 Jim Meyering <meyering@ascend.com>
39058 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
39059 AC_REPLACE xstroull if necessary. From Paul Eggert.
39060 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
39062 1999-04-18 Jim Meyering <meyering@ascend.com>
39064 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
39065 * m4/jm-macros.m4: Use it.
39067 1999-04-06 Jim Meyering <meyering@ascend.com>
39069 * m4/strftime.m4: Remove test for %f.
39071 1999-03-29 Jim Meyering <meyering@ascend.com>
39073 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
39074 superset of the AC_TYPE_* checks in the textutils, fileutils,
39075 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
39078 1999-03-28 Jim Meyering <meyering@ascend.com>
39080 * m4/jm-macros.m4: Define GNU_PACKAGE here.
39081 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
39082 replaced e.g., in the *.sh files of the sh-utils.
39084 1999-03-20 Jim Meyering <meyering@ascend.com>
39086 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
39087 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
39088 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
39090 1999-03-19 Jim Meyering <meyering@ascend.com>
39092 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
39094 1999-03-12 Jim Meyering <meyering@ascend.com>
39096 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
39098 1999-03-07 Jim Meyering <meyering@ascend.com>
39100 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
39103 1999-02-17 Jim Meyering <meyering@ascend.com>
39105 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
39106 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
39108 1999-02-07 Jim Meyering <meyering@ascend.com>
39110 * m4/group-member.m4: New file -- extracted from sh-utils'
39113 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
39114 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
39116 1999-02-06 Jim Meyering <meyering@ascend.com>
39118 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
39119 * m4/fnmatch.m4: Likewise.
39120 * m4/getgroups.m4: Likewise.
39121 * m4/lstat.m4: Likewise.
39122 * m4/malloc.m4: Likewise.
39123 * m4/putenv.m4: Likewise.
39124 * m4/realloc.m4: Likewise.
39125 * m4/regex.m4: Likewise.
39126 * m4/stat.m4: Likewise.
39127 * m4/strftime.m4: Likewise.
39128 Suggestion from Alain Magloire.
39130 * m4/chown.m4: Use `.$ac_objext', not `.o'.
39131 * m4/fnmatch.m4: Likewise.
39132 * m4/getgroups.m4: Likewise.
39133 * m4/getline.m4: Likewise.
39134 * m4/lstat.m4: Likewise.
39135 * m4/malloc.m4: Likewise.
39136 * m4/memcmp.m4: Likewise.
39137 * m4/putenv.m4: Likewise.
39138 * m4/realloc.m4: Likewise.
39139 * m4/regex.m4: Likewise.
39140 * m4/stat.m4: Likewise.
39141 * m4/strftime.m4: Likewise.
39142 Suggestion from Alain Magloire.
39144 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
39147 * m4/regex.m4: Add a run-time Test for proper operation of
39148 re_compile_pattern.
39150 1999-01-31 Jim Meyering <meyering@ascend.com>
39152 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
39154 1999-01-30 Jim Meyering <meyering@ascend.com>
39156 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
39158 * m4/jm-mktime.m4: Make this a wrapper around the official
39159 AM_FUNC_MKTIME rather than my private copy, now that the official one
39161 * m4/mktime.m4: Remove file.
39163 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
39164 * m4/uptime.m4: Likewise.
39165 * m4/uintmax_t.m4: Likewise.
39167 1999-01-28 Jim Meyering <meyering@ascend.com>
39169 * m4/jm-macros.m4: Use jm_AFS.
39170 * m4/afs.m4: New file (from fileutils' configure.in).
39172 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
39173 * m4/chown.m4: Likewise.
39174 * m4/d-ino.m4: Likewise.
39175 * m4/d-type.m4: Likewise.
39176 * m4/fnmatch.m4: Likewise.
39177 * m4/getgroups.m4: Likewise.
39178 * m4/gettext.m4: Likewise.
39179 * m4/jm-mktime.m4: Likewise.
39180 * m4/jm-winsz2.m4: Likewise.
39181 * m4/lcmessage.m4: Likewise.
39182 * m4/ls-mntd-fs.m4: Likewise.
39183 * m4/malloc.m4: Likewise.
39184 * m4/memcmp.m4: Likewise.
39185 * m4/putenv.m4: Likewise.
39186 * m4/realloc.m4: Likewise.
39187 * m4/st_mtim.m4: Likewise.
39188 * m4/strftime.m4: Likewise.
39190 1999-01-16 Jim Meyering <meyering@ascend.com>
39192 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
39193 (ARGMATCH_DIE_DECL): Define.
39195 1999-01-12 Jim Meyering <meyering@ascend.com>
39197 * m4/Makefile.am.in: Rewrite to avoid using fmt.
39198 Reported by Lars Hecking.
39200 1999-01-10 Jim Meyering <meyering@ascend.com>
39202 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
39204 * m4/inttypes_h.m4: Likewise.
39205 * m4/lstat.m4: Likewise.
39206 * m4/malloc.m4: Likewise.
39207 * m4/readdir.m4: Likewise.
39208 * m4/realloc.m4: Likewise.
39209 * m4/st_dm_mode.m4: Likewise.
39210 * m4/stat.m4: Likewise.
39211 * m4/utimbuf.m4: Likewise.
39212 * m4/utimes.m4: Likewise.
39214 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
39215 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
39216 comments in config.h.in are meaningful.
39218 * m4/jm-macros.m4: Require autoconf-2.13 here.
39220 * m4/regex.m4: By default, don't use the included regex.c on systems
39221 with glibc 2. Suggestion from Uli Drepper.
39223 1999-01-02 Jim Meyering <meyering@ascend.com>
39225 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
39227 1998-12-18 Jim Meyering <meyering@ascend.com>
39229 * m4/Makefile.am.in (Makefile.am): Simplify rule.
39230 Based on a suggestion from Lars Hecking.
39232 1998-11-16 Paul Eggert <eggert@twinsun.com>
39234 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
39236 1998-11-16 Jim Meyering <meyering@ascend.com>
39238 * m4/lfs.m4: Double-quote the `uname...` expression.
39240 1998-11-14 Jim Meyering <meyering@ascend.com>
39242 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
39243 * m4/stat.m4: Likewise.
39245 1998-11-03 Jim Meyering <meyering@ascend.com>
39247 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
39248 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
39250 1998-10-18 Jim Meyering <meyering@ascend.com>
39252 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
39254 1998-10-17 Jim Meyering <meyering@ascend.com>
39256 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
39257 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
39258 calls for those previously hard-coded headers. Instead, take a new
39260 (jm_CHECK_DECLARATIONS): Reflect interface change.
39261 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
39262 (jm_CHECK_DECL_LOCALTIME_R): New macro.
39264 * m4/mktime.m4: Test for spring-forward gap before long-running test.
39266 1998-10-14 Jim Meyering <meyering@ascend.com>
39268 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
39269 instead of "TZ=America/Vancouver". From Paul Eggert.
39271 1998-10-11 Jim Meyering <meyering@ascend.com>
39273 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
39274 This adds a test for a recently added compatibility fix for mktime.c.
39275 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
39277 1998-09-27 Jim Meyering <meyering@ascend.com>
39279 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
39281 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
39282 ../configure.in, including a change from Gordon Matzigkeit to allow
39283 cross-compiling for the Hurd.
39285 * m4/glibc.m4: New file/macro to test for the GNU C Library
39286 versions 1 and 2. From Gordon Matzigkeit.
39289 1998-09-21 Jim Meyering <meyering@ascend.com>
39291 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
39293 1998-08-18 Paul Eggert <eggert@twinsun.com>
39295 Port nanosecond-resolution times to UnixWare 2.1.2 and
39296 pedantic Solaris 2.6.
39298 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
39300 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
39301 Generate name of ns member, instead of just 1 or undef.
39302 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
39304 1998-08-15 Jim Meyering <meyering@ascend.com>
39306 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
39307 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
39308 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
39309 instead of jm_TYPE_SSIZE_T.
39311 1998-08-12 Jim Meyering <meyering@ascend.com>
39313 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
39315 1998-08-02 Jim Meyering <meyering@ascend.com>
39317 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
39318 in acconfig.h manually.
39320 1998-07-31 Paul Eggert <eggert@twinsun.com>
39322 * m4/st_mtim.m4: New file.
39324 1998-07-28 Jim Meyering <meyering@ascend.com>
39326 * m4/utimes.m4: Undef stat.
39328 1998-07-25 Jim Meyering <meyering@ascend.com>
39330 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
39331 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
39333 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
39335 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
39336 uid and gid actually remain unchanged.
39338 1998-07-07 Jim Meyering <meyering@ascend.com>
39340 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
39342 1998-07-04 Jim Meyering <meyering@ascend.com>
39344 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
39345 to prove that this macro can be used in packages without regex.c.
39347 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
39349 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
39352 1998-07-03 Jim Meyering <meyering@ascend.com>
39354 * m4/gettext.m4: Add -lintl if it's found to be necessary.
39356 * m4/gettext.m4: New file -- from gettext-0.10.35.
39357 * m4/lcmessage.m4: Likewise.
39358 * m4/progtest.m4: Likewise.
39360 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
39361 * m4/jm-macros.m4: Require the new macro.
39363 1998-06-29 Jim Meyering <meyering@ascend.com>
39365 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
39366 for the definition of NGROUPS (used in a system header included
39369 1998-06-28 Jim Meyering <meyering@ascend.com>
39371 * m4/ls-mntd-fs.m4: New file.
39372 * m4/fstypename.m4: New file.
39374 * m4/jm-macros.m4: Require the new macro.
39375 * m4/jm-glibc-io.m4: New file.
39377 1998-05-19 Jim Meyering <meyering@ascend.com>
39379 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
39380 * m4/lchown.m4: New file.
39382 * m4/Makefile.am.in: New file.
39383 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
39385 1998-05-14 Jim Meyering <meyering@ascend.com>
39387 * m4/Makefile.am (EXTRA_DIST): Add them.
39388 * m4/jm-macros.m4: New file.
39389 * m4/utimbuf.m4: New file.
39391 1998-05-12 Jim Meyering <meyering@ascend.com>
39393 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
39395 1998-05-11 Jim Meyering <meyering@ascend.com>
39397 * m4/isc-posix.m4: New file.
39399 1998-05-10 Jim Meyering <meyering@ascend.com>
39401 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
39403 1998-05-09 Jim Meyering <meyering@ascend.com>
39405 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39406 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39409 * m4/ssize_t.m4: New file.
39410 * m4/mktime.m4: Remove file -- the new automake has this now.
39412 1998-04-26 Jim Meyering <meyering@ascend.com>
39414 * m4/assert.m4: New file.
39415 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39417 1998-04-05 Jim Meyering <meyering@ascend.com>
39419 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39420 (jm_PREREQ): Use it here.
39422 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
39424 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39427 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
39429 * m4/prereq.m4: New file.
39430 * m4/error.m4: New file.
39431 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39433 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
39435 * m4/getline.m4: Don't set am_cv_func_working_getline before the
39436 cache-check for the same variable -- that defeated the purpose of
39437 the test; the test program was never run. This was a problem only
39438 on systems with losing getline functions -- HP-UX 10.20 is one.
39439 Reported by Bjorn Helgaas.
39441 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
39443 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39445 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
39447 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39449 * m4/const.m4: New file. Use an initializer in this declaration
39450 typedef int charset[2]; const charset x;
39451 Reported by Bob Glickstein.
39453 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
39455 * m4/chown.m4: Fix reversed types on -1 args to chown.
39458 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
39460 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39461 Add lseek and memchr.
39463 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39464 T.E.Dickey <dickey@clark.net> said that some older preprocessors
39465 have a 20-character limit on names.
39467 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
39469 * m4/inttypes_h.m4: New file.
39470 * m4/uintmax_t.m4: New file.
39471 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39476 Copyright (C) 1997-2008 Free Software Foundation, Inc.
39478 Copying and distribution of this file, with or without
39479 modification, are permitted provided the copyright notice
39480 and this notice are preserved.