1 2007-07-14 Bruno Haible <bruno@clisp.org>
3 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
5 * lib/uniname/uninames.h: Regenerated.
7 2007-07-14 Karl Berry <karl@gnu.org>
9 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
10 omitting sectioning and index commands.
12 2007-07-13 Bruno Haible <bruno@clisp.org>
14 New gnulib-tool option --more-symlinks.
15 * gnulib-tool (func_usage): Document --more-symlinks.
16 (do_copyrights): New variable.
17 Recognize option --more-symlinks.
18 (func_import): Don't add a copyright notice transform to
19 sed_transform_lib_file if do_copyrights is empty.
21 2007-07-13 Bruno Haible <bruno@clisp.org>
23 * lib/vasnprintf.c (decimal_point_char): Define also if
24 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
25 && !NEED_PRINTF_DIRECTIVE_A.
26 Reported by Clemens Koller <clemens.koller@anagramm.de> via
27 Gary V. Vaughan <gary@gnu.org>.
29 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31 * lib/inttypes_.h: Undo previous change, since it was fixed
32 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
34 2007-07-13 Bruno Haible <bruno@clisp.org>
36 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
37 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39 2007-07-13 Jim Meyering <jim@meyering.net>
41 df: Don't fail for Tru64's "file-on-file mount".
42 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
43 so we fall through and use statfs instead. Details here:
44 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
45 Reported by Albert Chin.
47 2007-07-13 Bruno Haible <bruno@clisp.org>
49 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50 * modules/configmake (License): Likewise.
51 * modules/gettext (License): Likewise.
52 * modules/gettext-h (License): Likewise.
53 * modules/include_next (License): Likewise.
54 * modules/link-warning (License): Likewise.
55 * modules/localcharset (License): Likewise.
56 * modules/localename (License): Likewise.
57 * modules/lock (License): Likewise.
58 * modules/relocatable-lib-lgpl (License): Likewise.
59 * modules/size_max (License): Likewise.
60 * modules/vasnprintf (License): Likewise.
61 * modules/wchar (License): Likewise.
62 * modules/xsize (License): Likewise.
64 2007-07-13 Bruno Haible <bruno@clisp.org>
66 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
69 2007-07-12 Bruno Haible <bruno@clisp.org>
71 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
74 2007-07-11 Karl Berry <karl@gnu.org>
76 * MODULES.html.sh (func_module): use
77 sed -e '\|^'"${includefile}"'$|d'
78 instead of /.../d, to avoid errors on $includefile's containing /.
80 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
82 * gnulib-tool (func_import): Avoid duplication of --avoid
84 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
85 names to `_' in variable names.
87 2007-07-10 Eric Blake <ebb9@byu.net>
89 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
90 * NEWS: Document this change.
92 2007-07-08 Bruno Haible <bruno@clisp.org>
94 Update to Unicode 5.0.
95 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
96 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
97 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
100 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
101 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
104 U+10A3F, U+1D242..U+1D244.
105 (nonspacing_table_ind): Update.
106 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
107 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
109 2007-07-08 Bruno Haible <bruno@clisp.org>
111 Update to Unicode 5.0.
112 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
113 code transform. Extend the name index field of unicode_name_to_code and
114 unicode_code_to_name from 16 to 24 bits.
115 * lib/uniname/uniname.c (unicode_character_name,
116 unicode_name_character): Add the range 0x12xxx to the code transform.
117 * lib/uniname/uninames.h: Regenerated.
118 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
120 2007-07-07 Bruno Haible <bruno@clisp.org>
122 * modules/wcwidth-tests: New file.
123 * tests/test-wcwidth.c: New file.
125 Work around MacOS X wcwidth() bug.
126 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
127 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
128 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
129 original wcwidth in non-UTF-8 locales.
130 * modules/wcwidth (Depends-on): Add localcharset, streq,
132 * doc/functions/wcwidth.texi: Update.
134 2007-07-07 Bruno Haible <bruno@clisp.org>
136 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
137 (wcwidth): New declaration.
138 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
140 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
141 here. Prepare for creating <wchar.h> unconditionally.
142 * modules/wchar (Depends-on): Add link-warning.
143 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
144 REPLACE_WCWIDTH, and GL_LINK_WARNING.
145 * lib/wcwidth.h: Remove file.
146 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
147 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
148 * modules/wcwidth (Files): Remove lib/wcwidth.h.
149 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
150 (Include): Replace wcwidth.h with <wchar.h>.
151 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
152 * lib/mbchar.h: Don't include wcwidth.h.
153 * lib/mbswidth.c: Likewise.
154 * NEWS: Mention the change.
156 2007-07-07 Bruno Haible <bruno@clisp.org>
158 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
159 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
160 definition with an external declaration.
161 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
162 defined as a function. Remove AC_C_INLINE requirement.
163 * modules/wcwidth (Files): Add lib/wcwidth.c.
164 (Makefile.am): Remove redundant statement.
166 2007-07-07 Bruno Haible <bruno@clisp.org>
168 * MODULES.html.sh (Unicode string functions): Add the new modules.
170 * tests/uniwidth/test-u32-strwidth.c: New file.
171 * modules/uniwidth/u32-strwidth-tests: New file.
173 * lib/uniwidth/u32-strwidth.c: New file.
174 * modules/uniwidth/u32-strwidth: New file.
176 * tests/uniwidth/test-u16-strwidth.c: New file.
177 * modules/uniwidth/u16-strwidth-tests: New file.
179 * lib/uniwidth/u16-strwidth.c: New file.
180 * modules/uniwidth/u16-strwidth: New file.
182 * tests/uniwidth/test-u8-strwidth.c: New file.
183 * modules/uniwidth/u8-strwidth-tests: New file.
185 * lib/uniwidth/u8-strwidth.c: New file.
186 * modules/uniwidth/u8-strwidth: New file.
188 * tests/uniwidth/test-u32-width.c: New file.
189 * modules/uniwidth/u32-width-tests: New file.
191 * lib/uniwidth/u32-width.c: New file.
192 * modules/uniwidth/u32-width: New file.
194 * tests/uniwidth/test-u16-width.c: New file.
195 * modules/uniwidth/u16-width-tests: New file.
197 * lib/uniwidth/u16-width.c: New file.
198 * modules/uniwidth/u16-width: New file.
200 * tests/uniwidth/test-u8-width.c: New file.
201 * modules/uniwidth/u8-width-tests: New file.
203 * lib/uniwidth/u8-width.c: New file.
204 * modules/uniwidth/u8-width: New file.
206 * tests/uniwidth/test-uc_width.c: New file.
207 * modules/uniwidth/width-tests: New file.
209 * lib/uniwidth/width.c: New file, from GNU libiconv.
210 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
211 * modules/uniwidth/width: New file.
213 * lib/uniwidth.h: New file, from GNU libiconv.
214 * modules/uniwidth/base: New file.
216 2007-07-07 Bruno Haible <bruno@clisp.org>
218 * lib/uniname.h: New file, from GNU gettext.
219 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
220 * lib/uniname/uninames.h: New file, from GNU gettext.
221 * lib/uniname/uniname.c: New file, from GNU gettext.
222 * tests/uniname/test-uninames.sh: New file.
223 * tests/uniname/test-uninames.c: New file, from GNU gettext.
224 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
225 * modules/uniname/base: New file.
226 * modules/uniname/uniname: New file.
227 * modules/uniname/uniname-tests: New file.
228 * MODULES.html.sh (Unicode string functions): Add the new modules.
230 2007-07-06 Bruno Haible <bruno@clisp.org>
232 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
234 2007-07-06 Bruno Haible <bruno@clisp.org>
236 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
237 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
238 includes <cygwin/sys_time.h> which includes <sys/select.h> which
239 include <sys/time.h>.
240 Reported by Eric Blake.
242 2007-07-06 Eric Blake <ebb9@byu.net>
244 Fix testing canonicalize on cygwin.
245 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
246 Revert patch from 2007-06-19.
247 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
248 canonicalize module is also in use.
249 * tests/test-canonicalize.c: New file.
250 * tests/test-canonicalize.sh: Likewise.
251 * modules/canonicalize-tests: Likewise.
253 2007-07-06 Jim Meyering <jim@meyering.net>
255 * lib/getugroups.c (getugroups): Detect getgrent failure.
256 Adjust comment to reflect reality: this function may return -1.
258 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
260 * build-aux/bootstrap (TP_URL,get_translations): Update to use
263 (gnulib_mk): New variable.
265 2007-07-05 Jim Meyering <jim@meyering.net>
267 Don't let endgrent clobber errno, no matter how improbable.
268 * lib/getugroups.c (getugroups): Save and restore errno around
271 Close the group DB even when failing with 2^31 or more members.
272 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
274 2007-07-04 Jim Meyering <jim@meyering.net>
276 * lib/getugroups.h: New file.
277 * lib/getugroups.c: Include "getugroups.h".
278 Remove uses of "register" keyword.
279 Move local variable, "cp", down into scope where used.
280 Give "username" parameter the "const" attribute.
281 * modules/getugroups (Files): Add lib/getugroups.h
283 2007-07-04 Karl Berry <karl@gnu.org>
285 * MODULES.html.sh (func_all_modules): Complete rename of
286 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
288 2007-07-02 Bruno Haible <bruno@clisp.org>
290 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
291 mode, when inttypes.h comes from gnulib.
292 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
294 2007-07-02 Simon Josefsson <simon@josefsson.org>
296 * NEWS: Mention lgpl module name change.
298 * modules/lgpl-2.1: Renamed from lgpl.
300 * NEWS: Mention gpl module name change.
302 * modules/gpl-3.0: New file, based on gpl-2.0.
304 * modules/gpl-2.0: Renamed from gpl.
306 * modules/gpl: Fix filename, doc/gpl.texi is now found at
309 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
311 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
312 #define __STDC_LIMIT_MACROS temporarily while including
313 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
314 Problem reported by Joel E. Denny in
315 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
317 2007-07-01 Bruno Haible <bruno@clisp.org>
319 * lib/unistdio.h: New file.
320 * lib/unistdio/u-asnprintf.h: New file.
321 * lib/unistdio/u-asprintf.h: New file.
322 * lib/unistdio/u-printf-args.c: New file.
323 * lib/unistdio/u-printf-args.h: New file.
324 * lib/unistdio/u-printf-parse.h: New file.
325 * lib/unistdio/u-snprintf.h: New file.
326 * lib/unistdio/u-sprintf.h: New file.
327 * lib/unistdio/u-vasprintf.h: New file.
328 * lib/unistdio/u-vsnprintf.h: New file.
329 * lib/unistdio/u-vsprintf.h: New file.
330 * lib/unistdio/ulc-asnprintf.c: New file.
331 * lib/unistdio/ulc-asprintf.c: New file.
332 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
333 * lib/unistdio/ulc-printf-parse.c: New file.
334 * lib/unistdio/ulc-snprintf.c: New file.
335 * lib/unistdio/ulc-sprintf.c: New file.
336 * lib/unistdio/ulc-vasnprintf.c: New file.
337 * lib/unistdio/ulc-vasprintf.c: New file.
338 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
339 * lib/unistdio/ulc-vsnprintf.c: New file.
340 * lib/unistdio/ulc-vsprintf.c: New file.
341 * lib/unistdio/u8-asnprintf.c: New file.
342 * lib/unistdio/u8-asprintf.c: New file.
343 * lib/unistdio/u8-printf-parse.c: New file.
344 * lib/unistdio/u8-snprintf.c: New file.
345 * lib/unistdio/u8-sprintf.c: New file.
346 * lib/unistdio/u8-vasnprintf.c: New file.
347 * lib/unistdio/u8-vasprintf.c: New file.
348 * lib/unistdio/u8-vsnprintf.c: New file.
349 * lib/unistdio/u8-vsprintf.c: New file.
350 * lib/unistdio/u8-u8-asnprintf.c: New file.
351 * lib/unistdio/u8-u8-asprintf.c: New file.
352 * lib/unistdio/u8-u8-snprintf.c: New file.
353 * lib/unistdio/u8-u8-sprintf.c: New file.
354 * lib/unistdio/u8-u8-vasnprintf.c: New file.
355 * lib/unistdio/u8-u8-vasprintf.c: New file.
356 * lib/unistdio/u8-u8-vsnprintf.c: New file.
357 * lib/unistdio/u8-u8-vsprintf.c: New file.
358 * lib/unistdio/u16-asnprintf.c: New file.
359 * lib/unistdio/u16-asprintf.c: New file.
360 * lib/unistdio/u16-printf-parse.c: New file.
361 * lib/unistdio/u16-snprintf.c: New file.
362 * lib/unistdio/u16-sprintf.c: New file.
363 * lib/unistdio/u16-vasnprintf.c: New file.
364 * lib/unistdio/u16-vasprintf.c: New file.
365 * lib/unistdio/u16-vsnprintf.c: New file.
366 * lib/unistdio/u16-vsprintf.c: New file.
367 * lib/unistdio/u16-u16-asnprintf.c: New file.
368 * lib/unistdio/u16-u16-asprintf.c: New file.
369 * lib/unistdio/u16-u16-snprintf.c: New file.
370 * lib/unistdio/u16-u16-sprintf.c: New file.
371 * lib/unistdio/u16-u16-vasnprintf.c: New file.
372 * lib/unistdio/u16-u16-vasprintf.c: New file.
373 * lib/unistdio/u16-u16-vsnprintf.c: New file.
374 * lib/unistdio/u16-u16-vsprintf.c: New file.
375 * lib/unistdio/u32-asnprintf.c: New file.
376 * lib/unistdio/u32-asprintf.c: New file.
377 * lib/unistdio/u32-printf-parse.c: New file.
378 * lib/unistdio/u32-snprintf.c: New file.
379 * lib/unistdio/u32-sprintf.c: New file.
380 * lib/unistdio/u32-vasnprintf.c: New file.
381 * lib/unistdio/u32-vasprintf.c: New file.
382 * lib/unistdio/u32-vsnprintf.c: New file.
383 * lib/unistdio/u32-vsprintf.c: New file.
384 * lib/unistdio/u32-u32-asnprintf.c: New file.
385 * lib/unistdio/u32-u32-asprintf.c: New file.
386 * lib/unistdio/u32-u32-snprintf.c: New file.
387 * lib/unistdio/u32-u32-sprintf.c: New file.
388 * lib/unistdio/u32-u32-vasnprintf.c: New file.
389 * lib/unistdio/u32-u32-vasprintf.c: New file.
390 * lib/unistdio/u32-u32-vsnprintf.c: New file.
391 * lib/unistdio/u32-u32-vsprintf.c: New file.
392 * tests/unistdio/test-ulc-asnprintf1.c: New file.
393 * tests/unistdio/test-ulc-asnprintf1.h: New file.
394 * tests/unistdio/test-ulc-printf1.h: New file.
395 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
396 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
397 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
398 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
399 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
400 * tests/unistdio/test-ulc-vasprintf1.c: New file.
401 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
402 * tests/unistdio/test-ulc-vsprintf1.c: New file.
403 * tests/unistdio/test-u8-asnprintf1.c: New file.
404 * tests/unistdio/test-u8-asnprintf1.h: New file.
405 * tests/unistdio/test-u8-printf1.h: New file.
406 * tests/unistdio/test-u8-vasnprintf1.c: New file.
407 * tests/unistdio/test-u8-vasnprintf2.c: New file.
408 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
409 * tests/unistdio/test-u8-vasnprintf3.c: New file.
410 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
411 * tests/unistdio/test-u8-vasprintf1.c: New file.
412 * tests/unistdio/test-u8-vsnprintf1.c: New file.
413 * tests/unistdio/test-u8-vsprintf1.c: New file.
414 * tests/unistdio/test-u16-asnprintf1.c: New file.
415 * tests/unistdio/test-u16-asnprintf1.h: New file.
416 * tests/unistdio/test-u16-printf1.h: New file.
417 * tests/unistdio/test-u16-vasnprintf1.c: New file.
418 * tests/unistdio/test-u16-vasnprintf2.c: New file.
419 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
420 * tests/unistdio/test-u16-vasnprintf3.c: New file.
421 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
422 * tests/unistdio/test-u16-vasprintf1.c: New file.
423 * tests/unistdio/test-u16-vsnprintf1.c: New file.
424 * tests/unistdio/test-u16-vsprintf1.c: New file.
425 * tests/unistdio/test-u32-asnprintf1.c: New file.
426 * tests/unistdio/test-u32-asnprintf1.h: New file.
427 * tests/unistdio/test-u32-printf1.h: New file.
428 * tests/unistdio/test-u32-vasnprintf1.c: New file.
429 * tests/unistdio/test-u32-vasnprintf2.c: New file.
430 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
431 * tests/unistdio/test-u32-vasnprintf3.c: New file.
432 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
433 * tests/unistdio/test-u32-vasprintf1.c: New file.
434 * tests/unistdio/test-u32-vsnprintf1.c: New file.
435 * tests/unistdio/test-u32-vsprintf1.c: New file.
436 * modules/unistdio/base: New file.
437 * modules/unistdio/u-printf-args: New file.
438 * modules/unistdio/ulc-asnprintf: New file.
439 * modules/unistdio/ulc-asprintf: New file.
440 * modules/unistdio/ulc-fprintf: New file.
441 * modules/unistdio/ulc-printf-parse: New file.
442 * modules/unistdio/ulc-snprintf: New file.
443 * modules/unistdio/ulc-sprintf: New file.
444 * modules/unistdio/ulc-vasnprintf: New file.
445 * modules/unistdio/ulc-vasprintf: New file.
446 * modules/unistdio/ulc-vfprintf: New file.
447 * modules/unistdio/ulc-vsnprintf: New file.
448 * modules/unistdio/ulc-vsprintf: New file.
449 * modules/unistdio/u8-asnprintf: New file.
450 * modules/unistdio/u8-asprintf: New file.
451 * modules/unistdio/u8-printf-parse: New file.
452 * modules/unistdio/u8-snprintf: New file.
453 * modules/unistdio/u8-sprintf: New file.
454 * modules/unistdio/u8-vasnprintf: New file.
455 * modules/unistdio/u8-vasprintf: New file.
456 * modules/unistdio/u8-vsnprintf: New file.
457 * modules/unistdio/u8-vsprintf: New file.
458 * modules/unistdio/u8-u8-asnprintf: New file.
459 * modules/unistdio/u8-u8-asprintf: New file.
460 * modules/unistdio/u8-u8-snprintf: New file.
461 * modules/unistdio/u8-u8-sprintf: New file.
462 * modules/unistdio/u8-u8-vasnprintf: New file.
463 * modules/unistdio/u8-u8-vasprintf: New file.
464 * modules/unistdio/u8-u8-vsnprintf: New file.
465 * modules/unistdio/u8-u8-vsprintf: New file.
466 * modules/unistdio/u16-asnprintf: New file.
467 * modules/unistdio/u16-asprintf: New file.
468 * modules/unistdio/u16-printf-parse: New file.
469 * modules/unistdio/u16-snprintf: New file.
470 * modules/unistdio/u16-sprintf: New file.
471 * modules/unistdio/u16-vasnprintf: New file.
472 * modules/unistdio/u16-vasprintf: New file.
473 * modules/unistdio/u16-vsnprintf: New file.
474 * modules/unistdio/u16-vsprintf: New file.
475 * modules/unistdio/u16-u16-asnprintf: New file.
476 * modules/unistdio/u16-u16-asprintf: New file.
477 * modules/unistdio/u16-u16-snprintf: New file.
478 * modules/unistdio/u16-u16-sprintf: New file.
479 * modules/unistdio/u16-u16-vasnprintf: New file.
480 * modules/unistdio/u16-u16-vasprintf: New file.
481 * modules/unistdio/u16-u16-vsnprintf: New file.
482 * modules/unistdio/u16-u16-vsprintf: New file.
483 * modules/unistdio/u32-asnprintf: New file.
484 * modules/unistdio/u32-asprintf: New file.
485 * modules/unistdio/u32-printf-parse: New file.
486 * modules/unistdio/u32-snprintf: New file.
487 * modules/unistdio/u32-sprintf: New file.
488 * modules/unistdio/u32-vasnprintf: New file.
489 * modules/unistdio/u32-vasprintf: New file.
490 * modules/unistdio/u32-vsnprintf: New file.
491 * modules/unistdio/u32-vsprintf: New file.
492 * modules/unistdio/u32-u32-asnprintf: New file.
493 * modules/unistdio/u32-u32-asprintf: New file.
494 * modules/unistdio/u32-u32-snprintf: New file.
495 * modules/unistdio/u32-u32-sprintf: New file.
496 * modules/unistdio/u32-u32-vasnprintf: New file.
497 * modules/unistdio/u32-u32-vasprintf: New file.
498 * modules/unistdio/u32-u32-vsnprintf: New file.
499 * modules/unistdio/u32-u32-vsprintf: New file.
500 * modules/unistdio/ulc-asnprintf-tests: New file.
501 * modules/unistdio/ulc-vasnprintf-tests: New file.
502 * modules/unistdio/ulc-vasprintf-tests: New file.
503 * modules/unistdio/ulc-vsnprintf-tests: New file.
504 * modules/unistdio/ulc-vsprintf-tests: New file.
505 * modules/unistdio/u8-asnprintf-tests: New file.
506 * modules/unistdio/u8-vasnprintf-tests: New file.
507 * modules/unistdio/u8-vasprintf-tests: New file.
508 * modules/unistdio/u8-vsnprintf-tests: New file.
509 * modules/unistdio/u8-vsprintf-tests: New file.
510 * modules/unistdio/u16-asnprintf-tests: New file.
511 * modules/unistdio/u16-vasnprintf-tests: New file.
512 * modules/unistdio/u16-vasprintf-tests: New file.
513 * modules/unistdio/u16-vsnprintf-tests: New file.
514 * modules/unistdio/u16-vsprintf-tests: New file.
515 * modules/unistdio/u32-asnprintf-tests: New file.
516 * modules/unistdio/u32-vasnprintf-tests: New file.
517 * modules/unistdio/u32-vasprintf-tests: New file.
518 * modules/unistdio/u32-vsnprintf-tests: New file.
519 * modules/unistdio/u32-vsprintf-tests: New file.
520 * MODULES.html.sh (Unicode string functions): Add the new modules.
522 2007-07-01 Bruno Haible <bruno@clisp.org>
524 * lib/sprintf.c (sprintf): Limit the available length estimation,
525 to avoid address wraparound.
526 * lib/vsprintf.c (vsprintf): Likewise.
527 * modules/sprintf-posix (Dependencies): Add stdint.
528 * modules/vsprintf-posix (Dependencies): Likewise.
530 2007-07-01 Bruno Haible <bruno@clisp.org>
532 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
533 Windows PATH as well. Conservative double-quoting. Comments.
535 2007-07-01 Bruno Haible <bruno@clisp.org>
536 Eric Blake <ebb9@byu.net>
537 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
539 * gnulib-tool (self_abspathname): Fix algorithm to cope with
540 empty components in $PATH, denoting '.'.
542 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
544 * gnulib-tool: Fix indentation.
545 (func_create_megatestdir): Likewise.
546 Report by Bruno Haible.
548 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
551 * build-aux/gnupload: Fix shell portability issues with for loops.
552 Report by Karl Berry.
554 2007-06-29 Simon Josefsson <simon@josefsson.org>
556 * build-aux/maint.mk (POURL): Use translationproject.org.
558 2007-06-27 Simon Josefsson <simon@josefsson.org>
559 Bruno Haible <bruno@clisp.org>
561 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
562 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
563 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
564 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
565 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
567 2007-06-27 Bruno Haible <bruno@clisp.org>
569 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
570 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
572 2007-06-26 Karl Berry <karl@gnu.org>
574 * MODULES.html.sh: remove xreadlink-with-size.
576 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
578 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
579 method that I hope also handles the double-include problem noted
581 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
583 2007-06-23 Bruno Haible <bruno@clisp.org>
585 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
586 Don't let the 'mostlyclean' target fail if the last subdirectory could
588 Reported by Karl Berry.
590 2007-06-23 Bruno Haible <bruno@clisp.org>
592 * gnulib-tool (echo): Add a speedier workaround for ksh.
593 * tests/test-echo.sh: Likewise.
595 2007-06-23 Bruno Haible <bruno@clisp.org>
597 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
598 * tests/test-echo.sh: Likewise.
600 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
602 * gnulib-tool (IFS): Initialize early, so we don't set it to
604 (self_abspathname): Rewrite algorithm to set it, reindent.
605 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
606 (func_create_megatestdir): Merge some sed scripts.
608 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
610 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
611 exposed by Sun Studio 11 cc on Solaris 8.
613 2007-06-22 Bruno Haible <bruno@clisp.org>
615 * gnulib-tool (echo): Ensure the echo primitive does not interpret
617 * tests/test-echo.sh: New file.
619 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
621 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
622 simplify `sed_replace_build_aux' scripts, they are portable but
623 echoing them with `echo' is not.
624 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
626 2007-06-21 Karl Berry <karl@gnu.org>
628 * config/srclist.txt: guess we can't handle the licenses via
629 srclist at the moment.
631 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
633 * MODULES.html.sh: Add include_next.
634 * modules/include_next: New file.
636 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
638 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
640 (gl_CHECK_NEXT_HEADERS): New macro.
641 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
642 the obsolescent gl_ABSOLUTE_HEADER.
643 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
644 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
645 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
646 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
647 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
648 * m4/math_h.m4 (gl_MATH_H): Likewise.
649 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
650 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
651 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
652 * m4/stdint.m4 (gl_STDINT_H): Likewise.
653 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
654 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
655 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
656 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
657 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
658 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
659 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
660 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
661 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
662 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
663 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
664 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
665 * m4/inttypes.m4 (gl_INTTYPES_H): Define
666 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
667 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
668 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
669 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
670 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
671 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
672 * lib/float_.h: Likewise.
673 * lib/inttypes_.h: Likewise.
674 * lib/math_.h: Likewise.
675 * lib/search_.h: Likewise.
676 * lib/signal_.h: Likewise.
677 * lib/stdint_.h: Likewise.
678 * lib/stdio_.h: Likewise.
679 * lib/stdlib_.h: Likewise.
680 * lib/string_.h: Likewise.
681 * lib/sys_stat_.h: Likewise.
682 * lib/sys_time_.h: Likewise.
683 * lib/time_.h: Likewise.
684 * lib/unistd_.h: Likewise.
685 * lib/wchar_.h: Likewise.
686 * lib/wctype_.h: Likewise.
687 * lib/dirent_.h: Likewise.
688 * lib/iconv_.h: Likewise.
689 * lib/locale_.h: Likewise.
690 * lib/netinet_in_.h: Likewise.
691 * lib/sys_select_.h: Likewise.
692 * lib/sys_socket_.h: Likewise.
693 * lib/sysexits_.h: Likewise.
694 * modules/fcntl (Depends-on): Depend on include_next, not
696 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
697 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
698 * modules/fchdir: Likewise.
699 * modules/float: Likewise.
700 * modules/iconv_open: Likewise.
701 * modules/inttypes: Likewise.
702 * modules/locale: Likewise.
703 * modules/math: Likewise.
704 * modules/netinet_in: Likewise.
705 * modules/search: Likewise.
706 * modules/signal: Likewise.
707 * modules/stdint: Likewise.
708 * modules/stdio: Likewise.
709 * modules/stdlib: Likewise.
710 * modules/string: Likewise.
711 * modules/sys_select: Likewise.
712 * modules/sys_socket: Likewise.
713 * modules/sys_stat: Likewise.
714 * modules/sys_time: Likewise.
715 * modules/sysexits: Likewise.
716 * modules/time: Likewise.
717 * modules/unistd: Likewise.
718 * modules/wchar: Likewise.
719 * modules/wctype: Likewise.
720 * modules/sys_stat: Change maintainer to "all".
721 * modules/unistd: Likewise.
723 2007-06-20 Karl Berry <karl@gnu.org>
725 * config/srclist.txt: track www changes in license files.
727 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
729 * build-aux/bootstrap: Remove stray dot.
730 Make sure build_aux settings are honored when linking
733 2007-06-19 Eric Blake <ebb9@byu.net>
735 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
736 Allow compilation on cygwin.
738 2007-06-19 Jim Meyering <jim@meyering.net>
740 xreadlink-with-size: Remove module. No longer used.
741 Ex-callers now use xreadlink or mreadlink-with-size.
742 * modules/xreadlink-with-size: Remove module.
743 * lib/xreadlink-with-size.c: Remove file.
744 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
745 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
746 just before the function definition *is* accurate.
748 Eliminate one way canonicalize_filename_mode could exit.
749 * lib/canonicalize.c (canonicalize_filename_mode):
750 Use mreadlink_with_size, not xreadlink_with_size.
752 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
754 Detect porting problems to FreeBSD/arm, which has time_t wider than
755 long int. Original problem reported for GNU diff by Xin Li in
756 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
757 * modules/getdate (Depends-on): Add intprops, verify.
758 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
759 is an integer type no wider than long int.
761 2007-06-18 Jim Meyering <jim@meyering.net>
763 New module: mreadlink-with-size.
764 * MODULES.html.sh: Add mreadlink-with-size.
765 * modules/mreadlink-with-size: New module
766 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
767 not xreadlink-with-size.
768 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
770 2007-06-16 Bruno Haible <bruno@clisp.org>
772 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
773 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
774 Reported by Gary V. Vaughan <gary@gnu.org>.
776 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
778 Revamp lchown so that it lives in unistd.h where it belongs.
779 * lib/lchown.h: Remove.
780 * lib/dirchownmod.c: Don't include lib/lchown.h.
781 * lib/fchownat.c: Likewise.
782 * lib/openat.c: Likewise.
783 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
784 does not follow symlinks.
785 (EOPNOTSUPP): Define if not defined.
786 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
789 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
790 Do not check for lchown decl.
792 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
794 * modules/chown: Make it clear it follows symlinks.
795 * modules/lchown: Make it clear it doesn't follow symlinks.
796 (Files): Remove lib/lchown.h
797 (Depends-on): Add unistd.
798 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
799 (Include): Include <unistd.h>, not "lchown.h".
800 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
803 2007-06-15 Jim Meyering <jim@meyering.net>
805 Change license (GPL to LGPL) of fsusage and dependents.
806 * modules/fsusage (License): Change to LGPL.
807 * modules/full-read (License): Likewise.
808 * modules/full-write (License): Likewise.
809 * modules/safe-read (License): Likewise.
810 * modules/safe-write (License): Likewise.
812 2007-06-14 Ben Pfaff <blp@gnu.org>
814 Missing part of allocsa -> malloca transition.
815 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
818 2007-06-12 Bruno Haible <bruno@clisp.org>
820 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
821 to ia64, x86_64, i386.
822 Reported by Eric Blake.
824 2007-06-12 Bruno Haible <bruno@clisp.org>
826 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
827 cross-compiling to x86_64.
829 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
831 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
832 glitch reported by Ralf Wildenhues in
833 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
835 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
838 2007-06-11 Bruno Haible <bruno@clisp.org>
840 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
842 Reported by Eric Blake.
844 2007-06-10 Bruno Haible <bruno@clisp.org>
846 Prepare vasnprintf code for use with Unicode strings.
847 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
848 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
850 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
851 a_u32_string variants.
852 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
853 * lib/printf-args.c: Don't include config.h and the specification
854 header if PRINTF_FETCHARGS is already defined.
855 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
856 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
857 TYPE_U16_STRING, TYPE_U32_STRING.
858 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
859 u16_directive, u16_directives, u32_directive, u32_directives): New
861 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
863 * lib/printf-parse.c: Don't include config.h and the specification
864 header if PRINTF_PARSE is already defined. Eliminate the set of
865 parameters for WIDE_CHAR_VERSION; the user of this file must provide
866 them now. Include c-ctype.h.
867 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
868 directive and CHAR_T_ONLY_ASCII.
869 * lib/vasnprintf.c: Don't include config.h and the specification header
870 if VASNPRINTF is already defined.
871 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
872 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
873 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
874 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
875 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
876 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
878 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
879 pad_ourselves also in this case, with the 'c' and 's' directives, and
880 with a different notion of "width".
881 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
883 2007-06-10 Bruno Haible <bruno@clisp.org>
885 * modules/unistr/u32-mbsnlen: New file.
886 * lib/unistr/u32-mbsnlen.c: New file.
888 * modules/unistr/u16-mbsnlen: New file.
889 * lib/unistr/u16-mbsnlen.c: New file.
891 * modules/unistr/u8-mbsnlen: New file.
892 * lib/unistr/u8-mbsnlen.c: New file.
894 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
897 2007-06-10 Bruno Haible <bruno@clisp.org>
899 * lib/string_.h (mbsnlen): New declaration.
900 * lib/mbsnlen.c: New file.
901 * m4/mbsnlen.m4: New file.
902 * modules/mbsnlen: New file.
903 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
904 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
905 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
907 2007-06-10 Bruno Haible <bruno@clisp.org>
909 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
911 2007-06-10 Bruno Haible <bruno@clisp.org>
913 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
914 * lib/mbuiter.h: Likewise.
916 2007-06-10 Bruno Haible <bruno@clisp.org>
918 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
921 2007-06-10 Karl Berry <karl@gnu.org>
923 * config/srclist.txt: remove gettext entries, Bruno prefers
924 to update individually.
926 2007-06-10 Bruno Haible <bruno@clisp.org>
928 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
929 'maxlen'. Ensure only length + width bytes are allocated, not
932 2007-06-09 Bruno Haible <bruno@clisp.org>
934 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
935 (CHAR_T): Remove macro.
936 (VASNPRINTF): Update.
938 2007-06-09 Bruno Haible <bruno@clisp.org>
940 * MODULES.html.sh (Unicode string functions): Add the new modules.
942 * modules/uniconv/u32-conv-to-enc: New file.
943 * lib/uniconv/u32-conv-to-enc.c: New file.
944 * modules/uniconv/u32-conv-to-enc-tests: New file.
945 * tests/uniconv/test-u32-conv-to-enc.c: New file.
947 * modules/uniconv/u16-conv-to-enc: New file.
948 * lib/uniconv/u16-conv-to-enc.c: New file.
949 * lib/uniconv/u-conv-to-enc.h: New file.
950 * modules/uniconv/u16-conv-to-enc-tests: New file.
951 * tests/uniconv/test-u16-conv-to-enc.c: New file.
953 * modules/uniconv/u8-conv-to-enc: New file.
954 * lib/uniconv/u8-conv-to-enc.c: New file.
955 * modules/uniconv/u8-conv-to-enc-tests: New file.
956 * tests/uniconv/test-u8-conv-to-enc.c: New file.
958 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
959 u32_conv_to_encoding): New declarations.
961 2007-06-09 Bruno Haible <bruno@clisp.org>
963 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
965 2007-06-09 Bruno Haible <bruno@clisp.org>
967 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
968 * modules/malloca: Renamed from modules/allocsa, updated.
969 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
970 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
971 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
972 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
973 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
974 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
975 * modules/xmalloca: Renamed from modules/xallocsa, updated.
976 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
977 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
978 * modules/c-strcasestr (Depends-on): Update.
979 * lib/c-strcasestr.c: Update.
980 * modules/c-strstr (Depends-on): Update.
981 * lib/c-strstr.c: Update.
982 * modules/canonicalize-lgpl (Depends-on): Update.
983 * lib/canonicalize-lgpl.c: Update.
984 * modules/clean-temp (Depends-on): Update.
985 * lib/clean-temp.c: Update.
986 * modules/csharpcomp (Depends-on): Update.
987 * lib/csharpcomp.c: Update.
988 * modules/csharpexec (Depends-on): Update.
989 * lib/csharpexec.c: Update.
990 * modules/javacomp (Depends-on): Update.
991 * lib/javacomp.c: Update.
992 * modules/javaexec (Depends-on): Update.
993 * lib/javaexec.c: Update.
994 * modules/mbscasestr (Depends-on): Update.
995 * lib/mbscasestr.c: Update.
996 * modules/mbsstr (Depends-on): Update.
997 * lib/mbsstr.c: Update.
998 * modules/setenv (Depends-on): Update.
999 * lib/setenv.c: Update.
1000 * modules/strcasestr (Depends-on): Update.
1001 * lib/strcasestr.c: Update.
1002 * modules/striconveha (Depends-on): Update.
1003 * lib/striconveha.c: Update.
1004 * modules/relocatable-prog-wrapper (Files): Update.
1005 * lib/relocwrapper.c: Update.
1006 * build-aux/install-reloc: Update.
1007 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
1009 2007-06-08 Bruno Haible <bruno@clisp.org>
1012 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
1013 * lib/fpurge.c (fpurge): Likewise.
1014 * lib/freading.c (freading): Likewise.
1015 * lib/fseeko.c (rpl_fseeko): Likewise.
1016 * lib/fseterr.c (fseterr): Likewise.
1017 * lib/fwriting.c (fwriting): Likewise.
1018 * tests/test-fflush.c (main): Avoid a failure on uClibc.
1020 2007-06-08 Bruno Haible <bruno@clisp.org>
1022 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
1023 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
1024 * modules/gettext (Files): Add m4/intlmacosx.m4.
1026 2007-06-07 Bruno Haible <bruno@clisp.org>
1028 * modules/localename-tests: New file.
1029 * tests/test-localename.c: New file.
1031 New module 'localename'.
1032 * lib/localename.h: New file.
1033 * lib/localename.c: New file, from GNU gettext.
1034 * m4/localename.m4: New file.
1035 * modules/localename: New file.
1037 2007-06-07 Bruno Haible <bruno@clisp.org>
1039 Work around the lack of <wchar.h> on some builds of uClibc.
1040 * doc/headers/wchar.texi: Update.
1041 * lib/wchar_.h: Include <wchar.h> only if it exists.
1042 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
1043 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
1044 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
1046 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
1047 * modules/mbfile (Depends-on): Add wchar.
1048 * modules/mbiter (Depends-on): Likewise.
1049 * modules/mbuiter (Depends-on): Likewise.
1050 Reported by Simon Josefsson.
1052 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
1054 Work around problem reported by Steven M. Schweda in
1055 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
1056 Tru64 5.1B with the Compaq compiler environment installed declares
1057 an 'isblank' function but does not define it in the C library.
1058 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
1059 * lib/regex_internal.h (isblank): Likewise.
1060 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
1061 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1063 2007-06-05 Bruno Haible <bruno@clisp.org>
1065 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
1067 * modules/printf-safe: New file.
1068 * modules/fprintf-posix (Depends-on): Add printf-safe.
1069 * modules/printf-posix (Depends-on): Likewise.
1070 * modules/snprintf-posix (Depends-on): Likewise.
1071 * modules/sprintf-posix (Depends-on): Likewise.
1072 * modules/vasnprintf-posix (Depends-on): Likewise.
1073 * modules/vasprintf-posix (Depends-on): Likewise.
1074 * modules/vfprintf-posix (Depends-on): Likewise.
1075 * modules/vprintf-posix (Depends-on): Likewise.
1076 * modules/vsnprintf-posix (Depends-on): Likewise.
1077 * modules/vsprintf-posix (Depends-on): Likewise.
1078 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1079 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
1080 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
1081 "no" on i386, x86_64, ia64.
1082 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
1083 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1084 on i386, x86_64, ia64.
1085 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
1086 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1087 on i386, x86_64, ia64.
1088 * tests/test-vasnprintf-posix.c: Include float.h.
1089 (LDBL80_WORDS): New macro.
1090 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1091 on i386, x86_64, ia64.
1092 * tests/test-vasprintf-posix.c: Include float.h.
1093 (LDBL80_WORDS): New macro.
1094 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
1095 on i386, x86_64, ia64.
1096 * tests/test-snprintf-posix.c: Include float.h.
1097 * tests/test-sprintf-posix.c: Likewise.
1098 * tests/test-vsnprintf-posix.c: Likewise.
1099 * tests/test-vsprintf-posix.c: Likewise.
1101 2007-06-05 Bruno Haible <bruno@clisp.org>
1103 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
1104 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
1105 non-IEEE numbers on i386, x86_64, ia64.
1106 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
1107 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
1108 * tests/test-isnanl.h: Include float.h.
1109 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
1111 2007-06-05 Bruno Haible <bruno@clisp.org>
1113 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
1114 also the %a / %A. Handle the %a / %A code before this extra handling.
1116 2007-06-05 Bruno Haible <bruno@clisp.org>
1118 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
1119 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
1121 2007-06-05 Bruno Haible <bruno@clisp.org>
1123 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
1124 typo in variable name.
1126 2007-06-05 Eric Blake <ebb9@byu.net>
1128 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
1129 Reported by Simon Josefsson.
1131 2007-06-04 Bruno Haible <bruno@clisp.org>
1133 Avoid test failures on some PowerPC platforms.
1134 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
1135 Define differently for PowerPC.
1136 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
1137 Reported by Gary V. Vaughan <gary@gnu.org>.
1139 2007-06-02 Bruno Haible <bruno@clisp.org>
1141 Fix test-stdint failure on FreeBSD/ia64.
1142 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
1143 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
1144 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
1145 * doc/headers/stdint.texi: Update.
1147 2007-06-01 Bruno Haible <bruno@clisp.org>
1149 * tests/test-binary-io.c (main): Pass a third argument to open().
1150 Reported by Gary V. Vaughan <gary@gnu.org>.
1152 2007-06-01 Bruno Haible <bruno@clisp.org>
1154 * doc/functions/frexpl.texi: Update for mingw.
1156 2007-06-01 Bruno Haible <bruno@clisp.org>
1158 * tests/test-lseek.c (main): Disable test of errno for invalid third
1160 * doc/functions/lseek.texi: Update.
1161 Reported by Gary V. Vaughan <gary@gnu.org>.
1163 2007-05-28 Bruno Haible <bruno@clisp.org>
1165 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
1167 2007-05-31 Eric Blake <ebb9@byu.net>
1169 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
1172 2007-05-30 Eric Blake <ebb9@byu.net>
1173 and Bruno Haible <bruno@clisp.org>
1175 Work around mingw test failures exposed by m4-1.4.9b.
1176 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
1177 * tests/test-unistd.c: Disable uid_t and git_t tests for the
1180 2007-05-30 Bruno Haible <bruno@clisp.org>
1182 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
1183 assuming that they are closed. Needed on HP-UX 11.
1185 2007-05-29 Bruno Haible <bruno@clisp.org>
1187 Fix a problem with #include_next.
1188 * lib/dirent_.h: Split the double-inclusion guard.
1189 * lib/fcntl_.h: Likewise.
1190 * lib/float_.h: Likewise.
1191 * lib/iconv_.h: Likewise.
1192 * lib/inttypes_.h: Likewise.
1193 * lib/locale_.h: Likewise.
1194 * lib/math_.h: Likewise.
1195 * lib/netinet_in_.h: Likewise.
1196 * lib/search_.h: Likewise.
1197 * lib/signal_.h: Likewise.
1198 * lib/stdint_.h: Likewise.
1199 * lib/stdio_.h: Likewise.
1200 * lib/stdlib_.h: Likewise.
1201 * lib/string_.h: Likewise.
1202 * lib/sys_select_.h: Likewise.
1203 * lib/sys_socket_.h: Likewise.
1204 * lib/sys_stat_.h: Likewise.
1205 * lib/sys_time_.h: Likewise.
1206 * lib/sysexits_.h: Likewise.
1207 * lib/time_.h: Likewise.
1208 * lib/unistd_.h: Likewise.
1209 * lib/wchar_.h: Likewise.
1210 * lib/wctype_.h: Likewise.
1212 2007-05-29 Bruno Haible <bruno@clisp.org>
1214 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
1217 2007-05-29 Bruno Haible <bruno@clisp.org>
1219 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
1221 Reported by Eric Blake.
1223 2007-05-29 Bruno Haible <bruno@clisp.org>
1225 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
1228 2007-05-29 Eric Blake <ebb9@byu.net>
1229 Bruno Haible <bruno@clisp.org>
1231 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
1234 2007-05-28 Eric Blake <ebb9@byu.net>
1236 * modules/closein-tests (test_closein_LDADD): Support test on
1237 cygwin with libtool.
1239 2007-05-28 Bruno Haible <bruno@clisp.org>
1241 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
1242 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1243 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1244 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1245 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1246 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1247 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1248 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1249 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1251 2007-05-28 Eric Blake <ebb9@byu.net>
1253 Unconditionally include <config.h> in unit tests.
1254 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
1255 * tests/test-allocsa.c, tests/test-arcfour.c,
1256 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
1257 tests/test-array_list.c, tests/test-array_oset.c,
1258 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
1259 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
1260 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
1261 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
1262 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
1263 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
1264 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
1265 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
1266 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
1267 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
1268 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
1269 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
1270 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
1271 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
1272 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
1273 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
1274 test-md5.c, test-memmem.c, test-printf-posix.c,
1275 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
1276 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
1277 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
1278 test-strcasestr.c, test-striconv.c, test-striconveh.c,
1279 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
1280 test-vasnprintf-posix2.c, test-vasnprintf.c,
1281 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
1282 test-vfprintf-posix.c, test-vprintf-posix.c,
1283 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
1284 test-xvasprintf.c: Likewise.
1286 2007-05-28 Bruno Haible <bruno@clisp.org>
1288 * gnulib-tool (func_import): Remember the --with-tests command-line
1289 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
1290 Reported by Eric Blake.
1292 2007-05-28 Bruno Haible <bruno@clisp.org>
1294 * modules/ftell-tests: New file.
1295 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
1296 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
1298 * lib/ftell.c: New file.
1299 * modules/ftell: New file.
1300 * m4/ftell.m4: New file.
1301 * doc/functions/ftell.texi: Update.
1302 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
1304 * lib/stdio_.h (rpl_ftell): New declaration.
1305 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
1308 2007-05-28 Eric Blake <ebb9@byu.net>
1310 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
1312 2007-05-28 Bruno Haible <bruno@clisp.org>
1314 * modules/fseek-tests: New file.
1315 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
1316 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
1318 * lib/fseek.c: New file.
1319 * modules/fseek: New file.
1320 * m4/fseek.m4: New file.
1321 * doc/functions/fseek.texi: Update.
1322 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
1324 * lib/stdio_.h (rpl_fseek): New declaration.
1325 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
1328 2007-05-28 Bruno Haible <bruno@clisp.org>
1330 * lib/stdio_.h (fflush): More comments.
1332 2007-05-28 Bruno Haible <bruno@clisp.org>
1334 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
1337 2007-05-28 Eric Blake <ebb9@byu.net>
1339 Improve lseek module.
1340 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
1341 * lib/unistd_.h (lseek): Scale back link warning message.
1342 * tests/test-lseek.c: Beef up test.
1343 * tests/test-lseek.sh: Exercise more facets of lseek.
1344 Reported by Bruno Haible.
1346 2007-05-28 Bruno Haible <bruno@clisp.org>
1348 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
1351 2007-05-27 Bruno Haible <bruno@clisp.org>
1353 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
1355 2007-05-27 Bruno Haible <bruno@clisp.org>
1357 * modules/openmp: New file.
1358 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
1361 2007-05-26 Bruno Haible <bruno@clisp.org>
1363 * modules/chdir-long (Depends-on): Add fchdir.
1364 * modules/chdir-safer (Depends-on): Likewise.
1365 * modules/fts (Depends-on): Likewise.
1366 * modules/fts-lgpl (Depends-on): Likewise.
1367 * modules/openat (Depends-on): Likewise.
1368 * modules/savewd (Depends-on): Likewise.
1370 2007-05-24 Eric Blake <ebb9@byu.net>
1373 * modules/lseek: New module.
1374 * m4/lseek.m4: New file.
1375 * lib/lseek.c: New file.
1376 * modules/lseek-tests: New file.
1377 * tests/test-lseek.c: New file.
1378 * tests/test-lseek.sh: New file.
1379 * MODULES.html.sh: Document lseek module.
1380 * modules/fflush (Depends-on): Add lseek, fseeko.
1381 * modules/fseeko (Depends-on): Likewise.
1382 * modules/ftello (Depends-on): Likewise.
1383 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
1385 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
1387 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
1388 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
1389 * lib/ftello.c (rpl_ftello): Likewise.
1390 * tests/test-fseeko.c (main): Test this.
1391 * tests/test-fseeko.sh: Likewise.
1392 * tests/test-ftello.c (main): Likewise.
1393 * tests/test-ftello.sh: Likewise.
1394 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
1395 implies replacing fseek.
1396 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
1398 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
1399 * modules/unistd (Makefile.am): Likewise.
1400 * lib/unistd_.h (lseek): Declare a replacement.
1401 * doc/functions/lseek.texi (lseek): Document this fix.
1402 * doc/functions/fseek.texi (fseek): Likewise.
1403 * doc/functions/ftell.texi (ftell): Likewise.
1405 2007-05-24 Bruno Haible <bruno@clisp.org>
1407 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
1408 in the printed representation of a NaN.
1409 * tests/test-vasprintf-posix.c (test_function): Likewise.
1410 * tests/test-snprintf-posix.h (test_function): Likewise.
1411 * tests/test-sprintf-posix.h (test_function): Likewise.
1412 Reported by Eric Blake.
1414 2007-05-23 Eric Blake <ebb9@byu.net>
1416 Fix fseeko/ftello on cygwin 1.5.24.
1417 * doc/functions/fseeko.texi (fseeko): Document the fix.
1418 * doc/functions/ftello.texi (ftello): Document the fix.
1419 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
1420 * doc/functions/stdout.text (stdout): New file.
1421 * doc/functions/stderr.text (stderr): New file.
1422 * doc/gnulib.texi (Function Substitutes): Use new files.
1423 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
1425 * tests/test-ftello.c (main): Likewise for ftello.
1426 * tests/test-fseeko.sh: New file.
1427 * tests/test-ftello.sh: New file.
1428 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
1429 with seekable stdin.
1430 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
1431 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
1432 (gl_REPLACE_FSEEKO): New macro.
1433 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
1434 * modules/fseeko (Files): Distribute fseeko.c.
1435 * modules/ftello (Files): Distribute ftello.c.
1436 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
1438 * lib/ftello.c (rpl_ftello): New file.
1439 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
1441 (gl_STDIN_LARGE_OFFSET): New macro.
1442 * modules/stdio (Makefile.am): Perform the replacement.
1443 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
1445 2007-05-23 Bruno Haible <bruno@clisp.org>
1447 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
1448 GNULIB_POSIXCHECK is defined.
1450 2007-05-21 Bruno Haible <bruno@clisp.org>
1452 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
1453 Check also the output for NaN arguments. When cross-compiling, guess
1455 * lib/vasnprintf.c: Update comments.
1456 * tests/test-vasnprintf-posix.c (strisnan): New function.
1457 (test_function): Use it.
1458 * tests/test-vasprintf-posix.c (strisnan): New function.
1459 (test_function): Use it.
1460 * tests/test-snprintf-posix.h (strisnan): New function.
1461 (test_function): Use it.
1462 * tests/test-sprintf-posix.h (strisnan): New function.
1463 (test_function): Use it.
1464 Reported by Eric Blake.
1466 2007-05-20 Bruno Haible <bruno@clisp.org>
1468 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
1469 numbers that fails on BeOS.
1470 * doc/functions/frexpl.texi: Update.
1472 2007-05-20 Jim Meyering <jim@meyering.net>
1474 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
1475 forced upon us by glibc-2.6.
1477 2007-05-20 Bruno Haible <bruno@clisp.org>
1479 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
1480 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
1481 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
1482 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
1483 NEED_PRINTF_INFINITE.
1484 (is_infinitel): New function.
1485 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
1486 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
1487 gl_PREREQ_VASNPRINTF_INFINITE.
1488 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
1489 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1490 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
1491 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
1492 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
1493 gl_PREREQ_VASNPRINTF_INFINITE.
1494 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1495 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1496 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1497 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1498 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1499 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1500 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1501 * doc/functions/fprintf.texi: Update.
1502 * doc/functions/printf.texi: Update.
1503 * doc/functions/snprintf.texi: Update.
1504 * doc/functions/sprintf.texi: Update.
1505 * doc/functions/vfprintf.texi: Update.
1506 * doc/functions/vprintf.texi: Update.
1507 * doc/functions/vsnprintf.texi: Update.
1508 * doc/functions/vsprintf.texi: Update.
1510 2007-05-20 Bruno Haible <bruno@clisp.org>
1512 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
1513 was not found in libc.
1514 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
1516 2007-05-20 Bruno Haible <bruno@clisp.org>
1518 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1519 printed as "-nan" instead of "nan".
1520 * tests/test-vasprintf-posix.c (test_function): Likewise.
1521 * tests/test-snprintf-posix.h (test_function): Likewise.
1522 * tests/test-sprintf-posix.h (test_function): Likewise.
1523 Needed for HP-UX 11.
1525 2007-05-20 Jim Meyering <jim@meyering.net>
1527 Fix buggy test for the fchownat-deref bug.
1528 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
1529 symlink required for the run-test. Without it, this test would
1530 always declare that fchownat doesn't work, and client code would
1531 unnecessarily use the replacement function with fixed libc.
1532 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
1533 Reported by Greg Schafer.
1535 2007-05-19 Bruno Haible <bruno@clisp.org>
1537 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
1538 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
1539 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
1540 Needed for IRIX 6.5 and Solaris 2.5.1.
1542 2007-05-19 Bruno Haible <bruno@clisp.org>
1544 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
1545 (test_function): Skip tests involving -0.0 on platforms where
1547 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
1548 (test_function): Skip tests involving -0.0 on platforms where
1550 * tests/test-snprintf-posix.h (have_minus_zero): New function.
1551 (test_function): Skip tests involving -0.0 on platforms where
1553 * tests/test-sprintf-posix.h (have_minus_zero): New function.
1554 (test_function): Skip tests involving -0.0 on platforms where
1556 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
1558 * tests/test-printf-posix.h (test_function): Likewise.
1559 * tests/test-printf-posix.output: Remove all -0.0 related results.
1560 Needed for IRIX 6.5.
1562 2007-05-19 Bruno Haible <bruno@clisp.org>
1564 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
1565 printed as "nan0x7fffffff" instead of "nan".
1566 * tests/test-vasprintf-posix.c (test_function): Likewise.
1567 * tests/test-snprintf-posix.h (test_function): Likewise.
1568 * tests/test-sprintf-posix.h (test_function): Likewise.
1569 * tests/test-fprintf-posix.h (NaN): Remove macro.
1570 (test_function): Remove all NaN related tests.
1571 * tests/test-printf-posix.h (NaN): Remove macro.
1572 (test_function): Remove all NaN related tests.
1573 * tests/test-printf-posix.output: Remove all NaN related results.
1574 Needed for IRIX 6.5.
1576 2007-05-19 Bruno Haible <bruno@clisp.org>
1578 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
1579 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1581 2007-05-19 Bruno Haible <bruno@clisp.org>
1583 * lib/float_.h: New file.
1584 * m4/float_h.m4: New file.
1585 * modules/float: New file.
1586 * modules/isnanl (Dependencies): Add float.
1587 * modules/isnanl-nolibm (Dependencies): Likewise.
1588 * modules/mathl (Dependencies): Likewise.
1589 * modules/printf-frexpl (Dependencies): Likewise.
1590 * modules/signbit (Dependencies): Likewise.
1591 * modules/vasnprintf (Dependencies): Likewise.
1592 * doc/headers/float.texi: Update.
1594 2007-05-19 Jim Meyering <jim@meyering.net>
1596 * lib/utimens.c (gl_futimens): Rename from futimens,
1597 now that glibc-2.6 declares futimens.
1598 * lib/utimens.h: Likewise.
1600 2007-05-19 Bruno Haible <bruno@clisp.org>
1602 Avoid test failures on mingw.
1603 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
1604 * tests/test-printf-posix.sh: Likewise.
1605 * tests/test-vfprintf-posix.sh: Likewise.
1606 * tests/test-vprintf-posix.sh: Likewise.
1608 2007-05-19 Bruno Haible <bruno@clisp.org>
1610 Fix *printf result for NaN, Inf, -0.0 on mingw.
1611 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
1612 * lib/vasnprintf.c: Include math.h and isnan.h.
1613 (is_infinite_or_zero): New function.
1614 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
1615 values in the %f, %F, %e, %E, %g, %G directives.
1616 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
1617 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1618 gl_PRINTF_INFINITE and test its result. Invoke
1619 gl_PREREQ_VASNPRINTF_INFINITE.
1620 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1621 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1622 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1623 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1624 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1625 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1626 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1627 * doc/functions/fprintf.texi: Update.
1628 * doc/functions/printf.texi: Update.
1629 * doc/functions/snprintf.texi: Update.
1630 * doc/functions/sprintf.texi: Update.
1631 * doc/functions/vfprintf.texi: Update.
1632 * doc/functions/vprintf.texi: Update.
1633 * doc/functions/vsnprintf.texi: Update.
1634 * doc/functions/vsprintf.texi: Update.
1636 2007-05-19 Bruno Haible <bruno@clisp.org>
1638 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
1639 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
1640 Instead of multiplying with 10^k, set extra_zeroes to k.
1641 (scale10_round_long_double): Remove function.
1643 2007-05-18 Bruno Haible <bruno@clisp.org>
1645 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
1646 introduced on 2007-05-06.
1648 2007-05-18 Bruno Haible <bruno@clisp.org>
1650 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
1652 * tests/test-vasprintf-posix.c (test_function): Likewise.
1653 * tests/test-snprintf-posix.h (test_function): Likewise.
1654 * tests/test-sprintf-posix.h (test_function): Likewise.
1656 2007-05-18 Bruno Haible <bruno@clisp.org>
1658 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
1659 (strmatch): New function.
1660 (test_function): Test the %f directive on numbers of various exponents.
1661 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
1662 (strmatch): New function.
1663 (test_function): Test the %f directive on numbers of various exponents.
1664 * tests/test-snprintf-posix.h (strmatch): New function.
1665 (test_function): Test the %f directive on numbers of various exponents.
1666 * tests/test-sprintf-posix.h (strmatch): New function.
1667 (test_function): Test the %f directive on numbers of various exponents.
1668 * tests/test-snprintf-posix.c (SIZEOF): New macro.
1669 * tests/test-sprintf-posix.c (SIZEOF): New macro.
1670 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
1671 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
1673 2007-05-18 Bruno Haible <bruno@clisp.org>
1675 Add support for 'long double' number output.
1676 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
1677 * lib/vasnprintf.c: Include math.h and float+.h.
1678 (mp_limb_t): New type.
1679 (GMP_LIMB_BITS): New macro.
1680 (mp_twolimb_t): New type.
1681 (GMP_TWOLIMB_BITS): New macro.
1683 (multiply, divide, convert_to_decimal, decode_long_double,
1684 scale10_round_long_double, scale10_round_decimal_long_double,
1685 floorlog10l): New functions.
1686 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
1687 for the %f, %F, %e, %E, %g, %G directives.
1688 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
1689 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1690 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
1691 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
1692 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1693 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1694 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1695 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1696 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1697 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1698 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1699 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
1700 * modules/snprintf-posix (Depends-on): Likewise.
1701 * modules/sprintf-posix (Depends-on): Likewise.
1702 * modules/vasnprintf-posix (Depends-on): Likewise.
1703 * modules/vasprintf-posix (Depends-on): Likewise.
1704 * modules/vfprintf-posix (Depends-on): Likewise.
1705 * modules/vsnprintf-posix (Depends-on): Likewise.
1706 * modules/vsprintf-posix (Depends-on): Likewise.
1707 * modules/vasnprintf (Files): Add lib/float+.h.
1708 * doc/functions/fprintf.texi: Update.
1709 * doc/functions/printf.texi: Update.
1710 * doc/functions/snprintf.texi: Update.
1711 * doc/functions/sprintf.texi: Update.
1712 * doc/functions/vfprintf.texi: Update.
1713 * doc/functions/vprintf.texi: Update.
1714 * doc/functions/vsnprintf.texi: Update.
1715 * doc/functions/vsprintf.texi: Update.
1717 2007-05-18 Bruno Haible <bruno@clisp.org>
1719 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
1721 2007-05-18 Bruno Haible <bruno@clisp.org>
1723 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
1724 for printing 64-bit integers. Needed for mingw.
1726 2007-05-18 Bruno Haible <bruno@clisp.org>
1728 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1729 gl_FUNC_FREXPL_WORKS.
1730 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
1732 2007-05-18 Bruno Haible <bruno@clisp.org>
1734 * modules/frexpl-nolibm-tests: New file.
1736 * modules/frexpl-nolibm: New file.
1737 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
1739 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
1741 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
1742 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
1743 GCC 4.2, which otherwise issues a lot of warnings.
1744 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
1745 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
1747 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
1748 * modules/iconv_open (iconv.h): Likewise.
1749 * modules/locale (locale.h): Likewise.
1750 * modules/netinet_in (netinet/in.h): Likewise.
1751 * modules/sys_select (sys_select.h): Likewise.
1752 * modules/sys_socket (sys/socket.h): Likewise.
1753 * modules/sys_stat (sys/stat.h): Likewise.
1754 * modules/sysexits (sysexits.h): Likewise.
1755 * modules/unistd (unistd.h): Likewise.
1757 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1759 * modules/closein-tests (Makefile.am): Distribute
1762 2007-05-17 Bruno Haible <bruno@clisp.org>
1764 * tests/test-printf-posix.output: Renamed from
1765 tests/test-fprintf-posix.out.
1766 * modules/fprintf-posix-tests: Update.
1767 * modules/printf-posix-tests: Update.
1768 * modules/vfprintf-posix-tests: Update.
1769 * modules/vprintf-posix-tests: Update.
1770 * tests/test-fprintf-posix.sh: Update.
1771 * tests/test-printf-posix.sh: Update.
1772 * tests/test-vfprintf-posix.sh: Update.
1773 * tests/test-vprintf-posix.sh: Update.
1774 Reported by Ralf Wildenhues.
1776 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
1778 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
1779 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
1780 GCC 4.2, which otherwise issues a lot of warnings.
1781 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
1782 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
1783 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
1784 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
1785 it should no longer be needed.
1786 * lib/string_.h: Likewise.
1787 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
1788 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
1789 * modules/inttypes (inttypes.h): Likewise.
1790 * modules/math (math.h): Likewise.
1791 * modules/search (search.h): Likewise.
1792 * modules/signal (signal.h): Likewise.
1793 * modules/stdint (stdint.h): Likewise.
1794 * modules/stdio (stdio.h): Likewise.
1795 * modules/stdlib (stdlib.h): Likewise.
1796 * modules/string (string.h): Likewise.
1797 * modules/sys_time (sys/time.h): Likewise.
1798 * modules/time (time.h): Likewise.
1799 * modules/wchar (wchar.h): Likewise.
1800 * modules/wctype (wtype.h): Likewise.
1802 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
1804 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
1806 2007-05-13 Bruno Haible <bruno@clisp.org>
1808 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
1809 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1810 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
1811 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1812 (gl_PREREQ_STRTOK_R): Don't require it here.
1814 2007-05-13 Bruno Haible <bruno@clisp.org>
1816 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
1817 when used in C++ mode.
1819 2007-05-12 Bruno Haible <bruno@clisp.org>
1821 * lib/linebuffer.h: Tweak doc.
1822 * lib/linebuffer.c: Likewise.
1824 2007-05-12 James Youngman <jay@gnu.org>
1826 * lib/linebuffer.c (readlinebuffer_delim): New function,
1827 like readlinebuffer, but use a caller-specified delimiter.
1828 (readlinebuffer): Just call readlinebuffer_delim with '\n'
1830 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
1832 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
1834 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
1835 * modules/openat (Files): Remove openat-die.c.
1836 (Depends-on): Add openat-die.
1837 * modules/openat-die: New module.
1839 2007-05-06 Bruno Haible <bruno@clisp.org>
1841 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
1842 Update with info about Cygwin.
1843 * doc/functions/fprintf.texi: Update.
1844 * doc/functions/printf.texi: Update.
1845 * doc/functions/snprintf.texi: Update.
1846 * doc/functions/sprintf.texi: Update.
1847 * doc/functions/vfprintf.texi: Update.
1848 * doc/functions/vprintf.texi: Update.
1849 * doc/functions/vsnprintf.texi: Update.
1850 * doc/functions/vsprintf.texi: Update.
1851 Reported by Eric Blake.
1853 2007-05-06 Bruno Haible <bruno@clisp.org>
1855 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
1856 padding ourselves for the floating-point directives.
1857 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
1858 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
1859 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1860 gl_PRINTF_FLAG_ZERO and test its result. Invoke
1861 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
1862 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1863 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1864 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1865 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1866 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1867 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1868 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1869 * tests/test-snprintf-posix.h (test_function): Also check the width
1870 and some flags in the %f directive.
1871 * tests/test-sprintf-posix.h (test_function): Likewise.
1872 * tests/test-vasnprintf-posix.c (test_function): Likewise.
1873 * tests/test-vasprintf-posix.c (test_function): Likewise.
1874 * doc/functions/fprintf.texi: Update.
1875 * doc/functions/printf.texi: Update.
1876 * doc/functions/snprintf.texi: Update.
1877 * doc/functions/sprintf.texi: Update.
1878 * doc/functions/vfprintf.texi: Update.
1879 * doc/functions/vprintf.texi: Update.
1880 * doc/functions/vsnprintf.texi: Update.
1881 * doc/functions/vsprintf.texi: Update.
1883 2007-05-06 Bruno Haible <bruno@clisp.org>
1885 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
1886 pass the ' flag character to sprintf or snprintf.
1887 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
1888 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
1889 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1890 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
1891 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
1892 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1893 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
1894 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1895 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1896 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1897 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1898 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1899 * tests/test-snprintf-posix.h (test_function): Also check the grouping
1901 * tests/test-sprintf-posix.h (test_function): Likewise.
1902 * tests/test-vasnprintf-posix.c (test_function): Likewise.
1903 * tests/test-vasprintf-posix.c (test_function): Likewise.
1904 * doc/functions/fprintf.texi: Update.
1905 * doc/functions/printf.texi: Update.
1906 * doc/functions/snprintf.texi: Update.
1907 * doc/functions/sprintf.texi: Update.
1908 * doc/functions/vfprintf.texi: Update.
1909 * doc/functions/vprintf.texi: Update.
1910 * doc/functions/vsnprintf.texi: Update.
1911 * doc/functions/vsprintf.texi: Update.
1913 2007-05-01 Bruno Haible <bruno@clisp.org>
1915 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
1917 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
1919 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
1920 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
1922 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
1924 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
1925 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
1926 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
1928 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
1930 * lib/argp-help.c (struct hol_entry): New member `ord'.
1931 (HOL_ENTRY_PTRCMP): Use ord for comparison
1932 (hol_sort): Initialize ord.
1934 2007-05-01 Bruno Haible <bruno@clisp.org>
1936 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
1937 Reported by Eric Blake.
1938 * doc/gnulib.texi (Function Substitutes): Update.
1940 2007-05-01 Bruno Haible <bruno@clisp.org>
1942 * doc/functions.texi: Remove file, now redundant through
1943 doc/functions/*.texi.
1945 2007-05-01 Bruno Haible <bruno@clisp.org>
1947 * modules/argp (Depends-on): Add sleep.
1949 2007-05-01 Bruno Haible <bruno@clisp.org>
1951 * modules/sleep-tests: New file.
1952 * tests/test-sleep.c: New file.
1954 * modules/sleep: New file.
1955 * lib/sleep.c: New file.
1956 * m4/sleep.m4: New file.
1957 * lib/unistd_.h (sleep): New declaration.
1958 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
1960 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
1961 * doc/functions/sleep.texi: Document the sleep module.
1963 2007-05-01 Bruno Haible <bruno@clisp.org>
1965 * lib/sigprocmask.h: Remove file.
1966 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
1967 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
1968 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
1969 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
1970 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
1971 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
1972 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
1973 HAVE_SIGSET_T as a shell variable.
1974 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
1975 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
1976 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
1977 (Depends-on): Add signal. Remove verify.
1978 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
1979 (Include): Mention <signal.h> instead of sigprocmask.h.
1980 * NEWS: Mention the change.
1981 * lib/fatal-signal.c: Don't include sigprocmask.h.
1983 2007-05-01 Bruno Haible <bruno@clisp.org>
1985 * modules/signal: New file.
1986 * lib/signal_.h: New file.
1987 * m4/signal_h.m4: New file.
1989 2007-05-01 Bruno Haible <bruno@clisp.org>
1991 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
1992 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
1993 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
1994 HAVE_WCTYPE_CTMP_BUG into wctype.h.
1996 2007-05-01 Bruno Haible <bruno@clisp.org>
1998 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
2000 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
2001 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
2002 * modules/sys_stat (Makefile.am): Substitute their values into
2005 2007-05-01 Bruno Haible <bruno@clisp.org>
2007 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
2008 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
2009 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
2011 2007-05-01 Bruno Haible <bruno@clisp.org>
2013 * doc/header/assert.texi: Undo last change: don't mention the gnulib
2014 'assert' module here.
2016 2007-05-01 Bruno Haible <bruno@clisp.org>
2018 * doc/functions/*.texi: New files.
2019 * doc/functions/google-ranking.txt: New file.
2020 * doc/gnulib.texi (Function Substitutes): New chapter.
2021 (ctime, inet_ntoa): Remove sections.
2022 * doc/ctime.texi: Remove file.
2023 * doc/inet_ntoa.texi: Remove file.
2024 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
2026 (%.info): New rule, specifying a --reference-limit.
2028 2007-05-01 Bruno Haible <bruno@clisp.org>
2030 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
2032 2007-05-01 Bruno Haible <bruno@clisp.org>
2034 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
2035 the portability of 'mkdir' to mingw systems.
2037 2007-05-01 Bruno Haible <bruno@clisp.org>
2039 * doc/headers/google-ranking.txt: New file.
2041 2007-04-30 Eric Blake <ebb9@byu.net>
2043 Prefer fseeko to fseek.
2044 * modules/getpass (Depends-on): Add fseeko.
2045 * lib/getpass.c (getpass): Use fseeko, not fseek.
2047 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
2049 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
2050 assumes the sorting is stable, while most qsort implementations
2051 are not. Use argument addresses to ensure they never compare as
2054 * tests/test-argp-2.sh (usage-indent test): Fix output
2055 (func_compare): Restore diff options
2056 * tests/test-argp.c: Restore #include "progname.h"
2058 2007-04-29 Bruno Haible <bruno@clisp.org>
2060 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
2061 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2062 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
2063 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2064 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
2065 (configure.ac): Define CHECK_SNPRINTF_POSIX.
2066 (TESTS, check_PROGRAMS): Add test-snprintf.
2067 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
2068 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
2069 (TESTS, check_PROGRAMS): Add test-vsnprintf.
2070 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
2071 assertions that fail on HP-UX, OSF/1, or IRIX.
2072 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
2074 2007-04-29 Bruno Haible <bruno@clisp.org>
2076 * MODULES.html.sh (posix_functions): Remove 'contents'.
2078 2007-04-29 Karl Berry <karl@gnu.org>
2080 * config/srclist.txt (gendocs_template_min): new entry.
2082 2007-04-29 Bruno Haible <bruno@clisp.org>
2084 Work around fpurge bug on BSD systems.
2085 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
2086 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
2087 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
2088 fpurge to rpl_fpurge if the system already has this function.
2089 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
2090 the case where the system already has this function. Correct invariants
2092 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
2095 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
2097 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
2098 proposed by Sven Verdoolaege.
2100 * tests/test-argp.c: Fix option ordering. Test deeply clustered
2102 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
2103 (usage and help tests): Update
2105 2007-04-29 Bruno Haible <bruno@clisp.org>
2107 * tests/test-fflush.c (main): Use a file of size 17, not 10.
2108 Print more information in case of failure. Disable a test on BeOS.
2110 2007-04-29 Bruno Haible <bruno@clisp.org>
2112 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
2113 This helps debugging on systems on which no gdb is available.
2115 2007-04-29 Bruno Haible <bruno@clisp.org>
2117 * lib/freading.h: Improve comments.
2118 * lib/fwriting.h: Likewise.
2119 * tests/test-freading.c (main): Don't check freading immediately after
2120 repositioning. Needed for glibc.
2122 2007-04-29 Bruno Haible <bruno@clisp.org>
2124 * lib/freading.c (freading): Trivial simplification.
2126 2007-04-28 Bruno Haible <bruno@clisp.org>
2128 * tests/test-fwriting.c (main): Also test the interaction between
2129 fflush and fwriting.
2130 * modules/fwriting-tests (Depends-on): Add fflush.
2132 * tests/test-freading.c (main): Also test the interaction between
2133 fflush and freading.
2134 * modules/freading-tests (Depends-on): Add fflush.
2136 2007-04-28 Bruno Haible <bruno@clisp.org>
2138 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
2140 Suggested by Eric Blake.
2142 2007-04-28 Jim Meyering <jim@meyering.net>
2144 Avoid false-negative in gl_STDINT_H's C99 conformance test.
2145 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
2146 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
2148 2007-04-27 Eric Blake <ebb9@byu.net>
2150 * doc/headers/assert.texi (assert.h): Document assert module use.
2152 2007-04-27 Bruno Haible <bruno@clisp.org>
2154 * doc/headers/*.texi: New files.
2155 * doc/gnulib.texi (Header File Substitutes): New chapter.
2156 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
2158 (standards.info ,standards.html, standards.dvi): Update dependencies.
2159 (mostlyclean, clean): New targets.
2161 2007-04-27 Bruno Haible <bruno@clisp.org>
2163 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
2164 * modules/sysexits (Files, Makefile.am): Update.
2166 * lib/sys_socket_.h: Renamed from lib/socket_.h.
2167 * modules/sys_socket (Files, Makefile.am): Update.
2169 * lib/sys_stat_.h: Renamed from lib/stat_.h.
2170 * modules/sys_stat (Files, Makefile.am): Update.
2172 2007-04-27 Eric Blake <ebb9@byu.net>
2174 * lib/freading.h: Improve comments.
2175 * lib/fwriting.h: Likewise.
2176 * lib/fflush.c: Likewise.
2178 Fix closein for mingw.
2179 * modules/closein-tests: Add tests for closein.
2180 * tests/test-closein.c: New file.
2181 * tests/test-closein.sh: Likewise.
2182 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
2183 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
2185 2007-04-27 Bruno Haible <bruno@clisp.org>
2187 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
2189 * lib/math_.h [__DECC]: Likewise.
2190 * lib/stdio_.h [__DECC]: Likewise.
2191 * lib/stdlib_.h [__DECC]: Likewise.
2192 * lib/string_.h [__DECC]: Likewise.
2193 * lib/time_.h [__DECC]: Likewise.
2194 * lib/wchar_.h [__DECC]: Likewise.
2195 * lib/wctype_.h [__DECC]: Likewise.
2197 2007-04-27 Bruno Haible <bruno@clisp.org>
2199 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
2201 2007-04-27 Bruno Haible <bruno@clisp.org>
2203 * lib/fflush.c: Add comments.
2204 * modules/fpurge-tests (Depends-on): Add fflush.
2205 * modules/freadable-tests (Depends-on): Likewise.
2206 * modules/fwritable-tests (Depends-on): Likewise.
2208 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
2210 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
2211 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
2212 Report by Bruno Haible <bruno@clisp.org>.
2214 2007-04-26 Eric Blake <ebb9@byu.net>
2216 Fix fflush on mingw.
2217 * modules/fflush (Depends-on): Add freading.
2218 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
2221 2007-04-26 Eric Blake <ebb9@byu.net>
2222 and Bruno Haible <bruno@clisp.org>
2224 Implement freading and fwriting.
2225 * lib/freading.c: New file.
2226 * lib/freading.h: Likewise.
2227 * m4/freading.m4: Likewise.
2228 * modules/freading: Likewise.
2229 * modules/freading-tests: Likewise.
2230 * tests/test-freading.c: Likewise.
2231 * lib/fwriting.c: New file.
2232 * lib/fwriting.h: Likewise.
2233 * m4/fwriting.m4: Likewise.
2234 * modules/fwriting: Likewise.
2235 * modules/fwriting-tests: Likewise.
2236 * tests/test-fwriting.c: Likewise.
2237 * MODULES.html.sh (File stream based Input/Output): Mention them.
2239 2007-04-26 Bruno Haible <bruno@clisp.org>
2241 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
2242 'long' when we assume it.
2243 Suggested by Eric Blake.
2245 2007-04-26 Bruno Haible <bruno@clisp.org>
2247 Ensure fseeko, ftello are declared on glibc systems.
2248 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
2249 * modules/fseeko (configure.ac-early): Likewise.
2250 * modules/ftello (configure.ac-early): Likewise.
2251 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
2252 AC_FUNC_FSEEKO for this.
2253 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
2254 (gl_CHECK_FSEEKO): Remove macro.
2256 2007-04-26 Bruno Haible <bruno@clisp.org>
2258 * tests/test-fflush.c (main): Also check the ftell result after
2259 fflush and fseek/fseeko.
2260 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
2261 file descriptor position cache in the stream.
2262 * lib/fseeko.c (rpl_fseeko): Likewise.
2264 2007-04-26 Bruno Haible <bruno@clisp.org>
2266 * modules/fflush-tests (Depends-on): Add fseeko.
2268 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
2269 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2271 * lib/argz_.h: ensure error_t definition is obtained in same
2272 mechanism system argz.h would have.
2273 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
2274 argz facilities are known bad. Err on the side of caution if
2277 2007-04-25 Eric Blake <ebb9@byu.net>
2279 * lib/fpurge.c (includes): Use stdlib.h for free.
2280 * tests/test-fflush.c (main): Also test fflush-fseeko.
2282 2007-04-25 Bruno Haible <bruno@clisp.org>
2284 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
2285 * lib/fseeko.c: New file.
2286 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
2287 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
2288 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
2290 (gl_FUNC_FSEEKO): Invoke it.
2291 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
2292 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
2293 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
2295 2007-04-25 Bruno Haible <bruno@clisp.org>
2297 * modules/fflush (Depends-on): Add ftello.
2299 2007-04-25 Bruno Haible <bruno@clisp.org>
2301 * modules/ftello-tests: New file.
2302 * tests/test-ftello.c: New file.
2304 * modules/ftello: New file.
2305 * m4/ftello.m4: New file.
2306 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
2308 * lib/stdio_.h (ftello): New declaration.
2309 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
2312 2007-04-25 Bruno Haible <bruno@clisp.org>
2314 * modules/fseeko-tests: New file.
2315 * tests/test-fseeko.c: New file.
2317 * modules/fseeko: New file.
2318 * m4/fseeko.m4: New file.
2319 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
2321 * lib/stdio_.h (fseeko): New declaration.
2322 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
2325 2007-04-25 Bruno Haible <bruno@clisp.org>
2327 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
2329 2007-04-25 Bruno Haible <bruno@clisp.org>
2331 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
2332 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
2333 * tests/test-unistd.c: Likewise.
2334 * tests/test-fcntl.c: Likewise.
2336 2007-04-23 Eric Blake <ebb9@byu.net>
2338 * lib/fflush.c: Fix missing include.
2339 Reported by Bruno Haible.
2341 2007-04-23 Bruno Haible <bruno@clisp.org>
2343 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
2344 Reported by Eric Blake.
2346 2007-04-23 Bruno Haible <bruno@clisp.org>
2348 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
2350 2007-04-23 Bruno Haible <bruno@clisp.org>
2352 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
2354 2007-04-23 Bruno Haible <bruno@clisp.org>
2356 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
2359 2007-04-16 Eric Blake <ebb9@byu.net>
2361 Make fflush rely on fpurge.
2362 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
2363 open coding all variants.
2364 * modules/fflush (Depends-on): Add fpurge and unistd.
2365 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
2366 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
2368 Fix --with-tests compilation on cygwin.
2369 * modules/argmatch-tests (Makefile.am): List gnulib library first
2371 * modules/argp-tests (Makefile.am): Likewise.
2372 * modules/array-list-tests (Makefile.am): Likewise.
2373 * modules/array-oset-tests (Makefile.am): Likewise.
2374 * modules/avltree-list-tests (Makefile.am): Likewise.
2375 * modules/avltree-oset-tests (Makefile.am): Likewise.
2376 * modules/avltreehash-list-tests (Makefile.am): Likewise.
2377 * modules/carray-list-tests (Makefile.am): Likewise.
2378 * modules/dirname-tests (Makefile.am): Likewise.
2379 * modules/frexp-tests (Makefile.am): Likewise.
2380 * modules/isnanl-tests (Makefile.am): Likewise.
2381 * modules/linked-list-tests (Makefile.am): Likewise.
2382 * modules/linkedhash-list-tests (Makefile.am): Likewise.
2383 * modules/lock-tests (Makefile.am): Likewise.
2384 * modules/rbtree-list-tests (Makefile.am): Likewise.
2385 * modules/rbtree-oset-tests (Makefile.am): Likewise.
2386 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
2387 * modules/tls-tests (Makefile.am): Likewise.
2388 * modules/tsearch-tests (Makefile.am): Likewise.
2389 * modules/xvasprintf-tests (Makefile.am): Likewise.
2391 Fix fpurge for cygwin.
2392 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
2394 * modules/fpurge-tests (Depends-on): Clean up trash.
2396 2007-04-16 Simon Josefsson <simon@josefsson.org>
2398 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
2400 * m4/autobuild.m4: Re-indent.
2402 2007-04-13 Bruno Haible <bruno@clisp.org>
2404 * modules/fpurge-tests: New file.
2405 * tests/test-fpurge.c: New file.
2407 * modules/fpurge: New file.
2408 * lib/fpurge.h: New file.
2409 * lib/fpurge.c: New file.
2410 * m4/fpurge.m4: New file.
2412 2007-04-13 Bruno Haible <bruno@clisp.org>
2414 * modules/fbufmode-tests: New file.
2415 * tests/test-fbufmode.c: New file.
2417 * modules/fbufmode: New file.
2418 * lib/fbufmode.h: New file.
2419 * lib/fbufmode.c: New file.
2420 * m4/fbufmode.m4: New file.
2422 2007-04-13 Bruno Haible <bruno@clisp.org>
2424 * modules/fwritable-tests: New file.
2425 * tests/test-fwritable.c: New file.
2427 * modules/fwritable: New file.
2428 * lib/fwritable.h: New file.
2429 * lib/fwritable.c: New file.
2430 * m4/fwritable.m4: New file.
2432 2007-04-13 Bruno Haible <bruno@clisp.org>
2434 * modules/freadable-tests: New file.
2435 * tests/test-freadable.c: New file.
2437 * modules/freadable: New file.
2438 * lib/freadable.h: New file.
2439 * lib/freadable.c: New file.
2440 * m4/freadable.m4: New file.
2442 2007-04-13 Bruno Haible <bruno@clisp.org>
2444 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
2447 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
2449 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
2450 gzip bootstrap.conf to avoid dragging in i18n machinery.
2451 (gnulib_tool_option): Use it.
2453 2007-04-13 Bruno Haible <bruno@clisp.org>
2455 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
2457 * tests/test-vasprintf-posix.c (test_function): Likewise.
2458 * tests/test-snprintf-posix.h (test_function): Likewise.
2459 * tests/test-sprintf-posix.h (test_function): Likewise.
2460 * tests/test-fprintf-posix.h (test_function): Likewise.
2461 * tests/test-printf-posix.h (test_function): Likewise.
2462 * tests/test-fprintf-posix.out: Likewise.
2464 2007-04-13 Bruno Haible <bruno@clisp.org>
2466 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
2467 * modules/tls-tests (configure.ac): Likewise.
2468 Reported by Arto C. Nirkko <anirkko@insel.ch>.
2470 2007-04-13 Bruno Haible <bruno@clisp.org>
2472 * lib/tls.c (glthread_tls_get): Fix return type.
2473 Patch by Arto C. Nirkko <anirkko@insel.ch>.
2475 2007-04-12 Eric Blake <ebb9@byu.net>
2477 * modules/gettime (Depends-on): Remove gettime.
2478 Reported by Dmitry V. Levin.
2480 2007-04-12 Bruno Haible <bruno@clisp.org>
2482 * modules/fflush (Include): Mention <stdio.h>.
2483 * modules/strtoimax (Include): Mention <inttypes.h>.
2484 * modules/strtoumax (Include): Likewise.
2486 2007-04-12 Eric Blake <ebb9@byu.net>
2488 * .cvsignore: New file.
2489 * .gitignore: Likewise.
2491 2007-04-12 Bruno Haible <bruno@clisp.org>
2493 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
2494 not before, since $(LDADD) often contains libgnu.a.
2495 * modules/striconv-tests (test_striconv_LDADD): Likewise.
2496 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
2497 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
2500 2007-04-12 Eric Blake <ebb9@byu.net>
2502 Work around glibc's failure to flush stdin on fclose.
2503 * lib/closein.c (close_stdin): Flush stdin before closing.
2505 Work around glibc's failure to reset seekable stdin on exit.
2506 * modules/closein: New module.
2507 * lib/closein.c: New file.
2508 * lib/closein.h: Likewise.
2509 * m4/closein.m4: Likewise.
2510 * MODULES.html.sh (File stream based Input/Output): Document it.
2512 2007-04-12 Simon Josefsson <simon@josefsson.org>
2514 * gnulib-tool: Rename generated 'autobuild' script to
2515 'do-autobuild' in --create-megatestdir output.
2517 * doc/gnulib.texi (Build robot for gnulib): Fix.
2519 2007-04-12 Simon Josefsson <simon@josefsson.org>
2521 * modules/sysexits (Depends-on): Add absolute-header.
2523 2007-04-12 Eric Blake <ebb9@byu.net>
2525 No need to preserve errno on success.
2526 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
2527 Reported by Bruno Haible.
2529 2007-04-12 Simon Josefsson <simon@josefsson.org>
2531 * MODULES.html.sh (Support for maintaining and releasing
2532 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
2534 2007-04-12 Simon Josefsson <simon@josefsson.org>
2536 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
2538 2007-04-12 Simon Josefsson <simon@josefsson.org>
2540 * modules/autobuild: New module.
2542 * m4/autobuild.m4: New file.
2544 2007-04-11 Bruno Haible <bruno@clisp.org>
2546 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
2547 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
2548 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
2549 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
2550 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2551 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2552 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2553 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2554 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2555 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2556 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
2557 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2558 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2559 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
2560 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2561 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2562 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
2563 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2564 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2565 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
2566 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2567 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2568 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
2569 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2570 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2571 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
2572 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
2573 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
2574 Reported by Eric Blake.
2576 2007-04-11 Bruno Haible <bruno@clisp.org>
2578 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
2580 2007-04-10 Bruno Haible <bruno@clisp.org>
2582 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
2583 for NaN and Infinity. Needed on FreeBSD 6.1.
2584 * tests/test-vasnprintf-posix.c (test_function): Undo last change
2585 regarding results for "%010a" of Infinity and NaN.
2586 * tests/test-vasprintf-posix.c (test_function): Likewise.
2587 * tests/test-snprintf-posix.h (test_function): Likewise.
2588 * tests/test-sprintf-posix.h (test_function): Likewise.
2589 * tests/test-fprintf-posix.h (test_function): Likewise.
2590 * tests/test-printf-posix.h (test_function): Likewise.
2591 * tests/test-fprintf-posix.out: Likewise.
2593 2007-04-10 Bruno Haible <bruno@clisp.org>
2595 * modules/locale-tests: New file.
2596 * tests/test-locale.c: New file.
2598 * modules/locale: New file.
2599 * lib/locale_.h: New file.
2600 * m4/locale_h.m4: New file.
2602 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
2603 Bruno Haible <bruno@clisp.org>
2605 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
2606 be determined, test for availability of the copysignf, copysign,
2607 copysignl functions.
2608 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
2609 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
2610 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
2612 2007-04-09 Eric Blake <ebb9@byu.net>
2614 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
2615 * modules/stdio (Makefile.am): Support fflush.
2616 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2617 * modules/fflush: New file.
2618 * lib/fflush.c: Likewise.
2619 * m4/fflush.m4: Likewise.
2620 * modules/fflush-tests: New test.
2621 * tests/test-fflush.c: Likewise.
2622 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
2624 2007-04-06 Bruno Haible <bruno@clisp.org>
2626 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
2627 (VASNPRINTF): Use signbit for faster determination whether to print a
2629 * modules/vasnprintf (Files): Remove lib/float+.h.
2630 * modules/fprintf-posix (Depends-on): Add signbit.
2631 * modules/snprintf-posix (Depends-on): Likewise.
2632 * modules/sprintf-posix (Depends-on): Likewise.
2633 * modules/vasnprintf-posix (Depends-on): Likewise.
2634 * modules/vasprintf-posix (Depends-on): Likewise.
2635 * modules/vfprintf-posix (Depends-on): Likewise.
2636 * modules/vsnprintf-posix (Depends-on): Likewise.
2637 * modules/vsprintf-posix (Depends-on): Likewise.
2639 2007-04-06 Bruno Haible <bruno@clisp.org>
2641 * tests/test-frexp.c (main): Test also the sign bit of zero results.
2642 * tests/test-frexpl.c (main): Likewise.
2643 * tests/test-ldexpl.c (main): Likewise.
2644 * modules/frexp-tests (Depends-on): Add signbit.
2645 * modules/frexpl-tests (Depdends-on): Likewise.
2646 * modules/ldexpl-tests (Depdends-on): Likewise.
2648 2007-04-06 Bruno Haible <bruno@clisp.org>
2650 * modules/signbit-tests: New file.
2651 * tests/test-signbit.c: New file.
2653 * modules/signbit: New file.
2654 * lib/signbitf.c: New file.
2655 * lib/signbitd.c: New file.
2656 * lib/signbitl.c: New file.
2657 * m4/signbit.m4: New file.
2658 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
2659 (signbit): New macro.
2660 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
2662 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
2663 REPLACE_FREXPL into math.h.
2665 2007-04-06 Bruno Haible <bruno@clisp.org>
2667 * modules/isnanf-nolibm-tests: New file.
2668 * tests/test-isnanf.c: New file.
2670 * modules/isnanf-nolibm: New file.
2671 * lib/isnanf.h: New file.
2672 * lib/isnanf.c: New file.
2673 * lib/isnan.c: Consider the USE_FLOAT macro.
2674 * m4/isnanf.m4: New file.
2676 2007-04-06 Bruno Haible <bruno@clisp.org>
2678 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
2679 (Link): New section.
2681 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
2683 2007-04-06 Bruno Haible <bruno@clisp.org>
2685 Assume the 'long double' type.
2686 * m4/longdouble.m4: Remove file.
2687 * config/srclist.txt: Don't mention longdouble.m4.
2688 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
2689 * lib/float+.h: Likewise.
2690 * lib/frexp.c: Likewise.
2691 * lib/printf-args.h: Likewise.
2692 * lib/printf-args.c: Likewise.
2693 * lib/printf-frexp.c: Likewise.
2694 * lib/printf-parse.c: Likewise.
2695 * lib/vasnprintf.c: Likewise.
2696 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
2697 * m4/intl.m4: Likewise.
2698 * m4/isnanl.m4: Likewise.
2699 * m4/printf.m4: Likewise.
2700 * m4/printf-frexpl.m4: Likewise.
2701 * m4/vasnprintf.m4: Likewise.
2702 * modules/allocsa (Files): Remove m4/longdouble.m4.
2703 * modules/gettext (Files): Likewise.
2704 * modules/relocatable-prog-wrapper (Files): Likewise.
2705 * modules/vasnprintf (Files): Likewise.
2706 * modules/isnanl (Files): Likewise.
2707 (Include): Simplify.
2708 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
2709 (Include): Simplify.
2710 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
2711 (Include): Simplify.
2712 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
2713 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2714 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
2715 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2716 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2717 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2718 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
2719 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2720 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
2721 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2722 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
2723 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
2724 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
2725 * tests/test-isnanl.c: Likewise.
2726 * tests/test-snprintf-posix.h: Likewise.
2727 * tests/test-sprintf-posix.h: Likewise.
2728 * tests/test-vasnprintf-posix.c: Likewise.
2729 * tests/test-vasnprintf-posix2.c: Likewise.
2730 * tests/test-vasprintf-posix.c: Likewise.
2732 2007-04-06 Bruno Haible <bruno@clisp.org>
2734 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
2735 * lib/math_.h [__DECC]: Include the overridden include file through
2736 #include_next, outside the double-inclusion guard.
2737 * lib/stdio_.h [__DECC]: Likewise.
2738 * lib/stdlib_.h [__DECC]: Likewise.
2739 * lib/string_.h [__DECC]: Likewise.
2740 * lib/time_.h [__DECC]: Likewise.
2741 * lib/wchar_.h [__DECC]: Likewise.
2742 * lib/wctype_.h [__DECC]: Likewise.
2743 * lib/inttypes_.h [__DECC]: Likewise.
2744 Reported by Albert Chin <china@thewrittenword.com> in
2745 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
2747 2007-04-04 Eric Blake <ebb9@byu.net>
2749 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
2752 2007-04-04 Bruno Haible <bruno@clisp.org>
2754 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
2755 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
2757 2007-04-04 Bruno Haible <bruno@clisp.org>
2759 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
2760 results for "%010a" of Infinity and NaN.
2761 * tests/test-vasprintf-posix.c (test_function): Likewise.
2762 * tests/test-snprintf-posix.h (test_function): Likewise.
2763 * tests/test-sprintf-posix.h (test_function): Likewise.
2764 * tests/test-fprintf-posix.h (test_function): Remove these tests.
2765 * tests/test-printf-posix.h (test_function): Likewise.
2766 * tests/test-fprintf-posix.out: Update.
2767 Needed for FreeBSD 6.1.
2769 2007-04-04 Bruno Haible <bruno@clisp.org>
2771 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
2772 directly used by the gnulib modules nor by gnulib-tool.
2774 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
2776 * DEPENDENCIES: Give overall description of version dependency
2777 desirability. Use more-typical names for apps.
2778 Add shell, coreutils, diffutils, grep, tar, gzip.
2780 2007-04-04 Simon Josefsson <simon@josefsson.org>
2782 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
2784 2007-04-04 Karl Berry <karl@gnu.org>
2786 * MODULES.html.sh (func_module): missing '.
2788 2007-04-03 Bruno Haible <bruno@clisp.org>
2790 * modules/argmatch-tests (Makefile.am): New variable
2791 test_argmatch_LDADD.
2792 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
2793 * modules/array-list-tests (Makefile.am): New variable
2794 test_array_list_LDADD.
2795 * modules/array-oset-tests (Makefile.am): New variable
2796 test_array_oset_LDADD.
2797 * modules/avltree-list-tests (Makefile.am): New variable
2798 test_avltree_list_LDADD.
2799 * modules/avltree-oset-tests (Makefile.am): New variable
2800 test_avltree_oset_LDADD.
2801 * modules/avltreehash-list-tests (Makefile.am): New variable
2802 test_avltreehash_list_LDADD.
2803 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
2804 test_canonicalize_lgpl_LDADD.
2805 * modules/carray-list-tests (Makefile.am): New variable
2806 test_carray_list_LDADD.
2807 * modules/dirname-tests (Makefile.am): New variable
2809 * modules/linked-list-tests (Makefile.am): New variable
2810 test_linked_list_LDADD.
2811 * modules/linkedhash-list-tests (Makefile.am): New variable
2812 test_linkedhash_list_LDADD.
2813 * modules/rbtree-list-tests (Makefile.am): New variable
2814 test_rbtree_list_LDADD.
2815 * modules/rbtree-oset-tests (Makefile.am): New variable
2816 test_rbtree_oset_LDADD.
2817 * modules/rbtreehash-list-tests (Makefile.am): New variable
2818 test_rbtreehash_list_LDADD.
2819 * modules/xvasprintf-tests (Makefile.am): New variable
2820 test_xvasprintf_LDADD.
2821 Reported by Eric Blake.
2823 2007-04-03 Eric Blake <ebb9@byu.net>
2825 * DEPENDENCIES: Weaken m4 requirements.
2827 2007-04-03 Bruno Haible <bruno@clisp.org>
2829 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
2830 * modules/isnanl-tests (configure.ac): Likewise.
2832 2007-04-03 Ben Pfaff <blp@gnu.org>
2834 * modules/iconv_open: Add $(srcdir)/ to source directory
2835 references in Makefile fragments that call gperf, to fix VPATH
2838 2007-04-03 Bruno Haible <bruno@clisp.org>
2840 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
2841 * lib/ldexpl.c: Undo last change.
2843 2007-04-03 Bruno Haible <bruno@clisp.org>
2845 * modules/printf-frexpl (Depends-on): Undo last change.
2846 (Files): Add m4/ldexpl.m4.
2848 2007-04-03 Bruno Haible <bruno@clisp.org>
2850 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
2851 * modules/isnanl (Link): New section.
2853 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
2854 * modules/frexp (Link): New section.
2856 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
2857 * modules/frexpl (Link): New section.
2859 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
2860 * modules/ldexpl (Link): New section.
2862 2007-04-03 Bruno Haible <bruno@clisp.org>
2864 * modules/TEMPLATE-EXTENDED: New file.
2865 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
2867 2007-04-03 Bruno Haible <bruno@clisp.org>
2869 * DEPENDENCIES: New file.
2870 Suggested by Simon Josefsson.
2872 2007-04-03 Bruno Haible <bruno@clisp.org>
2874 * doc/gnulib.texi: Escape @.
2876 2007-04-03 James Youngman <jay@gnu.org>
2877 and Paul Eggert <eggert@cs.ucla.edu>
2879 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
2880 birthtime on all systems that have birthtime, not just those which
2881 use st_birthtimensec rather than st_birthtim. Putting zero in
2882 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
2883 that the birth time is not available for files on an NFS mount.
2885 2007-04-03 Simon Josefsson <simon@josefsson.org>
2887 * modules/memxor: Move back from crypto/, suggested by Bruno.
2888 * modules/crypto/hmac-sha1: Fix memxor dependency.
2890 * modules/crypto/gc: Moved from ../.
2892 2007-04-02 Eric Blake <ebb9@byu.net>
2894 * lib/ldexpl.c (includes): Avoid libm.
2896 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
2898 2007-04-02 Bruno Haible <bruno@clisp.org>
2900 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
2903 2007-04-02 Bruno Haible <bruno@clisp.org>
2905 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
2906 x86 or x86_64 platforms running MacOS X.
2907 Reported by Ryan Schmidt <@ryandesign.com>.
2909 2007-04-02 Bruno Haible <bruno@clisp.org>
2911 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
2914 2007-04-01 Simon Josefsson <simon@josefsson.org>
2916 * modules/crypto/arcfour: Moved from ../.
2917 * modules/crypto/arcfour-tests: Moved from ../.
2918 * modules/crypto/arctwo: Moved from ../.
2919 * modules/crypto/arctwo-tests: Moved from ../.
2920 * modules/crypto/des: Moved from ../.
2921 * modules/crypto/des-tests: Moved from ../.
2922 * modules/crypto/gc-arcfour: Moved from ../.
2923 * modules/crypto/gc-arcfour-tests: Moved from ../.
2924 * modules/crypto/gc-arctwo: Moved from ../.
2925 * modules/crypto/gc-arctwo-tests: Moved from ../.
2926 * modules/crypto/gc-des: Moved from ../.
2927 * modules/crypto/gc-des-tests: Moved from ../.
2928 * modules/crypto/gc-hmac-md5: Moved from ../.
2929 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
2930 * modules/crypto/gc-hmac-sha1: Moved from ../.
2931 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
2932 * modules/crypto/gc-md2: Moved from ../.
2933 * modules/crypto/gc-md2-tests: Moved from ../.
2934 * modules/crypto/gc-md4: Moved from ../.
2935 * modules/crypto/gc-md4-tests: Moved from ../.
2936 * modules/crypto/gc-md5: Moved from ../.
2937 * modules/crypto/gc-md5-tests: Moved from ../.
2938 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
2939 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
2940 * modules/crypto/gc-random: Moved from ../.
2941 * modules/crypto/gc-rijndael: Moved from ../.
2942 * modules/crypto/gc-rijndael-tests: Moved from ../.
2943 * modules/crypto/gc-sha1: Moved from ../.
2944 * modules/crypto/gc-sha1-tests: Moved from ../.
2945 * modules/crypto/gc-tests: Moved from ../.
2946 * modules/crypto/hmac-md5: Moved from ../.
2947 * modules/crypto/hmac-md5-tests: Moved from ../.
2948 * modules/crypto/hmac-sha1: Moved from ../.
2949 * modules/crypto/hmac-sha1-tests: Moved from ../.
2950 * modules/crypto/md2: Moved from ../.
2951 * modules/crypto/md2-tests: Moved from ../.
2952 * modules/crypto/md4: Moved from ../.
2953 * modules/crypto/md4-tests: Moved from ../.
2954 * modules/crypto/md5: Moved from ../.
2955 * modules/crypto/md5-tests: Moved from ../.
2956 * modules/crypto/memxor: Moved from ../.
2957 * modules/crypto/rijndael: Moved from ../.
2958 * modules/crypto/rijndael-tests: Moved from ../.
2959 * modules/crypto/sha1: Moved from ../.
2961 2007-03-30 James Youngman <jay@gnu.org>
2963 * tests/test-stat-time.c (prepare_test): use chmod() rather than
2964 rename() to change the ctime of a file (because ctime is unaffected
2965 by rename on jfs2 on AIX 5.1).
2966 (main): Start by doing cleanup, in case a previous run failed leaving
2969 2007-03-31 Bruno Haible <bruno@clisp.org>
2971 Support old proprietary implementations of iconv.
2972 * modules/iconv_open: New file.
2973 * lib/iconv_.h: New file.
2974 * m4/iconv_h.m4: New file.
2975 * lib/iconv_open.c: New file.
2976 * lib/iconv_open-aix.gperf: New file.
2977 * lib/iconv_open-hpux.gperf: New file.
2978 * lib/iconv_open-irix.gperf: New file.
2979 * lib/iconv_open-osf.gperf: New file.
2980 * m4/iconv_open.m4: New file.
2981 * modules/linebreak (Depends-on): Add iconv_open.
2982 * modules/striconv (Depends-on): Likewise.
2983 * modules/striconveh (Depends-on): Likewise.
2984 * modules/unicodeio (Depends-on): Likewise.
2985 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
2987 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
2988 conversion if cd is (iconv_t)(-1).
2989 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
2992 2007-03-31 Bruno Haible <bruno@clisp.org>
2994 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
2995 work on Solaris either. Protect also second use of "autodetect_jp".
2997 2007-03-31 Bruno Haible <bruno@clisp.org>
2999 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
3000 the function is not present.
3002 2007-03-31 Bruno Haible <bruno@clisp.org>
3004 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
3005 the function is not present.
3007 2007-03-31 Bruno Haible <bruno@clisp.org>
3009 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
3010 a bug in HP-UX iconv_open().
3012 2007-03-31 Bruno Haible <bruno@clisp.org>
3014 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
3015 (Mathematics <math.h>): New section, add fpieee.
3016 (Input/output <stdio.h>): Add fseterr.
3017 (Mathematics <math.h>): New section, add printf-frexp.
3018 (Container data structures): Add sublist.
3019 (Core language properties): Add fpucw, inline.
3020 (Functions for greatest-width integer types <inttypes.h>): Add
3021 imaxabs, imaxdiv, inttypes.
3022 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
3023 isnanl-nolibm, ldexp.
3024 (Mathematics <math.h>): New section, add printf-frexpl.
3025 (Support for systems lacking POSIX:2001): Add fprintf-posix,
3026 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
3027 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
3028 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
3029 (Unicode string functions): Add unistr/u*-mbtoucr.
3030 (Java): Add javacomp-script, javaexec-script.
3031 (C#): Add csharpcomp-script, csharpexec-script.
3032 (Support for building libraries and executables): Add havelib,
3034 (Support for maintaining and releasing projects): Renamed from
3035 'Support for maintaining and release projects'. Add announce-gen.
3037 2007-03-31 Bruno Haible <bruno@clisp.org>
3039 * README: Talk primarily about git.
3040 (git and CVS): Renamed from CVS.
3041 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
3042 gnulib is available through git.
3043 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
3045 2007-03-30 Bruno Haible <bruno@clisp.org>
3047 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
3048 * lib/poll_.h: Likewise.
3049 * lib/stat_.h: Likewise.
3050 * lib/sys_time_.h: Likewise.
3051 * lib/sysexit_.h: Likewise.
3052 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
3053 * lib/stdbool_.h: Likewise.
3054 * lib/byteswap_.h: Add double-inclusion guard.
3056 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
3058 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
3060 2007-03-30 Karl Berry <karl@gnu.org>
3062 * config/srclist-update: double space after USA in the license
3063 substitution, since that's how it's usually (?) written.
3065 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
3067 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
3068 reported by Bruno Haible.
3070 2007-03-29 Bruno Haible <bruno@clisp.org>
3072 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
3073 a bug in AIX iconv().
3075 2007-03-29 Bruno Haible <bruno@clisp.org>
3077 * modules/ldexpl-tests: New file.
3078 * tests/test-ldexpl.c: New file.
3080 2007-03-29 Bruno Haible <bruno@clisp.org>
3082 * lib/ldexpl.c: Include fpucw.h.
3083 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
3085 * modules/ldexpl (Depends-on): Add fpucw.
3087 2007-03-29 Bruno Haible <bruno@clisp.org>
3089 * modules/ldexpl: New file.
3090 * m4/ldexpl.m4: New file.
3091 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
3093 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
3095 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
3097 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
3098 gl_FUNC_LDEXPL_WORKS.
3099 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
3100 * modules/mathl (Files): Remove lib/ldexpl.c.
3101 (Depends-on): Add ldexpl.
3103 2007-03-29 Bruno Haible <bruno@clisp.org>
3105 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
3107 2007-03-29 Bruno Haible <bruno@clisp.org>
3109 * tests/test-striconveh.c (main): Don't assume that a direct conversion
3110 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
3111 and possibly also HP-UX.
3112 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3113 work on AIX, IRIX, HP-UX, OSF/1.
3114 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3115 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3116 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3117 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3118 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3119 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3121 2007-03-29 Bruno Haible <bruno@clisp.org>
3123 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
3125 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
3127 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
3128 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
3130 2007-03-29 Eric Blake <ebb9@byu.net>
3132 * lib/acl-internal.h: Remove redundant include.
3133 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
3134 Cygwin when a file is locked.
3136 2007-03-29 Bruno Haible <bruno@clisp.org>
3138 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
3140 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
3142 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
3144 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
3145 try to remove a parent directory if the child couldn't be removed
3146 (except for the first rmdir, which could fail because the child
3147 doesn't exist). Problem reported by Jeff Blaine in
3148 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
3150 2007-03-28 Bruno Haible <bruno@clisp.org>
3152 * lib/striconveh.c (utf8conv_carefully): New function.
3153 (mem_cd_iconveh_internal): Invoke it.
3155 2007-03-28 Bruno Haible <bruno@clisp.org>
3157 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
3158 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
3160 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
3161 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
3164 2007-03-28 Bruno Haible <bruno@clisp.org>
3166 * modules/unistr/u8-mbtoucr: New file.
3167 * lib/unistr/u8-mbtoucr.c: New file.
3168 * modules/unistr/u16-mbtoucr: New file.
3169 * lib/unistr/u16-mbtoucr.c: New file.
3170 * modules/unistr/u16-mbtoucr: New file.
3171 * lib/unistr/u16-mbtoucr.c: New file.
3172 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
3174 2007-03-27 Simon Josefsson <simon@josefsson.org>
3175 Bruno Haible <bruno@clisp.org>
3177 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
3178 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
3179 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
3181 * m4/stdio_h.m4: Add stubs for vasprintf too.
3183 * modules/stdio: Support vasprintf in sed command.
3185 * modules/vasprintf: Depend on stdio for prototypes. Remove
3186 vasprintf.h. Add stdio module indicator.
3188 * lib/stdio_.h: Declare asprintf and vasprintf, based on
3191 * lib/vasprintf.h: File removed.
3193 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
3194 * lib/vasprintf.c: Ditto.
3195 * lib/xvasprintf.c: Ditto.
3196 * tests/test-vasprintf-posix.c: Ditto.
3197 * tests/test-vasprintf.c: Ditto.
3199 2007-03-27 Bruno Haible <bruno@clisp.org>
3201 Make vasnprintf multithread-safe.
3202 * lib/vasnprintf.c (decimal_point_char): New function.
3203 (VASNPRINTF): Use it.
3204 Suggested by Simon Josefsson.
3206 2007-03-27 Eric Blake <ebb9@byu.net>
3208 Support sub-second birthtime on cygwin.
3209 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
3210 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
3211 (get_stat_birthtime): Also work with st_birthtim.
3213 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
3215 * lib/stat-time.h (USE_BIRTHTIME): Remove.
3216 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
3217 (get_stat_birthtime_ns): Do not try to use "spare" fields.
3218 (get_stat_birthtime_ns): Simplify compile-time tests.
3219 (get_stat_birthtime): Change the API to look like
3220 get_stat_mtime etc., except return a negative tv_nsec on error.
3221 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3222 Don't check for "spare" fields.
3223 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
3224 or for struct stat.st_birthtime, as these tests aren't used.
3225 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
3227 2007-03-27 Bruno Haible <bruno@clisp.org>
3229 * lib/stat-time.h: Include <sys/stat.h>.
3231 2007-03-27 James Youngman <jay@gnu.org>
3233 * lib/stat-time.h (get_stat_birthtime): New function for
3234 retrieving st_birthtime as provided by UFS2 (hence *BSD).
3235 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
3237 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
3238 * modules/stat-time-test: New file.
3239 * tests/test-stat-time.c: New test, devised by Bruno Haible.
3241 2007-03-26 Bruno Haible <bruno@clisp.org>
3243 Better support of signalling NaNs.
3244 * lib/atanl.c: Include isnanl.h.
3245 (atanl): Perform test for NaN at the beginning of the function and
3246 through a call to isnanl.
3247 * lib/cosl.c: Include isnanl.h.
3248 (cosl): Perform test for NaN at the beginning of the function and
3249 through a call to isnanl.
3250 * lib/ldexpl.c: Include isnanl.h.
3251 (ldexpl): Perform test for NaN through a call to isnanl.
3252 * lib/logl.c: Include isnanl.h.
3253 (logl): Perform test for NaN at the beginning of the function and
3254 through a call to isnanl.
3255 * lib/sinl.c: Include isnanl.h.
3256 (sinl): Perform test for NaN at the beginning of the function and
3257 through a call to isnanl.
3258 * lib/sqrtl.c: Include isnanl.h.
3259 (sqrtl): Perform test for NaN at the beginning of the function and
3260 through a call to isnanl.
3261 * lib/tanl.c: Include isnanl.h.
3262 (tanl): Perform test for NaN at the beginning of the function and
3263 through a call to isnanl.
3264 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
3265 * modules/mathl (Depends-on): Add isnanl.
3267 2007-03-26 Eric Blake <ebb9@byu.net>
3269 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
3270 regression in logic sense of previous patch.
3272 2007-03-26 Bruno Haible <bruno@clisp.org>
3274 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
3275 unportable shell command "if ! ...".
3276 Reported by Ralf Wildenhues.
3278 2007-03-25 Bruno Haible <bruno@clisp.org>
3280 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
3281 <sysexits.h> file, and only add EX_CONFIG.
3282 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
3283 absolute file name and whether it is sufficient. Substitute also
3284 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
3285 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
3286 ABSOLUTE_SYSEXITS_H into sysexits.h.
3288 2007-03-25 Bruno Haible <bruno@clisp.org>
3290 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
3293 2007-03-25 Bruno Haible <bruno@clisp.org>
3295 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
3296 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
3298 2007-03-25 Bruno Haible <bruno@clisp.org>
3300 * lib/vasnprintf.c: Include langinfo.h.
3301 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
3303 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
3304 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
3305 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3306 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3307 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3308 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3309 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3310 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
3311 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3312 Reported by Simon Josefsson.
3314 2007-03-25 Bruno Haible <bruno@clisp.org>
3316 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
3317 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
3318 * modules/vasnprintf (Depends-on): Add stdint.
3320 2007-03-25 Bruno Haible <bruno@clisp.org>
3322 * modules/fpieee: New file.
3323 * m4/fpieee.m4: New file.
3324 * modules/isnan-nolibm (Depends-on): Add fpieee.
3325 * modules/isnanl-nolibm (Depends-on): Add fpieee.
3326 * modules/isnanl (Depends-on): Add fpieee.
3328 2007-03-25 Bruno Haible <bruno@clisp.org>
3330 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
3332 2007-03-25 Bruno Haible <bruno@clisp.org>
3334 Avoid test failures on IRIX 6.5.
3335 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
3337 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
3341 2007-03-25 Bruno Haible <bruno@clisp.org>
3343 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
3344 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
3345 exists but doesn't work.
3346 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
3347 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
3348 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
3349 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
3351 2007-03-25 Bruno Haible <bruno@clisp.org>
3353 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
3354 returns inf. Needed on IRIX 6.5.
3356 2007-03-25 Bruno Haible <bruno@clisp.org>
3358 * tests/test-frexpl.c: Include isnanl-nolibm.h.
3359 (main): Use isnanl instead of x != x idiom.
3360 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
3362 * tests/test-frexp.c: Include isnan.h.
3363 (main): Use isnan instead of x != x idiom.
3364 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
3366 2007-03-25 Bruno Haible <bruno@clisp.org>
3368 * tests/test-frexp.c (NaN): New function/macro.
3369 (main): Use it instead of 0.0 / 0.0.
3370 * tests/test-isnan.c (NaN): New function/macro.
3371 (main): Use it instead of 0.0 / 0.0.
3372 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
3373 (test_function): Use it instead of 0.0 / 0.0.
3374 * tests/test-vasprintf-posix.c (NaN): New function/macro.
3375 (test_function): Use it instead of 0.0 / 0.0.
3376 * tests/test-snprintf-posix.h (NaN): New function/macro.
3377 (test_function): Use it instead of 0.0 / 0.0.
3378 * tests/test-sprintf-posix.h (NaN): New function/macro.
3379 (test_function): Use it instead of 0.0 / 0.0.
3380 * tests/test-fprintf-posix.h (NaN): New function/macro.
3381 (test_function): Use it instead of 0.0 / 0.0.
3382 * tests/test-printf-posix.h (NaN): New function/macro.
3383 (test_function): Use it instead of 0.0 / 0.0.
3385 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
3387 2007-03-25 Bruno Haible <bruno@clisp.org>
3389 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
3391 2007-03-25 Bruno Haible <bruno@clisp.org>
3393 * lib/regexec.c (merge_state_with_log): Make static.
3395 2007-03-25 Bruno Haible <bruno@clisp.org>
3397 * lib/trigl.c (kernel_rem_pio2): Make static.
3399 2007-03-25 Bruno Haible <bruno@clisp.org>
3401 * lib/sincosl.c (sincosl_table): Make static.
3403 2007-03-25 Bruno Haible <bruno@clisp.org>
3405 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
3406 if the compiler does not support C99.
3408 2007-03-25 Bruno Haible <bruno@clisp.org>
3410 * modules/time (Makefile.am): Ensure all rule action lines start with a
3413 2007-03-24 Bruno Haible <bruno@clisp.org>
3415 * modules/tsearch-tests: New file.
3416 * tests/test-tsearch.sh: New file.
3417 * tests/test-tsearch.c: New file, mostly copied from glibc.
3419 * modules/search-tests: New file.
3420 * tests/test-search.c: New file.
3422 * modules/search: New file.
3423 * lib/search_.h: New file, incorporating lib/tsearch.h.
3424 * m4/search_h.m4: New file.
3425 * lib/tsearch.h: Remove file.
3426 * lib/tsearch.c: Include search.h instead of tsearch.h.
3427 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
3429 * modules/tsearch (Files): Remove lib/tsearch.h.
3430 (Depends-on): Add search.
3431 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
3432 (Include): Change tsearch.h into search.h.
3434 2007-03-24 Bruno Haible <bruno@clisp.org>
3436 * modules/fpucw: New file.
3437 * lib/fpucw.h: New file.
3438 * lib/frexp.c: Include fpucw.h.
3439 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3441 * lib/printf-frexp.c: Include fpucw.h.
3442 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
3444 * lib/vasnprintf.c: Include fpucw.h.
3445 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
3446 'long double' calculations.
3447 * tests/test-frexpl.c: Include fpucw.h.
3448 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3449 * tests/test-printf-frexpl.c: Include fpucw.h.
3450 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
3451 * modules/frexpl (Depends-on): Add fpucw.
3452 * modules/printf-frexpl (Depends-on): Likewise.
3453 * modules/fprintf-posix (Depends-on): Likewise.
3454 * modules/snprintf-posix (Depends-on): Likewise.
3455 * modules/sprintf-posix (Depends-on): Likewise.
3456 * modules/vasnprintf-posix (Depends-on): Likewise.
3457 * modules/vasprintf-posix (Depends-on): Likewise.
3458 * modules/vfprintf-posix (Depends-on): Likewise.
3459 * modules/vsnprintf-posix (Depends-on): Likewise.
3460 * modules/vsprintf-posix (Depends-on): Likewise.
3461 * modules/frexpl-tests (Depends-on): Likewise.
3462 * modules/printf-frexpl-tests (Depends-on): Likewise.
3464 2007-03-24 Bruno Haible <bruno@clisp.org>
3466 * lib/float+.h: New file.
3467 * lib/isnan.c: Include float+.h.
3469 (FUNC): Compare only SIZE bytes of the value.
3470 * lib/vasnprintf.c: Include float+.h.
3471 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
3472 SIZEOF_LDBL or SIZEOF_DBL bytes.
3473 * modules/isnan-nolibm (Files): Add lib/float+.h.
3474 * modules/isnanl-nolibm (Files): Add lib/float+.h.
3475 * modules/isnanl (Files): Add lib/float+.h.
3476 * modules/vasnprintf (Files): Add lib/float+.h.
3478 2007-03-24 Bruno Haible <bruno@clisp.org>
3480 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
3481 include isnanl-nolibm.h.
3483 2007-03-24 Bruno Haible <bruno@clisp.org>
3485 * tests/test-read-file.c (main): Don't produce spurious output for
3486 expected situations. Make the test fail if it encountered unexpected
3489 2007-03-24 Bruno Haible <bruno@clisp.org>
3491 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
3492 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
3494 2007-03-24 Bruno Haible <bruno@clisp.org>
3496 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
3498 2007-03-24 Bruno Haible <bruno@clisp.org>
3500 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
3501 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
3503 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
3504 * modules/utf8-ucs4: Turn into a symbolic link to module
3507 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
3509 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
3510 unistr/u8-mbtouc-unsafe.
3512 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
3513 * modules/utf16-ucs4: Turn into a symbolic link to module
3516 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
3518 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
3519 unistr/u16-mbtouc-unsafe.
3521 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
3522 * modules/ucs4-utf8: Turn into a symbolic link to module
3525 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
3526 * modules/ucs4-utf16: Turn into a symbolic link to module
3529 2007-03-24 Bruno Haible <bruno@clisp.org>
3531 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
3532 Enable the function only if HAVE_INLINE.
3533 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
3534 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3535 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
3536 Enable the function only if HAVE_INLINE.
3537 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
3538 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
3539 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
3540 Enable the function only if HAVE_INLINE.
3541 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
3542 Enable the function only if HAVE_INLINE.
3543 * modules/utf8-ucs4: Update.
3544 * modules/utf8-ucs4-unsafe: Update.
3545 * modules/utf16-ucs4: Update.
3546 * modules/utf16-ucs4-unsafe: Update.
3547 * modules/ucs4-utf8: Update.
3548 * modules/ucs4-utf16: Update.
3550 2007-03-24 Bruno Haible <bruno@clisp.org>
3552 * lib/utf8-ucs4.h: Remove file.
3553 * lib/utf8-ucs4-unsafe.h: Remove file.
3554 * lib/utf16-ucs4.h: Remove file.
3555 * lib/utf16-ucs4-unsafe.h: Remove file.
3556 * lib/ucs4-utf8.h: Remove file.
3557 * lib/ucs4-utf16.h: Remove file.
3558 * lib/unistr.h: Include their previous contents.
3559 * m4/utf-ucs4.m4: Remove file.
3560 * m4/ucs4-utf.m4: Remove file.
3561 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
3562 (Depends-on): Add unistr/base.
3563 (configure.ac): Remove gl_UTF_UCS4.
3564 (Makefile.am): Update.
3565 (Include): Change to unistr.h.
3566 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
3567 (Depends-on): Add unistr/base.
3568 (configure.ac): Remove gl_UTF_UCS4.
3569 (Makefile.am): Update.
3570 (Include): Change to unistr.h.
3571 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
3572 (Depends-on): Add unistr/base.
3573 (configure.ac): Remove gl_UTF_UCS4.
3574 (Makefile.am): Update.
3575 (Include): Change to unistr.h.
3576 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
3577 (Depends-on): Add unistr/base.
3578 (configure.ac): Remove gl_UTF_UCS4.
3579 (Makefile.am): Update.
3580 (Include): Change to unistr.h.
3581 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
3582 (Depends-on): Add unistr/base.
3583 (configure.ac): Remove gl_UCS4_UTF.
3584 (Makefile.am): Update.
3585 (Include): Change to unistr.h.
3586 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
3587 (Depends-on): Add unistr/base.
3588 (configure.ac): Remove gl_UCS4_UTF.
3589 (Makefile.am): Update.
3590 (Include): Change to unistr.h.
3591 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
3592 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
3594 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
3595 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
3596 utf16-ucs4-unsafe.h.
3597 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
3598 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
3599 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
3600 * lib/unistr/u8-strchr.c: Likewise.
3601 * lib/unistr/u8-strrchr.c: Likewise.
3602 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
3603 * lib/unistr/u16-strchr.c: Likewise.
3604 * lib/unistr/u16-strrchr.c: Likewise.
3605 * lib/striconveh.c: Update.
3606 * lib/linebreak.c: Update.
3608 2007-03-24 Bruno Haible <bruno@clisp.org>
3610 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
3611 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
3613 2007-03-22 Bruno Haible <bruno@clisp.org>
3615 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
3617 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
3619 * MODULES.html.sh (File system functions): New module write-any-file.
3620 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
3621 * m4/write-any-file.m4: New files.
3623 2007-03-23 Eric Blake <ebb9@byu.net>
3625 * gnulib-tool: Rearrange space-tab sequences, since some editors
3628 2007-03-23 Eric Blake <ebb9@byu.net>
3630 * lib/version-etc.c (version_etc_va): Update license wording to
3631 be more concise. Recommended by Richard Stallman.
3633 2007-03-22 Bruno Haible <bruno@clisp.org>
3635 * lib/poll.c (MSG_PEEK): New fallback definition.
3637 2007-03-22 Bruno Haible <bruno@clisp.org>
3639 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
3640 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
3642 Fixes a compilation error on BeOS.
3644 2007-03-22 Bruno Haible <bruno@clisp.org>
3646 * modules/frexpl-tests: New file.
3647 * tests/test-frexpl.c: New file.
3649 * modules/frexpl: New file.
3650 * m4/frexpl.m4: New file.
3651 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
3652 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
3653 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
3654 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
3655 (Depends-on): Add frexpl. Remove isnanl-nolibm.
3656 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
3658 2007-03-22 Bruno Haible <bruno@clisp.org>
3660 * lib/frexpl.c: Share code with lib/frexp.c.
3661 * modules/mathl (Files): Add lib/frexp.c.
3662 (Depends-on): Add isnanl-nolibm.
3664 2007-03-22 Bruno Haible <bruno@clisp.org>
3666 * modules/printf-frexp (Files): Add m4/frexp.m4.
3667 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
3668 only if the found frexp function actually works.
3670 2007-03-22 Bruno Haible <bruno@clisp.org>
3672 * lib/frexp.c: Remove older implementation that uses divisions.
3674 2007-03-21 Bruno Haible <bruno@clisp.org>
3676 * modules/frexp-tests: New file.
3677 * tests/test-frexp.c: New file.
3679 * modules/frexp: New file.
3680 * lib/frexp.c: New file.
3681 * m4/frexp.m4: New file.
3682 * lib/math_.h (frexp): New declaration.
3683 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
3685 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
3687 2007-03-21 Bruno Haible <bruno@clisp.org>
3689 * modules/isnanl-tests: New file.
3690 * tests/test-isnanl.c: New file.
3692 * modules/isnanl: New file.
3693 * lib/isnanl.h: New file.
3694 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
3695 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
3696 gl_FUNC_ISNANL_WORKS.
3697 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
3700 2007-03-21 Bruno Haible <bruno@clisp.org>
3702 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
3705 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
3706 * lib/vasnprintf.c: Update.
3707 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
3708 tests/test-isnanl.h, remove tests/test-isnanl.c.
3709 (Makefile.am): Update.
3710 * tests/test-isnanl-nolibm.c: New file.
3711 * tests/test-isnanl.h: New file.
3712 * tests/test-isnanl.c: Remove file.
3714 2007-03-21 Jim Meyering <jim@meyering.net>
3716 When trying to open ".", treat ESTALE like EACCES.
3717 * lib/savewd.c (savewd_save): Resort to forking not just upon
3718 failure with EACCES, but also when errno is ESTALE.
3720 2007-03-20 Bruno Haible <bruno@clisp.org>
3722 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
3723 Needed on AIX 5.1. Reported by Matthew Woehlke.
3725 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
3727 Suggestions by Bruno Haible:
3728 * lib/acl-internal.h: Include "gettext.h" rather than rolling
3730 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
3731 * modules/acl (Depends-on): Add gettext.
3733 2007-03-19 Bruno Haible <bruno@clisp.org>
3735 * modules/iconvme: Remove file.
3736 * lib/iconvme.h: Remove file.
3737 * lib/iconvme.c: Remove file.
3738 * m4/iconvme.m4: Remove file.
3740 2007-03-19 Bruno Haible <bruno@clisp.org>
3742 * doc/relocatable-maint.texi: Break long shell script line.
3743 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3745 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
3747 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
3748 handle file_has_acl.
3749 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
3750 * lib/acl.c: Move header inclusions and related macro defns into
3752 (S_ISLNK): Remove defn, since that's now done for us.
3753 (file_has_acl): Move to lib/file-has-acl.c.
3754 Call acl_trivial if available. This is the crucial part of the fix.
3755 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
3756 shared within the library. Rewrite a bit, partly to make it compatible
3757 with the GNU coding style.
3758 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
3759 Remove unnecessary double-quotes.
3760 Don't test for acl_to_text; the build will catch that.
3761 Replace acl_entries if it doesn't exist and it is needed.
3762 Check for -lsec and acl_trivial (as used on Solaris 10).
3763 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
3765 (Depends-on): Add sys_stat, for S_ISLNK.
3767 2007-03-19 Ben Pfaff <blp@gnu.org>
3769 * doc/gnulib.texi: Fix typos.
3770 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
3772 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
3774 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
3775 If size is zero here, buf must be zero.
3777 2007-03-19 Simon Josefsson <simon@josefsson.org>
3779 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
3782 2007-03-18 Bruno Haible <bruno@clisp.org>
3784 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
3785 Suggested by Eric Blake.
3787 2007-03-18 Ben Pfaff <blp@gnu.org>
3789 * doc/relocatable.texi: Recommend using as prefix a directory
3790 that does not exist and will never be created. Based on
3791 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
3794 2007-03-17 Bruno Haible <bruno@clisp.org>
3796 * lib/fchownat.c: Include lchown.h.
3798 2007-03-17 Bruno Haible <bruno@clisp.org>
3800 Fix endless loop when the given allocated size was > INT_MAX.
3801 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
3802 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
3803 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
3804 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
3805 * lib/sprintf.c (sprintf): Likewise.
3807 2007-03-17 Bruno Haible <bruno@clisp.org>
3809 * tests/test-argp-2.sh (func_compare): Output a context diff.
3811 2007-03-17 Bruno Haible <bruno@clisp.org>
3813 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
3814 locale's decimal-point character.
3816 2007-03-17 Bruno Haible <bruno@clisp.org>
3818 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
3819 before comparing it. Needed because on some platforms (e.g. x86) a
3820 'long double' occupies less bytes than sizeof (long double).
3822 2007-03-17 Bruno Haible <bruno@clisp.org>
3824 * tests/test-crc.c (main): Make printf statements 64-bit clean.
3825 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
3826 * tests/test-getaddrinfo.c (simple): Likewise.
3827 * tests/test-read-file.c (main): Likewise.
3829 2007-03-17 Bruno Haible <bruno@clisp.org>
3831 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
3833 2007-03-17 Bruno Haible <bruno@clisp.org>
3835 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
3838 2007-03-17 Bruno Haible <bruno@clisp.org>
3840 * tests/test-c-strcasecmp.c: Include c-strcase.h.
3841 * tests/test-c-strncasecmp.c: Likewise.
3843 2007-03-17 Bruno Haible <bruno@clisp.org>
3845 * modules/stdlib (Depends-on): Add unistd.
3846 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
3847 Needed for MacOS X 10.3.
3849 2007-03-17 Bruno Haible <bruno@clisp.org>
3851 * lib/unistr/u-strdup.h: Include <stdlib.h>.
3853 2007-03-17 Bruno Haible <bruno@clisp.org>
3855 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
3857 2007-03-17 Bruno Haible <bruno@clisp.org>
3859 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
3860 to reflect files copied from gnulib (with or without modifications).
3861 Suggested by Jim Meyering.
3863 2007-03-17 Eric Blake <ebb9@byu.net>
3865 * NEWS: Document stdlib change from 2007-02-18.
3867 2007-03-17 Jim Meyering <jim@meyering.net>
3869 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
3870 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
3871 someone uses a name containing shell meta-characters.
3872 Reported by Alfred M. Szmidt.
3874 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
3876 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
3878 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
3879 and copy gettext configuration files only if configure.ac contains
3880 a use of AM_GNU_GETTEXT_VERSION.
3882 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
3884 * build-aux/bootstrap (gnulib_name): New variable.
3885 (gnulib_tool_options): Use it.
3887 2007-03-13 Simon Josefsson <simon@josefsson.org>
3889 * tests/test-des.c: Use new namespace.
3891 2007-03-15 Bruno Haible <bruno@clisp.org>
3893 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
3894 Reported by James Youngman <jay@gnu.org>.
3896 2007-03-15 Bruno Haible <bruno@clisp.org>
3898 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
3899 declared prototype. Needed with cc on OSF/1 5.1.
3901 2007-03-15 Bruno Haible <bruno@clisp.org>
3903 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
3904 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
3905 (struct gl_list_implementation): Add dispose_fn argument to the
3906 'create_empty', 'create' methods.
3907 (struct gl_list_impl_base): Add field 'dispose_fn'.
3908 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
3910 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
3911 dispose_fn argument.
3912 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
3913 dispose_fn on the dropped values.
3914 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
3915 dispose_fn argument.
3916 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
3918 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
3919 (gl_tree_remove_node): Call dispose_fn on the dropped value.
3920 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
3921 (gl_tree_remove_node): Call dispose_fn on the dropped value.
3922 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
3924 (gl_tree_list_free): Call dispose_fn on the dropped values.
3925 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
3927 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3928 Add dispose_fn argument.
3929 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
3930 Call dispose_fn on the dropped values.
3931 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
3932 Add dispose_fn argument.
3933 (gl_sublist_create): Initialize the 'dispose_fn' field.
3934 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
3935 * tests/test-array_list.c (main): Update.
3936 * tests/test-carray_list.c (main): Update.
3937 * tests/test-avltree_list.c (main): Update.
3938 * tests/test-rbtree_list.c (main): Update.
3939 * tests/test-avltreehash_list.c (main): Update.
3940 * tests/test-rbtreehash_list.c (main): Update.
3941 * tests/test-linked_list.c (main): Update.
3942 * tests/test-linkedhash_list.c (main): Update.
3943 * tests/test-array_oset.c (main): Update.
3945 2007-03-15 Bruno Haible <bruno@clisp.org>
3947 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
3948 (gl_oset_create_empty): Add dispose_fn argument.
3949 (struct gl_oset_implementation): Add dispose_fn argument to
3950 'create_empty' method.
3951 (struct gl_oset_impl_base): Add dispose_fn field.
3952 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
3953 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
3954 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
3956 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
3957 (gl_tree_oset_free): Call dispose_fn on the dropped values.
3958 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3960 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
3962 * tests/test-array_oset.c (main): Update.
3963 * tests/test-avltree_oset.c (main): Update.
3964 * tests/test-rbtree_oset.c (main): Update.
3965 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
3967 2007-03-13 Bruno Haible <bruno@clisp.org>
3969 * tests/test-stdbool.c (i): Update after last patch.
3971 2007-03-12 Bruno Haible <bruno@clisp.org>
3973 * lib/quotearg.c: Include <wctype.h> early, before the definition of
3974 the iswprint macro. Needed on Solaris 2.5.1.
3976 2007-03-12 Bruno Haible <bruno@clisp.org>
3978 * tests/test-printf-frexp.c (main): Declare x as volatile.
3980 2007-03-12 Simon Josefsson <simon@josefsson.org>
3982 * doc/gnulib.texi (Build robot for gnulib): New section.
3984 2007-03-12 Jim Meyering <jim@meyering.net>
3986 * build-aux/bootstrap: New file.
3987 * build-aux/bootstrap.conf: New file, from coreutils.
3989 2007-03-11 Bruno Haible <bruno@clisp.org>
3991 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
3993 2007-03-12 Simon Josefsson <simon@josefsson.org>
3995 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
3996 avoid collisions with 'des_setkey'. Reported by Bruno Haible
3997 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
3999 2007-03-11 Bruno Haible <bruno@clisp.org>
4001 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
4002 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
4004 2007-03-11 Bruno Haible <bruno@clisp.org>
4006 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
4007 formula. Needed for SunPRO C 5.0.
4009 2007-03-11 Bruno Haible <bruno@clisp.org>
4011 * modules/long-options (Depends-on): Add getopt.
4013 2007-03-11 Bruno Haible <bruno@clisp.org>
4015 * modules/modechange (Depends-on): Add stdbool.
4017 2007-03-11 Bruno Haible <bruno@clisp.org>
4019 * modules/i-ring (Depends-on): Add stdbool.
4021 2007-03-11 Bruno Haible <bruno@clisp.org>
4023 * modules/gc-des (Depends-on): Add stdbool.
4025 2007-03-11 Bruno Haible <bruno@clisp.org>
4027 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
4029 2007-03-11 Bruno Haible <bruno@clisp.org>
4031 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
4033 2007-03-11 Bruno Haible <bruno@clisp.org>
4035 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
4037 2007-03-11 Bruno Haible <bruno@clisp.org>
4039 * lib/vasnprintf.c (sprintf): Undefine.
4041 2007-03-11 Bruno Haible <bruno@clisp.org>
4043 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
4044 initializers in SunPRO C and Compaq C compilers.
4046 2007-03-11 Bruno Haible <bruno@clisp.org>
4048 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
4049 decrementing code ANSI C compliant.
4051 2007-03-11 Bruno Haible <bruno@clisp.org>
4053 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
4054 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
4056 2007-03-11 Bruno Haible <bruno@clisp.org>
4058 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
4059 <stdbool.h> substitute doesn't pass.
4061 2007-03-11 Bruno Haible <bruno@clisp.org>
4063 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
4065 2007-03-11 Bruno Haible <bruno@clisp.org>
4067 * gnulib-tool (func_create_megatestdir): Create also an autobuild
4068 script, for submission to autobuild.josefsson.org.
4070 2007-03-10 Bruno Haible <bruno@clisp.org>
4072 * modules/canonicalize-lgpl-tests: New file.
4073 * tests/test-canonicalize-lgpl.sh: New file.
4074 * tests/test-canonicalize-lgpl.c: New file.
4076 * modules/c-strcase-tests: New file.
4077 * tests/test-c-strcase.sh: New file.
4078 * tests/test-c-strcasecmp.c: New file.
4079 * tests/test-c-strncasecmp.c: New file.
4081 * modules/atexit-tests: New file.
4082 * tests/test-atexit.sh: New file.
4083 * tests/test-atexit.c: New file.
4085 2007-03-10 Bruno Haible <bruno@clisp.org>
4087 * tests/test-binary-io.sh: Use temporary filenames that are not so
4088 likely to clash with those of other tests (in a parallel make).
4089 * tests/test-binary-io.c: Likewise.
4091 2007-03-10 Bruno Haible <bruno@clisp.org>
4093 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
4094 fallback; use #error instead.
4095 Suggested by Simon Josefsson.
4097 2007-03-10 Bruno Haible <bruno@clisp.org>
4099 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
4100 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
4103 2007-03-10 Bruno Haible <bruno@clisp.org>
4105 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
4107 2007-03-10 Bruno Haible <bruno@clisp.org>
4109 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
4111 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
4112 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
4113 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
4115 2007-03-10 Bruno Haible <bruno@clisp.org>
4117 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
4119 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
4122 2007-03-09 Eric Blake <ebb9@byu.net>
4123 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
4125 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
4126 types are not being provided by gnulib.
4127 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
4128 types are supported.
4130 2007-03-10 Bruno Haible <bruno@clisp.org>
4132 * lib/stdio_.h (__attribute__): New macro.
4133 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
4134 vsprintf): Specify __attribute__ __format__ for GCC.
4135 Suggested by Eric Blake.
4137 2007-03-09 Bruno Haible <bruno@clisp.org>
4139 * modules/printf-posix-tests: New file.
4140 * tests/test-printf-posix.sh: New file.
4141 * tests/test-printf-posix.c: New file.
4143 * modules/printf-posix: New file.
4144 * lib/printf.c: New file.
4145 * m4/printf-posix-rpl.m4: New file.
4146 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
4148 * lib/stdio_.h (printf): New declaration.
4149 (format, __format__, ____printf____, ____scanf____, ____strftime____,
4150 ____strfmon____): New macros.
4151 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
4154 2007-03-09 Bruno Haible <bruno@clisp.org>
4156 * tests/test-vasnprintf-posix2.sh: New file.
4157 * tests/test-vasnprintf-posix2.c: New file.
4158 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
4159 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
4160 (Makefile.am): Activate test-vasnprintf-posix2.sh.
4162 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
4163 a locale dependent decimal point, rather than always '.'.
4165 2007-03-09 Eric Blake <ebb9@byu.net>
4167 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
4168 spite of platforms like Tandem/NSK that define it to -1.
4170 2007-03-08 Bruno Haible <bruno@clisp.org>
4172 * modules/vprintf-posix-tests: New file.
4173 * tests/test-vprintf-posix.sh: New file.
4174 * tests/test-vprintf-posix.c: New file.
4175 * tests/test-printf-posix.h: New file.
4177 * modules/vprintf-posix: New file.
4178 * lib/vprintf.c: New file.
4179 * m4/vprintf-posix.m4: New file.
4180 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
4182 * lib/stdio_.h (vprintf): New declaration.
4183 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
4186 2007-03-08 Bruno Haible <bruno@clisp.org>
4188 * modules/fprintf-posix-tests: New file.
4189 * tests/test-fprintf-posix.sh: New file.
4190 * tests/test-fprintf-posix.c: New file.
4192 * modules/fprintf-posix: New file.
4193 * lib/fprintf.c: New file.
4194 * m4/fprintf-posix.m4: New file.
4195 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
4197 * lib/stdio_.h (fprintf): New declaration.
4198 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
4201 2007-03-08 Bruno Haible <bruno@clisp.org>
4203 * modules/vfprintf-posix-tests: New file.
4204 * tests/test-vfprintf-posix.sh: New file.
4205 * tests/test-vfprintf-posix.c: New file.
4206 * tests/test-fprintf-posix.h: New file.
4207 * tests/test-fprintf-posix.out: New file.
4209 * modules/vfprintf-posix: New file.
4210 * lib/vfprintf.c: New file.
4211 * m4/vfprintf-posix.m4: New file.
4212 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
4214 * lib/stdio_.h (vfprintf): New declaration.
4215 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
4218 2007-03-08 Bruno Haible <bruno@clisp.org>
4220 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
4222 2007-03-08 Bruno Haible <bruno@clisp.org>
4224 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
4225 instead of 'expr' invocations.
4226 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4227 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4228 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4229 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4230 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4231 Suggested by Paul Eggert.
4233 2007-03-08 Bruno Haible <bruno@clisp.org>
4235 * modules/fseterr-tests: New file.
4236 * tests/test-fseterr.c: New file.
4238 * modules/fseterr: New file.
4239 * lib/fseterr.h: New file.
4240 * lib/fseterr.c: New file.
4242 2007-03-08 Bruno Haible <bruno@clisp.org>
4244 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
4245 * lib/getopt_.h: Likewise.
4246 * lib/mbswidth.h: Likewise.
4247 * lib/setenv.h: Likewise.
4248 * lib/vasnprintf.h: Likewise.
4249 * lib/vasprintf.h: Likewise.
4250 * lib/verror.h: Likewise.
4251 * lib/xsetenv.h: Likewise.
4252 * lib/xvasprintf.h: Likewise.
4254 2007-03-08 Jim Meyering <jim@meyering.net>
4256 * users.txt: Add parted.
4258 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
4260 2007-03-07 Bruno Haible <bruno@clisp.org>
4262 * m4/printf.m4: Make the shell script snippets copy&pastable.
4264 2007-03-02 Bruno Haible <bruno@clisp.org>
4266 * lib/netinet_in_.h: New file.
4267 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
4268 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
4269 * modules/netinet_in (Files): Add lib/netinet_in_.h.
4270 (Depends-on): Add absolute-header.
4271 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
4274 2007-03-03 Bruno Haible <bruno@clisp.org>
4276 * lib/sys_select_.h: New file.
4277 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
4278 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
4279 * modules/sys_select (Files): Add lib/sys_select_.h.
4280 (Depends-on): Add absolute-header.
4281 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
4284 2007-03-02 Bruno Haible <bruno@clisp.org>
4286 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
4287 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
4289 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
4290 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
4291 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
4292 * modules/sys_socket (Depends-on): Add absolute-header.
4293 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
4294 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
4295 (Include): Remove requirement of inclusion of <sys/types.h>.
4297 2007-03-02 Bruno Haible <bruno@clisp.org>
4299 * lib/byteswap_.h (bswap_32): Fix formula.
4301 2007-03-06 Bruno Haible <bruno@clisp.org>
4303 * modules/sprintf-posix-tests: New file.
4304 * tests/test-sprintf-posix.c: New file.
4306 * modules/sprintf-posix: New file.
4307 * lib/sprintf.c: New file.
4308 * m4/sprintf-posix.m4: New file.
4309 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
4311 * lib/stdio_.h (sprintf): New declaration.
4312 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
4315 2007-03-06 Bruno Haible <bruno@clisp.org>
4317 * modules/vsprintf-posix-tests: New file.
4318 * tests/test-vsprintf-posix.c: New file.
4319 * tests/test-sprintf-posix.h: New file.
4321 * modules/vsprintf-posix: New file.
4322 * lib/vsprintf.c: New file.
4323 * m4/vsprintf-posix.m4: New file.
4324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
4326 * lib/stdio_.h (vsprintf): New declaration.
4327 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
4330 2007-03-06 Bruno Haible <bruno@clisp.org>
4332 * modules/vsnprintf (Depend-on): Remove minmax.
4334 2007-03-06 Bruno Haible <bruno@clisp.org>
4336 * modules/snprintf-posix-tests: New file.
4337 * tests/test-snprintf-posix.c: New file.
4339 * modules/snprintf-posix: New file.
4340 * m4/snprintf-posix.m4: New file.
4341 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
4343 (gl_FUNC_SNPRINTF): Invoke it.
4344 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
4345 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
4347 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
4349 2007-03-06 Bruno Haible <bruno@clisp.org>
4351 * modules/vsnprintf-posix-tests: New file.
4352 * tests/test-vsnprintf-posix.c: New file.
4353 * tests/test-snprintf-posix.h: New file.
4355 * modules/vsnprintf-posix: New file.
4356 * m4/vsnprintf-posix.m4: New file.
4357 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
4359 (gl_FUNC_VSNPRINTF): Invoke it.
4360 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
4361 * lib/stdio_.h (vsnprintf): Define as a replacement if
4362 REPLACE_VSNPRINTF is set.
4363 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
4365 2007-03-06 Bruno Haible <bruno@clisp.org>
4367 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
4368 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
4370 2007-03-06 Bruno Haible <bruno@clisp.org>
4372 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
4373 (asinl): Declare also if HAVE_DECL_ASINL is set.
4374 (atanl): Declare also if HAVE_DECL_ATANL is set.
4375 (ceill): Declare also if HAVE_DECL_CEILL is set.
4376 (cosl): Declare also if HAVE_DECL_COSL is set.
4377 (expl): Declare also if HAVE_DECL_EXPL is set.
4378 (floorl): Declare also if HAVE_DECL_FLOORL is set.
4379 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
4380 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
4381 (logl): Declare also if HAVE_DECL_LOGL is set.
4382 (sinl): Declare also if HAVE_DECL_SINL is set.
4383 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
4384 (tanl): Declare also if HAVE_DECL_TANL is set.
4385 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
4386 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
4387 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
4388 declaration of frexpl, ldexpl.
4389 * modules/printf-frexpl (Depends-on): Add math.
4390 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
4392 2007-03-05 Bruno Haible <bruno@clisp.org>
4394 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
4395 frexpl and ldexpl are declared.
4396 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
4398 2007-03-05 Bruno Haible <bruno@clisp.org>
4400 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
4401 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
4403 2007-03-05 Bruno Haible <bruno@clisp.org>
4405 * lib/stdio_.h: Include <stddef.h>.
4407 2007-03-05 Bruno Haible <bruno@clisp.org>
4409 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
4411 2007-03-05 Bruno Haible <bruno@clisp.org>
4413 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
4414 NetBSD 4, from Ralf Wildenhues.
4416 2007-03-04 Bruno Haible <bruno@clisp.org>
4418 * lib/vasprintf.h: Update #if logic for the case when the functions
4419 exist but are overridden.
4421 2007-03-04 Bruno Haible <bruno@clisp.org>
4423 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
4424 implementations: glibc-2.4 and MacOS X 10.3.
4425 * tests/test-vasnprintf-posix.c (test_function): Test also the case
4426 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
4427 * tests/test-vasprintf-posix.c (test_function): Likewise.
4429 2007-03-04 Bruno Haible <bruno@clisp.org>
4431 * modules/vasprintf-posix-tests: New file.
4432 * tests/test-vasprintf-posix.c: New file.
4434 * modules/vasprintf-posix: New file.
4435 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
4437 * m4/vasprintf-posix.m4: New file.
4438 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
4440 (gl_FUNC_VASPRINTF): Invoke it.
4441 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
4443 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
4445 2007-03-04 Bruno Haible <bruno@clisp.org>
4447 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
4448 REPLACE_GETTIMEOFDAY.
4449 * modules/sys_time (Makefile.am): Likewise.
4450 * m4/sys_time_h.m4: Likewise.
4451 * m4/gettimeofday.m4: Likewise.
4453 2007-03-04 Bruno Haible <bruno@clisp.org>
4455 * modules/vasnprintf-posix-tests: New file.
4456 * tests/test-vasnprintf-posix.c: New file.
4458 * modules/vasnprintf-posix: New file.
4459 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
4461 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
4462 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
4463 REPLACE_VASNPRINTF is defined.
4464 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
4466 (gl_FUNC_VASNPRINTF): Invoke it.
4467 * m4/vasnprintf-posix.m4: New file.
4468 * m4/printf.m4: New file.
4470 2007-03-04 Bruno Haible <bruno@clisp.org>
4472 Compile progreloc.c only if --enable-relocatable is specified.
4473 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
4474 if --enable-relocatable was specified.
4475 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
4478 2007-03-04 Jim Meyering <jim@meyering.net>
4480 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
4481 Use it consistently, rather than enumerating errno constants.
4483 2007-03-04 Bruno Haible <bruno@clisp.org>
4485 * modules/xvasprintf-tests: New file.
4486 * tests/test-xvasprintf.c: New file.
4488 * modules/vasprintf-tests: New file.
4489 * tests/test-vasprintf.c: New file.
4491 * modules/vasnprintf-tests: New file.
4492 * tests/test-vasnprintf.c: New file.
4494 * modules/vsnprintf-tests: New file.
4495 * tests/test-vsnprintf.c: New file.
4497 * modules/snprintf-tests: New file.
4498 * tests/test-snprintf.c: New file.
4500 2007-03-04 Bruno Haible <bruno@clisp.org>
4502 Compile relocatable.c only if --enable-relocatable is specified.
4503 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
4504 gl_RELOCATABLE_LIBRARY.
4505 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
4506 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
4507 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
4508 gl_RELOCATABLE_LIBRARY.
4509 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
4510 (Makefile.am): Remove lib_SOURCES.
4511 * modules/relocatable-lib-lgpl (configure.ac): Invoke
4512 gl_RELOCATABLE_LIBRARY.
4513 (Makefile.am): Remove lib_SOURCES.
4514 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
4516 * modules/relocatable-prog-wrapper (configure.ac): Invoke
4517 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
4519 2007-03-04 Bruno Haible <bruno@clisp.org>
4521 * modules/argmatch-tests: New file.
4522 * tests/test-argmatch.c: New file.
4524 * tests/test-allocsa.c (main): Halve the number of loop runs.
4526 * modules/alloca-opt-tests: New file.
4527 * tests/test-alloca-opt.c: New file.
4529 2007-03-04 Jim Meyering <jim@meyering.net>
4531 Work around difference between Linux ACLs and Solaris 10 ZFS.
4532 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
4535 2007-03-03 Bruno Haible <bruno@clisp.org>
4537 * modules/relocatable-prog (Depends-on): Add back progreloc's
4538 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
4540 2007-03-03 Bruno Haible <bruno@clisp.org>
4542 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
4543 * modules/relocatable-lib: New file.
4545 2007-03-03 Bruno Haible <bruno@clisp.org>
4547 * modules/relocatable-prog: Renamed from modules/relocatable.
4548 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
4550 2007-03-03 Bruno Haible <bruno@clisp.org>
4552 * modules/relocatable-script (Files): Add doc/relocatable.texi,
4553 m4/relocatable-lib.m4.
4554 (Depends-on): Remove 'relocatable'.
4555 (configure.ac): Add gl_RELOCATABLE_NOP.
4557 2007-03-03 Bruno Haible <bruno@clisp.org>
4559 * modules/relocatable-prog-wrapper: New file.
4560 * modules/relocatable (Depends-on): Add it. Remove all other
4561 dependencies except progname.
4562 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
4564 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
4565 (gl_FUNC_STRERROR): Nop.
4566 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
4568 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
4569 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
4571 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
4572 (gl_FUNC_READLINK): Update.
4574 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
4576 2007-03-03 Bruno Haible <bruno@clisp.org>
4578 * lib/xreadlink.c: Include <unistd.h> unconditionally.
4579 * modules/xreadlink (Depends-on): Add unistd.
4580 * modules/xreadlink-with-size (Depends-on): Likewise.
4582 2007-03-03 Bruno Haible <bruno@clisp.org>
4584 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
4585 extracted from gt_FUNC_SETENV.
4586 (gt_FUNC_SETENV): Remove macro.
4587 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
4588 remove gt_FUNC_SETENV.
4590 2007-03-03 Bruno Haible <bruno@clisp.org>
4592 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
4593 ENABLE_RELOCATABLE here.
4594 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
4596 2007-03-03 Bruno Haible <bruno@clisp.org>
4598 * modules/rbtreehash-list-tests (Depends-on): Add progname.
4599 * tests/test-rbtreehash_list.c: Include progname.h.
4600 (main): Call set_program_name.
4602 * modules/rbtree-oset-tests (Depends-on): Add progname.
4603 * tests/test-rbtree_oset.c: Include progname.h.
4604 (main): Call set_program_name.
4606 * modules/rbtree-list-tests (Depends-on): Add progname.
4607 * tests/test-rbtree_list.c: Include progname.h.
4608 (main): Call set_program_name.
4610 * modules/linked-list-tests (Depends-on): Add progname.
4611 * tests/test-linked_list.c: Include progname.h.
4612 (main): Call set_program_name.
4614 2007-03-03 Bruno Haible <bruno@clisp.org>
4616 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
4617 All uses of __restrict changed to _Restrict_.
4618 * lib/glob_.h (__restrict): Remove macro.
4620 2007-03-02 Bruno Haible <bruno@clisp.org>
4622 * modules/gettext (configure.ac): Require gettext infrastructure
4623 from version 0.16.1.
4625 2007-03-02 Bruno Haible <bruno@clisp.org>
4627 * modules/linkedhash-list-tests (Depends-on): Add progname.
4628 * tests/test-linkedhash_list.c: Include progname.h.
4629 (main): Call set_program_name.
4631 * modules/carray-list-tests (Depends-on): Add progname.
4632 * tests/test-carray_list.c: Include progname.h.
4633 (main): Call set_program_name.
4635 * modules/avltreehash-list-tests (Depends-on): Add progname.
4636 * tests/test-avltreehash_list.c: Include progname.h.
4637 (main): Call set_program_name.
4639 * modules/avltree-oset-tests (Depends-on): Add progname.
4640 * tests/test-avltree_oset.c: Include progname.h.
4641 (main): Call set_program_name.
4643 * modules/avltree-list-tests (Depends-on): Add progname.
4644 * tests/test-avltree_list.c: Include progname.h.
4645 (main): Call set_program_name.
4647 * modules/array-oset-tests (Depends-on): Add progname.
4648 * tests/test-array_oset.c: Include progname.h.
4649 (main): Call set_program_name.
4651 * modules/array-list-tests (Depends-on): Add progname.
4652 * tests/test-array_list.c: Include progname.h.
4653 (main): Call set_program_name.
4655 * modules/argp-tests (Depends-on): Add progname.
4656 * tests/test-argp.c: Include argp.h first. Include progname.h.
4657 (main): Call set_program_name.
4659 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
4661 * doc/gnulib-tool.texi (Initial import): Reword description of
4662 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
4663 limited effect even if defined after the first system include.
4665 2007-03-01 Bruno Haible <bruno@clisp.org>
4667 * build-aux/config.libpath: Update to libtool-1.5.22.
4668 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4670 2007-03-01 Bruno Haible <bruno@clisp.org>
4672 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
4674 Reported by Ralf Wildenhues.
4676 2007-03-01 Bruno Haible <bruno@clisp.org>
4678 * build-aux/install-reloc: Remove object files left over by some
4680 Reported by Ralf Wildenhues.
4682 2007-03-01 Bruno Haible <bruno@clisp.org>
4684 * build-aux/install-reloc: Break long lines.
4686 2007-03-01 Bruno Haible <bruno@clisp.org>
4688 * doc/relocatable.texi: Document that it may not work on OpenBSD.
4689 Reported by Ralf Wildenhues.
4691 2007-03-01 Bruno Haible <bruno@clisp.org>
4693 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
4694 include ordering constraints.
4696 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
4698 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
4699 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
4700 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
4702 * lib/time_.h: Fix misspelling.
4703 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4704 Require gl_HEADER_TIME_H_DEFAULTS.
4705 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
4706 * m4/time_r.m4 (gl_TIME_R): Likewise.
4707 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
4709 2007-03-01 Bruno Haible <bruno@clisp.org>
4711 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
4712 * m4/utimens.m4 (gl_UTIMENS): Likewise.
4714 2007-03-01 Jim Meyering <jim@meyering.net>
4716 * modules/xreadlink (Maintainer): Add my name.
4717 * modules/xreadlink-with-size (Depends-on): Alphabetize.
4719 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
4720 Bruno Haible <bruno@clisp.org>
4722 * build-aux/install-reloc: Compile also c-ctype.c.
4723 * build-aux/relocatable.sh.in: New file.
4724 * doc/relocatable.texi: New file.
4725 * doc/relocatable-maint.texi: New file.
4726 * doc/gnulib.texi: Include relocatable-maint.texi.
4727 * lib/progreloc.c: Include unistd.h unconditionally.
4728 * lib/relocwrapper.c: Include unistd.h unconditionally.
4730 (add_dotbin): Use c_tolower.
4731 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
4732 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
4733 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
4734 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
4735 to m4/relocatable-lib.m4.
4736 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
4737 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
4738 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
4739 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
4740 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
4741 * modules/relocatable: New file.
4742 * modules/relocatable-lib: New file.
4743 * modules/relocatable-script: New file.
4745 2007-02-28 Bruno Haible <bruno@clisp.org>
4747 Import --enable-relocatable infrastructure.
4748 * build-aux/config.libpath: New file, from GNU gettext.
4749 * build-aux/install-reloc: New file, from GNU gettext.
4750 * build-aux/reloc-ldflags: New file, from GNU gettext.
4751 * lib/relocatable.h: New file, from GNU gettext.
4752 * lib/relocatable.c: New file, from GNU gettext.
4753 * lib/relocwrapper.c: New file, from GNU gettext.
4754 * m4/relocatable.m4: New file, from GNU gettext.
4756 2007-02-28 Bruno Haible <bruno@clisp.org>
4758 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
4760 * modules/xreadlink: New file, from GNU gettext with modifications.
4761 * lib/xreadlink.c: New file, from GNU gettext.
4762 * lib/xreadlink.h: Add comments.
4763 (xreadlink): New declaration.
4765 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
4766 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
4767 lib/xreadlink-with-size.c.
4768 (configure.ac): Remove gl_XREADLINK invocation.
4769 (Makefile.am): Augment lib_SOURCES.
4770 * m4/xreadlink.m4: Remove file.
4771 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
4772 (xreadlink_with_size): Renamed from xreadink.
4773 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
4774 * modules/canonicalize (Depends-on): Replace xreadlink with
4775 xreadlink-with-size.
4776 * lib/canonicalize.c (canonicalize_filename_mode): Update.
4778 2007-02-25 Jim Meyering <jim@meyering.net>
4780 * build-aux/announce-gen: When complaining about excess arguments,
4783 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
4785 * README: Document signed integer overflow situation more
4788 2007-02-25 Bruno Haible <bruno@clisp.org>
4790 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
4791 'a' or 'A' conversion.
4793 2007-02-25 Bruno Haible <bruno@clisp.org>
4795 * modules/filename: Renamed from modules/pathname.
4796 (Files): Replace lib/pathname.h with lib/filename.h. Replace
4797 lib/concatpath.c with lib/concat-filename.c.
4798 (Makefile.am): Update.
4799 (Include): Replace pathname.h with filename.h.
4800 * lib/filename.h: Renamed from lib/pathname.h.
4801 (concatenated_filename): Renamed from concatenated_pathname.
4802 * lib/concat-filename.c: Renamed from lib/concatpath.c.
4803 (concatenated_filename): Renamed from concatenated_pathname.
4804 * lib/findprog.c: Include filename.h instead of pathname.h.
4805 (find_in_path): Update.
4806 * lib/javacomp.c: Include filename.h instead of pathname.h.
4807 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
4808 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
4809 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
4810 is_oldgcj_14_13_usable, is_javac_usable): Update.
4811 * lib/javaexec.c: Include filename.h instead of pathname.h.
4812 (execute_java_class): Update.
4813 * modules/findprog: Update.
4814 * modules/javacomp: Update.
4815 * modules/javaexec: Update.
4816 * MODULES.html.sh (File system functions): Add 'filename', remove
4819 2007-02-25 Bruno Haible <bruno@clisp.org>
4821 * modules/printf-frexpl-tests: New file.
4822 * tests/test-printf-frexpl.c: New file.
4824 * modules/printf-frexpl: New file.
4825 * lib/printf-frexpl.h: New file.
4826 * lib/printf-frexpl.c: New file.
4827 * m4/printf-frexpl.m4: New file.
4829 2007-02-25 Bruno Haible <bruno@clisp.org>
4831 * modules/printf-frexp-tests: New file.
4832 * tests/test-printf-frexp.c: New file.
4834 * modules/printf-frexp: New file.
4835 * lib/printf-frexp.h: New file.
4836 * lib/printf-frexp.c: New file.
4837 * m4/printf-frexp.m4: New file.
4839 2007-02-25 Bruno Haible <bruno@clisp.org>
4841 Assume automake >= 1.10 for the tests.
4842 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
4843 * modules/arctwo-tests: Likewise.
4844 * modules/argp-tests: Likewise.
4845 * modules/avltree-list-tests: Likewise.
4846 * modules/avltree-oset-tests: Likewise.
4847 * modules/avltreehash-list-tests: Likewise.
4848 * modules/carray-list-tests: Likewise.
4849 * modules/crc-tests: Likewise.
4850 * modules/des-tests: Likewise.
4851 * modules/gc-arcfour-tests: Likewise.
4852 * modules/gc-arctwo-tests: Likewise.
4853 * modules/gc-des-tests: Likewise.
4854 * modules/gc-hmac-md5-tests: Likewise.
4855 * modules/gc-hmac-sha1-tests: Likewise.
4856 * modules/gc-md2-tests: Likewise.
4857 * modules/gc-md4-tests: Likewise.
4858 * modules/gc-md5-tests: Likewise.
4859 * modules/gc-pbkdf2-sha1-tests: Likewise.
4860 * modules/gc-rijndael-tests: Likewise.
4861 * modules/gc-sha1-tests: Likewise.
4862 * modules/gc-tests: Likewise.
4863 * modules/getaddrinfo-tests: Likewise.
4864 * modules/hmac-md5-tests: Likewise.
4865 * modules/hmac-sha1-tests: Likewise.
4866 * modules/linked-list-tests: Likewise.
4867 * modules/linkedhash-list-tests: Likewise.
4868 * modules/lock-tests: Likewise.
4869 * modules/md2-tests: Likewise.
4870 * modules/md4-tests: Likewise.
4871 * modules/md5-tests: Likewise.
4872 * modules/rbtree-list-tests: Likewise.
4873 * modules/rbtree-oset-tests: Likewise.
4874 * modules/rbtreehash-list-tests: Likewise.
4875 * modules/read-file-tests: Likewise.
4876 * modules/rijndael-tests: Likewise.
4877 * modules/stdint-tests: Likewise.
4878 * modules/tls-tests: Likewise.
4880 2007-02-24 Bruno Haible <bruno@clisp.org>
4882 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
4883 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
4884 function; instead check whether isnan with a double argument links.
4885 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
4886 function; instead check whether isnan with a 'long double' argument
4888 Reported by Eric Blake <ebb9@byu.net>.
4890 2007-02-24 Bruno Haible <bruno@clisp.org>
4892 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
4894 * lib/isnanl.c: Remove all code. Just include isnan.c.
4895 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
4897 2007-02-25 Jim Meyering <jim@meyering.net>
4899 Avoid conflicting types for 'unsetenv' on FreeBSD.
4900 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
4901 conflicting with FreeBSD's (5.0 and 6.1) function declaration
4904 2007-02-24 Bruno Haible <bruno@clisp.org>
4906 * modules/isnanl-nolibm-tests: New file.
4907 * tests/test-isnanl.c: New file.
4909 * modules/isnanl-nolibm: New file.
4910 * lib/isnanl.h: New file.
4911 * lib/isnanl.c: New file.
4912 * m4/isnanl.m4: New file.
4914 2007-02-24 Bruno Haible <bruno@clisp.org>
4916 * modules/isnan-nolibm-tests: New file.
4917 * tests/test-isnan.c: New file.
4919 * modules/isnan-nolibm: New file.
4920 * lib/isnan.h: New file.
4921 * lib/isnan.c: New file.
4922 * m4/isnan.m4: New file.
4924 2007-02-24 Bruno Haible <bruno@clisp.org>
4926 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
4927 assume that an exponent fits in 20 bits.
4929 2007-02-24 Jim Meyering <jim@meyering.net>
4931 * m4/regex.m4: Update the description of the configure-time option,
4932 --without-included-regex, to state accurately what the defaults are,
4933 and perhaps to give people an idea why using this option is risky.
4935 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
4937 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
4938 loops on small arguments. This attempts to avoid the problem
4939 Bruno Haible reported for AIX 4.3.2 in
4940 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
4942 2007-02-23 Bruno Haible <bruno@clisp.org>
4944 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
4945 Needed for help2man.
4947 2007-02-23 Karl Berry <karl@gnu.org>
4949 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
4950 exists, foo.h should be cvs-ignored, not committed.
4952 2007-02-23 Eric Blake <ebb9@byu.net>
4954 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
4955 * lib/stat-time.h (includes): Likewise.
4956 * lib/utimecmp.c (includes): Likewise.
4957 * lib/utimens.h (includes): Likewise.
4958 * lib/getdate.y (includes): Also include "timespec.h" for use
4959 internal to the module.
4960 * modules/utimens (Depends-on): Revert yesterday's patch.
4961 * modules/nanosleep (Depends-on): Add missing dependency.
4963 2007-02-22 Bruno Haible <bruno@clisp.org>
4965 * lib/glob.c: Don't include getlogin_r.h.
4967 2007-02-22 Jim Meyering <jim@meyering.net>
4969 * modules/utimens (Depends-on): Add timespec, required for
4970 utimens.h's inclusion of timespec.h.
4972 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
4974 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
4975 long unreadable paths in GNU/Linux. Problem reported by Andreas
4977 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
4978 I'll try to think of a better way to fix the Solaris problem.
4980 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
4981 like glibc; on Solaris 10, it fails with errno == EINVAL.
4982 POSIX says the behavior is unspecified if the first argument is NULL,
4983 so play it safe and never pass NULL to the system getcwd.
4985 2007-02-21 Jim Meyering <jim@meyering.net>
4987 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
4988 of gettimeofday. It would conflict with the one now always
4989 provided via sys_time_.h. Reported by Matthew Woehlke, as
4990 an IRIX 6.5 build failure.
4992 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
4994 Minor fixups to port to Solaris 10 with Sun C 5.8.
4995 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
4996 * modules/getcwd (Depends-on): Add dirfd.
4997 * lib/putenv.c (putenv): #undef it.
4998 (rpl_putenv): New decl.
4999 (malloc, free): Include <stdlib.h> rather than prototyping separately.
5001 2007-02-20 Bruno Haible <bruno@clisp.org>
5003 * modules/stdio-tests: New file.
5004 * tests/test-stdio.c: New file.
5006 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
5007 (Depends-on): Add stdio.
5008 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5009 (Include): Use <stdio.h> instead of vsnprintf.h.
5010 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5011 HAVE_DECL_VSNPRINTF.
5012 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
5014 * modules/snprintf (Files): Remove lib/snprintf.h.
5015 (Depends-on): Add stdio.
5016 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5017 (Include): Use <stdio.h> instead of snprintf.h.
5018 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
5020 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
5021 * lib/getaddrinfo.c: Likewise.
5023 * modules/stdio: New file.
5024 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
5025 * lib/snprintf.h: Remove file.
5026 * lib/vsnprintf.h: Remove file.
5027 * lib/.cppi-disable: Remove snprintf.h.
5028 * m4/stdio_h.m4: New file.
5029 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
5031 2007-02-20 Jim Meyering <jim@meyering.net>
5033 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
5034 used by e.g., mingw. From Bruno Haible.
5036 2007-02-19 Bruno Haible <bruno@clisp.org>
5038 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
5040 Reported by Ben Pfaff <blp@cs.stanford.edu>.
5042 2007-02-19 Bruno Haible <bruno@clisp.org>
5044 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
5047 2007-02-19 Bruno Haible <bruno@clisp.org>
5049 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
5051 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
5053 2007-02-19 Jim Meyering <jim@meyering.net>
5055 Don't use FD after a successful "fdopendir (fd)".
5056 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
5057 Reset it by calling dirfd on the just-obtained DIR*.
5059 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
5060 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
5062 2007-02-18 Bruno Haible <bruno@clisp.org>
5064 * lib/readlink.c: Include <unistd.h>.
5065 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
5067 * modules/readlink (Depends-on): Add unistd.
5068 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5069 (Include): Add <unistd.h>.
5071 * lib/getlogin_r.h: Remove file.
5072 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
5073 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
5074 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
5075 HAVE_DECL_GETLOGIN_R.
5076 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
5077 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5078 (Include): Use <unistd.h> instead of getlogin_r.h.
5080 * lib/getcwd.h: Remove file.
5081 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
5082 * lib/xgetcwd.c: Likewise.
5083 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
5084 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
5085 * modules/getcwd (Files): Remove lib/getcwd.h.
5086 (Depends-on): Add unistd.
5087 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5088 (Include): Use <unistd.h> instad of getcwd.h.
5090 * lib/ftruncate.c: Include <unistd.h> first.
5091 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
5093 * modules/ftruncate (Depends-on): Add unistd.
5094 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5096 * lib/fchdir.c: Include <unistd.h> first.
5097 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
5098 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
5099 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
5100 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5101 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
5103 * lib/dup2.c: Include <unistd.h> first.
5104 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
5106 * modules/dup2 (Depends-on): Add unistd.
5107 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5109 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
5110 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
5111 REPLACE_CHOWN. Don't define chown as a macro here.
5112 * modules/chown (Depends-on): Add unistd.
5113 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5115 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
5116 Add definition for GL_LINK_WARNING.
5117 (chown, dup2): New declarations.
5118 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
5120 (ftruncate): New declaration.
5121 (getcwd): New declaration, taken from old getcwd.h.
5122 (getlogin_r): New declaration, taken from old getlogin_r.h.
5123 (readlink): New declaration.
5124 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
5125 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
5126 (gl_PREREQ_UNISTD): Remove macro.
5127 (gl_UNISTD_MODULE_INDICATOR): New macro.
5128 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
5129 many new variables. Don't set UNISTD_H.
5130 * modules/unistd (Description): Change.
5131 (Depends-on): Add link-warning.
5132 (configure.ac): Update.
5133 (Makefile.am): Create unistd.h always. Substitute many new variables
5136 2007-02-18 Bruno Haible <bruno@clisp.org>
5138 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
5139 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
5141 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
5142 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
5143 * lib/getsubopt.h: Remove file.
5144 * modules/getsubopt (Files): Remove lib/getsubopt.h.
5145 (Depends-on): Add stdlib.
5146 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5147 (Includes): Use <stdlib.h> instead of getsubopt.h.
5148 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
5150 * lib/getsubopt.c: Don't include getsubopt.h.
5152 2007-02-18 Bruno Haible <bruno@clisp.org>
5154 * modules/fchdir (Depends-on): Add dup2.
5156 2007-02-18 Bruno Haible <bruno@clisp.org>
5158 * lib/stdlib_.h: Handle glibc's special invocation convention
5161 2007-02-18 Bruno Haible <bruno@clisp.org>
5163 * modules/stdlib-tests: New file.
5164 * tests/test-stdlib.c: New file.
5166 * modules/mkstemp (Files): Remove lib/mkstemp.h.
5167 (Depends-on): Add stdlib.
5168 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5169 (Includes): Use <stdlib.h> instead of mkstemp.h.
5170 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5171 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
5172 * lib/mkstemp.c: Don't include mkstemp.h.
5173 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
5174 * lib/stdlib--.h: Don't include mkstemp.h.
5176 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
5177 (Depends-on): Add stdlib.
5178 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5179 (Includes): Use <stdlib.h> instead of mkdtemp.h.
5180 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
5182 * lib/mkdtemp.c: Don't include mkdtemp.h.
5183 * lib/clean-temp.c: Don't include mkdtemp.h.
5185 * modules/exit (Files): Remove lib/exit.h.
5186 (Depends-on): Add stdlib.
5187 (Makefile.am): Remove lib_SOURCES.
5188 (Include): Use <stdlib.h> instead of exit.h.
5189 * lib/argmatch.c: Don't include exit.h.
5190 * lib/execute.c: Likewise.
5191 * lib/pagealign_alloc.c: Likewise.
5192 * lib/pipe.c: Likewise.
5193 * lib/wait-process.c: Likewise.
5194 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
5195 * lib/exitfail.c: Likewise.
5196 * lib/savewd.c: Likewise.
5197 * lib/xsetenv.c: Likewise.
5199 * modules/stdlib: New file.
5200 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
5201 and extra comments about mkstemp().
5202 * lib/exit.h: Remove file.
5203 * lib/mkdtemp.h: Remove file.
5204 * lib/mkstemp.h: Remove file.
5205 * m4/stdlib_h.m4: New file.
5206 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
5208 2007-02-18 Bruno Haible <bruno@clisp.org>
5210 * modules/math-tests: New file.
5211 * tests/test-math.c: New file.
5213 * modules/math: New file.
5214 * modules/mathl (Files): Remove lib/mathl.h.
5215 (Depends-on): Add math.
5216 (Makefile.am): Don't mention mathl.h.
5217 (Include): Use <math.h> instead of mathl.h.
5218 * lib/math_.h: New file.
5219 * lib/mathl.h: Remove file.
5220 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
5222 * lib/asinl.c: Likewise.
5223 * lib/atanl.c: Likewise.
5224 * lib/ceill.c: Likewise.
5225 * lib/cosl.c: Likewise.
5226 * lib/expl.c: Likewise.
5227 * lib/floorl.c: Likewise.
5228 * lib/frexpl.c: Likewise.
5229 * lib/ldexpl.c: Likewise.
5230 * lib/logl.c: Likewise.
5231 * lib/sincosl.c: Likewise.
5232 * lib/sinl.c: Likewise.
5233 * lib/sqrtl.c: Likewise.
5234 * lib/tanl.c: Likewise.
5235 * lib/trigl.c: Likewise.
5236 * m4/math_h.m4: New file.
5237 * MODULES.html.sh (Mathematics): Add math.
5239 2007-02-17 Bruno Haible <bruno@clisp.org>
5241 * modules/wctype-tests: New file.
5242 * tests/test-wctype.c: New file.
5244 * modules/wchar-tests: New file.
5245 * tests/test-wchar.c: New file.
5247 * modules/unistd-tests: New file.
5248 * tests/test-unistd.c: New file.
5250 * modules/time-tests: New file.
5251 * tests/test-time.c: New file.
5253 * modules/sysexits-tests: New file.
5254 * tests/test-sysexits.c: New file.
5256 * modules/sys_time-tests: New file.
5257 * tests/test-sys_time.c: New file.
5259 * modules/sys_stat-tests: New file.
5260 * tests/test-sys_stat.c: New file.
5262 * modules/sys_socket-tests: New file.
5263 * tests/test-sys_socket.c: New file.
5265 * modules/sys_select-tests: New file.
5266 * tests/test-sys_select.c: New file.
5268 * modules/string-tests: New file.
5269 * tests/test-string.c: New file.
5271 * modules/stdbool-tests: New file.
5272 * tests/test-stdbool.c: New file.
5274 * modules/netinet_in-tests: New file.
5275 * tests/test-netinet_in.c: New file.
5277 * modules/inttypes-tests: New file.
5278 * tests/test-inttypes.c: New file.
5280 * modules/fcntl-tests: New file.
5281 * tests/test-fcntl.c: New file.
5283 * modules/byteswap-tests: New file.
5284 * tests/test-byteswap.c: New file.
5286 * modules/arpa_inet-tests: New file.
5287 * tests/test-arpa_inet.c: New file.
5289 2007-02-17 Bruno Haible <bruno@clisp.org>
5291 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
5292 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
5293 if the corresponding module is not enabled. Emit link warnings if
5294 the function is used nevertheless.
5295 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
5296 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
5297 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
5298 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
5299 * modules/inttypes (Depends-on): Add link-warning.
5300 (Makefile.am): Copy the contents of build-aux/link-warning.h into
5301 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
5302 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
5303 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
5304 * modules/imaxdiv (configure.ac): Likewise.
5305 * modules/strtoimax (configure.ac): Likewise.
5306 * modules/strtoumax (configure.ac): Likewise.
5308 2007-02-17 Bruno Haible <bruno@clisp.org>
5310 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
5311 gl_STRING_MODULE_INDICATOR_DEFAULTS.
5312 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
5313 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
5315 2007-02-17 Bruno Haible <bruno@clisp.org>
5317 * modules/link-warning: New file.
5318 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
5319 * lib/string_.h (GL_LINK_WARNING): Remove definition.
5320 * modules/string (Depends-on): Add link-warning.
5321 (Makefile.am): Copy the contents of build-aux/link-warning.h into
5323 * MODULES.html.sh (Support for building libraries and executables): Add
5326 2007-02-17 Bruno Haible <bruno@clisp.org>
5328 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
5329 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
5330 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
5333 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
5334 Bruno Haible <bruno@clisp.org>
5336 * modules/tmpfile: New file.
5337 * lib/tmpfile.c: New file.
5338 * m4/tmpfile.m4: New file.
5339 * MODULES.html.sh (func_all_modules): New section "Input/output".
5341 2007-02-15 Bruno Haible <bruno@clisp.org>
5343 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
5344 (supports_delete_on_close): New function.
5345 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
5347 2007-02-14 Bruno Haible <bruno@clisp.org>
5349 * modules/mbspcasecmp-tests: New file.
5350 * tests/test-mbspcasecmp.sh: New file.
5351 * tests/test-mbspcasecmp.c: New file.
5353 New module mbspcasecmp.
5354 * modules/mbspcasecmp: New file.
5355 * lib/mbspcasecmp.c: New file.
5356 * lib/string_.h (strncasecmp): Change warning message.
5357 (mbspcasecmp): New declaration.
5358 * m4/mbspcasecmp.m4: New file.
5359 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5361 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
5362 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
5364 2007-02-14 Bruno Haible <bruno@clisp.org>
5366 * modules/mbsncasecmp-tests: New file.
5367 * tests/test-mbsncasecmp.sh: New file.
5368 * tests/test-mbsncasecmp.c: New file.
5370 New module mbsncasecmp.
5371 * modules/mbsncasecmp: New file.
5372 * lib/mbsncasecmp.c: New file.
5373 * lib/string_.h (mbsncasecmp): New declaration.
5374 * m4/mbsncasecmp.m4: New file.
5375 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5377 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
5378 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
5380 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
5382 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
5383 Verify that it doesn't overlap with our flags.
5384 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
5385 do not have the desired effect in multibyte locales; instead, use
5387 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
5388 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
5389 we don't require GNU fnmatch ourselves (if our users require it, they
5390 should do so explicitly).
5392 Fix regex code so it doesn't rely on strcasecmp.
5393 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
5394 Otherwise, include gnulib's langinfo.h.
5395 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
5396 undesirable behavior in non-C locales. Instead, rely on localecharset.
5397 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
5398 * modules/regex (FILES): Remove m4/codeset.m4.
5399 (Depends-on): Add localcharset. Remove strcase.
5401 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5403 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
5404 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
5406 2007-02-13 Bruno Haible <bruno@clisp.org>
5408 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
5409 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5411 2007-02-12 Bruno Haible <bruno@clisp.org>
5413 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5414 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
5415 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
5416 time warning rather than a link error.
5418 2007-02-12 Bruno Haible <bruno@clisp.org>
5420 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
5421 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5422 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5424 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
5426 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
5429 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
5431 New module 'time', so that apps can include <time.h> as per
5432 POSIX and GNU instead of separate include files like time_r.h
5433 and timegm.h. This implementation tries out a simpler approach
5434 for replacing decls in standard include files (as compared to
5435 the string module), somewhat as an experiment.
5437 * config/srclist.txt: Comment out mktime.c for now.
5438 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
5439 since it doesn't apply any more. Use generic wording instead.
5440 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
5442 * lib/time_.h, m4/time_h.m4, modules/time: New files.
5443 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
5444 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
5445 Don't include <sys/types.h>; no longer needed since we assume C89.
5446 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
5447 * lib/strftime.c: Likewise.
5448 * lib/time_r.c: Likewise.
5449 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
5450 * lib/nanosleep.c: Include <time.h> first, to check interface.
5451 * lib/strptime.c: Likewise.
5452 * lib/time_r.c: Likewise.
5453 * lib/timegm.c: Likewise.
5454 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
5456 * lib/timegm.c: Don't include timegm.h; no longer needed.
5457 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
5458 time.h now handles any problems in that area.
5459 (struct timespec, nanosleep): Remove; time.h now arranges for these.
5460 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
5461 that time.h defines struct timespec.
5462 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
5463 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
5465 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
5466 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
5467 needed. Set REPLACE_LOCALTIME.
5468 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
5469 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
5470 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
5471 nanosleep; time_h.m4 now does that. Don't require
5472 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
5473 module handles this now.
5474 * modules/getdate (Depends-on): Remove timespec. Add time.
5475 * modules/nanosleep (Depends-on): Likewise.
5476 * modules/stat-time (Depends-on): Likewise.
5477 * modules/nanosleep (Include): Include time.h, not timespec.h.
5478 * modules/strptime (Files): Remove lib/strptime.h.
5479 (Depends-on): Add extensions, time.
5480 (Include): Include time.h, not strptime.h.
5481 * modules/time_r (Files): Remove lib/time_r.h.
5482 (Depends-on): Add time.
5483 (Include): Include time.h, not time_r.h.
5484 * modules/timegm: Likewise.
5485 * modules/timespec (Description): Now does timespec-related decls
5486 of our own, instead of struct timespec itself.
5487 (Depends-on): Add time; remove extensions.
5488 (Maintainer): Add self.
5489 * modules/utimecmp (Depends-on): Add time; remove timespec.
5490 * modules/utimens (Depends-on): Likewise.
5491 * modules/xnanosleep (Depends-on): Likewise.
5493 2007-02-11 Bruno Haible <bruno@clisp.org>
5495 * lib/c-strstr.c: Include allocsa.h.
5496 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5497 * lib/c-strcasestr.c: Include allocsa.h.
5498 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5499 * lib/strcasestr.c: Include allocsa.h.
5500 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
5501 * lib/mbsstr.c: Include allocsa.h.
5502 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5503 allocsa/freesa instead of malloc/free.
5504 * lib/mbscasestr.c: Include allocsa.h.
5505 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
5506 allocsa/freesa instead of malloc/free.
5507 * modules/c-strstr (Depends-on): Add allocsa.
5508 * modules/c-strcasestr (Depends-on): Likewise.
5509 * modules/strcasestr (Depends-on): Likewise.
5510 * modules/mbsstr (Depends-on): Likewise.
5511 * modules/mbscasestr (Depends-on): Likewise.
5513 2007-02-11 Bruno Haible <bruno@clisp.org>
5515 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
5517 * modules/mbsspn-tests: New file.
5518 * tests/test-mbsspn.sh: New file.
5519 * tests/test-mbsspn.c: New file.
5521 2007-02-11 Bruno Haible <bruno@clisp.org>
5523 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
5525 * modules/mbspbrk-tests: New file.
5526 * tests/test-mbspbrk.sh: New file.
5527 * tests/test-mbspbrk.c: New file.
5529 2007-02-11 Bruno Haible <bruno@clisp.org>
5531 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
5534 * modules/mbscspn-tests: New file.
5535 * tests/test-mbscspn.sh: New file.
5536 * tests/test-mbscspn.c: New file.
5538 2007-02-11 Bruno Haible <bruno@clisp.org>
5540 * modules/mbscasecmp-tests: New file.
5541 * tests/test-mbscasecmp.sh: New file.
5542 * tests/test-mbscasecmp.c: New file.
5544 2007-02-11 Bruno Haible <bruno@clisp.org>
5546 Ensure O(n) worst-case complexity of mbscasestr.
5547 * lib/mbscasestr.c: Include stdbool.h.
5548 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5550 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
5551 the bookkeeping indicates that it's worth it.
5552 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
5554 * modules/mbscasestr-tests: New file.
5555 * tests/test-mbscasestr1.c: New file.
5556 * tests/test-mbscasestr2.sh: New file.
5557 * tests/test-mbscasestr2.c: New file.
5558 * tests/test-mbscasestr3.sh: New file.
5559 * tests/test-mbscasestr3.c: New file.
5560 * tests/test-mbscasestr4.sh: New file.
5561 * tests/test-mbscasestr4.c: New file.
5562 * m4/locale-tr.m4: New file.
5564 2007-02-11 Bruno Haible <bruno@clisp.org>
5566 Ensure O(n) worst-case complexity of mbsstr.
5567 * lib/mbsstr.c: Include stdbool.h.
5568 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
5570 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
5571 bookkeeping indicates that it's worth it.
5572 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
5574 * modules/mbsstr-tests: New file.
5575 * tests/test-mbsstr1.c: New file.
5576 * tests/test-mbsstr2.sh: New file.
5577 * tests/test-mbsstr2.c: New file.
5578 * tests/test-mbsstr3.sh: New file.
5579 * tests/test-mbsstr3.c: New file.
5580 * m4/locale-fr.m4: New file.
5582 2007-02-11 Bruno Haible <bruno@clisp.org>
5584 * lib/mbsrchr.c (mbsrchr): Fix bug.
5586 * modules/mbsrchr-tests: New file.
5587 * tests/test-mbsrchr.sh: New file.
5588 * tests/test-mbsrchr.c: New file.
5590 2007-02-11 Bruno Haible <bruno@clisp.org>
5592 * lib/mbschr.c (mbschr): Fix bug.
5594 * modules/mbschr-tests: New file.
5595 * tests/test-mbschr.sh: New file.
5596 * tests/test-mbschr.c: New file.
5597 * m4/locale-zh.m4: New file.
5599 2007-02-11 Bruno Haible <bruno@clisp.org>
5601 Support for copying multibyte string iterators.
5602 * lib/mbiter.h: Include <string.h>.
5603 (mbiter_multi_copy): New function.
5604 (mbi_copy): New macro.
5605 * lib/mbuiter.h: Include <string.h>.
5606 (mbuiter_multi_copy): New function.
5607 (mbui_copy): New macro.
5609 2007-02-11 Bruno Haible <bruno@clisp.org>
5612 * modules/mbslen: New file.
5613 * lib/mbslen.c: New file.
5614 * lib/string_.h (mbslen): New declaration.
5615 * m4/mbslen.m4: New file.
5616 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5618 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
5619 * MODULES.html.sh (Internationalization functions): Add mbslen.
5621 2007-02-11 Bruno Haible <bruno@clisp.org>
5623 Ensure O(n) worst-case complexity of strcasestr substitute.
5624 * lib/strcasestr.c: Include stdbool.h.
5625 (knuth_morris_pratt): New function.
5626 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5627 bookkeeping indicates that it's worth it.
5628 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
5630 * modules/strcasestr-tests: New file.
5631 * tests/test-strcasestr.c: New file.
5633 2007-02-11 Bruno Haible <bruno@clisp.org>
5635 Ensure O(n) worst-case complexity of c_strcasestr.
5636 * lib/c-strcasestr.c: Include stdbool.h, string.h.
5637 (knuth_morris_pratt): New function.
5638 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
5639 the bookkeeping indicates that it's worth it.
5640 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
5642 * modules/c-strcasestr-tests: New file.
5643 * tests/test-c-strcasestr.c: New file.
5645 2007-02-11 Bruno Haible <bruno@clisp.org>
5647 Ensure O(n) worst-case complexity of c_strstr.
5648 * lib/c-strstr.c: Include stdbool.h, string.h.
5649 (knuth_morris_pratt): New function.
5650 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
5651 bookkeeping indicates that it's worth it.
5652 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
5654 * lib/c-strstr.c: Complete rewrite for maintainability.
5656 * modules/c-strstr-tests: New file.
5657 * tests/test-c-strstr.c: New file.
5659 2007-02-11 Bruno Haible <bruno@clisp.org>
5661 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
5662 5.2.1 and earlier, whereby \055 was treated just like the range
5664 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
5666 2007-02-08 Bruno Haible <bruno@clisp.org>
5668 * modules/regex (Depends-on): Add stdbool.
5669 Reported by Dalibor Topic <robilad@kaffe.org>.
5671 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
5673 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
5674 Prefer returning from main to exiting from it.
5675 Remove unnecessary parens after sizeof.
5677 2007-02-05 Bruno Haible <bruno@clisp.org>
5680 * modules/mbssep: New file.
5681 * lib/mbssep.c: New file.
5682 * lib/string_.h (strsep): Add a conditional link warning.
5683 (mbssep): New declaration.
5684 * m4/mbssep.m4: New file.
5685 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5687 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
5688 * MODULES.html.sh (Internationalization functions): Add mbssep.
5690 2007-02-05 Bruno Haible <bruno@clisp.org>
5692 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
5693 Optimize search in case of 1 delimiter.
5695 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
5697 * lib/acl.h: Include sys/types.h before sys/acl.h.
5699 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
5701 Merge upstream fix for glibc bugzilla #3957:
5703 2007-02-05 Jakub Jelinek <jakub@redhat.com>
5705 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
5706 bit for RE_HAT_LISTS_NOT_NEWLINE.
5707 (build_charclass_op): Remove bogus comment.
5709 2007-02-05 Simon Josefsson <simon@josefsson.org>
5711 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
5713 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
5715 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
5716 * lib/memmem.c [!defined _LIBC]: Include config.h.
5718 2007-02-04 Bruno Haible <bruno@clisp.org>
5720 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
5723 2007-02-04 Bruno Haible <bruno@clisp.org>
5725 New module mbstok_r.
5726 * modules/mbstok_r: New file.
5727 * lib/mbstok_r.c: New file.
5728 * lib/string_.h (strtok_r): Change argument names to match the
5729 comments. Add a conditional link warning.
5730 (mbstok_r): New declaration.
5731 * m4/mbstok_r.m4: New file.
5732 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5734 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
5735 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
5737 2007-02-04 Bruno Haible <bruno@clisp.org>
5740 * modules/mbsspn: New file.
5741 * lib/mbsspn.c: New file.
5742 * lib/string_.h (strspn): Add a conditional link warning.
5743 (mbsspn): New declaration.
5744 * m4/mbsspn.m4: New file.
5745 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5747 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
5748 * MODULES.html.sh (Internationalization functions): Add mbsspn.
5750 2007-02-04 Bruno Haible <bruno@clisp.org>
5753 * modules/mbspbrk: New file.
5754 * lib/mbspbrk.c: New file.
5755 * lib/string_.h (strpbrk): Add a conditional link warning.
5756 (mbspbrk): New declaration.
5757 * m4/mbspbrk.m4: New file.
5758 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5760 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
5761 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
5763 2007-02-04 Bruno Haible <bruno@clisp.org>
5766 * modules/mbscspn: New file.
5767 * lib/mbscspn.c: New file.
5768 * lib/string_.h (strcspn): Add a conditional link warning.
5769 (mbscspn): New declaration.
5770 * m4/mbscspn.m4: New file.
5771 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5773 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
5774 * MODULES.html.sh (Internationalization functions): Add mbscspn.
5776 2007-02-04 Bruno Haible <bruno@clisp.org>
5778 New module mbscasestr, reduced goal of strcasestr.
5779 * modules/mbscasestr: New file.
5780 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
5781 (mbscasestr): Renamed from strcasestr.
5782 * lib/strcasestr.c: Don't include mbuiter.h.
5783 (strcasestr): Remove support for multibyte locales.
5784 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
5785 Change the conditional link warning.
5786 (mbscasestr): New declaration.
5787 * m4/mbscasestr.m4: New file.
5788 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
5789 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
5791 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
5792 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5793 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5794 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
5795 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
5796 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
5797 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
5798 (Depends-on): Remove mbuiter.
5799 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
5801 2007-02-04 Bruno Haible <bruno@clisp.org>
5803 Simplify handling of strncasecmp.
5804 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
5805 the conditional link warning.
5806 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5807 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
5808 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
5809 * modules/strcase (configure.ac): Don't invoke
5810 gl_STRING_MODULE_INDICATOR.
5811 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
5813 2007-02-04 Bruno Haible <bruno@clisp.org>
5815 New module mbscasecmp, reduced goal of strcasecmp.
5816 * modules/mbscasecmp: New file.
5817 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
5818 (mbscasecmp): Renamed from strcasecmp.
5819 * lib/strcasecmp.c: Don't include mbuiter.h.
5820 (strcasecmp): Remove support for multibyte locales.
5821 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
5822 Change the conditional link warning.
5823 (mbscasecmp): New declaration.
5824 * m4/mbscasecmp.m4: New file.
5825 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
5826 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
5828 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
5829 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5831 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
5832 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
5833 * modules/strcase (Files): Remove m4/mbrtowc.m4.
5834 (Depends-on): Remove mbuiter.
5835 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
5837 2007-02-04 Bruno Haible <bruno@clisp.org>
5839 New module mbsstr. Remove module strstr.
5840 * modules/mbsstr: New file.
5841 * modules/strstr: Remove file.
5842 * lib/mbsstr.c: Renamed from lib/strstr.c.
5843 (mbsstr): Renamed from strstr.
5844 * lib/string_.h (strstr): Remove declaration. Change the conditional
5846 (mbsstr): New declaration.
5847 * m4/mbsstr.m4: New file.
5848 * m4/strstr.m4: Remove file.
5849 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5851 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
5852 Don't initialize GNULIB_STRSTR.
5853 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
5854 substitute GNULIB_STRSTR and REPLACE_STRSTR.
5855 * MODULES.html.sh (Internationalization functions): Add mbsstr.
5856 (Support for systems lacking ANSI C 89): Remove strstr.
5858 2007-02-04 Bruno Haible <bruno@clisp.org>
5861 * modules/mbsrchr: New file.
5862 * lib/mbsrchr.c: New file.
5863 * lib/string_.h (strrchr): Add a conditional link warning.
5864 (mbsrchr): New declaration.
5865 * m4/mbsrchr.m4: New file.
5866 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5868 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
5869 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
5871 2007-02-04 Bruno Haible <bruno@clisp.org>
5874 * modules/mbschr: New file.
5875 * lib/mbschr.c: New file.
5876 * lib/string_.h (strchr): Add a conditional link warning.
5877 (mbschr): New declaration.
5878 * m4/mbschr.m4: New file.
5879 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
5881 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
5882 * MODULES.html.sh (Internationalization functions): Add mbschr.
5884 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
5886 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
5888 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
5890 2007-02-04 Bruno Haible <bruno@clisp.org>
5892 New module description section 'configure.ac-early'.
5893 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
5894 (func_get_autoconf_early_snippet): New function.
5895 (func_import, func_create_testdir): Use it. Remove special cases for
5896 modules 'extensions' and 'lock'.
5897 * modules/extensions (configure.ac-early): Require
5898 gl_USE_SYSTEM_EXTENSIONS.
5899 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
5901 2007-02-04 Bruno Haible <bruno@clisp.org>
5903 Make use of gcj-4.3's -fsource and -ftarget option.
5904 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
5905 and if so try the options -fsource and -ftarget.
5906 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
5907 source_version, ftarget_option, target_version arguments.
5908 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
5909 (is_envjavac_oldgcj_14_14_usable): Renamed from
5910 is_envjavac_gcj_14_14_usable.
5911 (is_envjavac_oldgcj_14_13_usable): Renamed from
5912 is_envjavac_gcj_14_13_usable.
5913 (is_gcj_present): Update.
5914 (is_gcj_43, is_gcj43_usable): New functions.
5915 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
5916 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
5917 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
5918 try the options -fsource and -ftarget.
5920 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
5922 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
5923 checking code. Set N = ceil (1.5 * N) rather than to a slightly
5926 2007-02-03 Jim Meyering <jim@meyering.net>
5928 Give tools a better chance to allocate space for very large buffers.
5929 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
5931 Make pwd and readlink work also when run with an unreadable parent dir
5932 on systems with openat support.
5933 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
5934 provided getcwd function, even when we have openat support.
5935 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
5937 2007-02-02 Bruno Haible <bruno@clisp.org>
5939 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
5940 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
5941 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
5942 portability problems if one of these functions is only used on specific
5944 Reported by Paul Eggert.
5946 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
5948 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
5949 is causing more trouble than it's curing.
5950 * lib/regex_internal.h (__mempcpy): Remove.
5951 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
5952 (and make the code a tad smaller to boot).
5953 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
5955 2007-02-02 Jim Meyering <jim@meyering.net>
5957 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
5958 section, not in the Makefile.am: one.
5960 2007-02-02 Eric Blake <ebb9@byu.net>
5962 * lib/strchrnul.c: Always include config.h first.
5964 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
5965 gnulib strstr is not necessary here.
5967 2007-02-02 Simon Josefsson <simon@josefsson.org>
5969 * m4/socklen.m4: Fix typo.
5971 2007-02-02 Eric Blake <ebb9@byu.net>
5973 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
5974 * modules/netinet_in (Makefile.am): Likewise.
5976 2007-02-01 Bruno Haible <bruno@clisp.org>
5978 * lib/string_.h (GL_LINK_WARNING): New macro.
5979 (strcasecmp, strstr, strcasestr): If provided by the system,
5980 conditionally define as a macro that leads to a warning instead of to
5982 (strncasecmp): Conditionally define as a macro that leads to a warning.
5984 2007-02-01 Karl Berry <karl@gnu.org>
5986 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
5988 2007-02-01 Bruno Haible <bruno@clisp.org>
5990 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
5993 2007-02-01 Eric Blake <ebb9@byu.net>
5995 * modules/regex (Depends-on): Revert dependence on mempcpy.
5996 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5997 module's definition of mempcpy.
5998 Reported by Paul Eggert.
6000 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
6002 * lib/string_.h: If the gnulib module XYZ is not present, undefine
6003 the symbol XYZ before redefining it. This fixes a problem with
6004 programs that don't use XYZ, when compiled on systems that define
6005 XYZ to something else.
6007 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
6009 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
6010 occurs when "mkdir -m foo" creates a setgid directory that is (1)
6011 writeable to group or other and (2) is intended to have a special
6012 mode bit that is set or cleared. In such a case, the directory
6013 should be neither group- nor other-writeable until the special
6014 mode bits are right.
6016 2007-01-31 Eric Blake <ebb9@byu.net>
6018 * modules/mountlist (Depends-on): Add strstr.
6020 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
6022 * modules/string (Makefile.am): Remove redundant replacement.
6023 * modules/regex (Depends-on): Add mempcpy.
6025 2007-01-31 Bruno Haible <bruno@clisp.org>
6027 New module description field 'Link'.
6028 * gnulib-tool (func_usage): Document --extract-link-directive.
6029 (sed_extract_prog): Recognize 'Link' directive.
6030 (func_get_link_directive): New function.
6031 (func_import): Show summary of link directives.
6032 Handle --extract-link-directive option.
6033 * modules/acl (Link): New section.
6034 * modules/clock-time (Link): New section.
6035 * modules/euidaccess (Link): New section.
6036 * modules/gettext (Link): New section.
6037 * modules/iconv (Link): New section.
6038 * modules/lock (Link): New section.
6039 * modules/nanosleep (Link): New section.
6040 * modules/readline (Link): New section.
6042 2007-01-27 Bruno Haible <bruno@clisp.org>
6044 Enforce the use of gnulib modules for unportable <string.h> functions.
6045 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
6046 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
6047 (gl_HEADER_STRING_H_BODY): Require it.
6048 * lib/string_.h: If the gnulib module XYZ is not present, redefine
6049 the symbol XYZ to one that gives a link error.
6050 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
6051 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
6052 * modules/mempcpy (configure.ac): Likewise.
6053 * modules/memrchr (configure.ac): Likewise.
6054 * modules/stpcpy (configure.ac): Likewise.
6055 * modules/stpncpy (configure.ac): Likewise.
6056 * modules/strcase (configure.ac): Likewise.
6057 * modules/strcasestr (configure.ac): Likewise.
6058 * modules/strchrnul (configure.ac): Likewise.
6059 * modules/strdup (configure.ac): Likewise.
6060 * modules/strndup (configure.ac): Likewise.
6061 * modules/strnlen (configure.ac): Likewise.
6062 * modules/strpbrk (configure.ac): Likewise.
6063 * modules/strsep (configure.ac): Likewise.
6064 * modules/strstr (configure.ac): Likewise.
6065 * modules/strtok_r (configure.ac): Likewise.
6067 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
6069 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
6071 2007-01-30 Jim Meyering <jim@meyering.net>
6073 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
6075 2007-01-29 Bruno Haible <bruno@clisp.org>
6077 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
6078 * lib/execute.c: Likewise.
6079 * lib/pipe.c: Likewise.
6080 * lib/printf-args.h: Likewise.
6081 * lib/printf-args.c: Likewise.
6082 * lib/printf-parse.c: Likewise.
6083 * lib/vasnprintf.c: Likewise.
6085 2007-01-29 Eric Blake <ebb9@byu.net>
6087 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
6090 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
6092 * lib/strptime.h (strptime): Use 'restrict' for args where
6093 POSIX requires this.
6094 * lib/strptime.c (strptime): Likewise.
6095 Change license notice from LGPL to GPL, since gnulib-tool will
6096 change this as needed.
6097 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
6099 Include "strptime.h" first, to check interface.
6100 Do not #undef _LIBC and _NL_CURRENT.
6101 Do not include <stdlib.h>; no longer needed.
6102 Include "time_r.h" and declare ptime_locale_status
6103 only if _LIBC is not defined.
6104 (__P): Remove unused macro.
6105 (match_string): Bring back glibc version, but use it only if _LIBC
6107 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
6108 Remove unnecessary assertion and abort() call.
6109 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
6110 * m4/strptime.m4: Fix serial number comment.
6111 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
6112 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
6113 (Depends-on): Add time_r.
6115 2007-01-29 Bruno Haible <bruno@clisp.org>
6117 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6119 * modules/strptime (Depends-on): Add stdbool.
6120 * lib/strptime.h: Include <time.h> always. Add comments.
6122 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
6124 * modules/strptime: New file.
6125 * lib/strptime.h: New file.
6126 * lib/strptime.c: New file.
6127 * m4/strptime.m4: New file.
6129 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
6131 * MODULES.html.sh: New module mpsort.
6132 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
6134 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
6135 a circularity problem with HP-UX ia64 reported by Bob Proulx in
6136 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
6138 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
6140 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
6142 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
6143 the parameter matches the prototype.
6145 2007-01-28 Jim Meyering <jim@meyering.net>
6147 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
6148 sys/time.h here, reverting that part of the previous patch:
6149 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
6151 2007-01-28 Bruno Haible <bruno@clisp.org>
6153 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
6154 value of $(SYS_TIME_H).
6155 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
6156 remove it conditionally, too. [added by Jim Meyering]
6157 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
6158 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6159 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
6160 GETTIMEOFDAY_REPLACEMENT to 1.
6162 2007-01-28 Bruno Haible <bruno@clisp.org>
6164 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
6165 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
6166 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
6167 Set UNISTD_H instead of UNISTD_H2.
6168 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
6170 2007-01-28 Bruno Haible <bruno@clisp.org>
6172 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
6173 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
6175 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6177 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
6178 (func_create_testdir): Ensure C locale for `grep' and `tr'
6180 (func_create_megatestdir): Avoid one `grep'. Fix bug in
6181 ACLOCAL_AMFLAGS parsing state machine.
6183 2007-01-27 Bruno Haible <bruno@clisp.org>
6185 * modules/unistr/base: Update.
6187 2007-01-27 Bruno Haible <bruno@clisp.org>
6189 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
6190 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
6191 * modules/unistr/u32-mbtouc-unsafe: Renamed from
6192 modules/unistr/u32-mbtouc.
6193 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
6194 * lib/unistr.h: Update.
6195 * lib/linebreak.c: Update.
6196 * modules/unistr/u32-mbtouc: Renamed from
6197 modules/unistr/u32-mbtouc-safe.
6198 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
6199 * lib/unistr.h: Update.
6200 * lib/unistr/u32-to-u8.c: Update.
6201 * lib/unistr/u32-to-u16.c: Update.
6203 2007-01-27 Bruno Haible <bruno@clisp.org>
6205 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
6206 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
6207 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
6208 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
6209 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
6210 * modules/unistr/u16-mbtouc-unsafe: Renamed from
6211 modules/unistr/u16-mbtouc.
6212 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
6213 * lib/unistr.h: Update.
6214 * lib/linebreak.c: Update.
6215 * modules/linebreak: Update.
6216 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
6217 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
6218 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
6219 * modules/unistr/u16-mbtouc: Renamed from
6220 modules/unistr/u16-mbtouc-safe.
6221 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
6222 * lib/unistr.h: Update.
6223 * lib/unistr/u16-to-u8.c: Update.
6224 * modules/unistr/u16-to-u8: Update.
6225 * lib/unistr/u16-to-u32.c: Update.
6226 * modules/unistr/u16-to-u32: Update.
6228 2007-01-27 Bruno Haible <bruno@clisp.org>
6230 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
6231 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
6232 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
6233 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
6234 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
6235 * modules/unistr/u8-mbtouc-unsafe: Renamed from
6236 modules/unistr/u8-mbtouc.
6237 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
6238 * lib/unistr.h: Update.
6239 * lib/striconveh.c: Update.
6240 * modules/striconveh: Update.
6241 * lib/linebreak.c: Update.
6242 * modules/linebreak: Update.
6243 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
6244 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
6245 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
6246 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
6247 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
6248 * lib/unistr.h: Update.
6249 * lib/striconveh.c: Update.
6250 * modules/striconveh: Update.
6251 * lib/unistr/u8-to-u16.c: Update.
6252 * modules/unistr/u8-to-u16: Update.
6253 * lib/unistr/u8-to-u32.c: Update.
6254 * modules/unistr/u8-to-u32: Update.
6256 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6259 * lib/argz.c: Do not include strings.h nor memory.h, include
6260 string.h unconditionally. Patch by Simon Josefsson.
6262 2007-01-27 Bruno Haible <bruno@clisp.org>
6264 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
6265 from gl_HEADER_STRING_H_BODY.
6266 (gl_HEADER_STRING_H_BODY): Require it.
6267 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
6268 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6269 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6270 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6271 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6272 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
6273 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6274 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6275 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
6276 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6277 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6278 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
6279 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6280 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6281 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6283 2007-01-27 Bruno Haible <bruno@clisp.org>
6285 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
6286 check_PROGRAMS into noinst_PROGRAMS.
6287 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
6288 check_PROGRAMS in this case.
6289 (func_import): Set for_test to false.
6290 (func_create_testdir): Set for_test to true.
6292 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6293 Bruno Haible <bruno@clisp.org>
6295 * modules/strcasestr (Files): Remove lib/strcasestr.h.
6296 (Depends-on): Add string.
6297 (Includes): Use <string.h> instead of strcasestr.h.
6298 * modules/string (Makefile.am): Also substitute the value of
6300 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
6301 assume strcasestr is declared in <string.h> not <strings.h>. Also
6302 set REPLACE_STRCASESTR.
6303 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
6305 * lib/strcasestr.h: Remove file.
6306 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
6307 * lib/string_.h (strcasestr): New declaration.
6309 2007-01-27 Bruno Haible <bruno@clisp.org>
6311 * lib/string_.h: Use 'extern'.
6313 2007-01-27 Jim Meyering <jim@meyering.net>
6315 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
6316 of set-but-not-used local, "q".
6318 * lib/mempcpy.c: Include <config.h> before <string.h>.
6319 This fixes a compilation error on HP-UX, due to the system's
6320 "restrict"-using mempcpy prototype.
6322 2007-01-26 Bruno Haible <bruno@clisp.org>
6325 * lib/javacomp.c: Include c-strstr.h.
6326 (is_envjavac_gcj): Use c_strstr instead of strstr.
6327 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
6329 2007-01-26 Bruno Haible <bruno@clisp.org>
6331 * MODULES.html.sh (Unicode string functions): Add the new modules.
6333 * modules/uniconv/u32-strconv-to-locale: New file.
6334 * lib/uniconv/u32-strconv-to-locale.c: New file.
6336 * modules/uniconv/u16-strconv-to-locale: New file.
6337 * lib/uniconv/u16-strconv-to-locale.c: New file.
6339 * modules/uniconv/u8-strconv-to-locale: New file.
6340 * lib/uniconv/u8-strconv-to-locale.c: New file.
6342 * modules/uniconv/u32-strconv-from-locale: New file.
6343 * lib/uniconv/u32-strconv-from-locale.c: New file.
6345 * modules/uniconv/u16-strconv-from-locale: New file.
6346 * lib/uniconv/u16-strconv-from-locale.c: New file.
6348 * modules/uniconv/u8-strconv-from-locale: New file.
6349 * lib/uniconv/u8-strconv-from-locale.c: New file.
6351 * modules/uniconv/u32-strconv-to-enc: New file.
6352 * lib/uniconv/u32-strconv-to-enc.c: New file.
6353 * modules/uniconv/u32-strconv-to-enc-tests: New file.
6354 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
6356 * modules/uniconv/u16-strconv-to-enc: New file.
6357 * lib/uniconv/u16-strconv-to-enc.c: New file.
6358 * lib/uniconv/u-strconv-to-enc.h: New file.
6359 * modules/uniconv/u16-strconv-to-enc-tests: New file.
6360 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
6362 * modules/uniconv/u8-strconv-to-enc: New file.
6363 * lib/uniconv/u8-strconv-to-enc.c: New file.
6364 * modules/uniconv/u8-strconv-to-enc-tests: New file.
6365 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
6367 * modules/uniconv/u32-strconv-from-enc: New file.
6368 * lib/uniconv/u32-strconv-from-enc.c: New file.
6369 * modules/uniconv/u32-strconv-from-enc-tests: New file.
6370 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
6372 * modules/uniconv/u16-strconv-from-enc: New file.
6373 * lib/uniconv/u16-strconv-from-enc.c: New file.
6374 * modules/uniconv/u16-strconv-from-enc-tests: New file.
6375 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
6377 * modules/uniconv/u8-strconv-from-enc: New file.
6378 * lib/uniconv/u8-strconv-from-enc.c: New file.
6379 * lib/uniconv/u-strconv-from-enc.h: New file.
6380 * modules/uniconv/u8-strconv-from-enc-tests: New file.
6381 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
6383 * modules/uniconv/u32-conv-from-enc: New file.
6384 * lib/uniconv/u32-conv-from-enc.c: New file.
6385 * modules/uniconv/u32-conv-from-enc-tests: New file.
6386 * tests/uniconv/test-u32-conv-from-enc.c: New file.
6388 * modules/uniconv/u16-conv-from-enc: New file.
6389 * lib/uniconv/u16-conv-from-enc.c: New file.
6390 * lib/uniconv/u-conv-from-enc.h: New file.
6391 * modules/uniconv/u16-conv-from-enc-tests: New file.
6392 * tests/uniconv/test-u16-conv-from-enc.c: New file.
6394 * modules/uniconv/u8-conv-from-enc: New file.
6395 * lib/uniconv/u8-conv-from-enc.c: New file.
6396 * modules/uniconv/u8-conv-from-enc-tests: New file.
6397 * tests/uniconv/test-u8-conv-from-enc.c: New file.
6399 * modules/uniconv/base: New file.
6400 * lib/uniconv.h: New file.
6402 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
6404 * doc/gnulib-tool.texi (Initial import): Update to match current
6405 behavior with strdup module.
6406 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
6407 * lib/memmem.h: Remove; all uses removed. This is now done
6409 * lib/mempcpy.h: Likewise.
6410 * lib/memrchr.h: Likewise.
6411 * lib/stpcpy.h: Likewise.
6412 * lib/stpncpy.h: Likewise.
6413 * lib/strcase.h: Likewise.
6414 * lib/strchrnul.h: Likewise.
6415 * lib/strdup.h: Likewise.
6416 * lib/strndup.h: Likewise.
6417 * lib/strnlen.h: Likewise.
6418 * lib/strpbrk.h: Likewise.
6419 * lib/strsep.h: Likewise.
6420 * lib/strstr.h: Likewise.
6421 * lib/strtok_r.h: Likewise.
6422 * lib/string_.h: New file.
6423 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
6424 Rely on <string.h> instead.
6425 * lib/canon-host.c: Likewise.
6426 * lib/chdir-long.c: Likewise.
6427 * lib/concatpath.c: Likewise.
6428 * lib/exclude.c: Likewise.
6429 * lib/fchdir.c: Likewise.
6430 * lib/getaddrinfo.c: Likewise.
6431 * lib/getcwd.c: Likewise.
6432 * lib/getsubopt.c: Likewise.
6433 * lib/glob.c: Likewise.
6434 * lib/hard-locale.c: Likewise.
6435 * lib/iconvme.c: Likewise.
6436 * lib/javacomp.c: Likewise.
6437 * lib/mempcpy.c: Likewise.
6438 * lib/memrchr.c: Likewise.
6439 * lib/regex_internal.h: Likewise.
6440 * lib/stpncpy.c: Likewise.
6441 * lib/strcasecmp.c: Likewise.
6442 * lib/strchrnul.c: Likewise.
6443 * lib/strdup.c: Likewise.
6444 * lib/striconv.c: Likewise.
6445 * lib/striconveh.c: Likewise.
6446 * lib/striconveha.c: Likewise.
6447 * lib/strncasecmp.c: Likewise.
6448 * lib/strndup.c: Likewise.
6449 * lib/strnlen.c: Likewise.
6450 * lib/strsep.c: Likewise.
6451 * lib/strstr.c: Likewise.
6452 * lib/strtok_r.c: Likewise.
6453 * lib/userspec.c: Likewise.
6454 * lib/w32spawn.h: Likewise.
6455 * lib/xstrndup.c: Likewise.
6456 * lib/mountlist.c (strstr): Remove decl.
6457 * m4/string_h.m4: New file.
6458 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
6459 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
6460 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
6461 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
6462 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
6463 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
6464 Set REPLACE_STRCASECMP if necessary.
6465 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
6466 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
6467 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
6468 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
6469 HAVE_DECL_STRDUP if necessary.
6470 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
6471 since gl_FUNC_STRNDUP does that now.
6472 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
6473 Check for decl here...
6474 (gl_PREREQ_STRNLEN): ... not here.
6475 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
6476 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
6477 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
6478 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
6480 * modules/string: New file.
6481 * modules/memmem (Files): Remove special-purpose include file.
6482 (Depends-on): Add string.
6483 (Include): Include <string.h>, not the removed file.
6484 * modules/mempcpy: Likewise.
6485 * modules/memrchr: Likewise.
6486 * modules/stpcpy: Likewise.
6487 * modules/stpncpy: Likewise.
6488 * modules/strcase: Likewise.
6489 * modules/strchrnul: Likewise.
6490 * modules/strdup: Likewise.
6491 * modules/strndup: Likewise.
6492 * modules/strnlen: Likewise.
6493 * modules/strpbrk: Likewise.
6494 * modules/strsep: Likewise.
6495 * modules/strstr: Likewise.
6496 * modules/strtok_r: Likewise.
6497 * tests/test-dirname.c: Don't include "strdup.h", since
6498 <string.h> now suffices.
6499 * tests/test-memmem.c: Don't include "memmem.h", since
6500 <string.h> now suffices.
6502 2007-01-25 Bruno Haible <bruno@clisp.org>
6504 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
6507 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
6508 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
6509 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
6510 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
6512 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
6513 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
6514 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
6515 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
6516 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
6517 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
6519 2007-01-24 Bruno Haible <bruno@clisp.org>
6521 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
6522 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
6523 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
6524 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
6526 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
6527 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
6528 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6529 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
6530 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
6531 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
6533 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
6535 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
6536 Reported by Ralf Wildenhues.
6538 2007-01-24 Bruno Haible <bruno@clisp.org>
6540 Drop AC_REQUIRE calls that are redundant with the module dependencies.
6541 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
6543 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
6544 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
6545 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
6547 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
6549 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
6550 Don't use 'exit'; just return from 'main'.
6551 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
6553 * lib/fnmatch_.h: Readjust white space and comments to match
6554 glibc, to avoid spurious diffs.
6556 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
6558 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
6559 2004-12-01 change by Jakub Jelinek, since this code won't compile
6560 if !LIBC. Problem reported by Bob Proulx.
6562 2007-01-23 Bruno Haible <bruno@clisp.org>
6564 * lib/striconveh.c: Include c-strcaseeq.h.
6565 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
6566 * modules/striconveh (Depends-on): Add c-strcaseeq.
6568 2007-01-23 Bruno Haible <bruno@clisp.org>
6570 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
6572 * modules/c-strcaseeq: New file.
6573 * lib/c-strcaseeq.h: New file.
6575 * modules/streq: New file.
6576 * lib/streq.h: New file.
6578 2007-01-23 Bruno Haible <bruno@clisp.org>
6580 * modules/striconveha-tests: New file.
6581 * tests/test-striconveha.c: New file.
6583 * lib/striconveha.h: Include <stdbool.h>.
6584 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
6585 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
6586 (mem_iconveha_notranslit): Renamed from mem_iconveha.
6587 (mem_iconveha): New function.
6588 (str_iconveha_notranslit): Renamed from str_iconveha.
6589 (str_iconveha): New function.
6590 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
6593 2007-01-23 Bruno Haible <bruno@clisp.org>
6595 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
6596 encodings without forgiving before trying any encoding with handler.
6597 (str_iconveha): Try all encodings without forgiving before trying any
6598 encoding with handler.
6600 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
6602 Import the following changes from libc.
6604 2005-10-14 Ulrich Drepper <drepper@redhat.com>
6606 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
6608 2004-12-01 Jakub Jelinek <jakub@redhat.com>
6610 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
6611 normal_bracket label.
6613 2004-09-01 Jakub Jelinek <jakub@redhat.com>
6616 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
6617 to normal_bracket after fetching the next character.
6619 2007-01-22 Bruno Haible <bruno@clisp.org>
6621 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
6623 * lib/striconveh.c (iconv_carefully_1): New function.
6624 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
6626 (str_cd_iconveh): Update.
6627 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
6628 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
6629 * tests/test-striconveh.c (MAGIC): New macro.
6630 (new_offsets): New function.
6631 (main): Test call with and without offsets.
6633 2007-01-22 Bruno Haible <bruno@clisp.org>
6635 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
6636 * modules/sys_select (Makefile.am): Likewise.
6637 * modules/sys_socket (Makefile.am): Likewise.
6638 * modules/sys_time (Makefile.am): Likewise.
6640 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
6642 * modules/gettimeofday (License): Change from GPL to LGPL, since
6643 gettimeofday is a library function.
6645 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6647 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
6649 2007-01-21 Bruno Haible <bruno@clisp.org>
6651 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
6653 2007-01-21 Bruno Haible <bruno@clisp.org>
6655 * modules/striconveha: New file.
6656 * lib/striconveha.h: New file.
6657 * lib/striconveha.c: New file.
6658 * MODULES.html.sh (Internationalization functions): Add striconveha.
6659 * lib/striconv.c (str_iconv): Optimize the case of an empty input
6661 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
6663 2007-01-21 Bruno Haible <bruno@clisp.org>
6665 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
6666 * lib/striconveh.c (str_iconveh): Likewise.
6668 2007-01-21 Bruno Haible <bruno@clisp.org>
6670 * lib/striconveh.h (mem_iconveh): New declaration.
6671 * lib/striconveh.c (mem_iconveh): New function.
6672 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
6674 2007-01-21 Bruno Haible <bruno@clisp.org>
6676 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
6678 * lib/striconveh.h (mem_cd_iconveh): Change specification.
6679 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
6680 original result buffer.
6681 (str_cd_iconveh): Update.
6682 * tests/test-striconveh.c (main): Update.
6684 * lib/striconv.h (mem_cd_iconv): Change specification.
6685 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
6687 (str_cd_iconv): Update.
6688 * tests/test-striconv.c (main): Update.
6690 2007-01-21 Bruno Haible <bruno@clisp.org>
6692 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
6694 2007-01-20 Jim Meyering <jim@meyering.net>
6696 * lib/userspec.c (parse_with_separator): If a user or group string
6697 starts with "+", skip the corresponding name-to-ID look-up, since
6698 such a look-up must fail: user and group names may not include "+".
6700 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
6702 * lib/poll.c: Include sys/time.h and time.h unconditionally,
6703 since we now assume the sys_time module.
6704 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
6705 check for sys/time.h; no longer needed.
6706 * modules/poll (Depends-on): Depend on sys_time.
6708 2007-01-18 Bruno Haible <bruno@clisp.org>
6710 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
6711 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6713 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
6716 * tests/test-gettimeofday.c: Include <time.h>.
6717 (dummy): Remove variable.
6719 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
6720 gl_HEADER_SYS_TIME_H.
6721 (gl_HEADER_SYS_TIME_H): New macro.
6723 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
6724 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6725 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6726 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
6727 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6728 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
6729 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
6730 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6731 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
6732 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
6733 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6735 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
6736 last change; it caused a compilation error when cross-compiling to
6739 2007-01-18 Jim Meyering <jim@meyering.net>
6741 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
6742 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
6743 than the race-prone "test -d sys || mkdir sys".
6744 (configure.ac): Use AC_PROG_MKDIR_P.
6745 * modules/sys_select: Likewise.
6746 * modules/sys_socket: Likewise.
6747 * modules/sys_time: Likewise.
6749 2007-01-18 Eric Blake <ebb9@byu.net>
6751 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
6752 replace gettimeofday.
6753 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
6754 name, to avoid infinite recursion.
6756 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
6758 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
6760 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
6761 assume timespec.h defines struct timeval.
6762 * lib/settime.c: Likewise.
6763 * lib/utimens.c: Likewise.
6764 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
6765 since we now assume the gettimeofday module.
6766 * lib/tempname.c (__gen_tempname): Likewise.
6767 * lib/gettimeofday.h: Remove.
6768 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
6769 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
6770 Include <time.h>, for 'time()'.
6771 (localtime_buffer_addr): Also use this workaround if
6772 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
6773 to simplify the uses. All uses changed.
6774 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
6775 that #undef is inside {}, and 'const' follows type name consistently.
6776 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
6777 (gettimeofday): Do not use the maximum possible value for
6778 tv->tv_usec, since that might break usages other than ls.c.
6779 Instead, we'll leave ls.c alone. This undoes today's patch
6780 by Bruno. Add a compile-time warning for 1s-clock resolution;
6781 we've never observed the problem but might as well keep the
6783 * lib/nanosleep.c: Include timespec.h first, for interface check.
6784 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
6785 now assume the sys_time module.
6786 * lib/tempname.c: Likewise.
6787 * lib/timespec.h: Likewise.
6788 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
6790 * lib/strftime.c: Likewise.
6791 * lib/timespec.h: Likewise.
6792 * lib/posixtm.c: Include posixtm.h first, for interface check.
6793 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
6794 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
6795 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
6796 * lib/sys_time_.h: New file.
6797 * lib/timespec.h (struct timespec): Use long int, not long.
6798 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
6799 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
6800 Remove obsolescent call to AC_HEADER_TIME.
6801 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6802 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6803 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
6804 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
6806 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6807 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
6808 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
6809 into the sys_time module. Check for gettimeofday just once.
6810 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
6811 for gettimeofday signature to just check the signature. Merely
6812 compile it, since linking doesn't test signature. Improve test for
6813 whether gettimeofday.o is actually needed.
6814 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
6815 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
6816 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
6817 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6818 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
6819 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
6820 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
6821 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
6822 than worrying about sys/time.h.
6823 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6824 Don't bother worrying about TIME_WITH_SYS_TIME.
6825 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6826 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
6827 * m4/sys_time_h.m4: New file.
6828 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
6829 Don't include sys/time.h. Return from main rather than exiting.
6830 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
6832 * modules/gethrxtime (Depends-on): Add sys_time.
6833 * modules/gettime (Depends-on): Likewise.
6834 * modules/gettimeofday (Depends-on): Likewise.
6835 * modules/nanosleep (Depends-on): Likewise.
6836 * modules/settime (Depends-on): Likewise.
6837 * modules/tempname (Depends-on): Likewise.
6838 * modules/utimens (Depends-on): Likewise.
6839 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
6840 (Include:) Change back to <sys/time.h>.
6841 (Maintainer:) Add self.
6842 * modules/sys_time: New file.
6843 * modules/tempname (Depends-on): Add gettimeofday.
6844 * tests/test-gettimeofday.c: Include <sys/time.h>
6845 rather than gettimeofday.h.
6847 2007-01-17 Bruno Haible <bruno@clisp.org>
6849 * gnulib-tool (func_get_license): Revert last patch. Instead, let
6850 the license default to GPL.
6851 (func_create_testdir): Don't complain if a module is LGPL and its
6852 tests module depends on GPLed modules.
6854 2007-01-17 Bruno Haible <bruno@clisp.org>
6856 * lib/gettimeofday.c (gettimeofday): Add code for the case
6857 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
6858 maximum possible value for tv->tv_usec, rather than the minimum one.
6860 2005-10-08 Martin Lambers <marlam@marlam.de>
6861 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
6862 2007-01-16 Bruno Haible <bruno@clisp.org>
6864 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
6865 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
6866 gl_FUNC_GETTIMEOFDAY.
6867 (Include): Add gettimeofday.h.
6868 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
6869 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
6870 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
6871 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
6872 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
6873 * lib/gettimeofday.h: New file.
6874 * lib/gettimeofday.c: Include <sys/timeb.h>.
6875 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
6876 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
6877 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
6878 fall back on time().
6880 * tests/test-gettimeofday.c: New file.
6881 * modules/gettimeofday-tests: New file.
6883 2007-01-16 Eric Blake <ebb9@byu.net>
6885 * modules/fnmatch (Depends-on): Depend on wchar.
6886 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
6887 * m4/fnmatch.m4: Likewise.
6888 * modules/mbchar (Makefile.am): Assume <wchar.h>.
6889 * m4/mbchar.m4: Likewise.
6890 * modules/mbswidth (Depends-on): Depend on wchar.
6891 * lib/mbswidth.c: Assume <wchar.h>.
6892 * m4/mbswidth.m4: Likewise.
6893 * modules/quotearg (Depends-on): Depend on wchar.
6894 * lib/quotearg.c: Assume <wchar.h>.
6895 * m4/quotearg.m4: Likewise.
6896 * modules/regex (Depends-on): Depend on wchar.
6897 * lib/regex_internal.h: Assume <wchar.h>.
6898 * m4/regex.m4: Likewise.
6899 * modules/stdint (Depends-on): Depend on wchar.
6900 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
6901 * m4/stdint.m4: Likewise.
6902 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
6903 * modules/strftime (Depends-on): Depend on wchar.
6904 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
6905 * modules/strtol (Depends-on): Depend on wchar.
6906 * lib/strtol.c: Assume <wchar.h>.
6907 * modules/wcwidth (Depends-on): Depend on wchar.
6908 * lib/wcwidth.h: Assume <wchar.h>.
6909 * m4/wcwidth.m4: Likewise.
6911 2007-01-16 Bruno Haible <bruno@clisp.org>
6913 * modules/csharpexec-script: New, created from...
6914 * modules/csharpexec: ... this.
6916 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
6918 * modules/javaexec-script: New, created from...
6919 * modules/javaexec: ... this.
6921 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6923 * modules/poll (Dependencies): Add sys_select.
6925 2007-01-15 Jim Meyering <jim@meyering.net>
6927 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
6928 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
6929 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
6930 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
6932 2007-01-15 Bruno Haible <bruno@clisp.org>
6934 * modules/striconveh: New file.
6935 * lib/striconveh.h: New file.
6936 * lib/striconveh.c: New file.
6937 * MODULES.html.sh (Internationalization functions): Add striconveh.
6939 * modules/striconveh-tests: New file.
6940 * tests/test-striconveh.c: New file.
6942 2007-01-15 Bruno Haible <bruno@clisp.org>
6944 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
6945 not from GNU libiconv or GNU libc.
6947 2007-01-15 Bruno Haible <bruno@clisp.org>
6949 * doc/gnulib-intro.texi (Copyright): Explain the different license
6950 terms for module descriptions, autoconf macros, tests, documentation.
6952 2007-01-14 Bruno Haible <bruno@clisp.org>
6954 * modules/striconv-tests: New file.
6955 * tests/test-striconv.c: New file.
6957 2007-01-14 Bruno Haible <bruno@clisp.org>
6959 * modules/iconv-tests: New file.
6960 * tests/test-iconv.c: New file.
6962 2007-01-14 Bruno Haible <bruno@clisp.org>
6964 * gnulib-tool (func_get_license): For test modules, use the license of
6967 2007-01-14 Bruno Haible <bruno@clisp.org>
6969 * modules/iconv (Include): Clarify that <iconv.h> can only be included
6970 if iconv is found to exist.
6972 2007-01-14 Bruno Haible <bruno@clisp.org>
6974 * modules/c-ctype-tests: New file.
6975 * tests/test-c-ctype.c: New file.
6977 2007-01-14 Bruno Haible <bruno@clisp.org>
6979 * modules/binary-io-tests: New file.
6980 * tests/test-binary-io.sh: New file.
6981 * tests/test-binary-io.c: New file.
6983 2007-01-14 Bruno Haible <bruno@clisp.org>
6985 * modules/array-oset-tests: New file.
6986 * tests/test-array_oset.c: New file.
6988 2007-01-14 Bruno Haible <bruno@clisp.org>
6990 * modules/array-list-tests: New file.
6991 * tests/test-array_list.c: New file.
6993 2007-01-14 Bruno Haible <bruno@clisp.org>
6995 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
6997 Reported by Simon Josefsson in
6998 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
7000 2007-01-14 Bruno Haible <bruno@clisp.org>
7002 * modules/allocsa-tests: New file.
7003 * tests/test-allocsa.c: New file.
7005 2007-01-14 Bruno Haible <bruno@clisp.org>
7007 * modules/fchdir (Depends-on): Add absolute-header.
7008 * modules/unistd (Depends-on): Likewise.
7010 2006-12-30 Bruno Haible <bruno@clisp.org>
7012 * modules/fchdir: New file.
7013 * modules/unistd (Files): Add lib/unistd_.h.
7014 (Makefile.am): Generate unistd.h from unistd_.h.
7015 * lib/fchdir.c: New file.
7016 * lib/dirent_.h: New file.
7017 * lib/unistd_.h: New file.
7018 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
7019 * m4/fchdir.m4: New file.
7020 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
7021 (gl_HEADER_UNISTD): Invoke it.
7022 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
7024 * lib/backupfile.c (opendir, closedir): Undefine.
7025 * lib/chown.c (open, close): Undefine.
7026 * lib/clean-temp.c (open, close): Undefine.
7027 * lib/copy-file.c (open, close): Undefine.
7028 * lib/execute.c (open, close): Undefine.
7029 * lib/fsusage.c (open, close): Undefine.
7030 * lib/gc-gnulib.c (open, close): Undefine.
7031 * lib/getcwd.c (opendir, closedir): Undefine.
7032 * lib/glob.c (opendir, closedir): Undefine.
7033 * lib/javacomp.c (open, close): Undefine.
7034 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
7035 * lib/openat-proc.c (open, close): Undefine.
7036 * lib/pagealign_alloc.c (open, close): Undefine.
7037 * lib/pipe.c (open, close): Undefine.
7038 * lib/progreloc.c (open, close): Undefine.
7039 * lib/savedir.c (opendir, closedir): Undefine.
7040 * lib/utime.c (open, close): Undefine.
7041 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
7043 2007-01-10 Bruno Haible <bruno@clisp.org>
7045 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
7047 2007-01-12 Eric Blake <ebb9@byu.net>
7049 Provide a robust <wchar.h>. Further simplifications are now
7050 possible in other modules, but not included here.
7051 * modules/wchar: New module.
7052 * m4/wchar.m4: New file.
7053 * lib/wchar_.h: Likewise.
7054 * modules/mbchar (Depends-on): Depend on wchar, as the first use
7056 * MODULES.html.sh (Extended multibyte and wide character utilities):
7059 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
7061 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
7062 to a reasonable default for memory allocation.
7063 (xreadlink): Don't allocate a huge buffer, to work around a buggy
7064 file system that reports garbage st_size values for symlinks.
7065 Problem reported by Liyang Hu.
7067 2007-01-11 Simon Josefsson <simon@josefsson.org>
7069 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
7070 Emacs .#* auto-save files).
7072 2007-01-11 Bruno Haible <bruno@clisp.org>
7074 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
7077 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
7079 Use @...@ consistently in lib/wctype_.h.
7080 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
7081 on it being set to 1 or 0.
7082 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
7083 go back to AC_SUBSTing it.
7084 * modules/wctype (Makefile.am): Undo previous change.
7086 2007-01-10 Eric Blake <ebb9@byu.net>
7088 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
7089 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
7090 * modules/wctype (Makefile.am): Likewise.
7091 Reported by Chris McGuire.
7093 2007-01-10 Jim Meyering <jim@meyering.net>
7095 fts.c: a small readability/maintainability improvement
7096 * lib/fts.c (fts_read): Make this code slightly more readable and
7097 maintainable by hoisting the "sp->fts_cur = p" assignments to
7098 immediately follow the statements that set P. Derived from
7099 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
7101 2007-01-10 Eric Blake <ebb9@byu.net>
7103 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
7104 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
7105 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7106 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
7107 Reported by Chris McGuire.
7109 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7111 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
7114 2007-01-09 Bruno Haible <bruno@clisp.org>
7116 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
7117 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
7119 (func_module): Use them.
7121 2007-01-09 Bruno Haible <bruno@clisp.org>
7123 * modules/unistr/base: New file.
7124 * lib/unistr.h: New file.
7126 * modules/unistr/u8-to-u16: New file.
7127 * lib/unistr/u8-to-u16.c: New file.
7129 * modules/unistr/u8-to-u32: New file.
7130 * lib/unistr/u8-to-u32.c: New file.
7132 * modules/unistr/u16-to-u8: New file.
7133 * lib/unistr/u16-to-u8.c: New file.
7135 * modules/unistr/u16-to-u32: New file.
7136 * lib/unistr/u16-to-u32.c: New file.
7138 * modules/unistr/u32-to-u8: New file.
7139 * lib/unistr/u32-to-u8.c: New file.
7141 * modules/unistr/u32-to-u16: New file.
7142 * lib/unistr/u32-to-u16.c: New file.
7144 * modules/unistr/u8-check: New file.
7145 * modules/unistr/u16-check: New file.
7146 * modules/unistr/u32-check: New file.
7147 * lib/unistr/u8-check.c: New file.
7148 * lib/unistr/u16-check.c: New file.
7149 * lib/unistr/u32-check.c: New file.
7151 * modules/unistr/u8-chr: New file.
7152 * modules/unistr/u16-chr: New file.
7153 * modules/unistr/u32-chr: New file.
7154 * lib/unistr/u8-chr.c: New file.
7155 * lib/unistr/u16-chr.c: New file.
7156 * lib/unistr/u32-chr.c: New file.
7158 * modules/unistr/u8-cmp: New file.
7159 * modules/unistr/u16-cmp: New file.
7160 * modules/unistr/u32-cmp: New file.
7161 * lib/unistr/u8-cmp.c: New file.
7162 * lib/unistr/u16-cmp.c: New file.
7163 * lib/unistr/u32-cmp.c: New file.
7165 * modules/unistr/u8-cpy: New file.
7166 * modules/unistr/u16-cpy: New file.
7167 * modules/unistr/u32-cpy: New file.
7168 * lib/unistr/u8-cpy.c: New file.
7169 * lib/unistr/u16-cpy.c: New file.
7170 * lib/unistr/u32-cpy.c: New file.
7171 * lib/unistr/u-cpy.h: New file.
7173 * modules/unistr/u8-cpy-alloc: New file.
7174 * modules/unistr/u16-cpy-alloc: New file.
7175 * modules/unistr/u32-cpy-alloc: New file.
7176 * lib/unistr/u8-cpy-alloc.c: New file.
7177 * lib/unistr/u16-cpy-alloc.c: New file.
7178 * lib/unistr/u32-cpy-alloc.c: New file.
7179 * lib/unistr/u-cpy-alloc.h: New file.
7181 * modules/unistr/u8-endswith: New file.
7182 * modules/unistr/u16-endswith: New file.
7183 * modules/unistr/u32-endswith: New file.
7184 * lib/unistr/u8-endswith.c: New file.
7185 * lib/unistr/u16-endswith.c: New file.
7186 * lib/unistr/u32-endswith.c: New file.
7187 * lib/unistr/u-endswith.h: New file.
7189 * modules/unistr/u8-mblen: New file.
7190 * modules/unistr/u16-mblen: New file.
7191 * modules/unistr/u32-mblen: New file.
7192 * lib/unistr/u8-mblen.c: New file.
7193 * lib/unistr/u16-mblen.c: New file.
7194 * lib/unistr/u32-mblen.c: New file.
7196 * modules/unistr/u8-mbtouc: New file.
7197 * modules/unistr/u16-mbtouc: New file.
7198 * modules/unistr/u32-mbtouc: New file.
7199 * lib/unistr/u8-mbtouc.c: New file.
7200 * lib/unistr/u16-mbtouc.c: New file.
7201 * lib/unistr/u32-mbtouc.c: New file.
7203 * modules/unistr/u8-mbtouc-safe: New file.
7204 * modules/unistr/u16-mbtouc-safe: New file.
7205 * modules/unistr/u32-mbtouc-safe: New file.
7206 * lib/unistr/u8-mbtouc-safe.c: New file.
7207 * lib/unistr/u16-mbtouc-safe.c: New file.
7208 * lib/unistr/u32-mbtouc-safe.c: New file.
7210 * modules/unistr/u8-move: New file.
7211 * modules/unistr/u16-move: New file.
7212 * modules/unistr/u32-move: New file.
7213 * lib/unistr/u8-move.c: New file.
7214 * lib/unistr/u16-move.c: New file.
7215 * lib/unistr/u32-move.c: New file.
7216 * lib/unistr/u-move.h: New file.
7218 * modules/unistr/u8-next: New file.
7219 * modules/unistr/u16-next: New file.
7220 * modules/unistr/u32-next: New file.
7221 * lib/unistr/u8-next.c: New file.
7222 * lib/unistr/u16-next.c: New file.
7223 * lib/unistr/u32-next.c: New file.
7225 * modules/unistr/u8-prev: New file.
7226 * modules/unistr/u16-prev: New file.
7227 * modules/unistr/u32-prev: New file.
7228 * lib/unistr/u8-prev.c: New file.
7229 * lib/unistr/u16-prev.c: New file.
7230 * lib/unistr/u32-prev.c: New file.
7232 * modules/unistr/u8-set: New file.
7233 * modules/unistr/u16-set: New file.
7234 * modules/unistr/u32-set: New file.
7235 * lib/unistr/u8-set.c: New file.
7236 * lib/unistr/u16-set.c: New file.
7237 * lib/unistr/u32-set.c: New file.
7238 * lib/unistr/u-set.h: New file.
7240 * modules/unistr/u8-startswith: New file.
7241 * modules/unistr/u16-startswith: New file.
7242 * modules/unistr/u32-startswith: New file.
7243 * lib/unistr/u8-startswith.c: New file.
7244 * lib/unistr/u16-startswith.c: New file.
7245 * lib/unistr/u32-startswith.c: New file.
7246 * lib/unistr/u-startswith.h: New file.
7248 * modules/unistr/u8-stpcpy: New file.
7249 * modules/unistr/u16-stpcpy: New file.
7250 * modules/unistr/u32-stpcpy: New file.
7251 * lib/unistr/u8-stpcpy.c: New file.
7252 * lib/unistr/u16-stpcpy.c: New file.
7253 * lib/unistr/u32-stpcpy.c: New file.
7254 * lib/unistr/u-stpcpy.h: New file.
7256 * modules/unistr/u8-stpncpy: New file.
7257 * modules/unistr/u16-stpncpy: New file.
7258 * modules/unistr/u32-stpncpy: New file.
7259 * lib/unistr/u8-stpncpy.c: New file.
7260 * lib/unistr/u16-stpncpy.c: New file.
7261 * lib/unistr/u32-stpncpy.c: New file.
7262 * lib/unistr/u-stpncpy.h: New file.
7264 * modules/unistr/u8-strcat: New file.
7265 * modules/unistr/u16-strcat: New file.
7266 * modules/unistr/u32-strcat: New file.
7267 * lib/unistr/u8-strcat.c: New file.
7268 * lib/unistr/u16-strcat.c: New file.
7269 * lib/unistr/u32-strcat.c: New file.
7270 * lib/unistr/u-strcat.h: New file.
7272 * modules/unistr/u8-strchr: New file.
7273 * modules/unistr/u16-strchr: New file.
7274 * modules/unistr/u32-strchr: New file.
7275 * lib/unistr/u8-strchr.c: New file.
7276 * lib/unistr/u16-strchr.c: New file.
7277 * lib/unistr/u32-strchr.c: New file.
7279 * modules/unistr/u8-strcmp: New file.
7280 * modules/unistr/u16-strcmp: New file.
7281 * modules/unistr/u32-strcmp: New file.
7282 * lib/unistr/u8-strcmp.c: New file.
7283 * lib/unistr/u16-strcmp.c: New file.
7284 * lib/unistr/u32-strcmp.c: New file.
7286 * modules/unistr/u8-strcpy: New file.
7287 * modules/unistr/u16-strcpy: New file.
7288 * modules/unistr/u32-strcpy: New file.
7289 * lib/unistr/u8-strcpy.c: New file.
7290 * lib/unistr/u16-strcpy.c: New file.
7291 * lib/unistr/u32-strcpy.c: New file.
7292 * lib/unistr/u-strcpy.h: New file.
7294 * modules/unistr/u8-strcspn: New file.
7295 * modules/unistr/u16-strcspn: New file.
7296 * modules/unistr/u32-strcspn: New file.
7297 * lib/unistr/u8-strcspn.c: New file.
7298 * lib/unistr/u16-strcspn.c: New file.
7299 * lib/unistr/u32-strcspn.c: New file.
7300 * lib/unistr/u-strcspn.h: New file.
7302 * modules/unistr/u8-strdup: New file.
7303 * modules/unistr/u16-strdup: New file.
7304 * modules/unistr/u32-strdup: New file.
7305 * lib/unistr/u8-strdup.c: New file.
7306 * lib/unistr/u16-strdup.c: New file.
7307 * lib/unistr/u32-strdup.c: New file.
7308 * lib/unistr/u-strdup.h: New file.
7310 * modules/unistr/u8-strlen: New file.
7311 * modules/unistr/u16-strlen: New file.
7312 * modules/unistr/u32-strlen: New file.
7313 * lib/unistr/u8-strlen.c: New file.
7314 * lib/unistr/u16-strlen.c: New file.
7315 * lib/unistr/u32-strlen.c: New file.
7316 * lib/unistr/u-strlen.h: New file.
7318 * modules/unistr/u8-strmblen: New file.
7319 * modules/unistr/u16-strmblen: New file.
7320 * modules/unistr/u32-strmblen: New file.
7321 * lib/unistr/u8-strmblen.c: New file.
7322 * lib/unistr/u16-strmblen.c: New file.
7323 * lib/unistr/u32-strmblen.c: New file.
7325 * modules/unistr/u8-strmbtouc: New file.
7326 * modules/unistr/u16-strmbtouc: New file.
7327 * modules/unistr/u32-strmbtouc: New file.
7328 * lib/unistr/u8-strmbtouc.c: New file.
7329 * lib/unistr/u16-strmbtouc.c: New file.
7330 * lib/unistr/u32-strmbtouc.c: New file.
7332 * modules/unistr/u8-strncat: New file.
7333 * modules/unistr/u16-strncat: New file.
7334 * modules/unistr/u32-strncat: New file.
7335 * lib/unistr/u8-strncat.c: New file.
7336 * lib/unistr/u16-strncat.c: New file.
7337 * lib/unistr/u32-strncat.c: New file.
7338 * lib/unistr/u-strncat.h: New file.
7340 * modules/unistr/u8-strncmp: New file.
7341 * modules/unistr/u16-strncmp: New file.
7342 * modules/unistr/u32-strncmp: New file.
7343 * lib/unistr/u8-strncmp.c: New file.
7344 * lib/unistr/u16-strncmp.c: New file.
7345 * lib/unistr/u32-strncmp.c: New file.
7347 * modules/unistr/u8-strncpy: New file.
7348 * modules/unistr/u16-strncpy: New file.
7349 * modules/unistr/u32-strncpy: New file.
7350 * lib/unistr/u8-strncpy.c: New file.
7351 * lib/unistr/u16-strncpy.c: New file.
7352 * lib/unistr/u32-strncpy.c: New file.
7353 * lib/unistr/u-strncpy.h: New file.
7355 * modules/unistr/u8-strnlen: New file.
7356 * modules/unistr/u16-strnlen: New file.
7357 * modules/unistr/u32-strnlen: New file.
7358 * lib/unistr/u8-strnlen.c: New file.
7359 * lib/unistr/u16-strnlen.c: New file.
7360 * lib/unistr/u32-strnlen.c: New file.
7361 * lib/unistr/u-strnlen.h: New file.
7363 * modules/unistr/u8-strpbrk: New file.
7364 * modules/unistr/u16-strpbrk: New file.
7365 * modules/unistr/u32-strpbrk: New file.
7366 * lib/unistr/u8-strpbrk.c: New file.
7367 * lib/unistr/u16-strpbrk.c: New file.
7368 * lib/unistr/u32-strpbrk.c: New file.
7369 * lib/unistr/u-strpbrk.h: New file.
7371 * modules/unistr/u8-strrchr: New file.
7372 * modules/unistr/u16-strrchr: New file.
7373 * modules/unistr/u32-strrchr: New file.
7374 * lib/unistr/u8-strrchr.c: New file.
7375 * lib/unistr/u16-strrchr.c: New file.
7376 * lib/unistr/u32-strrchr.c: New file.
7378 * modules/unistr/u8-strspn: New file.
7379 * modules/unistr/u16-strspn: New file.
7380 * modules/unistr/u32-strspn: New file.
7381 * lib/unistr/u8-strspn.c: New file.
7382 * lib/unistr/u16-strspn.c: New file.
7383 * lib/unistr/u32-strspn.c: New file.
7384 * lib/unistr/u-strspn.h: New file.
7386 * modules/unistr/u8-strstr: New file.
7387 * modules/unistr/u16-strstr: New file.
7388 * modules/unistr/u32-strstr: New file.
7389 * lib/unistr/u8-strstr.c: New file.
7390 * lib/unistr/u16-strstr.c: New file.
7391 * lib/unistr/u32-strstr.c: New file.
7392 * lib/unistr/u-strstr.h: New file.
7394 * modules/unistr/u8-strtok: New file.
7395 * modules/unistr/u16-strtok: New file.
7396 * modules/unistr/u32-strtok: New file.
7397 * lib/unistr/u8-strtok.c: New file.
7398 * lib/unistr/u16-strtok.c: New file.
7399 * lib/unistr/u32-strtok.c: New file.
7400 * lib/unistr/u-strtok.h: New file.
7402 * modules/unistr/u8-uctomb: New file.
7403 * modules/unistr/u16-uctomb: New file.
7404 * modules/unistr/u32-uctomb: New file.
7405 * lib/unistr/u8-uctomb.c: New file.
7406 * lib/unistr/u16-uctomb.c: New file.
7407 * lib/unistr/u32-uctomb.c: New file.
7409 * MODULES.html.sh (Unicode string functions): Add the new modules.
7411 2007-01-08 Bruno Haible <bruno@clisp.org>
7413 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
7414 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
7417 2007-01-08 Karl Berry <karl@gnu.org>
7419 * doc/error.texi: mention that main() fns must set program_name
7420 when progname is used.
7422 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
7424 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
7425 WCTYPE_H is empty, for the benefit of builds from non-distclean
7426 directories. Problem reported by Eric Blake in
7427 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
7429 2007-01-08 Bruno Haible <bruno@clisp.org>
7431 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
7432 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
7433 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
7434 PROVIDE_CANONICALIZE_FILENAME_MODE.
7435 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
7437 2007-01-08 Bruno Haible <bruno@clisp.org>
7439 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
7440 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
7441 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
7442 * lib/fts.c: Likewise.
7443 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
7445 2006-12-25 Bruno Haible <bruno@clisp.org>
7447 * modules/utf8-ucs4-safe: New file.
7448 * lib/utf8-ucs4-safe.h: New file.
7449 * lib/unistr/utf8-ucs4-safe.c: New file.
7451 * modules/utf16-ucs4-safe: New file.
7452 * lib/utf16-ucs4-safe.h: New file.
7453 * lib/unistr/utf16-ucs4-safe.c: New file.
7455 * MODULES.html.sh (Unicode string functions): Add the new modules.
7457 2007-01-08 Bruno Haible <bruno@clisp.org>
7459 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
7460 (Depends-on): Add unitypes.
7461 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7462 (u8_mbtouc_aux): Move out to separate file.
7463 (u8_mbtouc): Use ucs4_t, uint8_t types.
7464 * lib/unistr/utf8-ucs4.c: New file.
7466 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
7467 (Depends-on): Add unitypes.
7468 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
7469 (u16_mbtouc_aux): Move out to separate file.
7470 (u16_mbtouc): Use ucs4_t, uint16_t types.
7471 * lib/unistr/utf16-ucs4.c: New file.
7473 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
7474 (Depends-on): Add unitypes.
7475 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
7476 (u8_uctomb_aux): Move out to separate file.
7477 (u8_uctomb): Use ucs4_t, uint8_t types.
7478 * lib/unistr/ucs4-utf8.c: New file.
7480 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
7481 (Depends-on): Add unitypes.
7482 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
7483 (u16_uctomb_aux): Move out to separate file.
7484 (u16_uctomb): Use ucs4_t, uint16_t types.
7485 * lib/unistr/ucs4-utf16.c: New file.
7487 2006-12-25 Bruno Haible <bruno@clisp.org>
7489 * modules/unitypes: New file.
7490 * lib/unitypes.h: New file.
7491 * MODULES.html.sh (func_all_modules): New section "Unicode string
7492 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
7493 this section. Add unitypes.
7495 2007-01-08 Bruno Haible <bruno@clisp.org>
7497 Avoid variable names that conflict with those from libtool.
7498 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
7499 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
7500 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
7501 library_names_spec to acl_library_names_spec, hardcode_* to
7503 Reported by Ralf Wildenhues.
7505 2007-01-08 Bruno Haible <bruno@clisp.org>
7507 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
7509 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
7511 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
7512 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
7514 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
7516 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
7517 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
7518 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
7519 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
7521 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
7523 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
7524 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
7526 * lib/gc-libgcrypt.c: Likewise.
7527 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
7528 * modules/gc-arctwo (configure.ac): Likewise.
7529 * modules/gc-des (configure.ac): Likewise.
7530 * modules/gc-hmac-md5 (configure.ac): Likewise.
7531 * modules/gc-hmac-sha1 (configure.ac): Likewise.
7532 * modules/gc-md2 (configure.ac): Likewise.
7533 * modules/gc-md4 (configure.ac): Likewise.
7534 * modules/gc-md5 (configure.ac): Likewise.
7535 * modules/gc-random (configure.ac): Likewise.
7536 * modules/gc-rijndael (configure.ac): Likewise.
7537 * modules/gc-sha1 (configure.ac): Likewise.
7539 2007-01-08 Bruno Haible <bruno@clisp.org>
7541 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
7543 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
7545 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
7547 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
7548 * modules/fcntl-safer (configure.ac): Likewise.
7549 * modules/fopen-safer (configure.ac): Likewise.
7550 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
7551 GNULIB_FWRITEERROR macro definition.
7553 2007-01-08 Bruno Haible <bruno@clisp.org>
7555 * m4/gnulib-common.m4: New file.
7556 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
7557 (func_get_filelist): Add m4/gnulib-common.m4.
7559 2007-01-08 Bruno Haible <bruno@clisp.org>
7561 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
7564 2007-01-08 Jim Meyering <jim@meyering.net>
7566 Use a more robust test for a "can't happen" condition.
7567 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
7568 narrowed the st_size value. Presuming the "can't happen" condition
7569 is true, that narrowing could conceivably convert an invalid st_size
7570 value into a valid one. Instead, use a change based on Matthew
7571 Woehlke's original patch.
7573 Slight readability improvement: use an assert-like macro
7574 in place of literal "abort ()" uses.
7575 * lib/fts.c (fts_assert): Define.
7576 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
7577 Use this macro instead of a bare 'abort'.
7579 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
7581 Don't worry about using IRIX 5.3's wctype.h broken definitions;
7582 simply work around them.
7583 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
7584 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
7585 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
7587 Don't bother to define as macros, since the standard doesn't require it.
7588 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
7589 longer worry about IRIX 5.3.
7590 (HAVE_WCTYPE_CTMP_BUG): Remove.
7592 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
7594 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
7595 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
7596 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
7597 Problems reported by Georg Schwarz for IRIX 5.3.
7599 * gnulib-tool (autoconf_minversion): Take the maximum version number
7600 found, not the minimum. Problem reported by James Youngman.
7602 2007-01-03 Karl Berry <karl@gnu.org>
7604 * doc/error.texi: new file, explaining interaction with progname.
7605 * doc/gnulib.texi: include it. Update copyright.
7607 2007-01-03 Simon Josefsson <simon@josefsson.org>
7609 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
7610 AC_CANONICAL_HOST, to improve autobuild outputs.
7612 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
7613 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7615 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
7616 sockets, server sockets, and other file descriptors. Count errors
7617 to compute the return value. Reorder the code a bit to be easier
7618 to follow. Don't set event bits that were not requested (except
7619 POLLERR and POLLHUP).
7621 2007-01-01 Bruno Haible <bruno@clisp.org>
7623 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
7625 2007-01-03 Jim Meyering <jim@meyering.net>
7627 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
7629 2007-01-02 Bruno Haible <bruno@clisp.org>
7631 * modules/settime (Include): Require timespec.h.
7632 * modules/nanosleep (Include): Likewise.
7634 2007-01-01 Bruno Haible <bruno@clisp.org>
7636 * gnulib-tool (func_emit_copyright_notice): Bump year.
7637 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
7639 2007-01-01 Bruno Haible <bruno@clisp.org>
7641 Improve support for OpenBSD.
7642 * build-aux/config.rpath (libname_spec): Export.
7643 (library_names_spec): New variable. Export.
7644 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
7645 library_names_spec from the config.rpath output. Locate shared library
7646 through the name pattern in library_names_spec.
7648 2007-01-01 Eric Blake <ebb9@byu.net>
7650 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
7652 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
7654 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
7655 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
7656 assume the C locale, and avoid an "eval" that could cause trouble.
7657 Problem with SORT reported by Bob Proulx.
7659 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
7660 Define. Trivial patch from Henning Nielsen Lund, originally
7661 sent to bug-grep@gnu.org today.
7663 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
7665 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
7666 struct stat. Problem reported by Henning Nielsen Lund.
7667 * lib/acl.c: Include acl.h first, to check interface. Don't
7668 bother to include sys/types.h and sys/stat.h again.
7670 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
7672 Import the following change from libc; problem reported by
7675 2005-10-13 Ulrich Drepper <drepper@redhat.com>
7678 * lib/argp.h: Remove __NTH for __argp_usage inline function.
7680 2006-12-28 Jim Meyering <jim@meyering.net>
7682 * build-aux/announce-gen: Do not assume that the package
7683 builds any of tar.gz, tar.bz2, and .xdelta files.
7684 Suggestion from Simon Josefsson.
7686 2006-12-28 Simon Josefsson <simon@josefsson.org>
7688 * modules/announce-gen: New file.
7690 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
7692 * lib/mbchar.h: Just include <wctype.h>; the wctype module
7693 handles its gotchas now.
7694 * lib/mbswidth.c: Likewise.
7695 * lib/wcwidth.h: Likewise.
7696 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
7697 and iswcntrl; the wctype module does this stuff now.
7698 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7699 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7700 * modules/mbchar (Depends-on): Add wctype.
7701 * modules/mbswidth (Depends-on): Likewise.
7702 * modules/wcwidth (Depends-on): Likewise.
7704 2006-12-27 Eric Blake <ebb9@byu.net>
7706 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
7707 module uses more than what <wctype.h> is required to provide.
7709 2006-12-26 Eric Blake <ebb9@byu.net>
7711 * gnulib-tool (sed_extract_prog): Avoid space-tab.
7713 2006-12-26 Eric Blake <ebb9@byu.net>
7715 * modules/absolute-header: New module.
7716 * modules/fcntl (Depends-on): Depend on it.
7717 * modules/inttypes (Depends-on): Likewise.
7718 * modules/stdint (Depends-on): Likewise.
7719 * modules/sys_stat (Depends-on): Likewise.
7720 * modules/wctype (Depends-on): Likewise.
7721 * MODULES.html.sh (Support for building libraries and
7722 executables): Document it.
7724 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
7726 * gnulib-tool (SED): Remove, undoing previous change.
7727 The problem was that it broke coreutils on Solaris, because
7728 "sed --posix" leaked into a makefile.
7729 (sed): New alias, if 'alias' and GNU sed.
7731 2006-12-24 Jim Meyering <jim@meyering.net>
7733 Work around an fchownat bug in glibc-2.4:
7734 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
7735 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
7736 in spite of the -P option.
7737 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
7739 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
7740 * modules/openat (Files): Add lib/fchownat.c.
7741 * lib/openat.c (fchownat): Don't define here. Move to...
7742 * lib/fchownat.c: ...this new file.
7744 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
7746 Fix bug reported by Bruno Haible in
7747 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
7748 where quotearg.c didn't compile on Mac OS X 10.2 because it
7749 lacks <wchar.h> and wint_t.
7750 * lib/wctype_.h (__wctype_wint_t): New type.
7751 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
7752 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
7753 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
7754 Arg is now of type __wctype_wint_t, not wint_t.
7755 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
7756 substitute HAVE_WINT_T.
7757 * modules/wctype (Files): Add m4/wint_t.m4.
7758 (wctype.h): Substitute HAVE_WINT_T.
7760 2006-12-23 Bruno Haible <bruno@clisp.org>
7762 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
7764 2006-12-23 Bruno Haible <bruno@clisp.org>
7766 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
7768 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
7771 2006-12-22 Bruno Haible <bruno@clisp.org>
7773 * lib/copy-file.c: Include acl.h.
7774 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
7775 Close the file descriptors only after being done with copy_acl.
7776 * modules/copy-file (Depends-on): Add acl.
7778 2006-12-22 Bruno Haible <bruno@clisp.org>
7780 * gnulib-tool (SED): New variable.
7781 Use $SED instead of sed everywhere.
7783 2006-12-22 Bruno Haible <bruno@clisp.org>
7785 * modules/no-c++: New file.
7786 * m4/no-c++.m4: New file.
7787 * MODULES.html.sh (Support for building libraries and executables):
7790 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
7792 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
7793 Include <limits.h>, and use its INT_MAX to rewrite the
7794 j loop so that it does not overflow 'int'. Problem reported by
7796 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
7797 Play it safe by shifting left by 1 rather than multiplying by 2,
7798 as GCC is less likely to optimize this away when the value
7799 is signed (when it assumes overflow leads to undefined behavior).
7800 Also, don't assume time_t uses two's complement.
7802 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
7804 * MODULES.html.sh: New module wctype.
7805 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
7806 * lib/fnmatch.c: Don't bother to include <wchar.h> before
7807 <wctype.h>, since the new wctype module should fix this.
7808 * lib/quotearg.c: Include <wctype.h> unconditionally, since
7809 the wctype module should arrange for it.
7810 * lib/regex_internal.h: Likewise.
7811 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
7812 since the wctype module should handle this now.
7813 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
7814 * modules/fnmatch (Depends-on): Add wctype.
7815 * modules/quotearg (Depends-on): Likewise.
7816 * modules/regex (Depends-on): Likewise.
7818 2006-12-19 Bruno Haible <bruno@clisp.org>
7820 * lib/strdup.h [C++]: Wrap definitions in extern "C".
7821 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
7823 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7825 * modules/savewd (Depends-on): Fix dependency on fcntl.
7827 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
7829 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
7830 conforms to C99, rather than relying on the user's environment
7831 setting of STDINT_H.
7833 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
7834 and Eric Blake <ebb9@byu.net>
7836 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
7837 This is more consistent with the other defines here.
7838 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
7839 Port to z/OS. Problem reported by Paul Gilmartin.
7840 Change local vars to use gl_ prefix rather than ac_.
7841 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
7843 * modules/double-slash-root: New module.
7844 * modules/dirname (Files): Remove m4/double-slash-root.m4.
7845 (Depends-on): Add double-slash-root.
7846 * MODULES.html.sh (File system functions): Mention new module.
7848 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
7850 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
7851 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
7852 This is for the benefit of gzip, which doesn't do i18n.
7854 2006-12-12 Jim Meyering <jim@meyering.net>
7856 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
7857 Reported by Andreas Schwab <schwab@suse.de>.
7859 2006-12-12 Bruno Haible <bruno@clisp.org>
7861 Merge these changes.
7862 2006-09-05 Bruno Haible <bruno@clisp.org>
7863 * lib/iconvme.c (iconv_string): No need to save and restore errno when
7864 iconv_alloc succeeded.
7865 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
7866 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
7867 test for " && dest " at the end - dest is always != NULL there. Call
7868 iconv with 4xNULL arguments initially, to reset the state. Call iconv
7869 with 2xNULL arguments, also to flush the state storage. Handle the
7870 IRIX iconv behaviour. Realloc the final result, to throw away unused
7873 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
7875 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
7876 and fchmodat unconditionally, since glibc 2.4 has them.
7877 Problem reported by Arkadiusz Miskiewicz.
7879 2006-12-10 Bruno Haible <bruno@clisp.org>
7881 * gnulib-tool (func_import): Show the include files only for those
7882 modules that are copied and specified.
7883 Reported by Karl Berry.
7885 2006-12-08 Jim Meyering <jim@meyering.net>
7887 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
7888 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
7890 * build-aux/announce-gen: Add two new options, both optional:
7891 --bootstrap-tools=TOOL_LIST
7892 a comma-separated list of tools, e.g.,
7893 autoconf,automake,bison,gnulib
7894 --gnulib-snapshot-date=DATE
7895 if gnulib is in the bootstrap tool list,
7896 then report this as the snapshot date.
7897 If not specified, use the current date/time.
7898 If you specify a date here, be sure it's UTC.
7900 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7902 * tests/test-argp-2.sh: Fix test to match actual output.
7903 (func_compare): Fix sed script to be portable.
7905 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
7907 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
7908 workaround for this case. It is not autoconfigured now; offhand
7909 it's hard to see how to autoconfigure it.
7911 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
7913 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
7914 a directory that is about to be chowned. Such a directory's
7915 initial file permissions should permit the owner only and this
7916 should not be changed until after the chown, since the group and
7917 other bits would be incorrect if they granted permission before
7920 Fix porting problem for iswctype reported by Georg Schwarz in:
7921 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
7922 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
7923 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
7924 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
7925 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
7927 2006-12-03 Jim Meyering <jim@meyering.net>
7929 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
7930 p->fts_statp may not yet be defined.
7931 (fts_read): Instead, set it in the caller, once p->fts_statp is
7932 sure to be defined, and corresponds to a top-level directory.
7933 This bug made du -x fail. Here's the coreutils test case:
7934 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
7935 Reported by Mike Frysinger.
7937 2006-12-01 Jim Meyering <jim@meyering.net>
7939 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
7940 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
7941 Reported by Simon Josefsson.
7943 2006-11-30 Jim Meyering <jim@meyering.net>
7945 * m4/warning.m4: Use the all-permissive copyright notice
7946 recommended by RMS (rather than LGPL).
7947 * m4/vararrays.m4: Likewise.
7948 * m4/flexmember.m4: Likewise.
7950 2006-11-29 Bruno Haible <bruno@clisp.org>
7952 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7953 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
7955 Reported by Simon Josefsson <simon@josefsson.org>.
7957 2006-11-28 James Youngman <jay@gnu.org>
7959 * README: Advise users that they might find the bug-gnulib@gnu.org
7960 and autotools-announce@gnu.org mailing lists useful.
7962 2006-11-28 Bruno Haible <bruno@clisp.org>
7964 * m4/ptrdiff_max.m4: Remove file.
7966 2006-11-21 Bruno Haible <bruno@clisp.org>
7968 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
7970 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7971 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
7973 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7974 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
7976 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7978 2006-11-28 Jim Meyering <jim@meyering.net>
7980 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
7981 warning from "gcc -Wshadow" about shadowing the builtin.
7983 2006-11-27 Bruno Haible <bruno@clisp.org>
7985 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
7987 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
7989 2006-11-27 Bruno Haible <bruno@clisp.org>
7990 Paul Eggert <eggert@cs.ucla.edu>
7992 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
7994 2006-11-26 Bruno Haible <bruno@clisp.org>
7996 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
7999 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
8000 Bruno Haible <bruno@clisp.org>
8002 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
8003 if compiling with "gcc -ansi".
8005 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
8007 Fix some incompatibilities with gcc -ansi -pedantic.
8008 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
8009 if compiling pedantically with GCC, unless it's C99 or later.
8010 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
8011 it mishandles gcc -ansi -pedantic as well.
8012 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
8014 * lib/regexec.c (check_node_accept_bytes): Don't use auto
8015 initializers for struct if -pedantic, unless it's C99 or later.
8017 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
8019 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
8020 Don't close an fd more than once. Identical atimes indicate
8021 success, not failure.
8023 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
8025 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
8027 2006-11-23 Jim Meyering <jim@meyering.net>
8029 * build-aux/announce-gen: New file. From coreutils.
8031 2006-11-22 Jim Meyering <jim@meyering.net>
8033 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
8034 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
8035 (fts_read): Use a temporary to narrow the overused st_size member
8036 before using it in a switch statement. Reported by Matthew Woehlke.
8038 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
8039 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
8041 2006-11-20 Bruno Haible <bruno@clisp.org>
8043 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
8044 changequote instead of pairs of brackets.
8045 Reported by Andreas Schwab <schwab@suse.de>.
8047 2006-11-21 Jim Meyering <jim@meyering.net>
8049 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
8050 so as to remain compatible with older compilers.
8051 Patch from Michael Deutschmann.
8053 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
8055 * MODULES.html.sh (File system functions): Add openat.
8057 * lib/openat.h (rpl_fstatat): New macro, if
8058 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
8059 (fstatat): Define to rpl_fstatat under the same conditions,
8060 unless COMPILING_FSTATAT.
8061 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
8062 seems to have the bug.
8063 * lib/fstatat.c: New file.
8064 * modules/openat (Files): Add it.
8066 2006-11-20 Bruno Haible <bruno@clisp.org>
8068 * Makefile: New file.
8070 2006-11-20 Jim Meyering <jim@meyering.net>
8072 The beginnings of syntax-related checks for gnulib.
8073 * lib/Makefile: New file.
8074 * lib/t-idcache: New script. Ensure that the two halves of
8075 idcache.c stay in sync.
8077 * lib/idcache.c: Adjust comments in user- and group- portions to
8078 be more accurate, and to be consistent with one another.
8080 2006-11-20 Jim Meyering <jim@meyering.net>
8082 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
8083 continue using the flexible array member (thus, this module performs
8084 half as many malloc calls), with the addition that...
8085 (getgroup, getuser): Consistently record a non-match via an empty
8086 "name" string, and map an empty string match to a NULL return value.
8087 * modules/idcache (Depends-on): Re-add flexmember.
8089 * lib/idcache.c (getuser): Remove all uses of the register keyword.
8090 (getuidbyname, getgroup, getgidbyname): Likewise.
8092 Use cleaner syntax: NULL rather than 0.
8093 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
8095 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
8097 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
8098 It mishandled the case where the group was missing.
8099 Problem reported by Greg Schafer.
8100 * modules/idcache: Likewise.
8102 2006-11-18 Jim Meyering <jim@meyering.net>
8104 * check-module (%exempt_header): Add exception for some
8105 conditionally-included headers.
8107 * modules/i-ring (Depends-on): Add verify.
8108 (License): Change to LGPL.
8110 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
8112 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
8113 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
8114 and inttostr.h. Use snprintf rather than uinttostr, so that
8115 LGPLed code doesn't depend on GPLed.
8117 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
8119 * modules/inline (License): Change from GPL to LGPL.
8121 2006-11-17 Jim Meyering <jim@meyering.net>
8123 * modules/d-type (License): Switch to LGPL.
8125 2006-11-15 Bruno Haible <bruno@clisp.org>
8127 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
8129 2006-11-15 Eric Blake <ebb9@byu.net>
8131 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
8132 the module dependency.
8134 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8135 Bruno Haible <bruno@clisp.org>
8137 * gnulib-tool (func_create_testdir): Add license consistency check.
8139 2006-11-15 Eric Blake <ebb9@byu.net>
8141 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
8142 random "(cached)" in configure output.
8144 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8146 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
8147 test for conforming inttypes.h is both announced and cached.
8149 * MODULES.html.sh (seen_modules, seen_files): New variables.
8150 (func_module): Rewrite to use a few less gnulib-tool and sed
8151 invocations. Avoid a couple of quadratic algorithms for ...
8152 (missed_modules, missed_files): ... these, with ...
8153 (func_append, func_tmpdir): ... these new functions, from
8154 gnulib-tool. Analogously, install traps for cleanup.
8156 * tests/test-gc.c (main): Remove unused variables.
8157 * tests/test-read-file.c: Include stdlib.h, for 'free'.
8159 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
8161 * modules/inttostr (License): Change to LGPL.
8163 2006-11-14 Eric Blake <ebb9@byu.net>
8165 * modules/tempname (License): Change to LGPL.
8167 2006-11-14 Eric Blake <ebb9@byu.net>
8169 * doc/functions.texi (Function Portability): *printf functions on
8170 Cygwin now understand all POSIX size specifiers.
8172 2006-11-14 Bruno Haible <bruno@clisp.org>
8174 * modules/c-ctype (License): Change to LGPL.
8176 2006-11-12 Bruno Haible <bruno@clisp.org>
8178 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
8179 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
8180 for GNOME libraries, for which the include files are installed in
8181 subdirectories of $prefix/include.
8183 2006-11-12 Bruno Haible <bruno@clisp.org>
8185 * m4/lib-link.m4: Require at least autoconf-2.54.
8186 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
8187 name to underscores for the --with option.
8189 2006-11-13 Bruno Haible <bruno@clisp.org>
8191 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
8192 the tests directory.
8193 Reported by Ralf Wildenhues.
8195 2006-11-13 Bruno Haible <bruno@clisp.org>
8197 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
8198 (func_emit_initmacro_end): Undo the override here.
8199 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
8200 Works around the famous automake error in coreutils.
8202 2006-11-13 Eric Blake <ebb9@byu.net>
8204 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
8205 element, not its node.
8207 2006-11-12 Bruno Haible <bruno@clisp.org>
8209 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
8210 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
8212 2006-11-12 Bruno Haible <bruno@clisp.org>
8214 * gnulib-tool: New option --local-symlink.
8215 (func_usage): Document it.
8216 (lsymbolic): New variable.
8217 (func_import, func_create_testdir): If --symlink was not specified,
8218 test whether --local-symlink was specified and the file comes from
8219 the local_gnulib_dir.
8221 2006-11-12 Bruno Haible <bruno@clisp.org>
8223 * gnulib-tool (func_ln): New function.
8224 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
8226 2006-11-12 Bruno Haible <bruno@clisp.org>
8228 Finish support for source files in subdirectories.
8229 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
8230 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
8232 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
8234 2006-11-12 Bruno Haible <bruno@clisp.org>
8236 * gnulib-tool (func_get_automake_snippet): Synthesize also an
8237 EXTRA_lib_SOURCES augmentation.
8238 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
8240 2006-11-12 Jim Meyering <jim@meyering.net>
8242 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
8243 file descriptors. This also averts a failure on systems with
8244 native openat support when a traversed directory lacks "x" access.
8245 * lib/fts_.h: Include "i-ring.h"
8246 (struct FTS) [fts_fd_ring]: New member.
8247 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
8248 (FCHDIR): Add parentheses.
8249 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
8250 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
8251 When descending, rather than simply closing the previous
8252 fts_cwd_fd value, push that file descriptor onto the ring.
8253 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
8254 (fts_open): Initialize the new fd_ring member.
8255 (fts_close): Clear the ring.
8256 (fts_safe_changedir): When possible, use our new fd_ring to skip
8257 the diropen and fstat and dev/ino comparison that would normally
8258 accompany a virtual `chdir ("..")'.
8260 * modules/fts (Depends-on): Add i-ring.
8261 * modules/i-ring: New module.
8262 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
8263 * m4/i-ring.m4: New file.
8265 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8267 * gnulib-tool (func_create_testdir): Fix replacement of
8268 `build-aux' in configure.ac. Run autotools in gltests
8270 (func_create_testdir, func_create_megatestdir, test): There is
8271 no need for '--force' in most autotool invocations in a new
8272 tree. Actually fail the whole test if any of the tools, or the
8273 configure or make stages fail.
8276 * build-aux/gnupload: Revert last change. Add pointer to upload
8277 instructions of the GNU Maintenance Instructions.
8278 Suggestion by Karl Berry.
8280 2006-11-10 Jim Meyering <jim@meyering.net>
8282 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
8284 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8286 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
8287 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
8288 (bind_textdomain_codeset) [! ENABLE_NLS]:
8289 Evaluate all the arguments. That way, callers get compatible behavior
8290 if the arguments have side effects. Also, it avoids some GCC
8291 diagnostics in some cases; Joel E. Denny reported problems when Bison
8292 was configured with --enable-gcc-warnigs.
8294 2006-11-10 Jim Meyering <jim@meyering.net>
8296 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
8297 relevant options in CFLAGS (like -O, -fno-inline) are taken into
8300 2006-11-10 Jim Meyering <jim@meyering.net>
8302 * modules/inline: New file/module.
8303 * modules/xalloc (Files): Remove m4/inline.m4.
8304 (Depends-on): Add inline, instead.
8305 * modules/oset: Likewise.
8306 * modules/list: Likewise.
8308 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
8310 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
8311 Problem reported by Matthew Woehlke.
8313 2006-11-09 Bruno Haible <bruno@clisp.org>
8315 * lib/tempname.c (gen_tempname): Remove variant that invokes
8317 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
8320 2006-11-08 Bruno Haible <bruno@clisp.org>
8322 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
8323 to 'yes' instead of 'cross-compiling'.
8325 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
8327 * lib/quotearg.h (quotearg_free): New decl.
8328 * lib/quotearg.c (quotearg_free): New function.
8329 (slot0, nslots, slotvec0, slotvec):
8330 Now file-scope so that quotearg_free can get at them.
8332 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8335 * build-aux/gnupload: Add missing 'gnu' to example URL.
8336 Report by Karl Berry.
8338 2006-11-08 Bruno Haible <bruno@clisp.org>
8340 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
8341 Suggested by Paul Eggert.
8343 2006-11-08 Jim Meyering <jim@meyering.net>
8345 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
8346 It's already included if !_LIBC.
8347 (fts_safe_changedir): Add a comment.
8349 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
8351 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
8352 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
8355 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
8356 definitions up, to avoid colliding with change below.
8357 (static_inline) [HAVE_INLINE]: New macro.
8358 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
8359 Provide extern decls when !HAVE_INLINE. Do not define unless
8360 static_inline is defined, either by us or by xmalloc.c. Use
8361 static_inline rather than static inline.
8362 (XCALLOC): Optimize sizeof(T) = 1 case.
8363 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
8365 2006-11-07 Bruno Haible <bruno@clisp.org>
8367 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
8368 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
8370 * modules/xalloc (Files): Add m4/inline.m4.
8372 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8375 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
8376 (Miscellanous Notes): ...from this.
8378 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
8380 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8381 Mention that offsetof should be used instead of sizeof.
8384 2006-11-07 Bruno Haible <bruno@clisp.org>
8386 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
8388 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
8390 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8391 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
8392 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8393 (gl_tree_add_before, gl_tree_add_after):
8394 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
8395 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
8396 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
8397 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
8398 (gl_linked_add_after, gl_linked_add_at): Likewise.
8399 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
8400 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
8401 (gl_tree_add_before, gl_tree_add_after): Likewise.
8402 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
8403 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
8404 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
8406 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8408 * lib/gl_oset.h: Use C comment style, not C++ comment style.
8410 2006-11-06 Bruno Haible <bruno@clisp.org>
8412 * m4/inline.m4: New file.
8413 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
8414 * modules/list (Files): Add m4/inline.m4.
8415 * modules/oset (Files): Likewise.
8417 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
8419 * lib/idcache.c: Include <stddef.h>, for offsetof.
8420 (struct userid.name): Change from char * to a flexible array member.
8422 * modules/idcache (Depends-on): Add flexmember.
8424 * MODULES.html.sh (Core language properties): New module flexmember.
8425 * modules/flexmember, m4/flexmember.m4: New files.
8427 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
8428 inline functions that are identical with the old xnmalloc_inline,
8429 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
8430 that we can avoid some unnecessary integer multiplications and
8431 divisions in the common case where the element size is known at
8433 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
8435 (xnboundedmalloc): Remove.
8436 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
8437 arguments, for consistency with rest of this header.
8438 (xcharalloc): Rewrite using XNMALLOC.
8439 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
8440 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
8441 versions have been moved to lib/xalloc.h and renamed to be the
8442 non-*_inline versions.
8443 (xmalloc, xrealloc): Implement without reference to the xnmalloc
8444 and xnrealloc functions, since those functions are now inline and
8446 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
8447 renaming described above.
8448 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
8449 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
8450 captures the dependency in AC_C_INLINE.
8452 New module canonicalize-lgpl, proposed by Charles Wilson in
8453 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
8454 with a few small changes afterwards.
8455 * MODULES.html.sh (File system functions): New module
8457 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
8458 and canonicalize_file_name.
8459 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
8460 * modules/canonicalize-lgpl: New files.
8462 2006-11-05 Bruno Haible <bruno@clisp.org>
8464 * gnulib-tool (func_import, func_create_testdir): Create directories
8465 also for files in subdirectories of lib/.
8467 2006-11-05 Bruno Haible <bruno@clisp.org>
8469 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
8472 2006-11-03 Bruno Haible <bruno@clisp.org>
8474 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
8475 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
8476 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
8477 (xnboundedmalloc): New inline function.
8478 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
8479 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
8481 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
8483 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
8484 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
8485 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
8487 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8488 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
8490 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
8491 gl_tree_add_after): Use XMALLOC instead of xmalloc.
8492 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
8494 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
8495 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
8496 gl_tree_add_after): Use XMALLOC instead of xmalloc.
8497 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
8498 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
8499 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
8500 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
8502 2006-11-03 Bruno Haible <bruno@clisp.org>
8504 * lib/c-ctype.h [C++]: Define functions without name mangling.
8505 * lib/fwriteerror.h [C++]: Likewise.
8506 * lib/gcd.h [C++]: Likewise.
8507 * lib/linebreak.h [C++]: Likewise.
8509 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
8511 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
8512 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
8513 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
8514 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
8515 Check for functions and headers just once.
8516 Check for declaration of canonicalize_file_name.
8517 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
8519 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
8521 * gnulib-tool (func_import): Fix typo in actioncmd.
8523 2006-11-02 Bruno Haible <bruno@clisp.org>
8525 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
8526 newline sequence in the Makefile.am snippet as a space, like "make"
8528 Reported by Roger Persson <perrog@gmail.com>.
8530 2006-11-01 Bruno Haible <bruno@clisp.org>
8532 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
8533 already declared in <string.h>.
8534 * lib/strcase.h (strncasecmp): Don't declare it if yes.
8536 2006-11-01 Bruno Haible <bruno@clisp.org>
8538 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
8539 * lib/strcase.h: Include <string.h>.
8540 (strcasecmp): Define to rpl_strcasecmp here.
8542 2006-11-01 Bruno Haible <bruno@clisp.org>
8544 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
8546 2006-11-01 Eric Blake <ebb9@byu.net>
8548 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
8550 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
8552 2006-10-29 Bruno Haible <bruno@clisp.org>
8554 Make it compile in C++ mode.
8555 * lib/full-write.c (full_rw): Add a cast.
8557 2006-11-01 Bruno Haible <bruno@clisp.org>
8559 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
8561 Reported by Roger Persson <perrog@gmail.com>.
8563 2006-11-01 Eric Blake <ebb9@byu.net>
8565 * lib/getopt_.h: Fix comments.
8567 2006-10-31 Eric Blake <ebb9@byu.net>
8569 * modules/tmpdir (Depends-on): Add sys_stat.
8570 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
8571 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
8572 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
8573 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
8576 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
8578 Avoid some C++ diagnostics reported by Bruno Haible.
8579 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
8581 (quotearg_alloc): Use xcharalloc rather than xmalloc.
8582 (struct slotvec): Move to top level.
8583 (quotearg_n_options): Rewrite to avoid xmalloc.
8584 * lib/xalloc.h (xcharalloc): New function.
8585 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
8586 [defined __cplusplus]: Add function template that provides result
8587 type propagation. This part of the change is from Bruno Haible.
8589 2006-10-29 Bruno Haible <bruno@clisp.org>
8591 Make it compile in C++ mode.
8592 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
8593 * lib/strnlen1.c (strnlen1): Cast memchr result.
8594 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
8595 * lib/clean-temp.c (string_equals, string_hash): Add casts.
8596 (create_temp_dir): Rename local variable 'template'.
8597 (compile_csharp_using_sscli): Add cast.
8598 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
8599 * lib/findprog.c (find_in_path): Likewise.
8600 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
8601 * lib/wait-process.c (register_slave_subprocess): Likewise.
8603 2006-10-22 Bruno Haible <bruno@clisp.org>
8605 * modules/tsearch: New file.
8606 * lib/tsearch.h: New file.
8607 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
8608 * m4/tsearch.m4: New file.
8609 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
8611 2006-10-29 Eric Blake <ebb9@byu.net>
8613 * lib/arcfour.c: Assume config.h.
8614 * lib/arctwo.c: Likewise.
8615 * lib/base64.c: Likewise.
8616 * lib/check-version.c: Likewise.
8617 * lib/crc.c: Likewise.
8618 * lib/des.c: Likewise.
8619 * lib/gc-gnulib.c: Likewise.
8620 * lib/gc-libgcrypt.c: Likewise.
8621 * lib/gc-pbkdf2-sha1.c: Likewise.
8622 * lib/getaddrinfo.c: Likewise.
8623 * lib/getdelim.c: Likewise.
8624 * lib/getline.c: Likewise.
8625 * lib/hmac-md5.c: Likewise.
8626 * lib/hmac-sha1.c: Likewise.
8627 * lib/iconvme.c: Likewise.
8628 * lib/md2.c: Likewise.
8629 * lib/md4.c: Likewise.
8630 * lib/memxor.c: Likewise.
8631 * lib/read-file.c: Likewise.
8632 * lib/readline.c: Likewise.
8633 * lib/rijndael-alg-fst.c: Likewise.
8634 * lib/rijndael-api-fst.c: Likewise.
8635 * lib/xgetdomainname.c: Likewise.
8637 2006-10-28 Eric Blake <ebb9@byu.net>
8639 * lib/xstrndup.c: Assume config.h.
8641 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
8643 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
8644 stat-macros.h is now for our own macros, whereas stat_h is for
8645 macros in the <sys/stat.h> name space.
8646 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
8647 (STAT_MACROS_H): Remove.
8648 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
8649 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
8650 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
8651 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
8652 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
8653 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
8654 Move these macros to ...
8655 * lib/stat_.h: here. Don't include stat-macros.h.
8656 * lib/canonicalize.c: Don't include stat-macros.h.
8657 * lib/chown.c: Likewise.
8658 * lib/euidaccess.c: Likewise.
8659 * lib/file-type.c: Likewise.
8660 * lib/filemode.c: Likewise.
8661 * lib/glob.c: Likewise.
8662 * lib/isapipe.c: Likewise.
8663 * lib/lchown.c: Likewise.
8664 * lib/lstat.c: Likewise.
8665 * lib/mkdir-p.c: Likewise.
8666 * lib/rmdir.c: Likewise.
8667 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
8668 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
8669 unless mkdir isn't declared, to speed up 'configure'.
8670 Always create sys/stat.h, since it's unlikely any real sys/stat.h
8671 would define all the S_* symbols.
8672 * modules/canonicalize (Depends-on):
8673 Depend on sys_stat, not stat-macros.
8674 * modules/chown: Likewise.
8675 * modules/euidaccess: Likewise.
8676 * modules/filemode: Likewise.
8677 * modules/file-type: Likewise.
8678 * modules/glob: Likewise.
8679 * modules/isapipe: Likewise.
8680 * modules/lchown: Likewise.
8681 * modules/lstat: Likewise.
8682 * modules/mkancesdirs: Likewise.
8683 * modules/rmdir: Likewise.
8684 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
8685 * modules/modechange: Likewise.
8686 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
8687 (configure.ac): Remove gl_STAT_MACROS.
8688 * modules/sys_stat (Depends-on): Remove stat-macros.
8690 2006-10-27 Bruno Haible <bruno@clisp.org>
8692 * m4/signed.m4: Remove file.
8693 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
8695 * modules/vasnprintf (Files): Remove m4/signed.m4.
8697 2006-10-27 Bruno Haible <bruno@clisp.org>
8699 Update to GNU gettext 0.16.
8700 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
8701 m4/inttypes-h.m4, m4/signed.m4.
8702 * m4/gettext.m4: Update to GNU gettext 0.16.
8703 * m4/intl.m4: New file, from GNU gettext.
8704 * m4/intldir.m4: New file, from GNU gettext.
8705 * config/srclist.txt: Update
8707 2006-10-27 Eric Blake <ebb9@byu.net>
8709 * MODULES.html.sh: Document tempname.
8710 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
8712 (Files): Move lib/tempname.c...
8713 * modules/tempname: ...to this new module.
8714 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
8715 (gl_PREREQ_TEMPNAME): Move...
8716 * m4/tempname.m4: ...to this new file.
8717 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
8718 * modules/sys_stat (Depends-on): Add stat-macros.
8719 * lib/stat_.h (includes): Pick up stat macros.
8720 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
8721 if stat macros are broken.
8722 * lib/tempname.c (includes): No need to include "stat-macros.h".
8723 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
8724 (direxists, __path_search) [!_LIBC]: Don't compile these in
8725 gnulib; the tmpdir module covers that.
8726 * lib/tempname.h: New file.
8728 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
8730 * COPYING: Explain how gnulib-tool converts licence headers.
8731 Almost all wording by Eric Blake.
8733 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
8735 * lib/mbchar.h (is_basic_table): Make read-only.
8736 * lib/mbchar.c (is_basic_table): Likewise.
8737 Reported by John Darrington.
8739 2006-10-25 Bruno Haible <bruno@clisp.org>
8741 * lib/progname.h (set_program_name): Undefine before defining.
8743 2006-10-25 Bruno Haible <bruno@clisp.org>
8745 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
8746 false for non-gcc C++ compilers.
8747 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8749 2006-10-24 Bruno Haible <bruno@clisp.org>
8751 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
8752 iconv implementations like Irix iconv.
8754 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
8756 * modules/vararrays: New file.
8757 * m4/vararrays.m4: New file, taken from diffutils.
8758 * MODULES.html.sh: New module vararrays.
8760 2006-10-24 Karl Berry <karl@gnu.org>
8762 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
8763 Don't call GNU Unix.
8765 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8767 * users.txt: Add Libtool.
8771 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
8773 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
8774 to gnulib's policy of including config.h unconditionally.
8776 2006-10-24 Bruno Haible <bruno@clisp.org>
8778 * modules/wcwidth (Files): Add m4/wint_t.m4.
8779 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
8780 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
8782 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
8784 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
8785 to pacify GCC with some -W flags enabled. Problem reported by
8788 2006-10-24 Jim Meyering <jim@meyering.net>
8790 * MODULES.html.sh: Remove uinttostr. It's not a module.
8791 Reported by Karl Berry.
8793 2006-10-23 Bruno Haible <bruno@clisp.org>
8795 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
8797 2006-10-24 Bruno Haible <bruno@clisp.org>
8799 * lib/gl_list.h: Use C comment style, not C++ comment style.
8801 2006-10-23 Eric Blake <ebb9@byu.net>
8803 * lib/getaddrinfo.c (includes): Add missing include.
8805 2006-10-23 Bruno Haible <bruno@clisp.org>
8806 Paul Eggert <eggert@cs.ucla.edu>
8808 Ability to rename obstack_free.
8809 * lib/obstack.h (__obstack_free): New macro. Declare instead of
8811 (obstack_free): Invoke the __obstack_free macro.
8812 * lib/obstack.c (obstack_free): Use __obstack_free macro.
8814 2006-10-23 Bruno Haible <bruno@clisp.org>
8815 Paul Eggert <eggert@cs.ucla.edu>
8817 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
8818 __argc, __argv from the declaration. (They are defined as macros on
8821 2006-10-22 Bruno Haible <bruno@clisp.org>
8823 * doc/gnulib-intro.texi: New file.
8824 * doc/gnulib.texi: Include it.
8826 2006-10-21 Bruno Haible <bruno@clisp.org>
8828 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
8829 "Introduction", "Miscellanous Notes", "Particular Modules".
8831 2006-10-21 Bruno Haible <bruno@clisp.org>
8833 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8834 Change mostlyclean-local rule to avoid sh syntax error from bash
8835 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
8837 2006-10-23 Jim Meyering <jim@meyering.net>
8839 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
8840 in place of snprintf.
8842 * modules/inttostr (Files): Add lib/uinttostr.c.
8843 * lib/uinttostr.c (inttostr): New file/function.
8844 * lib/inttostr.h (uinttostr): Declare.
8845 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
8846 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8848 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
8850 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
8852 * lib/canonicalize.c (ELOOP): Define if not already defined.
8853 Problem reported by Bruno Haible in
8854 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
8856 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
8858 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
8859 Problem reported by Perry Smith and Ville Laurikari.
8861 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
8864 2006-10-19 Bruno Haible <bruno@clisp.org>
8866 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
8869 2006-10-19 Bruno Haible <bruno@clisp.org>
8871 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
8874 2006-10-19 Bruno Haible <bruno@clisp.org>
8876 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
8878 2006-10-19 Bruno Haible <bruno@clisp.org>
8880 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
8883 2006-10-19 Bruno Haible <bruno@clisp.org>
8885 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
8888 2006-10-19 Bruno Haible <bruno@clisp.org>
8890 * gnulib-tool (func_create_testdir): Don't include ftruncate and
8891 mountlist by default.
8893 2006-10-16 Bruno Haible <bruno@clisp.org>
8895 * lib/c-strstr.c: Include c-strstr.h.
8897 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
8899 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
8902 2006-10-18 Bruno Haible <bruno@clisp.org>
8904 * lib/lock.h [C++]: Wrap definitions in extern "C".
8906 2006-10-18 Bruno Haible <bruno@clisp.org>
8908 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
8911 2006-10-18 Bruno Haible <bruno@clisp.org>
8913 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
8915 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
8917 * lib/xstrtol.h: Include gettext.h.
8918 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
8919 Problem reported by Eric Blake.
8920 * modules/xstrtol (Depends-on): Add gettext-h.
8922 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
8924 * lib/strftime.c (advance): New macro.
8925 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
8926 incomplete type, so you can't add 0 to it. Problem and patch
8927 reported by Eelco Dolstra for dietlibc.
8929 2006-10-18 Jim Meyering <jim@meyering.net>
8931 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
8932 type for a local, and rename it: s/up/user_proc/.
8934 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
8936 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
8937 READ_UTMP_USER_PROCESS.
8938 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
8940 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
8942 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
8943 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
8945 2006-10-17 Eric Blake <ebb9@byu.net>
8947 * lib/sigprocmask.c (sigprocmask): Fix typo.
8949 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
8951 * modules/clean-temp (Makefile.am): Don't add to make output...
8952 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
8955 2006-10-17 Bruno Haible <bruno@clisp.org>
8957 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
8958 differently if DEFAULT_TEXT_DOMAIN is set.
8960 2006-10-16 Bruno Haible <bruno@clisp.org>
8962 * lib/clean-temp.c: Include fwriteerror.h.
8964 2006-10-16 Bruno Haible <bruno@clisp.org>
8966 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
8968 2006-10-16 Bruno Haible <bruno@clisp.org>
8970 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
8971 * lib/sigprocmask.h: Include <sys/types.h>.
8972 (sigset_t): Use the system's definition if present.
8974 2006-10-17 Eric Blake <ebb9@byu.net>
8976 * lib/xvasprintf.c (includes): Assume config.h.
8977 * lib/xasprintf.c (includes): Likewise.
8979 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
8981 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
8982 at least as wide as intmax_t.
8984 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
8986 (Imported from Automake.)
8987 * build-aux/gnupload: Update to version 1.1 of directive file.
8989 2006-10-16 Eric Blake <ebb9@byu.net>
8991 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
8992 match Automake 1.10a.
8994 2006-10-14 Bruno Haible <bruno@clisp.org>
8996 * modules/sigprocmask: New file.
8997 * lib/sigprocmask.h: New file.
8998 * lib/sigprocmask.c: New file.
8999 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
9000 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
9001 request sigprocmask.o.
9002 (gl_PREREQ_SIGPROCMASK): New macro.
9003 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
9004 (Depends-on): Add sigprocmask.
9005 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
9006 gt_SIGNALBLOCKING. Test for 'raise' only once.
9007 * lib/fatal-signal.c: Include sigprocmask.h.
9008 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
9009 unblock_fatal_signals): Define always.
9010 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9013 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
9016 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
9017 which incorrectly sets the mode of an existing destination
9018 directory. In some cases the unpatched install-sh could do the
9019 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
9020 system. We hope this is rare in practice, but it's clearly worth
9021 fixing. Problem reported by Alex Unleashed in
9022 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
9023 Also, don't bother to check for -m bugs unless we're using -m;
9024 suggested by Stepan Kasal.
9026 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9029 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
9030 `-c' flag, so they appear at the same position as in %FASTDEP%
9031 mode in depend2.am. Fixes build failure for FreeBSD's c89,
9032 which ignores unknown options only after the first non-option.
9033 Bug report against M4 by Nelson H. F. Beebe.
9035 2006-10-13 Jim Meyering <jim@meyering.net>
9037 Fix a bug in yesterday's change.
9038 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
9039 p->fts_statp->st_dev would be used uninitialized.
9040 Ensures that we always call fts_stat on the very first entry.
9041 Miklos Szeredi reported that find -xdev stopped working.
9043 2006-10-12 Bruno Haible <bruno@clisp.org>
9045 * gnulib-tool (func_get_automake_snippet): Append an automatically
9046 computed EXTRA_DIST augmentation.
9047 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
9048 * modules/alloca-opt (Makefile.am): Likewise.
9049 * modules/allocsa (Makefile.am): Likewise.
9050 * modules/arcfour (Makefile.am): Likewise.
9051 * modules/arctwo (Makefile.am): Likewise.
9052 * modules/argmatch (Makefile.am): Likewise.
9053 * modules/argz (Makefile.am): Likewise.
9054 * modules/atexit (Makefile.am): Likewise.
9055 * modules/backupfile (Makefile.am): Likewise.
9056 * modules/byteswap (Makefile.am): Likewise.
9057 * modules/c-strtod (Makefile.am): Likewise.
9058 * modules/c-strtold (Makefile.am): Likewise.
9059 * modules/calloc (Makefile.am): Likewise.
9060 * modules/canon-host (Makefile.am): Likewise.
9061 * modules/canonicalize (Makefile.am): Likewise.
9062 * modules/chdir-long (Makefile.am): Likewise.
9063 * modules/chdir-safer (Makefile.am): Likewise.
9064 * modules/check-version (Makefile.am): Likewise.
9065 * modules/chown (Makefile.am): Likewise.
9066 * modules/cloexec (Makefile.am): Likewise.
9067 * modules/close-stream (Makefile.am): Likewise.
9068 * modules/closeout (Makefile.am): Likewise.
9069 * modules/crc (Makefile.am): Likewise.
9070 * modules/csharpexec (Makefile.am): Likewise.
9071 * modules/cycle-check (Makefile.am): Likewise.
9072 * modules/des (Makefile.am): Likewise.
9073 * modules/dev-ino (Makefile.am): Likewise.
9074 * modules/dirfd (Makefile.am): Likewise.
9075 * modules/dirname (Makefile.am): Likewise.
9076 * modules/dup2 (Makefile.am): Likewise.
9077 * modules/eealloc (Makefile.am): Likewise.
9078 * modules/error (Makefile.am): Likewise.
9079 * modules/euidaccess (Makefile.am): Likewise.
9080 * modules/exclude (Makefile.am): Likewise.
9081 * modules/exitfail (Makefile.am): Likewise.
9082 * modules/fcntl-safer (Makefile.am): Likewise.
9083 * modules/fcntl (Makefile.am): Likewise.
9084 * modules/file-type (Makefile.am): Likewise.
9085 * modules/fileblocks (Makefile.am): Likewise.
9086 * modules/filemode (Makefile.am): Likewise.
9087 * modules/filenamecat (Makefile.am): Likewise.
9088 * modules/fnmatch (Makefile.am): Likewise.
9089 * modules/fopen-safer (Makefile.am): Likewise.
9090 * modules/fpending (Makefile.am): Likewise.
9091 * modules/fprintftime (Makefile.am): Likewise.
9092 * modules/free (Makefile.am): Likewise.
9093 * modules/fsusage (Makefile.am): Likewise.
9094 * modules/ftruncate (Makefile.am): Likewise.
9095 * modules/fts (Makefile.am): Likewise.
9096 * modules/gc-arcfour (Makefile.am): Likewise.
9097 * modules/gc-des (Makefile.am): Likewise.
9098 * modules/gc-hmac-md5 (Makefile.am): Likewise.
9099 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
9100 * modules/gc-md4 (Makefile.am): Likewise.
9101 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9102 * modules/gc-sha1 (Makefile.am): Likewise.
9103 * modules/gc (Makefile.am): Likewise.
9104 * modules/getaddrinfo (Makefile.am): Likewise.
9105 * modules/getcwd (Makefile.am): Likewise.
9106 * modules/getdelim (Makefile.am): Likewise.
9107 * modules/getdomainname (Makefile.am): Likewise.
9108 * modules/getgroups (Makefile.am): Likewise.
9109 * modules/gethostname (Makefile.am): Likewise.
9110 * modules/gethrxtime (Makefile.am): Likewise.
9111 * modules/getline (Makefile.am): Likewise.
9112 * modules/getloadavg (Makefile.am): Likewise.
9113 * modules/getlogin_r (Makefile.am): Likewise.
9114 * modules/getndelim2 (Makefile.am): Likewise.
9115 * modules/getopt (Makefile.am): Likewise.
9116 * modules/getpagesize (Makefile.am): Likewise.
9117 * modules/getpass-gnu (Makefile.am): Likewise.
9118 * modules/getpass (Makefile.am): Likewise.
9119 * modules/getsubopt (Makefile.am): Likewise.
9120 * modules/gettime (Makefile.am): Likewise.
9121 * modules/gettimeofday (Makefile.am): Likewise.
9122 * modules/getugroups (Makefile.am): Likewise.
9123 * modules/getusershell (Makefile.am): Likewise.
9124 * modules/glob (Makefile.am): Likewise.
9125 * modules/group-member (Makefile.am): Likewise.
9126 * modules/hard-locale (Makefile.am): Likewise.
9127 * modules/hash (Makefile.am): Likewise.
9128 * modules/hmac-md5 (Makefile.am): Likewise.
9129 * modules/hmac-sha1 (Makefile.am): Likewise.
9130 * modules/human (Makefile.am): Likewise.
9131 * modules/idcache (Makefile.am): Likewise.
9132 * modules/imaxabs (Makefile.am): Likewise.
9133 * modules/imaxdiv (Makefile.am): Likewise.
9134 * modules/inet_ntop (Makefile.am): Likewise.
9135 * modules/inet_pton (Makefile.am): Likewise.
9136 * modules/intprops (Makefile.am): Likewise.
9137 * modules/inttostr (Makefile.am): Likewise.
9138 * modules/inttypes (Makefile.am): Likewise.
9139 * modules/isapipe (Makefile.am): Likewise.
9140 * modules/javaversion (Makefile.am): Likewise.
9141 * modules/lchmod (Makefile.am): Likewise.
9142 * modules/lchown (Makefile.am): Likewise.
9143 * modules/localcharset (Makefile.am): Likewise.
9144 * modules/long-options (Makefile.am): Likewise.
9145 * modules/lstat (Makefile.am): Likewise.
9146 * modules/malloc (Makefile.am): Likewise.
9147 * modules/mathl (Makefile.am): Likewise.
9148 * modules/mbchar (Makefile.am): Likewise.
9149 * modules/md2 (Makefile.am): Likewise.
9150 * modules/md4 (Makefile.am): Likewise.
9151 * modules/md5 (Makefile.am): Likewise.
9152 * modules/memcasecmp (Makefile.am): Likewise.
9153 * modules/memchr (Makefile.am): Likewise.
9154 * modules/memcmp (Makefile.am): Likewise.
9155 * modules/memcoll (Makefile.am): Likewise.
9156 * modules/memcpy (Makefile.am): Likewise.
9157 * modules/memmem (Makefile.am): Likewise.
9158 * modules/memmove (Makefile.am): Likewise.
9159 * modules/mempcpy (Makefile.am): Likewise.
9160 * modules/memrchr (Makefile.am): Likewise.
9161 * modules/memset (Makefile.am): Likewise.
9162 * modules/memxor (Makefile.am): Likewise.
9163 * modules/mkancesdirs (Makefile.am): Likewise.
9164 * modules/mkdir-p (Makefile.am): Likewise.
9165 * modules/mkdir (Makefile.am): Likewise.
9166 * modules/mkdtemp (Makefile.am): Likewise.
9167 * modules/mkstemp (Makefile.am): Likewise.
9168 * modules/mktime (Makefile.am): Likewise.
9169 * modules/modechange (Makefile.am): Likewise.
9170 * modules/mountlist (Makefile.am): Likewise.
9171 * modules/nanosleep (Makefile.am): Likewise.
9172 * modules/obstack (Makefile.am): Likewise.
9173 * modules/openat (Makefile.am): Likewise.
9174 * modules/pagealign_alloc (Makefile.am): Likewise.
9175 * modules/pathmax (Makefile.am): Likewise.
9176 * modules/physmem (Makefile.am): Likewise.
9177 * modules/poll (Makefile.am): Likewise.
9178 * modules/posixtm (Makefile.am): Likewise.
9179 * modules/posixver (Makefile.am): Likewise.
9180 * modules/putenv (Makefile.am): Likewise.
9181 * modules/quote (Makefile.am): Likewise.
9182 * modules/quotearg (Makefile.am): Likewise.
9183 * modules/raise (Makefile.am): Likewise.
9184 * modules/read-file (Makefile.am): Likewise.
9185 * modules/readline (Makefile.am): Likewise.
9186 * modules/readlink (Makefile.am): Likewise.
9187 * modules/readtokens (Makefile.am): Likewise.
9188 * modules/readutmp (Makefile.am): Likewise.
9189 * modules/realloc (Makefile.am): Likewise.
9190 * modules/regex (Makefile.am): Likewise.
9191 * modules/rename-dest-slash (Makefile.am): Likewise.
9192 * modules/rename (Makefile.am): Likewise.
9193 * modules/rijndael (Makefile.am): Likewise.
9194 * modules/rmdir (Makefile.am): Likewise.
9195 * modules/rpmatch (Makefile.am): Likewise.
9196 * modules/safe-read (Makefile.am): Likewise.
9197 * modules/safe-write (Makefile.am): Likewise.
9198 * modules/same-inode (Makefile.am): Likewise.
9199 * modules/same (Makefile.am): Likewise.
9200 * modules/save-cwd (Makefile.am): Likewise.
9201 * modules/savedir (Makefile.am): Likewise.
9202 * modules/setenv (Makefile.am): Likewise.
9203 * modules/settime (Makefile.am): Likewise.
9204 * modules/sha1 (Makefile.am): Likewise.
9205 * modules/sig2str (Makefile.am): Likewise.
9206 * modules/snprintf (Makefile.am): Likewise.
9207 * modules/stat-macros (Makefile.am): Likewise.
9208 * modules/stat-time (Makefile.am): Likewise.
9209 * modules/stdbool (Makefile.am): Likewise.
9210 * modules/stdint (Makefile.am): Likewise.
9211 * modules/stdlib-safer (Makefile.am): Likewise.
9212 * modules/stpcpy (Makefile.am): Likewise.
9213 * modules/stpncpy (Makefile.am): Likewise.
9214 * modules/strcase (Makefile.am): Likewise.
9215 * modules/strcasestr (Makefile.am): Likewise.
9216 * modules/strchrnul (Makefile.am): Likewise.
9217 * modules/strcspn (Makefile.am): Likewise.
9218 * modules/strdup (Makefile.am): Likewise.
9219 * modules/strerror (Makefile.am): Likewise.
9220 * modules/strftime (Makefile.am): Likewise.
9221 * modules/strndup (Makefile.am): Likewise.
9222 * modules/strnlen (Makefile.am): Likewise.
9223 * modules/strpbrk (Makefile.am): Likewise.
9224 * modules/strsep (Makefile.am): Likewise.
9225 * modules/strstr (Makefile.am): Likewise.
9226 * modules/strtod (Makefile.am): Likewise.
9227 * modules/strtoimax (Makefile.am): Likewise.
9228 * modules/strtok_r (Makefile.am): Likewise.
9229 * modules/strtol (Makefile.am): Likewise.
9230 * modules/strtoll (Makefile.am): Likewise.
9231 * modules/strtoul (Makefile.am): Likewise.
9232 * modules/strtoull (Makefile.am): Likewise.
9233 * modules/strtoumax (Makefile.am): Likewise.
9234 * modules/strverscmp (Makefile.am): Likewise.
9235 * modules/sys_socket (Makefile.am): Likewise.
9236 * modules/sys_stat (Makefile.am): Likewise.
9237 * modules/sysexits (Makefile.am): Likewise.
9238 * modules/time_r (Makefile.am): Likewise.
9239 * modules/timegm (Makefile.am): Likewise.
9240 * modules/timespec (Makefile.am): Likewise.
9241 * modules/tmpfile-safer (Makefile.am): Likewise.
9242 * modules/trim (Makefile.am): Likewise.
9243 * modules/unistd-safer (Makefile.am): Likewise.
9244 * modules/unlinkdir (Makefile.am): Likewise.
9245 * modules/unlocked-io (Makefile.am): Likewise.
9246 * modules/userspec (Makefile.am): Likewise.
9247 * modules/utime (Makefile.am): Likewise.
9248 * modules/utimecmp (Makefile.am): Likewise.
9249 * modules/utimens (Makefile.am): Likewise.
9250 * modules/vasnprintf (Makefile.am): Likewise.
9251 * modules/vasprintf (Makefile.am): Likewise.
9252 * modules/vsnprintf (Makefile.am): Likewise.
9253 * modules/xalloc (Makefile.am): Likewise.
9254 * modules/xgetcwd (Makefile.am): Likewise.
9255 * modules/xnanosleep (Makefile.am): Likewise.
9256 * modules/xreadlink (Makefile.am): Likewise.
9257 * modules/xstrtod (Makefile.am): Likewise.
9258 * modules/xstrtol (Makefile.am): Likewise.
9259 * modules/xstrtold (Makefile.am): Likewise.
9260 * modules/yesno (Makefile.am): Likewise.
9261 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
9263 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
9265 * modules/error (Makefile.am): Distribute files through
9266 EXTRA_DIST, not lib_SOURCES.
9268 2006-10-12 Eric Blake <ebb9@byu.net>
9270 * modules/error (Makefile.am): Distribute files in /lib.
9271 * modules/obstack (Makefile.am): Likewise.
9273 2006-10-12 Bruno Haible <bruno@clisp.org>
9275 * modules/acl (Makefile.am): Distribute all files in lib/ through
9277 * modules/arcfour (Makefile.am): Likewise.
9278 * modules/arctwo (Makefile.am): Likewise.
9279 * modules/argmatch (Makefile.am): Likewise.
9280 * modules/argz (Makefile.am): Likewise.
9281 * modules/atexit (Makefile.am): Likewise.
9282 * modules/backupfile (Makefile.am): Likewise.
9283 * modules/c-strtod (Makefile.am): Likewise.
9284 * modules/c-strtold (Makefile.am): Likewise.
9285 * modules/calloc (Makefile.am): Likewise.
9286 * modules/canon-host (Makefile.am): Likewise.
9287 * modules/canonicalize (Makefile.am): Likewise.
9288 * modules/chdir-long (Makefile.am): Likewise.
9289 * modules/chdir-safer (Makefile.am): Likewise.
9290 * modules/check-version (Makefile.am): Likewise.
9291 * modules/chown (Makefile.am): Likewise.
9292 * modules/cloexec (Makefile.am): Likewise.
9293 * modules/close-stream (Makefile.am): Likewise.
9294 * modules/closeout (Makefile.am): Likewise.
9295 * modules/crc (Makefile.am): Likewise.
9296 * modules/cycle-check (Makefile.am): Likewise.
9297 * modules/des (Makefile.am): Likewise.
9298 * modules/dirfd (Makefile.am): Likewise.
9299 * modules/dirname (Makefile.am): Likewise.
9300 * modules/dup2 (Makefile.am): Likewise.
9301 * modules/euidaccess (Makefile.am): Likewise.
9302 * modules/exclude (Makefile.am): Likewise.
9303 * modules/exitfail (Makefile.am): Likewise.
9304 * modules/fcntl-safer (Makefile.am): Likewise.
9305 * modules/file-type (Makefile.am): Likewise.
9306 * modules/fileblocks (Makefile.am): Likewise.
9307 * modules/filemode (Makefile.am): Likewise.
9308 * modules/filenamecat (Makefile.am): Likewise.
9309 * modules/fnmatch (Makefile.am): Likewise.
9310 * modules/fopen-safer (Makefile.am): Likewise.
9311 * modules/fpending (Makefile.am): Likewise.
9312 * modules/fprintftime (Makefile.am): Likewise.
9313 * modules/free (Makefile.am): Likewise.
9314 * modules/fsusage (Makefile.am): Likewise.
9315 * modules/ftruncate (Makefile.am): Likewise.
9316 * modules/fts (Makefile.am): Likewise.
9317 * modules/gc (Makefile.am): Likewise.
9318 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
9319 * modules/getaddrinfo (Makefile.am): Likewise.
9320 * modules/getcwd (Makefile.am): Likewise.
9321 * modules/getdelim (Makefile.am): Likewise.
9322 * modules/getdomainname (Makefile.am): Likewise.
9323 * modules/getgroups (Makefile.am): Likewise.
9324 * modules/gethostname (Makefile.am): Likewise.
9325 * modules/gethrxtime (Makefile.am): Likewise.
9326 * modules/getline (Makefile.am): Likewise.
9327 * modules/getloadavg (Makefile.am): Likewise.
9328 * modules/getlogin_r (Makefile.am): Likewise.
9329 * modules/getopt (Makefile.am): Likewise.
9330 * modules/getpass (Makefile.am): Likewise.
9331 * modules/getpass-gnu (Makefile.am): Likewise.
9332 * modules/getsubopt (Makefile.am): Likewise.
9333 * modules/gettime (Makefile.am): Likewise.
9334 * modules/gettimeofday (Makefile.am): Likewise.
9335 * modules/getugroups (Makefile.am): Likewise.
9336 * modules/getusershell (Makefile.am): Likewise.
9337 * modules/glob (Makefile.am): Likewise.
9338 * modules/group-member (Makefile.am): Likewise.
9339 * modules/hard-locale (Makefile.am): Likewise.
9340 * modules/hash (Makefile.am): Likewise.
9341 * modules/hmac-md5 (Makefile.am): Likewise.
9342 * modules/hmac-sha1 (Makefile.am): Likewise.
9343 * modules/human (Makefile.am): Likewise.
9344 * modules/idcache (Makefile.am): Likewise.
9345 * modules/imaxabs (Makefile.am): Likewise.
9346 * modules/imaxdiv (Makefile.am): Likewise.
9347 * modules/inet_ntop (Makefile.am): Likewise.
9348 * modules/inet_pton (Makefile.am): Likewise.
9349 * modules/inttostr (Makefile.am): Likewise.
9350 * modules/isapipe (Makefile.am): Likewise.
9351 * modules/lchown (Makefile.am): Likewise.
9352 * modules/long-options (Makefile.am): Likewise.
9353 * modules/lstat (Makefile.am): Likewise.
9354 * modules/malloc (Makefile.am): Likewise.
9355 * modules/mathl (Makefile.am): Likewise.
9356 * modules/mbchar (Makefile.am): Likewise.
9357 * modules/md2 (Makefile.am): Likewise.
9358 * modules/md4 (Makefile.am): Likewise.
9359 * modules/md5 (Makefile.am): Likewise.
9360 * modules/memcasecmp (Makefile.am): Likewise.
9361 * modules/memchr (Makefile.am): Likewise.
9362 * modules/memcmp (Makefile.am): Likewise.
9363 * modules/memcoll (Makefile.am): Likewise.
9364 * modules/memcpy (Makefile.am): Likewise.
9365 * modules/memmem (Makefile.am): Likewise.
9366 * modules/memmove (Makefile.am): Likewise.
9367 * modules/mempcpy (Makefile.am): Likewise.
9368 * modules/memrchr (Makefile.am): Likewise.
9369 * modules/memset (Makefile.am): Likewise.
9370 * modules/memxor (Makefile.am): Likewise.
9371 * modules/mkancesdirs (Makefile.am): Likewise.
9372 * modules/mkdir (Makefile.am): Likewise.
9373 * modules/mkdir-p (Makefile.am): Likewise.
9374 * modules/mkdtemp (Makefile.am): Likewise.
9375 * modules/mkstemp (Makefile.am): Likewise.
9376 * modules/mktime (Makefile.am): Likewise.
9377 * modules/modechange (Makefile.am): Likewise.
9378 * modules/mountlist (Makefile.am): Likewise.
9379 * modules/nanosleep (Makefile.am): Likewise.
9380 * modules/openat (Makefile.am): Likewise.
9381 * modules/pagealign_alloc (Makefile.am): Likewise.
9382 * modules/physmem (Makefile.am): Likewise.
9383 * modules/poll (Makefile.am): Likewise.
9384 * modules/posixtm (Makefile.am): Likewise.
9385 * modules/posixver (Makefile.am): Likewise.
9386 * modules/putenv (Makefile.am): Likewise.
9387 * modules/quote (Makefile.am): Likewise.
9388 * modules/quotearg (Makefile.am): Likewise.
9389 * modules/raise (Makefile.am): Likewise.
9390 * modules/read-file (Makefile.am): Likewise.
9391 * modules/readline (Makefile.am): Likewise.
9392 * modules/readlink (Makefile.am): Likewise.
9393 * modules/readtokens (Makefile.am): Likewise.
9394 * modules/readutmp (Makefile.am): Likewise.
9395 * modules/realloc (Makefile.am): Likewise.
9396 * modules/regex (Makefile.am): Likewise.
9397 * modules/rename (Makefile.am): Likewise.
9398 * modules/rename-dest-slash (Makefile.am): Likewise.
9399 * modules/rijndael (Makefile.am): Likewise.
9400 * modules/rmdir (Makefile.am): Likewise.
9401 * modules/rpmatch (Makefile.am): Likewise.
9402 * modules/safe-read (Makefile.am): Likewise.
9403 * modules/safe-write (Makefile.am): Likewise.
9404 * modules/same (Makefile.am): Likewise.
9405 * modules/save-cwd (Makefile.am): Likewise.
9406 * modules/savedir (Makefile.am): Likewise.
9407 * modules/setenv (Makefile.am): Likewise.
9408 * modules/settime (Makefile.am): Likewise.
9409 * modules/sha1 (Makefile.am): Likewise.
9410 * modules/sig2str (Makefile.am): Likewise.
9411 * modules/snprintf (Makefile.am): Likewise.
9412 * modules/stdlib-safer (Makefile.am): Likewise.
9413 * modules/stpcpy (Makefile.am): Likewise.
9414 * modules/stpncpy (Makefile.am): Likewise.
9415 * modules/strcase (Makefile.am): Likewise.
9416 * modules/strcasestr (Makefile.am): Likewise.
9417 * modules/strchrnul (Makefile.am): Likewise.
9418 * modules/strcspn (Makefile.am): Likewise.
9419 * modules/strdup (Makefile.am): Likewise.
9420 * modules/strerror (Makefile.am): Likewise.
9421 * modules/strftime (Makefile.am): Likewise.
9422 * modules/strndup (Makefile.am): Likewise.
9423 * modules/strnlen (Makefile.am): Likewise.
9424 * modules/strpbrk (Makefile.am): Likewise.
9425 * modules/strsep (Makefile.am): Likewise.
9426 * modules/strstr (Makefile.am): Likewise.
9427 * modules/strtod (Makefile.am): Likewise.
9428 * modules/strtoimax (Makefile.am): Likewise.
9429 * modules/strtok_r (Makefile.am): Likewise.
9430 * modules/strtol (Makefile.am): Likewise.
9431 * modules/strtoll (Makefile.am): Likewise.
9432 * modules/strtoul (Makefile.am): Likewise.
9433 * modules/strtoull (Makefile.am): Likewise.
9434 * modules/strtoumax (Makefile.am): Likewise.
9435 * modules/strverscmp (Makefile.am): Likewise.
9436 * modules/time_r (Makefile.am): Likewise.
9437 * modules/timegm (Makefile.am): Likewise.
9438 * modules/tmpfile-safer (Makefile.am): Likewise.
9439 * modules/unistd-safer (Makefile.am): Likewise.
9440 * modules/unlinkdir (Makefile.am): Likewise.
9441 * modules/userspec (Makefile.am): Likewise.
9442 * modules/utime (Makefile.am): Likewise.
9443 * modules/utimecmp (Makefile.am): Likewise.
9444 * modules/utimens (Makefile.am): Likewise.
9445 * modules/vasnprintf (Makefile.am): Likewise.
9446 * modules/vasprintf (Makefile.am): Likewise.
9447 * modules/vsnprintf (Makefile.am): Likewise.
9448 * modules/xalloc (Makefile.am): Likewise.
9449 * modules/xgetcwd (Makefile.am): Likewise.
9450 * modules/xnanosleep (Makefile.am): Likewise.
9451 * modules/xreadlink (Makefile.am): Likewise.
9452 * modules/xstrtod (Makefile.am): Likewise.
9453 * modules/xstrtol (Makefile.am): Likewise.
9454 * modules/xstrtold (Makefile.am): Likewise.
9455 * modules/yesno (Makefile.am): Likewise.
9457 2006-10-12 Jim Meyering <jim@meyering.net>
9459 * m4/getloadavg.m4: Revert the change below.
9461 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
9462 lib/getloadavg.c using "ls -L", not "test -f". The latter would
9463 fail with a symlink, which is what coreutils' ./bootstrap now
9466 2006-10-12 Bruno Haible <bruno@clisp.org>
9468 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
9470 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
9471 MSVC and mingw explicitly.
9473 2006-10-11 Simon Josefsson <jas@extundo.com>
9474 Bruno Haible <bruno@clisp.org>
9476 Add support for multiple gnulib-tool invocations in the scope of a
9477 single configure.ac file.
9478 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
9479 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
9480 with the same contents as the _LIBADD variable.
9481 (func_emit_initmacro_start, func_emit_initmacro_end,
9482 func_emit_initmacro_done): New functions.
9483 (func_import, func_create_testdir): Invoke them. Allow the identifiers
9484 gl_LIBOBJS and gl_LTLIBOBJS.
9486 2006-10-11 Bruno Haible <bruno@clisp.org>
9488 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
9489 (func_create_testdir): Don't create po/Makefile.am, don't invoke
9490 autoreconf. Instead, invoke autopoint explicitly but move back the
9491 *.m4 files from gnulib.
9493 2006-10-11 Bruno Haible <bruno@clisp.org>
9495 * gnulib-tool (func_usage): Make module names after --create-testdir
9497 (func_create_testdir): If no module was specified, use nearly all
9500 2006-10-12 Jim Meyering <jim@meyering.net>
9502 Big performance improvement for fts-based tools that use FTS_NOSTAT.
9503 Avoid spurious inode-mismatch problems on non-POSIX file systems.
9504 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
9505 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
9506 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
9507 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
9508 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
9509 (fts_set_stat_required): New function.
9510 (fts_open): Defer the calls to fts_stat, if possible or requested.
9511 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
9512 into fts_stat itself.
9513 (fts_read): Perform any required (deferred) fts_stat call.
9514 (fts_build): Likewise, for the directory we're about to open and read.
9515 In the readdir loop, carefully decide whether each entry will require
9516 an eventual call to fts_stat, using dirent.d_type info if available.
9517 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
9518 a command line argument into this function. Update all callers.
9519 Map a return value of FTS_DOT to FTS_D for a command line argument.
9520 * modules/fts (Depends-on): Add d-type. Alphabetize.
9521 Thanks to Miklos Szeredi for his tenacity and for the initial
9522 bug report about "find" failing on a FUSE-based file system.
9524 * lib/fts.c (fts_open): Use consistent indentation.
9526 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
9528 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
9529 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
9530 reported by Jim Meyering. All uses of cache variables renamed
9531 to match Autoconf's.
9532 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
9535 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9536 Fix misspelling in diagnostic.
9538 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
9540 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
9541 defined. Problem reported by Matthew Woehlke.
9543 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
9544 Add support for Tandem NonStop R series.
9545 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
9548 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
9549 (has_trailing_slash): Omit size arg; all callers changed.
9550 Omit 'inline', since it doesn't help performance and we'd
9551 need to configure it.
9552 Don't count //, ///, etc. as having a trailing slash.
9553 As a side effect, this removes a C99ism reported by Matthew Woehlke.
9554 (rpl_rename_dest_slash): On failure, use rename's errno rather
9555 than (in some cases) an incorrect or junk errno.
9556 Simplify code by removing need to compute length; this does
9557 cause it to make two passes instead of one over the file name,
9560 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
9561 change, since Autoconf's version may no longer be appropriate now
9562 that we are using CVS Autoconf's version. Add support for Tandem.
9564 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
9565 Bruno Haible <bruno@clisp.org>
9567 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
9568 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
9569 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
9570 gl_AC_TYPE_LONG_LONG.
9572 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
9573 instead of HAVE_LONG_LONG.
9574 * lib/printf-args.c (printf_fetchargs): Likewise.
9575 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9576 * lib/vasnprintf.c (VASNPRINTF): Likewise.
9577 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9578 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
9579 gl_AC_TYPE_LONG_LONG.
9581 2006-10-11 Bruno Haible <bruno@clisp.org>
9583 * m4/longlong.m4: Add comments.
9584 * m4/ulonglong.m4: Likewise.
9586 2006-10-10 Bruno Haible <bruno@clisp.org>
9588 Make it possible to #define stpcpy, strdup to aliases.
9589 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
9590 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
9592 2006-10-10 Bruno Haible <bruno@clisp.org>
9594 Make it possible to #define gcd to an alias.
9595 * lib/gcd.c: Include config.h.
9597 2006-10-10 Bruno Haible <bruno@clisp.org>
9599 Make it possible to #define c_isascii to an alias.
9600 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
9601 defined. Undefine the macros before defining them, to avoid gcc
9603 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
9604 define NO_C_CTYPE_MACROS early.
9606 2006-10-10 Bruno Haible <bruno@clisp.org>
9608 Make it possible to #define set_program_name to an alias.
9609 * lib/progname.c: Don't undefine set_program_name; instead, undefine
9610 ENABLE_RELOCATABLE early.
9612 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
9614 Port to Tandem NSK OSS, which has 64-bit signed int but at most
9615 32-bit unsigned int. Problem reported by Matthew Woehlke in:
9616 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
9617 More generally, don't assume that 64-bit signed int is available
9618 if unsigned int is, and vice versa.
9619 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
9620 unsigned symbols, not on their signed counterparts.
9621 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
9622 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
9623 (UINT64_C, UINTMAX_C):
9625 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
9626 unsigned counterparts.
9627 (Have_long_long, Unsigned): New macros.
9628 (Int): Renamed from INT.
9629 (strtoimax): Use the new macros.
9630 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
9631 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
9632 * modules/inttypes (inttypes.h): Substitute
9633 HAVE_UNSIGNED_LONG_LONG_INT.
9634 * modules/stdint (stdint.h): Likewise.
9635 (Files): Add m4/ulonglong.m4.
9637 2006-10-10 Bruno Haible <bruno@clisp.org>
9639 Fix a gcc -Wshadow warning.
9640 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
9642 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
9643 gl_linked_indexof_from_to): Likewise.
9644 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
9646 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
9648 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
9649 Reported by Eric Blake.
9651 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
9653 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
9654 for NetBSD. Problem reported by Bruno Haible.
9656 2006-10-09 Jim Meyering <jim@meyering.net>
9658 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
9659 Patch from Bruno Haible.
9661 2006-10-09 Jim Meyering <jim@meyering.net>
9663 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
9664 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
9665 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
9667 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
9669 Don't include <config.h> twice; this doesn't work in some cases,
9670 e.g., when config.h has "#define intmax_t long long int" and
9671 we include <config.h>, <inttypes.h>, <config.h> in that order.
9672 Problem reported by Matthew Woehlke in:
9673 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
9674 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
9675 * lib/fts-cycle.c: Don't include config.h.
9676 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
9677 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
9678 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
9679 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
9681 * lib/xstrtoumax.c: Likewise.
9682 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
9683 __strtol and the like, so that this module is more like its siblings.
9684 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
9685 Remove; no longer needed now that we assume gnulib inttypes.h.
9687 2006-10-08 Bruno Haible <bruno@clisp.org>
9689 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
9692 2006-10-07 Jim Meyering <jim@meyering.net>
9694 * modules/inttypes (inttypes.h): Revert what seems to have been
9695 an inadvertent part of today's change: use "|", not "/" in the
9696 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
9698 2006-10-07 Bruno Haible <bruno@clisp.org>
9700 * modules/sublist: New file.
9702 2006-10-07 Bruno Haible <bruno@clisp.org>
9704 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
9705 * modules/argz (argz.h): Likewise.
9706 * modules/arpa_inet (arpa/inet.h): Likewise.
9707 * modules/byteswap (byteswap.h): Likewise.
9708 * modules/configmake (configmake.h): Likewise.
9709 * modules/fcntl (fcntl.h): Likewise.
9710 * modules/fnmatch (fnmatch.h): Likewise.
9711 * modules/getopt (getopt.h): Likewise.
9712 * modules/glob (glob.h): Likewise.
9713 * modules/inttypes (inttypes.h): Likewise.
9714 * modules/netinet_in (netinet/in.h): Likewise.
9715 * modules/poll (poll.h): Likewise.
9716 * modules/stdbool (stdbool.h): Likewise.
9717 * modules/stdint (stdint.h): Likewise.
9718 * modules/sys_select (sys/select.h): Likewise.
9719 * modules/sys_socket (sys/socket.h): Likewise.
9720 * modules/sys_stat (sys/stat.h): Likewise.
9721 * modules/sysexits (sysexits.h): Likewise.
9722 * modules/unistd (unistd.h): Likewise.
9723 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9724 Add a "DO NOT EDIT" comment to the generated file.
9725 (func_import): Likewise for gnulib-comp.m4.
9727 2006-10-07 Bruno Haible <bruno@clisp.org>
9729 * lib/gl_sublist.h: New file.
9730 * lib/gl_sublist.c: New file.
9732 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
9734 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
9735 name (relative to the original working directory) and the file
9736 name component (relative to the temporary working directory). All
9738 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
9739 * lib/mkdir-p.c (make_dir_parents): Likewise.
9740 * lib/mkdir-p.h (make_dir_parents): Likewise.
9742 2006-10-06 Eric Blake <ebb9@byu.net>
9744 Define several macros for use by the clean-temp module.
9745 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
9746 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
9747 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
9749 * lib/clean-temp.h (close_stream_temp): New declaration.
9750 * lib/clean-temp.c (includes): Pull in headers according to what
9751 other modules are in use.
9752 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
9754 2006-10-06 Bruno Haible <bruno@clisp.org>
9756 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
9757 instead of fopen, fwriteerror.
9759 2006-10-06 Bruno Haible <bruno@clisp.org>
9761 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
9762 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
9764 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
9765 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
9766 Return an error indicator.
9767 Suggested by Eric Blake.
9769 2006-10-06 Bruno Haible <bruno@clisp.org>
9771 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
9772 Reported by Eric Blake.
9774 2006-10-06 Bruno Haible <bruno@clisp.org>
9776 * modules/closeout (Description): Mention stderr too.
9778 2006-10-06 Bruno Haible <bruno@clisp.org>
9779 and Paul Eggert <eggert@cs.ucla.edu>
9781 * lib/closeout.c (close_stdout): Also close stderr.
9782 * lib/closeout.h: Update comment.
9784 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
9786 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
9787 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
9788 * lib/dirchownmod.c: Include lchown.h.
9789 * lib/lchown.c: Don't include files that lchown.h now includes.
9790 Don't declare chown, since lchown.h now does that.
9791 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
9792 (lchown): Define to rpl_chown if lchown is declared but
9793 does not exist. Declare using a prototype if lchown is not
9794 declared. Add a copyright notice.
9795 * lib/mkstemp.h: Include <unistd.h>.
9796 * lib/openat.c: Include lchown.h.
9798 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
9799 we now test for that separately.
9800 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
9801 rather than O_NOFOLLOW, when testing whether it's possible to
9802 avoid a race condition reliably.
9803 * lib/savewd.c (savewd_chdir): Likewise.
9805 Remove macros that are no longer needed now that stdint.h is
9807 * lib/fsusage.c (UINTMAX_MAX): Remove.
9808 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
9809 * lib/utimecmp.c (SIZE_MAX): Remove.
9811 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
9813 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
9814 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
9817 2006-10-05 Bruno Haible <bruno@clisp.org>
9819 * lib/gl_list.h (gl_sortedlist_search_from_to,
9820 gl_sortedlist_indexof_from_to): New declarations.
9821 (gl_list_implementation): New fields sortedlist_search_from_to,
9822 sortedlist_indexof_from_to.
9823 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
9825 * lib/gl_list.c (gl_sortedlist_search_from_to,
9826 gl_sortedlist_indexof_from_to): New functions.
9827 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
9829 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
9830 (gl_array_sortedlist_search_from_to): New function.
9831 (gl_array_list_implementation): Update.
9832 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
9834 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
9835 (gl_carray_sortedlist_search_from_to): New function.
9836 (gl_carray_list_implementation): Update.
9837 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
9838 gl_linked_sortedlist_indexof_from_to): New functions.
9839 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9840 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9841 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
9842 gl_tree_sortedlist_indexof_from_to): New functions.
9843 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9844 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9846 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9847 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
9850 2006-10-05 Bruno Haible <bruno@clisp.org>
9852 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
9853 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
9854 (struct gl_list_implementation): Add fields search_from_to,
9855 indexof_from_to. Remove fields search, indexof.
9856 (gl_list_search): Use the search_from_to method.
9857 (gl_list_search_from, gl_list_search_from_to): New functions.
9858 (gl_list_indexof): Use the indexof_from_to method.
9859 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9860 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
9861 (gl_list_search_from, gl_list_search_from_to): New functions.
9862 (gl_list_indexof): Use the indexof_from_to method.
9863 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
9864 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
9865 gl_array_indexof. Add start_index, end_index arguments.
9866 (gl_array_search_from_to): Renamed from gl_array_search. Add
9867 start_index, end_index arguments.
9868 (gl_array_remove, gl_array_list_implementation): Update.
9869 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
9870 gl_carray_indexof. Add start_index, end_index arguments.
9871 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
9872 start_index, end_index arguments.
9873 (gl_carray_remove, gl_carray_list_implementation): Update.
9874 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
9875 gl_linked_search. Add start_index, end_index arguments.
9876 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
9877 start_index, end_index arguments.
9878 (gl_linked_remove): Update.
9879 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
9880 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
9881 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
9883 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
9884 gl_tree_search. Add start_index, end_index arguments.
9885 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9886 start_index, end_index arguments.
9887 (gl_tree_remove): Update.
9888 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
9889 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
9890 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
9892 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
9893 gl_tree_search. Add start_index, end_index arguments.
9894 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
9895 start_index, end_index arguments.
9896 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
9898 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
9900 2006-10-05 Bruno Haible <bruno@clisp.org>
9902 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
9904 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
9905 fwriteerror_temp): New declarations.
9906 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
9907 (descriptors): New variable.
9908 (cleanup): First, close the descriptors.
9909 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
9910 fclose_temp, fwriteerror_temp): New functions.
9912 2006-10-04 Jim Meyering <jim@meyering.net>
9914 * lib/fts.c (fts_open): Tiny comment change.
9916 2006-10-04 Bruno Haible <bruno@clisp.org>
9918 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
9919 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
9921 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
9922 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
9924 (gl_LOCK): Require gl_LOCK_BODY.
9926 2006-10-04 Bruno Haible <bruno@clisp.org>
9928 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
9929 (gl_oset_search_atleast): New declaration.
9930 (struct gl_oset_implementation): Add field 'search_atleast'.
9931 (gl_oset_search_atleast): New inline function.
9932 * lib/gl_oset.c (gl_oset_search_atleast): New function.
9933 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
9934 (gl_array_oset_implementation): Update.
9935 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
9936 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
9937 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
9939 2006-10-04 Bruno Haible <bruno@clisp.org>
9941 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
9943 2006-10-03 Bruno Haible <bruno@clisp.org>
9945 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
9946 from gl_avltreehash_list_implementation.
9948 2006-10-03 Bruno Haible <bruno@clisp.org>
9950 * lib/gl_oset.c (gl_oset_add): Fix return type.
9952 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
9954 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
9956 2006-10-02 Eric Blake <ebb9@byu.net>
9958 * modules/strnlen (Depends-on): Add extensions.
9960 2006-10-02 Eric Blake <ebb9@byu.net>
9962 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
9963 definition in 2.60+.
9965 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
9967 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
9970 2006-10-02 Bruno Haible <bruno@clisp.org>
9972 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
9973 to the AUTOMAKE_OPTIONS.
9974 Reported by Jim Meyering.
9976 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
9978 Work around bug in Solaris 10 /proc file system:
9979 /proc/self/fd/NNN/.. isn't the parent directory of
9980 the directory whose file descriptor is NNN. This needs to
9981 be worked around at run time, not compile time, since a
9982 program might be built on Solaris 8, where things work, and
9984 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
9985 to use the following interface instead:
9986 (OPENAT_BUFFER_SIZE): New macro.
9987 (openat_proc_name): New function.
9988 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
9989 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
9991 * lib/openat-proc.c: New file.
9992 * modules/openat (Files): Add lib/openat-proc.c.
9993 (Depends-on): Add same-inode, stdbool.
9994 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
9996 2006-09-29 Bruno Haible <bruno@clisp.org>
9998 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
9999 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
10000 argument. Set stdout_closed before testing for ferror, not after.
10001 (fwriteerror, fwriteerror_no_ebadf): New functions.
10003 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10005 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
10007 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
10009 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
10010 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
10012 2006-09-28 Jim Meyering <jim@meyering.net>
10014 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
10015 Include <unistd.h>.
10017 2006-09-28 Bruno Haible <bruno@clisp.org>
10019 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
10020 * modules/linkedhash-list (Depends-on): Likewise.
10021 * modules/rbtreehash-list (Depends-on): Likewise.
10023 2006-09-28 Bruno Haible <bruno@clisp.org>
10025 * lib/strndup.h: Simplify the redefinition of strndup.
10026 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
10027 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
10029 2006-09-28 Bruno Haible <bruno@clisp.org>
10031 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
10032 * lib/gl_linkedhash_list.c: Likewise.
10033 * lib/gl_rbtreehash_list.c: Likewise.
10035 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
10037 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
10040 * lib/__fpending.h: Don't include <stdio_ext.h> unless
10041 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
10042 it causes <stdio_ext.h> to cause a compile-time error.
10043 Problem reported by Nelson H. F. Beebe.
10044 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
10045 of HAVE_DECL___PENDING.
10047 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
10048 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
10051 2006-09-27 Jim Meyering <jim@meyering.net>
10053 This file could end up with a definition for a function
10054 named __strndup, rather than rpl_strndup on a system with
10055 incomplete weak_alias support.
10056 * lib/strndup.c (strndup): Rename from __strndup.
10057 Remove #defines that used to map __strndup to strndup.
10058 Don't use K&R prototypes.
10059 Remove LIBC-related code, since this file is not sync'd with glibc.
10060 * lib/strndup.h: Revamp, accordingly.
10061 * m4/strndup.m4: Modernize.
10063 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
10065 * modules/savewd (Depends-on): Add 'raise'.
10066 * lib/savewd.c: Include <signal.h>, for 'raise'.
10068 2006-09-26 Jim Meyering <jim@meyering.net>
10070 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
10071 when we detect Darwin 8.7.0's acl_get_file bug.
10072 Rearrange to perform the new (below) run-test while $LIBS
10073 contains any acl-related library. Set USE_ACL at the end.
10074 (gl_ACL_GET_FILE): New function.
10076 2006-09-26 Eric Blake <ebb9@byu.net>
10078 * lib/verror.c: Include <config.h> unconditionally.
10080 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
10082 * modules/clock-time (Maintainer): Add self.
10083 * modules/getlogin_r (Depends-on): Add extensions.
10085 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10087 * modules/clock-time: New module.
10088 * modules/nanosleep (Depends-on): Add clock-time.
10089 * modules/gethrxtime (Depends-on): Likewise.
10090 * modules/gettime (Depends-on): Likewise.
10091 * modules/settime (Depends-on): Likewise.
10093 * modules/fts-lgpl: Depend on openat.
10094 * modules/mkancesdirs: Depend on savewd.
10095 * modules/mkdir-p: Likewise.
10097 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10099 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
10101 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
10102 `gl_have_arbitrary_file_name_length_limit' to
10103 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
10104 actually works between configure runs.
10106 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10107 Bruno Haible <bruno@clisp.org>
10109 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
10111 2006-09-25 Jim Meyering <jim@meyering.net>
10113 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
10114 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
10116 2006-09-25 Eric Blake <ebb9@byu.net>
10118 * gnulib-tool (func_import, func_create_testdir): Fix typos in
10119 exec's in 2006-09-18 patch when shuffling fds.
10121 2006-09-25 Bruno Haible <bruno@clisp.org>
10123 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
10124 Reported by Jim Meyering.
10126 2006-09-24 Jim Meyering <jim@meyering.net>
10128 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
10129 compare a pointer against a literal "0". That caused failures with
10130 at least HP-UX's hpcc.
10132 2006-09-22 Simon Josefsson <jas@extundo.com>
10136 * modules/gc-hmac-sha1:
10137 * modules/gc-hmac-md5:
10139 * modules/gc-arcfour: Distribute more files.
10141 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10143 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
10144 (gl_linked_iterator_from_to): Initialize struct completely.
10145 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
10146 (gl_tree_iterator_from_to): Likewise
10147 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
10148 * lib/gl_array_list.c [lint] (gl_array_iterator)
10149 (gl_array_iterator_from_to): Likewise.
10150 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
10151 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
10152 (gl_carray_iterator_from_to): Likewise.
10154 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
10155 * lib/md4.c (md4_process_block): Remove unused variable.
10156 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
10157 parentheses for clarity.
10159 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10161 * modules/bison-i18n (Depends-on): Add gettext.
10163 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10165 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
10166 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
10167 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
10168 also add missing comma that caused broken test.
10169 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
10170 stdlib.h, for `abort'.
10171 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
10173 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
10174 include unistd.h if present, for `rmdir'.
10175 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
10177 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
10178 in the process include standard headers for prototypes.
10179 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
10180 gets declared on GNU/Linux.
10181 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
10182 unistd.h, for `rmdir'.
10183 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
10185 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
10187 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
10189 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
10191 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10193 * gnulib-tool (func_version): Create output all at once. This
10194 may help avoid triggering unnecessary SIGPIPEs, and at any
10195 rate it doesn't hurt.
10197 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10198 Bruno Haible <bruno@clisp.org>
10200 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
10201 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10202 * m4/signed.m4 (bh_C_SIGNED): Likewise.
10204 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
10205 (gl_FUNC_VASPRINTF): Invoke it.
10207 2006-09-22 Bruno Haible <bruno@clisp.org>
10209 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
10210 getloadavg.c as first argument.
10212 2006-09-22 Bruno Haible <bruno@clisp.org>
10214 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
10215 at the beginning of the gl_INIT macro.
10216 * modules/getloadavg (configure.ac): Pass $gl_source_base to
10219 2006-09-22 Bruno Haible <bruno@clisp.org>
10221 * gnulib-tool (func_create_megatestdir): Don't include the config-h
10223 Suggested by Ralf Wildenhues.
10225 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
10227 Import this patch from libc:
10229 2006-09-06 Jakub Jelinek <jakub@redhat.com>
10231 * lib/regex_internal.c (re_string_reconstruct): Handle
10232 offset < pstr->valid_raw_len && pstr->offsets_needed case.
10233 Ensure no bytes read before raw_mbs array. Pass a saved copy of
10234 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
10235 re_string_context_at.
10237 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
10239 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
10240 gl_REGEX now does it for us.
10241 (gl_REGEX): Add test taken from
10242 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
10244 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
10245 Check that large offsets work. Modernize Autoconf usages.
10246 Prefer "yes" to mean a good thing rather than a bad.
10247 Don't put "#define mkstemp" in config.h, as this might interfere
10248 with standard system headers that "#define mkstemp mkstemp64".
10250 * modules/mkstemp (Depends-on): Add extensions, so that
10251 mkstemp is visible on some platforms.
10252 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
10253 (Include): Change to "mkstemp.h" from <stdlib.h>.
10254 (Files): Add mkstemp.h.
10256 * lib/mkstemp.h: New file, since some standard headers
10258 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
10259 Include "mkstemp.h".
10260 Make the _LIBC code resemble glibc original more,
10261 e.g., use K&R style.
10262 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
10263 (mkstemp): Remove, since mkstemp.h does this for us.
10264 * lib/stdlib--.h: Include mkstemp.h.
10266 Import this patch from libc:
10268 2006-04-07 Ulrich Drepper <drepper@redhat.com>
10270 * lib/tempname.c (__gen_tempname): Change attempts_min
10271 into a macro. Use preprocessor to decide how to initialize
10272 attempts [Coverity CID 67].
10274 2006-09-20 Bruno Haible <bruno@clisp.org>
10276 * lib/mkdtemp.c: Import from libc.
10277 2006-04-07 Ulrich Drepper <drepper@redhat.com>
10278 * sysdeps/posix/tempname.c (__gen_tempname): Change
10279 attempts_min into a macro. Use preprocessor to decide how to
10280 initialize attempts [Coverity CID 67].
10281 2001-11-27 Paul Eggert <eggert@twinsun.com>
10282 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
10283 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
10285 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10287 * gnulib-tool (func_exit): New function, to allow to pass the
10288 exit status portably through the trap. Use everywhere.
10289 (--help, --version): Signal a write error.
10290 (trap): catch SIGPIPE, for write errors.
10291 Exit at the end of the trap, with the correct exit status.
10293 2006-09-19 Karl Berry <karl@gnu.org>
10295 * doc/gnulib.texi: note about the license texinfo files.
10297 2006-09-19 Eric Blake <ebb9@byu.net>
10299 * gnulib-tool: Avoid space-tab.
10301 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
10303 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
10304 that prevented coreutils 6.1 from building. Problem reported
10305 by Petter Reinholdtsen.
10307 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
10309 * gnulib-tool (avoidlist): Fix typo that broke options like
10310 --avoid=lock that are used by coreutils bootstrap.
10312 2006-09-18 Mark D. Baushke <mdb@gnu.org>
10314 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
10315 more systematically.
10317 2006-09-18 Jim Meyering <jim@meyering.net>
10319 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
10321 2006-09-18 Bruno Haible <bruno@clisp.org>
10323 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
10325 2006-09-18 Bruno Haible <bruno@clisp.org>
10327 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
10328 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
10329 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
10330 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
10331 * m4/gettext.m4: Require autoconf >= 2.52.
10332 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
10333 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
10334 of gl_cv_header_inttypes_h.
10336 2006-09-18 Bruno Haible <bruno@clisp.org>
10338 * lib/javaversion.c: Include configmake.h.
10340 2006-09-18 Bruno Haible <bruno@clisp.org>
10342 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
10343 avoid that the while loops be executed in a subshell.
10345 2006-09-18 Bruno Haible <bruno@clisp.org>
10347 * MODULES.html.sh (func_module): Break long lines.
10348 Suggested by Bruce Korb <bkorb@gnu.org>.
10350 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10352 Speed up by a factor of 1.12.
10353 * gnulib-tool (nl): New variable.
10354 (func_import): Rewrite include directive extraction to only read each
10357 2006-09-17 Bruno Haible <bruno@clisp.org>
10359 * modules/javaversion (Makefile.am): Remove DEFS setting.
10360 (Depends-on): Add configmake, for PKGDATADIR definition.
10362 2006-09-17 Bruno Haible <bruno@clisp.org>
10364 * gnulib-tool (func_create_testdir): Rewrite all files at once.
10366 2006-09-17 Bruno Haible <bruno@clisp.org>
10368 * gnulib-tool (func_append): New function, stolen from libtool.m4.
10369 (func_modules_transitive_closure, func_modules_add_dummy,
10370 func_modules_to_filelist, func_import, func_create_testdir,
10371 func_create_megatestdir, ...): Use it wherever possible.
10372 Suggested by Ralf Wildenhues.
10374 2006-09-16 Karl Berry <karl@gnu.org>
10376 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
10377 to avoid sectioning errors.
10378 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
10379 [ifinfo]: blank line after @center-ed titles.
10380 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
10381 Spell FSF address consistently with others.
10382 (These changes approved by rms.)
10384 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10386 Speed up by a factor of 1.61.
10387 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
10388 already checked module names again.
10390 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10392 Speed up by a factor of 1.13.
10393 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
10394 for new_files, and the input to func_add_or_update.
10396 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10398 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
10399 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
10401 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
10403 * modules/mkancesdirs (Depends-on): Add fcntl.
10404 * modules/savewd: New file.
10405 * MODULES.html.sh (File system functions): Add savewd.
10407 * modules/configmake (Makefile.am): Add support for the
10408 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
10410 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
10412 * m4/savewd.m4: New file.
10414 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
10416 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
10417 (dirchownmod): New arg FD. All callers changed.
10418 Use FD rather than opening the directory ourself, as opening is
10419 now the caller's responsibility.
10420 * lib/dirchownmod.h: Likewise.
10421 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
10422 hosts that require <sys/types.h> before <sys/stat.h>. Include
10423 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
10424 (test_dir): Remove.
10425 (mkancesdirs): Return length of prefix of FILE that has already
10426 been made, or -2 if there is a child doing the work. Redo
10427 algorithm so that it is O(N) rather than O(N**2). Optimize away
10428 ".", and treat ".." specially since it might stray back into
10429 already-created areas. Use a subprocess if necessary. New arg
10430 WD; all users changed. MAKE_DIR function should now return 1
10431 if it creates a directory that is not readable. Return -2 if
10432 a child process is spun off.
10433 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
10434 Adjust signature to match code.
10435 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
10436 (make_dir_parents): Use a subprocess if necessary. New arg WD;
10438 * lib/savewd.c, lib/savewd.h: New files.
10440 2006-09-15 Jim Meyering <jim@meyering.net>
10442 * modules/rename-dest-slash: New module.
10443 * MODULES.html.sh (posix_compat): Add it here.
10445 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
10447 2006-09-15 Jim Meyering <jim@meyering.net>
10449 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
10452 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
10454 2006-09-15 Jim Meyering <jim@meyering.net>
10456 * lib/rename-dest-slash.c (has_trailing_slash): Use
10457 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
10458 (rpl_rename_dest_slash): Perform the cheaper trailing slash
10459 test before testing whether SRC is a directory.
10460 Suggestions from Bruno Haible.
10462 Avoid a warning about an unused variable.
10463 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
10464 into the #ifdef block where it's used.
10466 * lib/rename-dest-slash.c: New file.
10468 2006-09-14 Bruno Haible <bruno@clisp.org>
10470 * lib/allocsa.c: Include <config.h> unconditionally.
10471 * lib/asnprintf.c: Likewise.
10472 * lib/asprintf.c: Likewise.
10473 * lib/c-strcasecmp.c: Likewise.
10474 * lib/c-strcasestr.c: Likewise.
10475 * lib/c-strncasecmp.c: Likewise.
10476 * lib/c-strstr.c: Likewise.
10477 * lib/classpath.c: Likewise.
10478 * lib/clean-temp.c: Likewise.
10479 * lib/concatpath.c: Likewise.
10480 * lib/copy-file.c: Likewise.
10481 * lib/csharpcomp.c: Likewise.
10482 * lib/csharpexec.c: Likewise.
10483 * lib/execute.c: Likewise.
10484 * lib/fatal-signal.c: Likewise.
10485 * lib/findprog.c: Likewise.
10486 * lib/fwriteerror.c: Likewise.
10487 * lib/gl_array_list.c: Likewise.
10488 * lib/gl_array_oset.c: Likewise.
10489 * lib/gl_avltree_list.c: Likewise.
10490 * lib/gl_avltree_oset.c: Likewise.
10491 * lib/gl_avltreehash_list.c: Likewise.
10492 * lib/gl_carray_list.c: Likewise.
10493 * lib/gl_linked_list.c: Likewise.
10494 * lib/gl_linkedhash_list.c: Likewise.
10495 * lib/gl_list.c: Likewise.
10496 * lib/gl_oset.c: Likewise.
10497 * lib/gl_rbtree_list.c: Likewise.
10498 * lib/gl_rbtree_oset.c: Likewise.
10499 * lib/gl_rbtreehash_list.c: Likewise.
10500 * lib/imaxabs.c: Likewise.
10501 * lib/imaxdiv.c: Likewise.
10502 * lib/javacomp.c: Likewise.
10503 * lib/javaexec.c: Likewise.
10504 * lib/javaversion.c: Likewise.
10505 * lib/linebreak.c: Likewise.
10506 * lib/localcharset.c: Likewise.
10507 * lib/lock.c: Likewise.
10508 * lib/mbchar.c: Likewise.
10509 * lib/mbswidth.c: Likewise.
10510 * lib/mkdtemp.c: Likewise.
10511 * lib/pipe.c: Likewise.
10512 * lib/printf-args.c: Likewise.
10513 * lib/printf-parse.c: Likewise.
10514 * lib/progname.c: Likewise.
10515 * lib/progreloc.c: Likewise.
10516 * lib/readlink.c: Likewise.
10517 * lib/sh-quote.c: Likewise.
10518 * lib/stpcpy.c: Likewise.
10519 * lib/stpncpy.c: Likewise.
10520 * lib/strcasecmp.c: Likewise.
10521 * lib/strcasestr.c: Likewise.
10522 * lib/strcspn.c: Likewise.
10523 * lib/striconv.c: Likewise.
10524 * lib/strncasecmp.c: Likewise.
10525 * lib/strnlen1.c: Likewise.
10526 * lib/strstr.c: Likewise.
10527 * lib/strtok_r.c: Likewise.
10528 * lib/tls.c: Likewise.
10529 * lib/tmpdir.c: Likewise.
10530 * lib/unicodeio.c: Likewise.
10531 * lib/unsetenv.c: Likewise.
10532 * lib/vasnprintf.c: Likewise.
10533 * lib/vasprintf.c: Likewise.
10534 * lib/wait-process.c: Likewise.
10535 * lib/xallocsa.c: Likewise.
10536 * lib/xsetenv.c: Likewise.
10537 * lib/xstriconv.c: Likewise.
10539 2006-09-13 Simon Josefsson <jas@extundo.com>
10541 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
10542 that internally, suggested by Ralf Wildenhues
10543 <Ralf.Wildenhues@gmx.de>.
10545 2006-09-13 Simon Josefsson <jas@extundo.com>
10547 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
10549 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10551 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
10553 * lib/_fpending.c: Include <config.h> unconditionally, since we no
10554 longer worry about uses that don't define HAVE_CONFIG_H.
10555 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
10556 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
10557 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
10558 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
10559 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
10560 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
10561 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
10562 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
10563 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
10564 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
10565 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
10566 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
10567 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
10568 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
10569 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
10570 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
10571 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
10572 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
10573 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
10574 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
10575 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
10576 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
10577 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
10578 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
10579 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
10580 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
10581 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
10582 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
10583 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
10584 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
10585 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
10586 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
10587 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
10588 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
10589 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
10590 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
10591 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
10592 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
10593 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
10594 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
10595 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
10598 2006-09-13 Eric Blake <ebb9@byu.net>
10600 * lib/getopt.c: Fix typo in last commit.
10602 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
10604 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
10607 2006-09-12 Jim Meyering <jim@meyering.net>
10609 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
10610 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
10611 Reported by Nelson H. F. Beebe.
10613 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
10615 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
10616 program_invocation_name and program_invocation_short_name are
10618 * lib/argp-namefrob.h: Move declarations of program_invocation_name
10619 and program_invocation_short_name to argp.h, so they are visible
10621 * lib/argp.h: Likewise
10623 2006-09-10 Bruno Haible <bruno@clisp.org>
10625 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
10626 m4/inttypes_h.m4, m4/uintmax_t.m4.
10628 2006-09-10 Bruno Haible <bruno@clisp.org>
10630 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
10631 gl_AC_TYPE_UINTMAX_T.
10633 2006-09-10 Bruno Haible <bruno@clisp.org>
10635 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
10637 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
10639 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
10640 convention. Text proposed by Bruno Haible.
10641 (struct argp_option): Document the use of N_() wrappers.
10643 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
10644 '\v', and translate the two parts separately, instead of feeding
10645 the whole string to gettext. This allows to exclude
10646 '\v' from the strings visible to the translator by writing doc
10647 strings as N_("..") "\v" N_("..").
10649 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
10651 * config/srclist.txt: Undo latest change; the bug was fixed.
10653 2006-09-09 Bruno Haible <bruno@clisp.org>
10655 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
10656 assignments if building a library without libtool.
10657 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
10658 in func_emit_lib_Makefile_am.
10659 (func_import): When building a static library libfoo.a, arrange to
10660 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
10661 (func_create_testdir): Likewise.
10662 * modules/gc (configure.ac, Makefile.am): If building statically,
10663 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
10664 * modules/iconvme (configure.ac, Makefile.am): Likewise.
10665 * modules/striconv (configure.ac, Makefile.am): Likewise.
10666 Based on a suggestion by Ralf Wildenhues.
10668 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
10670 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
10671 Check for unistd.h too, since Autoconf doesn't assume POSIX.
10674 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
10675 Add year_2050_test to catch glibc bug 2821
10676 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10678 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
10679 Prefer #ifdef to #if.
10681 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
10682 Return from 'main' instead of calling 'exit'.
10684 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
10686 * lib/mktime.c (guess_time_tm): Fix bug where mktime
10687 returned the maximum time_t value rather than (time_t) -1.
10688 Problem originally reported by William Bardwell
10689 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
10691 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10693 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
10696 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
10698 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
10701 2006-09-08 Jim Meyering <jim@meyering.net>
10703 Don't make generated files read-only. That would bother too many
10704 people. However, do retain the ability to work when targets are
10705 read-only: remove the destination and temporary files before writing
10706 them (when generated via sed or echo), or by using the -f option for
10707 both cp and mv commands. Suggestion to use -f from Paul Eggert.
10708 * modules/alloca-opt, modules/argz, modules/arpa_inet:
10709 * modules/byteswap, modules/configmake, modules/fcntl:
10710 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10711 * modules/localcharset, modules/netinet_in, modules/poll:
10712 * modules/stdbool, modules/stdint, modules/sys_select:
10713 * modules/sys_socket, modules/sys_stat, modules/sysexits:
10715 2006-09-08 Jim Meyering <jim@meyering.net>
10717 Avoid new build failure on FreeBSD 6.0.
10718 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
10719 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
10720 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
10722 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10724 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
10726 2006-09-07 Jim Meyering <jim@meyering.net>
10728 Fix global typo in last change: use chmod u-w, not chmod u-x.
10729 Spotted by Paul Eggert and Bruce Korb.
10730 * modules/alloca-opt, modules/argz, modules/arpa_inet:
10731 * modules/byteswap, modules/configmake, modules/fcntl:
10732 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
10733 * modules/localcharset, modules/netinet_in, modules/poll:
10734 * modules/stdbool, modules/stdint, modules/sys_select:
10735 * modules/sys_socket, modules/sys_stat, modules/sysexits:
10737 2006-09-06 Jim Meyering <jim@meyering.net>
10739 Make generated files be read-only.
10740 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
10741 Ensure that each generated file is now read-only.
10742 * modules/argz: Likewise.
10743 * modules/arpa_inet: Likewise.
10744 * modules/byteswap: Likewise.
10745 * modules/configmake: Likewise.
10746 * modules/fcntl: Likewise.
10747 * modules/fnmatch: Likewise.
10748 * modules/getopt: Likewise.
10749 * modules/glob: Likewise.
10750 * modules/inttypes: Likewise.
10751 * modules/netinet_in: Likewise.
10752 * modules/poll: Likewise.
10753 * modules/stdbool: Likewise.
10754 * modules/stdint: Likewise.
10755 * modules/sys_select: Likewise.
10756 * modules/sys_socket: Likewise.
10757 * modules/sys_stat: Likewise.
10758 * modules/sysexits: Likewise.
10759 * modules/localcharset: Same as above, but continue using temporary
10760 file named "t-$@" (why different?) rather than the "$@-t" used
10763 * modules/sysexits (Makefile.am): Replace literal occurrences
10764 of "sysexit.h" more readable, and more consistent, "$@".
10766 2006-09-06 Bruno Haible <bruno@clisp.org>
10768 * modules/striconv: New file.
10769 * modules/xstriconv: New file.
10770 * MODULES.html.sh (Internationalization functions): Add striconv,
10773 2006-09-06 Bruno Haible <bruno@clisp.org>
10775 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
10776 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
10777 not using libtool correctly.
10779 2006-09-06 Bruno Haible <bruno@clisp.org>
10781 * lib/striconv.h: New file.
10782 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
10784 * lib/xstriconv.h: New file.
10785 * lib/xstriconv.c: New file.
10787 2006-09-06 Bruno Haible <bruno@clisp.org>
10789 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
10792 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10794 * lib/argz_.h: Sync from Libtool.
10796 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
10797 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10799 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
10801 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
10803 * modules/trim: New file.
10805 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
10807 * lib/trim.h: New file.
10808 * lib/trim.c: New file.
10810 2006-09-05 Bruno Haible <bruno@clisp.org>
10812 * MODULES.html.sh (String handling): Add trim.
10814 2006-09-04 Karl Berry <karl@gnu.org>
10816 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
10817 until next release.
10819 2006-09-03 Bruno Haible <bruno@clisp.org>
10821 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
10824 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
10826 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
10827 not gl_GETLOADAVG. Omit unneeded semicolons.
10828 Problems reported by Ralf Wildenhues in
10829 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10830 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
10831 at the end, which is the usual gnulib style.
10833 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
10834 of doing all the work ourselves.
10835 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
10836 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
10838 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
10840 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
10841 Problem reported by Ralf Wildenhues in
10842 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
10844 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
10845 HAVE_STRUCT_STATFS_F_FSTYPENAME.
10847 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
10849 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
10850 yesterday's patch by changing test -n to test -z.
10852 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10854 * modules/getloadavg (Files): Add m4/getloadavg.m4.
10855 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
10856 the former is now obsolescent.
10858 * modules/chdir-long (Depends-on): Add fcntl.
10860 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10862 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
10863 obsolescent, and programs should use gnulib instead.
10864 * m4/getloadavg.m4: New file, with contents taken from Autoconf
10865 but with prefixes changed.
10867 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
10869 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
10870 or stdbool.h, because they might not exist while configuring.
10872 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
10873 Don't include unistd.h or limits.h; not needed, since chdir-long.h
10875 (O_DIRECTORY): Remove.
10877 2006-08-31 Eric Blake <ebb9@byu.net>
10879 * gnulib-tool: Don't let emacs change spaces to TAB.
10881 2006-08-31 Bruno Haible <bruno@clisp.org>
10883 * gnulib-tool: When calling func_import more than once, do it in a
10885 Reported by Eric Blake <ebb9@byu.net>.
10887 2006-08-31 Bruno Haible <bruno@clisp.org>
10889 * gnulib-tool (nl): Remove variable.
10890 (sed_transform_lib_file): Use more robust test for config-h module.
10891 (func_import): Fix typo in 2006-08-25 patch.
10893 2006-08-31 Bruno Haible <bruno@clisp.org>
10895 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
10896 specified, augment Makefile.am variables instead of assigning them.
10898 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10900 Work around a bug in both the Linux and SunOS 64-bit kernels:
10901 nanosleep mishandles sleeps for longer than 2**31 seconds.
10902 Problem reported by Frank v Waveren in
10903 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10904 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
10905 Check for nanosleep bug.
10906 (LIB_NANOSLEEP): Append clock_gettime library if needed.
10908 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10910 Work around a bug in both the Linux and SunOS 64-bit kernels:
10911 nanosleep mishandles sleeps for longer than 2**31 seconds.
10912 Problem reported by Frank v Waveren in
10913 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
10914 * lib/nanosleep.c (BILLION): New constant.
10915 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
10916 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
10919 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10921 * modules/nanosleep (Depends-on): Add gettime.
10923 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
10924 and Simon Josefsson <jas@extundo.com>
10925 and Oskar Liljeblad <oskar@osk.mine.nu>
10927 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
10928 * gnulib-tool (func_import): New license type 'unmodifiable license
10930 * modules/fdl: Use it. Longer description.
10931 * module/gpl, module/lgpl: New files.
10933 2006-08-30 Jim Meyering <jim@meyering.net>
10935 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
10936 shadowing the parameter.
10938 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10942 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10944 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
10945 sharing with gnulib. Report by Eric Blake.
10947 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10949 * modules/isapipe: New file.
10950 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
10952 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10954 * modules/configmake (Makefile.am): Add a comment, and omit
10955 the CONFIGMAKE_ prefix from generated macro names. Suggested
10958 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10960 * m4/isapipe.m4: New file.
10962 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
10964 * lib/isapipe.c, lib/isapipe.h: New files.
10966 2006-08-29 Jim Meyering <jim@meyering.net>
10968 * modules/configmake (Makefile.am): Make configmake.h depend on
10969 Makefile. Otherwise, a stale configmake.h could hang around.
10971 2006-08-29 Eric Blake <ebb9@byu.net>
10973 * lib/error.c (error_at_line, print_errno_message): Match libc, after
10974 resolution of upstream bug 3044.
10976 2006-08-29 Bruno Haible <bruno@clisp.org>
10978 * modules/localcharset (Depends-on): Add configmake.
10979 (Makefile.am): Remove setting of LIBDIR through DEFS.
10981 2006-08-29 Bruno Haible <bruno@clisp.org>
10983 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
10986 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
10988 * modules/fcntl: New file.
10989 * modules/chdir-safer (Depends-on): Add fcntl.
10990 * modules/fts: Likewise.
10991 * modules/mkdir-p: Likewise.
10993 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
10994 This undoes the most recent change, since we're now addressing the
10995 problem in a different way.
10997 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
10998 into output, since the output might be called Makefile.am even
10999 if $makefile_name is something different.
11000 (func_import): Use $makefile_am rather than
11001 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
11004 * modules/inttypes (Files): Add m4/inttypes-h.m4.
11006 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11008 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
11009 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
11010 recent change to stdint.m4, since we're now addressing the problem in a
11013 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11015 * m4/fcntl_h.m4: New file.
11017 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11019 * lib/fcntl_.h: New file.
11020 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
11022 * lib/dirchownmod.c: Likewise.
11023 * lib/fts.c: Likewise.
11025 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
11026 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
11027 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
11028 just before including <inttypes.h>, to avoid circular inclusion.
11030 2006-08-28 Jim Meyering <jim@meyering.net>
11032 * doc/visibility.texi: Actually read and correct the grammar of the
11033 sentence affected by yesterday's change.
11035 2006-08-28 Eric Blake <ebb9@byu.net>
11037 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
11040 2006-08-28 Eric Blake <ebb9@byu.net>
11042 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
11044 2006-08-28 Eric Blake <ebb9@byu.net>
11046 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
11048 2006-08-28 Bruno Haible <bruno@clisp.org>
11050 * modules/c-strstr: New file, from GNU gettext.
11051 * MODULES.html.sh (String handling): Add c-strstr.
11053 2006-08-28 Bruno Haible <bruno@clisp.org>
11055 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
11057 Reported by Eric Blake.
11059 2006-08-28 Bruno Haible <bruno@clisp.org>
11061 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
11062 (VASNPRINTF): Return a string of length > INT_MAX without failing.
11063 * lib/vasprintf.c: Include errno.h, limits.h.
11064 (EOVERFLOW): New fallback definition.
11065 (vasprintf): Test here whether the string length is > INT_MAX.
11066 * lib/vsnprintf.c: Include errno.h, limits.h.
11067 (EOVERFLOW): New fallback definition.
11068 (vsnprintf): Fix bug when generated string was too long for the buffer.
11069 Test here whether the string length is > INT_MAX.
11071 2006-08-28 Bruno Haible <bruno@clisp.org>
11073 * lib/inttypes_.h (SCNX*): Remove definitions.
11074 Reported by Eric Blake.
11076 2006-08-28 Bruno Haible <bruno@clisp.org>
11078 * lib/c-strstr.h: New file, from GNU gettext.
11079 * lib/c-strstr.c: New file, from GNU gettext.
11081 2006-08-28 Bruno Haible <bruno@clisp.org>
11083 * gnulib-tool: Reorder some statements.
11085 2006-08-28 Bruno Haible <bruno@clisp.org>
11087 * gnulib-tool: New option --makefile-name.
11088 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
11090 (func_import): Write $makefile_name to the cache file, and read it from
11091 there unless explicitly specified. Use $makefile_name as file name
11092 instead of Makefile.am. Adjust the recommendations accordingly.
11094 2006-08-28 Bruno Haible <bruno@clisp.org>
11096 * gnulib-tool (func_verify_module): Check against misapplying patch.
11098 2006-08-28 Bruno Haible <bruno@clisp.org>
11100 * gnulib-tool (func_relativize, func_relconcat): New functions.
11101 Give an error if --local-dir is given with --update.
11102 Remove trailing slashes from $local_gnulib_dir.
11103 (func_import): Store the relativized $local_gnulib_dir in
11104 gnulib-cache.m4, and read it from there if not specified explicitly.
11106 2006-08-28 Bruno Haible <bruno@clisp.org>
11108 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
11109 is the current directory. Respect also $local_gnulib_dir.
11111 2006-08-28 Bruno Haible <bruno@clisp.org>
11112 Simon Josefsson <jas@extundo.com>
11115 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
11117 2006-08-27 Jim Meyering <jim@meyering.net>
11119 * doc/visibility.texi: Remove duplicate word: "pointer".
11121 2006-08-26 Bruno Haible <bruno@clisp.org>
11123 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
11124 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
11125 (Makefile.am): Create inttypes.h from inttypes_.h.
11126 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
11128 * modules/imaxabs: New file.
11130 * modules/imaxdiv: New file.
11132 2006-08-26 Bruno Haible <bruno@clisp.org>
11134 * m4/inttypes.m4: New file.
11135 * m4/_inttypes_h.m4: Remove file.
11136 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
11138 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
11140 * m4/imaxabs.m4: New file.
11142 * m4/imaxdiv.m4: New file.
11144 2006-08-26 Bruno Haible <bruno@clisp.org>
11146 * lib/inttypes_.h: New file.
11147 * lib/inttypes.h: Remove file.
11148 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
11150 * lib/imaxabs.c: New file.
11152 * lib/imaxdiv.c: New file.
11154 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
11156 New config-h module, so that "make" output needn't be cluttered
11157 by -DHAVE_CONFIG_H.
11158 * MODULES.html.sh (Support for building libraries and executables):
11160 * modules/config-h: New file.
11161 * gnulib-tool (nl, sed_transform_lib_file): New vars.
11162 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
11163 the config-h module is used.
11165 New configmake module, so that "make" output needn't be cluttered
11166 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
11167 * MODULES.html.sh (Support for building libraries and executables):
11169 * modules/configmake: New file.
11171 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
11173 * m4/config-h.m4: New file.
11175 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
11177 * config/srclist.txt: Add elisp-comp.
11179 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
11181 * MODULES.html.sh (Support for building libraries and executables):
11183 * build-aux/elisp-comp: New file.
11184 * modules/elisp-comp: New file.
11186 2006-08-24 Bruno Haible <bruno@clisp.org>
11188 * gnulib-tool (func_create_testdir): Use non-default values of
11189 sourcebase and m4base.
11191 2006-08-24 Bruno Haible <bruno@clisp.org>
11193 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
11196 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
11198 * modules/openat (Depends-on): Add lchown.
11200 2006-08-23 Bruno Haible <bruno@clisp.org>
11202 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
11203 of gl_LOCK_EARLY instead of gl_LOCK.
11205 2006-08-23 Bruno Haible <bruno@clisp.org>
11207 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
11209 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
11211 2006-08-23 Bruno Haible <bruno@clisp.org>
11213 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
11216 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
11217 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
11218 (gl_LOCK): New macro.
11220 2006-08-22 Simon Josefsson <jas@extundo.com>
11222 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
11225 2006-08-22 Simon Josefsson <jas@extundo.com>
11227 * MODULES.html.sh: Add "Support for maintaining and release
11230 * build-aux/gnupload: New file, from coreutils.
11232 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11234 Avoid the need for AC_LIBSOURCES in m4 macros.
11235 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
11236 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
11237 * modules/check-version (EXTRA_DIST): Add check-version.h.
11238 * modules/crc (EXTRA_DIST): Add crc.h.
11239 * modules/des (EXTRA_DIST): Add des.h.
11240 * modules/gc (EXTRA_DIST): Add gc.h.
11241 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
11242 * modules/getline (EXTRA_DIST): Add getline.h.
11243 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
11244 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
11245 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
11246 * modules/md2 (EXTRA_DIST): Add md2.h.
11247 * modules/md4 (EXTRA_DIST): Add md4.h.
11248 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
11249 * modules/read-file (EXTRA_DIST): Add read-file.h.
11250 * modules/readline (EXTRA_DIST): Add readline.h.
11251 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
11252 rijndael-api-fst.h.
11254 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11256 * m4/rijndael.m4 (gl_ARCFOUR):
11257 * m4/arctwo.m4 (gl_ARCTWO):
11258 * m4/check-version.m4 (gl_CHECK_VERSION):
11259 * m4/crc.m4 (gl_CRC):
11260 * m4/des.m4 (gl_DES):
11261 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
11262 * m4/gc.m4 (gl_GC):
11263 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
11264 * m4/getline.m4 (gl_FUNC_GETLINE):
11265 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
11266 * m4/hmac-md5.m4 (gl_HMAC_MD5):
11267 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
11268 * m4/md2.m4 (gl_MD2):
11269 * m4/md4.m4 (gl_MD4):
11270 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
11271 * m4/read-file.m4 (gl_FUNC_READ_FILE):
11272 * m4/readline.m4 (gl_FUNC_READLINE):
11273 * m4/rijndael.m4 (gl_RIJNDAEL):
11274 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11275 to get the necessary .h files and whatnot.
11277 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
11279 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
11280 gnulib rather than the other way around.
11281 * config/srclistvars.sh (COREUTILS): Remove.
11283 2006-08-22 Jim Meyering <jim@meyering.net>
11285 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
11287 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
11289 2006-08-22 Eric Blake <ebb9@byu.net>
11291 * modules/regexprops-generic: New file.
11292 * MODULES.html.sh (Support for building documentation): List it.
11294 2006-08-22 Eric Blake <ebb9@byu.net>
11296 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
11297 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11298 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
11299 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11301 2006-08-22 Bruno Haible <bruno@clisp.org>
11303 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
11304 and lib_LTLIBRARIES like the other lib_* variables.
11306 2006-08-22 Bruno Haible <bruno@clisp.org>
11308 * build-aux/x-to-1.in: New file, from GNU gettext.
11310 2006-08-22 Bruno Haible <bruno@clisp.org>
11312 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
11315 2006-08-22 Bruno Haible <bruno@clisp.org>
11317 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
11320 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11323 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
11325 Problem reported by Bruno Haible.
11327 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11329 Avoid the need for AC_LIBSOURCES in m4 macros.
11330 * modules/acl (EXTRA_DIST): Add acl.h.
11331 * modules/argmatch (Files): Add m4/argmatch.m4.
11332 (configure.ac): Add gl_ARGMATCH.
11333 (EXTRA_DIST): Renamed from lib_SOURCES, for
11334 consistency with the other modules. Remove argmatch.c.
11335 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
11336 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
11337 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
11338 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
11339 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
11340 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
11341 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
11342 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
11343 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
11344 * modules/closeout (EXTRA_DIST): Add closeout.h.
11345 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
11346 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
11347 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
11348 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
11349 dirname.h; remove basename.c and stripslash.c.
11350 * modules/exclude (EXTRA_DIST): Add exclude.h.
11351 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
11352 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
11353 * modules/file-type (EXTRA_DIST): Add file-type.h.
11354 * modules/filemode (EXTRA_DIST): Add filemode.h.
11355 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
11356 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11357 * modules/fpending (EXTRA_DIST): Add __fpending.h.
11358 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
11359 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
11360 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
11361 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
11362 * modules/getdate (EXTRA_DIST): Add getdate.c.
11363 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
11364 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
11365 * modules/getpass (EXTRA_DIST): Add getpass.h.
11366 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
11367 * modules/group-member (EXTRA_DIST): Add group-member.h.
11368 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
11369 * modules/hash (EXTRA_DIST): Add hash.h.
11370 * modules/human (EXTRA_DIST): Add human.h.
11371 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
11372 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
11373 * modules/lchown (EXTRA_DIST): Add lchown.h.
11374 * modules/long-options (EXTRA_DIST): Add long-options.h.
11375 * modules/lstat (EXTRA_DIST): Add lstat.h.
11376 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
11377 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
11378 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
11379 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
11380 * modules/memxor (EXTRA_DIST): Add memxor.h.
11381 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
11382 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
11383 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
11384 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
11385 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
11386 * modules/physmem (EXTRA_DIST): Add physmem.h.
11387 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
11388 * modules/posixver (EXTRA_DIST): Add posixver.h.
11389 * modules/quote (EXTRA_DIST): Add quote.h.
11390 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
11391 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
11392 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
11393 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
11394 regex_internal.h regexec.c.
11395 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
11396 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
11397 * modules/same (EXTRA_DIST): Add same.h.
11398 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
11399 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
11400 * modules/savedir (EXTRA_DIST): Add savedir.h.
11401 * modules/sha1 (EXTRA_DIST): Add sha1.h.
11402 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
11403 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
11404 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
11405 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
11406 * modules/strdup (EXTRA_DIST): Add strdup.h.
11407 * modules/strftime (EXTRA_DIST): Add strftime.h.
11408 * modules/strndup (EXTRA_DIST): Add strndup.h.
11409 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
11410 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
11411 * modules/time_r (EXTRA_DIST): Add time_r.h.
11412 * modules/timespec (EXTRA_DIST): Add timespec.h.
11413 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
11414 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
11415 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
11416 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
11417 * modules/userspec (EXTRA_DIST): Add userspec.h.
11418 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
11419 * modules/utimens (EXTRA_DIST): Add utimens.h.
11420 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
11421 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
11422 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
11423 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
11424 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
11425 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
11426 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
11427 * modules/yesno (EXTRA_DIST): Add yesno.h.
11429 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
11431 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
11433 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
11434 * m4/dev-ino.m4, same-inode.m4: Remove.
11436 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
11437 * m4/acl.m4 (AC_FUNC_ACL):
11438 * m4/backupfile.m4 (gl_BACKUPFILE):
11439 * m4/c-strtod.m4 (gl_C99_STRTOLD):
11440 * m4/canon-host.m4 (gl_CANON_HOST):
11441 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
11442 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
11443 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
11444 * m4/cloexec.m4 (gl_CLOEXEC):
11445 * m4/close-stream.m4 (gl_CLOSE_STREAM):
11446 * m4/closeout.m4 (gl_CLOSEOUT):
11447 * m4/dirfd.m4 (gl_FUNC_DIRFD):
11448 * m4/dirname.m4 (gl_DIRNAME):
11449 * m4/exclude.m4 (gl_EXCLUDE):
11450 * m4/exitfail.m4 (gl_EXITFAIL):
11451 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
11452 * m4/file-type.m4 (gl_FILE_TYPE):
11453 * m4/filemode.m4 (gl_FILEMODE):
11454 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
11455 * m4/fpending.m4 (gl_FUNC_FPENDING):
11456 * m4/fprintftime.m4 (gl_FPRINTFTIME):
11457 * m4/fts.m4 (gl_FUNC_FTS):
11458 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
11459 * m4/getdate.m4 (gl_GETDATE):
11460 * m4/gethrxtime.m4 (gl_GETHRXTIME):
11461 * m4/getpagesize.m4 (gl_GETPAGESIZE):
11462 * m4/getpass.m4 (gl_FUNC_GETPASS):
11463 * m4/gettime.m4 (gl_GETTIME):
11464 * m4/getugroups.m4 (gl_GETUGROUPS):
11465 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
11466 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
11467 * m4/hard-locale.m4 (gl_HARD_LOCALE):
11468 * m4/hash.m4 (gl_HASH):
11469 * m4/idcache.m4 (gl_IDCACHE):
11470 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
11471 * m4/lchown.m4 (gl_FUNC_LCHOWN):
11472 * m4/long-options.m4 (gl_LONG_OPTIONS):
11473 * m4/lstat.m4 (gl_FUNC_LSTAT):
11474 * m4/md5.m4 (gl_MD5):
11475 * m4/memcasecmp.m4 (gl_MEMCASECMP):
11476 * m4/memcoll.m4 (gl_MEMCOLL):
11477 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
11478 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
11479 * m4/memxor.m4 (gl_MEMXOR):
11480 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
11481 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
11482 * m4/modechange.m4 (gl_MODECHANGE):
11483 * m4/mountlist.m4 (gl_MOUNTLIST):
11484 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
11485 * m4/openat.m4 (gl_FUNC_OPENAT):
11486 * m4/pathmax.m4 (gl_PATHMAX):
11487 * m4/physmem.m4 (gl_PHYSMEM):
11488 * m4/posixtm.m4 (gl_POSIXTM):
11489 * m4/posixver.m4 (gl_POSIXVER):
11490 * m4/quote.m4 (gl_QUOTE):
11491 * m4/quotearg.m4 (gl_QUOTEARG):
11492 * m4/readtokens.m4 (gl_READTOKENS):
11493 * m4/readutmp.m4 (gl_READUTMP):
11494 * m4/regex.m4 (gl_REGEX):
11495 * m4/safe-read.m4 (gl_SAFE_READ):
11496 * m4/safe-write.m4 (gl_SAFE_WRITE):
11497 * m4/same.m4 (gl_SAME):
11498 * m4/save-cwd.m4 (gl_SAVE_CWD):
11499 * m4/savedir.m4 (gl_SAVEDIR):
11500 * m4/settime.m4 (gl_SETTIME):
11501 * m4/sha1.m4 (gl_SHA1):
11502 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
11503 * m4/stat-macros.m4 (gl_STAT_MACROS):
11504 * m4/stat-time.m4 (gl_STAT_TIME):
11505 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
11506 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
11507 * m4/strdup.m4 (gl_FUNC_STRDUP):
11508 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
11509 * m4/strndup.m4 (gl_FUNC_STRNDUP):
11510 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
11511 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
11512 * m4/time_r.m4 (gl_TIME_R):
11513 * m4/timespec.m4 (gl_TIMESPEC):
11514 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
11515 * m4/unlinkdir.m4 (gl_UNLINKDIR):
11516 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
11517 * m4/userspec.m4 (gl_USERSPEC):
11518 * m4/utimecmp.m4 (gl_UTIMECMP):
11519 * m4/utimens.m4 (gl_UTIMENS):
11520 * m4/xalloc.m4 (gl_XALLOC):
11521 * m4/xgetcwd.m4 (gl_XGETCWD):
11522 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
11523 * m4/xreadlink.m4 (gl_XREADLINK):
11524 * m4/xstrtod.m4 (gl_XSTRTOD):
11525 * m4/yesno.m4 (gl_YESNO):
11526 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
11527 to get the necessary .h files and whatnot.
11529 2006-08-21 Mark D. Baushke <mdb@gnu.org>
11530 Bruno Haible <bruno@clisp.org>
11532 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
11533 /bin/sh understanding of '!' conditional negation.
11535 2006-08-21 Jim Meyering <jim@meyering.net>
11537 * modules/openat (Depends-on): Really alphabetize.
11539 * modules/acl (Depends-on): Add error and quote.
11541 * check-module (find_included_lib_files): Add at-func.c to the
11542 ok-to-include-more-than-once white list.
11544 * modules/openat (Depends-on): Add lstat. Alphabetize.
11546 2006-08-21 Bruno Haible <bruno@clisp.org>
11548 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11549 Emit a pkgdata_DATA variable only if some snippets add contents to it.
11550 Reported by Martin Lambers <marlam@marlam.de>.
11552 2006-08-21 Bruno Haible <bruno@clisp.org>
11554 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
11555 specify an installation location, don't emit a noinst_LIBRARIES or
11556 noinst_LTLIBRARIES assignment.
11558 2006-08-21 Bruno Haible <bruno@clisp.org>
11561 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
11562 BeOS has mbrtowc() but no <wctype.h>.
11564 2006-08-21 Bruno Haible <bruno@clisp.org>
11567 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
11570 2006-08-21 Bruno Haible <bruno@clisp.org>
11573 * lib/mbchar.h: Include <wctype.h> only if it exists.
11575 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
11577 Remove files that are no longer needed by their respective modules.
11578 * m4/obstack.m4: Remove.
11579 * m4/strerror_r.m4: Remove.
11580 * m4/uint32_t.m4: Remove.
11581 * m4/uintptr_t.m4: Remove.
11582 * m4/ullong_max.m4: Remove.
11583 * m4/xstrtoimax.m4: Remove.
11584 * m4/xstrtoumax.m4: Remove.
11586 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
11587 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
11588 dependencies now capture this.
11590 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
11591 Do not use AC_LIBSOURCES, since gnulib modules now do this.
11592 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
11593 * m4/human.m4 (gl_HUMAN): Likewise.
11594 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
11595 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
11597 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
11599 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
11600 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
11602 * m4/human.m4 (gl_HUMAN): Likewise.
11603 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
11604 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
11605 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
11606 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
11607 * m4/xstrtol (gl_XSTRTOL): Likewise.
11609 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
11610 AC_TYPE_LONG_LONG_INT.
11611 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
11612 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
11613 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
11614 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
11616 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
11619 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
11620 (gl_PREREQ_XSTRTOUL): Remove.
11622 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
11624 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
11627 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
11629 Add and change modules to make it easier for coreutils to use
11631 * modules/backupfile (Files): Remove m4/d-ino.m4.
11632 (Depends-on): Add d-ino.
11633 * modules/cycle-check (Depends-on): Add stdint.
11634 (lib_SOURCES): Add cycle-check.h.
11635 * modules/d-ino: New module.
11636 * modules/d-type: New module.
11637 * modules/error (Files): Remove m4/strerror_r.m4.
11638 * modules/filemode (Files): Add m4/st_dm_mode.m4.
11639 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11640 m4/inttypes_h.m4, m4/uintmax_t.m4.
11641 (Depends-on): Add stdint.
11642 (lib_SOURCES): Add fsusage.h.
11643 * modules/getcwd (Files): Remove d-ino.m4.
11644 (Depends-on): Add d-ino.
11645 * modules/getndelim2 (Depends-on): Add stdint.
11646 * modules/glob (Files): Remove m4/d-type.m4.
11647 (Depends-on): Add d-type.
11648 * modules/host-os: New module.
11649 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11650 m4/inttypes_h.m4, m4/uintmax_t.m4.
11651 * Depends-on: Add stdint.
11652 (lib_SOURCES): Add human.h.
11653 * modules/inttostr (Files): Remove m4/intmax_t.m4,
11654 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
11655 m4/uintmax_t.m4, m4/ulonglong.m4.
11656 (Depends-on): Add stdint.
11657 (EXTRA_DIST): Add inttostr.h.
11658 * modules/lchmod: New module.
11659 * modules/link-follow: New module.
11660 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
11661 (Depends-on): Add lchmod.
11662 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
11663 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
11664 (Depends-on): Add stdint.
11665 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
11666 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
11667 (Depends-on): Add stdint.
11668 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
11669 * modules/perl: New module.
11670 * modules/regex (Depends-on): Add stdint.
11671 * modules/rmdir-errno: New module.
11672 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11674 (Depends-on): Add stdint.
11675 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
11677 (Depends-on): Add stdint.
11678 * modules/unlink-busy: New module.
11679 * modules/utimecmp (Depends-on): Add stdint.
11680 * modules/uptime: New module.
11681 * modules/winsz-ioctl: New module.
11682 * modules/winsz-termios: New module.
11683 * modules/xnanosleep (Depends-on): Add nanosleep.
11684 * modules/ullong_max: Remove.
11685 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
11686 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
11687 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
11688 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
11689 (Depends-on): Add inttypes.
11690 (lib_SOURCES): Add xstrtol.h.
11691 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
11692 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
11693 * MODULES.html.sh: Move 'assert' into the assert section.
11694 Move 'dummy' into the linking section.
11696 Add section for compatibility checks for POSIX:2001 functions,
11697 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
11698 winsz-ioctl, and winsz-termios into it.
11700 Add top-level Misc section and put host-os, perl, and uptime
11703 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
11705 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
11706 now assume the stdint module. Do not include inttypes.h.
11707 * lib/fsusage.h: Likewise.
11708 * lib/getndelim2.c: Likewise.
11709 * lib/human.h: Likewise.
11710 * lib/inttostr.h: Likewise.
11711 * lib/obstack.c: Likewise.
11712 * lib/regex_internal.h: Likewise.
11713 * lib/tempname.c: Likewise.
11714 * lib/utimecmp.c: Likewise.
11715 * lib/xstrtol.h: Likewise.
11717 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
11719 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
11720 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
11721 * lib/xtime.h: Likewise.
11723 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
11725 * modules/openat (Files): Add lib/fchmodat.c.
11726 Fixes problem reported by Jay Youngman.
11728 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
11730 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
11731 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
11733 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
11734 Bruno Haible <bruno@clisp.org>
11736 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
11737 and is a script that invokes bison. Tighten the code. Add comments.
11739 2006-08-18 Jim Meyering <jim@meyering.net>
11741 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
11742 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
11743 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
11744 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
11746 2006-08-18 Bruno Haible <bruno@clisp.org>
11748 * modules/bison-i18n: New file.
11749 * MODULES.html.sh (Internationalization functions): Add it.
11751 2006-08-18 Bruno Haible <bruno@clisp.org>
11753 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
11754 sys/statvfs.h. When getmntinfo was found, check its declaration and
11755 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
11757 2006-08-18 Bruno Haible <bruno@clisp.org>
11759 * m4/bison-i18n.m4: New file, from bison.
11761 2006-08-18 Bruno Haible <bruno@clisp.org>
11763 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
11764 (ME_DUMMY): Treat "kernfs" as a dummy.
11765 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
11767 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
11769 Update from coreutils.
11771 2006-08-15 Jim Meyering <jim@meyering.net>
11773 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
11775 2006-01-17 Jim Meyering <jim@meyering.net>
11777 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
11779 2006-01-11 Jim Meyering <jim@meyering.net>
11781 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
11782 Check for the lchmod function.
11784 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
11786 Update from coreutils.
11788 * lib/__fpending.h: Add copyright notice.
11789 * lib/fprintftime.h: Likewise.
11790 * lib/savedir.c: Use (C) in copyright notice.
11791 * lib/savedir.h: Likewise.
11793 2006-08-15 Jim Meyering <jim@meyering.net>
11795 * lib/at-func.c: New file, with the logic of all emulated at-functions.
11796 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
11797 in support of the EXPECTED_ERRNO macro.
11798 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
11799 definitions. Instead, define the appropriate symbols and include
11801 * lib/mkdirat.c (mkdirat): Likewise.
11802 * lib/fchmodat.c (fchmodat): Likewise.
11803 (ENOSYS): Remove definition.
11804 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
11805 it. Don't include "unistd--.h" -- it wasn't ever used.
11807 2006-01-17 Jim Meyering <jim@meyering.net>
11809 Rewrite fts.c not to change the current working directory,
11810 by using openat, fstatat, fdopendir, etc..
11812 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
11813 (HAVE_OPENAT_SUPPORT): Define.
11814 [_LIBC] (fchdir): Don't undef or define; no longer used.
11815 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
11816 Now, this `function' always succeeds, and consumes its file descriptor
11817 parameter -- so callers must not close such FDs. Update callers.
11818 (diropen_fd, opendirat, cwd_advance_fd): New functions.
11819 (diropen): Add parameter, SP. Adjust all callers.
11820 Implement using diropen_fd, rather than open.
11821 (fts_open): Initialize new member, fts_cwd_fd.
11822 Remove fts_rft-setting code.
11823 (fts_close): Close fts_cwd_fd, if necessary.
11824 (__opendir2): Define in terms of opendir or opendirat,
11825 depending on whether the FST_NOCHDIR flag is set.
11826 (fts_build): Since fts_safe_changedir consumes its FD, and since
11827 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
11828 and close the dup'd file descriptor upon failure.
11829 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
11830 (fts_safe_changedir): Tweak semantics to reflect that this function
11831 now calls cwd_advance_fd and hence consumes its FD argument.
11832 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
11833 [struct FTS] (fts_rft): Remove now-unused member.
11834 [struct FTS] (fts_cycle.state): Improve comment.
11836 * lib/openat.c (openat_needs_fchdir): New function.
11837 * lib/openat.h (openat_needs_fchdir): Declare it.
11839 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
11841 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
11842 Problem and fix reported by Pádraig Brady in
11843 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
11845 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11847 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
11849 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11851 * lib/memcoll.c (memcoll): Optimize for the common case where the
11852 arguments are bytewise equal.
11854 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11856 * doc/regexprops-generic.texi: Add a copyright notice.
11858 2006-08-15 Bruno Haible <bruno@clisp.org>
11860 * modules/tmpdir (License): Change to LGPL.
11862 2006-08-15 Bruno Haible <bruno@clisp.org>
11864 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
11867 2006-08-14 Simon Josefsson <jas@extundo.com>
11869 * config/srclist.txt: Add gnupload.
11871 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11873 Change copyright notice from LGPL 2 to GPL 2, since that's the
11874 standard form used in the gnulib repository.
11875 * tests/test-lock.c: Likewise.
11876 * tests/test-stdint.c: Likewise.
11877 * tests/test-tls.c: Likewise.
11879 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
11880 prelude-manager. User shorter URLs for GNU projects, without '?'.
11881 Add copyright notice.
11883 * check-module: Add copyright notice. Output a copyright
11884 notice if "--version" is specified.
11885 * modules/COPYING: New file.
11886 * tests/test-getaddrinfo.c: Add copyright notice.
11887 * tests/test-verify.c: Likewise.
11889 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11891 Change copyright notice from LGPL 2 to GPL 2, since that's the
11892 standard form used in the gnulib repository.
11893 * lib/lock.c: LGPL -> GPL.
11894 * lib/lock.h: Likewise.
11895 * lib/strnlen1.c: Likewise.
11896 * lib/strnlen1.h: Likewise.
11897 * lib/tls.c: Likewise.
11898 * lib/tls.h: Likewise.
11899 * lib/tmpdir.c: Likewise.
11901 * lib/TODO: Remove; this belongs only in coreutils.
11903 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11905 Add copyright notices to long-enough files that lack them, since
11906 otherwise the files aren't clearly free. Use the same notice that
11907 getdate.texi already uses.
11908 * doc/alloca-opt.texi: Add copyright notice.
11909 * doc/alloca.texi: Likewise.
11910 * doc/ctime.texi: Likewise.
11911 * doc/functions.texi: Likewise.
11912 * doc/gcd.texi: Likewise.
11913 * doc/gnulib-tool.texi: Likewise.
11914 * doc/inet_ntoa.texi: Likewise.
11915 * doc/visibility.texi: Likewise.
11917 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
11918 * doc/quote.texi: Add copyright notice.
11920 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
11921 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
11922 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
11923 Mention SunOS 5.11. Mention that everything before SunOS 5.7
11924 is now obsolete, and give a pointer to the Sun list.
11925 Add copyright notice.
11927 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
11929 * config/srclistvars.sh: Add copyright notice.
11931 2006-08-14 Eric Blake <ebb9@byu.net>
11933 Import the following change from libc:
11935 2006-08-12 Ulrich Drepper <drepper@redhat.com>
11938 * lib/misc/error.c: Add space between program name and message if file
11941 2006-08-12 Karl Berry <karl@gnu.org>
11943 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
11944 remove, these originate in gnulib now.
11946 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11948 * doc/Makefile (standards.info standards.html standards.dvi):
11949 Also depend on make-stds.texi.
11951 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
11953 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
11954 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
11956 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
11957 in wchar_t. Problem reported by Eric Blake.
11959 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
11960 LEN is smaller than SIZE. Suggested by Bruno Haible.
11961 Also, help the compiler to keep LEN in a register.
11963 2006-08-11 Eric Blake <ebb9@byu.net>
11965 * users.txt: Sort. Add tar.
11967 2006-08-11 Bruno Haible <bruno@clisp.org>
11969 * users.txt: New file.
11971 2006-08-11 Bruno Haible <bruno@clisp.org>
11973 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
11974 before <wchar.h>. Needed for OSF/1 and BSD/OS.
11976 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
11978 * modules/snprintf (Depends-on): Remove minmax.
11979 (Maintainer): Add self and Bruno.
11981 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
11983 * lib/.cppi-disable: Add snprintf.h, socket_.h.
11984 * lib/snprintf.c: Include <errno.h> and <limits.h>.
11985 (EOVERFLOW): Define if the system does not.
11986 Do not include "minmax.h"; it wasn't used.
11987 (snprintf): Don't assume size_t promotes to an unsigned type.
11988 Fix bug when generated string was too long for the buffer: the
11989 buffer's contents are supposed to be the initial prefix of the
11990 output. Don't assume vasnprintf returns EOVERFLOW if the size
11991 exceeds INT_MAX; do the check ourselves.
11993 Import the following changes from libc:
11995 2006-06-02 Jakub Jelinek <jakub@redhat.com>
11997 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
11998 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
11999 set wc to the byte which couldn't be converted.
12000 (re_string_reconstruct): Don't clear valid_raw_len before calling
12001 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12002 tip_context using re_string_context_at.
12004 2006-05-02 Ulrich Drepper <drepper@redhat.com>
12006 * lib/posix/regex.h: g++ still cannot handled [restrict].
12008 2006-04-21 Ulrich Drepper <drepper@redhat.com>
12010 * lib/posix/regex.h: Remove special handling for VMS.
12012 2006-08-10 Jim Meyering <jim@meyering.net>
12014 * modules/same-inode: New module.
12015 * modules/dev-ino: New module.
12016 * modules/cycle-check: Depend on these modules, rather than simply
12017 including their .h files.
12018 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
12019 required via m4/cycle-check.m4.
12020 * modules/same: Depend on new same-inode module, rather than
12021 including same-inode.h.
12022 * modules/chdir-safer: New file.
12024 * modules/chown (Depends-on): Add stat-macros.
12026 2006-08-10 Jim Meyering <jim@meyering.net>
12028 * m4/cycle-check.m4: New file.
12029 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
12030 * m4/dev-ino.m4, m4/same-inode.m4: New files.
12032 2006-08-10 Eric Blake <ebb9@byu.net>
12034 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
12035 in from original proposal.
12037 2006-08-10 Eric Blake <ebb9@byu.net>
12038 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12040 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
12043 2006-08-10 Bruno Haible <bruno@clisp.org>
12045 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
12048 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12050 Sync from coreutils.
12052 2006-07-19 Mike Frysinger <vapier@gentoo.org>
12054 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
12055 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
12057 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12059 * modules/restrict: Remove; no longer needed now that we assume
12060 Autoconf 2.59 or later.
12061 * MODULES.html.sh: Remove 'restrict'.
12062 * modules/argp (Depends-on): Remove 'restrict'.
12063 * modules/base64 (Depends-on): Likewise.
12064 * modules/gc (Depends-on): Likewise.
12065 * modules/getaddrinfo (Depends-on): Likewise.
12066 * modules/glob (Depends-on): Likewise.
12067 * modules/inet_ntop (Depends-on): Likewise.
12068 * modules/inet_pton (Depends-on): Likewise.
12069 * modules/memxor (Depends-on): Likewise.
12070 * modules/regex (Depends-on): Likewise.
12071 * modules/strtok_r (Depends-on): Likewise.
12072 * modules/time_r (Depends-on): Likewise.
12074 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
12076 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
12077 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
12078 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12079 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
12080 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12081 * m4/memxor.m4 (gl_MEMXOR): Likewise.
12082 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
12083 gl_C_RESTRICT replaced by AC_C_RESTRICT.
12085 Merge from coreutils.
12086 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
12087 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
12088 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12089 * m4/time_r.m4 (gl_TIME_R): Likewise.
12091 2006-08-09 Karl Berry <karl@gnu.org>
12093 * config/srclist.txt: no more gettext-tools, per Bruno.
12095 2006-08-08 Eric Blake <ebb9@byu.net>
12097 * modules/verror: New module.
12098 * MODULES.html.sh: Document it.
12100 2006-08-08 Eric Blake <ebb9@byu.net>
12102 * lib/verror.h, lib/verror.c: New files.
12104 2006-08-08 Eric Blake <ebb9@byu.net>
12106 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
12107 verror_at_line output complies with GNU Coding Standards even when
12110 2006-08-07 Bruno Haible <bruno@clisp.org>
12112 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
12114 Reported by Ralf Wildenhues.
12116 2006-08-07 Bruno Haible <bruno@clisp.org>
12118 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
12119 in an AC_DEFUN. Needed so that the autoconf snippets can use
12122 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12124 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12125 Initialize pkgdata_DATA.
12126 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
12129 2006-08-06 Eric Blake <ebb9@byu.net>
12131 * lib/error.h: Fold in some upstream changes from glibc.
12132 * lib/error.c: Likewise.
12134 2006-08-04 Bruno Haible <bruno@clisp.org>
12136 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12137 Make the mostlyclean-local rule depend on mostlyclean-generic.
12138 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
12140 2006-07-31 Bruno Haible <bruno@clisp.org>
12142 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
12143 <stdlib.h>, <string.h>.
12145 2006-07-30 Bruno Haible <bruno@clisp.org>
12147 * modules/readlink (License): Change to LGPL.
12149 2006-07-30 Bruno Haible <bruno@clisp.org>
12151 * modules/javaversion (Makefile.am): Distribute javaversion.java and
12152 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
12153 set PKGDATADIR to point to it.
12155 2006-07-30 Bruno Haible <bruno@clisp.org>
12157 * modules/csharpexec (configure.ac): Comment out macro invocation.
12158 * modules/javaexec (configure.ac): Likewise.
12159 * modules/javacomp-script (configure.ac): Likewise.
12161 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
12163 2006-07-30 Bruno Haible <bruno@clisp.org>
12165 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
12168 2006-07-30 Bruno Haible <bruno@clisp.org>
12170 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
12172 2006-07-30 Bruno Haible <bruno@clisp.org>
12174 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12175 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
12178 2006-07-29 Bruno Haible <bruno@clisp.org>
12180 Make it possible for gnulib-tool to work with locally modified or
12181 augmented gnulib repositories.
12182 * gnulib-tool (func_usage): Document --local-dir option.
12183 (local_gnulib_dir): New variable.
12184 Handle --local-dir option.
12185 (func_lookup_file): New function.
12186 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
12187 (func_get_description, func_get_filelist, func_get_description,
12188 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
12189 func_get_automake_snippet, func_get_include_directive,
12190 func_get_license, func_get_maintainer): Use func_lookup_file.
12191 (func_import, func_create_testdir): Use func_lookup_file.
12193 2006-07-29 Bruno Haible <bruno@clisp.org>
12195 * modules/setenv (Depends-on): Add unistd.
12197 2006-07-29 Bruno Haible <bruno@clisp.org>
12199 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
12201 2006-07-29 Bruno Haible <bruno@clisp.org>
12203 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
12205 2006-07-29 Bruno Haible <bruno@clisp.org>
12207 * gnulib-tool (import, update): If there is no Makefile.am, look at
12208 aclocal.m4, instead of bailing out.
12210 2006-07-29 Bruno Haible <bruno@clisp.org>
12212 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
12213 Categorize the options by when they are useful.
12215 2006-07-29 Bruno Haible <bruno@clisp.org>
12217 * gnulib-tool (func_usage): Document option --no-libtool.
12218 Handle option --no-libtool.
12219 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
12220 for changed semantics of $libtool variable.
12221 (func_import): Likewise. If libtool is not used, show this through
12222 an option --no-libtool.
12223 (func_create_testdir): Update.
12225 2006-07-29 Bruno Haible <bruno@clisp.org>
12227 * gnulib-tool (func_import): Extend error message about missing
12230 2006-07-29 Bruno Haible <bruno@clisp.org>
12232 * gnulib-tool (func_import): Don't create the $docbase directory if
12233 there is no file to store there.
12235 2006-07-29 Bruno Haible <bruno@clisp.org>
12237 * gnulib-tool (autoconf_minversion): If a --dir option is given and
12238 relevant, look for configure.ac there, not in the current directory.
12239 Also use a simple search for AC_PREREQ, not "autoconf --trace".
12241 2006-07-29 Bruno Haible <bruno@clisp.org>
12243 * gnulib-tool (SORT): New variable.
12244 (func_usage): Undocument --assume-autoconf option.
12245 Remove --assume-autoconf option handling.
12246 (autoconf_minversion): Determine from the contents of configure.ac.
12247 (func_import): Remove autoconf_minversion handling.
12248 Suggested by Eric Blake.
12250 2006-07-29 Bruno Haible <bruno@clisp.org>
12252 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
12254 2006-07-29 Bruno Haible <bruno@clisp.org>
12256 * config/srclist.txt (*setenv.[ch]): Remove rules.
12258 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12260 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
12262 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12264 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
12267 2006-07-28 Simon Josefsson <jas@extundo.com>
12269 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
12270 * modules/inet_pton (Depends-on): Likewise.
12272 2006-07-28 Simon Josefsson <jas@extundo.com>
12274 * m4/netinet_in_h.m4: New file.
12276 2006-07-28 Simon Josefsson <jas@extundo.com>
12278 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
12281 2006-07-28 Simon Josefsson <jas@extundo.com>
12283 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
12286 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
12288 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
12289 setgid on directories only if they set these bits.
12290 * lib/modechange.h: Remove obsolete comment about masks.
12292 2006-07-28 Eric Blake <ebb9@byu.net>
12294 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
12297 2006-07-28 Bruno Haible <bruno@clisp.org>
12299 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
12301 2006-07-28 Bruno Haible <bruno@clisp.org>
12303 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
12305 2006-07-28 Bruno Haible <bruno@clisp.org>
12307 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12308 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
12310 Avoids link error on FreeBSD 4.x.
12311 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12313 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
12315 * lib/mbswidth.c (iswcntrl): Likewise.
12317 2006-07-27 Bruno Haible <bruno@clisp.org>
12319 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
12322 2006-07-27 Bruno Haible <bruno@clisp.org>
12324 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
12325 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
12328 2006-07-26 Eric Blake <ebb9@byu.net>
12330 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
12332 2006-07-26 Eric Blake <ebb9@byu.net>
12334 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
12335 like mingw that lack mkstemp.
12336 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
12337 avoid compilation warning on mingw.
12339 2006-07-26 Bruno Haible <bruno@clisp.org>
12341 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
12342 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
12343 INT_FAST*_MIN, INTPTR_MIN.
12345 2006-07-25 Bruno Haible <bruno@clisp.org>
12347 * modules/version-etc (Depends-on): Add stdarg.
12349 2006-07-25 Bruno Haible <bruno@clisp.org>
12351 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
12354 2006-07-25 Bruno Haible <bruno@clisp.org>
12356 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
12357 defined in <stdarg.h> or config.h.
12359 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
12361 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
12362 (gl_STDIO_SAFER): Remove.
12364 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
12366 * MODULES.html.sh (File stream based Input/Output):
12367 Add fopen-safer, tmpfile-safer; remove stdio-safer.
12368 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
12369 * modules/fopen-safer, modules/tmpfile-safer: New files.
12370 * modules/stdio-safer: Remove.
12372 2006-07-24 Bruno Haible <bruno@clisp.org>
12374 * modules/tmpdir: New file.
12375 * MODULES.html.sh (File system functions): Add it.
12377 2006-07-24 Bruno Haible <bruno@clisp.org>
12379 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
12380 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
12382 2006-07-24 Bruno Haible <bruno@clisp.org>
12384 * modules/clean-temp: New file.
12386 2006-07-24 Bruno Haible <bruno@clisp.org>
12388 * m4/tmpdir.m4: New file, from GNU gettext.
12390 2006-07-24 Bruno Haible <bruno@clisp.org>
12392 * lib/tmpdir.h: New file, from GNU gettext.
12393 * lib/tmpdir.c: New file, from GNU gettext.
12395 2006-07-24 Bruno Haible <bruno@clisp.org>
12397 * lib/clean-temp.h: New file, from GNU gettext.
12398 * lib/clean-temp.c: New file, from GNU gettext.
12400 2006-07-23 Eric Blake <ebb9@byu.net>
12402 * modules/stdio-safer (Files): Add tmpfile-safer.c.
12403 (Depends-on): Add binary-io.
12405 2006-07-23 Eric Blake <ebb9@byu.net>
12407 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
12409 2006-07-23 Eric Blake <ebb9@byu.net>
12411 * lib/tmpfile-safer.c: New file.
12412 * lib/stdio-safer.h (fopen_safer): Add prototype.
12413 * lib/stdio--.h (tmpfile): Make safer.
12415 2006-07-23 Bruno Haible <bruno@clisp.org>
12417 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
12418 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
12419 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
12420 gl_linked_remove_at): Use it.
12422 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12423 and Simon Josefsson <jas@extundo.com>
12425 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
12427 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
12429 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
12431 * modules/close-stream: New file.
12432 * modules/closeout (Description): Make it clear that it exits
12433 with a diagnostic on error.
12434 (Depends-on): Add close-stream. Remove fpending, stdbool.
12435 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
12437 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
12439 * m4/close-stream.m4: New file.
12441 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
12443 * lib/close-stream.c, lib/close-stream.h: New files.
12445 2006-07-22 Bruno Haible <bruno@clisp.org>
12447 Merge from GNU gettext 0.15.
12449 2006-05-01 Bruno Haible <bruno@clisp.org>
12451 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
12453 2006-07-22 Bruno Haible <bruno@clisp.org>
12455 * modules/javaversion: New file.
12456 * MODULES.html.sh (Java): Add javaversion.
12458 2006-03-12 Bruno Haible <bruno@clisp.org>
12460 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
12462 2005-12-04 Bruno Haible <bruno@clisp.org>
12464 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
12467 2006-06-21 Bruno Haible <bruno@clisp.org>
12469 Avoid warnings from recent versions of mcs.
12470 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
12471 -o, -L, -r any more. Use options documented since mcs-1.0
12472 instead. Similarly for -g.
12474 2005-12-04 Bruno Haible <bruno@clisp.org>
12476 * build-aux/csharpcomp.sh.in: Suffix for resources is
12477 .resources, not .resource.
12479 2005-07-09 Bruno Haible <bruno@clisp.org>
12481 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
12483 Reported by Mark Junker <mjscod@gmx.de>.
12485 2006-07-22 Bruno Haible <bruno@clisp.org>
12487 * modules/gettext: Upgrade to gettext-0.15.
12488 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
12490 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
12492 2006-07-22 Bruno Haible <bruno@clisp.org>
12494 Merge from GNU gettext 0.15.
12496 2006-03-25 Bruno Haible <bruno@clisp.org>
12498 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
12500 2006-07-21 Bruno Haible <bruno@clisp.org>
12502 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
12505 2006-05-09 Bruno Haible <bruno@clisp.org>
12507 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
12508 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
12509 for the conftestver execution.
12511 2006-05-01 Bruno Haible <bruno@clisp.org>
12513 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
12514 optional target-version argument. Verify that the compiler
12515 groks source of the specified source-version, or add -source
12516 option as necessary. Verify that the compiler produces
12517 bytecode in the specified target-version, or add -target and
12518 -source options as necessary. Make the result of the test
12519 available as variable CONF_JAVAC. Also log error output in
12522 2006-03-11 Bruno Haible <bruno@clisp.org>
12524 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
12526 2006-05-09 Bruno Haible <bruno@clisp.org>
12528 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
12529 CLASSPATH_SEPARATOR to a semicolon.
12531 2006-03-12 Bruno Haible <bruno@clisp.org>
12533 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
12534 available as variable CONF_JAVA, for subsequent autoconf
12535 tests. Also log error output in config.log.
12537 2006-07-19 Bruno Haible <bruno@clisp.org>
12539 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
12540 that getline works on glibc2 systems. Needed to avoid trouble
12542 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
12544 2005-12-04 Bruno Haible <bruno@clisp.org>
12546 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
12547 launcher (untested).
12549 2005-12-04 Bruno Haible <bruno@clisp.org>
12551 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
12553 2006-07-22 Bruno Haible <bruno@clisp.org>
12555 * gettext.m4: Update from GNU gettext-0.15.
12556 * nls.m4: Likewise.
12558 * inttypes-pri.m4: Likewise.
12559 * inttypes-h.m4: Renamed from inttypes.m4.
12560 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
12562 2006-07-22 Bruno Haible <bruno@clisp.org>
12564 Merge from GNU gettext 0.15.
12566 2005-07-05 Bruno Haible <bruno@clisp.org>
12568 * printf-args.c (printf_fetchargs): Work around broken
12569 definition of wint_t on mingw.
12571 2005-02-12 Bruno Haible <bruno@clisp.org>
12573 * xallocsa.h: Add extern "C" for C++.
12575 2006-05-17 Bruno Haible <bruno@clisp.org>
12577 Cygwin portability.
12578 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
12580 2006-04-30 Bruno Haible <bruno@clisp.org>
12582 * progreloc.c: Include <mach-o/dyld.h> if available.
12583 (find_executable): Use _NSGetExecutablePath when possible.
12585 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
12587 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
12590 2005-12-29 Bruno Haible <bruno@clisp.org>
12592 * progreloc.c (set_program_name_and_installdir): Fix
12595 2005-12-04 Bruno Haible <bruno@clisp.org>
12597 Cygwin portability.
12598 * progreloc.c: Include <windows.h> also on Cygwin.
12599 (find_executable): Add support for Cygwin.
12600 (set_program_name_and_installdir): Handle also platforms with
12603 2006-07-11 Bruno Haible <bruno@clisp.org>
12605 * javacomp.c: Fix a comment.
12606 Reported by Jim Meyering.
12608 2006-04-30 Bruno Haible <bruno@clisp.org>
12610 * javacomp.h (compile_java_class): Add source_version,
12611 target_version arguments.
12612 * javacomp.c: Rewritten to choose only a compiler that
12613 respects the specified source_version and target_version.
12615 2006-06-27 Bruno Haible <bruno@clisp.org>
12617 Assume correct S_ISDIR macro.
12618 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
12620 2006-07-22 Bruno Haible <bruno@clisp.org>
12622 * javaversion.h: New file, from GNU gettext.
12623 * javaversion.c: New file, from GNU gettext.
12624 * javaversion.java: New file, from GNU gettext.
12625 * javaversion.class: New file, from GNU gettext.
12627 2006-05-17 Bruno Haible <bruno@clisp.org>
12629 Cygwin portability.
12630 * javaexec.c (execute_java_class): Test for jview program
12633 2006-04-09 Bruno Haible <bruno@clisp.org>
12635 * fatal-signal.c: Don't include string.h.
12636 (at_fatal_signal): Use a copying loop instead of memcpy.
12638 2005-12-04 Bruno Haible <bruno@clisp.org>
12640 * csharpexec.c: Add support for 'clix' launcher (untested).
12641 (execute_csharp_using_sscli): New function.
12642 (execute_csharp_program): Call it.
12644 2006-06-21 Bruno Haible <bruno@clisp.org>
12646 Avoid warnings from recent versions of mcs.
12647 * csharpcomp.c (compile_csharp_using_mono): Don't use options
12648 -o, -L, -r any more. Use options documented since mcs-1.0
12649 instead. Similarly for -g.
12651 2005-07-09 Bruno Haible <bruno@clisp.org>
12653 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
12655 Reported by Mark Junker <mjscod@gmx.de>.
12657 2006-06-17 Bruno Haible <bruno@clisp.org>
12659 * config.charset: Update for NetBSD 3.0.
12661 2006-05-17 Bruno Haible <bruno@clisp.org>
12663 Cygwin portability.
12664 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
12666 2006-05-16 Bruno Haible <bruno@clisp.org>
12668 * localcharset.c [CYGWIN]: Include <windows.h>.
12669 (get_charset_aliases): For Cygwin, return the same CPxxx
12670 aliases list as under WIN32.
12671 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
12672 the environment variables. Fall back to GetACP().
12674 2006-04-05 Bruno Haible <bruno@clisp.org>
12676 * config.charset: Update Juan Manuel Guerrero's address.
12678 2005-02-12 Bruno Haible <bruno@clisp.org>
12680 * allocsa.h: Add extern "C" for C++.
12682 2005-02-10 Bruno Haible <bruno@clisp.org>
12684 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
12685 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
12687 2006-07-22 Bruno Haible <bruno@clisp.org>
12689 * gettext.h: Update to GNU gettext-0.15.
12691 2006-07-22 Bruno Haible <bruno@clisp.org>
12693 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
12694 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
12695 lib-prefix.m4, longdouble.m4, ssize_t.m4.
12697 2006-07-21 Eric Blake <ebb9@byu.net>
12699 * modules/stdlib-safer: New file.
12700 * MODULES.html.sh (File stream based Input/Output): Add
12703 2006-07-21 Eric Blake <ebb9@byu.net>
12705 * lib/stdlib-safer.h: New file from coreutils, required by
12708 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
12710 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
12712 2006-07-20 Bruno Haible <bruno@clisp.org>
12714 * gnulib-tool: Recognize new option --assume-autoconf.
12715 (autoconf_minversion): New variable.
12716 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
12718 2006-07-20 Bruno Haible <bruno@clisp.org>
12720 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
12722 2006-07-19 Derek R. Price <derek@ximbiot.com>
12724 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
12725 Reindent and repaginate.
12727 2006-07-19 Derek Price <derek@ximbiot.com>
12729 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
12732 2006-07-17 Bruno Haible <bruno@clisp.org>
12734 * modules/list: New file.
12735 * modules/array-list: New file.
12736 * modules/carray-list, modules/carray-list-tests: New files.
12737 * modules/linked-list, modules/linked-list-tests: New files.
12738 * modules/avltree-list, modules/avltree-list-tests: New files.
12739 * modules/rbtree-list, modules/rbtree-list-tests: New files.
12740 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
12741 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
12742 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
12743 * modules/oset: New file.
12744 * modules/array-oset: New file.
12745 * modules/avltree-oset, modules/avltree-oset-tests: New files.
12746 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
12747 * tests/test-carray_list.c: New file.
12748 * tests/test-linked_list.c: New file.
12749 * tests/test-avltree_list.c: New file.
12750 * tests/test-rbtree_list.c: New file.
12751 * tests/test-linkedhash_list.c: New file.
12752 * tests/test-avltreehash_list.c: New file.
12753 * tests/test-rbtreehash_list.c: New file.
12754 * tests/test-avltree_oset.c: New file.
12755 * tests/test-rbtree_oset.c: New file.
12756 * MODULES.html.sh (Container data structures): New section.
12758 2006-07-17 Bruno Haible <bruno@clisp.org>
12760 * m4/gl_list.m4: New file.
12762 2006-07-17 Bruno Haible <bruno@clisp.org>
12764 * lib/gl_list.h: New file.
12765 * lib/gl_list.c: New file.
12766 * lib/gl_array_list.h: New file.
12767 * lib/gl_array_list.c: New file.
12768 * lib/gl_carray_list.h: New file.
12769 * lib/gl_carray_list.c: New file.
12770 * lib/gl_linked_list.h: New file.
12771 * lib/gl_linked_list.c: New file.
12772 * lib/gl_anylinked_list1.h: New file.
12773 * lib/gl_anylinked_list2.h: New file.
12774 * lib/gl_avltree_list.h: New file.
12775 * lib/gl_avltree_list.c: New file.
12776 * lib/gl_anyavltree_list1.h: New file.
12777 * lib/gl_anyavltree_list2.h: New file.
12778 * lib/gl_rbtree_list.h: New file.
12779 * lib/gl_rbtree_list.c: New file.
12780 * lib/gl_anyrbtree_list1.h: New file.
12781 * lib/gl_anyrbtree_list2.h: New file.
12782 * lib/gl_anytree_list1.h: New file.
12783 * lib/gl_anytree_list2.h: New file.
12784 * lib/gl_linkedhash_list.h: New file.
12785 * lib/gl_linkedhash_list.c: New file.
12786 * lib/gl_anyhash_list1.h: New file.
12787 * lib/gl_anyhash_list2.h: New file.
12788 * lib/gl_avltreehash_list.h: New file.
12789 * lib/gl_avltreehash_list.c: New file.
12790 * lib/gl_rbtreehash_list.h: New file.
12791 * lib/gl_rbtreehash_list.c: New file.
12792 * lib/gl_anytreehash_list1.h: New file.
12793 * lib/gl_anytreehash_list2.h: New file.
12795 * lib/gl_oset.h: New file.
12796 * lib/gl_oset.c: New file.
12797 * lib/gl_array_oset.h: New file.
12798 * lib/gl_array_oset.c: New file.
12799 * lib/gl_avltree_oset.h: New file.
12800 * lib/gl_avltree_oset.c: New file.
12801 * lib/gl_rbtree_oset.h: New file.
12802 * lib/gl_rbtree_oset.c: New file.
12803 * lib/gl_anytree_oset.h: New file.
12805 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
12807 * m4/mkancesdirs.m4: New file.
12808 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
12809 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
12810 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
12813 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
12815 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
12816 * lib/mkancesdirs.h: New files.
12817 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
12818 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
12819 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
12820 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
12821 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
12822 callers changed. Revamp internals significantly, by not
12823 attempting to create directories that are temporarily more
12824 permissive than the final results. Do not attempt to use
12825 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
12826 This removes some race conditions, fixes some bugs, and simplifies
12827 things. Use new dirchownmod function to do owner and mode changes.
12828 * lib/mkdir-p.h: Likewise.
12829 * lib/modechange.c (octal_to_mode): New function.
12830 (struct mode_change): New member mentioned.
12831 (make_node_op_equals): New arg mentioned. All callers changed.
12832 (mode_compile): Keep track of which mode bits the user has explicitly
12834 (mode_adjust): New arg DIR, so that we implement the X op correctly.
12835 New arg PMODE_BITS, to keep track of which mode bits the user
12836 mentioned; it treats S_ISUID and S_ISGID speciall.
12837 All callers changed.
12838 * lib/modechange.h: Likewise.
12840 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
12842 * MODULES.html.sh: Add mkancestors.
12843 * modules/mkancesdirs: New module.
12844 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
12845 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
12846 The chdir-safer and afs files are now orphans; I'll remove them
12847 unless someone speaks up.
12848 Add lib/dirchownmod.c, lib/dirchownmod.h.
12849 (Depends-on): Remove alloca, chown, save-cwd, dirname.
12850 Add lchown, mkancesdirs.
12851 (Maintainer): Add self.
12853 2006-07-15 Karl Berry <karl@gnu.org>
12855 * gnulib-tool: help message wording/arrangement.
12857 2006-07-14 Simon Josefsson <jas@extundo.com>
12859 * doc/gnulib.texi (Libtool and Windows): New section.
12861 2006-07-12 Simon Josefsson <jas@extundo.com>
12863 * modules/gendocs (License): Fix license, approved by Karl.
12865 2006-07-12 Eric Blake <ebb9@byu.net>
12867 * MODULES.html.sh: Add gendocs.
12869 2006-07-11 Eric Blake <ebb9@byu.net>
12871 * modules/fdl: New module, to install doc/fdl.texi.
12872 * MODULES.html.sh: Add new section for documentation modules.
12873 * gnulib-tool: Avoid space-tab.
12874 (--doc-base): New option, to manage files from doc.
12876 2006-07-11 Eric Blake <ebb9@byu.net>
12878 * m4/absolute-header.m4: Fix comments to match recent change.
12880 2006-07-11 Eric Blake <ebb9@byu.net>
12882 * gnulib-tool: List --doc-base before --tests-base.
12884 2006-07-11 Derek R. Price <derek@ximbiot.com>
12886 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
12888 2006-07-11 Bruno Haible <bruno@clisp.org>
12890 * README: Mention where to put documentation.
12892 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12894 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
12896 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
12898 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
12901 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
12903 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
12904 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
12905 "no/such/file/stdint.h" when there is no such file, so that
12906 the resulting C code can be parsed by dodgy compilers.
12907 Problems reported by Bob Proulx.
12909 2006-07-10 Derek R. Price <derek@ximbiot.com>
12911 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
12912 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
12913 macros into the GNU _D_EXACT_NAMLEN.
12914 * lib/savedir.c: Likewise.
12915 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
12917 2006-07-10 Derek R. Price <derek@ximbiot.com>
12918 and Paul Eggert <eggert@cs.ucla.edu>
12920 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
12922 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
12923 macros into the GNU _D_EXACT_NAMLEN.
12925 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
12927 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
12928 around the absolute name, to work around a problem with the HP-UX
12929 11.23 native C compiler, reported by Bob Proulx.
12931 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
12933 * doc/maintain.texi, make-stds.texi: Sync from
12934 <http://savannah.gnu.org/projects/gnustandards>.
12936 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
12938 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
12940 2006-07-09 Jim Meyering <jim@meyering.net>
12942 * m4/glob.m4: Remove a doubled word in a comment.
12944 2006-07-09 Jim Meyering <jim@meyering.net>
12946 * lib/argp-pv.c: Remove a doubled word in a comment.
12947 * lib/check-version.c (check_version): Likewise.
12948 * lib/javacomp.c (compile_java_class): Likewise.
12950 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
12952 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
12953 for the benefit of people using Autoconf 2.60. If you want to
12954 support older Autoconf versions you can copy m4/onceonly_2_57.m4
12955 (or m4/onceonly.m4, if pre-2.57) manually.
12957 2006-07-08 Jim Meyering <jim@meyering.net>
12959 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
12961 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
12962 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
12965 2006-07-08 Jim Meyering <jim@meyering.net>
12967 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
12969 2006-07-07 Simon Josefsson <jas@extundo.com>
12971 * tests/test-crc.c: Change expected crc value, the test vector
12972 were probably computed using the old broken crc.c?
12974 2006-07-06 Simon Josefsson <jas@extundo.com>
12976 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
12977 now the canonical place for the M4 file).
12979 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
12980 from the sys_socket dependency now.
12982 * modules/inet_pton (Files): Ditto.
12984 * modules/inet_ntop (Files): Ditto.
12986 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
12988 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
12989 not gl_PREREQ_GETUSERSHELL.
12991 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12993 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
12994 with only one argument, for Autoconf 2.60.
12995 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
12996 expand to nothing, so add a shell command to avoid syntax error.
12997 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12999 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13001 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
13003 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13005 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
13006 no longer needed. Check for isblank decl.
13007 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
13008 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
13011 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13013 * lib/getloadavg.c: Use __VMS, not VMS.
13014 * lib/getopt.c: Likewise.
13015 * lib/getpagesize.h: Likewise.
13016 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
13017 and probably does not work.
13019 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
13021 * lib/.cppi-disable: Add wcwidth.
13022 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
13023 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
13024 (ISGRAPH): Remove. All uses changed to isgraph.
13025 (FOLD) [!defined _LIBC]: Remove special case.
13026 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
13027 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
13029 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
13032 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
13034 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
13035 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
13036 brackets. Other minor changes to suppress some compiler
13039 2006-07-06 Derek R. Price <derek@ximbiot.com>
13040 and Paul Eggert <eggert@cs.ucla.edu>
13042 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
13043 of invoking obsolescent AC_HEADER_DIRENT macro.
13044 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13045 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
13046 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13047 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
13048 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
13049 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13050 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
13051 * m4/readdir.m4: Remove; no longer needed.
13053 2006-07-06 Derek R. Price <derek@ximbiot.com>
13054 and Paul Eggert <eggert@cs.ucla.edu>
13056 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
13057 Don't worry about this obsolete case any more.
13058 (HAVE_DIR): Remove. All uses removed; we now assume you can read
13060 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
13061 worry about this obsolete case any more.
13062 * lib/fts.c: Likewise.
13063 * lib/getcwd.c: Likewise.
13064 * lib/glob.h: Likewise.
13065 * lib/savedir.c: Likewise.
13067 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
13069 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
13070 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
13071 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
13074 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13075 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13076 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
13078 * m4/getdate.m4 (gl_GETDATE): Likewise.
13079 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13080 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13081 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13082 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13083 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
13084 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13085 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
13088 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
13090 * lib/memcasecmp.c: Include <limits.h>.
13091 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
13092 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
13093 Don't assume isdigit succeeds only on '0' through '9'.
13095 2006-07-05 Eric Blake <ebb9@byu.net>
13097 * modules/getaddrinfo (Depends-on): Add snprintf.
13099 2006-07-05 Eric Blake <ebb9@byu.net>
13101 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
13102 to avoid 'header present but could not be compiled' on cygwin.
13104 2006-07-05 Eric Blake <ebb9@byu.net>
13106 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
13107 missing from netdb.h.
13108 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
13110 2006-07-05 Derek R. Price <derek@ximbiot.com>
13112 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
13114 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
13115 * m4/getdate.m4 (gl_GETDATE): Likewise.
13116 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
13117 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
13118 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13119 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
13120 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
13122 2006-07-05 Derek R. Price <derek@ximbiot.com>
13124 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
13125 All uses of is_space replaced by isspace.
13126 * lib/exit.h: Don't talk about STDC_HEADERS.
13127 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
13128 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
13129 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
13130 replaced by isprint etc.
13131 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
13132 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13133 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
13134 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
13135 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
13136 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
13138 2006-07-05 Bruno Haible <bruno@clisp.org>
13140 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
13141 the function exists, before testing against AIX.
13142 Reported by Martin Lambers <marlam@marlam.de>.
13144 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
13146 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
13147 From Mark D. Baushke.
13149 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
13151 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
13152 to the absolute name, not just one, to bypass Sun C 5.8's
13153 "warning: #include of /usr/include/... may be non-portable".
13155 2006-07-04 Eric Blake <ebb9@byu.net>
13157 * modules/dirname-tests: New test module.
13158 * tests/test-dirname.c: New file, replacing dirname.c
13159 TEST_DIRNAME section that was recently deleted.
13161 2006-07-04 Bruno Haible <bruno@clisp.org>
13163 Assume ANSI C header files and <ctype.h> functions.
13164 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
13165 (mbsnwidth): Use isprint, iscntrl instead.
13167 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13169 Merge from coreutils.
13170 * MODULES.html.sh: Add xstrtold.
13171 * modules/xstrtold: New file.
13172 * modules/cycle-check (Files): Add lib/same-inode.h.
13173 * modules/dirname (Files): Add m4/double-slash-root.m4.
13174 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
13175 * modules/mkdir-p (Files): Add lib/same-inode.h.
13176 * modules/same (Files): Add lib/same-inode.h.
13178 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13180 * m4/absolute-header.m4: Renamed from full-header-path.m4.
13181 This is to keep the terminology clean; POSIX talks about
13182 "absolute pathnames", not "full pathnames", but the GNU
13183 Coding Standards say to use "path" for something else;
13184 so use "absolute" to keep both sides happy.
13185 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
13186 Set gl_absolute_header, not gl_full_header_path.
13187 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
13188 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
13191 Merge from coreutils.
13193 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
13195 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
13196 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
13197 want to require the building of c-strtod.o.
13198 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
13199 needs -lm directly.
13200 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
13202 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
13204 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
13205 --as-needed option if available. Problem reported by Albert Chin in
13206 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
13207 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
13208 cc merely issues a bunch of annoying warnings for --as-needed
13209 (this problem was reported by Bob Proulx). Also, try linking with
13210 -lm to detect a bug in binutils 2.16 (this problem was reported
13211 by Ralf Wildenhues).
13213 2006-06-18 Jim Meyering <jim@meyering.net>
13215 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
13216 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
13218 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
13219 also check for glibc-2.4's abort-inducing bug.
13221 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
13222 Low-probability clean-up should be to use rmdir to get rid of
13223 the just-created directory, not unlink.
13225 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
13226 configure fail, and request a bug report to inform us about it.
13227 Add a comment that, barring reports to the contrary, in 2007 we'll
13228 assume ftruncate is universally available.
13230 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
13232 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
13234 2006-03-12 Jim Meyering <jim@meyering.net>
13236 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
13237 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
13238 * m4/same.m4 (gl_SAME): Likewise.
13239 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
13241 2006-03-11 Eric Blake <ebb9@byu.net>
13243 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
13244 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
13245 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
13246 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
13248 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
13250 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
13251 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
13252 reported by Mark D. Baushke, one in
13253 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
13255 Merge from coreutils.
13257 * lib/.cppi-disable: Add stdint_.h.
13258 * lib/.cvsignore: Add stdint.h.
13260 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
13262 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
13263 both double and long double versions.
13264 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
13265 * lib/xstrtold.c: New file.
13266 * lib/xstrtod.h (xstrtold): New decl.
13268 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
13270 * lib/filemode.c (setst): Remove.
13271 (strmode): Rewrite to avoid setst. This makes the code shorter,
13272 (arguably) clearer, and the generated code is a bit smaller on my
13273 Debian GNU/Linux stable x86 host.
13275 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
13277 * lib/filemode.c: Include "filemode.h" first, to test the interface.
13278 Assume that filemode.h includes sys/types.h and sys/stat.h.
13279 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
13280 (ftypelet): Reorder to put common cases first, for efficiency.
13281 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
13283 (strmode): Renamed from mode_string, and now stores 12 bytes instead
13284 of 10, for compatibility with FreeBSD. All callers changed.
13285 (filemodestring): Now stores 12 bytes instead of 10, and sets file
13286 types that can't be deduced solely from st_mode. First arg is now a
13288 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
13289 (strmode): Renamed from mode_string.
13290 (filemodestring): New decl.
13291 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
13292 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
13294 (S_ISPORT, S_ISWHT): New macros, if not already defined.
13296 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
13298 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
13299 fsusage.h now does that. Include fsusage.h first, to test interface.
13300 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
13301 at most one method (the old code could have generated decls that
13302 didn't conform to C89, not that this was ever exercised).
13303 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
13305 2006-03-19 Jim Meyering <jim@meyering.net>
13307 Work even in a chroot where d_ino values for entries in "/"
13308 don't match the stat.st_ino values for the same names.
13309 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
13310 number, iterate through all entries again, using lstat instead.
13311 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
13312 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
13314 * lib/getcwd.c (__getcwd): Clarify a comment.
13315 Use memcpy in place of a call to strcpy.
13317 2006-03-12 Jim Meyering <jim@meyering.net>
13319 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
13320 matches that of the current directory (which we're about to chdir ".."
13321 out of), then save the dev-ino of the parent, instead.
13323 * lib/same-inode.h (SAME_INODE): New file/macro.
13324 * lib/chdir-safer.c (SAME_INODE): Remove definition.
13325 Include "same-inode.h", instead.
13326 * lib/same.c: Likewise.
13327 * lib/cycle-check.h: Include "same-inode.h".
13328 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
13329 * lib/cycle-check.c (SAME_INODE): Remove definition.
13330 * lib/root-dev-ino.h: Include "same-inode.h".
13332 2006-03-11 Eric Blake <ebb9@byu.net>
13334 * lib/same.c (same_name): s/base_name/last_component/
13335 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
13336 * lib/filenamecat.c (file_name_concat): Likewise.
13338 2006-03-11 Eric Blake <ebb9@byu.net>,
13339 Paul Eggert <eggert@cs.ucla.edu>
13341 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
13342 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
13344 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
13345 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
13346 (last_component): New method.
13347 * lib/dirname.c (dir_len): Determine when drive letters need a
13348 subsequent slash. Preserve // when it is special.
13349 (dir_name): Don't append dot when drive letter is absolute.
13350 [TEST_DIRNAME]: Move into a full-blown gnulib test.
13351 * lib/basename.c (base_name): New semantics - malloc the result.
13352 Preserve // when it is special. Preserve relative files that look
13353 like drive letters.
13354 (base_len): Preserve // when it is special.
13355 (last_component): New method, similar to old base_name semantics.
13356 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
13357 base_name. Strip redundant slashes from ///.
13359 2006-07-03 Jim Meyering <jim@meyering.net>
13361 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
13362 macro is used before the first cycle_check call.
13364 2006-07-03 Eric Blake <ebb9@byu.net>
13366 * modules/dirname (Depends-on): Add xstrndup.
13368 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
13370 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
13371 test cases, so that config.log is a bit easier to follow.
13373 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
13375 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
13376 both are 64 bits, since this seems to be the tradition, and this
13377 prevents gcc -Wformat from warning about usages with PRIuMAX. If
13378 we ever run into a host that prefers long long to long in this
13379 case, we'll need another configure-time test. Problem reported by
13382 2006-07-02 Eric Blake <ebb9@byu.net>
13384 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
13386 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
13388 * modules/inttypes (Depends-on): No longer depends on stdint.
13389 * modules/stdint (Description): Say more about assumptions.
13390 Say that the fast types might differ. Say macros are used.
13391 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
13392 (Makefile.am): Revise list of substituted symbols to match
13394 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
13395 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
13396 * tests/test-stdint.c (verify_same_types)
13397 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
13398 the code conforms to C99/C89.
13399 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
13400 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
13402 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
13404 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
13405 but fix a bug, by requiring at least 64 bits.
13406 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
13407 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
13408 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
13409 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
13411 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
13412 changes. Make 2.59 a prerequisite. Check and substitute for
13413 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
13414 inttypes.h. Do not use special include files; just use the
13415 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
13416 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
13417 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
13418 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
13419 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
13420 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
13421 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
13422 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
13423 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
13424 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
13425 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
13426 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
13427 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
13428 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
13429 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
13430 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
13431 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
13432 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
13433 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
13434 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
13435 WINT_MAX. Check for C99 conformance more strictly, by detecting
13436 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
13437 not check for things that C99 does not require, e.g., int8_t. If
13438 a test isn't needed unless <stdint.h> isn't working, and is
13439 unlikely to be needed for any other reason, then don't do it
13440 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
13441 size_t, since we assume C89 freestanding at least. Do not check
13442 for sig_atomic_t, wchar_t, or wint_t, since the code now does
13443 the right thing even if the types are not defined. Instead use:
13444 (gl_STDINT_TYPE_PROPERTIES): New macro.
13445 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
13446 testing whether <sys/types.h> clashes, as Autoconf does this for
13447 us now. All uses removed.
13448 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
13449 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
13450 (gl_CHECK_TYPE_SAME):
13451 Remove; no longer needed.
13452 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
13453 exists, since we'll return 0 anyway in that case.
13454 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
13456 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
13458 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
13459 possible collision with system files.
13460 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
13461 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
13462 WCHAR_MIN and WCHAR_MAX in this case.
13463 (<stddef.h>): Do not include; no longer needed.
13464 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
13465 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
13466 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
13467 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
13468 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
13469 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
13470 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
13471 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
13472 !defined(__c99))]: Include in this case too, since it's harmless
13474 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
13475 dangerous to do so.
13476 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
13477 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
13478 (_STDINT_MIN, _STDINT_MAX): New macros.
13479 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
13480 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
13481 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
13482 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
13483 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
13484 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
13485 macros, not typedefs; this simplifies things quite a bit.
13486 Use long int for all types narrower than int64_t.
13487 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
13488 Define in terms of long long int or int64_t or long int,
13489 not int64_t or int32_t. This saves some compile-time testing.
13490 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
13491 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
13492 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
13493 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
13494 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
13495 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
13496 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
13497 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
13498 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
13499 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
13500 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13501 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13502 undef any previous version and define our own version, for
13503 simplicity and consistency with the new macros for types.
13504 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
13505 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
13506 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
13507 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
13508 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
13509 @WINT_T_SUFFIX@ to keep things simple here.
13510 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
13511 Simplify by assuming typical 8/16/32/64 host, since we're
13512 already doing that elsewhere anyway.
13513 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
13514 and assume long long int is 64 bits if available. This
13515 speeds up 'configure'.
13517 2006-07-01 Eric Blake <ebb9@byu.net>
13519 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
13520 Reported by Andreas Buening.
13522 2006-07-01 Eric Blake <ebb9@byu.net>
13524 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
13526 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
13528 * lib/getaddrinfo.c: fixed typo
13530 2006-06-29 Jim Meyering <jim@meyering.net>
13532 * modules/strftime (Maintainer): Add my name, since with the
13533 FPRINTFTIME changes strftime.c has forked from glibc.
13535 2006-06-29 Eric Blake <ebb9@byu.net>
13537 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
13539 2006-06-29 Eric Blake <ebb9@byu.net>
13541 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
13543 2006-06-29 Eric Blake <ebb9@byu.net>
13545 * lib/stat_.h: New file.
13547 2006-06-29 Eric Blake <ebb9@byu.net>
13549 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
13550 unused static function.
13552 2006-06-29 Eric Blake <ebb9@byu.net>
13554 * doc/functions.texi (Function Portability): Document missing lstat
13557 2006-06-29 Eric Blake <ebb9@byu.net>
13559 * MODULES.html.sh: Add sys_stat.
13560 * modules/sys_stat: New module.
13561 * modules/mkstemp (Depends-on): Add sys_stat.
13563 2006-06-29 Derek R. Price <derek@ximbiot.com>
13565 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
13567 2006-06-29 Derek R. Price <derek@ximbiot.com>
13569 * m4/c-bs-a.m4: Removed.
13571 2006-06-29 Derek R. Price <derek@ximbiot.com>
13573 * lib/strftime.c: Assume strftime() exists.
13575 2006-06-29 Derek Price <derek@ximbiot.com>
13577 * modules/c-bs-a: Removed - \a is C89.
13578 * MODULES.html.sh: Remove c-bs-a.
13580 2006-06-29 Bruno Haible <bruno@clisp.org>
13582 * modules/wcwidth (License): Change to LGPL.
13584 2006-06-28 Simon Josefsson <jas@extundo.com>
13586 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
13589 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
13592 2006-06-28 Simon Josefsson <jas@extundo.com>
13594 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
13596 2006-06-28 Simon Josefsson <jas@extundo.com>
13598 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
13599 functions there. It will succeed on Windows XP, but on Windows
13600 2000 and (presumably) earlier, it will fail, and use the internal
13602 (use_win32_p): New function.
13603 (getaddrinfo): Use strtoul on servname, to support numeric ports.
13604 Support AI_NUMERICSERV to disable getservbyname.
13605 (getnameinfo): New function, only supports
13606 NI_NUMERICHOST|NI_NUMERICSERV for now.
13608 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
13609 only have some of them. Add AI_NUMERICSERV. Add prototype for
13612 2006-06-28 Eric Blake <ebb9@byu.net>
13614 * modules/wcwidth: New file.
13615 * modules/mbchar (Depends-on): Add wcwidth.
13616 * modules/mbswidth (Depends-on): Add wcwidth.
13617 * MODULES.html.sh: Add wcwidth.
13619 2006-06-28 Eric Blake <ebb9@byu.net>
13621 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
13622 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
13624 2006-06-28 Eric Blake <ebb9@byu.net>
13626 * lib/xvasprintf.h: Fix comments.
13628 2006-06-28 Eric Blake <ebb9@byu.net>
13630 * lib/mbchar.h (wcwidth): Include wcwidth.h.
13631 * lib/mbswidth.c (wcwidth): Move from here...
13632 * lib/wcwidth.h: ...to this new file.
13634 2006-06-28 Derek R. Price <derek@ximbiot.com>
13636 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
13638 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
13640 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
13642 2006-06-28 Derek R. Price <derek@ximbiot.com>
13644 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
13645 Autoconf 2.60 says this stuff was obsolete.
13647 2006-06-28 Bruno Haible <bruno@clisp.org>
13649 * modules/wcwidth (Files): Add m4/wchar_t.m4.
13651 2006-06-28 Bruno Haible <bruno@clisp.org>
13653 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
13656 2006-06-28 Bruno Haible <bruno@clisp.org>
13658 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
13659 declaration for wcwidth.
13660 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
13662 2006-06-28 Bruno Haible <bruno@clisp.org>
13664 * lib/mkdtemp.c [MINGW]: Include <io.h>.
13665 (mkdir): Define using _mkdir.
13667 2006-06-28 Bruno Haible <bruno@clisp.org>
13669 * lib/getaddrinfo.h: Fix POSIX URL.
13670 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
13672 (use_win32_p): Make static.
13673 (getaddrinfo): Reject service name if it is empty or does not consist
13674 solely of decimal digits, or if its value is > 65535.
13675 (getnameinfo): Remove useless casts.
13677 2006-06-27 Simon Josefsson <jas@extundo.com>
13679 * modules/sys_select: New file, suggested by Bruno Haible, Paul
13680 Eggert and Martin Lambers.
13682 2006-06-27 Simon Josefsson <jas@extundo.com>
13684 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
13685 Eggert and Martin Lambers.
13687 2006-06-27 Bruno Haible <bruno@clisp.org>
13689 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
13690 result to 0, not to empty.
13691 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
13693 2006-06-27 Bruno Haible <bruno@clisp.org>
13695 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
13697 2006-06-26 Simon Josefsson <jas@extundo.com>
13699 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
13702 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
13704 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
13705 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
13706 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
13708 2006-06-26 Mark D. Baushke <mdb@gnu.org>
13710 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
13712 2006-06-26 Bruno Haible <bruno@clisp.org>
13714 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
13716 2006-06-26 Bruno Haible <bruno@clisp.org>
13718 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
13720 2006-06-26 Bruno Haible <bruno@clisp.org>
13722 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
13723 SGI C compiler in pre-C99 mode.
13724 Suggested by Mark D. Baushke and Larry Jones.
13726 2006-06-26 Bruno Haible <bruno@clisp.org>
13728 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
13730 Reported by Mark D. Baushke and Larry Jones.
13732 2006-06-26 Bruno Haible <bruno@clisp.org>
13734 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
13736 Suggested by Mark D. Baushke and Larry Jones.
13738 2006-06-23 Simon Josefsson <jas@extundo.com>
13739 Bruno Haible <bruno@clisp.org>
13741 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
13742 Emit mostlyclean-local rule.
13743 (func_emit_tests_Makefile_am): Likewise.
13744 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
13746 2006-06-23 Mark D. Baushke <mdb@gnu.org>
13748 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
13750 2006-06-23 Bruno Haible <bruno@clisp.org>
13752 * tests/test-stdint.c: Update to match ISO C 99 Technical
13755 2006-06-23 Bruno Haible <bruno@clisp.org>
13757 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
13759 2006-06-23 Bruno Haible <bruno@clisp.org>
13761 * lib/stdint_.h: Treat IRIX like OpenBSD.
13763 2006-06-23 Bruno Haible <bruno@clisp.org>
13765 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
13766 ISO C 99 Technical Corrigendum 1.
13768 2006-06-22 Simon Josefsson <jas@extundo.com>
13770 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
13773 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
13775 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
13776 needed. Some compiler complained about some of them. Problem reported
13778 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
13780 2006-06-21 Simon Josefsson <jas@extundo.com>
13782 * tests/test-getaddrinfo.c: New file.
13784 * modules/getaddrinfo-tests: New file.
13786 * MODULES.html.sh: Add inet_pton.
13788 * modules/inet_pton: New file.
13790 2006-06-21 Simon Josefsson <jas@extundo.com>
13792 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
13793 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
13794 of using the (limited) gnulib implementation on Windows XP.
13796 * m4/inet_pton.m4: New file.
13798 2006-06-21 Simon Josefsson <jas@extundo.com>
13800 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
13803 * lib/socket_.h: Don't define WINVER.
13805 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
13806 slightly modified to work in gnulib.
13808 2006-06-21 Simon Josefsson <jas@extundo.com>
13810 * doc/gnulib.texi (Windows sockets): Add.
13812 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
13814 * lib/read-file.c (fread_file): Start with buffer allocation of
13815 0 bytes rather than 1 byte; this simplifies the code.
13816 Don't invoke feof; it's not needed. Refactor to avoid duplicate
13817 code to free buffer and save/restore errno.
13818 (internal_read_file): Remove unused local.
13820 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
13822 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
13823 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
13824 Problem reported by Denis Excoffier in
13825 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
13827 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13829 * modules/sys_socket, modules/socklen: Include sys/types since
13830 FreeBSD 4.x's sys/socket.h needs it.
13832 2006-06-19 Simon Josefsson <jas@extundo.com>
13834 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
13836 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
13838 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
13840 2006-06-19 Bruno Haible <bruno@clisp.org>
13842 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
13843 and FULL_PATH_INTTYPES_H in angle brackets.
13844 Reported by Mark D. Baushke <mdb@gnu.org>.
13846 2006-06-17 Eric Blake <ebb9@byu.net>
13848 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
13851 2006-06-17 Bruno Haible <bruno@clisp.org>
13853 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
13856 2006-06-17 Bruno Haible <bruno@clisp.org>
13858 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
13859 whether errno is declared. Assume <errno.h> declares errno.
13861 2006-06-17 Bruno Haible <bruno@clisp.org>
13863 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
13865 2006-06-17 Bruno Haible <bruno@clisp.org>
13867 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
13868 problem on Solaris 2.5.1.
13870 2006-06-16 Eric Blake <ebb9@byu.net>
13872 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
13873 * lib/unicodeio.c [!defined errno]: Likewise.
13874 * lib/strtol.c [!defined errno]: Likewise.
13875 * lib/strtod.c [!defined errno]: Likewise.
13877 2006-06-15 Eric Blake <ebb9@byu.net>
13879 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
13881 2006-06-15 Eric Blake <ebb9@byu.net>
13883 * config/srclist.txt (ssize_t.m4): Lose sync.
13885 2006-06-15 Bruno Haible <bruno@clisp.org>
13887 * modules/stdint (Files): Include m4/full-header-path.m4,
13888 m4/size_max.m4, m4/wchar_t.m4.
13889 (Makefile.am): Many more substitutions.
13890 * modules/stdint-tests: New file.
13891 * tests/test-stdint.c: New file.
13893 2006-06-15 Bruno Haible <bruno@clisp.org>
13895 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
13896 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
13897 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
13898 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
13899 gl_CHECK_TYPE_SAME): New macros.
13901 2006-06-15 Bruno Haible <bruno@clisp.org>
13903 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
13905 2006-06-15 Bruno Haible <bruno@clisp.org>
13907 * lib/stdint_.h: Rewritten to be fully auto-configured.
13908 Fixes bug on HP-UX/IA64.
13910 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
13912 * lib/getdate.y (__attribute__): Don't define if already defined.
13913 Problem reported by Larry Jones.
13914 * lib/utimens.c (__attribute__): Likewise.
13916 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
13918 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
13919 reported by Andreas Schwab.
13921 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13922 Bruno Haible <bruno@clisp.org>
13924 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
13925 check for the declaration of strnlen and a run test that exposes the
13926 AIX 5.1 strnlen bug. In the failure case, #define strndup to
13929 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13930 Bruno Haible <bruno@clisp.org>
13932 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
13934 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13936 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
13937 compile test, for Tru64 4.0D.
13939 2006-05-28 Karl Berry <karl@gnu.org>
13941 * config/srclist.txt (printf-args.c): lose sync.
13943 2006-05-26 Martin Lambers <marlam@marlam.de>
13945 * lib/getpass.c: Updates the test for the native W32 API, and adds
13946 missing includes, thus fixing compilation warnings.
13948 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
13950 * lib/exclude.c (exclude_fnmatch): New function.
13951 (excluded_file_name): Call exclude_fnmatch.
13952 * lib/exclude.h (excluded_file_name): New prototype
13954 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
13956 * lib/tempname.c (small_open, large_open): New macros.
13957 (__open, __open64) [!_LIBC]: Remove.
13958 (__gen_tempname): Use small_open and large_open instead of __open
13959 and __open64. This fixes a portability bug on HP-UX 11.11i
13960 reported by Simon Wing-Tang in
13961 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
13963 2006-05-24 Bruno Haible <bruno@clisp.org>
13965 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
13966 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
13967 Reported by Thorsten Maerz <torte@netztorte.de> via
13968 Aaron Stone <aaron@serendipity.cx>.
13970 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
13972 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
13973 gl_ rather than jm_. Link, don't run, so that cross-compiles are
13974 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
13975 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
13976 not really conditional on the cache.
13977 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
13979 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
13981 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
13982 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
13983 (my_usleep): Don't mishandle maximum value.
13985 2006-05-19 Jim Meyering <jim@meyering.net>
13987 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
13989 2006-05-17 Bruno Haible <bruno@clisp.org>
13991 Cygwin portability.
13992 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
13994 2006-05-17 Bruno Haible <bruno@clisp.org>
13996 * lib/stdint_.h: Fix recognition of Cygwin.
13998 2006-05-15 Bruno Haible <bruno@clisp.org>
14000 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
14001 on libtool patch by Ralf Wildenhues.
14003 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
14005 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
14006 test for C99 conformance; (bool) 0.5 is an integer constant
14007 expression, but (bool) -0.5 is not. Problem reported by Fedor
14008 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
14010 2006-05-11 Simon Josefsson <jas@extundo.com>
14012 * m4/xvasprintf.m4: Fix obvious typo.
14014 2006-05-11 Jim Meyering <jim@meyering.net>
14016 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
14019 2006-05-10 Simon Josefsson <jas@extundo.com>
14021 * lib/md4.c: Typo fix, update copyright years.
14022 (K1, K2): Don't use L because it turn computations into 64-bit on
14025 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
14027 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
14028 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
14029 unwanted sign propagation, e.g., on hosts with 64-bit int.
14030 There still are some problems with reeelly weird theoretical hosts
14031 (e.g., 33-bit int) but it's not worth worrying about now.
14032 * lib/sha1.c (rol): Likewise.
14033 (K1, K2, K3, K4): Remove unnecessary L suffix.
14035 2006-05-10 Bruno Haible <bruno@clisp.org>
14037 * lib/des.c: Cast to avoid warnings.
14039 2006-05-09 Bruno Haible <bruno@clisp.org>
14041 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
14042 (Depends-on): Depend also on xsize, stdarg.
14043 (configure.ac): Add gl_XVASPRINTF.
14045 2006-05-09 Bruno Haible <bruno@clisp.org>
14047 * m4/xvasprintf.m4: New file.
14049 2006-05-09 Bruno Haible <bruno@clisp.org>
14051 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
14052 (EOVERFLOW): Define fallback value.
14053 (xstrcat): New function.
14054 (xvasprintf): Recognize the special case of a string concatenation.
14056 2006-05-08 Eric Blake <ebb9@byu.net>
14058 * gnulib-tool (func_version): Base copyright year on CVS date.
14059 (func_emit_copyright_notice): New function.
14060 (func_emit_lib_Makefile_am): Use it.
14061 (func_emit_tests_Makefile_am): Likewise.
14062 (func_import): Likewise.
14064 2006-05-08 Bruno Haible <bruno@clisp.org>
14066 * modules/stdarg: New file.
14067 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
14069 2006-05-08 Bruno Haible <bruno@clisp.org>
14071 * m4/stdarg.m4: New file, from GNU gettext.
14073 2006-05-08 Bruno Haible <bruno@clisp.org>
14075 * config/srclist.txt (build-aux/config.rpath): different from latest
14078 2006-05-08 Bruno Haible <bruno@clisp.org>
14080 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
14082 2006-05-05 Jim Meyering <jim@meyering.net>
14084 * m4/warning.m4: New file, derived from bison's file by the same name.
14086 2006-05-03 Bruno Haible <bruno@clisp.org>
14088 * lib/stdint_.h: Shorter URL.
14089 * lib/inttypes.h: Likewise.
14091 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14093 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
14095 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14097 * lib/verify.h: Document the internals better. Most of this change
14098 was written by Bruno Haible.
14100 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
14102 * doc/verify.texi: New file, partly based on a proposal by
14105 2006-05-02 Bruno Haible <bruno@clisp.org>
14107 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
14109 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
14111 2006-04-29 Bruno Haible <bruno@clisp.org>
14113 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
14114 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
14116 2006-04-29 Bruno Haible <bruno@clisp.org>
14118 * gnulib-tool: Make --update option actually work.
14120 2006-04-29 Bruno Haible <bruno@clisp.org>
14122 * doc/gcd.texi: New file.
14123 * doc/gnulib.texi: Include it.
14125 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
14127 * lib/getdate.y (get_date): When adding relative date, start with the
14128 initial time, not with the result of the first mktime call.
14130 2006-04-25 Bruno Haible <bruno@clisp.org>
14132 * gnulib-tool (func_import): Output the include directives in three
14133 blocks, sorted separately.
14134 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14136 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
14138 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
14139 to define main with arguments, for C++. Reported by Eric Blake.
14140 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14141 Prefer 'int main ()' to 'int main (void)', for C++.
14142 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14143 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
14144 for 'main', for C99 and C++.
14146 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
14148 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
14149 Don't assume that exit status -1 is valid.
14150 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14151 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14152 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14153 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
14154 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
14155 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
14156 not AC_TRY_RUN. Use return, not exit. Don't assume that
14157 functions can be used without declaring them, or that you can
14158 exit with status -1.
14159 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14161 2006-04-24 Karl Berry <karl@gnu.org>
14163 * config/srclist.txt (longdouble.m4): sync lost.
14165 2006-04-24 Eric Blake <ebb9@byu.net>
14167 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
14169 2006-04-24 Bruno Haible <bruno@clisp.org>
14171 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
14172 poll() implementation in AIX.
14173 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14175 2006-04-24 Bruno Haible <bruno@clisp.org>
14177 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
14178 assigned exactly once.
14180 2006-04-23 Claudio Fontana <claudio@gnu.org>
14181 Bruno Haible <bruno@clisp.org>
14183 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
14184 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
14187 2006-04-23 Bruno Haible <bruno@clisp.org>
14189 * modules/copy-file: Depend on unistd.
14190 * modules/execute: Likewise.
14191 * modules/fatal-signal: Likewise.
14192 * modules/findprog: Likewise.
14193 * modules/mkdtemp : Likewise.
14194 * modules/pipe: Likewise.
14195 * modules/wait-process: Likewise.
14197 2006-04-23 Bruno Haible <bruno@clisp.org>
14199 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
14200 condition was already detected.
14201 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14203 2006-04-23 Bruno Haible <bruno@clisp.org>
14205 * lib/copy-file.c: Include <unistd.h> unconditionally.
14206 * lib/execute.c: Likewise.
14207 * lib/fatal-signal.c: Likewise.
14208 * lib/findprog.c: Likewise.
14209 * lib/mkdtemp.c: Likewise.
14210 * lib/pipe.h: Likewise.
14211 * lib/pipe.c: Likewise.
14212 * lib/wait-process.h: Likewise.
14214 2006-04-23 Bruno Haible <bruno@clisp.org>
14216 * gnulib-tool (func_usage): Fix --import description. Document
14218 (func_import): Create temporary file in a temporary directory, if
14219 --dry-run is specified. Silence errors from 'grep' when there are no
14220 m4 files in $m4dir.
14221 (func_create_testdir): Silence errors from 'grep' when there are no
14222 m4 files in $m4dir.
14223 Reported by Karl Berry <karl@freefriends.org>.
14225 2006-04-20 Bruno Haible <bruno@clisp.org>
14227 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
14228 one argument, so that the code will be portable to Autoconf 2.60.
14229 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
14230 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14231 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
14233 2006-04-19 Derek Price <derek@ximbiot.com>
14234 Eric Blake <ebb9@byu.net>
14236 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
14237 rather than "/full/path.h". Update comment to match. Shorten &
14238 generalize m4_translit call via AS_TR_CPP.
14240 2006-04-19 Derek Price <derek@ximbiot.com>
14241 Eric Blake <ebb9@byu.net>
14243 * lib/inttypes.h: Correct grammar in comment.
14245 2006-04-18 Derek Price <derek@ximbiot.com>
14246 Paul Eggert <eggert@cs.ucla.edu>
14248 * modules/inttypes: New file.
14249 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
14251 2006-04-18 Derek Price <derek@ximbiot.com>
14252 Paul Eggert <eggert@cs.ucla.edu>
14254 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
14257 2006-04-18 Derek Price <derek@ximbiot.com>
14258 Paul Eggert <eggert@cs.ucla.edu>
14260 * lib/inttypes.h: New file.
14261 * lib/strtoimax.c: Assume <inttypes.h>.
14263 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
14265 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
14266 isn't mounted. Problem reported by Kir Kolyshkin.
14268 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
14270 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
14271 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
14273 * lib/regex.h (RE_DUP_MAX): Update comment to match current
14276 2006-04-12 Eric Blake <ebb9@byu.net>
14278 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
14279 is now done automatically by the corresponding Autoconf macro.
14281 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
14283 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
14286 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14288 Merge regex changes from libc, removing some of our
14289 POSIX-conformance changes that were rejected and redoing them in a
14290 less-intrusive way.
14292 * lib/regcomp.c (re_compile_internal, init_dfa):
14293 Length arg is now size_t, not Idx. All uses changed.
14294 (peek_token): Forward decl now says internal_function.
14295 (__re_error_msgid, __re_error_msgid_idx):
14296 Now static rather than extern with attribute_hidden.
14297 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
14298 For some reason libc prefers K&R style defns for external functions.
14299 (regerror) [!defined _LIBC]: Likewise.
14300 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
14301 (seek_collating_symbol_entry, lookup_collation_sequence_value):
14302 (build_range_exp, build_collating_symbol):
14303 Use K&R-style defn.
14304 (re_compile_fastmap): Use '\0' to memset, not 0.
14305 (utf8_sb_map): Make the calculations more obvious.
14306 (init_dfa, parse_bracket_exp, build_charclass_op):
14307 Call calloc and cast result, as glibc does.
14308 (init_word_char, fetch_token, peek_token, peek_token_bracket):
14309 (build_range_exp, build_collating_symbol):
14310 Now internal functions.
14312 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
14314 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
14315 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
14316 Don't depend on VMS; depend on __VMS instead, for POSIX
14317 namespace cleanness.
14318 (regoff_t): Define to ssize_t, not long int.
14320 Remove the REG_ macros named below. Instead, make the old names
14321 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
14323 (REG_BACKSLASH_ESCAPE_IN_LISTS):
14324 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
14325 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
14326 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
14327 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
14328 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
14329 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
14330 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
14331 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
14332 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
14333 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
14334 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
14335 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
14336 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
14337 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
14338 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
14339 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
14341 Remove. All uses replaced by the old RE_* names.
14342 (RE_BACKSLASH_ESCAPE_IN_LISTS):
14343 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
14344 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
14345 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
14346 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
14347 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
14348 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
14349 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
14350 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
14351 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
14352 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
14353 Don't bother having these macros be independent of each others'
14354 values, since they no longer exist in the POSIX name space.
14356 Rename the following member names back to their old names,
14357 unless !__USE_GNU_REGEX. All uses changed back.
14358 (buffer): Renamed from re_buffer.
14359 (allocated): Renamed from re_allocated.
14360 (used): Renamed from re_used.
14361 (syntax): Renamed from re_syntax.
14362 (fastmap): Renamed from re_fastmap.
14363 (translate): Renamed from re_translate.
14364 (can_be_null): Renamed from re_can_be_null.
14365 (regs_allocated): Renamed from re_regs_allocated.
14366 (fastmap_accurate): Renamed from re_fastmap_accurate.
14367 (no_sub): Renamed from re_no_sub.
14368 (not_bol): Renamed from re_not_bol.
14369 (not_eol): Renamed from re_not_eol.
14370 (newline_anchor): Renamed from re_newline_anchor.
14371 (num_regs): Renamed from rm_num_regs.
14372 (start): Renamed from rm_start.
14373 (end): Renamed from rm_end.
14375 (free_state): Move up a bit.
14377 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
14378 #define to be empty.
14379 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
14380 when that is what is intended.
14381 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
14382 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
14384 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
14385 All uses changed back to re_malloc, etc. It's now the caller's
14386 responsibility to check for overflow; all callers changed.
14387 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
14388 (re_x2nrealloc): Remove.
14389 (free_state): Remove decl.
14391 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
14392 (re_set_registers, re_exec):
14393 Use K&R-style defn.
14395 2006-01-31 Roland McGrath <roland@redhat.com>
14397 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
14398 Reported by Mike Frysinger <vapier@gentoo.org>.
14400 2006-01-15 Andreas Jaeger <aj@suse.de>
14403 * lib/regex_internal.c (re_string_reconstruct): Adjust for
14404 build_wcs_upper_buffer change.
14405 (build_wcs_upper_buffer): Change return type.
14407 2005-12-10 Ulrich Drepper <drepper@redhat.com>
14409 * lib/regex_internal.h: Include <stdint.h> if available.
14411 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
14413 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
14415 2005-10-14 Ulrich Drepper <drepper@redhat.com>
14417 * lib/regcomp.c: Adjust for changed secondary hash function.
14419 2005-09-30 Ulrich Drepper <drepper@redhat.com>
14421 * lib/regex.h: Pretty printing.
14422 Clean up namespace a bit.
14424 2005-09-30 Jakub Jelinek <jakub@redhat.com>
14426 * lib/regexec.c (update_cur_sifted_state, check_arrival,
14427 check_arrival_add_next_nodes): Avoid using uninitialized variable.
14429 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
14430 Ulrich Drepper <drepper@redhat.com>
14433 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
14435 (bitset_word_t): Renamed from bitset_word. All uses changed.
14437 2005-09-22 Ulrich Drepper <drepper@redhat.com>
14440 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
14441 * lib/regcomp.c: Remove unnecessary uses of
14442 unsigned RE_TRANSLATE_TYPE.
14443 * lib/regex_internal.h: Likewise.
14444 * lib/regex_internal.c: Likewise.
14445 * lib/regexec.c: Likewise.
14446 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
14448 2005-09-07 Ulrich Drepper <drepper@redhat.com>
14450 * lib/regexec.c (find_recover_state): Remove unnecessary
14452 (transit_state_bkref): Make DFA a const pointer.
14453 (get_subexp): Likewise.
14454 (check_arrival): Likewise.
14455 (update_cur_sifted_state): Likewise.
14456 (re_search_internal): Likewise.
14457 (prune_impossible_nodes): Likewise.
14458 (acquire_init_state_context): Likewise.
14459 (proceed_next_node): Likewise.
14460 (set_regs): Likewise.
14461 (free_fail_stack_return): Likewise.
14462 (check_arrival_expand_ecl): Mark DFA parameter as const.
14463 (check_arrival_expand_ecl_sub): Likewise.
14464 (check_subexp_limits): Likewise.
14465 (sub_epsilon_src_nodes): Likewise.
14466 (add_epsilon_src_nodes): Likewise.
14467 (merge_state_array): Likewise.
14468 (update_regs): Likewise.
14469 (build_trtable): Likewise.
14470 (sift_states_backward): Mark MCTX parameter as const.
14471 (build_sifted_states): Likewise.
14472 (update_cur_sifted_state): Likewise.
14473 (sift_states_mkref): Likewise.
14474 (check_arrival_expand_ecl): Mark eclosure as const.
14475 (check_dst_limits_calc_pos_1): Likewise.
14476 * lib/regex_internal.h (re_match_context_t): Make dfa a const
14479 2005-09-06 Ulrich Drepper <drepper@redhat.com>
14481 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
14482 (transit_state_sb): Likewise.
14483 (transit_state_mb): Likewise.
14484 (sift_states_iter_mb): Likewise.
14485 (check_arrival_add_next_nodes): Likewise.
14486 (check_node_accept_bytes): Change first parameter to pointer-to-const.
14487 [_LIBC] (re_search_2_stub): Use mempcpy.
14489 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
14490 mbrtowc for very simple UTF-8 case.
14492 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
14493 a pointer-to-const.
14494 (re_acquire_state_context): Likewise.
14495 * lib/regex_internal.h: Adjust prototypes.
14497 * lib/regex.c: Prevent using C++ compilers.
14499 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
14500 (re_acquire_state_context): Likewise.
14502 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14504 * modules/regex (Depends-on): Add ssize_t.
14506 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14508 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
14511 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
14513 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
14515 2006-03-29 Mark D. Baushke <mdb@gnu.org>
14516 Bruno Haible <bruno@clisp.org>
14518 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
14519 <sys/types.h> and <inttypes.h>.
14521 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14523 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
14524 `__error_t_defined', so argp.h will not typedef the former.
14526 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
14528 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
14529 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
14530 glibc names. Even if glibc is changed to conform to POSIX, the
14531 traditional names will be available anyway, since regex depends on
14532 the extensions module. Also, fix a longstanding typo in the
14533 implementation of Spencer ERE test #75 from grep 2.3. Problems
14534 reported by Emanuele Giaquinta. Also, change sense of cached
14535 variable, so that the message makes sense.
14537 2006-03-24 Simon Josefsson <jas@extundo.com>
14539 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
14540 including some doc fixes.
14541 (base64_encode_alloc): Fix +1 bug on allocation failures.
14543 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14545 * lib/base64.c (base64_encode): Do not read past end of array with
14546 unsanitized input on systems with CHAR_BIT > 8.
14548 2006-03-24 Eric Blake <ebb9@byu.net>
14550 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
14552 2006-03-22 Karl Berry <karl@gnu.org>
14554 * config/srclist.txt (*setenv.[ch]): get from coreutils.
14555 * config/srclistvars.sh (COREUTILS): new var.
14557 2006-03-17 Jim Meyering <jim@meyering.net>
14559 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
14560 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
14562 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
14564 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
14565 no longer needs it. Instead, check that regoff_t is as least
14566 as wide as ptrdiff_t.
14568 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
14569 so that our regex.h stays compatible with the installed regex.
14570 This is helpful for installers who configure --without-included-regex.
14571 Problem reported by Emanuele Giaquinta.
14573 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
14575 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
14576 Typedef to long int, not to off_, as POSIX will likely change
14579 2006-03-15 Eric Blake <ebb9@byu.net>
14581 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
14583 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
14585 * lib/argp-help.c (validate_uparams): Fix typo
14586 * lib/argp-parse.c (argp_default_options): Consistently begin help
14587 messages with a lowercase letter.
14589 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
14591 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
14592 overrun buffers and shouldn't be used (much as gets shouldn't be
14594 * lib/time_r.c (asctime_r, ctime_r): Likewise.
14596 2006-03-08 Simon Josefsson <jas@extundo.com>
14598 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
14599 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14601 2006-03-08 Simon Josefsson <jas@extundo.com>
14603 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
14604 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14606 2006-03-08 Simon Josefsson <jas@extundo.com>
14608 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
14609 signal that configure disabled the device.
14611 2006-03-08 Simon Josefsson <jas@extundo.com>
14613 * build-aux/maint.mk: Fix refresh-po, to handle no translated
14616 2006-03-07 Simon Josefsson <jas@extundo.com>
14618 * modules/getopt (Depends-on): Add unistd.
14620 * modules/unistd: New file.
14622 2006-03-07 Simon Josefsson <jas@extundo.com>
14624 * modules/gc-random: New file.
14626 2006-03-07 Simon Josefsson <jas@extundo.com>
14628 * m4/unistd_h.m4: New file.
14630 2006-03-07 Simon Josefsson <jas@extundo.com>
14632 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
14633 test to be side-effect free by storing the result in the cache
14634 variable gl_cv_lib_readline, and moving the assignment of
14635 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
14636 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14638 2006-03-07 Simon Josefsson <jas@extundo.com>
14640 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
14641 error on missing devices (the functions will return an error).
14643 * m4/gc.m4: Move random stuff to gc-random.m4
14645 2006-03-07 Simon Josefsson <jas@extundo.com>
14647 * lib/unistd_.h: New file.
14649 2006-03-07 Simon Josefsson <jas@extundo.com>
14651 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
14653 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
14655 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
14656 Problem reported by Juan Manuel Guerrero.
14658 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
14660 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
14662 * lib/getlogin_r.c: Likewise.
14663 * lib/getlogin_r.h: Likewise.
14664 * lib/glob.c: Likewise.
14665 * lib/pagealign_alloc.c: Likewise.
14666 * lib/unistd_.h: Remove; no longer needed.
14668 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
14670 * MODULES.html.sh (Support for systems lacking POSIX:2001):
14672 * modules/c-stack (Depends-on): Add unistd.
14673 * modules/getlogin_r: Likewise.
14674 * modules/glob: Likewise.
14675 * modules/pagealign_alloc: Likewise.
14676 * modules/unistd (Files): Remove lib/unistd_.h.
14677 (EXTRA_DIST): Remove.
14678 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
14680 (MOSTLYCLEANFILES): Remove unistd.h-t.
14682 2006-03-03 Simon Josefsson <jas@extundo.com>
14684 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
14686 2006-03-03 Simon Josefsson <jas@extundo.com>
14688 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
14691 2006-03-03 Simon Josefsson <jas@extundo.com>
14693 * build-aux/maint.mk: Add indent target.
14695 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
14697 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
14698 our replacement poll.h in any case, to avoid a differing
14699 declaration from a system header. Seen on AIX.
14701 2006-03-01 Simon Josefsson <jas@extundo.com>
14703 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
14706 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
14708 * modules/gettime (Depends-on): Add extensions module.
14709 * modules/nanosleep (Depends-on): Likewise.
14710 * modules/settime (Depends-on): Likewise.
14712 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
14714 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
14715 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
14717 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14718 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
14720 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
14721 not "==". Reported by Ralf Wildenhues.
14723 2006-03-01 Karl Berry <karl@gnu.org>
14725 * doc/Copyright/request-*: new files, synced from gnuorg.
14727 2006-03-01 Karl Berry <karl@gnu.org>
14729 * config/srclist.txt (Copyright/*): new entries.
14731 2006-02-28 Simon Josefsson <jas@extundo.com>
14733 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
14735 2006-02-27 Simon Josefsson <jas@extundo.com>
14737 * lib/base64.h: Indent #define's. From Jim Meyering
14738 <jim@meyering.net>.
14740 2006-02-27 Jim Meyering <jim@meyering.net>
14742 Revert the change of 2006-02-24, so these files can continue
14743 to be sync'd from gettext.
14744 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
14747 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
14749 * modules/intprops: New file.
14750 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
14752 * modules/getloadavg (Files): Remove lib/intprops.h.
14753 (Depends-on): Add intprops.
14754 * modules/human: Likewise.
14755 * modules/inttostr: Likewise.
14756 * modules/openat: Likewise.
14757 * modules/sig2str: Likewise.
14758 * modules/userspec: Likewise.
14759 * modules/utimecmp: Likewise.
14760 * modules/xnanosleep: Likewise.
14761 * modules/xstrtol: Likewise.
14763 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
14765 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
14766 * modules/lock-tests (TESTS): Use $(EXEEXT).
14767 * modules/tls-tests: Likewise.
14768 * modules/argp-tests: Likewise.
14769 (check_PROGRAMS): New var, replacing...
14770 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
14772 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14774 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
14777 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
14779 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
14781 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14783 Sync from coreutils.
14784 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
14787 2006-02-22 Jim Meyering <jim@meyering.net>
14789 Sync from coreutils.
14790 * m4/chdir-safer.m4: New file.
14792 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
14794 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
14795 AT_FDCWD exceeds INT_MAX.
14796 * lib/openat.h (AT_FDCWD): Likewise.
14798 2006-02-17 Eric Blake <address@hidden>
14800 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
14802 2006-02-16 Simon Josefsson <jas@extundo.com>
14804 * modules/getaddrinfo (Depends-on): Add sys_socket.
14806 2006-02-15 Simon Josefsson <jas@extundo.com>
14808 * build-aux/maint.mk: Add dsyntax-check rule.
14810 2006-02-15 Eric Blake <ebb9@byu.net>
14812 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
14813 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
14814 'present but cannot compile' warnings on cygwin.
14815 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
14816 use ws2tcpip.h if sys/socket.h works.
14817 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
14818 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
14820 2006-02-14 Simon Josefsson <jas@extundo.com>
14822 * modules/maintainer-makefile (Files): Rename.
14824 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
14825 and (the local) Makefile.cfg to maint-cfg.mk.
14827 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
14830 * modules/maintainer-makefile: New module.
14832 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
14833 severaly stripped to make it possible to build it up from scratch
14834 with reliable tests.
14836 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
14837 fixes to permit overriding the default actions when configure and
14838 makefile are not available.
14840 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
14842 Sync from coreutils.
14843 * modules/lstat (Depends-on): Don't depend on xalloc.
14844 (License): Change from GPL to LGPL, since this is now simply a
14845 replacement for a libc function.
14847 2006-02-14 Jim Meyering <jim@meyering.net>
14849 Sync from coreutils.
14851 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
14852 failure on deficient systems, and simplify gnulib lgpl dependencies.
14853 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
14854 xmalloc/lstat combination. Based on a patch from Bruno Haible.
14856 * lib/xalloc-die.c: Remove unused definition of N_.
14858 2006-02-14 Jim Meyering <jim@meyering.net>
14860 Sync from coreutils.
14861 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
14862 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
14863 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
14864 double-quote uses of that variable, to accommodate the rare case in
14865 which getmntent is available in none of the libraries checked. This
14866 happens at least on FreeBSD 5.0.
14868 2006-02-13 Simon Josefsson <jas@extundo.com>
14870 * gnulib-tool (Usage): Fix --import, from
14871 karl@freefriends.org (Karl Berry).
14873 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
14875 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
14877 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
14879 * lib/argp-namefrob.h: Restore changes accidentally lost during the
14880 "autoupdate" on 2005-12-12.
14882 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
14884 * modules/closeout (Depends-on): Remove atexit.
14886 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
14888 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
14889 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
14891 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
14893 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
14894 __EXTENSIONS__ if this causes compilation to fail. Problem
14895 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
14896 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
14898 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
14900 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
14901 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
14902 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
14905 2006-01-26 Simon Josefsson <jas@extundo.com>
14907 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
14908 prototype is visible on mingw32.
14910 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
14913 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
14916 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
14918 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
14919 attempt to open for write; this always fails, at least on POSIX
14920 hosts. This reinstates the 2006-01-09 change, which was
14921 inadvertently removed.
14923 2006-01-26 Bruno Haible <bruno@clisp.org>
14925 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
14926 Reported by Paul Eggert.
14928 2006-01-26 Bruno Haible <bruno@clisp.org>
14929 Paul Eggert <eggert@cs.ucla.edu>
14931 * lib/stdbool_.h (_Bool)
14932 [(! (defined __cplusplus || defined __BEOS__)
14933 && !defined __GNUC__
14934 && !(defined __HP_cc || defined __xlc__
14935 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
14936 || defined __sgi))]:
14937 #define to signed char in these cases too; this simplifies
14938 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
14939 etc., separately) and makes it more conservative.
14941 2006-01-25 Simon Josefsson <jas@extundo.com>
14943 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
14944 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
14945 ws2tcpip.h with WINVER=0x0501. All for mingw32.
14947 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
14949 * lib/argp-namefrob.h: Bugfix. Remove stray #
14951 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
14953 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
14954 so that we test the test.
14955 Check for yet another HP-UX cc bug involving *bool |= bool.
14957 2006-01-25 Karl Berry <karl@gnu.org>
14959 * config/srclist.txt (vasnprintf.c): sync lost.
14961 2006-01-25 Jim Meyering <jim@meyering.net>
14963 Sync from the stable (b5) branch of coreutils:
14965 * lib/fts.c (fts_children): Don't let close() clobber errno from
14968 * lib/fts.c (fts_stat): When following a symlink-to-directory,
14969 don't necessarily interpret stat-fails+lstat-succeeds as indicating
14970 a dangling symlink. That can also happen at least for ELOOP.
14971 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
14972 FYI, this bug predates the inclusion of fts.c in coreutils.
14974 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
14975 in their own block, so pre-c99 compilers don't object.
14977 Avoid the double-free (first in fts_read, second in fts_close) that
14978 would occur when an `active' directory is made inaccessible (e.g.,
14979 via chmod a-x) during a traversal.
14980 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
14981 before returning. Reproduce this failure by
14982 mkdir -p a/b; cd a; chmod a-x . b
14983 Reported by Stavros Passas.
14985 2006-01-25 Jim Meyering <jim@meyering.net>
14987 * lib/fileblocks.c: Remove more useless parentheses.
14988 * lib/readutmp.h: Likewise.
14990 2006-01-25 Bruno Haible <bruno@clisp.org>
14992 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
14994 Reported by Paul Eggert.
14996 2006-01-25 Bruno Haible <bruno@clisp.org>
14998 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
14999 rid of a trap command. For Solaris sh.
15000 Reported by Mark D. Baushke <mdb@gnu.org>.
15002 2006-01-24 Simon Josefsson <jas@extundo.com>
15004 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
15007 2006-01-24 Karl Berry <karl@gnu.org>
15009 * config/srclist.txt (argp-namefrob.h): sync lost.
15011 2006-01-24 Jim Meyering <jim@meyering.net>
15013 * modules/openat (Files): Add lib/intprops.h.
15014 From Mark D. Baushke.
15016 2006-01-24 Jim Meyering <jim@meyering.net>
15018 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
15019 Reported by Mark D. Baushke.
15021 2006-01-24 Jim Meyering <jim@meyering.net>
15023 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
15025 2006-01-24 Bruno Haible <bruno@clisp.org>
15027 * modules/strnlen (Maintainer): Change from glibc to all.
15029 2006-01-24 Bruno Haible <bruno@clisp.org>
15031 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
15032 Patch by Paul Eggert.
15034 2006-01-24 Bruno Haible <bruno@clisp.org>
15036 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
15038 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
15041 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
15042 'signed char' to avoid problems with the built-in _Bool type.
15043 Reported by Paul Eggert on 2005-11-26.
15045 2006-01-24 Bruno Haible <bruno@clisp.org>
15047 * gnulib-tool (func_import): Avoid constructing complicated sed
15048 expressions inside backquote.
15049 Report and solution by Mark D. Baushke <mdb@gnu.org>.
15051 2006-01-23 Ulrich Drepper <drepper@redhat.com>
15053 These changes imported from libc.
15054 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
15055 test and two separate function calls.
15056 * lib/strndup.c (__strndup): Add libc_hidden_def.
15058 2006-01-23 Simon Josefsson <jas@extundo.com>
15060 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
15061 Remove the test_*_SOURCES variable: automake infers it by default.
15062 * modules/tls-tests: Likewise.
15064 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15066 Work around porting bugs reported by Dieter in
15067 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
15068 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
15069 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
15070 Include "getopt.h" first, to check interface.
15071 (getenv): Declare only if defined HAVE_DECL_GETENV &&
15073 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
15074 (__strndup): Revert to K&R-style function dfns, the glibc style.
15075 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
15076 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
15077 Include strnlen.h first, to get prototype properly.
15078 (strnlen): Renamed from __strnlen.
15081 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15083 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
15085 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
15087 * config/srclist.txt: Adjust to reflect glibc reorganization.
15088 This affects only comments.
15090 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15092 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
15093 Reported by Bruce Korb <bkorb@gnu.org>.
15095 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
15097 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
15098 to pacify gcc -Wswitch-default.
15100 2006-01-22 Bruno Haible <bruno@clisp.org>
15102 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
15103 temporary buffer for sprintf, take into account the precision also
15104 for 'd', 'i', 'u', 'o', 'x', 'X'.
15106 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
15108 * modules/argp-tests: New module
15109 * tests/test-argp.c: New file
15110 * tests/test-argp-2.sh: New file
15112 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
15114 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
15115 (__argp_base_name): Removed
15116 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
15118 (__argp_base_name): Provide macro definition or extern declaration
15119 depending on the configuration
15121 2006-01-20 Simon Josefsson <jas@extundo.com>
15123 * modules/inet_ntop (Depends-on): Depend on sys_socket.
15125 2006-01-20 Simon Josefsson <jas@extundo.com>
15127 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
15129 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
15131 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
15132 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
15133 Suggested by Bruno Haible.
15135 2006-01-20 Karl Berry <karl@gnu.org>
15137 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
15138 until changes propagate, I guess.
15140 2006-01-19 Simon Josefsson <jas@extundo.com>
15142 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
15144 2006-01-19 Simon Josefsson <jas@extundo.com>
15146 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
15148 2006-01-19 Simon Josefsson <jas@extundo.com>
15150 * gnulib-tool: Set check_PROGRAMS.
15152 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15153 modules/des-tests, modules/gc-arcfour-tests,
15154 modules/gc-arctwo-tests, modules/gc-des-tests,
15155 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15156 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15157 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15158 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15159 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15160 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
15161 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
15164 2006-01-18 Simon Josefsson <jas@extundo.com>
15166 * modules/socklen (Depends-on): Depend on sys_socket.
15168 2006-01-18 Simon Josefsson <jas@extundo.com>
15170 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
15171 modules/des-tests, modules/gc-arcfour-tests,
15172 modules/gc-arctwo-tests, modules/gc-des-tests,
15173 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
15174 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
15175 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
15176 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
15177 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
15178 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
15179 $(EXEEXT) to automake TESTS variable, for mingw32.
15181 2006-01-17 Simon Josefsson <jas@extundo.com>
15183 * modules/socklen (Include): Need sys/socket.h.
15185 2006-01-17 Bruno Haible <bruno@clisp.org>
15187 * modules/ssize_t (Include): Add <sys/types.h>.
15189 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
15191 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
15192 it's not portable and it doesn't work with cross-compiles.
15193 Problem reported by Bruno Haible. Fix missing-$ typo in
15194 'test "gl_cv_ignore_unused_libraries" ...' that prevented
15195 -zignore from being used with Sun's C compiler.
15197 2006-01-12 Simon Josefsson <jas@extundo.com>
15199 * lib/base64.c: Fix warning, reported by Bruno Haible
15200 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
15202 2006-01-12 Bruno Haible <bruno@clisp.org>
15204 * modules/ldd: New file.
15205 * build-aux/ldd.sh.in: New file.
15206 * MODULES.html.sh (Support for building libraries and executables): Add
15209 2006-01-12 Bruno Haible <bruno@clisp.org>
15211 * m4/ldd.m4: New file.
15213 2006-01-12 Bruno Haible <bruno@clisp.org>
15215 * gnulib-tool (func_import, func_create_testdir): Don't go into an
15216 endless loop while replacing $auxdir with build-aux.
15218 2006-01-11 Simon Josefsson <jas@extundo.com>
15220 * lib/stdint_.h (SIZE_MAX): Add missing (.
15222 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
15224 Sync from coreutils.
15225 * lib/md5.c: Fix commentary typos.
15226 (alignof, UNALIGNED_P): No need for a GCC-specific version.
15227 * lib/md5.h (__attribute__): Remove; unused.
15228 * lib/sha1.c: Fix commentary to match md5 better.
15229 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
15230 so that we don't need to worry about alignment. All uses changed.
15231 This merges the 2005-10-28 md5 change into sha1.
15233 2006-01-11 Jim Meyering <jim@meyering.net>
15235 Sync from coreutils.
15236 * lib/md5.c (OP): Fix spacing.
15238 2006-01-11 Bruno Haible <bruno@clisp.org>
15240 Ensure automatic ordering between gl_LOCK and gl_ARGP.
15241 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
15242 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
15244 2006-01-11 Bruno Haible <bruno@clisp.org>
15246 Ensure automatic ordering between gl_LOCK and gl_ARGP.
15247 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
15248 the "early" section as well.
15250 2006-01-11 Bruno Haible <bruno@clisp.org>
15252 Avoid "ar: no archive members specified" error on MacOS X.
15253 * gnulib-tool (func_modules_add_dummy): New function.
15254 (func_import, func_create_testdir): Invoke it.
15256 2006-01-11 Bruno Haible <bruno@clisp.org>
15258 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
15259 with $auxdir in AC_CONFIG_FILES statements.
15261 2006-01-11 Bruno Haible <bruno@clisp.org>
15263 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15264 Initialize also noinst_HEADERS to empty.
15266 2006-01-11 Bruno Haible <bruno@clisp.org>
15268 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
15270 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
15273 2006-01-11 Bruno Haible <bruno@clisp.org>
15275 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
15276 overridable by the user.
15277 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15279 2006-01-10 Simon Josefsson <jas@extundo.com>
15281 * modules/sys_socket: New file.
15283 2006-01-10 Simon Josefsson <jas@extundo.com>
15285 * m4/sys_socket_h.m4: New file.
15287 2006-01-10 Simon Josefsson <jas@extundo.com>
15289 * lib/socket_.h: New file.
15291 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15293 * modules/readutmp (Maintainer): Add myself.
15295 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15297 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
15298 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
15299 People who are still concerned with buggy memcmp implementations
15300 can invoke gl_FUNC_MEMCMP themselves.
15302 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
15304 * lib/regex_internal.h (BITSET_WORD_BITS):
15305 Work around a bug in 64-bit PGC (before version 6.1-2), where the
15306 preprocessor mishandles large unsigned values as if they were signed.
15307 Problem reported by Claudio Fontana in
15308 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
15310 2006-01-10 Jim Meyering <jim@meyering.net>
15312 Avoid the double-free (first in fts_read, second in fts_close) that
15313 would occur when an `active' directory is made inaccessible (e.g.,
15314 via chmod a-x) during a traversal.
15315 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15316 before returning. Reproduce this failure by
15317 mkdir -p a/b; cd a; chmod a-x . b
15318 Reported by Stavros Passas.
15320 Sync from coreutils.
15321 * lib/sha1.c: Tweak grammar in a comment.
15323 2006-01-10 Jim Meyering <jim@meyering.net>
15325 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
15326 Patch by Joerg Sonnenberger.
15328 2006-01-10 Bruno Haible <bruno@clisp.org>
15330 * modules/readutmp: Depend on module free.
15331 * modules/strtok_r: Depend on module restrict.
15333 2006-01-10 Bruno Haible <bruno@clisp.org>
15335 * modules/gettext (configure.ac): Add an invocation of
15336 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
15338 2006-01-10 Bruno Haible <bruno@clisp.org>
15340 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
15341 Reported by Werner Lemberg <wl@gnu.org>.
15343 2006-01-10 Bruno Haible <bruno@clisp.org>
15345 * lib/localcharset.c: Update from GNU gettext.
15347 2006-01-10 Bruno Haible <bruno@clisp.org>
15349 * lib/argp.h (__const): Remove macro. Use const instead.
15350 * lib/argp-fmtstream.h (__const): Likewise.
15351 * lib/glob_.h (__const): Remove macro.
15352 * lib/glob-libc.h: Use const instead of __const.
15354 2006-01-10 Bruno Haible <bruno@clisp.org>
15356 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
15358 Needed to avoid an automake error regarding the 'gettext' module.
15360 2006-01-09 Simon Josefsson <jas@extundo.com>
15362 * modules/inet_ntop (Depends-on): Add restrict.
15364 2006-01-09 Simon Josefsson <jas@extundo.com>
15366 * modules/gc-rijndael-tests (License): Put under LGPL.
15368 * modules/gc-des-tests (License): Likewise.
15370 * modules/gc-arcfour-tests (License): Likewise.
15372 * modules/gc-arctwo-tests (License): Likewise.
15374 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
15376 * modules/gc-hmac-sha1-tests (Files): Likewise.
15378 * modules/gc-hmac-md5-tests (License): Likewise.
15380 * modules/gc-sha1-tests (License): Likewise.
15382 * modules/gc-md5-tests (License): Likewise.
15384 * modules/gc-md4-tests (License): Likewise.
15386 * modules/gc-md2-tests (License): Likewise.
15388 * modules/gc-tests (License): Likewise.
15390 * modules/des-tests (License): Likewise.
15392 * modules/md4-tests (License): Likewise.
15394 * modules/md2-tests (License): Likewise.
15396 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15398 Sync from coreutils:
15400 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
15401 * modules/lib-ignore: New file.
15402 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
15403 chdir-safer.m4, lchmod.m4.
15404 * modules/openat: Add mkdirat.c, openat-priv.h.
15406 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15408 Sync from coreutils.
15409 * m4/lib-ignore.m4: New file.
15410 * m4/lchmod.m4: New file.
15412 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15414 Sync from coreutils.
15415 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
15416 for write access: POSIX says that must fail.
15417 * lib/fts.c (diropen): Likewise.
15418 * lib/save-cwd.c (save_cwd): Likewise.
15419 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
15420 well, for minor improvements on hosts that lack O_DIRECTORY.
15421 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
15422 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
15423 Fall back on chown if open failed with EACCES.
15425 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
15426 Report an error at compile-time if only a 1-second nominal clock
15427 resolution is found.
15429 * lib/lchmod.h: New file.
15430 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
15431 (make_dir_parents): Use lchown rather than chown, and
15432 lchmod rather than chmod.
15434 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
15435 dummies too. Problem with "none" reported by Bob Proulx. Problem with
15436 "proc" reported by n0dalus.
15438 * lib/mountlist.c: Include <limits.h>.
15439 (dev_from_mount_options)
15440 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
15441 New function. It no longer assumes "dev=" has the System V meaning
15442 on Linux (since it doesn't). It also parses "dev=" more carefully.
15443 (read_file_system_list)
15444 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
15445 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
15448 * lib/posixtm.h (PDS_PRE_2000): New macro.
15449 * lib/posixtm.c (year): Arg is now syntax_bits rather than
15450 allow_century. All usages changed. Reject dates outside the range
15451 1969-1999 if PDS_PRE_2000 is used.
15453 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
15455 Sync from coreutils.
15456 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
15457 (Time of day items): Mention the possibility of leap seconds.
15458 Problem reported by Dr. David Alan Gilbert.
15460 2006-01-09 Jim Meyering <jim@meyering.net>
15462 Sync from coreutils.
15464 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
15466 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
15468 * lib/modechange.c (mode_compile): Reject an invalid mode string
15469 that starts with an octal digit. From Andreas Gruenbacher.
15471 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
15472 and dup to open_safer and dup_safer, respectively.
15473 (openat_permissive): Fix typo in comment.
15475 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
15476 "gettext.h"; either no longer needed or are guaranteed by openat.h.
15477 (_): Remove; no longer needed.
15478 (openat): Renamed from rpl_openat; no need for rpl_openat
15479 since openat.h renames openat for us.
15480 Replace most of the body with a call to openat_permissive,
15481 to avoid duplicate code.
15482 Port to (probably hypothetical) environments were mode_t is
15484 (openat_permissive): Require mode arg, so that we can check
15485 types better. Put it just after flags. Change cwd failure
15486 indicator from pointer-to-bool to pointer-to-errno-value.
15487 All callers changed.
15488 Invoke openat_save_fail and/or openat_restore_fail if
15489 cwd_errno is null, so that openat can call us.
15490 (openat_permissive, fdopendir, fstatat, unlinkat):
15491 Simplify errno handling to avoid some duplicate code,
15492 as it's OK to set errno on success.
15493 * lib/openat.h: Revamp code so that function macros depend on
15494 __OPENAT_PREFIX only, not also on AT_FDCWD.
15495 (openat_ro): Remove. Caller changed to use openat_permissive.
15496 (openat_permissive): Now a macro, if not a function.
15497 (openat_restore_fail, openat_save_fail): Now always functions,
15498 since mkdirat needs them even if __OPENAT_PREFIX is defined.
15500 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
15502 * lib/mkdirat.c: Include openat-priv.h.
15503 Remove definitions of macros defined therein.
15504 * lib/openat.c: Likewise.
15506 * lib/mkdirat.c (mkdirat): New file and function.
15507 * lib/openat.h (mkdirat): Declare.
15509 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
15511 * lib/openat.h (openat_permissive): Declare.
15512 (openat_ro): Define.
15514 * lib/openat.c (EXPECTED_ERRNO): New macro.
15515 (openat_permissive): New function -- used in remove.c rewrite.
15516 (all functions): Set errno just before returning, only if there
15517 was an actual failure.
15518 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
15520 Emulate openat-family functions using Linux's procfs, if possible.
15521 Idea and some code based on Ulrich Drepper's glibc changes.
15523 * lib/openat.c: (BUILD_PROC_NAME): New macro.
15524 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
15525 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
15526 before falling back on save_cwd and restore_cwd.
15527 (fdopendir, fstatat, unlinkat): Likewise.
15529 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
15530 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
15532 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
15533 as second argument to va_arg. Otherwise, some versions of gcc
15534 warn that `if this code is reached, the program will abort'.
15536 2006-01-09 Jim Meyering <jim@meyering.net>
15538 Sync from coreutils.
15539 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
15540 Require openat-priv.h.
15542 2006-01-09 Bruno Haible <bruno@clisp.org>
15544 * modules/strnlen (Include): Use strnlen.h.
15546 2006-01-09 Bruno Haible <bruno@clisp.org>
15548 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
15550 2006-01-09 Bruno Haible <bruno@clisp.org>
15552 * lib/sysexit_.h (EX_OK): New macro.
15553 Suggested by Martin Lambers <marlam@marlam.de>.
15555 2006-01-09 Bruno Haible <bruno@clisp.org>
15557 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
15558 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
15560 2006-01-09 Bruno Haible <bruno@clisp.org>
15562 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
15565 2006-01-09 Bruno Haible <bruno@clisp.org>
15567 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
15568 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
15569 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
15570 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
15572 2006-01-09 Bruno Haible <bruno@clisp.org>
15574 * build-aux/javacomp.sh.in: New file, moved from lib/.
15575 * modules/javacomp-script (Files): Update.
15576 (configure.ac): Add AC_CONFIG_FILES invocation.
15577 (EXTRA_DIST): Remove variable.
15579 * build-aux/javaexec.sh.in: New file, moved from lib/.
15580 * modules/javaexec (Files): Update.
15581 (configure.ac): Add AC_CONFIG_FILES invocation.
15582 (EXTRA_DIST): Remove javaexec.sh.in.
15584 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
15585 * modules/csharpcomp-script (Files): Update.
15586 (configure.ac): Add AC_CONFIG_FILES invocation.
15587 (EXTRA_DIST): Remove variable.
15589 * build-aux/csharpexec.sh.in: New file, moved from lib/.
15590 * modules/csharpexec (Files): Update.
15591 (configure.ac): Add AC_CONFIG_FILES invocation.
15592 (EXTRA_DIST): Remove csharpexec.sh.in.
15594 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
15596 Sync from coreutils.
15598 Add POSIX ACL support
15599 * lib/acl.h (copy_acl, set_acl): Add declarations.
15600 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
15601 systems other than Linux.
15602 (chmod_or_fchmod): New function: use fchmod when possible,
15603 and chmod otherwise.
15604 (file_has_acl): Add a POSIX ACL implementation, with a
15605 Linux-specific subcase.
15606 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
15607 S_ISVTX from one file to another. Fall back to fchmod/chmod when
15608 acls are unsupported.
15609 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
15610 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
15613 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
15615 Sync from coreutils.
15616 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
15618 2006-01-07 Bruno Haible <bruno@clisp.org>
15620 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
15623 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
15625 * lib/strftime.c (tzname): Don't declare if it is already #defined.
15626 Problem reported for Mingw by Mark Junker.
15628 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
15630 * README: Gnulib normally doesn't generate a tarball.
15632 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
15634 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
15635 long int, not int, for nanosecond counts, so that people who are
15636 used to POSIX struct timespec won't be surprised. Reported by Jim
15639 2005-12-28 Bruno Haible <bruno@clisp.org>
15641 * build-aux/config.rpath: Update from GNU gettext.
15643 2005-12-16 Jim Meyering <jim@meyering.net>
15645 * modules/fprintftime: New module.
15646 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
15648 2005-12-16 Jim Meyering <jim@meyering.net>
15650 * m4/fprintftime.m4: New file.
15652 2005-12-16 Jim Meyering <jim@meyering.net>
15654 * lib/fprintftime.c, lib/fprintftime.h: New files.
15656 2005-12-15 Simon Josefsson <jas@extundo.com>
15658 * modules/socklen (configure.ac): Fix M4 macro name, to align with
15661 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
15663 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
15664 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
15666 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
15668 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
15669 * lib/argp-help.c (fill_in_uparams): Check if the constructed
15670 struct uparams is valid. Fall back to the default values if it is
15673 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
15675 * modules/argp (Files): Add argp-pin.c
15676 (Depends-on): dirname
15677 (lib_SOURCES): Add argp-pin.c
15679 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
15681 * m4/argp.m4: Check if program_invocation_name and
15682 program_invocation_short_name are declared and define appropriate
15683 macros if they are not.
15685 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
15687 * lib/argp-help.c (__argp_base_name): New function
15688 (__argp_short_program_name): Rewrite using __argp_base_name
15689 * lib/argp-namefrob.h: Define program_invocation_name and
15690 program_invocation_short_name if requested
15691 (__argp_base_name): Add prototype
15692 * lib/argp-parse.c (argp_def): Use gettext wrappers
15693 (argp_default_parser): Use __argp_base_name
15694 * lib/argp-pin.c: New file. Defines program_invocation_name and
15695 program_invocation_short_name on systems that lack them.
15697 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
15699 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
15700 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15701 porting problem reported by Georg Schwarz in
15702 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15704 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
15706 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
15707 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
15708 porting problem reported by Georg Schwarz in
15709 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
15711 2005-12-05 Bruno Haible <bruno@clisp.org>
15713 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
15714 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
15715 Reported by Mark Junker <mjscod@gmx.de>.
15717 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
15719 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
15720 Use implementation from Albert Chin, with some
15721 comments/corrections by Stepan Kasal and myself.
15723 2005-12-02 Bruno Haible <bruno@clisp.org>
15725 * gnulib-tool (func_import): Accept GPLed build tool modules when
15727 * modules/csharpcomp-script: New file.
15728 * modules/csharpcomp: Depend on it.
15729 * modules/javacomp-script: New file.
15730 * modules/javacomp: Depend on it.
15731 Suggested by Simon Josefsson.
15733 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
15735 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
15736 statement, to work around an HP-UX 10.20 compiler bug reported by
15739 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
15741 * modules/savedir (Depends-on): Add openat.
15743 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
15745 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
15746 (uintmax_t) [defined uintmax_t]: Do not declare.
15747 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
15748 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
15749 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
15750 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
15751 sake of portability to weird hosts that C allows (though we don't
15752 know of any practical examples).
15754 * lib/savedir.h (fdsavedir): New decl.
15755 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
15756 contains most of the former guts of savedir.
15757 (savedir): Use savedirstream.
15758 Include "openat.h".
15760 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
15762 * modules/obstack (Files): Add m4/ulonglong.m4.
15763 Problem reported by Davide Angelocola.
15765 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
15767 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
15768 coreutils no longer futzes with rounding modes.
15770 2005-11-14 Jim Meyering <jim@meyering.net>
15772 * lib/mkstemp-safer.c: Include <config.h>, required for possible
15773 replacement of mkstemp.
15775 2005-11-10 Simon Josefsson <jas@extundo.com>
15777 * lib/readline.c: Remove EOL.
15779 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
15781 * modules/gethrxtime (Depends-on): Add gettime.
15783 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
15785 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
15786 or gettimeofday; no longer needed.
15788 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
15790 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
15792 (gethrxtime) [! (HAVE_NANOUPTIME
15793 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
15794 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
15795 our own approximation.
15797 2005-11-08 Eric Blake <ebb9@byu.net>
15799 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15801 2005-11-08 Eric Blake <ebb9@byu.net>
15803 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
15805 2005-11-04 Bruno Haible <bruno@clisp.org>
15807 * gnulib-tool: Implement --update mode.
15809 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
15811 Fix porting problem reported by Theodoros V. Kalamatianos.
15812 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
15813 Don't assume that futimes failing means we must fail.
15815 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
15817 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
15818 variables to suggest the intended function of the PATH_MAX check.
15820 2005-10-30 Kean Johnston <jkj@sco.com>
15822 Trivial changes to support SCO systems.
15823 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
15825 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
15826 where __ptr is null when no I/O is pending.
15828 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
15830 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
15831 leave errno alone. Problem reported by Dmitry V. Levin.
15833 2005-10-28 Simon Josefsson <jas@extundo.com>
15835 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
15838 * tests/test-gc-md2.c, tests/test-md2.c: New files.
15840 * modules/md2, modules/md2-tests: New files.
15842 2005-10-28 Simon Josefsson <jas@extundo.com>
15844 * m4/inet_ntop.m4: More tests.
15846 * m4/gc-md2.m4, md2.m4: New file.
15848 2005-10-28 Simon Josefsson <jas@extundo.com>
15850 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
15851 "restrict" keywords, as per POSIX. Protect the function
15852 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
15853 Don't use K&R prototypes. Check the sprintf return values.
15854 Re-define EAFNOSUPPORT if not present. Indent.
15856 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
15857 suggested by Bruno Haible <bruno@clisp.org>.
15859 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
15861 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
15863 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
15866 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
15868 * lib/md2.h, lib/md2.c: New files.
15870 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
15872 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
15873 errno alone. Problem reported by Frederic Jolliton.
15875 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
15877 * modules/verify (License): Change from GPL to LGPL. This is a
15878 tiny module and there are apparently near-equivalents that are
15879 under the BSD license.
15881 2005-10-24 Simon Josefsson <jas@extundo.com>
15883 * modules/sha1: Relicense to LGPL.
15885 2005-10-24 Simon Josefsson <jas@extundo.com>
15887 * lib/md4.h: Shrink buffer size, now that we changed the type.
15889 2005-10-23 Simon Josefsson <jas@extundo.com>
15891 * gnulib-tool (func_import): Fix --tests-base.
15893 2005-10-22 Simon Josefsson <jas@extundo.com>
15895 * modules/arcfour (Depends-on): Need stdint.
15897 2005-10-22 Simon Josefsson <jas@extundo.com>
15899 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
15900 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
15902 2005-10-22 Simon Josefsson <jas@extundo.com>
15904 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
15905 suggested by Bruno Haible <bruno@clisp.org>.
15907 2005-10-22 Simon Josefsson <jas@extundo.com>
15909 * lib/crc.h: Include stddef.h, for size_t.
15911 2005-10-22 Simon Josefsson <jas@extundo.com>
15913 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
15914 arcfour_context struct (simplify test vector testing in GNU
15917 2005-10-21 Simon Josefsson <jas@extundo.com>
15919 * modules/des, modules/des-tests: New files.
15921 * modules/gc-des, modules/gc-des-tests: New files.
15923 * tests/test-des.c, tests/test-gc-des.c: New file.
15925 2005-10-21 Simon Josefsson <jas@extundo.com>
15927 * modules/arctwo, modules/arctwo-tests: New files.
15929 * tests/test-arctwo.c: New file.
15931 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
15933 * tests/test-gc-arctwo.c: New file.
15935 2005-10-21 Simon Josefsson <jas@extundo.com>
15937 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
15938 Bruno Haible <bruno@clisp.org>.
15940 * m4/gc-des.m4: New file.
15942 2005-10-21 Simon Josefsson <jas@extundo.com>
15944 * m4/arctwo.m4: New file.
15946 * m4/gc-arctwo.m4: New file.
15948 2005-10-21 Simon Josefsson <jas@extundo.com>
15950 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
15953 2005-10-21 Simon Josefsson <jas@extundo.com>
15955 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
15958 * lib/hmac-sha1.c (hmac_sha1): Likewise.
15960 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
15961 Bruno Haible <bruno@clisp.org>.
15963 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
15966 2005-10-21 Simon Josefsson <jas@extundo.com>
15968 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
15970 2005-10-21 Simon Josefsson <jas@extundo.com>
15972 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
15974 2005-10-21 Simon Josefsson <jas@extundo.com>
15976 * lib/des.h, lib/des.c: New files.
15978 * lib/gc-gnulib.c: Support DES.c
15980 2005-10-21 Simon Josefsson <jas@extundo.com>
15982 * lib/arctwo.h, lib/arctwo.c: New files.
15984 * lib/gc-gnulib.c: Support ARCTWO.
15986 2005-10-21 Simon Josefsson <jas@extundo.com>
15988 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
15989 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15991 2005-10-21 Simon Josefsson <jas@extundo.com>
15993 * gnulib-tool (func_import, func_create_testdir): Define automake
15994 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
15995 Makefile.am snippet),
15996 suggested by Bruno Haible <bruno@clisp.org>.
15998 * modules/gc (Makefile.am): Use it.
16000 2005-10-21 Bruno Haible <bruno@clisp.org>
16002 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
16005 2005-10-19 Simon Josefsson <jas@extundo.com>
16007 * tests/test-gc-rijndael.c: New file.
16009 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
16011 2005-10-19 Simon Josefsson <jas@extundo.com>
16013 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
16016 2005-10-19 Simon Josefsson <jas@extundo.com>
16018 * tests/test-gc-arcfour.c: New file.
16020 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
16022 2005-10-19 Simon Josefsson <jas@extundo.com>
16024 * modules/gc-md4, modules/gc-md4-tests: New file.
16026 * tests/test-gc-md4.c: New file.
16028 2005-10-19 Simon Josefsson <jas@extundo.com>
16030 * m4/gc-md4.m4: New file.
16032 2005-10-19 Simon Josefsson <jas@extundo.com>
16034 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
16035 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
16038 2005-10-19 Simon Josefsson <jas@extundo.com>
16040 * m4/gc-arcfour.m4: New file.
16042 * m4/gc-rijndael.m4: New file.
16044 2005-10-19 Simon Josefsson <jas@extundo.com>
16046 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
16048 2005-10-19 Simon Josefsson <jas@extundo.com>
16050 * lib/gc-gnulib.c: Support ARCFOUR.
16052 2005-10-19 Simon Josefsson <jas@extundo.com>
16054 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
16057 * lib/gc.h: Add ECB enum type.
16059 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
16061 2005-10-18 Simon Josefsson <jas@extundo.com>
16063 * tests/test-md5.c: New file.
16065 * modules/md5-tests: New file.
16067 2005-10-18 Simon Josefsson <jas@extundo.com>
16069 * tests/test-md4.c: New file.
16071 * modules/md4, modules/md4-tests: New files.
16073 2005-10-18 Simon Josefsson <jas@extundo.com>
16075 * m4/md4.m4: New file.
16077 2005-10-18 Simon Josefsson <jas@extundo.com>
16079 * lib/md4.h, lib/md4.c: New files, based on md5.?.
16081 2005-10-17 Stepan Kasal <kasal@ucw.cz>
16083 * gnulib-tool (func_create_testdir): Omit the second check whether
16084 BUILT_SOURCES in nonempty.
16086 2005-10-17 Simon Josefsson <jas@extundo.com>
16088 * tests/test-rijndael.c: New file.
16090 2005-10-17 Simon Josefsson <jas@extundo.com>
16092 * modules/sha1: Depend on stdint instead of md5.
16094 * modules/md5: Depend on stdint, remove uint32_t.
16096 2005-10-17 Simon Josefsson <jas@extundo.com>
16098 * modules/gc-sha1-tests: New file.
16100 * tests/test-gc-sha1.c: New file.
16102 2005-10-17 Simon Josefsson <jas@extundo.com>
16104 * m4/md5.m4: Remove call to uint32_t.m4.
16106 2005-10-17 Simon Josefsson <jas@extundo.com>
16108 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
16110 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
16113 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
16115 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
16117 2005-10-17 Simon Josefsson <jas@extundo.com>
16119 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
16121 2005-10-17 Simon Josefsson <jas@extundo.com>
16123 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
16125 2005-10-17 Simon Josefsson <jas@extundo.com>
16127 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
16129 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
16131 2005-10-17 Bruno Haible <bruno@clisp.org>
16133 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
16134 that it can also be used in a test.
16136 2005-10-16 Bruno Haible <bruno@clisp.org>
16138 * gnulib-tool (func_emit_tests_Makefile_am): Also define
16139 TESTS_ENVIRONMENT, so that individual tests can augment it.
16141 * gnulib-tool (func_create_testdir): Use an intermediate target for
16142 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
16143 macros, like $(ALLOCA_H), which cannot be passed through the command
16146 2005-10-15 Simon Josefsson <jas@extundo.com>
16148 * modules/rijndael-tests: New file.
16150 * modules/rijndael: New file.
16152 2005-10-15 Simon Josefsson <jas@extundo.com>
16154 * m4/rijndael.m4: New file.
16156 2005-10-15 Simon Josefsson <jas@extundo.com>
16158 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
16160 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
16162 2005-10-14 Simon Josefsson <jas@extundo.com>
16164 * tests/test-arcfour.c: New file.
16166 * modules/arcfour, modules/arcfour-tests: New files.
16168 2005-10-14 Simon Josefsson <jas@extundo.com>
16170 * m4/arcfour.m4: New file.
16172 2005-10-14 Simon Josefsson <jas@extundo.com>
16174 * lib/arcfour.h, lib/arcfour.c: New files.
16176 2005-10-14 Roland McGrath <roland@redhat.com>
16178 Import from libc. [BZ #1331]
16179 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
16181 Reported by Matej Vela <vela@debian.org>.
16183 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
16185 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
16186 include <wchar.h>; no longer needed.
16188 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
16190 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
16192 2005-10-14 Jakub Jelinek <jakub@redhat.com>
16193 and Ulrich Drepper <drepper@redhat.com>
16196 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
16197 instead of inline stream orientation test and two separate
16198 function calls. Pay no attention to USE_IN_LIBIO.
16200 2005-10-13 Simon Josefsson <jas@extundo.com>
16202 * modules/gc-hmac-md5-tests: New file.
16204 * tests/test-gc-hmac-sha1.c: New file.
16206 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
16208 * modules/gc-hmac-md5-tests: New file.
16210 * tests/test-gc-md5.c: New file.
16212 * modules/gc-md5-tests: New file.
16214 2005-10-13 Simon Josefsson <jas@extundo.com>
16216 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
16217 Move memory allocation outside of loop.
16219 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
16221 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
16222 intermediate directory is in a read-only file system. Problem
16223 reported by Eric Blake.
16225 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
16227 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
16229 2005-10-12 Simon Josefsson <jas@extundo.com>
16231 * tests/test-hmac-sha1.c: New file.
16233 * modules/hmac-sha1-tests: New file.
16235 * modules/hmac-sha1: New file.
16237 2005-10-12 Simon Josefsson <jas@extundo.com>
16239 * modules/gc-sha1: New file.
16241 2005-10-12 Simon Josefsson <jas@extundo.com>
16243 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
16245 * tests/test-gc-pbkdf2-sha1.c: New file.
16247 2005-10-12 Simon Josefsson <jas@extundo.com>
16249 * modules/gc-md5, modules/gc-hmac-md5: New files.
16251 * modules/gc (Files): Remove md5, memxor and hmac files.
16253 2005-10-12 Simon Josefsson <jas@extundo.com>
16255 * m4/gc-pbkdf2-sha1.m4: New file.
16257 * m4/gc-hmac-sha1.m4: New file.
16259 * m4/gc-sha1: New file.
16261 * m4/hmac-sha1.m4: New file.
16263 2005-10-12 Simon Josefsson <jas@extundo.com>
16265 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
16267 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
16269 2005-10-12 Simon Josefsson <jas@extundo.com>
16271 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
16272 suggested by Bruno Haible <bruno@clisp.org>.
16274 2005-10-12 Simon Josefsson <jas@extundo.com>
16276 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
16278 2005-10-12 Simon Josefsson <jas@extundo.com>
16280 * lib/gc-pbkdf2-sha1.c: New file.
16282 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
16284 2005-10-12 Simon Josefsson <jas@extundo.com>
16286 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
16288 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
16290 2005-10-12 Simon Josefsson <jas@extundo.com>
16292 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
16293 GC_USE_HMAC_MD5, respectively.
16295 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
16296 (gc_md5): Fix typo.
16298 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
16300 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
16302 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
16304 2005-10-12 Bruno Haible <bruno@clisp.org>
16306 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
16307 Reported by Stepan Kasal <kasal@ucw.cz>.
16309 2005-10-11 Simon Josefsson <jas@extundo.com>
16311 * tests/test-crc.c: New file.
16313 * modules/crc, modules/crc-tests: New files.
16315 2005-10-11 Simon Josefsson <jas@extundo.com>
16317 * m4/crc.m4: New file.
16319 2005-10-11 Simon Josefsson <jas@extundo.com>
16321 * lib/gc.h: Add gc_hash and gc_hash_buffer.
16323 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
16325 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
16327 2005-10-11 Simon Josefsson <jas@extundo.com>
16329 * lib/crc.h, lib/crc.c: New files.
16331 * lib/gc.h (gc_hash_buffer): Add doc.
16333 2005-10-11 Bruno Haible <bruno@clisp.org>
16335 * modules/c-strcasestr: New file.
16336 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
16338 2005-10-11 Bruno Haible <bruno@clisp.org>
16340 * modules/c-strcase: New file.
16341 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
16343 2005-10-11 Bruno Haible <bruno@clisp.org>
16345 * lib/strcasecmp.c: Include limits.h.
16346 (strcasecmp): Avoid integer overflow on exotic platforms.
16347 * lib/strncasecmp.c: Include limits.h.
16348 (strncasecmp): Avoid integer overflow on exotic platforms.
16349 Reported by Paul Eggert.
16351 2005-10-11 Bruno Haible <bruno@clisp.org>
16353 * lib/c-strcasestr.h: New file, from GNU gettext.
16354 * lib/c-strcasestr.c: New file, from GNU gettext.
16356 2005-10-11 Bruno Haible <bruno@clisp.org>
16358 * lib/c-strcase.h: New file, from GNU gettext.
16359 * lib/c-strcasecmp.c: New file, from GNU gettext.
16360 * lib/c-strncasecmp.c: New file, from GNU gettext.
16362 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
16364 * modules/mempcpy (License): GPL -> LGPL.
16365 * modules/strchrnul (License): Likewise.
16366 * modules/sysexits (License): Likewise.
16368 2005-10-08 Simon Josefsson <jas@extundo.com>
16370 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
16372 2005-10-07 Simon Josefsson <jas@extundo.com>
16374 * m4/memxor.m4: Remove gl_C_RESTRICT call.
16376 2005-10-06 Simon Josefsson <jas@extundo.com>
16378 * tests/test-hmac-md5.c: New file.
16380 * modules/hmac-md5-tests: New file.
16382 * modules/hmac-md5: New file.
16384 2005-10-06 Simon Josefsson <jas@extundo.com>
16386 * m4/hmac-md5.m4: New file.
16388 * m4/memxor.m4: Require gl_C_RESTRICT.
16390 2005-10-06 Simon Josefsson <jas@extundo.com>
16392 * lib/memxor.c (memxor): Avoid casts and warnings.
16394 2005-10-06 Simon Josefsson <jas@extundo.com>
16396 * lib/hmac-md5.c: New file.
16398 * lib/hmac.h: New file.
16400 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
16402 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
16403 promotes to int, not unsigned int, to catch the AIX 5.3
16406 2005-10-05 Simon Josefsson <jas@extundo.com>
16408 * modules/memxor: New file.
16410 * modules/iconv (Files): Move config.rpath to havelib, it is used
16413 * modules/havelib (Files): Add config.rpath.
16415 2005-10-05 Simon Josefsson <jas@extundo.com>
16417 * m4/memxor.m4: New file.
16419 2005-10-05 Simon Josefsson <jas@extundo.com>
16421 * lib/memxor.c (memxor): Fix compiler error.
16423 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
16424 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
16426 * lib/memxor.h, lib/memxor.c: New files.
16428 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
16429 we assume all systems have it, suggested by Jim Meyering
16430 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
16431 any systems lack sys/socket.h; mingw32 is known to lack it, but we
16432 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
16435 2005-10-05 Simon Josefsson <jas@extundo.com>
16437 * config/srclist.txt: Add glibc bug 1423 for md5.h.
16439 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
16441 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
16442 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
16443 needed, since the source code now assumes these .h files.
16445 2005-10-05 Derek Price <derek@ximbiot.com>
16447 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
16449 2005-10-05 Bruno Haible <bruno@clisp.org>
16451 * modules/stdint (License): Change to LGPL.
16453 2005-10-04 Simon Josefsson <jas@extundo.com>
16455 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
16456 D. Baushke" <mdb@gnu.org>.
16458 2005-10-04 Bruno Haible <bruno@clisp.org>
16460 * lib/verify.h (verify_true): Provide alternative definition for C++.
16462 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
16464 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
16465 (SSIZE_MAX): New macro, if not already defined.
16466 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
16469 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
16471 Sync from coreutils.
16472 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
16473 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
16474 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
16475 ULLONG_MAX doesn't work with 2.7.2.1.
16477 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
16479 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
16482 * modules/exclude (Depends-on): Depend on verify.
16483 * modules/strtoimax (Depends-on): Likewise.
16484 * modules/utimecmp (Depends-on): Likewise.
16486 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
16488 * lib/exclude.c: Include verify.h.
16489 (verify): Remove. All callers changed to use verify.h's version.
16490 * lib/strtoimax.c: Likewise.
16491 * lib/utimecmp.c: Likewis.e
16493 Sync from coreutils.
16494 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
16495 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
16496 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
16497 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
16498 bother returning ENOSYS if settimeofday or stime fails; just let
16499 them return whatever errno they want to return.
16500 * lib/utimens.c: Include unistd.h, for dup2.
16501 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
16502 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
16504 2005-10-02 Jim Meyering <jim@meyering.net>
16506 Sync from coreutils.
16507 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
16508 from glibc-2.2.5 that fails for read-only files.
16510 2005-10-02 Jim Meyering <jim@meyering.net>
16512 Sync from coreutils.
16513 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
16514 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
16515 `#if HAVE_CONFIG_H'.
16516 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
16517 Remove AT_FDCWD test.
16518 Do not consume the fd unless successful.
16519 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
16520 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
16521 block, so that we don't even try to compile it if settimeofday is
16522 available. This works around a compilation failure on OSF1 V5.1,
16523 due to stime requiring a `long int*' while tv_sec is `int'.
16525 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
16527 Sync from coreutils.
16528 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
16529 against `yes', rather than just testing for nonempty.
16531 2005-10-01 Simon Josefsson <jas@extundo.com>
16533 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
16536 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
16537 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
16538 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
16539 freeaddrinfo and gai_strerror are declared by the POSIX headers.
16540 Check if struct addrinfo is declared.
16542 2005-10-01 Simon Josefsson <jas@extundo.com>
16544 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
16545 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
16546 AI_* and EAI_* definitions. Protect function declarations.
16548 2005-10-01 Jim Meyering <jim@meyering.net>
16550 Sync from coreutils.
16552 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
16553 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
16554 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
16555 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16556 in the inet and nsl libraries. Required on Solaris 5.7.
16558 2005-10-01 Jim Meyering <jim@meyering.net>
16560 Sync from coreutils.
16561 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
16562 in the inet and nsl libraries. Required on Solaris 5.7.
16564 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
16566 * lib/getdelim.c (getdelim): Remove unused variables.
16568 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
16570 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
16571 so that the code works even with ancient cpp. Portability problem
16572 with GCC 2.7.2.1 reported by Thomas M.Ott.
16574 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
16576 * modules/regex (Depends-on): Add strcase.
16578 * modules/gethostname (Licence): Change from GPL to LGPL, since
16579 gethostname.c is a trivial implementation of a standard library
16581 * modules/poll (License): Change from GPL to LGPL, since it's
16582 derived from LGPL code.
16584 2005-09-27 Jim Meyering <jim@meyering.net>
16586 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
16589 * lib/intprops.h (signed_type_or_expr__): Define.
16590 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
16591 for unsigned types.
16593 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
16595 * lib/verify.h (verify_expr): Remove, replacing with:
16596 (verify_true): New macro that returns true instead of void.
16597 (verify_type__): Remove.
16598 (verify): Use verify_true rather than verify_type__.
16600 2005-09-26 Bruno Haible <bruno@clisp.org>
16602 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
16604 (lib_SOURCES): Remove mbchar.c.
16605 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
16606 (Files): Add m4/mbrtowc.m4.
16607 * modules/mbiter: Likewise.
16608 * modules/mbuiter: Likewise.
16610 2005-09-26 Bruno Haible <bruno@clisp.org>
16612 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
16613 compile mbchar.c if they are not both present.
16614 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
16615 * m4/mbiter.m4 (gl_MBITER): Likewise.
16616 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
16617 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
16618 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
16620 2005-09-25 Jim Meyering <jim@meyering.net>
16622 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
16623 also uses socklen_t.
16625 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
16627 * lib/utimens.c (ENOSYS): Define if not already defined.
16628 (futimens): Support having a null PATH if the file descriptor
16631 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
16633 (__attribute): Define to empty unless GCC 3.1 or later.
16634 This works around a core dump on OpenBSD 3.4, which has GCC
16635 2.95.3, which dumps core when given __attribute__(()). It also
16636 simplifies other tests, since we really don't want to bother with
16637 worrying about which ancient version of GCC supported what.
16638 Original problem reported by Yoann Vandoorselaere, with part of
16639 the fix suggested by Derek Price.
16641 2005-09-24 Jim Meyering <jim@meyering.net>
16643 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
16644 so we can once again use a positive bitfield width of 1 -- now we
16645 don't have to explain why we were using a bitfield width of 2.
16647 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
16649 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
16650 and similarly for the other external symbols. Problem reported
16653 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
16654 bug reported by Jim Meyering.
16656 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
16657 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
16658 not needed, since socklen is a prerequisite module.
16660 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
16662 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
16663 Problem reported by Eric Blake.
16664 (getaddrinfo): Initialize se so that it's not garbage.
16665 Redo internal storage allocation so that it doesn't make unportable
16666 assumptions about alignment.
16669 * lib/utimens.c (futimens): Use futimesat if available.
16670 Prefer it to futimes since it doesn't have the futimes bug.
16672 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
16673 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
16674 Instead, declare a function that returns a pointer to an array,
16675 and use verify_type__ to declare the size of the array.
16676 Problem and germ of a solution reported by Bruno Haible.
16677 (verify_type__): Use 2, not 1, for bitfield size, to avoid
16678 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
16680 2005-09-23 Jim Meyering <jim@meyering.net>
16682 Sync from coreutils.
16683 Correct build failure (socklen_t not defined) on at least
16684 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
16685 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
16687 2005-09-23 Jim Meyering <jim@meyering.net>
16689 * modules/getaddrinfo (Depends-on): Add socklen.
16691 2005-09-23 Bruno Haible <bruno@clisp.org>
16693 * tests/test-verify.c: New file.
16695 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
16697 Sync from coreutils.
16699 * modules/argmatch (Depends-on): Add verify.
16700 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
16702 * modules/save-cwd (Depends-on): Likewise.
16704 * modules/openat (Files): Add lib/openat-die.c.
16705 (Depends-on): Remove error, exitfail.
16708 * modules/verify: New file.
16709 * MODULES.html.sh (Diagnostics <assert.h>): New section,
16710 with "verify" module.
16712 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
16714 Sync from coreutils.
16716 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
16717 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
16718 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
16719 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
16720 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
16721 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
16722 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
16723 Don't bother checking for string.h, stdlib.h, unistd.h.
16724 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
16725 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
16727 * m4/jm-macros.m4 (gl_MACROS): Likewise.
16728 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
16730 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
16731 (gl_GETDATE): Use it.
16733 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
16735 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
16737 Sync from coreutils.
16739 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
16741 * lib/argmatch.h: Include verify.h
16742 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
16743 (ARGMATCH_ASSERT): Remove; unused.
16744 * lib/canonicalize.c: Assume STDC_HEADERS.
16745 * lib/exclude.c: Include "strcase.h".
16746 * lib/regex_internal.h [!defined _LIBC]: Likewise.
16747 * lib/getusershell.c: Include stdio--.h rather than stdio.h
16749 (getusershell): Call fopen, not fopen_safer.
16750 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
16751 Do not include unistd-safer.h.
16752 (save_cwd): Don't call fd_safer; no longer needed
16753 now that we include fcntl--.h.
16755 * lib/getdate.y (relative_time): New type.
16756 (RELATIVE_TIME_0): New constant.
16757 (parser_control): Use relative_time instead of doing it ourselves.
16758 (%union): Add new relative_time rel member.
16759 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
16761 (relunit, relunit_snumber): Now of type rel.
16762 (zone, rel, relunit, get_date): Adjust to above changes.
16764 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
16765 Do not include unistd-safer.h.
16766 (getloadavg): Don't call fd_safer; no longer needed
16767 now that we include fcntl--.h.
16769 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
16770 (make_dir_parents): Treat ENOSYS like EEXIST.
16772 Improve quality of diagnostics on restore_cwd failure.
16773 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
16774 (make_dir_parents): Last arg is now int * (for errno), not bool *.
16775 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
16776 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
16777 each time through the loop. Do not diagnose restore_cwd failure;
16778 that is the caller's job (and perhaps the caller does not care).
16780 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
16781 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
16782 If the file already exists but is not a directory, don't bother
16783 to try to make its parents.
16784 Close potential file descriptor leak if we can't chdir("/") (!).
16785 Don't always return true if chdir($PWD) fails; return true only
16786 if the requested action was done successfully (except for the
16788 Don't log final directory unless we actually made it.
16789 Refactor to avoid duplicate code to fix up permissions.
16790 Don't attempt to fix up parent permissions if chdir($PWD) fails.
16792 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
16793 to make it a bit faster and (I hope) clearer.
16794 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
16795 Fix bug in formats like %2N.
16797 * lib/verify.h: New file.
16799 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
16801 Sync from coreutils.
16802 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
16804 2005-09-22 Jim Meyering <jim@meyering.net>
16806 Sync from coreutils.
16808 * m4/lstat.m4 (gl_FUNC_LSTAT):
16809 Use AC_LIBSOURCES to require lstat.c and lstat.h.
16810 Remove obsolete comment.
16811 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
16812 * m4/xstrtod.m4: Likewise.
16814 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
16816 2005-09-22 Jim Meyering <jim@meyering.net>
16818 Sync from coreutils.
16820 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
16822 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
16823 the .tm_year member, since otherwise gcc-4.0 would now warn about
16824 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
16826 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
16827 order to avoid an unsuppressible warning from gcc on 64-bit systems.
16829 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
16830 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
16831 when run in a time zone for which daylight savings time is in effect
16832 for the starting date.
16834 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
16835 stop us from restricting permissions of just-created absolute-named
16837 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
16838 to restore initial working directory.
16839 * lib/mkdir-p.c (make_dir_parents): New parameter:
16840 different_working_dir, to tell caller if/when we change the working
16841 directory and are unable to return to the initial one.
16842 * lib/mkdir-p.h (make_dir_parents): Update prototype.
16843 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
16844 `return false'. This fixes a bug introduced on 2004-07-30.
16846 * lib/openat.c (fdopendir): Be sure to close the supplied
16847 file descriptor before returning. This makes our replacement
16848 implementation a little closer to Solaris's, where fdopendir
16849 ties the file descriptor to the returned DIR* pointer.
16850 * lib/openat.c (unlinkat): New function.
16851 * lib/openat.h (unlinkat): Add prototype.
16852 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
16853 (openat_restore_fail): Rename from openat_restore_die.
16854 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
16856 Provide an alternative to exiting immediately upon save_cwd or
16857 restore_cwd failure. Now, an application can arrange e.g.,
16858 to perform a longjump in that case.
16859 * lib/openat.c: Include dirname.h.
16860 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
16861 (rpl_openat, fdopendir, fstatat): Call openat_save_die
16862 and openat_restore_die rather than calling error directly.
16863 Don't include "error.h" or "exitfail.h"; they're no longer needed.
16865 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
16866 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
16869 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
16870 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
16871 int utc, int nanoseconds);
16873 date should not have to allocate a megabyte of virtual memory to
16874 handle a format argument like +%1048575T. When implemented with
16875 strftime, it must allocate such a buffer, use strftime to fill it
16876 in, print it, then free it.
16877 With fprintftime, it simply prints everything and exits.
16878 With no need for memory allocation, that's one fewer way to fail.
16879 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
16880 optional field width, not before, so we accept %9:z, not %:9z.
16881 (my_strftime): Be sure to use L_('x') for literals.
16883 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
16884 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
16885 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
16886 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
16887 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
16888 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
16889 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
16890 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
16891 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
16892 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
16893 * lib/xgethostname.c, lib/xreadlink.c:
16894 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
16896 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
16897 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
16898 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
16899 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
16900 and don't include <sys/file.h>).
16902 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
16904 Sync from coreutils.
16906 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
16907 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
16908 [!LDAV_DONE]: Avoid unused variable warning.
16910 2005-09-21 Bruno Haible <bruno@clisp.org>
16912 * lib/unicodeio.h (unicode_to_mb): New declaration.
16914 2005-09-20 Derek Price <derek@ximbiot.com>
16916 * lib/getaddrinfo.c: Don't include <netdb.h> included from
16919 2005-09-20 Bruno Haible <bruno@clisp.org>
16921 * gnulib-tool: Remove trailing slashes from the values specified for
16922 --source-base, --m4-base, --tests-base, --aux-dir.
16923 Suggested by Simon Josefsson <jas@extundo.com>.
16925 2005-09-20 Bruno Haible <bruno@clisp.org>
16927 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
16928 func_modules_to_filelist, func_import, func_create_testdir): Make all
16929 sorting results locale-independent, so that gnulib-cache.m4 doesn't
16930 change when gnulib-tool is invoked in a different locale.
16932 2005-09-19 Simon Josefsson <jas@extundo.com>
16934 * m4/socklen.m4: Fix typo.
16936 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16938 Use a consistent style for including <config.h>.
16939 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
16940 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
16941 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
16942 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
16943 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
16944 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
16945 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
16946 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
16947 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
16948 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
16949 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
16950 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
16951 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
16952 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
16953 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
16954 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
16955 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
16956 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
16957 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
16958 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
16959 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
16960 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
16961 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
16962 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
16963 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
16964 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
16965 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
16966 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
16967 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
16968 lib/xstrtoumax.c, lib/yesno.c:
16969 Standardize inclusion of config.h.
16970 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
16971 lib/inttostr.h: Removed inclusion of config.h from header files.
16972 * lib/inttostr.c: Adjusted in-tree users.
16973 * lib/timespec.h: Remove superfluous warning to include config.h.
16974 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
16975 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
16976 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
16977 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
16978 config.h with HAVE_CONFIG_H.
16980 2005-09-19 Jim Meyering <jim@meyering.net>
16982 * modules/pathmax (License): Change to LGPL.
16984 2005-09-19 Derek Price <derek@ximbiot.com>
16986 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
16988 2005-09-19 Bruno Haible <bruno@clisp.org>
16990 * gnulib-tool (import): Provide default for --tests-base.
16992 2005-09-19 Bruno Haible <bruno@clisp.org>
16994 * doc/quote.texi: New file, extracted from gnulib.texi.
16995 * doc/ctime.texi: New file, extracted from gnulib.texi.
16996 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
16997 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
16998 * doc/gnulib.texi: Include them.
17000 2005-09-18 Bruno Haible <bruno@clisp.org>
17003 * gnulib-tool (func_readlink): New function.
17004 (func_ln_if_changed): Use it.
17006 2005-09-18 Bruno Haible <bruno@clisp.org>
17008 * gnulib-tool: Support --with-tests also with --import.
17009 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
17010 (func_import): Use variables $testsbase and $inctests. Emit a
17011 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
17012 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
17013 SUBDIRS += $testsdir.
17014 (func_create_testdir): Update.
17016 2005-09-18 Bruno Haible <bruno@clisp.org>
17018 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
17019 instead of $dry_run.
17020 (func_cp_if_changed, func_mv_if_changed): Remove functions.
17021 (func_ln_if_changed): Don't handle dry-run here.
17022 (func_import): In dry-run mode, detect more precisely which actions
17023 would be performed, and don't use "...ing" verbs.
17025 2005-09-18 Bruno Haible <bruno@clisp.org>
17027 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
17028 (func_import): Use join on two temporary files instead of three nested
17029 loops, in order to determine which files are new or old.
17031 2005-09-18 Bruno Haible <bruno@clisp.org>
17033 * gnulib-tool (func_import): Comment out code that spits out the
17034 new files with --dry-run.
17036 2005-09-18 Bruno Haible <bruno@clisp.org>
17038 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
17040 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17042 * lib/stat-time.h: New file.
17043 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
17044 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
17045 in a different way.
17046 (timespec_cmp): New function.
17047 * lib/utimecmp.c: Include stat-time.h.
17048 (SYSCALL_RESOLUTION): Depend on whether various struct stat
17049 members exist, not on the obsolescent ST_MTIM_NSEC.
17050 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
17052 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17054 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
17056 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
17058 * MODULES.html.sh (File system functions): Add stat-time.
17059 * modules/stat-time: New file.
17060 * modules/timespec (Files): Remove m4/st_mtim.m4; this
17061 is now done in a different way, by the stat-time module.
17062 * modules/utimecmp (Depends-on): Add stat-time.
17064 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
17066 * m4/st_mtim.m4: Remove. Superseded by...
17067 * m4/stat-time.m4: New file.
17068 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
17069 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
17071 2005-09-15 Derek Price <derek@ximbiot.com>
17073 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
17075 2005-09-15 Derek Price <derek@ximbiot.com>
17077 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
17078 * lib/regex_internal.c: Ditto, using this...
17079 (__GNUC_PREREQ): ...new macro.
17080 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
17082 (__GNUC_PREREQ): ...this new macro.
17084 * lib/strstr.h: Include string.h. Define strstr as a macro here.
17086 2005-09-15 Derek Price <derek@ximbiot.com>
17087 Paul Eggert <eggert@cs.ucla.edu>
17089 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
17090 changes, consolidating in...
17091 * lib/regex_internal.h: ...this file.
17093 2005-09-13 Jim Meyering <jim@meyering.net>
17095 * lib/canon-host.c: Filter through gnu indent and reword comments
17097 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
17099 2005-09-13 Derek Price <derek@ximbiot.com>
17101 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
17103 Reported by Jim Meyering <jim@meyering.net>.
17105 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
17107 * lib/base64.c: Typo.
17108 (base64_encode): Put b64str in initialized data section.
17110 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
17112 Merge glibc and coreutils changes into gnulib, plus a few
17114 * lib/md5.c: Use #error rather than a string.
17115 (CYCLIC): New macro, from glibc source. Use it instead of rol.
17116 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
17117 (__attribute__): Define to empty for non recent-GCC.
17118 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
17119 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
17120 Renamed from their non-__ counterparts, with new macros replacing
17121 them if not _LIBC. Add __THROW attribute.
17123 (struct md5_ctx): Align buffer if using GCC.
17124 * lib/sha1.h (struct sha1_ctx): Likewise.
17125 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
17126 The old name was backwards.
17127 (NOTSWAP): Remove; not used.
17128 (rol): New macro, moved here from md5.h.
17129 (sha1_process_block): Remove a FIXME that doesn't make sense.
17131 2005-09-12 Derek Price <derek@ximbiot.com>
17133 Return usable errors from canon-host.
17134 * lib/canon-host.h: New file.
17135 * lib/canon-host.c (canon_host): Wrap...
17136 (canon_host_r): ...this new function, which now relies exclusively on
17138 (ch_strerror): New function.
17139 (last_cherror): New global.
17140 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
17142 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
17144 (freeaddrinfo): Free ai->ai_canonname when set.
17146 2005-09-12 Derek Price <derek@ximbiot.com>
17148 Make canon-host require getaddrinfo.
17149 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
17150 AC_LIBSOURCE canon-host.h. Call...
17151 (gl_PREREQ_CANON_HOST): ...this new function, which requires
17153 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
17155 2005-09-12 Derek Price <derek@ximbiot.com>
17157 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
17159 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
17161 2005-09-12 Derek Price <derek@ximbiot.com>
17163 * lib/gai_strerror.c: Include config.h when available. Include
17164 getaddrinfo.h before other headers to test interface.
17165 Reported by Larry Jones <lawrence.jones@ugs.com>.
17167 2005-09-12 Derek Price <derek@ximbiot.com>
17168 Paul Eggert <eggert@cs.ucla.edu>
17170 * modules/glob (Files): Add glob-libc.h.
17172 2005-09-12 Derek Price <derek@ximbiot.com>
17173 Paul Eggert <eggert@cs.ucla.edu>
17175 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
17176 glob_.h, glob-libc.h.
17177 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
17179 2005-09-12 Derek Price <derek@ximbiot.com>
17180 Paul Eggert <eggert@cs.ucla.edu>
17182 * lib/glob-libc.h: Renamed from glob_.h. The new version is
17183 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
17184 protecting things that should be done only in gnulib contexts.
17185 * lib/glob_.h: New file, containing only the glob things needed for
17187 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
17188 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
17189 (glob, globfree, glob_pattern_p): Now defined simply in terms of
17190 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
17191 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
17192 and to respect the namespace rules better.
17194 2005-09-08 Simon Josefsson <jas@extundo.com>
17196 * modules/socklen: New file.
17198 2005-09-08 Simon Josefsson <jas@extundo.com>
17200 * m4/socklen.m4: New file.
17202 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17204 * modules/utimens (Files): Add m4/utimbuf.m4, since
17205 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
17206 Reported by Sergey Poznyakoff.
17208 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17210 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
17211 definitions, since that's the preferred style in glibc.
17212 Fix a minor spacing issue, and update copyright notice to match
17215 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
17217 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
17219 2005-09-06 Simon Josefsson <jas@extundo.com>
17221 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
17222 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
17224 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
17226 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
17229 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
17231 * config/srclist.txt: Add glibc bug 1302.
17233 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
17235 Change bitset word type from unsigned int to unsigned long int,
17236 as this has better performance on typical 64-bit hosts.
17237 Port bitset code to hosts with unusual word sizes.
17238 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
17239 (build_collating_symbol):
17240 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
17241 argument is a bitset. This is merely a style issue, but it makes
17242 it clearer that an entire array is expected.
17243 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
17244 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
17245 Port to the case where bitset_word is not the same as unsigned int.
17246 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17247 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
17249 * lib/regexec.c (check_dst_limits_calc_pos_1,
17250 check_subexp_matching_top):
17251 (build_trtable, group_nodes_into_DFAstates):
17253 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
17254 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
17255 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
17256 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
17257 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
17258 * lib/regcomp.c (optimize_subexps, lower_subexp):
17259 Work even if bitset_word has holes in its bitwise representation.
17260 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
17261 * lib/regexec.c (check_dst_limits_calc_pos_1,
17262 check_subexp_matching_top):
17264 * lib/regex_internal.c (re_string_reconstruct):
17265 Don't assume UCHAR_MAX == 255.
17266 * lib/regex_internal.h (bitset_set_all): Likewise.
17267 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
17269 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
17270 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
17272 (BITSET_WORD_MAX): New macro.
17273 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
17274 (bitset_set_all, bitset_copy): Now inline functions, not macros.
17275 (bitset_empty, bitset_copy):
17276 Prefer sizeof (bitset) to multiplying it out ourselves.
17277 (bitset_not_merge): Remove; unused.
17278 (bitset_contain): Return bool, not unsigned int with one bit on.
17279 All callers changed.
17280 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
17281 alignment than re_node_set; do this by defining a new internal
17282 type struct dests_alloc and using it to allocate memory.
17284 2005-09-05 Bruno Haible <bruno@clisp.org>
17286 * gnulib-tool (func_import): Fix comparison in handling of symbolic
17289 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
17291 * modules/size_max (Makefile.am): Add size_max.h
17293 2005-09-04 Derek Price <derek@ximbiot.com>
17295 * gnulib-tool (func_import): Fix reversed $symbolic logic.
17297 2005-09-03 Simon Josefsson <jas@extundo.com>
17299 * gnulib-tool: Fix typo.
17301 2005-09-03 Simon Josefsson <jas@extundo.com>
17303 * config/srclist.txt: Add glibc bug 1293.
17305 2005-09-03 Derek Price <derek@ximbiot.com>
17307 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
17308 From Larry Jones <lawrence.jones@ugs.com>.
17310 2005-09-02 Simon Josefsson <jas@extundo.com>
17312 * modules/socklen: New file.
17314 2005-09-02 Simon Josefsson <jas@extundo.com>
17316 * modules/havelib: New module.
17318 * modules/gettext, modules/iconv, modules/lock, modules/readline:
17321 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
17323 Check for arithmetic overflow when calculating sizes, to prevent
17324 some buffer-overflow issues. These patches are conservative, in the
17325 sense that when I couldn't determine whether an overflow was possible,
17326 I inserted a run-time check.
17327 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
17329 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
17330 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
17331 (re_xnrealloc, re_x2nrealloc): New inline functions.
17332 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
17333 parse_bracket_exp):
17334 (build_equiv_class, build_charclass): Check for arithmetic overflow
17335 in size expression calculations.
17336 * lib/regex_internal.c (re_string_realloc_buffers):
17337 (build_wcs_upper_buffer, re_node_set_add_intersect):
17338 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
17339 (re_dfa_add_node, register_state): Likewise.
17340 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
17341 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
17342 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
17343 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
17345 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
17347 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
17348 m4/ulonglong.m4. Problem reported by Martin Lambers.
17350 2005-09-02 Bruno Haible <bruno@clisp.org>
17352 Support for lib vs. lib64 distinction on biarch platforms.
17353 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
17354 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
17355 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
17357 2005-09-02 Bruno Haible <bruno@clisp.org>
17359 * gnulib-tool (import): In the other first-use case, provide defaults
17362 2005-09-02 Bruno Haible <bruno@clisp.org>
17364 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
17365 patches not yet found in the latest gettext release.
17367 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
17369 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
17370 to avoid a collision with bits/local_lim.h in glibc.
17371 All uses changed. Problem reported by Dmitry V. Levin in
17372 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
17374 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
17375 bugs in int versus size_t comparisons.
17376 (re_string_context_at): Fix bug where the code assumed that
17379 Use bool where appropriate.
17380 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
17381 All callers changed.
17382 (calc_eclosure_iter): Likewise, for ROOT arg.
17383 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
17384 (build_charclass_op): Likewise, for NON_MATCH arg.
17385 * lib/regex_internal.c (re_string_allocate, re_string_construct):
17386 (re_string_construct_common): Likewise, for ICASE arg.
17387 * lib/regexec.c (re_search_2_stub, re_search_stub):
17388 Likewise, for RET_LEN arg.
17389 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
17390 (set_regs): Likewise, for FL_BACKTRACK arg.
17391 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
17392 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
17393 (calc_eclosure_iter, parse_bracket_exp):
17394 Use bool for internal variables that are booleans.
17395 * lib/regexec.c (re_search_internal, check_matching,
17396 proceed_next_node):
17397 (set_regs, build_sifted_states, sift_states_bkref):
17398 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
17399 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
17400 (find_collation_sequence_value):
17402 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
17403 (re_node_set_compare):
17404 Return bool, not int. All callers changed.
17405 * lib/regexec.c (check_halt_node_context, check_dst_limits):
17406 (build_trtable, check_node_accept): Likewise.
17407 * lib/regex_internal.h: Include stdbool.h.
17409 Fix bugs uncovered when converting to bool.
17410 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
17411 failure instead of charging ahead blindly.
17412 * lib/regex_internal.c (register_state): Likewise.
17413 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
17414 for freeing internal storage.
17415 (group_nodes_into_DFA_states): Use unsigned int, not int, for
17416 bitset pieces used as boolean, to avoid undefined behavior
17417 on hosts that do int overflow checking.
17419 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
17421 * config/srclist.txt: Add glibc bugs 1285-1287.
17423 2005-09-01 Jim Meyering <jim@meyering.net>
17425 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
17426 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
17427 Require gl_STAT_MACROS, too.
17429 2005-09-01 Bruno Haible <bruno@clisp.org>
17431 * gnulib-tool (import): In the first-use case, provide defaults.
17433 2005-09-01 Bruno Haible <bruno@clisp.org>
17435 * gnulib-tool (func_import): Remove the .tmp files.
17437 2005-09-01 Bruno Haible <bruno@clisp.org>
17439 * gnulib-tool (func_import): Fix handling of symbolic links.
17441 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
17443 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
17444 old glibc regex code mishandles strings longer than 2**31 bytes.
17445 This patch fixes this when the regex code is used in gnulib
17446 (i.e., outside glibc).
17448 This patch should not affect the use of the regex code inside
17449 glibc. No doubt this problem also needs to be handled for glibc
17450 as well, but the result will be an incompatible change to the
17451 glibc ABI, and the old ABI will have to be supported too. That
17452 can be the the subject for another patch.
17454 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
17455 governing whether the rest of this patch is active. By default,
17456 the macro is disabled and the patch has no effect.
17457 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
17458 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
17459 (struct re_pattern_buffer, re_search, re_search_2, re_match):
17460 (re_match_2, re_set_registers): Use the new types.
17461 * lib/regex_internal.h (Idx, re_hashval_t): New types.
17462 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
17464 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
17465 (re_string_context_at, bin_tree_t, re_dfastate_t):
17466 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
17467 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
17468 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
17469 (re_string_char_size_at, re_string_wchar_at):
17470 (re_string_elem_size_at):
17471 Use the new types and macros to port to 64-bit hosts.
17472 Use unsigned types for internal values, so that the code
17473 mostly works even for arrays larger than SSIZE_MAX.
17474 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
17475 (search_duplicated_node, calc_eclosure_iter, fetch_number):
17476 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
17477 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
17478 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
17479 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
17480 (calc_inveclosure, parse_dup_op, build_range_exp):
17481 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
17482 (fetch_number, create_token_tree, mark_opt_subexp):
17484 * lib/regex_internal.c (re_string_construct_common,
17485 create_ci_newstate):
17486 (create_cd_newstate, re_string_allocate, re_string_construct):
17487 (re_string_realloc_buffers, build_wcs_upper_buffer):
17488 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
17489 (re_string_reconstruct, re_string_peek_byte_case):
17490 (re_string_fetch_byte_case, re_string_context_at):
17491 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
17492 (re_node_set_init_copy, re_node_set_add_intersect):
17493 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17494 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17495 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
17496 (re_acquire_state, re_acquire_state_context, register_state):
17498 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
17499 search_cur_bkref_entry):
17500 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
17501 (re_search_internal, re_search_2_stub, re_search_stub)
17502 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
17503 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
17504 (update_cur_sifted_state, check_dst_limits):
17505 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17506 (check_subexp_limits, sift_states_bkref, merge_state_array):
17507 (check_subexp_matching_top, get_subexp, get_subexp_sub):
17508 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
17509 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
17510 (expand_bkref_cache, check_node_accept_bytes):
17511 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
17512 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
17513 (acquire_init_state_context, check_halt_node_context):
17514 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
17515 (sift_states_backward, clean_state_log_if_needed):
17516 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
17517 (find_recover_state, transit_state_sb, transit_state_mb):
17518 (transit_state_bkref, build_trtable, match_ctx_clean):
17520 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
17521 to work around an assumption that REG_MISSING is negative.
17523 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
17524 (seek_collating_symbol_entry) [defined _LIBC]:
17525 (lookup_collation_sequence_value) [defined _LIBC]:
17526 (build_range_exp, build_collating_symbol) [defined _LIBC]:
17527 Use prototypes rather than old-style function definitions.
17528 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
17529 (transit_state_sb) [0]:
17530 (find_collation_sequence_value) [defined _LIBC]: Likewise.
17532 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
17535 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
17536 (optimize_subexps, lower_subexp):
17537 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
17538 since the signed shift might overflow. Use 1u<<31 instead.
17539 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
17541 * lib/regexec.c (check_dst_limits_calc_pos_1,
17542 check_subexp_matching_top): Likewise.
17544 * lib/regcomp.c (optimize_subexps, lower_subexp):
17545 Use CHAR_BIT rather than 8, for clarity.
17546 * lib/regexec.c (check_dst_limits_calc_pos_1):
17547 (check_subexp_matching_top): Likewise.
17548 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
17549 have to worry about portability issues when shifting it left.
17550 Remove no-longer-needed test for table_size > 0.
17551 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
17552 in a word, as the resulting behavior is undefined.
17553 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
17554 in one case, a <= should have been an <, and in another case the
17555 whole test was missing.
17556 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
17557 the standard name CHAR_BIT.
17558 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
17559 this is not true on one's complement and signed-magnitude hosts.
17561 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
17563 (struct re_dfa_t): Remove unused member states_alloc.
17564 * lib/regcomp.c (init_dfa): Don't initialize unused members.
17566 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
17568 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
17569 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
17570 and large-file glibc and in 32-bit large-file Solaris.
17572 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
17574 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
17575 lengths fit in regoff_t; this isn't true if regoff_t is the same
17577 * lib/regex.c (re_search_internal): 5th arg is LAST_START
17578 (= START + RANGE) instead of RANGE. This avoids overflow
17579 problems when regoff_t is the same width as size_t.
17580 All callers changed.
17581 (re_search_2_stub): Check for overflow when adding the
17582 sizes of the two strings.
17583 (re_search_stub): Check for overflow when adding START
17584 to RANGE; if it occurs, substitute the extreme value.
17586 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
17588 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
17590 2005-08-31 Jim Meyering <jim@meyering.net>
17592 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
17593 a pointer-to-const.
17594 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
17595 (register_state): Likewise.
17596 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
17597 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
17598 (group_nodes_into_DFAstates): Likewise.
17600 2005-08-31 Jim Meyering <jim@meyering.net>
17602 * check-module: Add a FIXME comment.
17604 2005-08-31 Eric Blake <ebb9@byu.net>
17606 * modules/unistd-safer (Files): Add unistd--.h.
17607 * modules/stdio-safer (Files): Add stdio--.h.
17609 2005-08-31 Derek Price <derek@ximbiot.com>
17611 * lib/getdelim.c (getdelim): Return EOF on EOF.
17612 Reported by Larry Jones <lawrence.jones@ugs.com>.
17614 2005-08-31 Bruno Haible <bruno@clisp.org>
17616 Avoid unnecessary diffs in the generated lib/Makefile.am.
17617 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
17618 the generated files.
17619 (func_import): Don't set cmd.
17621 2005-08-31 Bruno Haible <bruno@clisp.org>
17623 * lib/strstr.c: Include <stddef.h>, for NULL.
17624 * lib/strcasestr.c: Likewise.
17625 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17627 2005-08-31 Bruno Haible <bruno@clisp.org>
17629 * gnulib-tool: New option --macro-prefix.
17630 (func_import): Use macro_prefix.
17631 (import): Handle option --macro-prefix.
17633 2005-08-31 Bruno Haible <bruno@clisp.org>
17635 * gnulib-tool (import): Rename most ac_* variables to cached_*.
17636 Also use new variables cached_lgpl, cached_libtool.
17638 2005-08-31 Bruno Haible <bruno@clisp.org>
17640 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
17641 always instantiating them.
17643 2005-08-31 Bruno Haible <bruno@clisp.org>
17645 * gnulib-tool (func_import): Read the previous cached settings
17646 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
17647 earlier added by gnulib but are now dropped. Warn when a gnulib file
17648 overwrites a non-gnulib file.
17650 2005-08-31 Bruno Haible <bruno@clisp.org>
17652 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
17653 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
17654 projects that don't keep autogenerated files in CVS. Put into
17655 actioncmd only the specified modules, not the transitive closure.
17657 2005-08-31 Bruno Haible <bruno@clisp.org>
17659 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
17660 Create directories that shall be filled.
17661 (import): Don't look for gl_* macros in configure.ac. Recurse across
17662 all directories containing a gnulib-cache.m4 files, if meaningful.
17664 2005-08-31 Bruno Haible <bruno@clisp.org>
17666 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
17667 (import): Set seen_libtool when we see gl_LIBTOOL.
17669 2005-08-31 Bruno Haible <bruno@clisp.org>
17671 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
17672 declaration macro definitions from generated gnulib.m4.
17674 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
17676 * lib/iconvme.h: Add prototype for iconv_alloc.
17678 2005-08-29 Simon Josefsson <jas@extundo.com>
17680 * lib/iconvme.c: Fix errno.
17682 2005-08-29 Bruno Haible <bruno@clisp.org>
17684 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
17685 that it works when the directory contains spaces.
17687 2005-08-29 Bruno Haible <bruno@clisp.org>
17689 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
17691 2005-08-29 Bruno Haible <bruno@clisp.org>
17693 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
17696 2005-08-29 Bruno Haible <bruno@clisp.org>
17697 and Stepan Kasal <kasal@ucw.cz>
17699 * check-module: If more parameters are given, check each of them
17700 separately; add more exceptions, as noted by Jim Meyering.
17701 (check_module): New procedure.
17702 (%exempt_header): Now contains all exceptions.
17704 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
17706 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
17708 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
17710 * lib/iconvme.c: Split iconv_string into iconv_alloc.
17712 2005-08-28 Bruno Haible <bruno@clisp.org>
17714 * m4/gnulib-tool.m4: New file.
17716 2005-08-27 Jim Meyering <jim@meyering.net>
17718 * modules/unistd-safer (Files): Add pipe-safer.c.
17719 * modules/fcntl-safer (Files): Add creat-safer.c.
17721 2005-08-27 Jim Meyering <jim@meyering.net>
17723 * m4/stdlib-safer.m4: New file. From coreutils.
17724 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
17725 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
17726 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
17727 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
17728 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
17730 2005-08-27 Jim Meyering <jim@meyering.net>
17732 * lib/fopen-safer.c: Merge minor changes from coreutils.
17733 * lib/dup-safer.c: Likewise.
17734 * lib/fd-safer.c: Likewise.
17736 Merge from coreutils.
17737 * lib/stdio--.h: New file.
17738 * lib/stdlib--.h: New file.
17739 * lib/mkstemp-safer.c: New file.
17741 GNU tar needs these.
17742 * lib/pipe-safer.c: New file.
17743 * lib/creat-safer.c: New file.
17744 * lib/fcntl--.h (creat): Define to creat_safer.
17745 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
17746 * lib/unistd--.h (pipe): Define to pipe_safer.
17747 * lib/unistd-safer.h: Declare pipe_safer.
17749 2005-08-26 Simon Josefsson <jas@extundo.com>
17751 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
17752 Haible <bruno@clisp.org>.
17754 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
17756 * lib/regex_internal.h: Remove all references to
17757 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
17759 (bitset_not, bitset_merge, bitset_not_merge):
17760 (bitset_mask, re_string_allocate, re_string_construct):
17761 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
17762 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
17763 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
17764 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
17765 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
17766 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
17767 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
17768 (re_acquire_state_context):
17769 Remove unnecessary forward decls.
17770 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
17771 Put __attribute at function definition,
17772 now that the function decl has been removed.
17773 * lib/regex_internal.c (re_string_peek_byte_case):
17774 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
17777 2005-08-25 Stepan Kasal <kasal@ucw.cz>
17779 * m4/regex.m4: Add AC_PREREQ(2.50).
17780 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
17782 2005-08-25 Simon Josefsson <jas@extundo.com>
17784 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
17787 2005-08-25 Simon Josefsson <jas@extundo.com>
17789 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
17790 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
17791 GLIBC specific code.
17793 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
17795 Make regex safe for g++. This fixes one real bug (an "err"
17796 that should have been "*err"). g++ problem reported by
17798 * lib/regex_internal.h (re_calloc): New macro, consistent with
17799 re_malloc etc. All callers of calloc changed to use re_calloc.
17800 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
17801 not int. All callers changed.
17802 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
17803 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
17804 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
17805 (find_recover_state): Change "err" to "*err"; this fixes what
17806 appears to be a real bug.
17807 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
17810 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
17812 * modules/regex (Depends-on): Add malloc, since the code
17813 assumes that !malloc(0) means failure.
17815 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
17817 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
17819 alloca modernization/simplification for regex.
17820 * lib/regex.c: Remove portability cruft for alloca. This no longer
17821 needs to be at the start of the file, and can be moved into
17822 regex_internal.h and simplified.
17823 * lib/regex_internal.h: Include <alloca.h>.
17824 (__libc_use_alloca) [!defined _LIBC]: New macro.
17825 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
17826 now works outside glibc.
17828 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
17830 * config/srclist.txt: Add glibc bugs 1241, 1245.
17832 2005-08-25 Jim Meyering <jim@meyering.net>
17834 * lib/open-safer.c: Include <config.h>.
17835 Otherwise, we'd lose LARGEFILE support in any file using
17838 2005-08-25 Bruno Haible <bruno@clisp.org>
17840 * m4/minmax.m4: Require autoconf 2.52.
17841 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
17842 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
17843 alternatives of translit over the alphabet.
17844 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
17846 2005-08-24 Simon Josefsson <jas@extundo.com>
17848 * tests/test-getpass.c: New file.
17850 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
17852 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
17853 for GNU regex features.
17855 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
17857 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
17858 * lib/regex.h (regerror): Likewise.
17860 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
17861 requires this. (The code never needed it.)
17863 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
17864 All uses of recently-renamed identifiers changed to use the new,
17865 POSIX-compliant names. The code will build and run just fine
17866 without these changes, but it's better to eat our own dog food
17867 and use the standard-conforming names.
17869 * lib/regex.h: Fix a multitude of POSIX name space violations.
17870 These changes have an effect only for programs that define
17871 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
17872 do not change anything for programs compiled in the normal way.
17873 Also, there is no effect on the ABI.
17875 (_REGEX_SOURCE): New macro.
17876 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
17877 defined and _GNU_SOURCE is not; this fixes a name space violation.
17879 Rename the following macros to obey POSIX requirements.
17880 The old names are still visible as macros if _REGEX_SOURCE is defined.
17881 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
17882 RE_BACKSLASH_ESCAPE_IN_LISTS.
17883 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
17884 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
17885 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
17886 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
17887 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
17888 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
17889 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
17890 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
17891 (REG_INTERVALS): renamed from RE_INTERVALS.
17892 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
17893 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
17894 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
17895 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
17896 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
17897 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
17898 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
17899 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
17900 RE_UNMATCHED_RIGHT_PAREN_ORD.
17901 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
17902 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
17903 (REG_DEBUG): renamed from RE_DEBUG.
17904 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
17905 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
17906 unusual, since we can't clash with the POSIX REG_ICASE.
17907 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
17908 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
17909 (REG_NO_SUB): renamed from RE_NO_SUB.
17910 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
17911 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
17912 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
17913 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
17914 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
17915 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
17916 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
17917 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
17918 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
17919 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
17920 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
17921 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
17922 RE_SYNTAX_POSIX_MINIMAL_BASIC.
17923 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
17924 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
17925 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
17926 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
17927 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
17928 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
17929 (REG_FIXED): Renamed from REGS_FIXED.
17930 (REG_NREGS): Renamed from RE_NREGS.
17932 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
17933 of other REG_* macros, since POSIX says the user is allowed to
17934 #undef these macros selectively.
17936 (reg_errcode_t): Update comment stating what other tables need
17939 Rename the following enum values to obey POSIX requirements.
17940 The old names are still visible as macros.
17941 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
17942 is not defined, since GNU is supposed to be a superset of POSIX as
17943 much as possible, and since we want reg_errcode_t to be a signed
17944 type for implementation consistency.
17945 (_REG_NOERROR): Renamed from REG_NOERROR.
17946 (_REG_NOMATCH): Renamed from REG_NOMATCH.
17947 (_REG_BADPAT): Renamed from REG_BADPAT.
17948 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
17949 (_REG_ECTYPE): Renamed from REG_ECTYPE.
17950 (_REG_EESCAPE): Renamed from REG_EESCAPE.
17951 (_REG_ESUBREG): Renamed from REG_ESUBREG.
17952 (_REG_EBRACK): Renamed from REG_EBRACK.
17953 (_REG_EPAREN): Renamed from REG_EPAREN.
17954 (_REG_EBRACE): Renamed from REG_EBRACE.
17955 (_REG_BADBR): Renamed from REG_BADBR.
17956 (_REG_ERANGE): Renamed from REG_ERANGE.
17957 (_REG_ESPACE): Renamed from REG_ESPACE.
17958 (_REG_BADRPT): Renamed from REG_BADRPT.
17959 (_REG_EEND): Renamed from REG_EEND.
17960 (_REG_ESIZE): Renamed from REG_ESIZE.
17961 (_REG_ERPAREN): Renamed from REG_ERPAREN.
17962 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
17963 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
17964 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
17965 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
17967 (_REG_RE_NAME, _REG_RM_NAME): New macros.
17968 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
17969 changed. But support the old name if the new one is not defined
17970 and if _REGEX_SOURCE.
17972 Change the following member names in struct re_pattern_buffer.
17973 The old names are still supported if !_REGEX_SOURCE.
17974 The new names are always supported, regardless of _REGEX_SOURCE.
17975 (re_buffer): Renamed from buffer.
17976 (re_allocated): Renamed from allocated.
17977 (re_used): Renamed from used.
17978 (re_syntax): Renamed from syntax.
17979 (re_fastmap): Renamed from fastmap.
17980 (re_translate): Renamed from translate.
17981 (re_can_be_null): Renamed from can_be_null.
17982 (re_regs_allocated): Renamed from regs_allocated.
17983 (re_fastmap_accurate): Renamed from fastmap_accurate.
17984 (re_no_sub): Renamed from no_sub.
17985 (re_not_bol): Renamed from not_bol.
17986 (re_not_eol): Renamed from not_eol.
17987 (re_newline_anchor): Renamed from newline_anchor.
17989 Change the following member names in struct re_registers.
17990 The old names are still supported if !_REGEX_SOURCE.
17991 The new names are always supported, regardless of _REGEX_SOURCE.
17992 (rm_num_regs): Renamed from num_regs.
17993 (rm_start): Renamed from start.
17994 (rm_end): Renamed from end.
17996 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
17997 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
17998 Prepend __ to parameter names.
18000 Undo yesterday's changes.
18002 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18004 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
18005 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
18008 2005-08-24 Jim Meyering <jim@meyering.net>
18010 Sync from coreutils.
18011 * m4/fcntl-safer.m4: New file.
18013 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
18014 and object files for this module.
18016 2005-08-24 Jim Meyering <jim@meyering.net>
18018 Sync from coreutils.
18019 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
18021 2005-08-24 Jim Meyering <jim@meyering.net>
18023 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
18024 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
18026 2005-08-24 Jim Meyering <jim@meyering.net>
18028 * modules/fcntl-safer: New module.
18029 * modules/fts (Depends-on): Add fcntl-safer.
18030 * MODULES.html.sh (File descriptor based Input/Output):
18033 2005-08-24 Bruno Haible <bruno@clisp.org>
18035 Support for unit test modules.
18036 * modules/README: Mention tests modules.
18037 * modules/TEMPLATE-TESTS: New file.
18038 * gnulib-tool: New options --extract-tests-module, --with-tests and
18039 --tests-base (unused for the moment).
18040 (testsbase, inctests): New variables.
18041 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
18042 (func_verify_module): Exclude TEMPLATE-TESTS.
18043 (func_verify_nontests_module, func_verify_tests_module): New functions.
18044 (func_get_dependencies): Add implicit dependency for tests modules.
18045 (func_get_tests_module): New function.
18046 (func_modules_transitive_closure): When --with-tests was specified,
18047 include the unit tests as well, unless explicitly avoided.
18048 (func_emit_lib_Makefile_am): Ignore the tests modules here.
18049 (func_emit_tests_Makefile_am): New function.
18050 (func_create_testdir): When --with-tests was specified, emit a
18052 * MODULES.html.sh (Future developments): Update.
18054 2005-08-24 Bruno Haible <bruno@clisp.org>
18056 * modules/tls-tests: New file.
18057 * tests/test-tls.c: New file, from GNU gettext.
18059 2005-08-24 Bruno Haible <bruno@clisp.org>
18061 * modules/lock-tests: New file.
18062 * tests/test-lock.c: New file, from GNU gettext.
18064 2005-08-24 Bruno Haible <bruno@clisp.org>
18066 * lib/lock.h: Add multiple inclusion guard.
18067 * lib/tls.h: Add multiple inclusion guard.
18069 2005-08-24 Bruno Haible <bruno@clisp.org>
18071 * gnulib-tool: Add support for the --aux-dir option to
18072 --create-testdir, --create-megatestdir, --test, --megatest.
18073 (func_create_testdir, func_create_megatestdir): Optionally emit a
18074 AC_CONFIG_AUX_DIR directive.
18075 (create-testdir, create-megatestdir, test, megatest): Provide a
18076 default value for $auxdir.
18078 2005-08-24 Bruno Haible <bruno@clisp.org>
18080 * gnulib-tool (import): Use compound statement instead of subshell
18083 2005-08-24 Bruno Haible <bruno@clisp.org>
18085 * gnulib-tool (import): Change --aux-dir default to "build-aux".
18087 2005-08-24 Bruno Haible <bruno@clisp.org>
18089 * gnulib-tool (func_version): Update.
18091 2005-08-24 Bruno Haible <bruno@clisp.org>
18093 * gnulib-tool (func_import, func_create_testdir,
18094 func_create_megatestdir): Quote all autoconf macro arguments.
18096 2005-08-24 Bruno Haible <bruno@clisp.org>
18098 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
18099 option --force, because --force causes the aclocal.m4 of each
18100 subdirectory to be newer than the corresponding config.h.in.
18102 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18104 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
18105 All contents moved to gl_REGEX.
18106 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
18107 assume that it does.
18109 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18111 * lib/regex.h (REG_NOSYS)
18112 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
18113 Define, since POSIX requires it as of 2001.
18115 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
18116 New private symbol, used to keep the enum signed in all cases.
18117 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
18119 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
18121 * lib/regex_internal.c (re_string_skip_chars, register_state):
18123 Remove forward decls; no longer needed now that we use prototypes.
18124 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
18125 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
18126 (clean_state_log_if_needed): Likewise.
18128 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
18130 * config/srclist.txt: Add glibc bugs 1231-1233.
18132 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18134 Fix problems reported by Sam Steingold in
18135 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
18136 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
18137 assumed that reg_errcode_t is a signed type, which is not
18138 necessarily true if _XOPEN_SOURCE is not defined.
18139 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
18140 since some compilers warn about it otherwise.
18142 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18144 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
18145 (init_word_char, create_initial_state, duplicate_node_closure):
18146 (fetch_token, peek_token_bracket, build_range_exp):
18147 (build_collating_symbol): Remove forward decls; no longer needed
18148 now that we use prototypes.
18151 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
18152 (re_compile_fastmap_iter, regcomp, regerror, regfree):
18153 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
18154 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
18155 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
18156 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
18157 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
18158 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
18159 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
18160 (build_range_exp, build_collating_symbol, parse_bracket_exp):
18161 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
18162 (build_charclass, build_charclass_op, fetch_number, create_tree):
18163 (create_token_tree, mark_opt_subexp, duplicate_tree):
18164 Use prototypes rather than old-style definitions.
18166 * lib/regex_internal.c:
18167 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
18168 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
18169 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18170 (re_string_reconstruct, re_string_peek_byte_case):
18171 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
18172 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18173 (re_node_set_init_copy, re_node_set_add_intersect):
18174 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18175 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18176 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18177 (re_acquire_state, re_acquire_state_context, register_state):
18178 (create_ci_newstate, create_cd_newstate, free_state):
18180 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
18182 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
18183 (re_search_internal, prune_impossible_nodes):
18184 (acquire_init_state_context, check_matching, static):
18185 (check_halt_node_context, check_halt_state_context, proceed_next_node):
18186 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
18187 (update_regs, sift_states_backward, build_sifted_states):
18188 (clean_state_log_if_needed, merge_state_array):
18189 (update_cur_sifted_state, add_epsilon_src_nodes):
18190 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
18191 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
18192 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
18193 (find_recover_state, check_subexp_matching_top, transit_state_mb):
18194 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
18195 (check_arrival, check_arrival_add_next_nodes):
18196 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18197 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18198 (check_node_accept_bytes, check_node_accept, extend_buffers):
18199 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
18200 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
18204 * lib/regex_internal.h:
18205 (re_string_allocate, re_string_construct, re_string_reconstruct):
18206 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
18207 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
18208 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
18209 (re_string_context_at, re_string_peek_byte_case):
18210 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
18211 is defined, since we now use prototypes always.
18213 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
18214 C89 or better. All uses removed.
18216 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
18218 * config/srclist.txt: Add glibc bugs 1220-1227.
18220 2005-08-20 Jim Meyering <jim@meyering.net>
18222 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
18223 of unused local, dfa.
18225 2005-08-20 Bruno Haible <bruno@clisp.org>
18227 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
18229 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18231 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
18232 (re_node_set_insert_last, re_dfa_add_node):
18233 Rename local variables to avoid GCC shadowing warnings.
18235 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18237 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
18238 [defined lint]: Suppress bogus uninitialized-variable warnings.
18240 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
18241 and let the caller return REG_ESPACE if out of space. This
18242 removes an uninitialied-variable warning with GCC 4.0.1, and also
18243 avoids taking the address of a local variable. All callers
18246 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
18248 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
18249 $LIBCSRC/posix/regexec.c.
18250 Add glibc bug 1217 for regcomp.c.
18252 2005-08-19 Jim Meyering <jim@meyering.net>
18254 * lib/regexec.c (proceed_next_node): Redo local variables to
18255 avoid GCC shadowing warnings.
18257 2005-08-18 Bruno Haible <bruno@clisp.org>
18259 * lib/strstr.c (strstr): Fix return value in multibyte case.
18260 * lib/strcasestr.c (strcasestr): Likewise.
18262 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
18264 * lib/regex.h: Remove useless space-before-tab. From coreutils.
18266 2005-08-17 Jim Meyering <jim@meyering.net>
18268 Make the %s format (seconds since the epoch) work for a negative
18269 number and when used with a zero-padded field width, e.g. %015s.
18271 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
18272 label so that it precedes the code to set `digits'. Otherwise,
18273 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
18274 print `00-22'. Now, it prints `-0022', as it should.
18276 2005-08-17 Bruno Haible <bruno@clisp.org>
18278 * modules/strstr (Files): Add m4/mbrtowc.m4.
18279 (Depends-on): Add mbuiter.
18281 2005-08-17 Bruno Haible <bruno@clisp.org>
18283 * modules/strcasestr: New file.
18284 * MODULES.html.sh (String handling, based on ANSI C 89): Add
18287 2005-08-17 Bruno Haible <bruno@clisp.org>
18289 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
18291 2005-08-17 Bruno Haible <bruno@clisp.org>
18293 * modules/mbuiter: New file.
18294 * MODULES.html.sh (Extended multibyte and wide character utilities):
18297 2005-08-17 Bruno Haible <bruno@clisp.org>
18299 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
18300 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
18302 2005-08-17 Bruno Haible <bruno@clisp.org>
18304 * m4/strcasestr.m4: New file.
18306 2005-08-17 Bruno Haible <bruno@clisp.org>
18308 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
18309 * lib/strstr.c: Completely rewritten, with multibyte locale support.
18311 2005-08-17 Bruno Haible <bruno@clisp.org>
18313 * lib/strcasestr.h: New file.
18314 * lib/strcasestr.c: New file.
18316 2005-08-17 Bruno Haible <bruno@clisp.org>
18318 * lib/strcasecmp.c: Use mbuiter.h.
18320 2005-08-17 Bruno Haible <bruno@clisp.org>
18322 * lib/mbuiter.h: New file.
18324 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
18326 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
18327 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
18328 and gl_GETOPT are both invoked via different paths (as happens
18329 with GNU tar CVS because it uses both argp and getopt), the former
18332 2005-08-16 Bruno Haible <bruno@clisp.org>
18334 * modules/tls: New file.
18335 * MODULES.html.sh (Multithreading): Add tls.
18337 2005-08-16 Bruno Haible <bruno@clisp.org>
18339 * modules/strnlen1: New file.
18340 * MODULES.html.sh (String handling): Add strnlen1.
18342 2005-08-16 Bruno Haible <bruno@clisp.org>
18344 * modules/strcase (Files): Add m4/mbrtowc.m4.
18345 (Depends-on): Add strnlen1, mbchar.
18347 2005-08-16 Bruno Haible <bruno@clisp.org>
18349 * modules/mbiter: New file.
18350 * MODULES.html.sh (Extended multibyte and wide character utilities):
18353 2005-08-16 Bruno Haible <bruno@clisp.org>
18355 * modules/mbfile: New file.
18356 * MODULES.html.sh (Extended multibyte and wide character utilities):
18359 2005-08-16 Bruno Haible <bruno@clisp.org>
18361 * modules/mbchar: New file.
18362 * MODULES.html.sh (Extended multibyte and wide character utilities):
18365 2005-08-16 Bruno Haible <bruno@clisp.org>
18367 * m4/tls.m4: New file, from GNU gettext.
18369 2005-08-16 Bruno Haible <bruno@clisp.org>
18371 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
18373 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
18375 2005-08-16 Bruno Haible <bruno@clisp.org>
18377 * m4/mbiter.m4: New file.
18379 2005-08-16 Bruno Haible <bruno@clisp.org>
18381 * m4/mbfile.m4: New file.
18383 2005-08-16 Bruno Haible <bruno@clisp.org>
18385 * m4/mbchar.m4: New file.
18387 2005-08-16 Bruno Haible <bruno@clisp.org>
18389 * lib/tls.h: New file, from GNU gettext.
18390 * lib/tls.c: New file, from GNU gettext.
18392 2005-08-16 Bruno Haible <bruno@clisp.org>
18394 * lib/strnlen1.h: New file.
18395 * lib/strnlen1.c: New file.
18397 2005-08-16 Bruno Haible <bruno@clisp.org>
18399 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
18400 (mbi_init): Update.
18401 (mbi_avail, mbi_advance): Let the iteration end before the terminating
18402 NUL byte, not after it.
18404 2005-08-16 Bruno Haible <bruno@clisp.org>
18406 * lib/strcase.h (strcasecmp): Add note in comments.
18407 * lib/strncasecmp.c: Use code from strcasecmp.c.
18408 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
18409 (strcasecmp): Work correctly in multibyte locales.
18411 2005-08-16 Bruno Haible <bruno@clisp.org>
18413 * lib/mbiter.h: New file.
18415 2005-08-16 Bruno Haible <bruno@clisp.org>
18417 * lib/mbfile.h: New file.
18419 2005-08-16 Bruno Haible <bruno@clisp.org>
18421 * lib/mbchar.h: New file.
18422 * lib/mbchar.c: New file.
18424 2005-08-16 Bruno Haible <bruno@clisp.org>
18426 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
18427 the valid ones. Makes the comparison operations transitive:
18428 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
18429 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
18431 2005-08-15 Simon Josefsson <jas@extundo.com>
18433 * modules/ssize_t (License): Change to 'unlimited'.
18435 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
18437 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
18439 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
18440 Add comments for each pending glibc patch.
18442 2005-08-15 Bruno Haible <bruno@clisp.org>
18444 * lib/regex.h (__restrict_arr): Don't define to __restrict if
18445 __cplusplus is defined.
18447 2005-08-14 Jim Meyering <jim@meyering.net>
18449 Sync from coreutils.
18451 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
18452 Use the hash-table-based cycle-detection code not just when
18453 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
18454 Reported by James Youngman in
18455 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
18456 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
18457 FTS_TIGHT_CYCLE_CHECK.
18458 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
18459 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
18461 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
18462 * lib/fts.c (fd_safer): Remove decl.
18463 Include fcntl--.h rather than unistd-safer.h
18464 (fts_safe_changedir): Don't call fd_safer; no longer needed
18465 now that we include fcntl--.h.
18467 2005-08-12 Simon Josefsson <jas@extundo.com>
18469 * modules/getndelim2: Use ssize_t module.
18470 * modules/getnline: Likewise.
18471 * modules/safe-read: Likewise.
18472 * modules/xreadlink: Likewise.
18474 * modules/ssize_t: New file.
18476 2005-08-12 Simon Josefsson <jas@extundo.com>
18478 * m4/readline.m4: Look for termcap, curses or ncurses if required.
18480 2005-08-12 Simon Josefsson <jas@extundo.com>
18482 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18485 2005-08-12 Simon Josefsson <jas@extundo.com>
18487 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
18488 readline, getdelim and check_version.
18489 (Support for systems lacking ISO C 99: Sizes of integer types):
18492 2005-08-12 Bruno Haible <bruno@clisp.org>
18494 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
18496 2005-08-11 Simon Josefsson <jas@extundo.com>
18498 * modules/readline: New file.
18500 * modules/strnlen (Files): Add strnlen.h.
18502 2005-08-11 Simon Josefsson <jas@extundo.com>
18504 * m4/readline.m4: New file.
18506 2005-08-11 Simon Josefsson <jas@extundo.com>
18508 * lib/readline.h, readline.c: New file.
18510 2005-08-11 Simon Josefsson <jas@extundo.com>
18512 * doc/gnulib.texi (Initial import, Finishing touches): Mention
18515 2005-08-11 Bruno Haible <bruno@clisp.org>
18517 * lib/strnlen.h (strnlen): Change parameter name to match comment.
18519 2005-08-10 Stepan Kasal <kasal@ucw.cz>
18521 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
18523 2005-08-10 Simon Josefsson <jas@extundo.com>
18525 * tests/test-iconvme.c: New file.
18527 2005-08-10 Simon Josefsson <jas@extundo.com>
18529 * m4/strnlen.m4: New file.
18531 * m4/strndup.m4: Don't check for strnlen declaration, done in
18534 2005-08-10 Simon Josefsson <jas@extundo.com>
18536 * lib/strndup.c: Use strnlen.h.
18538 * lib/strnlen.h: New file.
18540 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
18544 2005-08-02 Simon Josefsson <jas@extundo.com>
18546 * modules/readline: New file.
18548 2005-08-02 Simon Josefsson <jas@extundo.com>
18550 * modules/getdelim: New file.
18552 * modules/getline: Rewrite, don't use getndelim2.
18554 2005-08-02 Simon Josefsson <jas@extundo.com>
18556 * m4/getline.m4: Separate out getdelim stuff into separate module.
18558 * m4/getdelim.m4: New file.
18560 2005-08-02 Simon Josefsson <jas@extundo.com>
18562 * lib/getline.h, getline.c: Rewrite.
18564 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
18566 2005-07-31 Bruno Haible <bruno@clisp.org>
18568 * lib/lock.h (gl_lock_initializer): New macro.
18569 (gl_lock_define_initialized): Use it.
18570 (gl_rwlock_initializer): New macro.
18571 (gl_rwlock_define_initialized): Use it.
18572 (gl_recursive_lock_initializer): New macro.
18573 (gl_recursive_lock_define_initialized): Use it.
18575 2005-07-30 Karl Berry <karl@gnu.org>
18577 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
18578 Report from Ben Pfaff, regarding getopt.
18580 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
18582 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
18584 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
18585 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
18586 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
18587 (gl_GETOPT): Use the new macros. Most of the implementation
18588 is moved to the new macros. This is for programs like Emacs
18589 that don't want all the functionality of gl_GETOPT.
18591 2005-07-26 Bruno Haible <bruno@clisp.org>
18593 * m4/lock.m4: Update from GNU gettext.
18595 2005-07-26 Bruno Haible <bruno@clisp.org>
18597 * lib/lock.h: Update from GNU gettext.
18598 * lib/lock.c: Update from GNU gettext.
18600 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
18602 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
18603 obsolescent AC_TRY_RUN. Include the default includes files, for
18606 2005-07-24 Bruno Haible <bruno@clisp.org>
18608 * modules/visibility: New file.
18609 * MODULES.html.sh (Misc): Add visibility.
18611 2005-07-24 Bruno Haible <bruno@clisp.org>
18613 * m4/visibility.m4: New file.
18615 2005-07-24 Bruno Haible <bruno@clisp.org>
18617 * doc/visibility.texi: New file.
18619 2005-07-22 Bruno Haible <bruno@clisp.org>
18621 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
18622 $(ALLOCA_H), redundant through BUILT_SOURCES.
18623 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
18624 redundant through BUILT_SOURCES.
18625 * modules/byteswap (Makefile.am): Remove explicit dependency on
18626 $(BYTESWAP_H), redundant through BUILT_SOURCES.
18627 * modules/fnmatch (Makefile.am): Remove explicit dependency on
18628 $(FNMATCH_H), redundant through BUILT_SOURCES.
18629 * modules/getopt (Makefile.am): Remove explicit dependency on
18630 $(GETOPT_H), redundant through BUILT_SOURCES.
18631 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
18632 redundant through BUILT_SOURCES.
18633 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
18634 redundant through BUILT_SOURCES.
18635 * modules/stdbool (Makefile.am): Remove explicit dependency on
18636 $(STDBOOL_H), redundant through BUILT_SOURCES.
18637 * modules/stdint (Makefile.am): Remove explicit dependency on
18638 $(STDINT_H), redundant through BUILT_SOURCES.
18639 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
18640 Remove explicit dependency on $(SYSEXITS_H).
18641 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
18643 2005-07-18 Simon Josefsson <jas@extundo.com>
18645 * lib/check-version.c (check_version): Accept identical versions too.
18647 2005-07-18 Bruno Haible <bruno@clisp.org>
18649 * modules/lock: New file.
18650 * MODULES.html.sh (Multithreading): New section.
18652 2005-07-18 Bruno Haible <bruno@clisp.org>
18654 * m4/lock.m4: New file, from GNU gettext.
18656 2005-07-18 Bruno Haible <bruno@clisp.org>
18658 * lib/lock.h: New file, from GNU gettext.
18659 * lib/lock.c: New file, from GNU gettext.
18661 2005-07-18 Bruno Haible <bruno@clisp.org>
18663 * lib/lock.h (gl_once_t): New type.
18664 (gl_once_define, gl_once): New macros.
18665 * lib/lock.c (fresh_once): New variable.
18666 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
18669 2005-07-16 Simon Josefsson <jas@extundo.com>
18671 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
18672 workaround, suggested by Bruno.
18674 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
18676 * modules/xalloc (Depends-on): Add xalloc-die.
18677 * modules/xvasprintf (Depends-on): Add xalloc-die.
18679 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
18681 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
18682 with a minor change.
18684 2005-07-15 Bruno Haible <bruno@clisp.org>
18686 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
18687 When using lib/poll.c, define poll as rpl_poll.
18689 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
18691 * modules/argp (Depends-on): Remove unlocked-io.
18693 2005-07-14 Derek Price <derek@ximbiot.com>
18695 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
18696 for glob symlink bug.
18698 2005-07-14 Bruno Haible <bruno@clisp.org>
18700 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
18701 Instead, test for *_unlocked function declarations directly.
18703 2005-07-11 Simon Josefsson <jas@extundo.com>
18705 * modules/size_max: New file.
18707 * modules/xsize: Depend on size_max module for size_max.m4.
18709 2005-07-11 Simon Josefsson <jas@extundo.com>
18711 * lib/size_max.h: New file.
18713 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
18715 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
18716 copyright symbol and the year.
18717 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
18718 (version_etc_va): Use parameterized copyright notice.
18719 Reword to conform to the current GNU coding standards.
18721 2005-07-11 Karl Berry <karl@gnu.org>
18723 * doc/gnulib.texi (Quoting): new node.
18724 (Initial import): more info, from Patrice.
18726 2005-07-11 Bruno Haible <bruno@clisp.org>
18728 * gnulib-tool (func_usage): Document option --avoid.
18729 (Command line options): Handle --avoid.
18730 (func_acceptable): New function.
18731 (func_modules_transitive_closure): Use it.
18733 2005-07-11 Bruno Haible <bruno@clisp.org>
18735 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
18736 Reported by Jim Meyering.
18738 2005-07-10 Bruno Haible <bruno@clisp.org>
18740 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
18741 Needed when size_t is smaller than 'unsigned int'.
18742 Reported by Paul Eggert.
18744 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
18746 * modules/argp (Depends-on): Add unlocked-io
18748 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
18750 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
18753 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
18755 * config/srclist.txt: Comment out regcomp.c, since we have a porting
18758 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
18759 and Paul Eggert <eggert@cs.ucla.edu>
18761 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
18762 in wint_t, not wchar_t. Remove now-unnecessary cast.
18764 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
18766 * modules/regex (Files): Add lib/regex_internal.c,
18767 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
18768 (Depends-on): Add extensions.
18769 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
18771 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
18773 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
18775 * m4/same.m4 (gl_SAME): Likewise.
18776 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
18778 * m4/regex.m4: Adjust to new libc regex implementation.
18779 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
18780 all the .c and .h parts of (the new) regex.
18781 Quote the m4 stuff better.
18782 Check for RE_ICASE bug of old gnulib.
18783 Check for REG_STARTEND of recent libc.
18784 Rename local variables from jm_* to gl_*.
18785 Quote operand of "test -f".
18786 Say "recent enough" version of libc, not "version 2".
18787 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
18788 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
18789 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
18790 Remove check for btowc, isascii.
18791 Require AM_LANGINFO_CODESET.
18793 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
18795 * lib/regex.c, regex.h: Sync from libc.
18796 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
18798 New files, synced from libc, except that regex_internal.h
18799 currently has a small porting fix.
18801 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
18803 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
18804 regex_internal.c, regexec.c.
18805 Add regex_internal.h too, but as a comment, since the libc version
18806 is currently broken in gnulib mode.
18808 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
18810 Support programs like Emacs that use gnulib but not gettext.
18811 * MODULES.html.sh (Internationalization functions): Add gettext-h.
18812 * modules/gettext-h: New file.
18813 * modules/gettext (Files): Remove lib/gettext.h.
18814 (Depends-on): Add gettext-h.
18815 (Makefile.am): Remove lib_SOURCES.
18816 * modules/argmatch, modules/c-stack, modules/closeout:
18817 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
18818 * modules/execute, modules/file-type, modules/getaddrinfo:
18819 * modules/getopt, modules/human, modules/javacomp:
18820 * modules/javaexec, modules/mkdir-p, modules/obstack:
18821 * modules/openat, modules/pagealign_alloc, modules/pipe:
18822 * modules/quotearg, modules/regex, modules/rpmatch:
18823 * modules/unicodeio, modules/userspec, modules/version-etc:
18824 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
18826 Depend on gettext-h, not gettext.
18828 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
18830 * gnulib-tool (func_import): Add support for 'public domain' license.
18831 * modules/alloca, modules/atexit, modules/memmove:
18832 Now public domain, not GPL.
18833 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
18834 * modules/realloc, modules/strerror, modules/strtod:
18837 2005-07-05 Bruno Haible <bruno@clisp.org>
18839 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
18840 autoconf CVS. Needed for mingw.
18842 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
18844 Remove the dependency of the strftime module on the tzset module.
18845 * modules/strftime (Depends-on): Remove dependency on tzset.
18847 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
18849 Remove the dependency of the strftime module on the tzset module.
18850 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
18851 gl_FUNC_TZSET_CLOBBER.
18853 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
18855 Remove the dependency of the strftime module on the tzset module.
18856 * lib/strftime.c (my_strftime)
18857 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
18858 Copy the input structure, to work around some of the bug with
18859 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
18860 Solaris releases, you should also use the tzset module, but we won't
18861 require it as a dependency any more since we don't want LGPLed code
18862 to depend on GPLed code.
18864 2005-07-02 Jim Meyering <jim@meyering.net>
18866 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
18867 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
18868 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
18869 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
18871 2005-07-02 Jim Meyering <jim@meyering.net>
18873 * lib/backupfile.c (backup_args): Change a `0' to NULL.
18875 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
18877 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
18878 declares only 'struct timespec;' (!).
18880 2005-07-01 Jim Meyering <jim@meyering.net>
18882 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
18883 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
18884 * lib/save-cwd.c, tempname.c:
18885 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18886 and don't include <sys/file.h>).
18888 2005-06-29 Jim Meyering <jim@meyering.net>
18890 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
18891 type name. Use the variable name instead.
18892 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
18895 2005-06-28 Simon Josefsson <jas@extundo.com>
18897 * modules/check-version (Files): Add check-version.m4.
18899 2005-06-28 Simon Josefsson <jas@extundo.com>
18901 * m4/check-version.m4: New file, suggested by Jim Meyering
18902 <jim@meyering.net>.
18904 2005-06-28 Simon Josefsson <jas@extundo.com>
18906 * lib/check-version.h, lib/check-version.c: New files.
18908 2005-06-28 Simon Josefsson <jas@extundo.com>
18910 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
18911 collision with global variable. Better indentation. Don't
18912 increment buffer pointer beyond buffer end. Based on comments
18913 from Paul Eggert <eggert@cs.ucla.edu>.
18915 * lib/base64.h: Indent.
18917 2005-06-28 Simon Josefsson <jas@extundo.com>
18919 * doc/gnulib.texi (Library version handling): New section.
18921 2005-06-28 Jim Meyering <jim@meyering.net>
18923 * check-module (find_included_lib_files): Hard-code another
18924 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
18925 but modules/fts-lgpl (correctly) does not list those files.
18927 * modules/canonicalize (Files): Add lib/pathmax.h.
18929 2005-06-25 Simon Josefsson <jas@extundo.com>
18931 * modules/check-version: New file.
18933 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
18935 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
18936 initializer of struct addrinfo, as an indication that we don't
18937 care how many members the structure has.
18939 2005-06-24 Derek Price <derek@ximbiot.com>
18940 and Bruno Haible <bruno@clisp.org>
18942 Remove stat module & update lstat.
18943 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
18944 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18945 * m4/stat.m4: Remove this file.
18947 2005-06-24 Derek Price <derek@ximbiot.com>
18948 and Bruno Haible <bruno@clisp.org>
18950 Remove stat module & update lstat.
18951 * lib/stat.c: Remove this file...
18952 (slash_aware_lstat): ...moving this content and its support...
18953 * lib/lstat.c (rpl_lstat): ...into here.
18954 * lib/lstat.h: New file.
18956 2005-06-24 Derek Price <derek@ximbiot.com>
18957 and Bruno Haible <bruno@clisp.org>
18959 Remove stat module & update lstat.
18960 * config/srclist.txt (libc sources): Remove stat.
18962 2005-06-24 Derek Price <derek@ximbiot.com>
18963 and Bruno Haible <bruno@clisp.org>
18965 Remove stat module & update lstat.
18966 * MODULES.html.sh (stat): Remove.
18967 * MODULES.html: Regenerated.
18968 * modules/lstat (Description): Correct function name.
18969 (Files): Add "lstat.h".
18970 (Depends-on): Remove stat, add xalloc, stat-macros.
18971 * modules/stat: Remove this file.
18972 (Include): Add "lstat.h", remove <sys/stat.h>.
18974 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
18976 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
18977 (ranged_convert): Don't save conversion in a temporary struct.
18978 This causes a warning with GCC 4.0.0, and anyway in the typical
18979 case it's not worth the extra 100 bytes or so of code.
18980 (ranged_convert, __mktime_internal): When calling a function via a
18981 pointer P, use P () rather than (*P) (), as we now assume C89 or
18984 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
18986 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
18987 "who -r" failed to give output. Problem reported by Tim Waugh.
18989 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
18990 (xcalloc): Use it to avoid needless tests.
18991 Problem reported by Jim Meyering.
18993 2005-06-20 Derek Price <derek@ximbiot.com>
18995 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
18996 unnecessary for Autoconfs > 2.59c.
18998 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19000 * lib/argp.h (__option_is_short): Check upper limit of
19001 __key. Isprint() requires its argument to have the value
19002 of an unsigned char or EOF.
19004 2005-06-16 Jim Meyering <jim@meyering.net>
19006 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
19007 when either N or S is zero.
19009 2005-06-16 Derek Price <derek@ximbiot.com>
19011 * m4/bison.m4: Declare YACC & YFLAGS precious.
19013 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
19015 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
19016 multibyte string or pattern, fall back on unibyte matching.
19017 Problem reported by James Youngman.
19019 2005-06-08 Bruno Haible <bruno@clisp.org>
19021 * modules/csharpcomp: New file.
19022 * MODULES.html.sh (C#): Add csharpcomp.
19024 2005-06-08 Bruno Haible <bruno@clisp.org>
19026 * m4/csharpcomp.m4: New file, from GNU gettext.
19028 2005-06-08 Bruno Haible <bruno@clisp.org>
19030 * lib/csharpcomp.h: New file, from GNU gettext.
19031 * lib/csharpcomp.c: New file, from GNU gettext.
19032 * lib/csharpcomp.sh.in: New file, from GNU gettext.
19034 2005-06-08 Bruno Haible <bruno@clisp.org>
19036 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
19039 2005-06-07 Derek Price <derek@ximbiot.com>
19042 * lib/glob_.h: Indent nested #ifdef.
19044 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19046 Sync from coreutils.
19047 Use "file name" when talking about file names, instead of "filename"
19048 or "path", as per the GNU coding standards.
19049 * lib/mkdir-p.c: Renamed from makepath.c.
19050 (make_dir_parents): Renamed from make_path. All callers changed.
19051 * lib/mkdir-p.h: Likewise. All includers changed.
19052 * lib/filenamecat.c: Renamed from path-concat.c.
19053 (file_name_concat): Renamed from path_concat. All callers changed.
19054 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
19055 * lib/filenamecat.h: Likewise. All includers changed.
19056 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
19057 in comments or local variable names.
19058 * lib/basename.c: Likewise.
19059 * lib/canonicalize.c, canonicalize.h: Likewise.
19060 * lib/dirname.c, dirname.h: Likewise.
19061 * lib/euidaccess.c: Likewise.
19062 * lib/exclude.c: Likewise
19063 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
19064 * lib/fsusage.c, fsuage.h: Likewise.
19065 * lib/fts.c, fts_.h: Likewise.
19066 * lib/getcwd.c: Likewise.
19067 * lib/getloadavg.c: Likewise.
19068 * lib/mkstemp.c: Likewise.
19069 * lib/mountlist.c, mountlist.h: Likewise.
19070 * lib/openat.c, openat.h: Likewise.
19071 * lib/readlink-stub.c: Likewise.
19072 * lib/readutmp.c, readutmp.h: Likewise.
19073 * lib/rename.c: Likewise.
19074 * lib/rmdir.c: Likewise.
19075 * lib/same.c: Likewise.
19076 * lib/savedir.c: Likewise.
19077 * lib/stripslash.c: Likewise.
19078 * lib/tempname.c: Likewise.
19079 * lib/xreadlink.c: Likewise.
19080 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
19082 * lib/exclude.h: Likewise.
19084 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
19085 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19086 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
19087 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19088 * lib/pathmax.h: Include <limits.h> unconditionally, since other
19089 files have been getting away with it for years (MORE/BSD 4.3
19091 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
19092 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
19094 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
19095 Define to 256, not 255, as per modern POSIX.
19097 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19099 Sync from coreutils.
19100 Use "file name" when talking about file names, instead of "filename"
19101 or "path", as per the GNU coding standards.
19102 * MODULES.html.sh: mkdir-p renamed from makepath.
19103 filenamecat renamed from path-concat.
19104 * modules/filenamecat: Renamed from modules/path-concat.
19105 (Files): filenamecat.h and filenamecat.c renamed from
19106 path-concat.h and path-concat.c.
19107 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
19108 (Include): filenamecat.h, not path-concat.h.
19109 * modules/mkdir-p: Renamed from modules/makepath.
19110 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
19112 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
19113 (Include): mkdir-p.h, not makepath.h.
19115 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
19117 Sync from coreutils.
19118 * m4/mkdir-p.m4: Renamed from makepath.m4.
19119 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
19120 Rename files from makepath.c to mkdir-p.c, and from
19121 makepath.h to mkdir-p.h.
19122 * m4/filenamecat.m4: Renamed from path-concat.m4.
19123 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
19124 Rename files from path-concat.c to filenamecat.c,
19125 and from path-concat.h to filenamecat.h.
19126 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
19127 "file name" in local variables or comments.
19128 * m4/rename.m4: Likewise.
19130 2005-06-01 Bruno Haible <bruno@clisp.org>
19132 * modules/csharpexec: New file.
19133 * MODULES.html.sh (C#): New section.
19135 2005-06-01 Bruno Haible <bruno@clisp.org>
19137 * m4/csharp.m4: New file, from GNU gettext.
19138 * m4/csharpexec.m4: New file, from GNU gettext.
19140 2005-06-01 Bruno Haible <bruno@clisp.org>
19142 * lib/csharpexec.h: New file, from GNU gettext.
19143 * lib/csharpexec.c: New file, from GNU gettext.
19144 * lib/csharpexec.sh.in: New file, from GNU gettext.
19146 2005-05-31 Derek Price <derek@ximbiot.com>
19147 Paul Eggert <eggert@cs.ucla.edu>
19150 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19152 2005-05-31 Derek Price <derek@ximbiot.com>
19153 Paul Eggert <eggert@cs.ucla.edu>
19156 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
19158 2005-05-29 Derek Price <derek@ximbiot.com>
19160 * config/srclist.txt (glob_.h, glob.c): Add these files.
19162 2005-05-29 Derek Price <derek@ximbiot.com>
19164 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
19165 * modules/glob: New file.
19166 * modules/getlogin_r: Add link to POSIX spec in description.
19168 2005-05-29 Derek Price <derek@ximbiot.com>
19169 Paul Eggert <eggert@cs.ucla.edu>
19171 * m4/glob.m4: New file.
19173 2005-05-29 Derek Price <derek@ximbiot.com>
19174 Paul Eggert <eggert@cs.ucla.edu>
19176 * lib/glob_.h, lib/glob.c: New files.
19178 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19180 * modules/fts (Files): Remove m4/inttypes-pri.m4.
19181 * modules/fts-lgpl (Depends-on): Remove gettext.
19183 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19185 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
19186 and don't require gt_INTTYPES_PRI.
19188 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
19190 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
19192 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
19193 the configuration hassle isn't worth it.
19194 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
19195 (LONGEST_MODIFIER, PRIuMAX): Remove.
19197 2005-05-27 Bruno Haible <bruno@clisp.org>
19199 * lib/getlogin_r.h: Remove second include of <stddef.h>.
19201 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
19203 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
19204 _POSIX_PTHREAD_SEMANTICS for Solaris.
19206 2005-05-25 Derek Price <derek@ximbiot.com>
19208 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
19210 2005-05-25 Derek Price <derek@ximbiot.com>
19211 Paul Eggert <eggert@cs.ucla.edu>
19213 * modules/getlogin_r, m4/getlogin_r.m4: New files.
19214 * lib/getlogin_r.c, getlogin_r.h: New files.
19216 2005-05-25 Bruno Haible <bruno@clisp.org>
19217 Derek Price <derek@ximbiot.com>
19219 * lib/getlogin_r.h: Simplify API documentation.
19221 2005-05-23 Derek Price <derek@ximbiot.com>
19223 * modules/minmax (Files): Add m4/minmax.m4.
19224 (configure.ac): Add gl_MINMAX.
19226 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
19228 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
19229 so that unistd-safer.h (GPL'ed code) need not be included.
19231 2005-05-22 Bruno Haible <bruno@clisp.org>
19233 * m4/minmax.m4: New file.
19234 Based on a patch by Derek Price <derek@ximbiot.com>.
19236 2005-05-22 Bruno Haible <bruno@clisp.org>
19238 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
19239 (INT64_MIN): Fix definition.
19240 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
19242 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
19243 NEED_SIGNED_INT_TYPES.
19245 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
19246 HAVE_SYSTEM_INTTYPES.
19248 2005-05-22 Bruno Haible <bruno@clisp.org>
19250 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
19251 Also include <sys/param.h> if it defines MIN, MAX.
19252 Based on a patch by Derek Price <derek@ximbiot.com>.
19254 2005-05-21 Jim Meyering <jim@meyering.net>
19256 * modules/fts (Files): Add m4/inttypes-pri.m4.
19257 (Depends-on): Add lstat and remove gettext. Alphabetize.
19259 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19262 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
19263 (setup_dir, free_dir): New functions.
19264 (enter_dir, leave_dir): Define trivial
19265 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
19266 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
19267 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
19268 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
19269 Move to fts-cycle.c.
19270 (fts_open): Use setup_dir.
19271 (fts_close): Use free_dir.
19272 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
19273 This adds a label and some gotos, but the alternatives were messier.
19274 Check for memory allocation failure when entering a dir.
19275 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
19276 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
19277 (FTS): New member fts_cycle, that is a union that contains the
19278 old active_dir_ht and cycle_state. All uses changed to mention
19279 fts_cycle.ht and fts_cycle.state.
19280 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
19281 fts.c, with the following changes:
19282 (setup_dir, free_dir): New functions.
19283 (enter_dir): Now returns bool. Return true if successful, false
19284 if memory exhausted. All callers changed.
19285 Do not bother partly cleaning up on
19286 memory allocation failure; that is free_dir's job.
19287 However, free ad if hash_insert fails, to avoid memory leak.
19288 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
19289 fts->fts_options to see which union member to use.
19291 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19293 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
19294 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
19296 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
19298 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
19300 2005-05-20 Jim Meyering <jim@meyering.net>
19302 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
19303 Now a macro, to pacify GCC.
19305 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
19307 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
19310 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
19312 * lib/chown.c (rpl_chown): Return -1 on failure.
19314 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
19316 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
19317 Don't check for stddef.h.
19318 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
19319 don't use its results.
19320 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
19321 since we include them unconditionally. Don't require
19322 AM_STDBOOL_H, since stdbool is a prerequisite.
19323 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
19324 since we assume C89 or better.
19325 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
19326 as we don't use their results.
19327 Don't check for fchdir, memmove, memset, strrchr, as we use
19328 them unconditionally.
19329 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
19330 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
19332 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
19334 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
19335 Include <stddef.h> unconditionally, since we assume C89 now.
19336 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
19337 * lib/fts.c: Include fts_.h first, to check interface.
19338 Do not include intprops.h; no longer needed.
19339 Include cycle-check.h and hash.h, since fts_.h no longer does.
19340 Remove unnecessary casts of closedir to void.
19341 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
19342 decide whether to decrement nlinks.
19343 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
19344 (FTS): Use struct hash_table * instead of Hash_table, so that
19345 we no longer need to include hash.h here.
19347 2005-05-18 Jim Meyering <jim@meyering.net>
19349 * modules/dirfd (License): Change to LGPL. Most of the code
19350 is already in the public domain.
19352 2005-05-18 Jim Meyering <jim@meyering.net>
19354 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
19355 Reported by Yoann Vandoorselaere.
19357 2005-05-17 Jim Meyering <jim@meyering.net>
19359 * m4/fts.m4: New file, from coreutils.
19361 2005-05-17 Jim Meyering <jim@meyering.net>
19363 * lib/fts.c, lib/fts_.h: New files, from coreutils.
19365 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
19367 Sync from coreutils.
19368 * m4/unlinkdir.m4: New file.
19370 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
19372 Sync from coreutils.
19373 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
19374 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
19375 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
19376 White space changes only.
19377 * lib/makepath.c (make_path): Port to hosts where leading "//" is
19379 * lib/yesno.c: Include getline.h, not ctype.h.
19380 (yesno): Don't remove leading white space; POSIX doesn't allow it.
19381 Use getline to remove arbitrary restriction on response length.
19383 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
19385 * config/srclist-update: Spell out "Street" in FSF postal
19386 mail address; this is the style the FSF seems to prefer.
19388 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
19389 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
19390 this updates FSF postal mail address.
19392 Sync from coreutils.
19393 * modules/unlinkdir: New file.
19394 * modules/yesno (Depends-on): Add getline.
19395 * MODULES.html.sh (File system functions): Add unlinkdir.
19397 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
19399 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
19401 Change the initial comment to refer to GPL, not LGPL.
19402 gnulib-tool will change it to LGPL as needed.
19404 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
19405 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
19406 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
19407 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
19408 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
19409 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
19410 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
19411 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
19412 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
19413 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
19414 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
19415 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
19416 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
19417 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
19418 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
19419 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
19420 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
19421 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
19422 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
19423 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
19424 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
19425 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
19426 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
19427 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
19428 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
19429 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
19430 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
19431 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
19432 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
19433 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
19434 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
19435 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
19436 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
19437 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
19438 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
19439 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
19440 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
19441 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
19442 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
19443 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
19444 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
19445 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
19446 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
19447 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
19448 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
19449 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
19450 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
19451 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
19452 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
19453 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
19454 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
19455 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
19456 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
19457 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
19458 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
19459 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
19460 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
19461 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
19462 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
19463 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
19464 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
19465 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
19466 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
19467 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
19468 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
19469 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
19470 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
19471 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
19472 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
19473 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
19474 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
19475 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
19476 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
19477 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
19478 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
19479 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
19480 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
19481 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
19482 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
19483 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
19484 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
19485 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
19486 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
19487 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
19488 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
19489 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
19490 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
19491 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
19492 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
19493 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
19494 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
19495 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
19496 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
19497 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
19498 lib/yesno.c, lib/yesno.h:
19499 Update FSF postal mail address.
19501 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
19503 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
19504 tests/test-memmem.c, tests/test-stpncpy.c:
19505 Update FSF postal mail address.
19507 2005-05-13 Bruno Haible <bruno@clisp.org>
19509 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
19510 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
19511 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
19512 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
19513 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
19514 Add support for 64-bit integers in the MSVC compiler.
19516 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19518 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
19520 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
19522 * gnulib-tool (func_import): Sort and uniquify recommended includes.
19524 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
19526 * doc/getdate.texi (General date syntax): Don't say that date
19527 date --iso-8601=ns generates acceptable dates; it doesn't yet.
19528 Problem reported by Nic Ferrier.
19530 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19532 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
19533 specified in ai_socktype. Fix invalid ai_protocol
19534 check. ai_protocol is usually set to 0 or depending on
19535 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
19536 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
19537 ai_socktype / ai_protocol in the returned addrinfo structure.
19539 2005-05-10 Simon Josefsson <jas@extundo.com>
19541 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
19542 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19544 2005-05-10 Karl Berry <karl@gnu.org>
19546 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
19547 (from http://www.gnu.org/licenses).
19548 * doc/COPYING.LIB: also rename to COPYING.LESSER.
19549 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
19552 2005-05-10 Karl Berry <karl@gnu.org>
19554 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
19555 (COPYING.DOC): remove.
19557 * config/srclist-update: new FSF address.
19559 2005-05-10 Derek Price <derek@ximbiot.com>
19561 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
19564 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19565 Bruno Haible <bruno@clisp.org>
19567 * modules/inet_ntop: New file.
19568 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19571 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19572 Bruno Haible <bruno@clisp.org>
19574 * m4/inet_ntop.m4: New file.
19576 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19577 Bruno Haible <bruno@clisp.org>
19579 * lib/inet_ntop.h: New file.
19580 * lib/inet_ntop.c: New file, from glibc with modifications.
19582 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
19584 * modules/time_r (License): Change to LGPL.
19585 * modules/extensions (License): Change to LGPL. Actually,
19586 the license is more permissive than that, but currently gnulib-tool
19587 doesn't know how to handle more-permissive licenses.
19589 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
19590 Problem reported by Dave Love.
19592 2005-05-08 Jim Meyering <jim@meyering.net>
19594 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
19597 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
19599 * modules/argmatch (Depends-on): Add stdbool.
19600 * modules/backupfile (Depends-on): Likewise.
19601 * modules/chdir-long (Depends-on): Likewise.
19602 * modules/closeout (Depends-on): Likewise.
19603 * modules/cycle-check (Depends-on): Likewise.
19604 * modules/dirname (Depends-on): Likewise.
19605 * modules/fnmatch (Depends-on): Likewise.
19606 * modules/fsusage (Depends-on): Likewise.
19607 * modules/fwriteerror (Depends-on): Likewise.
19608 * modules/getcwd (Depends-on): Likewise.
19609 * modules/getloadavg (Depends-on): Likewise.
19610 * modules/hard-locale (Depends-on): Likewise.
19611 * modules/makepath (Depends-on): Likewise.
19612 * modules/mountlist (Depends-on): Likewise.
19613 * modules/nanosleep (Depends-on): Likewise.
19614 * modules/posixtm (Depends-on): Likewise.
19615 * modules/quotearg (Depends-on): Likewise.
19616 * modules/readtokens (Depends-on): Likewise.
19617 * modules/readtokens0 (Depends-on): Likewise.
19618 * modules/readutmp (Depends-on): Likewise.
19619 * modules/save-cwd (Depends-on): Likewise.
19620 * modules/strftime (Depends-on): Likewise.
19621 * modules/userspec (Depends-on): Likewise.
19622 * modules/utimecmp (Depends-on): Likewise.
19623 * modules/xgetcwd (Depends-on): Likewise.
19624 * modules/xnanosleep (Depends-on): Likewise.
19625 * modules/xstrtod (Depends-on): Likewise.
19626 * modules/yesno (Depends-on): Likewise.
19628 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
19630 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
19633 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
19635 Merge from coreutils. Among other things,
19636 add bulletproofing for cases where stdin, stdout, or stderr are closed.
19637 * lib/fd-safer.c: New file.
19638 * lib/fcntl-safer.h, open-safer.c: Remove.
19639 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
19640 * lib/dup-safer.c: Include unistd-safer.h first.
19641 Don't include errno.h.
19642 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
19643 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
19644 * lib/file-type.c: Rely on file-type.h change.
19645 * lib/getloadavg.c: Include unistd-safer.h.
19646 (getloadavg): Use safer open.
19647 * lib/getusershell.c: Include "stdio-safer.h".
19648 (getusershell): Use safer fopen.
19649 * lib/long-options.c (long_options): Use NULL rather than 0.
19650 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
19652 * lib/modechange.c: Likewise.
19653 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
19654 (MODE_DONE): New constant.
19655 (struct mode_change): Remove 'next' member.
19656 (make_node_op_equals): New function; like the old one of the
19657 same name, except it allocates an array.
19658 (mode_compile, mode_create_from_ref): Use it.
19659 (mode_compile): Allocate result as an array, not a linked list.
19660 Parse octal string ourself, so that we catch mistakes like "+0".
19661 (mode_adjust): Arg is an array, not a linked list.
19662 * lib/modechange.c: Include stat-macros.h, xalloc.h.
19663 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
19664 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
19665 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
19666 Remove. This is now stat-macros.h's job.
19667 (talloc): Remove. All callers replaced by xalloc, so that
19668 our invokers don't have to worry about reporting memory failures.
19669 (make_node_op_equals): Remove.
19670 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19672 (struct mode_change): Moved here from modechange.h.
19673 (mode_append_entry): Remove.
19674 (mode_compile): Remove MASKED_OPS arg, since it encouraged
19675 apps to have incorrect behavior. Use simpler algorithm for head
19676 and tail. Don't futz with umask; that's now the job of mode_adjust.
19677 Detect more invalid usages rather than having somewhat-random behavior.
19678 Don't insert an "a=" action, as that leads to incorrect behavior.
19679 (mode_compile, mode_create_from_ref): Return NULL on error instead
19680 of an enum, since now there's only one way to have an error. All
19682 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
19683 at the correct time. Simplify calculation of "+u" and its ilk.
19684 Don't mishandle "+X".
19685 (mode_free): Remove "register" and localize decls.
19686 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
19687 (struct mode_change): Move to modechange.c; callers don't
19688 need to see this stuff.
19689 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
19690 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
19691 (mode_change, mode_adjust): Reflect the new signatures noted above.
19692 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
19693 that might redefine system include files.
19694 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
19695 (my_usleep): Use NULL rather than (void *) 0.
19696 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
19697 Use siginterrupt to specify that system calls should be interrupted.
19698 (rpl_nanosleep): Move initialization of suspended closer to call of
19700 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
19701 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
19702 (desirable_utmp_entry): New function.
19703 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
19704 using x2nrealloc, to simplify logic.
19705 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
19706 size calculation. Do not assume utmp file is a regular file.
19707 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
19708 (READ_UTMP_CHECK_PIDS): New constant.
19709 * lib/save-cwd.c: Include unistd-safer.h.
19710 (save_cwd): Use fd_safer.
19711 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
19712 [!_LIBC] Include "stat-macros.h" instead.
19713 * lib/unistd-safer.h (fd_safer): New decl.
19715 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
19717 * modules/getloadavg (Depends-on): Add unistd-safer.
19718 * modules/getusershell (Depends-on): Add stdio-safer.
19719 * modules/lstat (Depends-on): Remove xalloc.
19720 * modules/mkstemp (Depends-on): Add stat-macros.
19721 * modules/modechange (Depends-on): Remove xstrtol.
19722 Add stat-macros, xalloc.
19723 * modules/save-cwd (Depends-on): Add unistd-safer.
19724 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
19725 * modules/unistd-safer (Files): Add lib/fd-safer.c
19726 (Makefile.am): Remove lib_SOURCES.
19728 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
19729 Remove fcntl-safer; unistd-safer supersedes it.
19731 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
19733 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
19735 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
19736 (gl_PREREQ_CHOWN): Remove.
19737 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
19738 it. Don't require AC_HEADER_STAT.
19739 (gl_PREREQ_LSTAT): Remove.
19740 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
19741 Don't require AC_HEADER_STAT.
19742 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
19743 (gl_PREREQ_RMDIR): Remove.
19744 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
19745 mention stat-macros.h or AC_HEADER_STAT, since we'll make
19746 the stat-macros module a prerequisite.
19747 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
19748 * m4/filemode.m4 (gl_FILEMODE): Likewise.
19749 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
19750 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
19751 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
19753 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
19754 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
19756 * m4/fcntl-safer.m4: Remove.
19757 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
19758 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
19759 Invoke gl_PREREQ_FD_SAFER.
19760 (gl_PREREQ_FD_SAFER): New macro.
19761 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
19762 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
19763 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
19764 Remove duplicate call to AC_LIBOBJ(readutmp).
19765 (gl_PREREQ_READUTMP): Remove. All uses inlined.
19767 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
19768 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
19770 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
19772 * MODULES.html.sh (Misc): Add byteswap.
19774 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
19776 * modules/getcwd (Depends-on): Add extensions.
19777 * modules/openat (Depends-on): Likewise.
19779 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
19781 * modules/byteswap: New file.
19783 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
19785 * m4/byteswap.m4: New file.
19787 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
19789 * lib/byteswap_.h: New file.
19791 2005-04-25 Karl Berry <karl@gnu.org>
19793 * m4/gettext.m4: Update from GNU gettext 0.14.4.
19795 2005-04-25 Albert Chin <china@thewrittenword.com>
19797 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
19800 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
19802 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
19803 (func_ln_if_changed) Remove forcibly for no error message
19804 in case file does not exist.
19806 2005-04-19 Simon Josefsson <jas@extundo.com>
19808 * gnulib-tool (Options): Make --symlink mean --symbolic.
19810 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
19812 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
19814 2005-04-16 Simon Josefsson <jas@extundo.com>
19816 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
19818 2005-04-15 Simon Josefsson <jas@extundo.com>
19820 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
19822 2005-04-15 Simon Josefsson <jas@extundo.com>
19824 * gnulib-tool: Rename --symlink to --symbolic.
19826 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
19828 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
19829 symbolic links to files instead of copying/moving. Add --aux-dir,
19830 specifying directory relative --dir where auxiliary build tools
19833 2005-04-14 Bruno Haible <bruno@clisp.org>
19835 * modules/allocsa (License): Change to LGPL.
19836 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19838 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
19840 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
19841 that "UTC +1 second" continues to work. Problem reported
19842 by Dmitry V. Levin.
19843 (relunit_snumber): New rule.
19846 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
19848 * lib/getdate.y (universal_time_zone_table): New constant.
19849 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
19850 universal_time_zone_table.
19851 (lookup_zone): Prefer universal_time_zone_table to
19852 local_time_zone_table, so that "GMT" time stamps are allowed in
19853 London during the summer. Problem reported by Ian Abbott.
19855 2005-04-12 Jim Meyering <jim@meyering.net>
19857 * lib/human.c (humblock): Set *options even when returning due to
19858 xstrtoumax conversion failure. Thanks to a used-uninitialized
19859 warning from gcc-4.
19861 2005-04-09 Jim Meyering <jim@meyering.net>
19863 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
19864 -Wuninitialized: initialize tm0.tm_year.
19866 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
19868 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
19869 count, since there's no maximum. All uses changed.
19870 Add member dsts_seen.
19871 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
19873 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
19874 Use pc_rels_seen to decide whther a date is absolute.
19876 * lib/getdate.y (number): Don't overwrite year.
19877 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
19880 2005-04-02 Simon Josefsson <jas@extundo.com>
19882 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
19883 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
19885 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
19887 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
19888 where no absolute path name can be longer than PATH_MAX.
19890 2005-03-27 Jim Meyering <jim@meyering.net>
19892 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
19894 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
19896 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
19897 "one's complement" -> "ones' complement" in comment, as per Knuth.
19898 "value of type" -> "type or expression" in comment.
19899 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
19901 2005-03-26 Jim Meyering <jim@meyering.net>
19904 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
19905 Correct typos: s/or/of/.
19907 2005-03-26 Jim Meyering <jim@meyering.net>
19909 * modules/check-include-files: Move to ../ and rename to...
19910 * check-module: ...this.
19912 2005-03-25 Jim Meyering <jim@meyering.net>
19914 * modules/xvasprintf (Files): Add xalloc.h.
19916 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
19918 * modules/gettext (Files): config/config.rpath ->
19919 build-aux/config.rpath
19920 * modules/iconv (Files): Likewise.
19921 Problem reported by Oskar Liljeblad.
19923 2005-03-23 Jim Meyering <jim@meyering.net>
19925 * modules/check-include-files: New script to check for
19926 missing dependencies, multiple includes, etc.
19928 * modules/c-strtold (Depends-on): Add xalloc.
19929 * modules/c-strtod (Depends-on): Add xalloc.
19930 * modules/hash (Depends-on): Add xalloc.
19931 (Files): Remove lib/xalloc.h.
19933 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
19934 * modules/userspec (Files): Add lib/inttostr.h.
19936 2005-03-23 Jim Meyering <jim@meyering.net>
19938 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
19940 2005-03-22 Jim Meyering <jim@meyering.net>
19942 * modules/stat-macros: New module.
19943 * modules/canonicalize, modules/euidaccess, modules/file-type,
19944 * modules/filemode, modules/lchown, modules/makepath,
19945 * modules/rmdir, modules/stat: Depend on new stat-macros module
19946 rather than listing lib/stat-macros.h manually.
19947 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
19949 2005-03-22 Jim Meyering <jim@meyering.net>
19951 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
19953 2005-03-22 Bruno Haible <bruno@clisp.org>
19955 * config/srclist.txt: Replace target directory 'config' with
19957 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
19958 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
19961 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
19963 * modules/chdir-long (Depends-on): Add mempcpy.
19965 * modules/acl, modules/backupfile, modules/c-strtod,
19966 modules/c-strtold, modules/canon-host, modules/canonicalize,
19967 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
19968 modules/exclude, modules/exitfail, modules/file-type,
19969 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
19970 modules/getdate, modules/getline, modules/getpagesize,
19971 modules/getpass, modules/getugroups, modules/group-member,
19972 modules/hard-locale, modules/hash, modules/human, modules/idcache,
19973 modules/inttostr, modules/long-options, modules/makepath,
19974 modules/md5, modules/memcasecmp, modules/memcoll,
19975 modules/modechange, modules/mountlist, modules/path-concat,
19976 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
19977 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
19978 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
19979 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
19980 modules/strftime, modules/strndup, modules/strverscmp,
19981 modules/timespec, modules/unlocked-io, modules/userspec,
19982 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
19984 Remove lib_SOURCES line from Makefile.am section, as this is now
19985 done automatically by the corresponding Autoconf macro.
19987 2005-03-21 Jim Meyering <jim@meyering.net>
19989 Changes imported from coreutils.
19991 * lib/cycle-check.c: Don't include xalloc.h.
19993 * lib/path-concat.c: Don't include assert.h.
19994 (path_concat): Remove assertion that would have triggered
19995 for ABASE starting with more than one slash.
19996 Reported by Andreas Schwab.
19998 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
19999 properly when ABASE is an absolute file name.
20000 Correct the description of this function.
20001 Include <assert.h>.
20002 Add an assertion and a test driver.
20003 This fixes a bug introduced on 2004-07-02.
20004 Andreas Schwab reported the resulting failure of cp --parents:
20005 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
20007 2005-03-21 Jim Meyering <jim@meyering.net>
20009 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
20010 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
20012 2005-03-21 Jim Meyering <jim@meyering.net>
20013 and Paul Eggert <eggert@cs.ucla.edu>
20015 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
20016 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
20017 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
20018 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
20019 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
20020 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
20021 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
20022 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
20023 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
20024 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
20025 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
20026 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
20027 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
20028 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
20029 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
20030 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
20031 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
20034 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
20036 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
20037 (which shouldn't happen), generate nothing instead of returning 0
20038 immediately, so that nstrftime (NULL, ...) doesn't return 0.
20040 2005-03-16 Bruno Haible <bruno@clisp.org>
20042 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
20043 HAVE_LONGLONG_64BIT.
20045 2005-03-16 Bruno Haible <bruno@clisp.org>
20047 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
20048 HAVE_LONGLONG_64BIT.
20050 2005-03-16 Bruno Haible <bruno@clisp.org>
20052 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
20053 HAVE_LONGLONG_64BIT.
20055 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
20057 * lib/strftime.c (my_strftime): Prepend space to format so that we can
20058 reliably distinguish strftime failure from empty output on POSIX
20061 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
20063 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
20064 (iconv_string): Don't guess a size-zero buffer, as that might cause
20065 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
20066 result would be 'too large', where 'too large' is (heuristically)
20067 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
20068 overflow concerns. This will prevent some unwanted malloc failures
20069 when the inputs are very large.
20071 2005-03-15 Karl Berry <karl@gnu.org>
20073 * config/srclist.txt (config.rpath): from gettext.
20074 * config/config.rpath: update.
20076 2005-03-15 Bruno Haible <bruno@clisp.org>
20078 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
20081 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
20084 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
20087 2005-03-14 Simon Josefsson <jas@extundo.com>
20089 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
20092 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
20094 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
20095 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
20097 * lib/strtol.c: Likewise.
20099 2005-03-14 Jim Meyering <jim@meyering.net>
20101 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
20102 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
20103 to be nonzero so that we (and caller) can detect the difference
20104 between a valid zero-length expansion and an error return, even
20105 when the underlying strftime fails before writing anything into
20108 2005-03-14 Bruno Haible <bruno@clisp.org>
20110 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
20111 Update from GNU gettext 0.14.3.
20113 2005-03-10 Jim Meyering <jim@meyering.net>
20115 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
20117 2005-03-10 Jim Meyering <jim@meyering.net>
20119 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
20120 so that this module works on systems without fchdir.
20122 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
20124 Factor int-properties macros into a single file, except for
20125 glibc-related files.
20126 * lib/intprops.h: New file.
20127 * lib/getloadavg.c: Include it instead of limits.h.
20128 (INT_STRLEN_BOUND): Remove.
20129 * lib/human.c: Include intprops.h.
20130 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
20131 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
20133 * lib/inttostr.h: Include intprops.h instead of limits.h.
20134 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
20135 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
20136 for consistency with intprops.h.
20137 (time_t_is_integer, twos_complement_arithmetic): Use them.
20138 * lib/sig2str.h: Include <signal.h>, intprops.h.
20139 (INT_STRLEN_BOUND): Remove.
20140 * lib/strftime.c (TYPE_SIGNED): Remove.
20141 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
20142 * lib/strtol.c: Adjust comments to match intprops.h.
20143 * lib/userspec.c: Include intprops.h.
20144 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
20145 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
20146 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
20147 instead of rolling our own expressions.
20148 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
20150 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
20152 (my_strftime): Do not mishandle years close to INT_MAX, by doing
20153 the right thing even if adding 1900 would overflow. Similarly
20154 for tm_mon + 1 and tm_yday + 1.
20155 Make %Y always equivalent to %C%y, and similarly for %G and %g.
20156 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
20157 (DO_SIGNED_NUMBER): New macro.
20158 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
20160 2005-03-07 Bruno Haible <bruno@clisp.org>
20162 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
20164 2005-03-07 Bruno Haible <bruno@clisp.org>
20166 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
20168 2005-03-04 Derek R. Price <derek@ximbiot.com>
20170 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
20171 (func_import): Only replace files via --import when they have actually
20174 2005-03-03 Derek R. Price <derek@ximbiot.com>
20176 * m4/mmap-anon.m4: New file.
20177 * m4/pagealign_alloc.m4: New file.
20179 2005-03-03 Derek R. Price <derek@ximbiot.com>
20180 Bruno Haible <bruno@clisp.org>
20182 * modules/pagealign_alloc: New file.
20183 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
20185 2005-03-03 Derek R. Price <derek@ximbiot.com>
20186 Bruno Haible <bruno@clisp.org>
20188 * lib/pagealign_alloc.h: New file.
20189 * lib/pagealign_alloc.c: New file.
20191 2005-03-03 Bruno Haible <bruno@clisp.org>
20193 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
20194 Use an all-permissive copyright notice, recommended by RMS.
20196 2005-03-02 Bruno Haible <bruno@clisp.org>
20198 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
20199 of AIX, the replacement has to be done only after <string.h> is
20200 included, therefore not in config.h. stpncpy.h does the replacement,
20201 and stpncpy.c uses it.
20203 2005-03-02 Bruno Haible <bruno@clisp.org>
20205 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
20208 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20210 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
20211 The workaround isn't strictly needed for POSIX conformance, and
20212 it's too much of a pain to configure and maintain. We'll ask
20213 people to fix their kernels instead.
20214 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
20215 (NANOSLEEP_BUG_WORKAROUND): Remove.
20216 (xnanosleep): Remove the workaround.
20218 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20220 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
20221 Reported by Derek Price.
20222 (Include): Add "timespec.h".
20224 * modules/xnanosleep (Depends-on): Remove gethrxtime.
20226 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
20228 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
20229 to detect nanosleep bug.
20231 2005-03-01 Bruno Haible <bruno@clisp.org>
20233 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
20235 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
20237 * modules/gethrxtime: New file.
20238 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
20239 (Depends-on): Add gethrxtime.
20240 (configure.ac): Add gl_XNANOSLEEP.
20241 (Makefile.am): Remove lib_SOURCES line.
20243 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
20245 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
20246 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
20248 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
20250 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
20251 * lib/timespec.h (gettime): Return void, since it always
20252 succeeds now. All uses changed.
20253 * lib/gettime.c (gettime) Likewise.
20254 [HAVE_NANOTIME]: Prefer nanotime.
20255 Assume gettimeofday succeeds, as POSIX requires.
20256 Assime time () succeeds, since other code already does.
20257 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
20258 (timespec_subtract): Remove.
20259 (NANOSLEEP_BUG_WORKAROUND): New constant.
20260 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
20261 things considerably. Use it only on GNU/Linux hosts, since the
20262 workaround shouldn't be needed elsewhere.
20264 2005-02-24 Bruno Haible <bruno@clisp.org>
20266 * modules/gettext (Files): Add m4/glibc2.m4.
20268 2005-02-24 Bruno Haible <bruno@clisp.org>
20270 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
20271 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
20273 Update from GNU gettext 0.14.2.
20274 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
20276 2005-02-24 Bruno Haible <bruno@clisp.org>
20278 * lib/localcharset.c: Update from GNU gettext 0.14.2.
20279 * lib/config.charset: Update from GNU gettext 0.14.2.
20281 2005-02-24 Bruno Haible <bruno@clisp.org>
20283 * lib/gettext.h: Update from GNU gettext 0.14.2.
20285 2005-02-23 Simon Josefsson <jas@extundo.com>
20287 * m4/iconvme.m4: New file.
20289 2005-02-23 Jim Meyering <jim@meyering.net>
20291 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
20293 Thanks to Bruno Haible for catching it.
20295 2005-02-22 Simon Josefsson <jas@extundo.com>
20297 * modules/iconvme: New file.
20299 * MODULES.html.sh: Add iconvme.
20301 2005-02-22 Simon Josefsson <jas@extundo.com>
20303 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
20305 2005-02-22 Simon Josefsson <jas@extundo.com>
20307 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
20309 2005-02-22 Jim Meyering <jim@meyering.net>
20311 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
20314 2005-02-20 Neil Conway <neilc@samurai.com>
20316 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
20317 returned by OSX/Darwin if the specified buffer is not large
20318 enough for the hostname.
20320 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20322 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
20323 pass it to _help, otherwise the latter coredumps trying to
20324 dereference state.root_argp.
20326 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20328 * modules/chdir-long (Depends-on): Add memrchr.
20329 * modules/memrchr (Files): Add lib/memrchr.h.
20330 (Include): "memrchr.h".
20332 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20334 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
20336 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
20338 * lib/memrchr.h: New file.
20339 * lib/chdir-long.c: Include it.
20340 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
20341 Don't bother including stddef.h.
20343 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
20345 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
20347 Include <sys/types.h>, for dev_t.
20348 (ME_DUMMY, ME_REMOTE): Move from here....
20349 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
20350 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
20352 Include mountlist.h first, to test the interface.
20354 2005-01-29 Bruno Haible <bruno@clisp.org>
20356 * lib/progname.c (program_name): Initialize.
20357 Needed when linking statically on MacOS X.
20359 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
20361 Sync from coreutils.
20362 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
20363 (Depends-on): Add c-strtod.
20364 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
20366 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
20368 Sync from coreutils.
20369 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
20371 Remove files that are specific to coreutils.
20372 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
20374 2005-01-28 Bruno Haible <bruno@clisp.org>
20376 * modules/javacomp: New file.
20377 * MODULES.html.sh (Java): Add javacomp.
20379 2005-01-28 Bruno Haible <bruno@clisp.org>
20381 * m4/javacomp.m4: New file, from GNU gettext.
20383 2005-01-28 Bruno Haible <bruno@clisp.org>
20385 * lib/javacomp.sh.in: New file, from GNU gettext.
20386 * lib/javacomp.h: New file, from GNU gettext.
20387 * lib/javacomp.c: New file, from GNU gettext.
20389 2005-01-26 Simon Josefsson <jas@extundo.com>
20391 * lib/gai_strerror.c: Use GPL in header.
20393 2005-01-26 Bruno Haible <bruno@clisp.org>
20395 * modules/javaexec: New file.
20396 * MODULES.html.sh (Java): Add javaexec.
20398 2005-01-26 Bruno Haible <bruno@clisp.org>
20400 * m4/javaexec.m4: New file, from GNU gettext.
20402 2005-01-26 Bruno Haible <bruno@clisp.org>
20404 * lib/javaexec.sh.in: New file, from GNU gettext.
20405 * lib/javaexec.h: New file, from GNU gettext.
20406 * lib/javaexec.c: New file, from GNU gettext.
20408 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20410 * modules/lchown (Depends-on): Remove lchown.h
20412 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20414 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
20415 must be defined if the header file was not found, in order
20416 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
20418 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20420 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
20421 initializers for struct pentry_state.
20422 (__argp_error): Check return value of __asprintf
20423 (__argp_failure): Translate error message
20425 * lib/argp-parse.c: Removed braces around the expansion of N_()
20427 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
20429 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
20430 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
20431 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
20432 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
20433 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
20434 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
20435 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
20436 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
20437 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
20438 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
20439 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
20440 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
20441 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
20442 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
20443 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
20444 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
20445 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
20446 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
20447 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
20448 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
20449 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
20450 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
20451 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
20452 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
20453 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
20454 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
20455 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
20456 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
20457 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
20458 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
20459 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
20460 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
20461 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
20462 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
20463 xstrtol.m4, xstrtoumax.m4, yesno.m4:
20464 Use an all-permissive copyright notice, recommended by RMS.
20466 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
20468 * modules/chdir-long (Depends-on): Remove mempcpy.
20470 2005-01-21 Jim Meyering <jim@meyering.net>
20472 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
20473 same value as for Solaris 9.
20475 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
20476 component length. This included changing the parameter to be
20477 of type `char *' rather than `char const *'.
20478 * lib/chdir-long.h (chdir_long): Update prototype.
20480 * lib/openat.c (fdopendir, fstatat): New functions.
20481 * lib/openat.h: Include headers required for use of DIR and struct
20483 [AT_SYMLINK_NOFOLLOW]: Define.
20484 (fdopendir, fstatat): Add prototypes.
20486 2005-01-21 Bruno Haible <bruno@clisp.org>
20488 * modules/classpath: New file.
20489 * MODULES.html.sh (Java): Add classpath.
20491 2005-01-21 Bruno Haible <bruno@clisp.org>
20493 * lib/classpath.h: New file, from GNU gettext.
20494 * lib/classpath.c: New file, from GNU gettext.
20496 2005-01-20 Simon Josefsson <jas@extundo.com>
20498 * modules/version-etc-fsf: New file.
20500 2005-01-20 Simon Josefsson <jas@extundo.com>
20502 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
20503 * lib/version-etc.c: Remove version_etc_copyright.
20504 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
20505 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
20507 2005-01-20 Simon Josefsson <jas@extundo.com>
20509 * lib/base64.h (isbase64): Add.
20511 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
20512 using a unsigned prototype, don't inline.
20513 (base64_decode): Use it.
20515 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
20517 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
20520 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
20522 * lib/save-cwd.c (save_cwd): Remove code to support the case
20523 where fchdir is missing or flaky.
20525 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
20527 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
20529 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
20531 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
20532 AC_LIBSOURCES now does this.
20533 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
20534 with new ullong_max module.
20536 2005-01-19 Bruno Haible <bruno@clisp.org>
20538 * modules/sh-quote: New file.
20539 * MODULES.html.sh (Executing programs): Add sh-quote.
20541 2005-01-19 Bruno Haible <bruno@clisp.org>
20543 * lib/sh-quote.h: New file, from GNU gettext.
20544 * lib/sh-quote.c: New file, from GNU gettext.
20546 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
20548 Merge from coreutils.
20549 * m4/ullong_max.m4: New file.
20550 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
20551 (gl_MACROS): Assume localeconv exists.
20553 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
20555 Merge changes from coreutils, as described below in several
20556 changelogs dated today.
20558 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
20559 (O_DIRECTORY): Remove; not needed here, since "." must be
20560 a directory. All uses removed.
20561 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
20562 universal on Suns, and we also need to test for IRIX.
20563 Revamp code to use 'if' rather than '#if'.
20564 Avoid unnecessary comparison of cwd->desc to 0.
20566 * lib/utimens.c (futimens): Robustify the previous patch, by checking
20567 for known valid error numbers rather than observed invalid ones.
20569 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
20571 * modules/ullong_max: New file.
20573 * modules/chdir-long, modules/openat: New files.
20574 * modules/save-cwd (Depends-on): Depend on chdir-long.
20575 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
20577 2005-01-18 Jim Meyering <jim@meyering.net>
20579 Merge from coreutils.
20580 * m4/chdir-long.m4, m4/openat.m4: New files.
20581 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
20582 save-cwd.h. Add AC_LIBOBJ for save-cwd.
20583 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
20584 is sane and DOES follow symlinks. Besides, testing 20 different
20585 systems found no broken chown implementations.
20586 Prompted by a change in rsync's copy of this macro.
20587 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
20589 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
20591 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
20592 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
20593 NULL-means-set-to-current-time semantics.
20594 Remove temporary file immediately, rather than waiting
20595 for configure's at-exit trap code to do it.
20597 2005-01-18 Jim Meyering <jim@meyering.net>
20599 * lib/version-etc.c (version_etc_copyright): Update copyright date.
20601 * lib/utimens.c (futimens): Account for the fact that futimes
20602 can also fail with errno == ENOSYS or errno == ENOENT.
20603 Patch from Dmitry V. Levin.
20605 Change the name of the robust chdir function from chdir to chdir_long.
20606 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
20607 (restore_cwd): Use chdir_long, not chdir.
20608 * lib/chdir-long.c: Renamed from chdir.c.
20609 * lib/chdir-long.h: Renamed from chdir.h.
20610 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
20613 2005-01-18 Bruno Haible <bruno@clisp.org>
20615 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
20616 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
20617 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
20618 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
20619 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
20620 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
20621 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
20622 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
20623 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
20624 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
20625 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
20626 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
20627 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
20628 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
20629 Use an all-permissive copyright notice, recommended by RMS.
20631 2005-01-18 Bob Proulx <bob@proulx.com>
20633 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
20634 simplify offsetof() macro construct to avoid compile failure with
20635 native HP-UX 11.0 ANSI C compiler.
20637 2005-01-17 Bruno Haible <bruno@clisp.org>
20639 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
20640 redundant because stpncpy.m4 takes care of it.
20642 2005-01-17 Bruno Haible <bruno@clisp.org>
20644 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
20646 2005-01-17 Bruno Haible <bruno@clisp.org>
20648 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
20651 2005-01-17 Bruno Haible <bruno@clisp.org>
20653 * lib/fwriteerror.h (fwriteerror): Change specification to include
20655 * lib/fwriteerror.c: Include <stdbool.h>.
20656 (fwriteerror): At the end, close the file stream. Record whether
20657 stdout was already closed.
20659 2005-01-17 Bruno Haible <bruno@clisp.org>
20661 * lib/execute.c (environ): Declare if needed.
20662 * lib/pipe.c (environ): Likewise.
20663 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
20665 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20667 * modules/argp: Depend on vsnprintf
20669 2005-01-10 Jim Meyering <jim@meyering.net>
20671 * modules/closeout (Depends-on): Add atexit.
20673 2005-01-06 Bruno Haible <bruno@clisp.org>
20675 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
20677 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
20679 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
20680 definitions to be after all include files, to avoid collisions.
20681 Problem reported by Bob Proulx.
20683 2005-01-04 Jim Meyering <jim@meyering.net>
20685 Changes imported from coreutils.
20686 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
20687 as the mkstemp template, use a temporary directory and an
20688 8.3-friendly template to avoid trouble on systems like DJGPP.
20689 Reported by Juan M. Guerrero via Stepan Kasal.
20690 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
20691 close. Remove the temporary directory right away, rather than waiting
20692 for configure's at-exit trap code to do it.
20693 Suggestion from Stepan Kasal.
20695 2005-01-01 Simon Josefsson <jas@extundo.com>
20697 * gnulib-tool: Print #include directives when --import'ing.
20699 2004-12-28 Simon Josefsson <jas@extundo.com>
20701 * tests/test-base64.c: Include required header files. Remove
20704 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
20706 * modules/error (Depends-on): Remove gettext.
20708 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
20710 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
20711 not needed. This removes a dependency on the gettext module.
20712 [defined _LIBC]: Do not include <libintl.h>; not needed.
20714 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
20716 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
20717 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
20719 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
20721 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
20724 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
20726 * modules/getdate (Depends-on): Remove alloca-opt.
20728 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
20730 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
20732 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
20734 * lib/argp-parse.c: Include <stddef.h>.
20735 (alignof, alignto): New macros.
20736 (parser_init): Don't assume that void * is aligned sufficiently
20739 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
20740 need to extend the stack.
20741 (YYINITDEPTH): New macro, so that the initial stack isn't overly
20744 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20746 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
20748 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
20750 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
20751 (2004-10-24) change. Apparently this was a false alarm.
20753 * modules/getdate: Depend on alloca-opt, not alloca.
20755 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
20757 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
20758 Remove now-obsolete comment about AIX.
20759 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
20760 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
20761 (YYMAXDEPTH): New macro.
20763 2004-12-18 Simon Josefsson <jas@extundo.com>
20765 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
20767 2004-12-18 Bruno Haible <bruno@clisp.org>
20769 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
20771 2004-12-18 Bruno Haible <bruno@clisp.org>
20773 * lib/fatal-signal.c (fatal_signals): Make non-const.
20774 (init_fatal_signals): New function.
20775 (uninstall_handlers, install_handlers): Ignore signals that were set to
20777 (at_fatal_signal): Call init_fatal_signals.
20778 (init_fatal_signal_set): Likewise. Ignore signals that were set to
20780 Reported by Paul Eggert.
20782 2004-12-18 Bruno Haible <bruno@clisp.org>
20784 * doc/alloca.texi: New file.
20785 * doc/alloca-opt.texi: New file.
20787 2004-12-17 Jim Meyering <jim@meyering.net>
20789 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
20790 Otherwise, install-sh could exit with improper exit status when
20791 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
20793 2004-12-16 Simon Josefsson <jas@extundo.com>
20795 * tests/test-base64.c: Add license.
20797 2004-12-15 Stepan Kasal <address@hidden>
20799 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
20801 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
20803 * modules/getcwd (Files): Add m4/d-ino.m4.
20804 Suggested by Mark D. Baushke.
20806 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
20808 * lib/getdate.y (textint): New member "negative".
20809 (time_zone_hhmm): New function.
20810 Expect 14 shift-reduce conflicts, not 13.
20811 (o_colon_minutes): New rule.
20812 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
20813 (yylex): Set the "negative" member of signed numbers.
20815 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
20817 * doc/getdate.texi (Time of day items, Time zone items):
20818 Describe new formats +00:00, UTC+00:00.
20820 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
20822 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
20823 spurious "-l"s. Problem reported by Stepan Kasal.
20825 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
20827 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
20828 in Autoconf 2.59. Problem reported by Mark D. Baushke.
20830 2004-12-04 Simon Josefsson <jas@extundo.com>
20832 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
20833 Vandoorselaere <yoann@prelude-ids.org>.
20835 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
20837 Changes imported from coreutils.
20838 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
20840 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
20842 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
20844 Changes imported from coreutils.
20845 * lib/hard-locale.c: Assume <locale.h> exists.
20846 Include "strdup.h".
20847 (GLIBC_VERSION): New macro.
20848 (hard_locale): Assume setlocale exists.
20849 Rewrite to avoid #ifdef.
20850 Use strdup rather than malloc + strcpy.
20851 * lib/human.c: Assume <locale.h> exists.
20852 (human_readable): Assume localeconv exists.
20854 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
20856 * modules/hard-locale (Depends-on): Add strdup.
20858 2004-12-01 Jakub Jelinek <jakub@redhat.com>
20860 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
20861 convert T2, not T. (Imported from libc.)
20863 2004-11-30 Simon Josefsson <jas@extundo.com>
20865 * modules/restrict (License): Change to LGPL.
20867 2004-11-30 Simon Josefsson <jas@extundo.com>
20869 * m4/restrict.m4: Add copyright and copying conditions.
20871 2004-11-30 Simon Josefsson <jas@extundo.com>
20873 * m4/base64.m4: New file.
20875 2004-11-30 Simon Josefsson <jas@extundo.com>
20877 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
20880 * tests/test-base64.c: New file.
20882 * modules/base64: New file.
20884 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
20886 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20887 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
20889 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
20891 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
20893 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
20894 (__getcwd.c): Don't restore errno; glibc doesn't.
20895 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
20896 first, falling back to our code only if its results look suspicious.
20897 Ensure that the resulting buffer is only as large as necessary.
20899 * lib/readutmp.c: Include readutmp.h first.
20900 Include <errno.h>, since readutmp.h no longer does that.
20901 * lib/readutmp.h: Don't include <errno.h>,
20902 <sys/param.h>, <time.h>; not needed to establish interface.
20903 (errno): Remove decl.
20904 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
20905 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
20906 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
20908 2004-11-28 Simon Josefsson <jas@extundo.com>
20910 * lib/base64.h, base64.c: New file.
20912 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
20914 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
20916 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
20918 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
20919 (Depends-on): Remove pathmax, same. Add mempcpy.
20920 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
20921 (Makefile.am): Append getcwd.h to lib_SOURCES.
20922 (Include): Add getcwd.h.
20923 (Maintainer): Change from Jim Meyering to "all, glibc",
20924 since getdate now uses intended-for-glibc code.
20925 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
20926 (Depends-on): Depend on getcwd. Do not depend on pathmax.
20928 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
20930 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
20931 HP's ANSI C compiler.
20932 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
20933 Declaring int functions causes warnings on some modern systems and
20934 shouldn't be needed to compile on ancient ones.
20935 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
20938 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
20939 with the following changes.
20940 (__set_errno): Parenthesize properly.
20941 Include <stdbool.h>.
20942 (MIN, MAX, MATCHING_INO): New macros.
20943 (__getcwd): Define with prototype, not K&R form.
20944 Use heuristics to allocate default buffer on stack if possible.
20945 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
20946 behavior, and to avoid the PATH_MAX limit when computing
20948 Use MATCHING_INO to compare inode number to file.
20949 Check for arithmetic overflow in size calculations.
20950 Fix bug in reallocation of dot array that caused getcwd to fail
20951 on directories nested deeper than 75.
20952 Be more careful about saving errno on error.
20953 Do not use realloc; use only free+malloc, as this is a bit
20954 more flexible and avoids a needless copy operation.
20955 Do not inspect st_dev and st_ino for symbolic links; POSIX
20956 doesn't specify the latter.
20957 Check for closedir errors.
20958 Avoid needless casts.
20959 Use "#ifdef weak_alias" around weak_alias, to be like other
20961 The following changes to getcwd.c have effect only when used in
20962 gnulib; they have no effect inside glibc proper.
20963 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
20964 as alloca isn't used.
20965 (alloca, __alloca): Likewise.
20966 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
20967 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
20968 unconditionally, as gnulib assumes C89 or better.
20969 Do not include <sys/param.h>.
20970 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
20971 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
20973 (NULL) [!defined NULL]: Remove; we assume C89 or better.
20974 Include <dirent.h> in a way that is compatible with modern Autoconf.
20975 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
20976 New macros, if not already defined.
20977 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
20978 Use "_LIBC", not "defined _LIBC", for consistency.
20979 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
20981 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
20982 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
20983 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
20984 credit only to Jim Meyering and adjust the copyright dates.
20985 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
20986 <stdlib.h>, <unistd.h>, "pathmax.h".
20987 Instead, include "xgetcwd.h" (first) and "getcwd.h".
20988 (INITIAL_BUFFER_SIZE): Remove.
20989 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
20991 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
20993 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
20994 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
20995 Use the _ONCE methods, for efficiency.
20996 Check for fcntl.h. In test program, include <errno.h>
20997 and <fcntl.h> if available. Remove old K&R cruft from
20998 test program. Check for common errors in GNU/Linux,
20999 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
21000 don't do AC_LIBOBJ, as that's getcwd.m4's job.
21001 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
21002 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
21004 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
21005 accommodate new getcwd.c.
21006 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
21007 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
21008 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
21009 that's all we need now.
21011 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21013 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
21014 argp-parse.c depends on getopt internals, that means we should
21015 always use our getopt, to be on the safe side.
21016 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
21017 order not to spoil the result of an eventual previous invocation
21018 of gl_GETOPT_SUBSTITUTE.
21020 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21022 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
21023 redefinition warnings. To avoid them, include the defines
21024 in `#if !defined __need_getopt ... #endif'. The only place
21025 where __getopt_argv_const is used is in definitions
21026 of getopt_long and getopt_long_only below, which are as well
21027 protected by `#ifndef __need_getopt'.
21028 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
21029 __need_getopt after including <stdio.h> and <unistd.h> These
21030 headers might have defined it.
21032 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
21034 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
21036 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
21038 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
21039 (futimens): New function, which uses futimes if available.
21040 (futimens, utimens): Support timespec==NULL, with same semantics
21041 as utime and utimens.
21042 * lib/utimens.h (futimens): New decl.
21044 2004-11-23 Jim Meyering <jim@meyering.net>
21046 * lib/getopt_.h: Remove trailing blanks.
21048 2004-11-23 Jim Meyering <jim@meyering.net>
21050 * lib/__fpending.c: Add comment.
21052 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
21054 * modules/canonicalize (Depends-on): Add xreadlink.
21055 Problem reported by James Youngman.
21057 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
21059 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
21061 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
21062 optopt): Use them instead of invoking ## directly; otherwise, the
21063 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
21065 2004-11-19 Bruno Haible <bruno@clisp.org>
21067 * lib/strtok_r.c: Move comments from here...
21068 * lib/strtok_r.h: ... to here.
21070 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
21072 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
21073 implementations that mishandle size_t overflow.
21075 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
21077 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
21078 might fail. Problem reported by Yoann Vandoorselaere.
21079 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
21080 implementations that mishandle size_t overflow.
21082 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21084 * modules/canon-host (Depends-on): Add strdup.
21086 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21088 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
21090 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21092 * lib/canon-host.c: Include "strdup.h".
21093 (canon_host): Use getaddrinfo if available, so that IPv6 works.
21094 Use strdup instead of malloc/strcpy to duplicate strings.
21096 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
21097 (human_space_before_unit): New constant.
21098 * lib/human.c (human_readable): Support it.
21100 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
21101 (xgetcwd): Set errno correctly when failing.
21102 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
21103 the failure is actually due to a PATH_MAX problem.
21105 Further getopt changes to make it more likely that glibc will
21106 buy the changes back.
21107 * lib/getopt.c (POSIXLY_CORRECT): New constant.
21108 (getopt): Use it, so to preserve glibc semantic
21109 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
21110 when compiling for libc.
21111 * lib/getopt_.h (__getopt_argv_const): Bring it back.
21112 (getopt_long, getopt_long_only): Use it.
21114 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21115 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
21116 (getopt): Argv is now char * const *, as per standard.
21117 (_getopt_internal_r, _getopt_internal): Argv is now char **,
21118 not char *__getopt_argv_const *.
21119 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21120 _getopt_long_only_r): Likewise.
21121 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
21122 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21123 _getopt_long_r, _getopt_long_only_r): Likewise.
21124 * lib/getopt_.h (__getopt_argv_const): Remove.
21125 (getopt): Argv is now char * const *, as per standard.
21127 * lib/getdate.y (tORDINAL): New token.
21128 (day, relunit): Allow it for relative times.
21129 (relative_time_table): Use tORDINAL for ordinals.
21131 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
21133 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
21134 Document that "second" isn't allowed as an ordinal number.
21136 2004-11-16 Jim Meyering <jim@meyering.net>
21138 * modules/closeout (Depends-on): Add fpending.
21140 2004-11-15 Jim Meyering <jim@meyering.net>
21142 * lib/closeout.c: Include "__fpending.h" once again.
21143 Include <stdbool.h>.
21144 (close_stdout): Don't fail just because stdout was closed initially,
21145 since some programs don't write to stdout in the normal course of
21146 operation (other than --version and --help), and we don't want this
21147 function to make e.g. `touch file >&-' fail.
21148 But do fail if it was closed and someone has tried to write to it.
21149 E.g., `printf foo >&-' must fail.
21151 2004-11-13 Jim Meyering <jim@meyering.net>
21153 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
21155 2004-11-12 Simon Josefsson <jas@extundo.com>
21157 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
21158 small doc fix is still pending.
21160 2004-11-11 Simon Josefsson <jas@extundo.com>
21162 * modules/strtok_r: New file.
21164 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21167 2004-11-11 Simon Josefsson <jas@extundo.com>
21169 * m4/strtok_r.m4: New file.
21171 * m4/getopt.m4: Replace opterr.
21173 2004-11-11 Simon Josefsson <jas@extundo.com>
21175 * lib/strtok_r.h, strtok_r.c: New file.
21177 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
21179 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
21180 of replacing opterr, getopt, etc. This should handle the
21181 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
21183 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
21185 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
21186 we can stop lying to compilers about the constness of argv when we
21187 are compiled outside glibc.
21188 (getopt, getopt_long, getopt_long_only): Use it.
21189 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
21190 _getopt_internal, getopt): Likewise.
21191 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
21192 _getopt_long_only_r): Likewise.
21193 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
21194 _getopt_long_r, _getopt_long_only_r): Likewise.
21196 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
21197 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
21198 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
21199 the other external symbols.
21200 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
21201 declaration, since the above renaming now works around collisions.
21203 2004-11-11 Jim Meyering <jim@meyering.net>
21205 * lib/linebreak.c: Remove trailing blanks.
21206 * lib/alloca_.h: Likewise.
21207 * lib/acosl.c: Likewise.
21208 * lib/euidaccess.c: Likewise.
21209 * lib/allocsa.h: Likewise.
21211 2004-11-10 Simon Josefsson <jas@extundo.com>
21213 * m4/getaddrinfo.m4: New file.
21215 2004-11-10 Simon Josefsson <jas@extundo.com>
21217 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
21219 2004-11-10 Simon Josefsson <jas@extundo.com>
21221 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21224 * modules/getaddrinfo: New file.
21226 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
21228 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
21230 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
21232 * lib/mktime.c (SHR): New macro, which is a portable
21233 substitute for >> that should work even on Crays.
21234 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
21235 Problem reported by Mark D. Baushke in
21236 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
21237 * lib/getdate.y (SHR): Likewise.
21239 * lib/strftime.c (SHR): Likewise.
21241 * lib/quotearg.c (struct quoting_options): Use unsigned int for
21242 quote_these_too, so that right shifts are well defined. All uses
21245 2004-11-10 Jim Meyering <jim@meyering.net>
21247 Ensure that no close failure goes unreported.
21248 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
21249 return early when it seems there's nothing to flush.
21250 Don't include __fpending.h.
21252 2004-11-10 Jim Meyering <jim@meyering.net>
21254 * modules/closeout (Depends-on): Remove fpending.
21256 2004-11-10 Jim Meyering <jim@meyering.net>
21258 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
21260 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
21262 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
21264 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
21265 and AC_REQUIRE when possible, to avoid duplicate checks.
21266 Check for <wchar.h>.
21268 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
21270 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
21272 2004-11-09 Bruno Haible <bruno@clisp.org>
21274 * m4/sockpfaf.m4: New file.
21276 2004-11-05 Bruno Haible <bruno@clisp.org>
21278 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
21279 Reported by Mark D. Baushke <mdb@cvshome.org>.
21281 2004-11-04 Bruno Haible <bruno@clisp.org>
21283 2004-09-11 Bruno Haible <bruno@clisp.org>
21284 * allocsa.valgrind: New file.
21285 2004-02-06 Bruno Haible <bruno@clisp.org>
21286 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
21287 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
21288 Reported by Christopher Seip <chris.seip@hp.com>.
21290 2004-11-04 Bruno Haible <bruno@clisp.org>
21292 * modules/allocsa (Files): Add lib/allocsa.valgrind.
21293 (Makefile.am): Distribute it.
21295 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
21297 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
21298 with errno == ERANGE if the buffer is too small.
21299 Problem reported by Mark D. Baushke.
21301 2004-11-03 Albert Chin <china@thewrittenword.com>
21302 Paul Eggert <eggert@cs.ucla.edu>
21304 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
21305 equivalent, substitute $ac_type for equivalent type rather than
21306 blindly using uint32_t *always* which won't work if uint32_t is not
21307 available. Define _UINT32_T to work around typedef of uint32_t if
21308 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
21311 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21313 * m4/jm-macros.m4: Sync from coreutils.
21314 (gl_MACROS): Check for mbrlen, for pathchk.
21315 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
21317 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21319 * lib/xreadlink.c (MAXSIZE): New macro.
21320 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
21321 size does not exceed MAXSIZE. Avoid cast.
21322 As suggested by Mark D. Baushke in
21323 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
21324 if readlink fails with buffer size just under MAXSIZE, try again
21327 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
21329 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
21331 2004-11-02 Derek R. Price <derek@ximbiot.com>
21332 and Paul Eggert <eggert@cs.ucla.edu>
21334 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
21335 (get_date): Overparenthesize to avoid GCC warning.
21337 2004-11-02 Bruno Haible <bruno@clisp.org>
21339 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
21342 2004-11-02 Bruno Haible <bruno@clisp.org>
21344 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
21345 function returns void.
21347 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
21349 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
21350 fflush_unlocked, flockfile, funlockfile, funlockfile,
21351 fputs_unlocked, putc_unlocked.
21353 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
21355 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21356 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
21359 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
21361 * modules/getdate (Files): Add doc/getdate.texi.
21362 (Depends-on): Add setenv, xalloc.
21364 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
21366 * lib/getdate.y: Add support for TZ="foo" within a date string.
21367 Fix some bugs near time_t boundaries. Reject dates with
21368 out-of-range components, e.g., "Sept 31".
21369 Include <stdlib.h>, "setenv.h", "xalloc.h".
21370 (ISDIGIT_LOCALE): Remove; unused.
21371 Note that the TZ and time functions used here are not reentrant.
21372 (mktime_ok, get_tz): New functions.
21373 (TZBUFSIZE): New constant.
21374 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
21375 This requires that we sometimes generate our own TZ="XXX..." setting.
21377 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
21379 * doc/getdate.texi: New file, from coreutils with modifications for
21380 the new TZ parsing.
21382 2004-10-27 Derek R. Price <derek@ximbiot.com>
21384 * lib/mktime.c (not_equal_tm): Remove redundant check.
21386 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
21388 * modules/regex (lib_SOURCES): Add regex.c.
21389 Reported by James Youngman in
21390 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
21392 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
21394 * lib/getdate.y: Use Bison 1.875 features, and some minor
21395 code cleanups. This change does not affect semantics.
21396 Don't include <stdlib.h>; no longer needed.
21397 Don't include unlocked-io.h; only the "#if TEST" code uses
21398 stdio, and performance isn't crucial there.
21399 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
21400 Bison 1.875 features as described below.
21401 All uses of "PC." replaced by "pc->".
21402 (YYSTYPE): Add a forward declaration.
21403 (yylex, yyerror): Use full prototypes in forward decls.
21404 Use "%pure-parser" rather than obsolescent "%pure_parser".
21405 Use %parse-param and %lex-param instead of obsolescent
21406 YYPARSE_PARAM and YYLEX_PARAM.
21407 (meridian_table, month_and_day_table, time_units_table,
21408 relative_time_table, time_zone_table, military_table,
21409 lookup_zone, lookup_word, get_date):
21410 Use NULL instead of 0 where appropriate.
21411 (to_hour): Avoid abort (), to avoid a dependency on
21413 (yyerror, yylex): Now accepts parser_control * arg.
21414 (main) [TEST]: Use '\0' rather than 0 for char.
21416 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
21418 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
21420 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
21422 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
21423 It's now the caller's responsibility to handle the case where
21424 !HAVE_GETPAGESIZE && !defined getpagesize.
21426 * lib/mktime.c (leapyear): Arg is long int, not int.
21428 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
21430 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
21432 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
21434 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
21435 missing. Problem reported by James Youngman.
21437 2004-10-16 Simon Josefsson <jas@extundo.com>
21439 * gnulib-tool: Fix comments. Fix parse problem.
21440 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
21442 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
21444 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
21445 implementation of getopt_long. Problem reported by Alexander Taler in:
21446 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
21448 2004-10-15 Bruno Haible <bruno@clisp.org>
21450 * gnulib-tool: Untabify. Initialize supplied_libname.
21451 (func_usage): More homogenous output.
21452 (func_modules_transitive_closure, func_modules_to_filelist,
21453 func_emit_lib_Makefile_am): New functions.
21454 (func_import): New function, extracted from big case statement. Use
21455 func_get_license, func_modules_transitive_closure,
21456 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
21457 opt_lgpl. Don't use test -a, as it's not portable.
21458 (func_create_testdir): Use func_modules_transitive_closure,
21459 func_modules_to_filelist, func_emit_lib_Makefile_am.
21461 2004-10-15 Bruno Haible <bruno@clisp.org>
21463 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
21465 2004-10-15 Bruno Haible <bruno@clisp.org>
21467 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
21468 the portions belonging to each module.
21469 Suggested by Derek Robert Price <derek@ximbiot.com>.
21471 2004-10-12 Simon Josefsson <jas@extundo.com>
21473 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
21474 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
21477 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
21479 * modules/vsnprintf: New file.
21481 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
21483 * m4/vsnprintf.m4: New file.
21485 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
21487 * lib/vsnprintf.h: New file.
21488 * lib/vsnprintf.c: New file.
21490 2004-10-11 Bruno Haible <bruno@clisp.org>
21492 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
21495 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
21497 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
21499 2004-10-07 Bruno Haible <bruno@clisp.org>
21501 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
21502 fits into the provided buffer.
21504 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
21506 * lib/diacrit.c, diacrit.h: Add GPL notice.
21508 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
21510 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
21511 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
21512 This avoids a potential constant-folding bug.
21514 2004-10-05 Bruno Haible <bruno@clisp.org>
21516 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
21517 for the declaration of strsep.
21519 2004-10-05 Bruno Haible <bruno@clisp.org>
21521 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
21523 2004-10-04 Simon Josefsson <jas@extundo.com>
21525 * modules/memmem: New file.
21526 * tests/test-memmem.c: New file.
21527 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
21529 2004-10-04 Simon Josefsson <jas@extundo.com>
21531 * m4/memmem.m4: New file.
21533 2004-10-04 Simon Josefsson <jas@extundo.com>
21535 * lib/memmem.h: New file.
21536 * lib/memmem.c: New file, taken from glibc.
21538 2004-10-04 Simon Josefsson <jas@extundo.com>
21540 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
21541 '#ifdef USE_UNLOCKED_IO'.
21543 2004-10-04 Simon Josefsson <jas@extundo.com>
21545 * config/srclist.txt: Add memmem from glibc.
21547 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
21549 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
21551 * modules/argmatch, modules/argp, modules/closeout, modules/error,
21552 modules/exclude, modules/getdate, modules/getline,
21553 modules/getndelim2, modules/getpass, modules/getpass-gnu,
21554 modules/getusershell, modules/linebuffer, modules/md5,
21555 modules/mountlist, modules/posixtm, modules/readtokens,
21556 modules/readutmp, modules/regex, modules/sha1,
21557 modules/version-etc, modules/yesno:
21558 Remove dependency on unlocked-io.
21560 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
21562 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
21564 * m4/unlocked-io.m4: Add copyright notice.
21565 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
21567 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
21569 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
21570 * lib/xmalloc.c (xmemdup): Likewise.
21571 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
21572 XFREE): Remove these long-obsolescent macros.
21573 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
21574 * lib/xstrdup.c: Remove.
21576 * lib/regex.c (re_comp): Cast gettext return value to char *,
21577 Problem reported by Martin Neitzel via Mark D. Baushke.
21579 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
21581 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
21582 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
21583 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
21584 regex.c, sha1.c, version-etc.c, yesno.c:
21585 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
21586 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
21587 the includer's responsibility.
21589 Sync from coreutils.
21591 * lib/modechange.c (mode_compile): Don't decrement a pointer that
21592 points to the start of a string, as the C Standard says the
21593 resulting behavior is undefined.
21595 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
21596 simple -> simple_backups, numbered_existing ->
21597 numbered_existing_backups, numbered -> numbered_backups
21598 to avoid shadowing problems. All uses changed.
21599 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
21600 * lib/backupfile.c (check_extension, numbered_backup):
21601 Rename locals to avoid shadowing 'basename'.
21602 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
21605 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
21606 * lib/.cvsignore: Add getopt.h.
21608 2004-10-04 Bruno Haible <bruno@clisp.org>
21610 * modules/README: New file.
21611 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
21614 2004-10-02 Jim Meyering <jim@meyering.net>
21616 * lib/dirfd.h, getpagesize.h: Add copyright notice.
21618 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
21620 * modules/strsep: New file.
21622 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
21624 * m4/strsep.m4: New file.
21626 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
21628 * lib/strsep.h: New file.
21629 * lib/strsep.c: New file.
21631 2004-10-01 Simon Josefsson <jas@extundo.com>
21633 * lib/snprintf.c (snprintf): Handle size==0.
21635 2004-10-01 Simon Josefsson <jas@extundo.com>
21636 Bruno Haible <bruno@clisp.org>
21638 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
21639 (snprintf): Declare 'args'.
21641 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
21643 * lib/snprintf.c: Remove comments as to why each header is needed.
21645 2004-10-01 Bruno Haible <bruno@clisp.org>
21647 * MODULES.html.sh: Add strsep.
21649 2004-09-30 Simon Josefsson <jas@extundo.com>
21651 * modules/snprintf: New file.
21653 2004-09-30 Simon Josefsson <jas@extundo.com>
21655 * m4/snprintf.m4: New file.
21657 2004-09-30 Simon Josefsson <jas@extundo.com>
21659 * lib/snprintf.h, lib/snprintf.c: New files.
21661 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21663 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
21664 (hol_entry_help): Never translate an empty string.
21665 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
21666 * lib/argp.h (OPTION_NO_TRANS): New option.
21668 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
21670 * modules/argp (Maintainer): Replace Simon Josefsson
21671 by Sergey Poznyakoff.
21673 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
21675 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
21676 changes merged back into glibc.
21678 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
21680 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
21682 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
21684 * lib/xvasprintf.c: Include xalloc.h.
21685 (xvasprintf): Use xalloc_die, not xmalloc_die.
21687 2004-09-29 Bruno Haible <bruno@clisp.org>
21689 * modules/alloca-opt: New file, derived from modules/alloca.
21690 * modules/allocsa: Depend on alloca-opt instead of alloca.
21691 * modules/setenv: Likewise.
21692 * modules/vasnprintf: Likewise.
21693 * MODULES.html.sh: Add alloca-opt.
21695 2004-09-28 Simon Josefsson <jas@extundo.com>
21697 * gnulib-tool: New parameter --lgpl, to asseert that modules are
21698 LGPL, and to replace license template from GPL to LGPL.
21700 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
21702 * modules/dummy: Change license to LGPL.
21704 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
21706 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
21708 2004-09-24 Simon Josefsson <jas@extundo.com>
21710 * modules/minmax (License): Change from GPL to LGPL.
21712 2004-09-23 Simon Josefsson <jas@extundo.com>
21714 * gnulib-tool (--import): Typo.
21716 2004-09-23 Simon Josefsson <jas@extundo.com>
21718 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
21720 2004-09-22 Bruno Haible <bruno@clisp.org>
21722 * modules/*: Add 'License' field.
21723 * gnulib-tool: Accept --extract-license option.
21724 (func_get_license): New function.
21726 2004-09-21 Bruno Haible <bruno@clisp.org>
21728 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
21729 Reported by Simon Josefsson.
21731 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
21733 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
21734 gl_AC_TYPE_LONG_LONG.
21736 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
21738 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
21740 2004-09-18 Simon Josefsson <jas@extundo.com>
21741 and Paul Eggert <eggert@cs.ucla.edu>
21743 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
21744 calls with autoreconf. Define GL_LIB.
21746 2004-09-14 Karl Berry <karl@gnu.org>
21748 * config/srclist.txt: unsync setenv.c, sigh.
21750 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
21752 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
21753 Problem reported by Bruno Haible in:
21754 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
21756 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
21758 * config/srclist.txt: Comment out argp-pvh.c.
21760 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
21762 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
21763 in case some system header has #define'd it. Problem reported by
21764 Soeren D. Schulze in
21765 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
21767 2004-09-09 Karl Berry <karl@gnu.org>
21769 * regex.[ch]: delete from the root. These were supposed to be
21770 synced with emacs cvs, but this has not happened for about
21771 a year, and anyway nothing else uses emacs regex.[ch].
21772 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
21773 lib/regex[.ch] is untouched.
21775 2004-09-09 Bruno Haible <bruno@clisp.org>
21777 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
21779 2004-09-09 Bruno Haible <bruno@clisp.org>
21781 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
21783 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
21785 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
21787 * modules/xvasprintf: New file.
21788 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
21790 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
21792 * lib/xvasprintf.h: New file.
21793 * lib/xvasprintf.c: New file.
21794 * lib/xasprintf.c: New file.
21796 2004-09-08 Bruno Haible <bruno@clisp.org>
21798 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
21800 2004-09-08 Bruno Haible <bruno@clisp.org>
21802 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
21803 length is > INT_MAX.
21804 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
21807 2004-09-08 Bruno Haible <bruno@clisp.org>
21809 * lib/stdint_.h: New file, taken from GNU clisp.
21811 2004-09-08 Bruno Haible <bruno@clisp.org>
21812 Oskar Liljeblad <oskar@osk.mine.nu>
21814 * modules/stdint: New file.
21815 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
21817 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
21819 Import from coreutils.
21820 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
21821 strings on unbounded length. alloca's performance benefits aren't
21822 that important here.
21823 (V_STRDUP): Remove.
21824 (parse_with_separator): New function, with most of the internals
21825 of the old parse_user_spec. Allow user to omit both user and group,
21826 for compatibility with FreeBSD.
21827 Clone only the user name, not the entire spec.
21828 Do not set *uid, *gid unless entirely successful.
21829 Avoid memory leak in some failing cases.
21830 Fix regression for USER.GROUP reported by Dmitry V. Levin in
21831 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
21832 (parse_user_spec): Rewrite to use parse_with_separator.
21834 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
21836 * modules/userspec: Don't depend on alloca.
21838 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
21840 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
21842 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
21844 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
21845 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
21846 utimecmp, utimens, xnanosleep. Rename sha to sha1.
21848 2004-08-16 Simon Josefsson <jas@extundo.com>
21850 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
21851 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
21852 Add --dry-run for --import.
21853 Let user provided command line parameters override configure.ac
21856 2004-08-12 Simon Josefsson <jas@extundo.com>
21858 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
21859 as discussed with Paul Eggert in threads rooted at
21860 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
21862 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
21863 Before, the test was empty, and relied on ELIDE_CODE in source
21865 (gl_PREREQ_GETOPT): New macro.
21866 (gl_GETOPT): Use them.
21868 2004-08-12 Simon Josefsson <jas@extundo.com>
21870 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
21871 * lib/getopt_.h: Renamed from getopt.h.
21873 2004-08-12 Simon Josefsson <jas@extundo.com>
21875 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
21876 Change default library name from libfoo to libgnu.
21877 Now, if you have a configure.ac that says:
21880 gl_MODULES(error getopt etcetera)
21882 you can import all you need by running:
21883 ../gnulib/gnulib-tool --import
21885 * modules/getopt (Files): Rename getopt.h to getopt_.h.
21886 (Makefile.am): Rewrite, use logic from argz.
21887 (Include): Use <getopt.h> instead of "getopt.h".
21889 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21891 * modules/argp (Files): Add m4/unlocked-io.m4.
21892 (Depends-on): Add extensions.
21894 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21896 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
21897 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
21898 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
21899 Check for program_invocation_name, program_invocation_short_name,
21900 flockfile, funlockfile, features.h, _getopt_long_only_r.
21902 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21904 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
21905 its complicated substitute.
21906 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
21907 and program_invocation_name.
21908 (__argp_basename) [!_LIBC]: Remove; the only use was
21909 replaced by its body.
21910 (__argp_short_program_name): Change condition from
21911 !defined __argp_short_program_name to
21912 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
21913 to match argp-namefrob.h.
21914 (__argp_failure): Don't assume strerror_r returns char *.
21915 * lib/argp-parse.c (N_): Define unconditionally.
21916 (argp_default_options): Fill out initializers with 0 to avoid
21919 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
21921 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
21924 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
21926 Merge from coreutils.
21928 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
21930 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
21931 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
21933 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
21935 Merge from coreutils.
21937 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
21938 wmemchr or wmemcpy. Problem reported by Robert Dahlem
21939 for Reliant Unix 5.43.
21941 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
21942 (union fooround): Use uintmax_t, not long int.
21943 The rest is a merge from libc:
21944 [defined _LIBC]: Include <shlib-compat.h>.
21945 (_obstack) [defined _LIBC]: Remove after 2.3.4.
21947 * lib/settime.c (settime): Recode to avoid warning with
21950 * lib/strverscmp.c: Convert to UTF-8.
21952 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
21954 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
21957 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
21959 * modules/xalloc-die: New file.
21960 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
21962 * modules/md5 (Files): Add m4/uint32_t.m4.
21963 * modules/sha1: Renamed from modules/sha.
21965 Rename lib/sha.h to lib/sha1.h.
21966 Rename lib/sha.c to lib/sha1.c.
21967 Rename m4/sha.m4 to m4/sha1.m4.
21968 (lib_SOURCES): Likewise.
21969 (configure.ac): Rename gl_SHA to gl_SHA1.
21970 (Include): sha.h -> sha1.h.
21972 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
21974 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
21975 * m4/sha1.m4: Renamed from sha.m4.
21976 (gl_SHA1): Renamed from gl_SHA. All uses changed.
21978 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
21980 * lib/obstack.h (obstack_empty_p):
21981 Don't assume that chunk->contents is suitably aligned.
21982 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
21983 Likewise. Problem reported by Benno in
21984 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
21986 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
21987 readable. This could be improved further but it'd take some work.
21989 2004-08-08 Simon Josefsson <jas@extundo.com>
21991 * modules/xgethostname (Depends-on): Remove exit and error (not
21994 * modules/getpass-gnu: Add getpass.h.
21995 (Depends-on): Add stdbool.
21996 * modules/getpass: Add getpass.h.
21998 2004-08-08 Simon Josefsson <jas@extundo.com>
22000 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
22001 Check getpass declaration.
22003 2004-08-08 Simon Josefsson <jas@extundo.com>
22005 * lib/xgethostname.c: Don't include error.h (not used).
22007 * lib/getpass.h: Add.
22008 * lib/getpass.c: Include getpass.h first.
22010 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
22012 * lib/xalloc-die.c: New file.
22013 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
22015 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
22016 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
22018 (_, N_, xalloc_die): Move to xalloc-die.c.
22019 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
22020 so that we needn't mess with xalloc_msg_memory_exhausted.
22022 * lib/sha1.h: Renamed from sha.h.
22023 (SHA1_H): Renamed from _SHA_H.
22024 (sha1_ctx): Renamed from sha_ctx.
22025 (sha1_init_ctx): Renamed from sha_init_ctx.
22026 (sha1_process_block): Renamed from sha_process_block.
22027 (sha1_process_bytes): Renamed from sha_process_bytes.
22028 (sha1_finish_ctx): Renamed from sha_finish_ctx.
22029 (sha1_read_ctx): Renamed from sha_read_ctx.
22030 (sha1_stream): Renamed from sha_stream.
22031 (sha1_buffer): Renamed from sha_buffer.
22032 * lib/sha1.c: Likewise; renamed from sha.c.
22033 Do not include <sys/types.h>.
22034 Include <stddef.h> rather than <stdlib.h>.
22036 2004-08-08 Bruno Haible <bruno@clisp.org>
22038 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
22039 FILESYSTEM_PREFIX_LEN.
22040 * lib/progreloc.c: Likewise.
22041 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
22043 2004-08-06 Simon Josefsson <jas@extundo.com>
22045 * modules/progname (Depends-on): Don't depend on stdbool.
22047 2004-08-06 Simon Josefsson <jas@extundo.com>
22049 * modules/getsubopt: New file.
22050 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22053 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22055 More merge from coreutils.
22057 * m4/utimens.m4, m4/utimecmp.m4: New files.
22058 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
22059 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
22060 prereq.m4, sha.m4: Import changes from coreutils.
22062 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22064 More merge from coreutils.
22065 * modules/raise, modules/readtokens0, modules/utimens:
22066 * modules/utimecmp, module/xnanosleep: New files.
22067 * modules/strftime: Add lib/strftime.h.
22068 Change include from <time.h> to "strftime.h".
22069 * modules/yesno: Add lib/yesno.h.
22070 * modules/backupfile: Remove lib/addext.c.
22071 * modules/euidaccess: Add stat-macros.h.
22072 * modules/canonicalize, modules/euidaccess,
22073 modules/filemode, modules/lchown, modules/makepath,
22074 modules/rmdir, modules/stat: Likewise.
22076 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
22079 * lib/argp-help.c (make_hol, hol_append): Don't assume that
22080 SIZE_MAX is a valid preprocessor constant.
22081 (__argp_basename): Change from "#ifndef _LIBC"
22082 to "#ifndef __argp_short_program_name", so that
22083 we don't compile these functions for tar.
22085 More merges from coreutils.
22086 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
22087 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
22088 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
22089 * lib/addext.c: Remove; no longer needed.
22090 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
22091 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
22092 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
22093 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
22094 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
22095 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
22096 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
22097 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
22098 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
22099 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
22100 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
22101 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
22102 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
22103 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
22104 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
22105 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
22106 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
22107 Import changes from coreutils.
22109 2004-08-05 Simon Josefsson <jas@extundo.com>
22111 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
22113 2004-08-05 Simon Josefsson <jas@extundo.com>
22115 * m4/getsubopt.m4: New file.
22117 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22119 Merge from coreutils.
22121 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
22122 * m4/getcwd-path-max.m4: New files.
22124 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
22125 FILESYSTEM_PREFIX_LEN ->
22126 FILE_SYSTEM_PREFIX_LEN.
22127 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
22128 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
22129 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
22130 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
22132 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
22133 prerequisite modules now handle the DOS stuff.
22134 Don't check for unistd.h.
22136 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22138 Merge from coreutils.
22140 * lib/.gdb-history: Remove; this doesn't belong here.
22142 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
22143 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
22144 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
22145 * lib/getcwd.c: New files.
22147 * lib/dirname.h: Include <stdbool.h>.
22148 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
22149 for consistency with POSIX terminology. All uses changed.
22150 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
22151 (strip_trailing_slashes): Use bool for booleans.
22152 * lib/stripslash.c (strip_trailing_slashes): Likewise.
22154 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
22155 sometimes returns a positive errno value even when it succeeds.
22156 (print_errno_message) [!LIBC]: Fall back on strerror if
22157 __strerror_r fails.
22159 * lib/path-concat.c (mempcpy): Don't define if a system header defines
22160 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
22161 (longest_relative_suffix): New function.
22162 (path_concat): Use it. Assume first argument is not NULL.
22163 Port to DOS. Omit redundant separators.
22164 Report an error instead of returning NULL.
22165 Use mempcpy instead of memcpy.
22166 (xpath_concat): Remove: not declared or used.
22168 * lib/same.h: Include <stdbool.h>
22169 (same_name): Return bool, not int.
22170 * lib/same.c (same_name): Likewise.
22171 (errno): Don't declare; we assume C89 or better now.
22173 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
22174 if not already defined.
22176 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
22177 * lib/dup-safer.c (errno): Likewise.
22179 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
22181 Merge from coreutils.
22182 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
22183 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
22184 * modules/path-concat: Don't depend on strdup.
22186 2004-08-03 Simon Josefsson <jas@extundo.com>
22188 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
22189 * lib/progname.h: Don't include stdbool.h.
22191 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22193 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
22194 * MODULES.html.sh (func_all_modules): Remove fatal.
22196 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22198 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
22200 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
22202 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
22205 2004-08-02 Simon Josefsson <jas@extundo.com>
22207 * lib/getsubopt.h: New file, with comments from Bruno Haible.
22208 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
22209 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
22211 2004-08-01 Simon Josefsson <jas@extundo.com>
22213 * lib/xgetdomainname.c: Include stdlib.h, for free().
22215 2004-07-19 Bruno Haible <bruno@clisp.org>
22217 * MODULES.html.sh (func_all_modules): Add dummy.
22219 2004-07-16 Simon Josefsson <jas@extundo.com>
22221 * modules/dummy: New file.
22223 2004-07-16 Simon Josefsson <jas@extundo.com>
22225 * lib/dummy.c: New file.
22227 2004-07-16 Bruno Haible <bruno@clisp.org>
22229 * lib/backupfile.h: Add extern "C" for C++.
22230 * lib/closeout.h: Likewise.
22231 * lib/copy-file.h: Likewise.
22232 * lib/findprog.h: Likewise.
22233 * lib/full-write.h: Likewise.
22234 * lib/pathname.h: Likewise.
22235 * lib/progname.h: Likewise.
22236 * lib/stpcpy.h: Likewise.
22237 * lib/stpncpy.h: Likewise.
22238 * lib/strcase.h: Likewise.
22239 * lib/strstr.h: Likewise.
22240 * lib/xalloc.h: Likewise.
22242 * lib/mbswidth.h: Add extern "C" for C++.
22243 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
22245 2004-07-13 Robert Millan <robertmh@gnu.org>
22247 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
22249 2004-07-09 Simon Josefsson <jas@extundo.com>
22251 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
22252 failed without this.)
22254 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
22256 * modules/chown (Files): Add lib/fchown-stub.c, since
22257 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
22259 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
22261 * lib/fchown-stub.c: New file.
22263 2004-06-24 Jim Meyering <jim@meyering.net>
22265 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
22267 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22269 * modules/argz: Omit "#include".
22271 * MODULES.html.sh (func_all_modules): Add calloc, to match
22272 2004-06-01 addition of calloc module.
22274 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22276 * m4/argz.m4: New file, which is autoupdated from libtool.
22278 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22280 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
22283 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
22285 * config/srclist-update: Don't insist on "USA." before the
22286 close-comment, as libtool omits the period and puts the */ on a
22288 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
22289 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
22291 2004-06-22 Gary V. Vaughan <gary@gnu.org>
22293 * modules/argz: New file.
22294 * MODULES.html.sh (func_all_modules): Add argz.
22296 2004-06-12 Jim Meyering <jim@meyering.net>
22297 and Paul Eggert <eggert@cs.ucla.edu>
22299 * modules/hash (Files): Add lib/xalloc.h.
22300 * modules/pipe (Depends-on): Add wait-process.
22301 * modules/stat (Depends-on): Add xalloc.
22302 * modules/userspec (Files): Add lib/userspec.h.
22305 Upgrade from gettext-0.13.
22306 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
22307 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
22308 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
22310 2004-06-10 Jim Meyering <jim@meyering.net>
22312 * lib/calloc.c: New file.
22314 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
22316 * lib/getdate.y (yylex): Allow space between sign and number.
22317 Problem reported by Dan Jacobson.
22319 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
22321 Merge from coreutils CVS.
22323 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
22324 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
22325 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
22326 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
22327 xstrtol.m4: Fix copyright date and/or serial number.
22329 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
22330 See if we need an fchown replacement.
22331 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
22332 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
22333 and use the replacement function if we detect either defect.
22335 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
22338 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
22339 and Jim Meyering <jim@meyering.net>
22341 Merge from coreutils CVS.
22343 * lib/stat-macros.h: New file, with contents from file-type.h
22344 and coreutils' system.h.
22345 * lib/file-type.c: Include "stat-macros.h".
22346 * lib/file-type.h (file_type): Move all macro definitions to new file,
22349 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
22350 Wrap old code with this conditional.
22351 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
22352 function that does not dereference symlinks.
22353 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
22355 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
22356 dependency problems.
22357 (xreadlink): Accept new arg SIZE, for efficiency.
22358 All decls and uses changed.
22359 * lib/xreadlink.h: Include <stddef.h>, for size_t.
22361 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
22362 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
22364 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
22367 2004-06-01 Jim Meyering <jim@meyering.net>
22369 * m4/calloc.m4: New file.
22371 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
22373 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
22374 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
22375 Also, fix a typo in a diagnostic.
22377 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
22379 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
22380 or AC_FUNC_REALLOC.
22382 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
22384 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
22385 macros to be defined.
22386 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
22387 the allocator returns NULL because the requested size is zero.
22389 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
22391 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
22392 var. Add comment explaining why libc still defines it. This
22393 merges the following patch from glibc:
22394 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
22396 2004-05-20 Andreas Schwab <schwab@suse.de>
22398 * m4/free.m4: Replace free if it not known to work, not the other
22401 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
22403 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
22404 present in glibc since revision 1.1 of this file.
22405 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
22406 obstack_alignment_mask, obstack_alloc, obstack_base,
22407 obstack_blank, obstack_blank_fast, obstack_chunk_size,
22408 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
22409 obstack_grow0, obstack_init, obstack_int_grow,
22410 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
22411 obstack_next_free, obstack_object_size, obstack_ptr_grow,
22412 obstack_ptr_grow_fast, obstack_room): Remove declarations of
22413 nonexistent functions.
22415 2004-05-18 Karl Berry <karl@gnu.org>
22417 * config/srclist.txt: break link for vasnprintf.c.
22419 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
22421 Port obstack to the AS/400, where pointers are 16 bytes wide and
22422 you cannot cast an integer to a valid pointer. This patch is
22423 currently waiting to be integrated into glibc; see
22424 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
22426 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
22427 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
22428 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
22429 (struct obstack): temp member is now a union of a pointer and
22430 an integer, instead of an integer. All integer uses changed.
22431 This does not affect the physical layout of struct obstack,
22432 except on hosts (like the AS/400) where the size or alignment of
22433 void * is greater than that of ptrdiff_t.
22434 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
22435 __STDC__)]: Store temporary in pointer member of union, not
22437 * lib/obstack.c: Include <stddef.h>, for offsetof.
22438 (struct fooalign): Remove; it doesn't need a name.
22439 (union fooround): Change double to long double, and add void *.
22440 (DEFAULT_ALIGNMENT): Use offsetof to compute.
22441 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
22442 not a macro. Hence the values are always int; so remove all
22443 casts-to-int in uses.
22445 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
22447 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
22448 we can get this patch merged into glibc.
22450 2004-05-17 Derek R. Price <derek@ximbiot.com>
22451 Paul Eggert <eggert@cs.ucla.edu>
22453 * m4/argp: Depend on alloca.
22455 2004-05-17 Derek R. Price <derek@ximbiot.com>
22456 Paul Eggert <eggert@cs.ucla.edu>
22458 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
22461 2004-05-17 Bruno Haible <bruno@clisp.org>
22463 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
22464 precision that consists of a '.' followed by an empty digit string.
22465 Patch by Tor Lillqvist <tml@iki.fi>.
22467 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
22469 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
22470 for backward compatibility with older code. We need our own
22471 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
22472 it under some other name, and our alloca.h will define it.
22474 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
22475 Derek Price <derek@ximbiot.com>
22477 * lib/alloca.c: Include <alloca.h>, to get our interface.
22478 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
22479 include <alloca.h> first. Use C89 prototype for alloca; this
22480 requires including <stddef.h> for size_t. Use extern "C" if C++.
22481 Use #elif for simplicity, since we can assume C89 now.
22482 Don't try to source the system alloca.h since it will not be found
22483 and to prevent recursively including its replacement.
22484 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
22485 * lib/regex.c: Likewise.
22487 2004-05-16 Derek Price <derek@ximbiot.com>
22488 Paul Eggert <eggert@cs.ucla.edu>
22490 getline cleanup. This changes the getndelim2 API: both order of
22491 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
22494 * lib/getline.c: Don't include stddef.h or stdio.h, since our
22495 interface does that.
22496 (getline): Always use getdelim, so that we don't have two
22497 copies of this code.
22498 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
22500 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
22501 (GETNDELIM2_MAXIMUM): New macro.
22502 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
22503 instead of the old practice of delim2==0. All callers changed.
22504 Return -1 on overflow, instead of returning junk.
22505 Do not set *linesize unless allocation succeeds.
22506 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
22507 that we include sys/types.h.
22508 * lib/getnline.h: Likewise.
22509 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
22510 (getndelim2): Reorder arguments.
22511 * lib/getnline.c (getnline, getndelim):
22512 Don't discard the NMAX argument.
22513 (getnline): Invoke getndelim, to avoid code duplication.
22514 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
22515 of (size_t) -1 by callers of the getnline family.
22517 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
22519 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
22520 Check for gettimeofday.
22521 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
22522 Check for settimeofday, stime.
22524 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
22526 * lib/nanosleep.c (suspended): Change its type from int to
22527 sig_atomic_t volatile.
22528 (first_call): Make it private to rpl_nanosleep, and have it
22529 be zero initially as that's a bit faster.
22530 (my_usleep): Round up fractional times instead of truncating them,
22531 as this is the usual meaning for 'sleep'.
22533 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
22535 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
22536 (ENOSYS): Define if not defined.
22537 (settime): Fall back on stime if it exists and settimeofday fails.
22538 But don't bother with fallbacks if a method fails with errno == EPERM.
22540 2004-05-11 Jim Meyering <jim@meyering.net>
22542 Prior to this change, the save_cwd caller required read access to the
22543 current directory on most systems (ones with the fchdir function).
22545 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
22546 fails, try write-only, and finally, resort to using xgetcwd.
22548 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
22550 * lib/obstack.c, obstack.h: Import changes from libc.
22552 2004-04-28 Bruno Haible <bruno@clisp.org>
22554 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
22555 also implicitly appends .exe to executables.
22556 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
22557 accepts Windows pathnames.
22558 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22559 Treat Cygwin like Windows, since it now accepts Windows pathnames.
22560 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
22561 Treat Cygwin like Windows, since it now accepts Windows pathnames.
22562 Reported by Derek Robert Price <derek@ximbiot.com>.
22564 2004-04-21 Karl Berry <karl@gnu.org>
22566 * config/srclist.txt (localcharset.c): break sync.
22568 2004-04-20 Paul Eggert <eggert@twinsun.com>
22570 * m4/host-os.m4: Add a copyright notice.
22572 2004-04-20 Jim Meyering <jim@meyering.net>
22574 Change UTILS_ to gl_ in AC_DEFINE'd names.
22575 Change utils_- and jm_-prefixed variables, too.
22576 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
22577 UTILS_FUNC_MKDIR_TRAILING_SLASH.
22578 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
22580 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
22581 Don't emit trailing blanks.
22582 Also rename jm_-prefixed variables to have gl_ prefix.
22584 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
22585 Also rename jm_-prefixed variables to have gl_ prefix.
22587 * m4/jm-macros.m4: Reflect the renamings.
22588 * m4/prereq.m4: Likewise.
22590 2004-04-20 Jim Meyering <jim@meyering.net>
22592 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
22595 2004-04-20 Jim Meyering <jim@meyering.net>
22596 Bruno Haible <bruno@clisp.org>
22598 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
22599 memory when realloc fails.
22601 2004-04-19 Jim Meyering <jim@meyering.net>
22603 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
22604 now that readutmp.c may call `free (0)'.
22606 2004-04-19 Bruno Haible <bruno@clisp.org>
22608 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
22609 * m4/inttypes_h.m4: Likewise.
22610 * m4/stdint_h.m4: Likewise.
22611 * m4/intmax_t.m4: Likewise.
22612 * m4/uintmax_t.m4: Likewise.
22614 2004-04-18 Jim Meyering <jim@meyering.net>
22616 * m4/prereq.m4: Don't forbid jm_ prefix.
22618 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
22619 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
22620 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
22621 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
22622 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
22623 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
22624 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
22625 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
22626 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
22627 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
22628 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
22629 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
22630 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
22631 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
22632 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
22633 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
22634 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
22635 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
22636 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
22638 2004-04-18 Jim Meyering <jim@meyering.net>
22640 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
22641 failure, don't leak memory and do call END_UTMP_ENT.
22643 2004-04-16 Jim Meyering <jim@meyering.net>
22645 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
22646 coreutils' stat program.
22647 (gl_PREREQ): Don't require jm_PREREQ_STAT.
22649 2004-04-11 Paul Eggert <eggert@twinsun.com>
22651 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
22653 (CHAR_BIT): Remove, since we assume C89.
22654 Include <stdint.h> if available, as per current Autoconf CVS advice.
22656 2004-03-31 Jim Meyering <jim@meyering.net>
22658 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
22659 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
22660 * m4/xalloc.m4: Likewise.
22662 2004-03-30 Paul Eggert <eggert@twinsun.com>
22664 Merge from coreutils.
22666 * m4/inttostr.m4: New file.
22667 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
22668 Require AM_STDBOOL_H and gl_TIMESPEC instead.
22669 Require gl_CLOCK_TIME.
22670 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
22672 2004-03-30 Paul Eggert <eggert@twinsun.com>
22674 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
22675 not bool, to be more consistent with Unix conventions.
22676 Suggested by Bruno Haible.
22678 Merge from coreutils.
22680 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
22681 * lib/umaxtostr.c: New files.
22683 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
22684 the usual <time.h> dance.
22685 (get_date): Change signature to support fractional time stamps.
22686 All callers changed.
22687 * lib/getdate.y: Include "getdate.h" first, as we can now
22688 assume C89 and don't need to worry about 'const'.
22689 Similarly, include "unlocked-io.h" near start, not in middle.
22690 Include <limits.h>.
22691 (textint.value): Use long int rather than int.
22692 (textint.digits): Use size_t rather than int.
22693 (BILLION, LOG10_BILLION): New constants.
22694 (parser_control): New member rel_ns. Members day_ordinal,
22695 time_zone, month, day, hour, minutes, rel_year, rel_month,
22696 rel_day, rel_hour, rel_minutes, rel_seconds
22697 are now long int, not int. Member seconds is now struct timespec,
22698 not int. New member timespec_seen. Members dates_seen, days_seen,
22699 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
22701 (%union.intval): Now long int, not int.
22702 New member timespec.
22703 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
22704 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
22705 (spec): Now is a timespec or an item list.
22706 (timespec, items): New nonterminals.
22707 (time, rel, relunit, number, get_date):
22708 Add support for fractional seconds.
22709 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
22710 (gmtime, localtime, mktime): Remove decls; not needed with C89.
22711 (to_hour): First arg is now long int, not int.
22712 (to_year): Returns long int, not int.
22713 Don't treat year -70 like 70.
22714 (tm_diff): Returns long int, not int.
22715 (lookup_word): Use bool instead of int when appropriate.
22716 (yylex): Use size_t for count, not int.
22717 Detect overflow when parsing large integer constants.
22718 Add support for fractions.
22719 (get_date): Make pointers 'const' if possible.
22720 Use more-portable code to detect integer overflow.
22721 (main) [TEST]: Adjust to above changes. Test for localtime failure.
22722 Don't use ctime; it's not reliable if the year has >4 digits.
22724 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
22725 This is for compatibility with BSD.
22727 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
22728 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
22729 From coreutils' system.h.
22731 * lib/userspec.c: Don't include "posixver.h".
22732 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
22733 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
22734 compatible extension. Simplify code by removing a boolean int
22735 that was always nonzero if a string was nonnull.
22737 2004-03-30 Jim Meyering <jim@meyering.net>
22739 Merge from coreutils.
22741 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
22742 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
22743 on some systems one must include <grp.h> before it.
22744 Reported by Christian Krackowizer.
22746 2004-03-30 Jim Meyering <jim@meyering.net>
22748 Merge from coreutils.
22750 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
22752 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
22753 an empty input stream.
22755 * lib/readtokens.c: Include <stdbool.h>.
22756 (readtoken): Use `size_t' rather than int/long.
22757 All callers adjusted.
22758 Use `bool' rather than `int' where appropriate.
22759 Use memset rather than an explicit loop.
22760 Use x2nrealloc rather than xrealloc.
22761 Allow the use of `\0' as a delimiter.
22762 (readtokens): Likewise.
22763 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
22765 2004-03-30 Jim Meyering <jim@meyering.net>
22767 * m4/realloc.m4: Remove file, since now it does no more than
22768 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
22769 the `configure.ac' section of module/realloc.
22770 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
22772 2004-03-30 Bruno Haible <bruno@clisp.org>
22774 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
22777 2004-03-29 Paul Eggert <eggert@twinsun.com>
22779 Merge changes to getloadavg.c from coreutils and Emacs.
22781 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
22782 Define to an expression, not to the empty string.
22783 Include cloexec.h and xalloc.h.
22784 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
22785 Use set_cloexec_flag rather than rolling our own.
22786 * lib/cloexec.c, lib/cloexec.h: New files.
22788 2004-03-29 Paul Eggert <eggert@twinsun.com>
22790 * m4/cloexec.m4: New file.
22792 2004-03-18 Paul Eggert <eggert@twinsun.com>
22794 * lib/getopt.h: Sync with libc CVS.
22796 2004-03-18 Paul Eggert <eggert@twinsun.com>
22797 Bruno Haible <bruno@clisp.org>
22799 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
22802 2004-03-18 Paul Eggert <eggert@twinsun.com>
22803 Bruno Haible <bruno@clisp.org>
22805 * lib/mbswidth.h: Include <wchar.h> only if
22806 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
22808 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
22810 2004-03-09 Paul Eggert <eggert@twinsun.com>
22812 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
22813 Sync with libc CVS.
22814 * lib/getopt_int.h: New file, also synced from libc.
22816 2004-03-09 Paul Eggert <eggert@twinsun.com>
22818 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
22819 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
22820 Bring back getopt.c, getopt.h, getopt1.c.
22822 2004-03-07 Paul Eggert <eggert@twinsun.com>
22824 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
22825 All uses changed. Check for sa_sigaction member; this fixes
22826 a bug first reported by Jason Andrade in
22827 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22829 2004-03-07 Paul Eggert <eggert@twinsun.com>
22831 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
22832 '#if' expressions. Unlike the code it replaces, it does not
22833 depend on (defined _SC_PAGESIZE). However, it does depend on
22834 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
22835 first reported by Jason Andrade in
22836 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
22838 2004-02-25 Simon Josefsson <jas@extundo.com>
22840 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
22842 2004-02-25 Simon Josefsson <jas@extundo.com>
22844 * lib/strdup.h: New file.
22845 * lib/strdup.c: Include it.
22846 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
22847 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
22849 2004-02-23 Karl Berry <karl@gnu.org>
22851 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
22852 (from fencepost.gnu.org:/gd/gnuorg).
22854 2004-02-23 Karl Berry <karl@gnu.org>
22856 * config/srclistvars.sh (GNUORG) [karl]: redefine.
22857 * config/srclist.txt: add maintain/standards documents.
22859 2004-02-18 Bruno Haible <bruno@clisp.org>
22861 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
22862 Reported by Derek Robert Price <derek@ximbiot.com>.
22864 2004-02-16 Karl Berry <karl@gnu.org>
22866 * config/mkinstalldirs, install-sh: update from automake.
22868 2004-02-06 Karl Berry <karl@gnu.org>
22870 * m4/po.m4: update from gettext 0.14.1.
22872 2004-02-06 Karl Berry <karl@gnu.org>
22874 * lib/config.charset: update from gettext 0.14.1.
22876 2004-02-05 Paul Eggert <eggert@twinsun.com>
22878 Add comments and code, prompted by suggestions from Bruno Haible
22880 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
22881 describing the enum quoting_style values.
22882 * lib/quotearg.c (quotearg_alloc): New function.
22883 (quotearg_buffer_restyled): Treat lone { and } as special.
22884 Treat = as special. Work around bug with older shells
22885 that "see" a '\' that is really the 2nd byte of a multibyte char.
22886 Quote empty string with shell_quoting_style.
22888 2004-02-03 Bruno Haible <bruno@clisp.org>
22890 * m4/pipe.m4: New file, from GNU gettext.
22892 2004-02-03 Bruno Haible <bruno@clisp.org>
22894 * lib/pipe.h: New file, from GNU gettext.
22895 * lib/pipe.c: New file, from GNU gettext.
22897 2004-01-27 Bruno Haible <bruno@clisp.org>
22899 * m4/execute.m4: New file, from GNU gettext.
22901 2004-01-27 Bruno Haible <bruno@clisp.org>
22903 * lib/execute.h: New file, from GNU gettext.
22904 * lib/execute.c: New file, from GNU gettext.
22905 * lib/w32spawn.h: New file, from GNU gettext.
22907 2004-01-24 Paul Eggert <eggert@twinsun.com>
22909 Merge from diffutils.
22911 * lib/file-type.c (file_type): Add typed memory objects.
22912 * lib/file-type.h (S_TYPEISTMO): New macro.
22914 * lib/c-stack.h (c_stack_action): Remove argv argument.
22915 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
22916 (die): Don't calculate message unless segv_action returns.
22917 (get_stack_location, min_address_from_argv, max_address_from_argv,
22918 volatile stack_base, volatile_stack_size): Remove.
22919 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
22920 that every segmentation violation is a stack overflow. (Ouch!)
22921 See Debian bug 136249 (still outstanding) for more info about why
22922 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
22924 2004-01-24 Paul Eggert <eggert@twinsun.com>
22926 Exit-status fix from coreutils.
22928 Use exit_failure consistently in place of EXIT_FAILURE,
22929 so that program exit statuses are consistent on failure.
22931 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
22932 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
22933 * lib/argmatch.h: Comment fix to match the above.
22934 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
22935 Now a macro referring to exit_failure, instead of a separate
22936 variable. Include "exitfail.h" to get it.
22937 * lib/xstrtol.h: Include "exitfail.h".
22938 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
22940 * lib/long-options.c (parse_long_options): Use prototype
22941 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
22944 2004-01-21 Jim Meyering <jim@meyering.net>
22946 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
22947 so as not to conflict with a different-sized __mktime_internal
22948 function in GNU libc.
22949 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
22950 Problem building statically-linked `ls' reported by Michael Brunnbauer.
22952 2004-01-20 Karl Berry <karl@gnu.org>
22954 * config/config.guess: update from config.
22956 * config/srclistvars.sh: GNUWWWLICENSES for karl.
22958 2004-01-20 Bruno Haible <bruno@clisp.org>
22960 Safer stack allocation.
22961 * lib/setenv.c: Include allocsa.h.
22962 (alloca): Remove fallback definition.
22963 (freea): Remove macro.
22964 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
22967 2004-01-20 Bruno Haible <bruno@clisp.org>
22969 * m4/eealloc.m4: New file, from GNU gettext.
22971 2004-01-20 Bruno Haible <bruno@clisp.org>
22973 * m4/allocsa.m4: New file, from GNU gettext.
22975 2004-01-20 Bruno Haible <bruno@clisp.org>
22977 * lib/xallocsa.h: New file, from GNU gettext.
22978 * lib/xallocsa.c: New file, from GNU gettext.
22980 2004-01-20 Bruno Haible <bruno@clisp.org>
22982 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
22984 2004-01-20 Bruno Haible <bruno@clisp.org>
22986 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
22987 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
22990 2004-01-20 Bruno Haible <bruno@clisp.org>
22992 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
22995 2004-01-20 Bruno Haible <bruno@clisp.org>
22997 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
22999 2004-01-20 Bruno Haible <bruno@clisp.org>
23001 * lib/eealloc.h: New file.
23003 2004-01-20 Bruno Haible <bruno@clisp.org>
23005 * lib/binary-io.h: Avoid warnings on Cygwin.
23007 2004-01-20 Bruno Haible <bruno@clisp.org>
23009 * lib/allocsa.h: New file, from GNU gettext.
23010 * lib/allocsa.c: New file, from GNU gettext.
23012 2004-01-18 Karl Berry <karl@gnu.org>
23014 * doc/gpl.texi, doc/lgpl.texi: new files.
23016 2004-01-18 Karl Berry <karl@gnu.org>
23018 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
23019 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
23021 2004-01-15 Paul Eggert <eggert@twinsun.com>
23023 Merge from coreutils.
23025 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
23026 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
23027 (gl_DEFAULT_POSIX2_VERSION): Move
23028 the documentation from 'configure' into 'config.hin',
23029 so that 'configure --help' isn't burdened by it and
23030 we don't have to worry about its formatting there.
23031 Reword the documentation so that it's more succinct
23032 and can be run together into a single paragraph.
23033 * m4/same.m4 (gl_SAME): Check for pathconf.
23035 2004-01-15 Paul Eggert <eggert@twinsun.com>
23037 Merge from coreutils.
23039 * lib/posixver.c: Include posixver.h.
23041 * lib/same.c: Include <stdbool.h>, <limits.h>.
23042 (_POSIX_NAME_MAX): Define if not defined.
23044 (same_name): If file names are silently truncated, report
23045 that the file names are the same if they are the same after
23046 the silent truncation.
23048 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
23049 conversion function.
23050 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
23051 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
23054 2004-01-15 Jim Meyering <jim@meyering.net>
23056 Merge from coreutils.
23058 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
23059 if no library is required.
23060 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
23061 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
23062 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
23063 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
23064 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
23065 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
23066 value, $ac_cv_search_crypt, if it's "none required".
23067 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
23068 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
23069 not gl_FUNC_GETLOADAVG.
23070 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
23071 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
23073 2004-01-15 Jim Meyering <jim@meyering.net>
23075 Merge from coreutils.
23077 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
23078 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
23079 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
23081 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
23082 optional configure-time default.
23084 * lib/version-etc.c (version_etc_copyright): Update copyright date.
23086 * lib/xreadlink.c (xreadlink): Correct outdated comment.
23088 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
23090 Merge from coreutils.
23092 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
23093 value, $ac_cv_search_nanosleep, if it's "none required".
23095 2004-01-14 Paul Eggert <eggert@twinsun.com>
23097 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
23098 with like-named macro in fnmatch.c.
23099 (EXT): Use an internal constant instead.
23101 Merge fnmatch patches from glibc.
23102 * lib/fnmatch.c (mbsinit): Remove define.
23103 Add libc_hidden_ver (__fnmatch, fnmatch).
23104 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
23105 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
23107 2004-01-14 Karl Berry <karl@gnu.org>
23109 * config/install-sh: update from automake.
23111 2004-01-13 Karl Berry <karl@gnu.org>
23113 * config/install-sh: update from automake.
23115 2004-01-09 Karl Berry <karl@gnu.org>
23117 * config/install-sh: update from automake.
23119 2004-01-05 Karl Berry <karl@gnu.org>
23121 * config/config.{sub,guess}: update from config.
23123 2003-12-31 Karl Berry <karl@gnu.org>
23125 * config/depcomp: update from automake.
23127 2003-12-14 Karl Berry <karl@gnu.org>
23129 * lib/config.charset: update from gettext-runtime.
23131 2003-12-03 Paul Eggert <eggert@twinsun.com>
23133 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
23134 Bug reported by Alfred M. Szmidt.
23136 2003-12-03 Bruno Haible <bruno@clisp.org>
23138 * m4/gettext.m4: Upgrade from gettext-0.13.
23139 * m4/po.m4: Upgrade from gettext-0.13.
23140 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
23141 * m4/intmax.m4: New file, from gettext-0.13.
23142 * m4/printf-posix.m4: New file, from gettext-0.13.
23144 2003-11-29 Karl Berry <karl@gnu.org>
23146 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
23148 2003-11-25 Paul Eggert <eggert@twinsun.com>
23149 Bruno Haible <bruno@clisp.org>
23151 * lib/printf-parse.h: Don't include sys/types.h.
23152 (ARG_NONE): New macro.
23153 (char_directive): Change type of *arg_index fields to size_t.
23154 * lib/printf-parse.c: Don't include sys/types.h.
23155 (SSIZE_MAX): Remove macro.
23156 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
23157 Remove unnecessary overflow check.
23158 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
23161 2003-11-25 Bruno Haible <bruno@clisp.org>
23163 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
23165 2003-11-25 Bruno Haible <bruno@clisp.org>
23167 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
23170 2003-11-24 Paul Eggert <eggert@twinsun.com>
23172 * modules/alloca: Remove dependency on xalloc.
23174 2003-11-24 Paul Eggert <eggert@twinsun.com>
23176 * lib/alloca.c: Remove dependency on xalloc module.
23177 (xalloc_die): Remove.
23178 (memory_full) [!defined emacs]: New macro.
23179 [!defined emacs]: Don't include xalloc.h.
23180 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
23181 address arithmetic overflows. Change datatypes a bit to avoid
23184 2003-11-22 Jim Meyering <jim@meyering.net>
23186 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
23189 2003-11-21 Karl Berry <karl@gnu.org>
23191 * config/config.{sub,guess}: update from config.
23193 2003-11-18 Karl Berry <karl@gnu.org>
23195 * config/config.{sub,guess}: update from config.
23197 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
23199 2003-11-17 Paul Eggert <eggert@twinsun.com>
23201 * README: Mention that S+T cannot overflow if S is the size of
23202 an existing object and T is sufficiently small.
23204 2003-11-17 Jim Meyering <jim@meyering.net>
23206 On systems without utime and without a utimes function capable of
23207 dealing with a NULL struct utimbuf* argument, this utime replacement
23208 could -- in unusual circumstances -- leak a file descriptor.
23209 * lib/utime.c: Include <unistd.h> and <errno.h>.
23210 (utime_null): Be sure to close `fd' and to preserve errno.
23211 Reported by Geoff Collyer via Arnold Robbins.
23213 2003-11-17 Bruno Haible <bruno@clisp.org>
23215 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
23216 (Depends-on): Add xsize.
23218 2003-11-17 Bruno Haible <bruno@clisp.org>
23220 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
23222 2003-11-17 Bruno Haible <bruno@clisp.org>
23224 * lib/vasnprintf.c (alloca): Remove fallback definition.
23225 (freea): Remove definition.
23226 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
23227 Reported by Paul Eggert.
23229 2003-11-16 Paul Eggert <eggert@twinsun.com>
23230 Bruno Haible <bruno@clisp.org>
23232 Protect against address arithmetic overflow.
23233 * lib/printf-args.h: Include stddef.h.
23234 (arguments): Change type of field 'count' to size_t.
23235 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
23236 'unsigned int' where appropriate.
23237 * lib/printf-parse.h: Include sys/types.h.
23238 (char_directive): Change type of *arg_index fields to ssize_t.
23239 (char_directives): Change type of fields 'count', max_*_length to
23241 * lib/printf-parse.c: Include sys/types.h and xsize.h.
23242 (SSIZE_MAX): Define fallback value.
23243 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
23244 instead of 'int' where appropriate. Check a_allocated, d_allocated
23245 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
23246 * lib/vasnprintf.c: Include xsize.h.
23247 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
23248 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
23249 overflow. Avoid wraparound when converting a width or precision from
23252 2003-11-16 Bruno Haible <bruno@clisp.org>
23254 Update from GNU gettext.
23255 * lib/printf-parse.c: Generalize to it can be compiled for wide
23257 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
23258 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
23259 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
23260 SNPRINTF): New macros.
23261 Don't include <alloca.h> if the file is used inside libintl.
23262 (local_wcslen): New function, for Solaris 2.5.1.
23263 (VASNPRINTF): Use it instead of wcslen.
23265 2003-11-16 Bruno Haible <bruno@clisp.org>
23267 * lib/xsize.h (xmax): New function.
23268 (xsum, xsum3, xsum4): Declare as "pure" functions.
23270 2003-11-12 Paul Eggert <eggert@twinsun.com>
23272 * modules/xalloc (Files): Undo latest change, since xalloc.h
23273 no longer needs SIZE_MAX or PTRDIFF_MAX.
23275 2003-11-12 Paul Eggert <eggert@twinsun.com>
23277 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
23280 2003-11-12 Paul Eggert <eggert@twinsun.com>
23282 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
23283 "return", to pacify some unknown compiler. Problem reported
23284 by Joerg Schilling.
23286 2003-11-12 Paul Eggert <eggert@twinsun.com>
23288 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
23289 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
23290 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
23291 heuristic is just as accurate as far as we know, and it removes a
23292 dependency on size_max.m4 and ptrdiff_max.m4.
23294 2003-11-11 Bruno Haible <bruno@clisp.org>
23296 * modules/xsize (Files): Add m4/size_max.m4.
23297 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
23299 2003-11-11 Bruno Haible <bruno@clisp.org>
23301 * m4/size_max.m4: New file.
23302 * m4/ptrdiff_max.m4: New file.
23303 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
23304 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
23305 (gl_XALLOC): Invoke it.
23307 2003-11-11 Bruno Haible <bruno@clisp.org>
23309 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
23310 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
23313 2003-11-10 Paul Eggert <eggert@twinsun.com>
23315 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
23316 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
23317 rejected some allocations of exactly SIZE_MAX - 2 bytes.
23319 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
23320 not (size_t) -1, since it's defined here.
23322 2003-11-09 Karl Berry <karl@gnu.org>
23324 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
23326 2003-11-06 Paul Eggert <eggert@twinsun.com>
23328 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
23329 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
23330 Reject sizes of exactly SIZE_MAX bytes.
23331 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
23332 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
23334 2003-11-05 Bruno Haible <bruno@clisp.org>
23336 * lib/xsize.h: Include limits.h, to avoid a possible collision with
23337 SIZE_MAX defined in <limits.h> on Solaris.
23339 2003-11-04 Jim Meyering <jim@meyering.net>
23341 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
23342 variable names, rather than @VAR@.
23343 * modules/poll: Likewise.
23345 2003-11-04 Bruno Haible <bruno@clisp.org>
23347 * modules/xsize: New file.
23348 * modules/linebreak: Depend on xsize.
23349 * MODULES.html.sh (func_all_modules): Add xsize.
23351 2003-11-04 Bruno Haible <bruno@clisp.org>
23353 * m4/xsize.m4: New file.
23355 2003-11-04 Bruno Haible <bruno@clisp.org>
23357 * lib/xsize.h: New file.
23358 * lib/linebreak.c: Include xsize.h.
23359 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
23360 argument for overflow.
23361 Suggested by Paul Eggert.
23363 2003-11-03 Karl Berry <karl@gnu.org>
23365 * config/config.{guess,sub}: update from config.
23367 2003-11-03 Jim Meyering <jim@meyering.net>
23369 * modules/userspec (lib_SOURCES): Add userspec.h.
23370 (Include): Add "userspec.h".
23371 Improve description.
23373 2003-11-03 Jim Meyering <jim@meyering.net>
23375 * lib/userspec.c: Include "userspec.h".
23376 * lib/userspec.h: New file.
23378 2003-11-03 Bruno Haible <bruno@clisp.org>
23380 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
23382 2003-11-03 Bruno Haible <bruno@clisp.org>
23384 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
23385 available, to avoid (extremely rare) race condition.
23386 Suggested by Paul Eggert.
23388 2003-11-02 Karl Berry <karl@gnu.org>
23390 * config/srclist.txt (vasprintf.c): sync broken, sigh.
23392 2003-10-31 Paul Eggert <eggert@twinsun.com>
23394 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
23395 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
23396 (read_filesystem_list): Set and use me_type_malloced.
23397 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
23398 whatever the type happens to be), for brevity and consistency.
23399 Check for size calculation overflow on Alphas running OSF/1.
23401 2003-10-31 Jim Meyering <jim@meyering.net>
23403 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
23405 * lib/linebuffer.c: Include <string.h> for declaration of memset.
23407 2003-10-30 Paul Eggert <eggert@twinsun.com>
23408 Bruno Haible <bruno@clisp.org>
23410 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
23411 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
23413 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
23415 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
23416 netbsd*-gnu*. Suggested by Robert Millan.
23418 2003-10-29 Paul Eggert <eggert@twinsun.com>
23420 * modules/group-member: Depend on stdbool.
23422 2003-10-29 Paul Eggert <eggert@twinsun.com>
23424 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
23426 2003-10-29 Paul Eggert <eggert@twinsun.com>
23428 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
23429 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
23430 after the 'gnu' in these cases. This fixes some bugs in the
23431 previous change, and is based on suggestions by Robert Millan.
23433 2003-10-29 Paul Eggert <eggert@twinsun.com>
23435 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
23436 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
23438 * lib/quotearg.c (quotearg_n_options): Use it.
23439 * lib/group-member.c: Include <stdbool.h>.
23440 (free_group_info): Arg is now const *; don't free arg.
23441 (get_group_info): Now returns bool and accepts struct group_info *,
23442 rather than returning a malloc'ed struct group_info *.
23443 All uses changed. Check for overflow in internal size calculation.
23445 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
23446 rather than xmalloc/xrealloc.
23447 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
23448 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
23449 conformance bug: the old code used a pointer after freeing the
23450 storage that it addressed.
23451 * lib/hash.c (hash_initialize): Simplify the code by using
23452 xalloc_oversized rather than doing it by hand.
23453 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
23454 the buffer preserved. Use free and xmalloc instead.
23455 * lib/quotearg.c (quotearg_n_options): Likewise.
23456 Use a simpler test for size overflow. Don't use xalloc_oversized
23457 because unsigned int might be wider than size_t (!); this suggests
23458 that we should switch from unsigned int to size_t for slot numbers.
23460 2003-10-28 Paul Eggert <eggert@twinsun.com>
23462 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
23463 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
23464 NetBSD kernels. Requested by Richard Stallman.
23466 2003-10-27 Paul Eggert <eggert@twinsun.com>
23468 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
23469 to allocate the returned structure. Do not allocate a subarray,
23470 as x2nrealloc will do that.
23471 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
23472 instead of xnrealloc.
23473 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
23475 2003-10-27 Bruno Haible <bruno@clisp.org>
23477 * lib/stdbool_.h: Better support for BeOS.
23479 2003-10-26 Paul Eggert <eggert@twinsun.com>
23481 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
23484 2003-10-26 Paul Eggert <eggert@twinsun.com>
23486 * lib/xalloc.h (xalloc_oversized): New static inline function, for
23487 callers that want to do their own size-overflow checking. Include
23488 <stdbool.h>, since xalloc_oversized returns bool.
23489 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
23490 to use xalloc_oversized.
23492 Add two functions x2realloc, x2nrealloc, for programs that grow
23493 arrays dynamically by doubling their sizes.
23494 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
23495 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
23498 Port to C99 semantics for 'inline' of external functions.
23499 Bug reported by Bruno Haible.
23500 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
23501 with the old contents of xnmalloc.
23502 (xnmalloc, xmalloc): Use it.
23503 (xnrealloc_inline): New static inline function,
23504 with the old contents of xnrealloc.
23505 (xnrealloc, xrealloc): Use it.
23507 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
23510 2003-10-26 Karl Berry <karl@gnu.org>
23512 * config/srclist.txt (COPYING.DOC): no longer available from
23513 /gd/gnuorg; don't know where the ultimate source is.
23515 2003-10-25 Paul Eggert <eggert@twinsun.com>
23517 Fix several address-calculation bugs in the hash modules,
23518 plus some minor code cleanup.
23520 * lib/hash.h: Include <stdbool.h>, for bool.
23521 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
23522 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
23523 hash_get_n_entries, hash_get_max_bucket_length,
23524 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
23525 hash_rehash): Use size_t rather than unsigned.
23526 * lib/hash.c (struct hash_table, hash_get_n_buckets,
23527 hash_get_n_buckets_used, hash_get_n_entries,
23528 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
23529 hash_get_entries, hash_do_for_each, hash_string, is_prime,
23530 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
23532 (SIZE_MAX): Define if not defined.
23533 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
23534 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
23536 Use const * when possible.
23537 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
23538 (check_tuning): Fix bug: if tuning parameters were very close to
23539 0 or 1, rounding errors could have caused subscript violations.
23540 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
23541 (hash_initialize): Add 'fail:' label
23542 to free table and return NULL, and use it to simplify code.
23543 Use calloc rather than clearing the storage ourself.
23544 (hash_initialize, hash_rehash): Check for arithmetic overflow in
23545 buffer size calculations.
23546 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
23547 Include <stddef.h>, for size_t.
23548 * lib/hash-pjw.c (hash_pjw): Likewise.
23549 Switch to method described by Bruno Haible.
23550 Include <limits.h>, for CHAR_BIT.
23551 (SIZE_BITS): New macro.
23553 2003-10-23 Paul Eggert <eggert@twinsun.com>
23555 * m4/getline.m4 (AM_FUNC_GETLINE):
23556 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
23557 hosts. Problem reported by Derek Robert Price in
23558 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
23559 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
23560 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
23562 2003-10-21 Paul Eggert <eggert@twinsun.com>
23564 * lib/getndelim2.c (getndelim2): When size calculation overflows,
23565 ceiling the allocation at NMAX bytes rather than silently
23566 discarding input bytes before NMAX is reached. This makes
23567 a difference only if NMAX exceeds SIZE_MAX / 2.
23569 * lib/obstack.c: Merge from glibc.
23570 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
23571 Add libc_hidden_def (_obstack_newchunk).
23572 (_obstack_free) [! defined _LIBC]: Remove.
23573 [defined _LIBC]: Make a strong alias from obstack_free, rather than
23574 a clone of the function body.
23575 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
23576 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
23578 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
23580 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
23583 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
23584 (obstack_ptr_grow_fast, obstack_int_grow_fast):
23585 Don't use lvalue casts, as GCC plans to remove support for them
23586 in GCC 3.5. Reported by Joseph S. Myers. This bug
23587 was also present in the non-GCC version, indicating that this
23588 code had always been buggy and had never been widely used.
23589 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
23590 Use the fast variant of each macro, rather than copying the
23591 definiens of the fast variant; that way, we'll be more likely to
23592 catch future bugs in the fast variants.
23594 2003-10-20 Bruno Haible <bruno@clisp.org>
23596 * modules/wait-process: New file.
23597 * MODULES.html.sh (func_all_modules): Add wait-process.
23599 2003-10-20 Bruno Haible <bruno@clisp.org>
23601 * m4/wait-process.m4: New file.
23603 2003-10-20 Bruno Haible <bruno@clisp.org>
23605 * lib/wait-process.h: New file, from GNU gettext.
23606 * lib/wait-process.c: New file, from GNU gettext.
23608 2003-10-19 Jim Meyering <jim@meyering.net>
23610 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
23613 2003-10-18 Karl Berry <karl@gnu.org>
23615 * config/config.guess: update from config.
23617 2003-10-16 Paul Eggert <eggert@twinsun.com>
23619 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
23620 (getgroups): First arg is int, not size_t.
23621 Don't let 'free' mangle errno.
23623 2003-10-16 Paul Eggert <eggert@twinsun.com>
23625 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
23627 2003-10-16 Karl Berry <karl@gnu.org>
23629 * config/config.{guess,sub}: update from config.
23631 2003-10-16 Jim Meyering <jim@meyering.net>
23633 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
23636 2003-10-15 Paul Eggert <eggert@twinsun.com>
23638 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
23639 (SIZE_MAX): Remove.
23640 (new_exclude, add_exclude_file): Initial size no longer needs to
23642 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
23643 our own address arithmetic overflow checking.
23645 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
23646 (fnmatch): Do not alloca more than 2000 wide characters;
23647 instead, use malloc for large buffers.
23648 Check for address arithmetic overflow, and return -1
23649 with errno set to ENOMEM in that case.
23650 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
23651 (NEW_PATTERN): Do not alloca more than 8000 bytes;
23652 instead, return -1. Check for address arithmetic overflow.
23654 2003-10-14 Paul Eggert <eggert@twinsun.com>
23656 Handle invalid suffixes and overflow independently, so that
23657 callers can treat them independently as needed. Fix some bugs in
23658 suffix handling, e.g., "100k@" was not diagnosed as an invalid
23659 suffix for a human-readable blocksize. The major caller-visible
23660 change is the addition of a new
23661 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
23662 that both overflow and suffix chars were found.
23664 * lib/human.c (humblock): Don't check separately for invalid suffix
23665 char; that is xstrtoumax's job (now that its bug is fixed).
23666 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
23667 INTMAX_MAX]: New macros.
23668 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
23669 TYPE_MAXIMUM): New macros.
23670 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
23671 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
23672 if overflow occurs, as it's what __strtol does and it's more useful
23674 (__xstrtol): If __strtol reports some error other than ERANGE,
23675 reflect it to the caller as LONGINT_INVALID. If it reports
23676 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
23677 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
23678 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
23680 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
23681 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
23682 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
23683 [defined UINTMAX_MAX]: New macros.
23685 2003-10-14 Bruno Haible <bruno@clisp.org>
23687 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
23689 2003-10-14 Bruno Haible <bruno@clisp.org>
23691 * m4/sig_atomic_t: New file, from GNU gettext.
23692 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
23694 2003-10-14 Bruno Haible <bruno@clisp.org>
23696 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
23697 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
23698 Also use volatile where needed.
23700 2003-10-12 Paul Eggert <eggert@twinsun.com>
23702 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
23703 Change maintainer from Bruno Haible to 'all'.
23705 2003-10-12 Paul Eggert <eggert@twinsun.com>
23707 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
23709 2003-10-12 Paul Eggert <eggert@twinsun.com>
23711 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
23712 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
23713 and define in terms of the other primitives.
23714 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
23715 (SIZE_MAX): Define if not already defined.
23716 (array_size_overflow): New function.
23717 (xalloc_die): Abort instead of exiting if 'error' returns.
23718 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
23719 (xmalloc, xrealloc): Use them.
23720 (xcalloc): Check for address arithmetic overflow.
23721 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
23722 a bit faster than strcpy.
23724 2003-10-10 Simon Josefsson <jas@extundo.com>
23726 * modules/argp (Depends-on): Add restrict and strcase.
23728 2003-10-10 Simon Josefsson <jas@extundo.com>
23730 * m4/argp.m4: Add AC_C_INLINE.
23732 2003-10-08 Paul Eggert <eggert@twinsun.com>
23734 Merge getpass from libc, plus a few fixes.
23736 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
23737 Include <stdbool.h>.
23738 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
23739 __fsetlocking to empty.
23740 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
23741 do include <bits/libc-lock.h>.
23742 Do not include <fcntl.h>; not needed.
23743 [_LIBC]: Include <wchar.h>.
23744 (NOTCANCEL_MODE): New macro.
23745 (flockfile, funlockfile) [_LIBC]: New macros.
23746 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
23747 [!_LIBC]: New macros.
23748 (call_fclose): New function.
23749 (getpass): Use it. Save tty stream separately; this simplifies the
23750 code and makes it more reliable if stdin happens to equal stdout.
23751 Invoke __fsetlocking on tty.
23752 Handle thread cancellation if needed.
23753 Namespace cleanup (use __tcgetattr, __getline).
23754 Use bool for Booleans.
23755 [USE_IN_LIBIO]: Handle wide streams.
23756 [!_LIBC]: Unconditionally do the fseek, since we don't know what
23757 stream might go where.
23759 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
23760 doesn't have to include <stdio.h> before us.
23761 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
23762 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
23763 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
23764 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
23765 if not declared, so that we can use getpass.c code from libc without
23767 (flockfile, ftrylockfile, funlockfile): New macros.
23769 2003-10-08 Paul Eggert <eggert@twinsun.com>
23771 * modules/getpass: Depend on stdbool.
23773 2003-10-08 Paul Eggert <eggert@twinsun.com>
23775 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
23777 2003-10-07 Karl Berry <karl@gnu.org>
23779 * config/config.{guess,sub}: update from config.
23781 2003-10-06 Jim Meyering <jim@meyering.net>
23782 Bruno Haible <bruno@clisp.org>
23784 This lets translators provide better translations for the
23785 "Written by ..." part of --version output.
23786 * lib/version-etc.h: Include stdarg.h.
23787 (version_etc_copyright): Declare as readonly.
23788 (version_etc): Make this function variadic with a NULL-terminated list
23789 of author name strings.
23790 (version_etc_va): New declaration.
23791 * lib/version-etc.c: Include stdarg.h, stdlib.h.
23792 (version_etc_copyright): Declare as readonly.
23793 (version_etc_va): New function. Provide a different translatable string
23794 for each possible number of authors < 10. Abbreviate when there are 10
23796 (version_etc): Make this function variadic. Call version_etc_va.
23797 Suggestion from Gary V. Vaughan.
23799 * lib/long-options.h (parse_long_options): Change prototype: the
23800 authors string is moved to the end and becomes variadic.
23801 * lib/long-options.c: Include stdarg.h.
23802 (parse_long_options): Make this function variadic, too.
23803 Call version_etc_va, not version_etc.
23805 2003-10-06 Bruno Haible <bruno@clisp.org>
23807 * modules/version-etc-2: Remove file.
23808 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
23810 2003-10-06 Bruno Haible <bruno@clisp.org>
23812 * modules/fatal-signal: New file.
23813 * MODULES.html.sh (func_all_modules): Add fatal-signal.
23815 2003-10-06 Bruno Haible <bruno@clisp.org>
23817 * m4/fatal-signal.m4: New file.
23818 * m4/signalblocking.m4: New file, from GNU gettext.
23820 2003-10-06 Bruno Haible <bruno@clisp.org>
23822 * lib/version-etc-2.h: Remove file.
23823 * lib/version-etc-2.c: Remove file.
23825 2003-10-06 Bruno Haible <bruno@clisp.org>
23827 * lib/fatal-signal.h: New file, from GNU gettext.
23828 * lib/fatal-signal.c: New file, from GNU gettext.
23830 2003-10-05 Paul Eggert <eggert@twinsun.com>
23832 * README: Rework advice for preventing empty .o files.
23833 Don't recommend ELIDE constructs. Recommend <stddef.h>,
23836 2003-10-04 Karl Berry <karl@gnu.org>
23838 * lib/argp*: update from libc.
23840 2003-10-04 Karl Berry <karl@gnu.org>
23842 * config/config.{guess,sub}: update from config.
23844 2003-10-02 Bruno Haible <bruno@clisp.org>
23846 * modules/lchown (Include): Add lchown.h.
23847 * modules/time_r (Include): Use "..." syntax.
23848 * modules/xgetdomainname (Include): Add xgetdomainname.h.
23850 2003-10-01 Simon Josefsson <jas@extundo.com>
23852 * MODULES.html.sh (func_all_modules): Move gethostname from section
23853 'based on' to section 'lacking' POSIX:2001.
23855 2003-10-01 Larry Jones <lawrence.jones@eds.com>
23857 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
23858 to output mode on the same stream.
23860 2003-09-29 Paul Eggert <eggert@twinsun.com>
23862 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
23863 Fix arg typo in previous patch.
23865 2003-09-28 Jim Meyering <jim@meyering.net>
23867 * lib/error.c: Correct cpp indentation.
23869 2003-09-27 Paul Eggert <eggert@twinsun.com>
23871 * modules/free: New file.
23873 2003-09-27 Paul Eggert <eggert@twinsun.com>
23875 * m4/free.m4: New file.
23877 2003-09-27 Paul Eggert <eggert@twinsun.com>
23879 * lib/minmax.h (MIN, MAX)
23880 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
23881 Omit the special code that used __typeof__, since we worry that
23882 it could be more trouble than it's worth. See:
23883 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
23884 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
23886 * lib/free.c: New file.
23888 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
23890 Trivial fixes to Makefile.am parts of module listings.
23891 * modules/strstr: Append strstr.h to lib_SOURCES.
23892 * modules/strcase: Likewise, for strcase.h.
23894 2003-09-27 Karl Berry <karl@gnu.org>
23896 * config/mkinstalldirs: update from automake.
23898 2003-09-26 Paul Eggert <eggert@twinsun.com>
23900 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
23901 (error_tail): Do not loop, reallocating temporary buffer, since
23902 the output cannot contain more wide characters than the input
23903 contains bytes, the size must be big enough already. This avoids
23904 one potential size overflow calculation. Check for size overflow
23905 when calculating temporary buffer size. Free temporary buffer
23906 when done, if it was allocated with malloc; this plugs a memory
23907 leak. Remove casts from void * to pointers, that are no longer
23908 needed now that we're assuming C89 or better.
23910 Merge error changes from glibc.
23912 * lib/error.c, error.h: Update copyright notice header to match glibc.
23913 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
23914 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
23915 Disable cancellation while printing error.
23916 * lib/error.h: Prepend __ to parameter names.
23918 2003-09-26 Jim Meyering <jim@meyering.net>
23920 * lib/error.c (error_tail): Move some declarations
23921 into inner scope where the local variables are used.
23923 2003-09-26 Bruno Haible <bruno@clisp.org>
23925 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
23927 Don't define stpncpy through config.h; it's now done through stpncpy.h.
23929 2003-09-26 Bruno Haible <bruno@clisp.org>
23931 * lib/stpncpy.h (gnu_stpncpy): New declaration.
23932 (stpncpy): Define as alias for gnu_stpncpy.
23933 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
23935 2003-09-25 Simon Josefsson <jas@extundo.com>
23937 * lib/xgetdomainname.h: New file.
23938 * lib/xgetdomainname.c: New file.
23940 2003-09-25 Simon Josefsson <jas@extundo.com>
23941 Bruno Haible <bruno@clisp.org>
23943 * modules/getdomainname: New file.
23944 * modules/xgetdomainname: New file.
23945 * MODULES.html.sh (func_all_modules): Add getdomainname,
23948 2003-09-25 Simon Josefsson <jas@extundo.com>
23949 Bruno Haible <bruno@clisp.org>
23951 * m4/getdomainname.m4: New file.
23953 2003-09-25 Simon Josefsson <jas@extundo.com>
23954 Bruno Haible <bruno@clisp.org>
23956 * lib/getdomainname.h: New file.
23957 * lib/getdomainname.c: New file.
23959 2003-09-25 Karl Berry <karl@gnu.org>
23961 * lib/argp-fmtstream.c, argp-help.c: update from libc.
23963 2003-09-25 Karl Berry <karl@gnu.org>
23965 * config/install-sh: update from automake.
23967 2003-09-25 Bruno Haible <bruno@clisp.org>
23969 * modules/version-etc-2: New file, from modules/version-etc with
23971 * MODULES.html.sh (func_all_modules): Add version-etc-2.
23973 2003-09-25 Bruno Haible <bruno@clisp.org>
23975 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
23976 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
23978 2003-09-24 Simon Josefsson <jas@extundo.com>
23980 * modules/xgethostname: Add xgethostname.h.
23982 2003-09-24 Paul Eggert <eggert@twinsun.com>
23984 * lib/linebuffer.c (freebuffer): Don't free the argument, just
23985 the buffer associated with the argument. Bug reported by
23988 2003-09-24 Paul Eggert <eggert@twinsun.com>
23990 * README: Document assumptions that 'int' is at least 32 bits
23991 wide, that integer arithmetic is 2's complement without overflow,
23992 that there are no holes in integer values, that adding sizes of
23993 two nonoverlapping objects can't overflow, and that all-bits-zero
23994 yields scalar zero. Fix spelling and capitalization typos.
23996 2003-09-19 Karl Berry <karl@gnu.org>
23998 * lib/argp.h: update from libc.
24000 2003-09-17 Paul Eggert <eggert@twinsun.com>
24002 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
24003 to avoid spurious warnings like "AC_RUN_IFELSE was called before
24004 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
24006 2003-09-17 Paul Eggert <eggert@twinsun.com>
24008 * gnulib-tool: Use "test -h", not "test -L", for portability
24009 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
24010 (tags_regexp): Remove, since \| doesn't conform to POSIX.
24011 (sed_extract_prog): Issue s commands one-by-one, rather than
24012 using \| in one s command.
24014 2003-09-16 Paul Eggert <eggert@twinsun.com>
24016 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
24017 input error, instead of returning NULL the next time we are called
24018 (and therefore losing track of errno).
24020 2003-09-16 Bruno Haible <bruno@clisp.org>
24022 * gnulib-tool (func_create_testdir): Warn about duplicated
24025 2003-09-15 Paul Eggert <eggert@twinsun.com>
24027 * modules/argmatch, modules/fatal, modules/obstack,
24028 modules/xalloc, modules/xgethostname: Sort dependencies by
24029 importance, not alphabetically.
24031 2003-09-15 Paul Eggert <eggert@twinsun.com>
24033 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
24034 fails, so that the caller gets the proper errno.
24036 * lib/readutmp.c (read_utmp): Likewise.
24037 Check for fstat error. Close stream and free storage
24040 2003-09-14 Karl Berry <karl@gnu.org>
24042 * config/srclist.txt (strdup.c): disable for c89 changes.
24044 2003-09-14 Jim Meyering <jim@meyering.net>
24046 * lib/getloadavg.c: Correct cpp indentation.
24047 * lib/strdup.c: Likewise.
24048 * lib/vasnprintf.c: Likewise.
24050 2003-09-14 Bruno Haible <bruno@clisp.org>
24052 * modules/fwriteerror: New file.
24053 * MODULES.html.sh (func_all_modules): Add fwriteerror.
24055 2003-09-14 Bruno Haible <bruno@clisp.org>
24057 * lib/fwriteerror.h: New file.
24058 * lib/fwriteerror.c: New file.
24060 2003-09-12 Paul Eggert <eggert@twinsun.com>
24062 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
24063 modules/xgethostname, modules/xalloc: Depend on exit.
24065 2003-09-12 Paul Eggert <eggert@twinsun.com>
24067 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
24069 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
24070 and AC_MINIX, too, so that their extensions are available.
24072 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
24073 This macro has been superseded by gl_BACKUPFILE.
24075 More patches to assume C89 or better.
24077 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
24079 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
24081 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
24082 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
24083 Include <string.h>, <stdlib.h> unconditionally.
24084 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
24085 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
24086 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
24087 headers or for string.h.
24088 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
24091 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
24093 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
24094 * m4/userspec.m4 (gl_USERSPEC): Likewise.
24095 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
24096 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
24097 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24098 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
24100 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
24101 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
24102 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
24104 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
24105 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
24106 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
24109 2003-09-12 Paul Eggert <eggert@twinsun.com>
24111 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
24112 * lib/obstack.c [!defined _LIBC]: Likewise.
24113 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
24114 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
24115 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
24117 More changes to assume C89 or better.
24119 * lib/error.c (error_tail): Assume vprintf.
24121 * lib/argmatch.c (getenv): Remove decl.
24122 * lib/progreloc.c (get_full_program_name): Define via prototype.
24123 * lib/setenv.c (clearenv): Likewise.
24124 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
24126 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
24127 (malloc, memcpy): Remove decls.
24128 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
24129 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
24130 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24131 (memcpy): Remove macro.
24132 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
24133 (__P): Remove. All uses removed.
24134 (PTR): Remove. All uses changed to void *.
24135 (CHAR_BIT, NULL): Remove.
24136 (spaces, zeros, memset_space, memset_zero)
24137 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
24139 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
24140 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
24141 Define with prototype.
24142 Remove now-unnecessary prototype decl.
24143 (extra_args_spec): Assume ANSI C. All uses changed.
24144 (extra_args_spec_iso): Remove.
24145 (my_strftime, emacs_strftimeu): Define via prototype.
24146 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
24148 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
24149 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
24150 (strtoul, strtol): Remove decls.
24151 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
24153 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
24154 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
24155 (LOCALE_PARAM_PROTO): New macro.
24156 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
24157 (INTERNAL (strtol), strtol): Define with a prototype.
24158 (PARAMS): Remove. All uses removed.
24159 * lib/tempname.c: Include <string.h> unconditionally.
24160 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
24161 * lib/xgethostname.c (main): Define with a prototype.
24162 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
24163 Include <stdlib.h> unconditionally.
24164 (calloc, malloc, realloc, free): Remove decls.
24165 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
24166 Include <stdlib.h> unconditionally. Sort include file names.
24168 (xstrtod): Define with a prototype.
24169 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
24170 (strtol, strtoul): Remove decls.
24172 2003-09-11 Paul Eggert <eggert@twinsun.com>
24174 More patches to assume C89 or better.
24175 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
24176 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
24177 string.h, memchr, STDC_HEADERS.
24179 2003-09-11 Paul Eggert <eggert@twinsun.com>
24181 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
24182 Include <stdlib.h>, <string.h> unconditionally.
24183 Remove now-unnecessary cast to char *.
24184 * lib/strnlen.c: Include <string.h> unconditionally.
24185 * lib/yesno.c (yesno): Define with a prototype.
24187 2003-09-11 Bruno Haible <bruno@clisp.org>
24189 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
24191 2003-09-10 Jim Meyering <jim@meyering.net>
24193 * lib/error.c: Correct indentation of cpp directives.
24195 2003-09-10 Bruno Haible <bruno@clisp.org>
24197 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
24198 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
24199 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
24200 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
24201 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
24202 <stdlib.h> and <string.h> checks.
24203 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
24204 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
24206 2003-09-10 Bruno Haible <bruno@clisp.org>
24208 * lib/strcspn.c: Include <string.h> unconditionally.
24209 * lib/strpbrk.c: Include <string.h> unconditionally.
24210 * lib/strstr.c: Include <string.h> unconditionally.
24211 * lib/unicodeio.c: Include <string.h> unconditionally.
24212 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
24213 * lib/unsetenv.c: Likewise.
24214 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
24215 * lib/yesno.c: Include <stdlib.h> unconditionally.
24216 (rpmatch): Add prototype.
24218 2003-09-09 Paul Eggert <eggert@twinsun.com>
24220 More patches to assume C89 or better.
24221 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
24222 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
24223 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
24225 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
24227 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
24229 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
24231 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
24232 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
24233 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
24235 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
24236 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
24238 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
24240 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
24241 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
24242 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
24243 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
24244 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
24245 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
24247 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
24248 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
24249 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
24250 C headers, or for string.h.
24251 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
24252 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
24253 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
24254 headers, memory.h, stdlib.h, string.h, strings.h.
24255 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
24256 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
24257 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
24259 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
24260 headers, memory.h, string.h.
24261 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
24262 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
24264 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
24266 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
24267 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
24268 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
24269 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
24270 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
24272 2003-09-09 Paul Eggert <eggert@twinsun.com>
24276 * lib/acosl.c (main): Use a prototype.
24277 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
24280 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
24282 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
24283 (getopt, etopt_long, getopt_long_only, _getopt_internal)
24284 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
24286 * lib/getopt.c (const): Remove macro.
24287 Include <string.h> unconditionally.
24288 (my_index): Remove; all uses changed to strchr.
24289 (strlen): Remove decl.
24290 (exchange): Remove forward decl; no longer needed.
24291 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
24292 Define with prototype.
24293 * lib/getopt1.c (const): Remove macro.
24294 (getopt_long, getopt_long_only, main): Define with prototype.
24296 * lib/getugroups.c: Include <string.h> unconditionally.
24298 * lib/getusershell.c: Include <stdlib.h> unconditionally.
24299 (getusershell, setusershell, endusershell, readname, main):
24300 Define with prototypes.
24302 * lib/group-member.c: Include group-member.h first.
24303 Include <stdlib.h> unconditionally.
24305 * lib/hard-locale.c: Include hard-locale.h first.
24306 Include <stdlib.h>, <string.h> unconditionally.
24308 * lib/hash.c (free, malloc): Remove decls.
24309 Include <stdlib.h> unconditionally.
24311 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
24312 (getenv): Do not declare.
24314 * lib/idcache.c: Include <string.h> unconditionally.
24316 * lib/long-options.c: Include long-options.h first, to test interface.
24317 Include <stdlib.h> unconditionally.
24319 * lib/makepath.c: Include makepath.h first, to test interface.
24320 Include <stdlib.h> and <string.h> unconditionally.
24322 * lib/linebuffer.c: Include <stdlib.h>.
24323 (free): Remove decl.
24325 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
24326 stddef.h. rpl_malloc returns void *, not char *.
24327 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
24330 * lib/md5.h: Include <limits.h> unconditionally.
24331 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
24332 (__P): Remove; all uses removed.
24333 * lib/md5.c: Include "md5.h" first.
24334 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
24335 md5_buffer, md5_process_bytes, md5_process_block):
24336 Define with prototypes.
24337 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
24338 * lib/sha.c: Include "sha.h" first.
24339 Include <stdlib.h>, <string.h> unconditionally.
24341 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
24342 * lib/memcmp.c (__ptr_t): Likewise.
24343 * lib/memrchr.c (__ptr_t): Likewise.
24344 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
24345 Include <string.h> unconditionally.
24346 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
24347 * lib/memchr.c: Include <stdlib.h> unconditionally.
24348 * lib/memchr.c (LONG_MAX): Remove.
24349 * lib/memrchr.c (LONG_MAX): Likewise.
24350 * lib/memchr.c (__memchr): Define via a prototype.
24351 * lib/memrchr.c (__memrchr): Likewise.
24352 * lib/memcmp.c (__P): Remove, and remove all uses.
24353 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
24354 Remove forward decls; no longer needed.
24355 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
24356 Use types required by C89 in prototype.
24358 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
24359 * lib/savedir.c: Likewise.
24360 * lib/mkdir.c (free): Remove decl.
24361 * lib/rmdir.c (rmdir): Define with a prototype.
24362 * lib/savedir.c: Include savedir.h first, to test interface.
24364 * lib/mktime.c (STDC_HEADERS): Remove.
24365 Include <stdlib.h>, <string.h> unconditionally.
24367 * lib/modechange.c: Include <stdlib.h> unconditionally.
24368 (malloc): Remove decl.
24370 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
24371 (free): Remove decl.
24373 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
24374 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
24375 (This type really should be intptr_t, but that's a C99ism.)
24376 (_obstack_memcpy): Remove: all uses changed to memcpy.
24377 Include <string.h> unconditionally.
24378 (struct obstack): Assume __STDC__ for types of members
24379 chunkfun, freefun, extra_arg.
24380 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
24381 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
24382 obstack_begin, obstack_specify_allocation,
24383 obstack_specify_allocation_with_arg, obstack_chunkfun,
24384 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
24385 Remove unprototyped decls and the macros that use them.
24386 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
24387 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
24388 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
24389 (defined __STDC__ && __STDC__)]:
24390 Remove nonprototyped code.
24391 Include <stdlib.h> unconditionally.
24392 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
24393 _obstack_allocated_p, _obstack_free, obstack_free,
24394 _obstack_memory_used, print_and_abort):
24395 Define using prototypes.
24396 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
24397 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
24398 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
24399 obstack_next_free, obstack_object_size, obstack_room) [0]:
24400 Remove unused, unprototyped code.
24402 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
24404 * lib/physmem.c (physmem_total, physmem_available, main): Define
24407 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
24408 (main): Define with a prototype.
24410 * lib/posixver.c (getenv): Remove decl.
24412 * lib/putenv.c (malloc): Returns void *, not char *.
24413 Include <string.h> unconditionally.
24414 (strchr, memcpy, NULL): Do not define.
24416 * lib/readtokens.c: Include readtokens.h first, to test interface.
24417 Include <stdlib.h>, <string.h> unconditionally.
24418 (init_tokenbuffer): Define with a prototype.
24420 * lib/regex.c (PARAMS): Remove. All uses removed.
24421 All uses of _RE_ARGS removed, too.
24422 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
24424 (bzero): Assume memset exists.
24425 (memcmp, memcpy, NULL): Remove.
24426 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
24427 char, or assignments to local vars of type signed char.
24428 (init_syntax_once, PREFIX(extract_number_and_incr),
24429 PREFIX(print_partial_compiled_pattern),
24430 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
24431 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
24432 PREFIX(regex_grow_registers), PREFIX(regex_compile),
24433 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
24434 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
24435 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
24436 wcs_compile_range, byte_compile_range, truncate_wchar,
24437 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
24438 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
24439 count_mbs_length, wcs_re_match_2_internal,
24440 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
24441 PREFIX(alt_match_null_string_p),
24442 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
24443 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
24444 regfree, PREFIX(extract_number)): Define with prototype. Remove
24445 now-unnecessary declaration, if any.
24446 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
24448 Remove now-unnecessary casts among pointer types.
24449 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
24451 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
24452 (free): Remove decl.
24454 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
24456 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
24457 (free): Remove decl.
24459 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
24460 * lib/xgetcwd.c: Likewise.
24462 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
24463 (free): Remove decl.
24465 * lib/strchrnul.c (strchrnul): Define with a prototype.
24466 Fix bug: c_in was not converted to char before searching.
24468 The following changes are not K&R related:
24470 * lib/group-member.h: Include <sys/types.h>, so that this file is
24472 * lib/makepath.h: Likewise.
24474 * lib/getusershell.c (readname, default_index, line_size, readname):
24475 Use size_t, not int, for sizes.
24476 (readname): If the size overflows, report an error instead of
24479 2003-09-09 Paul Eggert <eggert@twinsun.com>
24481 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
24484 2003-09-09 Paul Eggert <eggert@twinsun.com>
24486 * README: New section: portability guidelines.
24488 2003-09-09 Derek Robert Price <derek@ximbiot.com>
24490 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
24493 2003-09-09 Derek Robert Price <derek@ximbiot.com>
24495 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
24497 2003-09-08 Paul Eggert <eggert@twinsun.com>
24499 Assume C89 or better; remove K&R cruft.
24500 A few of these changes were first proposed by Derek Robert Price
24501 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
24503 * lib/addext.c: Include <string.h> unconditionally.
24504 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
24505 Don't declare getenv or malloc.
24507 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
24508 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
24510 (find_stack_direction, alloca): Use prototypes.
24512 * lib/atexit.c (atexit): Define using a prototype.
24514 * lib/basename.c, dirname.c, stripslash.c:
24515 Include <string.h> unconditionally.
24517 * lib/bcopy.c: Include <stddef.h>.
24518 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
24520 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
24522 * lib/error.h (error, error_at_line, error_print_progname)
24523 [! (defined (__STDC__) && __STDC__)]: Remove decls.
24524 * lib/error.c: Include error.h first, to check interface.
24525 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24526 (VA_START): Remove; all uses changeed to va_start.
24527 (exit, strerror): Remove decls.
24528 (error_print_progname): Prototype uncondionally.
24529 Don't include <errno.h>; no longer needed.
24530 (private_strerror): Remove.
24531 (error_tail): Always define.
24532 (error, error_at_line): Assume C89 or better; always use prototypes.
24533 * lib/fatal.c: Include "fatal.h" first, to test interface.
24534 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
24535 (VA_START): Remove; all uses changed to va_start.
24536 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
24538 (exit): Remove decl.
24539 (fatal): Prototype unconditionally. Assume va_start works.
24540 Abort at end, to pacify gcc.
24542 * lib/euidaccess.c (main): Define with a prototype.
24544 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
24546 * lib/exitfail.c: Include <stdlib.h> unconditionally.
24548 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
24550 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
24551 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
24552 (getenv): Remove decl.
24553 (fnmatch): Define using a prototype.
24554 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
24555 (FCT): Define using a prototype.
24557 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
24559 * lib/gethostname.c: Include <stddef.h>.
24560 (gethostname): Define with prototype. Length is size_t, not int.
24562 2003-09-08 Paul Eggert <eggert@twinsun.com>
24564 Assume C89 or better; remove K&R cruft.
24565 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
24566 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
24567 string.h, getenv, malloc.
24568 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
24570 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
24571 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
24572 do not check for strerror.
24573 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
24574 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
24575 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
24576 do not check for doprnt or vprintf.
24577 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
24578 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
24580 2003-09-08 Paul Eggert <eggert@twinsun.com>
24582 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
24583 getversion.c should have been removed then, but was accidentally
24586 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
24587 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
24589 2003-09-08 Karl Berry <karl@gnu.org>
24591 * config/config.sub, config.guess, srclistvars.sh: update from savannah
24592 config, forget about prep.
24594 * config/depcomp, missing: update from automake.
24596 2003-09-07 Paul Eggert <eggert@twinsun.com>
24598 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
24599 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
24601 2003-09-07 Paul Eggert <eggert@twinsun.com>
24603 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
24604 copy_tm_result. Bug reported by Simon Josefsson in
24605 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
24607 2003-09-06 Paul Eggert <eggert@twinsun.com>
24609 * m4/time_r.m4: New file.
24610 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
24611 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
24612 is. Check for timegm declaration.
24613 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
24614 Do not check for gmtime_r.
24615 Replace mktime if __mktime_internal does not exist and if mktime
24616 hasn't been replaced already.
24618 2003-09-06 Paul Eggert <eggert@twinsun.com>
24620 * lib/time_r.c, lib/time_r.h: New files.
24622 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
24624 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
24625 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
24627 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
24629 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
24630 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
24631 Include <time_r.h>.
24633 * lib/timegm.c: Switch to glibc implementation, with the following
24635 [defined HAVE_CONFIG_H]: Include <config.h>.
24636 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
24637 (__mktime_internal) [!defined _LIBC]: New decl.
24638 (__gmtime_r) [!defined _LIBC]: New macro and function.
24639 (timegm): Use a prototype, since gnulib assumes C89.
24640 Do not bother declaring tmp to be const, as it's not really usefu.
24641 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
24642 (timegm): Declare only if HAVE_DECL_TIMEGM.
24644 2003-09-06 Paul Eggert <eggert@twinsun.com>
24646 * MODULES.html.sh (func_all_modules): Add time_r.
24647 * modules/time_r: New file.
24648 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
24649 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
24651 2003-09-03 Paul Eggert <eggert@twinsun.com>
24653 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
24654 Bug reported by Lute Kamstra in
24655 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
24657 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
24658 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
24659 course with correspondingly smaller numbers for tomorrow and
24660 yesterday. From Tadayoshi Funaba. Originally installed into
24661 sh-utils on 1999-08-07, but the patch got lost (I guess during the
24664 2003-08-31 Simon Josefsson <jas@extundo.com>
24666 * modules/timegm: New file.
24667 * MODULES.html.sh (func_all_modules): Add timegm.
24669 2003-08-31 Simon Josefsson <jas@extundo.com>
24671 * m4/timegm.m4: New file.
24673 2003-08-31 Simon Josefsson <jas@extundo.com>
24675 * lib/timegm.h: New file.
24676 * lib/timegm.c: New file. Based on
24677 wget-1.8.2/src/http.c:mktime_from_utc.
24679 2003-08-31 Karl Berry <karl@gnu.org>
24681 * lib/argp.h: update from libc.
24683 2003-08-28 Bruno Haible <bruno@clisp.org>
24685 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
24686 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
24687 followed by '#define fnmatch fnmatch_posix' gives an error.
24689 2003-08-28 Bruno Haible <bruno@clisp.org>
24691 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
24692 warning on QNX, which defines O_BINARY to 000000.
24694 2003-08-27 Jim Meyering <jim@meyering.net>
24696 * m4/mkstemp.m4: Require that the system mkstemp be able to create
24697 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
24698 would fail after 32. Reported by Danny Levinson. Details here:
24699 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
24701 2003-08-24 Bruno Haible <bruno@clisp.org>
24703 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
24704 MSVC7 <stdio.h> is included later.
24706 2003-08-22 Simon Josefsson <jas@extundo.com>
24708 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
24710 2003-08-20 Karl Berry <karl@gnu.org>
24712 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
24714 2003-08-20 Bruno Haible <bruno@clisp.org>
24716 * modules/progname: New file.
24717 * MODULES.html.sh (func_all_modules): Add progname.
24719 2003-08-20 Bruno Haible <bruno@clisp.org>
24721 * lib/progname.h: New file, from GNU gettext.
24722 * lib/progname.c: New file, from GNU gettext.
24723 * lib/progreloc.c: New file, from GNU gettext.
24725 2003-08-19 Jim Meyering <jim@meyering.net>
24727 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
24728 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
24730 2003-08-19 Bruno Haible <bruno@clisp.org>
24732 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
24735 2003-08-19 Bruno Haible <bruno@clisp.org>
24737 * lib/xstrdup.c: Assume <string.h> exists.
24739 2003-08-18 Paul Eggert <eggert@twinsun.com>
24741 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
24744 2003-08-18 Jim Meyering <jim@meyering.net>
24746 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
24747 * m4/lib-ld.m4: Likewise.
24749 2003-08-18 Jim Meyering <jim@meyering.net>
24751 * lib/setenv.h: Indent nested cpp directive.
24752 * lib/vasnprintf.c: Remove trailing blanks.
24754 2003-08-17 Simon Josefsson <jas@extundo.com>
24756 * modules/xstrndup: New file.
24757 * MODULES.html.sh (func_all_modules): Add xstrndup.
24759 2003-08-17 Simon Josefsson <jas@extundo.com>
24761 * modules/argp: Fix autoconf macro name. Add more dependencies.
24763 2003-08-17 Simon Josefsson <jas@extundo.com>
24765 * m4/xstrndup.m4: New file.
24767 2003-08-17 Simon Josefsson <jas@extundo.com>
24769 * m4/argp.m4: New file.
24771 2003-08-17 Simon Josefsson <jas@extundo.com>
24772 Bruno Haible <bruno@clisp.org>
24774 * lib/xstrndup.h: New file.
24775 * lib/xstrndup.c: New file.
24777 2003-08-17 Bruno Haible <bruno@clisp.org>
24779 * modules/strndup (Files, Include): Add lib/strndup.h.
24781 2003-08-17 Bruno Haible <bruno@clisp.org>
24783 * modules/euidaccess (Files): Add lib/euidaccess.h.
24785 2003-08-17 Bruno Haible <bruno@clisp.org>
24787 * lib/strndup.h: New file.
24789 2003-08-17 Bruno Haible <bruno@clisp.org>
24791 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
24792 like AC_GNU_SOURCE.
24793 * modules/extensions (configure.ac): Comment out the invocation of
24794 gl_USE_SYSTEM_EXTENSIONS.
24796 2003-08-16 Paul Eggert <eggert@twinsun.com>
24798 Merges from coreutils, etc.
24799 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
24800 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
24801 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
24803 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
24804 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
24806 2003-08-16 Paul Eggert <eggert@twinsun.com>
24808 Document merge from coreutils.
24809 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
24810 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
24811 * modules/utime: Add m4/utimes-null.m4.
24813 2003-08-16 Paul Eggert <eggert@twinsun.com>
24815 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
24816 space, undoing this 2003-08-12 change:
24817 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24819 2003-08-16 Paul Eggert <eggert@twinsun.com>
24821 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
24822 strtoul.c from libc, undoing this 2003-08-12 change:
24823 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
24825 2003-08-16 Jim Meyering <jim@meyering.net>
24827 Merges from coreutils.
24828 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
24829 prefix. Adjust cache variables similarly. Create 500 rather than
24830 just 300 files, to exercise bug on Darwin6.5, too.
24831 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
24833 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
24834 AM_SYS_POSIX_TERMIOS.
24835 Reported by mkc@mathdogs.com.
24836 Also change use of $am_cv_sys_posix_termios
24837 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
24838 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
24839 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
24840 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
24841 in /proc/mounts until it finds one with matching device number. This
24842 is unnecessary when the FILE argument *is* a mount point. No stat call
24843 is necessary in that case. So, disable the statvfs-testing code on
24844 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
24845 as RedHat bug# 84846.
24846 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24847 to 1MB, so as not to render systems with no stack size limit (e.g.,
24848 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
24849 Include <unistd.h>. On some systems,
24850 it is required for the definition of _SC_PAGESIZE.
24852 2003-08-16 Jim Meyering <jim@meyering.net>
24854 Merge from coreutils.
24855 * lib/xstrtoimax.c: #else #if -> #elif.
24856 * lib/xstrtoumax.c: Likewise.
24858 2003-08-16 Jim Meyering <jim@meyering.net>
24860 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
24861 * m4/utimes.m4: Removed.
24862 * m4/utimes-null.m4: Renamed from utimes.m4.
24864 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
24865 to 1MB, so as not to render systems with no stack size limit (e.g.,
24866 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
24867 Include <unistd.h>. On some systems,
24868 it is required for the definition of _SC_PAGESIZE.
24870 2003-08-16 Jim Meyering <jim@meyering.net>
24871 and Paul Eggert <eggert@cs.ucla.edu>
24873 Merges from coreutils, etc.
24875 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
24876 using the latest version from cvs. This avoids problems with #line
24877 directives using a vendor (Sun) compiler.
24878 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
24879 Don't set GETGROUPS_LIB here; now it's
24880 done via getgroups.m4's wrapper function.
24881 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
24882 rather than just in sh-util/configure.in, so that the
24883 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
24885 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
24886 AC_FUNC_GETLOADAVG where to find getloadavg.c.
24887 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
24888 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
24889 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
24890 Remove code that is now done by the newly-required macros.
24891 Append $(EXEEXT) to DF_PROG.
24892 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
24893 Do not invoke or require the following here,
24894 since prereq.m4 or some gnulib .m4 now does this for us:
24895 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
24896 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
24897 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
24898 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
24899 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
24900 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
24901 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
24903 Do not replace the following functions, as this is now the job
24904 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
24905 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
24906 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
24907 atexit getpass, strdup, getpagesize.
24909 Do not check for the following functions, as this is now the job
24910 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
24911 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
24913 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
24914 Check for sys/sysctl.h.
24915 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
24916 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
24917 of checking for ssize_t ourselves.
24919 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
24920 Require every macro that gnulib/modules/* suggests for us.
24921 (jm_PREREQ_ADDEXT): New macro.
24922 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
24923 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
24925 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
24926 (gl_PHYSMEM): Use it.
24927 Also check for `table' function.
24928 Check for new headers and functions.
24929 Add check for sys/sysmp.h.
24930 With suggestions from Kaveh Ghazi.
24931 Ignore headers that are present but cannot be compiled. This
24932 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
24935 2003-08-15 Paul Eggert <eggert@twinsun.com>
24937 Document merge from coreutils.
24938 * modules/userspec: Depend on posixver.
24939 * modules/strftime: Depend on tzset.
24941 2003-08-15 Paul Eggert <eggert@twinsun.com>
24943 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
24944 rather than tab, after '#' in shell-script copyright notices.
24945 Suggested by Bruno Haible.
24947 2003-08-15 Paul Eggert <eggert@twinsun.com>
24949 * config/srclist-update: Use three spaces, rather than tab, after '#'
24950 in shell-script copyright notices. Suggested by Bruno Haible.
24951 Remove unnecessary parenthesization in regular expression.
24953 2003-08-15 Jim Meyering <jim@meyering.net>
24955 Merge from coreutils.
24956 * lib/xgethostname.c: Include <stdlib.h>.
24957 (xghostname): Don't exit for anything other than memory-related
24958 failure; just return NULL.
24959 * lib/userspec.c: Include "posixver.h".
24960 (parse_user_spec): Accept `.' as a separator only
24961 in pre-POSIX-200112 mode.
24962 * lib/strtoimax.c: Use #elif rather than #else #if.
24963 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
24964 Remove function, now that we can rely on a working tzset function.
24965 [!_LIBC]: Ensure that the required autoconf test has been run.
24966 [!defined _NL_CURRENT && HAVE_STRFTIME]:
24967 Use underlying_strftime for %r.
24968 * lib/sha.c: Merge in some clean-up and optimization changes from
24970 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
24971 Ensure that it is a multiple of 64.
24972 Rearrange loop exit tests so as to avoid performing an
24973 additional fread after encountering an error or EOF.
24974 * lib/realloc.c: Update copyright date.
24976 2003-08-15 Jim Meyering <jim@meyering.net>
24977 and Paul Eggert <eggert@twinsun.com>
24979 Merge from coreutils.
24980 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
24981 member but strut utmpx does not. Needed for AIX 4.3.3.
24982 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
24984 2003-08-15 Jim Meyering <jim@meyering.net>
24985 and Paul Eggert <eggert@cs.ucla.edu>
24987 Merges from coreutils, etc.
24988 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
24989 Require gl_FUNC_TZSET_CLOBBER.
24990 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
24991 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
24994 2003-08-14 Paul Eggert <eggert@twinsun.com>
24996 Help the merge from coreutils.
24997 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
24998 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
24999 * m4/tzset.m4: Use it too.
25001 2003-08-14 Paul Eggert <eggert@twinsun.com>
25003 * modules/tzset: New file.
25005 2003-08-14 Jim Meyering <jim@meyering.net>
25007 Merges from coreutils.
25008 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
25009 variable names, rather than @FNMATCH_H@.
25010 * modules/alloca: Likewise for $(ALLOCA_H).
25012 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
25013 the three copies of the literal target, `fnmatch.h'.
25014 * modules/alloca (alloca.h): Likewise.
25016 2003-08-14 Jim Meyering <jim@meyering.net>
25018 Merge from coreutils.
25019 * m4/tzset.m4: New file.
25020 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
25021 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
25022 otherwise, AIX 5.1 systems would end up using the latter.
25023 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
25024 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
25025 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
25026 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
25028 2003-08-14 Jim Meyering <jim@meyering.net>
25030 Merge from coreutils.
25031 * lib/obstack.h: Whitespace changes.
25032 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
25033 and xcalloc return values.
25034 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
25035 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
25036 hang on OSF/1 5.1 for DIR on both local and remote file systems.
25037 Reported by (and fix confirmed by) Nelson H. F. Beebe.
25038 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
25040 Use mntctl's return value to drive the entry-processing loop, since
25041 we can't rely on the value of the vmt_length member in the last
25042 entry. On some systems doing so could result in exhausting
25043 virtual memory. Based in part on a patch from Mike Jetzer.
25045 2003-08-14 Jim Meyering <jim@meyering.net>
25046 and Paul Eggert <eggert@twinsun.com>
25048 Merges from coreutils, plus other fixes.
25049 * lib/physmem.c: Merge in portability changes from gcc/libiberty
25050 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
25051 for credits and details. Thanks to Kaveh Ghazi for helping
25052 to keep these files in sync.
25053 (ARRAY_SIZE): Define it.
25054 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
25055 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
25056 (memcasecmp): Don't assume size_t fits in unsigned int.
25057 Remove casts and duplicate code.
25058 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
25059 (memcpy): Remove definition.
25060 Merge in some clean-up and optimization changes from glibc.
25061 [BLOCKSIZE]: Move definition to top of file.
25062 Ensure that it is a multiple of 64.
25063 Rearrange loop exit tests so as to avoid performing an
25064 additional fread after encountering an error or EOF.
25065 * lib/md5.h (md5_uintptr): Define.
25066 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
25067 return to the initial working directory. Preserve errno
25069 * lib/idcache.c: Include "xalloc.h".
25070 (xmalloc, xrealloc): Remove decls.
25071 (getuser): Remove casts no longer required in C89.
25072 * lib/human.c: Include stdio.h, for sprintf.
25073 * lib/group-member.c: Include "xalloc.h".
25074 (xmalloc, xrealloc): Remove decls.
25075 (get_group_info): Remove casts no longer required in C89.
25076 * lib/getusershell.c (readname): Remove casts no longer required in
25078 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
25079 * lib/getline.c: Whitespace fix, from coreutils.
25081 2003-08-13 Paul Eggert <eggert@twinsun.com>
25083 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
25086 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25087 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25088 Undo previous (whitespace-only) change.
25090 2003-08-13 Paul Eggert <eggert@twinsun.com>
25092 * lib/exclude.c: Include <ctype.h>
25093 (IN_CTYPE_DOMAIN): New macro.
25094 (is_space): New fn.
25095 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
25098 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25099 Undo previous (whitespace-only) change.
25101 2003-08-13 Paul Eggert <eggert@twinsun.com>
25103 * config/srclist-update: Change update back to the old behavior,
25104 leaving whitespace alone. Use one 'sed' command rather than a
25106 (fixlicense): Now a variable, not a function.
25107 (remove_trailing_blanks): Remove.
25108 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
25109 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25110 Undo previous (whitespace-only) change.
25112 2003-08-12 Paul Eggert <eggert@twinsun.com>
25114 Merge from coreutils.
25115 * modules/euidaccess: Add lib_SOURCES, include for new
25118 2003-08-12 Paul Eggert <eggert@twinsun.com>
25120 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
25121 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
25122 Normalize leading white space and remove trailing white space.
25124 Merge from coreutils
25125 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
25127 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
25128 0.12.1. These files are now being upgraded automatically by
25129 ../config/srclist-update.
25131 2003-08-12 Paul Eggert <eggert@twinsun.com>
25133 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
25134 Normalize leading white space and remove trailing white space.
25135 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
25136 notice, as per ../config/srclist-update.
25138 Merge from coreutils.
25139 * lib/euidaccess.h: New file.
25140 * lib/euidaccess.c: Include it.
25141 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
25142 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
25143 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
25145 2003-08-12 Paul Eggert <eggert@twinsun.com>
25147 * config/srclist-update: Add copyright notice.
25148 (remove_id_lines, remove_trailing_blanks): New constants.
25149 (fixfile): Use them to normalize spacing a bit in copied files.
25150 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
25151 Normalize leading white space and remove trailing white space.
25153 * config/texinfo.tex: Sync with texinfo.
25155 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
25156 strtoul.c from libc, to merge coreutils whitespace changes.
25158 * config/srclist.txt: Get the following m4 files from gettext:
25159 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
25160 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
25161 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
25164 2003-08-12 Karl Berry <karl@gnu.org>
25166 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
25169 2003-08-11 Paul Eggert <eggert@twinsun.com>
25171 * modules/gnu-source, m4/gnu-source.m4:
25172 Remove; we're assuming Autoconf 2.54 or later now.
25173 Suggested by Bruno Haible.
25174 * MODULES.html.sh (func_all_modules): Remove gnu-source.
25176 2003-08-11 Bruno Haible <bruno@clisp.org>
25178 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
25180 2003-08-11 Bruno Haible <bruno@clisp.org>
25182 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
25183 (vasnprintf): Use it instead of wcslen.
25185 2003-08-11 Bruno Haible <bruno@clisp.org>
25187 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
25188 value to ensure that _Bool promotes to int. Use #define for _Bool when
25189 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
25191 2003-08-10 Karl Berry <karl@gnu.org>
25193 * lib/regex.h: update from libc (whitespace fix).
25195 2003-08-09 Paul Eggert <eggert@twinsun.com>
25197 Merge some files from coreutils. These changes were
25198 originally made by Jim Meyering.
25199 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
25200 many older Unixes require this.
25201 * lib/alloca.c (alloca): Remove cast to argument of free;
25202 no longer needed in C89.
25203 * lib/alloca_.h, regex.h: Fix white space to match
25204 what GNU indent does.
25206 2003-08-09 Paul Eggert <eggert@twinsun.com>
25208 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
25209 apparently Emacs's Unicode mode got confused before my 2003-08-05
25212 2003-08-08 Paul Eggert <eggert@twinsun.com>
25214 * m4/extensions.m4: New file.
25215 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
25216 Require gl_USE_SYSTEM_EXTENSIONS.
25217 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
25218 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
25220 2003-08-08 Paul Eggert <eggert@twinsun.com>
25222 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
25223 * modules/extensions, modules/gnu-source: New files.
25224 * modules/timespec, modules/unlocked-io: Depend on extensions.
25226 2003-08-07 Paul Eggert <eggert@twinsun.com>
25228 * modules/restrict: New file.
25229 * MODULES.html.sh (func_all_modules): Add restrict.
25230 * modules/regex: Depend on restrict.
25232 2003-08-07 Paul Eggert <eggert@twinsun.com>
25234 * m4/restrict.m4: New file.
25235 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
25237 2003-08-07 Bruno Haible <bruno@clisp.org>
25239 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
25240 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
25242 2003-08-07 Bruno Haible <bruno@clisp.org>
25244 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
25245 makes the module 'getndelim2' compatible with the module 'getline'.
25247 2003-08-05 Paul Eggert <eggert@twinsun.com>
25249 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
25250 byte with "\201" to avoid glitches when editing that source file
25251 with multi-gnome-terminal.
25253 2003-08-05 Paul Eggert <eggert@twinsun.com>
25255 * lib/bumpalloc.h: Remove.
25257 2003-08-05 Paul Eggert <eggert@twinsun.com>
25259 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
25260 * modules/bumpalloc: Remove.
25262 2003-08-04 Paul Eggert <eggert@twinsun.com>
25264 * lib/getloadavg.c: Change copyright notice and spacing to conform to
25267 Merge from coreutils.
25268 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
25270 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
25271 from Karl Berry, implemented by Jim Meyering.
25272 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
25273 from Dmitry V. Levin.
25274 Remove anachronistic cast of xrealloc.
25275 * lib/fnmatch_.h (__const): Remove. Use 'const'.
25276 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
25277 type. Otherwise, it wouldn't compile with at least /bin/cc on
25278 ymp-cray-unicos9.0.2.X.
25279 Combine two mostly-identical uses of alloca into one.
25280 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
25282 2003-08-04 Dave Love <d.love@dl.ac.uk>
25286 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
25287 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
25288 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
25289 obsolete NLIST_NAME_UNION.
25290 [__GNU__]: Undef BSD and FSCALE.
25291 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
25293 2003-08-03 Paul Eggert <eggert@twinsun.com>
25295 * lib/stdbool_.h (_Bool): Make it signed char, instead of
25296 an enum type, so that it's guaranteed to promote to int. See:
25297 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
25299 2003-08-03 Karl Berry <karl@gnu.org>
25301 * config/depcomp: update from automake.
25303 2003-07-31 Paul Eggert <eggert@twinsun.com>
25305 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
25306 (strerror): Don't assume that a printable int fits in 14 bytes.
25308 2003-07-31 Bruno Haible <bruno@clisp.org>
25310 * modules/getpass-gnu: New file.
25311 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
25313 2003-07-31 Bruno Haible <bruno@clisp.org>
25315 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
25317 2003-07-24 Karl Berry <karl@gnu.org>
25319 * config/missing: update from automake.
25321 2003-07-24 Derek Robert Price <derek@ximbiot.com>
25322 Bruno Haible <bruno@clisp.org>
25324 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
25325 * lib/getline.c (getline, getdelim): Likewise.
25326 Remove _GNU_SOURCE define; now it's defined in config.h through
25329 2003-07-23 Karl Berry <karl@gnu.org>
25331 * config/config.sub: update from prep.
25333 2003-07-22 Paul Eggert <eggert@twinsun.com>
25335 * modules/xalloc (Depends-on): Add exitfail.
25336 * modules/xmemcoll: Likewise.
25338 2003-07-22 Paul Eggert <eggert@twinsun.com>
25340 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
25341 over-parenthesization in macros.
25343 Sync with coreutils.
25345 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
25348 Use `exit_failure' for xalloc and xmemcoll instead of their own
25349 private exit-failure variables.
25350 * lib/xalloc.h (xalloc_exit_failure): Remove.
25351 * lib/xmalloc.c: Likewise. Include exitfail.h.
25352 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
25353 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
25354 * lib/xmemcoll.c: Likewise. Include exitfail.h.
25355 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
25357 2003-07-20 Jim Meyering <jim@meyering.net>
25359 * modules/closeout (Depends-on): Add exitfail.
25360 Suggestion from Bruno Haible.
25362 2003-07-19 Karl Berry <karl@gnu.org>
25364 * config/config.sub: update from prep.
25366 2003-07-18 Paul Eggert <eggert@twinsun.com>
25368 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
25370 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
25371 to test that it can stand by itself. Include "exitfail.h".
25372 Clients should set exit_failure instead.
25373 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
25375 2003-07-18 Bruno Haible <bruno@clisp.org>
25377 * modules/getndelim2: New file.
25378 * modules/getline: Share files with module getndelim2.
25379 * modules/getnline: Depend on getndelim2 instead of sharing files with
25380 it. Add getnline.c to lib_SOURCES.
25381 * MODULES.html.sh (func_all_modules): Add getndelim2.
25383 2003-07-18 Bruno Haible <bruno@clisp.org>
25385 * m4/getndelim2.m4: New file.
25386 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
25387 invoke gl_PREREQ_GETNDELIM2.
25388 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
25389 gl_PREREQ_GETNDELIM2.
25390 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
25393 2003-07-18 Bruno Haible <bruno@clisp.org>
25395 * lib/getndelim2.h: New file.
25396 * lib/getndelim2.c: Make into a module of its own. Include config.h,
25398 (getndelim2): Make non-static. Change return type to ssize_t.
25399 * lib/getline.h: Change argument names.
25400 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
25401 * lib/getnline.c: Include getndelim2.h.
25403 2003-07-18 Andreas Schwab <schwab@suse.de>
25405 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
25407 2003-07-17 Karl Berry <karl@gnu.org>
25409 * config/config.sub: update from prep.
25411 2003-07-17 Bruno Haible <bruno@clisp.org>
25413 * modules/getnline: New file.
25414 * modules/getline: Add lib/getndelim2.c to source file list.
25415 * MODULES.html.sh (func_all_modules): Add getnline.
25417 2003-07-17 Bruno Haible <bruno@clisp.org>
25419 * m4/getnline.m4: New file.
25421 2003-07-17 Bruno Haible <bruno@clisp.org>
25423 * m4/Makefile.am.in: Remove file.
25424 * m4/Makefile.am: Remove file.
25425 * m4/Makefile.in: Remove file.
25427 2003-07-17 Bruno Haible <bruno@clisp.org>
25429 * lib/getnline.h: New file.
25430 * lib/getnline.c: New file.
25431 * lib/getndelim2.c: New file, extracted from getline.c.
25432 (getndelim2): Renamed from getdelim2, with added nmax argument.
25433 * lib/getline.c: Include getndelim2.c.
25434 (getdelim2): Moved out to getndelim2.c.
25435 (getline, getdelim): Update.
25437 2003-07-17 Bruno Haible <bruno@clisp.org>
25439 * lib/Makefile.am: Remove file.
25440 * lib/Makefile.in: Remove file.
25442 2003-07-17 Bruno Haible <bruno@clisp.org>
25444 * configure.in: Remove file.
25445 * Makefile.in: Remove file.
25447 2003-07-17 Bruno Haible <bruno@clisp.org>
25449 * MODULES.html.sh: Put the </BODY> right before </HTML>.
25451 2003-07-16 Karl Berry <karl@gnu.org>
25453 * config/srclist-update: was running fixlicense twice, which caused
25454 texinfo.tex to be nullified for some reason. Simplify,
25455 $gplsrc is no longer needed as far as I can see?
25457 2003-07-16 Jim Meyering <jim@meyering.net>
25459 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
25461 2003-07-15 Paul Eggert <eggert@twinsun.com>
25463 * config/srclist.txt: Get the following files from gettext-runtime/intl
25464 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
25465 ref-del.sin. From Bruno Haible.
25466 * config/srclist-update (fixfile): Change grep pattern again, since the
25467 previous fix didn't work (there was another trailing $). Use
25468 '[$]' to escape the $s.
25470 2003-07-15 Karl Berry <karl@gnu.org>
25472 * lib/vasnprintf.c: update from gettext.
25474 2003-07-15 Karl Berry <karl@gnu.org>
25476 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
25477 gets expanded when surrounded by '$'.
25479 2003-07-15 Jim Meyering <jim@meyering.net>
25481 * modules/save-cwd: Don't depend on error. From Derek Price.
25483 2003-07-15 Jim Meyering <jim@meyering.net>
25485 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
25487 2003-07-14 Simon Josefsson <jas@extundo.com>
25489 * modules/mempcpy: New file.
25490 * MODULES.html.sh (func_all_modules): Add mempcpy.
25492 2003-07-14 Simon Josefsson <jas@extundo.com>
25494 * m4/mempcpy.m4: New file.
25496 2003-07-14 Simon Josefsson <jas@extundo.com>
25498 * lib/mempcpy.h: New file.
25499 * lib/mempcpy.c: New file.
25501 2003-07-14 Paul Eggert <eggert@twinsun.com>
25503 * modules/getdate, modules/posixtm: Depend on mktime.
25505 2003-07-14 Paul Eggert <eggert@twinsun.com>
25507 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
25508 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
25509 unicodeio.c, unicodeio.h, unlocked-io.h:
25510 Switch from LGPL to GPL.
25512 2003-07-14 Paul Eggert <eggert@twinsun.com>
25514 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
25515 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
25516 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
25517 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
25518 vasprintf.c, vasprintf.h: Regenerate. These files are now being
25519 updated automatically by ../config/srclist-update. This changes
25520 their license from LPGL to GPL.
25522 2003-07-14 Paul Eggert <eggert@twinsun.com>
25524 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
25525 assumed to refer to the root of the most recent stable gettext version.
25526 * config/srclistvars.sh: Add defaults for eggert.
25527 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
25528 Match "This program" as well as "The program". This is needed
25531 2003-07-14 Jim Meyering <jim@meyering.net>
25533 Don't emit diagnostics. Let callers do that.
25534 * lib/save-cwd.c: Don't include "error.h".
25535 (save_cwd): Don't call error. Ensure that errno is valid
25536 when returning nonzero.
25538 * lib/save-cwd.h (restore_cwd): Update prototype.
25539 * lib/save-cwd.c (restore_cwd): Remove two parameters.
25540 Simplify. Don't call error upon failure. Let callers do that.
25541 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
25542 when auditing is enabled. But don't bother updating the #if.
25544 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
25546 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
25547 it breaks C++ compilation.
25548 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
25550 2003-07-10 Simon Josefsson <jas@extundo.com>
25552 * modules/strchrnul (Makefile.am): Add strchrnul.h.
25554 2003-07-10 Jim Meyering <jim@meyering.net>
25556 * m4/clock_time.m4: Remove trailing blank.
25557 * m4/intmax_t.m4: Likewise.
25559 2003-07-10 Jim Meyering <jim@meyering.net>
25561 * lib/vasnprintf.c: Remove trailing blanks.
25562 Make cpp indentation consistent.
25564 2003-07-09 Paul Eggert <eggert@twinsun.com>
25566 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
25567 posixver.c, strftime.c, strnlen.c, strverscmp.c:
25568 Switch from LGPL to GPL.
25570 2003-07-09 Paul Eggert <eggert@twinsun.com>
25572 * config/srclist.txt: Sort sublists. Add
25573 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
25574 that differ from gnulib for one reason or another; we'd like this list
25575 to be smaller but for now let's document what we have.
25577 2003-07-08 Paul Eggert <eggert@twinsun.com>
25579 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
25580 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
25581 and sweeter "eval x=$x".
25582 * config/srclist.txt: Get lib/argp* from glibc.
25584 2003-07-07 Paul Eggert <eggert@twinsun.com>
25586 * lib/mktime.c: Fix some boundary cases and remove need for floating
25589 Issue a compile-time diagnostic if time_t is floating point, or if
25590 two's complement arithmetic is not in effect, or if arithmetic
25591 right shift does not propagate the sign. These assumptions were
25592 all in the original code but they weren't checked.
25594 (TIME_T_MIDPOINT, verify): New macros.
25595 (__isleap): Remove; it has integer overflow problems.
25596 (leapyear): New function, without those problems.
25597 (ydhms_tm_diff): Remove; splitting into two parts.
25598 (ydhms_diff): New function, containing the arithmetic part of
25599 the old ydhms_tm_diff function. Issue a compile-time
25600 diagnostic if we are not using C99 integer division.
25601 Avoid casts when possible.
25602 (guess_time_tm): New function, containing the checking part of
25603 the old ydhms_tm_diff function. Return the new value, rather than
25604 the difference between it and the old. Accept a new argument T
25605 so that *T specifies the old value. Check for overflow in the result.
25607 (__mktime_internal): Use a time_t offset, not a long int offset.
25608 This undoes the 2003-06-04 change, which is no longer needed now
25609 that we have better overflow checking.
25610 (localtime_offset): Likewise.
25612 (__mktime_internal): Avoid harmful overflow on hosts where time_t
25613 and long are 64-bit but int is only 32-bit.
25614 (ydhms_diff): Use long int to store year1 and yday1.
25615 Issue a compile-time diagnostic if long int is not wide enough.
25617 (__mktime_internal): Use long int to store adjusted year and yday.
25618 Use plain C rather than preprocessor commands, if that doesn't
25620 Check for overflow (and try to repair) after each probe
25621 rather than checking only at the very end. This avoids some bugs
25622 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
25623 does not equal GMT offset at maximum time).
25624 Use integer to check for overflow rather than floating point; this
25625 is more portable to non-IEEE hosts, and is a tad faster.
25626 When we detect that we are oscillating between two values,
25627 don't check whether tm_isdst has the requested value, since
25628 we already know the answer. When tm_isdst has the wrong value,
25629 use a different heuristic to find the right one, based on the
25630 extreme values actually observed in practice in tz2003a,
25631 rather than the (overly optimistic) "previous 3 calendar quarters".
25633 (not_equal_tm, print_tm, check_result): Use "const T" rather than
25634 "T const" to accommodate glibc style.
25635 (check_result): Use less-confusing report format. "long" -> "long int.
25637 Don't loop if the iteration overflows time_t.
25638 Allow a negative step in the iteration.
25640 2003-07-06 Karl Berry <karl@gnu.org>
25642 * config/depcomp: update from automake.
25643 * config/config.sub: update from prep.
25645 2003-07-03 Karl Berry <karl@gnu.org>
25647 * config/config.guess: update from prep.
25649 2003-07-01 Paul Eggert <eggert@twinsun.com>
25651 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
25652 xreadlink.c now includes it unconditionally.
25654 2003-07-01 Paul Eggert <eggert@twinsun.com>
25656 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
25657 having it depend on HAVE_SYS_TYPES_H.
25659 2003-07-01 Bruno Haible <bruno@clisp.org>
25661 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
25662 <sys/types.h> should be sufficient.
25663 Reported by Paul Eggert.
25665 2003-06-26 Karl Berry <karl@gnu.org>
25667 * config/depcomp: update from automake.
25669 2003-06-26 Bruno Haible <bruno@clisp.org>
25671 * modules/human: Depend on module stdbool.
25673 2003-06-25 Bruno Haible <bruno@clisp.org>
25675 * modules/readlink: New file.
25676 * modules/xreadlink: Depend on it.
25677 * MODULES.html.sh (func_all_modules): Add readlink.
25679 2003-06-25 Bruno Haible <bruno@clisp.org>
25681 * m4/readlink.m4: New file.
25683 2003-06-25 Bruno Haible <bruno@clisp.org>
25685 * lib/readlink.c: New file.
25687 2003-06-22 Karl Berry <karl@gnu.org>
25689 * config/srclist.txt: update mkinstalldirs from automake.
25690 * config/mkinstalldirs: update.
25692 2003-06-22 Bruno Haible <bruno@clisp.org>
25694 Portability to mingw32.
25695 * m4/ssize_t.m4: New file, from GNU gettext.
25696 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
25697 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
25699 2003-06-22 Bruno Haible <bruno@clisp.org>
25701 * modules/safe-read: Add m4/ssize_t.m4.
25702 * modules/xreadlink: Add m4/ssize_t.m4.
25704 2003-06-20 Bruno Haible <bruno@clisp.org>
25706 Assume C89, so PARAMS isn't needed.
25707 * lib/unicodeio.h (PARAMS): Remove.
25708 * lib/unicodeio.c: Don't use PARAMS.
25710 2003-06-18 Karl Berry <karl@gnu.org>
25712 * config/config.{guess,sub}: update from prep.
25714 2003-06-18 Jim Meyering <jim@meyering.net>
25716 Merge changes from coreutils.
25717 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
25718 Remove explicit declarations of xmalloc and realloc.
25720 (read_utmp): Remove anachronistic cast of xmalloc.
25722 2003-06-17 Paul Eggert <eggert@twinsun.com>
25724 Assume C89, so PARAMS isn't needed.
25725 * lib/backupfile.h (PARAMS): Remove. All uses removed.
25726 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
25727 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
25728 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
25729 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
25730 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
25731 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
25732 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
25733 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
25734 lib/xstrtod.h, lib/xstrtol.h: Likewise.
25735 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
25736 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
25737 no longer needed. Anyway, config.h should always be included before any
25740 2003-06-11 Simon Josefsson <jas@extundo.com>
25742 * modules/sysexits: New file.
25743 * MODULES.html.sh (func_all_modules): Add sysexits.
25745 2003-06-11 Simon Josefsson <jas@extundo.com>
25747 * lib/sysexit_.h: New file.
25749 2003-06-11 Derek Price <derek@ximbiot.com>
25751 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
25754 2003-06-11 Bruno Haible <bruno@clisp.org>
25756 * m4/sysexits.m4: New file.
25758 2003-06-10 Simon Josefsson <jas@extundo.com>
25760 * lib/argp.h: New file, from glibc.
25761 * lib/argp-ba.c: New file, from glibc.
25762 * lib/argp-eexst.c: New file, from glibc.
25763 * lib/argp-fmtstream.c: New file, from glibc.
25764 * lib/argp-fmtstream.h: New file, from glibc.
25765 * lib/argp-fs-xinl.c: New file, from glibc.
25766 * lib/argp-help.c: New file, from glibc.
25767 * lib/argp-namefrob.h: New file, from glibc.
25768 * lib/argp-parse.c: New file, from glibc.
25769 * lib/argp-pv.c: New file, from glibc.
25770 * lib/argp-pvh.c: New file, from glibc.
25771 * lib/argp-xinl.c: New file, from glibc.
25773 2003-06-10 Simon Josefsson <jas@extundo.com>
25775 * modules/strchrnul: New file.
25777 2003-06-10 Simon Josefsson <jas@extundo.com>
25779 * modules/argp: New file.
25781 2003-06-10 Simon Josefsson <jas@extundo.com>
25783 * m4/strchrnul.m4: New file.
25785 2003-06-10 Simon Josefsson <jas@extundo.com>
25787 * lib/strchrnul.h: New file.
25788 * lib/strchrnul.c: New file.
25790 2003-06-10 Bruno Haible <bruno@clisp.org>
25792 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
25794 2003-06-07 Karl Berry <karl@gnu.org>
25796 * config/config.{guess,sub}: update from prep.
25798 2003-06-07 Jim Meyering <jim@meyering.net>
25800 * modules/strtod: Use $(...) notation, not @...@ for
25801 AC_REPLACE'd variables.
25802 * modules/localcharset: Likewise.
25804 2003-06-07 Jim Meyering <jim@meyering.net>
25806 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
25807 in place of my name in the copyright comment.
25808 Remove definition and uses of __P.
25811 * lib/stat.c: Don't declare xmalloc explicitly.
25812 Instead, include "xalloc.h".
25813 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
25814 xrealloc, and xcalloc return values.
25815 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
25817 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
25819 2003-06-07 Bruno Haible <bruno@clisp.org>
25821 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
25822 avoid AC_CONFIG_LINKS.
25823 * modules/fnmatch (Makefile.am): Use explicit creation rule for
25824 fnmatch.h, to avoid AC_CONFIG_LINKS.
25825 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
25827 2003-06-07 Bruno Haible <bruno@clisp.org>
25829 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
25830 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
25831 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25833 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
25834 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
25837 2003-06-06 Jim Meyering <jim@meyering.net>
25839 Merge from coreutils.
25840 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
25841 Consolidate declarations and initializations of *_base* locals.
25843 Merge from coreutils.
25844 This avoids a core dump on systems without GNU putenv,
25845 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
25846 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
25847 (unsetenv): New static function, from GNU libc.
25848 (rpl_putenv): Use it.
25850 * lib/modechange.c: Remove trailing blanks.
25852 Merge from coreutils.
25853 * lib/fsusage.c: Remove declaration of statfs.
25854 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
25856 * lib/posixtm.c: Include <stdbool.h> unconditionally.
25858 2003-06-06 Jim Meyering <jim@meyering.net>
25860 * lib/stdbool_.h: Renamed from stdbool.h.in.
25862 2003-06-06 Jim Meyering <jim@meyering.net>
25863 Bruno Haible <bruno@clisp.org>
25865 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
25866 Adjust Makefile.am snippet not to redirect directly to target.
25867 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
25869 2003-06-05 Paul Eggert <eggert@twinsun.com>
25871 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
25872 mismatch, look in future quarters as well as past. This fixes a
25873 bug when processing fall-backwards gaps immediately after a long
25874 period of daylight-saving time.
25876 * lib/mktime.c: Assume freestanding C89 or better.
25877 (HAVE_LIMITS_H): Remove. Assume it's 1.
25878 (__P): Remove; not used.
25879 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
25880 (mktime, not_equal_tm, print_tm, check_result,
25881 main): Use prototypes. Use const * where appropriate.
25882 (main): Fix typo in testing code that uncovered by above changes.
25883 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
25885 2003-06-04 Paul Eggert <eggert@twinsun.com>
25887 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
25888 locale.h, localeconv. This merges changes from coreutils.
25890 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
25891 It can be removed after the next Autoconf is released.
25892 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
25895 2003-06-04 Paul Eggert <eggert@twinsun.com>
25897 * lib/mktime.c: Fix Debian bug 177940
25898 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
25899 (localtime_offset): Now long int, not time_t, because we want it
25900 to be guaranteed to be signed. All uses changed.
25901 (__mktime_internal): If overflow would occur when adding offset,
25904 Merge 'human' changes from coreutils. Rewrite to support
25905 locale-specific notations like thousands separators.
25906 * lib/human.c: Simplify authorship notice.
25907 Include human.h immediately after config.h.
25908 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
25909 <limits.h>: Do not include, since human.h does.
25910 (SIZE_MAX, UINTMAX_MAX): New macros.
25911 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
25912 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
25913 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
25914 (power_letter): Renamed from suffixes.
25915 (generate_suffix_backwards): Remove.
25916 (adjust_value): Now takes int style (because of human.h changes)
25917 and long double value (for greater precision on some platforms).
25918 (group_number): New function.
25919 (human_readable): Use it. Use integer options, not enum.
25920 Put the options before the sizes in the arg list.
25921 Support all the new options.
25922 The old human_readable function has been removed;
25923 use inttostr.h instead.
25924 (human_readable, default_block_size, humblock):
25925 Use uintmax_t, not int, for block sizes.
25926 (human_readable_inexact, block_size_types): Remove.
25927 (block_size_opts): New constant.
25928 (human_options): Renamed from human_block_size, with new signature
25929 that allows block sizes up to UINTMAX_MAX. All callers changed.
25930 * lib/human.h: Add copyright and authorship notice.
25931 Include <limits.h> and <stdbool.h> unconditionally.
25932 (PARAMS): Remove. All uses removed.
25933 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
25934 (enum human_inexact_style): Remove tag; now a nameless enum.
25935 (human_floor, human_ceiling, human_round_to_even): Now have
25936 values 2, 0, 1 rather than -1, 1, 0.
25937 (human_group_digits, human_suppress_point_zero, human_autoscale,
25938 human_base_1024, human_SI, human_B): New constants.
25939 (human_readable_inexact, human_block_size): Remove.
25940 (human_readable): Size args are now uintmax_t, not int.
25941 (human_options): New decl.
25943 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
25944 unnecessary now that we assume C89 or better. This change
25945 imported from coreutils.
25947 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
25948 arbitrarily. This is the same patch as 2003-05-28, but it got lost
25949 in the 2003-05-30 sync from glibc.
25951 .h files should stand alone, but we shouldn't include <sys/types.h>
25952 if we can get away with just <stddef.h>.
25954 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
25955 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
25956 rather than <sys/types.h>, as we merely need size_t.
25957 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
25959 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
25960 Include <stdio.h>, to get FILE.
25961 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
25962 memcasecmp.h has included <stddef.h> and all we need is size_t.
25963 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
25964 our interface, instead of including <sys/types.h>
25966 2003-06-04 Paul Eggert <eggert@twinsun.com>
25968 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
25969 now, as glibc mktime is buggy on non-glibc systems.
25971 2003-06-03 Karl Berry <karl@gnu.org>
25973 * config/config.sub: update from prep.
25975 2003-06-02 Paul Eggert <eggert@twinsun.com>
25978 Fix some minor time-related bugs with POSIX time arguments.
25979 Some valid time stamps were being rejected (notably -1, and
25980 time stamps before 1900 on 64-bit hosts). And some invalid
25981 time stamps were being accepted, e.g. September 31.
25983 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
25984 that we can return (time_t) -1 successfully.
25985 * lib/posixtm.c: Likewise.
25986 [HAVE_STDBOOL_H]: Include <stdbool.h>.
25987 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
25988 (t): Remove static var.
25989 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
25990 of static var. All uses changed.
25991 (year): Do not reject years before 1900; they can occur with
25993 (posix_time_parse): Do not check for out-of-range components;
25994 that is now the caller's responsibility, since our checks were
25995 only approximations.
25996 (posixtime): Use mktime to check for out-of-range components,
25997 since it knows them exactly.
25998 If mktime returns (time_t) -1, check whether an error actually occurred
25999 by invoking localtime on -1.
26000 (main) [TEST_POSIXTIME]: Check for input data errors, and report
26001 posixtime failures better.
26002 Improve the test data (in comments only).
26004 2003-06-02 Karl Berry <karl@gnu.org>
26006 * config/mkinstalldirs (version): new variable.
26007 (--version): new option.
26008 (usage): improve message.
26010 2003-05-30 Karl Berry <karl@gnu.org>
26012 * lib/mktime.c: update from libc.
26014 2003-05-30 Bruno Haible <bruno@clisp.org>
26016 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
26017 * config/config.rpath: Upgrade to gettext-0.12.1.
26019 2003-05-30 Bruno Haible <bruno@clisp.org>
26021 * m4/gettext.m4: Upgrade to gettext-0.12.1.
26022 * m4/nls.m4: New file, from gettext-0.12.1.
26023 * m4/po.m4: New file, from gettext-0.12.1.
26024 * m4/progtest.m4: Upgrade to gettext-0.12.1.
26026 2003-05-30 Bruno Haible <bruno@clisp.org>
26028 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
26029 * lib/localcharset.h: Likewise.
26030 * lib/localcharset.c: Likewise.
26032 2003-05-29 Karl Berry <karl@gnu.org>
26034 * config/config.rpath: update from gettext.
26036 2003-05-28 Paul Eggert <eggert@twinsun.com>
26038 Assume the headers required for C89 freestanding compilers.
26039 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
26040 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
26041 * m4/human.m4 (gl_HUMAN): Likewise.
26042 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
26043 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
26044 * m4/userspec.m4 (gl_USERSPEC): Likewise.
26045 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
26046 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26047 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
26049 2003-05-28 Paul Eggert <eggert@twinsun.com>
26051 Assume the headers required for C89 freestanding compilers.
26052 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
26053 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
26054 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
26055 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
26056 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
26057 define, since <limits.h> is guaranteed to do that.
26058 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
26059 * lib/exclude.c: Include <stdbool.h> unconditionally.
26060 * lib/tempname.c: Include <stddef.h> unconditionally.
26061 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
26062 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
26063 <stddef.h> does that.
26064 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
26065 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
26066 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
26068 * lib/xstrtol.c: Likewise.
26069 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
26070 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
26072 * lib/addext.c (addext): Use assignment rather than cast, to avoid
26073 warnings on some platforms.
26075 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26078 2003-05-26 Jim Meyering <jim@meyering.net>
26080 Merge in a change from coreutils:
26081 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
26082 that is guaranteed to be `no'. Use `no_such_member' to indicate
26083 that condition, rather than `-1' which is slightly misleading.
26084 Change the name of the cache variable to have the gl_ prefix.
26085 Prompted by a patch from Richard Dawe for DJGPP.
26087 2003-05-24 Karl Berry <karl@gnu.org>
26089 * config/config.guess: update from prep.
26091 2003-05-22 Karl Berry <karl@gnu.org>
26093 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
26095 2003-05-20 Karl Berry <karl@gnu.org>
26097 * config/config.guess: update from prep.
26099 2003-05-18 Karl Berry <karl@gnu.org>
26101 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
26102 might actually be set by the user.
26104 * config/depcomp, install-sh, mdate-sh: update from automake.
26106 2003-05-17 Bruno Haible <bruno@clisp.org>
26108 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
26109 invalid expansion for AC_EGREP_CPP.
26110 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26111 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26112 Suggested by Akim Demaille <akim@epita.fr> in
26113 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
26115 2003-05-12 Jim Meyering <jim@meyering.net>
26117 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
26118 the space-padded-by-default conversion specifiers, %e, %k, %l.
26120 2003-05-12 Bruno Haible <bruno@clisp.org>
26122 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
26123 the string is longer than 4 KB.
26125 2003-05-11 Karl Berry <karl@gnu.org>
26127 * config/config.{guess,sub}: update from prep.
26129 2003-05-09 Bruno Haible <bruno@clisp.org>
26131 * modules/error: Add m4/strerror_r.m4 to file list.
26133 2003-05-03 Bruno Haible <bruno@clisp.org>
26135 Upgrade to Unicode-4.0.
26136 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
26137 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
26138 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
26139 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
26140 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
26141 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
26142 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
26143 Change width of U+E0100..U+E01EF from 1 to 0.
26145 2003-04-25 Jim Meyering <jim@meyering.net>
26147 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
26148 of type size_t, not int.
26150 2003-04-25 Bruno Haible <bruno@clisp.org>
26152 * lib/copy-file.c: Include <stddef.h>, for size_t.
26154 2003-04-21 Paul Eggert <eggert@twinsun.com>
26156 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
26157 code which expansion is under static control. Patch imported from
26158 Akim Demaille's patch to Bison; see
26159 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
26161 2003-04-14 Bruno Haible <bruno@clisp.org>
26163 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
26165 2003-04-11 Jim Meyering <jim@meyering.net>
26167 Merge changes from Coreutils.
26169 2003-03-22 Jim Meyering <jim@meyering.net>
26171 * lib/strftime.c (widen): Cast alloca return value to proper type.
26173 2003-01-19 Ulrich Drepper <drepper@redhat.com>
26176 * lib/strftime.c (my_strftime): Handle very large width
26177 specifications for numeric values correctly. Improve checks for
26180 2003-01-19 Jim Meyering <jim@meyering.net>
26182 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
26184 (nl_get_alt_digit) [! defined my_strftime]: Define.
26185 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
26186 _nl_get_alt_digit and _nl_get_walt_digit.
26188 * lib/strftime.c (my_strftime): Merge in locale-related changes from
26189 libc. These changes have no effect outside of _LIBC.
26191 2003-04-10 Bruno Haible <bruno@clisp.org>
26193 * modules/findprog: New file.
26194 * MODULES.html.sh (func_all_modules): Add it.
26196 2003-04-10 Bruno Haible <bruno@clisp.org>
26198 * m4/findprog.m4: New file.
26199 * m4/eaccess.m4: New file.
26201 2003-04-10 Bruno Haible <bruno@clisp.org>
26203 * lib/findprog.h: New file, from GNU gettext.
26204 * lib/findprog.c: New file, from GNU gettext.
26206 2003-04-05 Jim Meyering <jim@meyering.net>
26208 Merge changes from Coreutils.
26210 * lib/exclude.h (PARAMS): Remove definition and uses.
26211 * lib/exclude.c: Remove uses of `PARAMS'.
26213 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
26214 Add test-cases for DOS filenames. Declare program_name.
26215 (main): Set up program_name. Patch by Rich Dawe.
26217 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26219 Use mntctl's return value to drive the entry-processing loop, since
26220 we can't rely on the value of the vmt_length member in the last
26221 entry. On some systems doing so could result in exhausting
26222 virtual memory. Based in part on a patch from Mike Jetzer.
26224 2003-04-04 Bruno Haible <bruno@clisp.org>
26226 * modules/linebreak: New file.
26227 * MODULES.html.sh (func_all_modules): Add it.
26229 2003-04-04 Bruno Haible <bruno@clisp.org>
26231 * m4/linebreak.m4: New file.
26233 2003-04-04 Bruno Haible <bruno@clisp.org>
26235 * lib/linebreak.h: New file, from GNU gettext.
26236 * lib/linebreak.c: New file, from GNU gettext with slight
26238 * lib/lbrkprop.h: New file, from GNU gettext.
26240 2003-04-03 Bruno Haible <bruno@clisp.org>
26242 * modules/utf8-ucs4: New file.
26243 * modules/utf16-ucs4: New file.
26244 * modules/ucs4-utf8: New file.
26245 * modules/ucs4-utf16: New file.
26246 * MODULES.html.sh (func_all_modules): Add them.
26248 2003-04-03 Bruno Haible <bruno@clisp.org>
26250 * m4/utf-ucs4.m4: New file.
26251 * m4/ucs4-utf.m4: New file.
26253 2003-04-03 Bruno Haible <bruno@clisp.org>
26255 * lib/utf8-ucs4.h: New file, from GNU gettext.
26256 * lib/utf16-ucs4.h: New file, from GNU gettext.
26257 * lib/ucs4-utf8.h: New file, from GNU gettext.
26258 * lib/ucs4-utf16.h: New file, from GNU gettext.
26260 2003-04-02 Bruno Haible <bruno@clisp.org>
26262 * modules/binary-io: New file.
26263 * MODULES.html.sh (func_all_modules): Add it.
26265 2003-04-02 Bruno Haible <bruno@clisp.org>
26267 * lib/binary-io.h: New file, from GNU gettext.
26269 2003-04-01 Bruno Haible <bruno@clisp.org>
26271 * modules/pathname: New file.
26272 * MODULES.html.sh (func_all_modules): Add it.
26274 2003-04-01 Bruno Haible <bruno@clisp.org>
26276 * lib/pathname.h: New file, from GNU gettext.
26277 * lib/concatpath.c: New file, from GNU gettext.
26279 2003-03-30 Bruno Haible <bruno@clisp.org>
26281 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
26283 2003-03-30 Bruno Haible <bruno@clisp.org>
26285 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
26286 function chown() doesn't exist.
26288 2003-03-28 Bruno Haible <bruno@clisp.org>
26290 * modules/copy-file: New file.
26291 * MODULES.html.sh (func_all_modules): Add it.
26293 2003-03-28 Bruno Haible <bruno@clisp.org>
26295 * m4/copy-file.m4: New file.
26297 2003-03-28 Bruno Haible <bruno@clisp.org>
26299 * lib/copy-file.h: New file, from GNU gettext.
26300 * lib/copy-file.c: New file, from GNU gettext.
26302 2003-03-18 Jim Meyering <jim@meyering.net>
26304 * lib/quote.c (quote_n): Fix typo in comment.
26306 2003-03-18 Bruno Haible <bruno@clisp.org>
26308 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
26310 * m4/onceonly_2_57.m4: Likewise.
26312 2003-03-17 Bruno Haible <bruno@clisp.org>
26314 * m4/onceonly.m4: Require autoconf 2.54 or newer.
26315 (m4_quote): Remove macro.
26316 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
26318 2003-03-14 Jim Meyering <jim@meyering.net>
26320 Merge changes from Coreutils.
26321 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
26322 to be const, in order to avoid warnings.
26323 (obstack_room): Likewise.
26324 (obstack_empty_p): Likewise.
26326 2003-03-14 Bruno Haible <bruno@clisp.org>
26328 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
26329 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
26331 2003-03-13 Paul Eggert <eggert@twinsun.com>
26333 Merge changes from Bison.
26334 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
26335 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
26336 when compiling Bison 1.875's `bitset bset = obstack_alloc
26337 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
26338 * lib/hash.c: Include <stdbool.h> unconditionally.
26340 2003-03-13 Paul Eggert <eggert@twinsun.com>
26342 * m4/onceonly.m4 (m4_quote): New macro.
26343 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
26344 Quote AC_FOREACH variable-expansions properly.
26346 2003-03-13 Paul Eggert <eggert@twinsun.com>
26348 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
26350 2003-03-09 Paul Eggert <eggert@twinsun.com>
26352 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
26353 Reported by Bruce Becker; see:
26354 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
26356 2003-03-03 Paul Eggert <eggert@twinsun.com>
26357 Bruno Haible <bruno@clisp.org>
26359 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
26360 Reported by John Hughes, see
26361 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
26363 2003-02-20 Bruno Haible <bruno@clisp.org>
26365 * MODULES.html.sh (func_all_modules): Add poll.
26367 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
26369 * modules/poll: New file.
26371 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
26373 * lib/poll_.h: New file.
26374 * lib/poll.c: New file.
26376 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
26378 * m4/poll.m4: New file.
26380 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
26382 * modules/mathl: New file.
26384 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
26386 * lib/mathl.h: New file.
26387 * lib/acosl.c: New file.
26388 * lib/asinl.c: New file.
26389 * lib/atanl.c: New file.
26390 * lib/ceill.c: New file.
26391 * lib/cosl.c: New file.
26392 * lib/expl.c: New file.
26393 * lib/floorl.c: New file.
26394 * lib/frexpl.c: New file.
26395 * lib/ldexpl.c: New file.
26396 * lib/logl.c: New file.
26397 * lib/sincosl.c: New file.
26398 * lib/sinl.c: New file.
26399 * lib/sqrtl.c: New file.
26400 * lib/tanl.c: New file.
26401 * lib/trigl.c: New file.
26402 * lib/trigl.h: New file.
26404 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
26406 * m4/mathl.m4: New file.
26408 2003-02-18 Bruno Haible <bruno@clisp.org>
26410 * MODULES.html.sh (func_all_modules): Add mathl.
26412 2003-02-17 Bruno Haible <bruno@clisp.org>
26414 * modules/mkdtemp: New module.
26415 * MODULES.html.sh (func_all_modules): Add it.
26417 2003-02-17 Bruno Haible <bruno@clisp.org>
26419 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
26421 2003-02-17 Bruno Haible <bruno@clisp.org>
26423 * lib/mkdtemp.h: New file, from GNU gettext.
26424 * lib/mkdtemp.c: New file, from GNU gettext.
26426 2003-02-02 Jim Meyering <jim@meyering.net>
26428 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
26431 2003-01-31 Bruno Haible <bruno@clisp.org>
26433 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
26435 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
26437 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
26439 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
26442 2003-01-31 Bruno Haible <bruno@clisp.org>
26444 * lib/rename.c: #undef rename before defining rpl_rename.
26445 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
26447 2003-01-30 Bruno Haible <bruno@clisp.org>
26449 * modules/vasnprintf, modules/vasprintf: New modules.
26450 * MODULES.html.sh (func_all_modules): Add them.
26452 2003-01-30 Bruno Haible <bruno@clisp.org>
26454 * m4/signed.m4: New file, from GNU gettext.
26455 * m4/longdouble.m4: New file, from GNU gettext.
26456 * m4/wchar_t.m4: New file, from GNU gettext.
26457 * m4/wint_t.m4: New file, from GNU gettext.
26458 * m4/vasnprintf.m4: New file.
26459 * m4/vasprintf.m4: New file.
26461 2003-01-30 Bruno Haible <bruno@clisp.org>
26463 * lib/printf-args.h: New file, from GNU gettext.
26464 * lib/printf-args.c: New file, from GNU gettext.
26465 * lib/printf-parse.h: New file, from GNU gettext.
26466 * lib/printf-parse.c: New file, from GNU gettext.
26467 * lib/vasnprintf.h: New file, from GNU gettext.
26468 * lib/vasnprintf.c: New file, from GNU gettext.
26469 * lib/asnprintf.c: New file, from GNU gettext.
26470 * lib/vasprintf.h: New file, from GNU gettext with modifications.
26471 * lib/vasprintf.c: New file, from GNU gettext.
26472 * lib/asprintf.c: New file, from GNU gettext.
26474 2003-01-29 Bruno Haible <bruno@clisp.org>
26476 * modules/stpncpy: New module.
26477 * MODULES.html.sh (func_all_modules): Add it.
26479 2003-01-29 Bruno Haible <bruno@clisp.org>
26481 * m4/stpncpy.m4: New file.
26483 2003-01-29 Bruno Haible <bruno@clisp.org>
26485 * lib/stpncpy.h: New file, from GNU gettext with modifications.
26486 * lib/stpncpy.c: New file, from GNU gettext with modifications.
26488 2003-01-28 Bruno Haible <bruno@clisp.org>
26490 * modules/c-ctype: New module.
26491 * MODULES.html.sh (func_all_modules): Add it.
26493 2003-01-28 Bruno Haible <bruno@clisp.org>
26495 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
26497 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
26500 2003-01-27 Bruno Haible <bruno@clisp.org>
26502 * modules/xsetenv: New module.
26503 * MODULES.html.sh (func_all_modules): Add it.
26505 2003-01-27 Bruno Haible <bruno@clisp.org>
26507 * lib/xsetenv.h: New file, from GNU gettext.
26508 * lib/xsetenv.c: New file, from GNU gettext.
26510 2003-01-23 Jim Meyering <jim@meyering.net>
26512 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
26513 from working on systems without dirfd (at least Irix and OSF1/Tru64).
26515 2003-01-23 Bruno Haible <bruno@clisp.org>
26517 * modules/minmax: New module.
26518 * MODULES.html.sh (func_all_modules): Add it.
26520 2003-01-23 Bruno Haible <bruno@clisp.org>
26522 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
26525 2003-01-22 Bruno Haible <bruno@clisp.org>
26527 * modules/exit: New module.
26528 * MODULES.html.sh (func_all_modules): Add it.
26530 2003-01-22 Bruno Haible <bruno@clisp.org>
26532 * lib/exit.h: New file, from GNU gettext.
26534 2003-01-19 Bruno Haible <bruno@clisp.org>
26536 * gnulib-tool: Recognize option --extract-maintainer.
26537 (func_get_maintainer): New function.
26538 * modules/*: Add Maintainer entry.
26540 2003-01-16 Jim Meyering <jim@meyering.net>
26542 * m4/regex.m4: The `regex' struct is both input and output.
26543 Initialize it before each use. Patch by Tim Waugh.
26545 2003-01-16 Bruno Haible <bruno@clisp.org>
26547 * MODULES.html.sh: Add a table of contents. Add the module name as
26548 leftmost column. Add hyperlinks.
26550 2003-01-15 Bruno Haible <bruno@clisp.org>
26552 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
26554 2003-01-15 Bruno Haible <bruno@clisp.org>
26556 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
26557 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
26560 2003-01-15 Bruno Haible <bruno@clisp.org>
26562 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
26564 2003-01-15 Bruno Haible <bruno@clisp.org>
26566 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
26567 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
26569 2003-01-14 Jim Meyering <jim@meyering.net>
26571 * lib/same.c (same_name): Tweak a comment.
26573 2003-01-14 Bruno Haible <bruno@clisp.org>
26575 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
26576 when a string comparison is sufficient.
26578 2003-01-14 Bruno Haible <bruno@clisp.org>
26580 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
26583 2003-01-14 Bruno Haible <bruno@clisp.org>
26585 * lib/hash-pjw.c: Add comment about low quality of this function.
26587 2003-01-13 Bruno Haible <bruno@clisp.org>
26589 * modules/stpcpy: Distribute lib/stpcpy.h.
26590 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
26592 2003-01-13 Bruno Haible <bruno@clisp.org>
26594 * modules/*: Add a description.
26595 * modules/strpbrk: Fix Makefile.am snippet.
26596 * modules/strtoimax: Fix dependencies.
26597 * modules/strtoumax: Likewise.
26599 2003-01-13 Bruno Haible <bruno@clisp.org>
26601 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
26602 * modules/alloca (Makefile.am): All object files depend on alloca.h.
26603 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
26605 2003-01-13 Bruno Haible <bruno@clisp.org>
26607 * gnulib-tool (func_create_testdir): Store config/* files in the main
26609 * config.rpath: Move to ...
26610 * config/config.rpath: ... here.
26611 * modules/gettext: Contains config/config.rpath, not config.rpath.
26612 * modules/iconv: Likewise.
26614 2003-01-12 Paul Eggert <eggert@twinsun.com>
26616 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26617 to avoid collisions with libcurses and libreadline.
26619 * m4/getstr.m4: Remove.
26620 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
26622 2003-01-12 Paul Eggert <eggert@twinsun.com>
26624 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26625 to avoid collisions with libcurses and libreadline.
26627 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
26628 * lib/getstr.h, getstr.c: Remove.
26629 * lib/getline.c: Include "getline.h", to check interface.
26630 Move body of old getstr.c here: this defines MIN_CHUNK and
26631 declares getdelim2, which is renamed from getstr.
26632 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
26634 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
26636 * lib/linebuffer.h: Likewise.
26637 (readline): Remove backward-compatibility macro.
26639 2003-01-12 Paul Eggert <eggert@twinsun.com>
26641 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
26642 to avoid collisions with libcurses and libreadline.
26644 * MODULES.html.sh: Remove getstr.
26645 * modules/getline: Depend on unlocked-io, not getstr.
26647 2003-01-12 Jim Meyering <jim@meyering.net>
26649 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
26651 2003-01-10 Bruno Haible <bruno@clisp.org>
26653 * modules/alloca: Change Makefile.am requirements. Simplify Include
26654 requirements. Add lib/alloca_.h to file list.
26656 2003-01-10 Bruno Haible <bruno@clisp.org>
26658 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
26660 2003-01-10 Bruno Haible <bruno@clisp.org>
26662 * lib/alloca_.h: New file.
26663 * lib/getdate.y: Unconditionally include alloca.h.
26664 * lib/makepath.c: Likewise.
26665 * lib/setenv.c: Likewise.
26666 * lib/userspec.c: Likewise.
26668 2003-01-09 Karl Berry <karl@gnu.org>
26670 * MODULES.html.sh: include `dirname $0` in PATH, to find
26673 2003-01-09 Bruno Haible <bruno@clisp.org>
26675 * modules/stdbool: Change configure.ac, Makefile.am requirements.
26676 Simplify Include requirements. Add lib/stdbool.h.in to file list.
26678 2003-01-09 Bruno Haible <bruno@clisp.org>
26680 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
26682 2003-01-09 Bruno Haible <bruno@clisp.org>
26684 * lib/stdbool.h.in: New file.
26686 2003-01-09 Bruno Haible <bruno@clisp.org>
26688 * gnulib-tool (func_all_modules): Ignore files ending in ~.
26689 * MODULES.html.sh: Likewise.
26691 2003-01-08 Jim Meyering <jim@meyering.net>
26693 * lib/full-write.c: Undefine and define-away `const' after inclusion
26694 of errno.h, not before. Suggestion from Bruno Haible.
26696 2003-01-08 Bruno Haible <bruno@clisp.org>
26698 * modules/full-read: Depend on full-write.
26700 2003-01-08 Bruno Haible <bruno@clisp.org>
26702 * lib/safe-read.c: Include specification header first, to ensure its
26704 * lib/full-write.c: Likewise.
26706 2003-01-07 Jim Meyering <jim@meyering.net>
26708 * lib/full-write.c: Rework so that it may serve to define full_read,
26710 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
26712 2003-01-07 Bruno Haible <bruno@clisp.org>
26714 * lib/strtoimax.c: Include <stdint.h> as an alternative to
26716 * lib/xstrtol.h: Likewise.
26717 * lib/xstrtoimax.c: Likewise.
26718 * lib/xstrtoumax.c: Likewise.
26719 * lib/human.h: Likewise.
26721 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
26722 on systems that have <inttypes.h> but not <stdint.h>.
26724 2003-01-07 Bruno Haible <bruno@clisp.org>
26726 * MODULES.html.sh: Add copyright notice.
26727 (missed_files): Omit CVS directory entries.
26728 (func_module): Make it work with sed-3.02.
26729 * MODULES.txt: Remove file.
26731 2003-01-06 Jim Meyering <jim@meyering.net>
26733 * lib/version-etc.c: Update year in translatable copyright string.
26735 2003-01-03 Karl Berry <karl@gnu.org>
26737 * config/config.{guess,sub}: update from prep.
26739 2003-01-02 Karl Berry <karl@gnu.org>
26741 * doc/COPYING.DOC: belatedly updated to 1.2.
26743 2003-01-01 Karl Berry <karl@gnu.org>
26745 * gnulib-tool (func_verify_module): report module name $module in
26746 error message, not $1.
26747 * gnulib-tool (create-testdir): don't complain if destdir couldn't
26748 be created, only if it doesn't exist.
26749 * gnulib-tool (last_checkin_date): don't expand the $Date here.
26751 2002-12-31 Paul Eggert <eggert@twinsun.com>
26753 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
26755 2002-12-31 Paul Eggert <eggert@twinsun.com>
26757 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
26758 memcmp if strcoll doesn't work.
26760 2002-12-31 Bruno Haible <bruno@clisp.org>
26762 * lib/utime.c (utime_null): No need to call ftruncate if the file was
26765 2002-12-31 Bruno Haible <bruno@clisp.org>
26767 * lib/memcoll.c (STRCOLL): New macro.
26770 2002-12-31 Bruno Haible <bruno@clisp.org>
26772 * lib/localcharset.h: New file.
26773 * lib/localcharset.c: Include it.
26774 * lib/unicodeio.c: Likewise.
26776 2002-12-31 Bruno Haible <bruno@clisp.org>
26778 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
26779 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
26781 2002-12-31 Bruno Haible <bruno@clisp.org>
26783 * lib/getline.h: Include <stddef.h>, for size_t.
26785 * lib/unicodeio.h: Include <stddef.h>, for size_t.
26786 * lib/unicodeio.c: Don't include <stddef.h>.
26788 2002-12-31 Bruno Haible <bruno@clisp.org>
26790 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
26793 2002-12-24 Karl Berry <karl@gnu.org>
26795 * config/config.guess: update from prep.
26797 2002-12-24 Bruno Haible <bruno@clisp.org>
26799 General infrasructure.
26800 * m4/README: Rewritten.
26801 * m4/onceonly.m4: New file.
26802 * m4/onceonly_2_57.m4: New file.
26805 * m4/atexit.m4: New file.
26808 * m4/strtod.m4: New file.
26811 * m4/strtol.m4: New file.
26814 * m4/strtoul.m4: New file.
26817 * m4/memchr.m4: New file.
26820 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
26821 (jm_FUNC_MEMCMP): Invoke it.
26824 * m4/memcpy.m4: New file.
26827 * m4/memmove.m4: New file.
26830 * m4/memset.m4: New file.
26833 * m4/strcspn.m4: New file.
26836 * m4/strpbrk.m4: New file.
26839 * m4/strstr.m4: New file.
26842 * m4/strerror.m4: New file.
26845 * m4/mktime.m4: Renamed from jm-mktime.m4.
26846 (gl_PREREQ_MKTIME): New macro.
26847 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
26850 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
26851 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
26852 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
26855 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
26856 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
26857 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
26860 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
26861 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
26862 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
26864 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
26867 * m4/xalloc.m4: New file.
26870 * m4/alloca.m4: New file.
26873 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
26874 (jm_FUNC_PUTENV): Invoke it.
26877 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
26878 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
26879 when invoked twice.
26880 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
26884 * m4/memrchr.m4: New file.
26887 * m4/stpcpy.m4: New file.
26890 * m4/strcase.m4: New file.
26893 * m4/strdup.m4: New file.
26896 * m4/strnlen.m4: New file.
26899 * m4/strndup.m4: New file.
26902 * m4/xstrtod.m4: New file.
26905 * m4/xstrtol.m4: New file.
26908 * m4/getdate.m4: New file.
26910 Module unlocked-io.
26911 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
26912 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
26913 * m4/jm-glibc-io.m4n: Remove file.
26915 Module long-options.
26916 * m4/long-options.m4: New file.
26919 * m4/md5.m4: New file.
26922 * m4/sha.m4: New file.
26925 * m4/getstr.m4: New file.
26928 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
26929 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
26930 <sys/types.h>, for size_t. Use the function name gnu_getline, not
26931 simply getline. Infoke gl_PREREQ_GETLINE.
26934 * m4/obstack.m4: New file.
26937 * m4/hash.m4: New file.
26940 * m4/readtokens.m4: New file.
26943 * m4/strverscmp.m4: New file.
26946 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
26950 * m4/strtoll.m4: New file.
26953 * m4/strtoull.m4: New file.
26956 * m4/strtoimax.m4: New file.
26959 * m4/strtoumax.m4: New file.
26962 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
26963 jm_AC_PREREQ_XSTRTOIMAX.
26964 Moved the strtol prerequisites to strtol.m4.
26965 Moved the strtoll prerequisites to strtoll.m4.
26966 Moved the strtoimax prerequisites to strtoimax.m4.
26969 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
26970 jm_AC_PREREQ_XSTRTOUMAX.
26971 Moved the strtoul prerequisites to strtoul.m4.
26972 Moved the strtoull prerequisites to strtoull.m4.
26973 Moved the strtoumax prerequisites to strtoumax.m4.
26976 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
26977 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
26980 * m4/dup2.m4: New file.
26983 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
26984 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
26987 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
26988 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
26990 Module gettimeofday.
26991 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
26992 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
26993 gl_PREREQ_GETTIMEOFDAY.
26996 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
26997 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
27000 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
27001 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
27002 jm_AC_TYPE_UINTMAX_T.
27003 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
27006 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
27007 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
27010 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
27011 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
27014 * m4/timespec.m4 (gl_TIMESPEC): New macro.
27015 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
27016 * m4/st_mtim.m4: Indentation.
27019 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
27020 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
27021 gl_PREREQ_NANOSLEEP.
27024 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
27025 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
27026 (gl_REGEX): New macro.
27029 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
27030 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
27033 * m4/rmdir.m4: New file.
27036 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
27037 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
27038 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
27041 * m4/dirname.m4: New file.
27044 * m4/getopt.m4: New file.
27046 Module unistd-safer.
27047 * m4/unistd-safer.m4: New file.
27050 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
27052 (gl_PREREQ_FNMATCH_EXTRA): New macro.
27053 (gl_FUNC_FNMATCH_POSIX): New macro.
27054 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
27055 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
27059 * m4/exclude.m4: New file.
27062 * m4/human.m4: New file.
27068 * m4/backupfile.m4: New file.
27069 * m4/d-ino.m4: Indentation.
27072 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
27073 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
27074 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
27077 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
27081 * m4/euidaccess.m4: New file.
27084 * m4/file-type.m4: New file.
27087 * m4/fileblocks.m4: New file.
27090 * m4/filemode.m4: New file.
27093 * m4/isdir.m4: New file.
27096 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
27097 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
27100 * m4/makepath.m4: New file.
27103 * m4/modechange.m4: New file.
27106 * m4/mountlist.m4: New file.
27107 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
27110 Module path-concat.
27111 * m4/path-concat.m4: New file.
27114 * m4/pathmax.m4: New file.
27117 * m4/same.m4: New file.
27120 * m4/save-cwd.m4: New file.
27123 * m4/savedir.m4: New file.
27126 * m4/xgetcwd.m4: New file.
27127 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
27130 * m4/xreadlink.m4: New file.
27133 * m4/safe-read.m4: New file.
27136 * m4/safe-write.m4: New file.
27139 * m4/closeout.m4: New file.
27141 Module stdio-safer.
27142 * m4/stdio-safer.m4: New file.
27145 * m4/getpass.m4: New file.
27148 * m4/getugroups.m4: New file.
27150 Module group-member.
27151 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
27152 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
27155 * m4/idcache.m4: New file.
27158 * m4/userspec.m4: New file.
27161 * m4/clock_time.m4: New file.
27162 * m4/gettime.m4: New file.
27165 * m4/settime.m4: New file.
27168 * m4/posixtm.m4: New file.
27170 Module gethostname.
27171 * m4/gethostname.m4: New file.
27174 * m4/canon-host.m4: New file.
27177 * m4/codeset.m4: New file, from gettext-0.11.5.
27178 * m4/gettext.m4: New file, from gettext-0.11.5.
27179 * m4/glibc21.m4: New file, from gettext-0.11.5.
27180 * m4/iconv.m4: New file, from gettext-0.11.5.
27181 * m4/intdiv0.m4: New file, from gettext-0.11.5.
27182 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
27183 * m4/inttypes.m4: New file, from gettext-0.11.5.
27184 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
27185 * m4/isc-posix.m4: New file, from gettext-0.11.5.
27186 * m4/lcmessage.m4: New file, from gettext-0.11.5.
27187 * m4/lib-ld.m4: New file, from gettext-0.11.5.
27188 * m4/lib-link.m4: New file, from gettext-0.11.5.
27189 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
27190 * m4/progtest.m4: New file, from gettext-0.11.5.
27191 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
27192 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
27193 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
27195 Module localcharset.
27196 * m4/localcharset.m4: New file.
27198 Module hard-locale.
27199 * m4/hard-locale.m4: New file.
27202 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
27204 * m4/mbrtowc.m4: Add comment.
27207 * m4/memcasecmp.m4: New file.
27210 * m4/memcoll.m4: New file.
27213 * m4/unicodeio.m4: New file.
27216 * m4/rpmatch.m4: New file.
27219 * m4/yesno.m4: New file.
27222 * m4/exitfail.m4: New file.
27225 * m4/c-stack.m4 (gl_C_STACK): New macro.
27226 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
27229 * m4/error.m4 (gl_ERROR): New macro.
27230 (jm_PREREQ_ERROR): Use onceonly macros.
27233 * m4/fatal.m4: New file.
27236 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
27237 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
27239 Module getpagesize.
27240 * m4/getpagesize.m4: New file.
27242 Module getusershell.
27243 * m4/getusershell.m4: New file.
27246 * m4/physmem.m4: New file.
27249 * m4/posixver.m4: New file.
27252 * m4/quotearg.m4: New file.
27255 * m4/quote.m4: New file.
27258 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
27261 * m4/sig2str.m4: New file.
27264 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
27266 * m4/intmax_t.m4: New file.
27267 * m4/d-type.m4: Indentation.
27268 * m4/jm-macros.m4: Update.
27269 * m4/prereq.m4 (jm_PREREQ): Update.
27270 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
27271 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
27272 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
27273 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
27274 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
27275 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
27276 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
27277 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
27278 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
27279 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
27280 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
27281 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
27282 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
27283 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
27284 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
27285 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
27286 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
27287 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
27288 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
27290 2002-12-24 Bruno Haible <bruno@clisp.org>
27292 * MODULES.txt: Update according to m4/ changes.
27295 * config.rpath: New file, from gettext-0.11.5.
27297 * modules/*: New module descriptions.
27298 * gnulib-tool: New file.
27299 * MODULES.html.sh: New file.
27301 2002-12-21 Karl Berry <karl@gnu.org>
27303 * doc/fdl.texi: update to version 1.2.
27305 2002-12-19 Karl Berry <karl@gnu.org>
27307 * config/config.guess: update from prep.
27309 2002-12-18 Bruno Haible <bruno@clisp.org>
27311 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
27312 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
27314 2002-12-17 Bruno Haible <bruno@clisp.org>
27316 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
27317 stdlib.h, string.h.
27319 2002-12-17 Bruno Haible <bruno@clisp.org>
27321 * lib/canon-host.c (strdup): Remove unused declaration.
27323 * lib/fsusage.c: Include full_read.h.
27324 (get_fs_usage): Use full_read instead of safe_read.
27326 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
27328 2002-12-12 Karl Berry <karl@gnu.org>
27330 * config/config.guess: update from prep.
27332 2002-12-11 Bruno Haible <bruno@clisp.org>
27334 * m4/setenv.m4: New file, from gettext-0.11.5.
27336 2002-12-11 Bruno Haible <bruno@clisp.org>
27338 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
27340 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
27343 2002-12-11 Bruno Haible <bruno@clisp.org>
27345 * setenv.c (alloca): Fall back to malloc.
27346 (freea): New macro.
27347 (setenv): Use freea() to free memory allocated with alloca().
27349 2002-11-13 Bruno Haible <bruno@clisp.org>
27351 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
27352 function declarations.
27353 * unsetenv.c (unsetenv): Likewise.
27355 2002-03-04 Bruno Haible <bruno@clisp.org>
27357 Portability to AIX 4.3.3.
27358 * unsetenv.c: New file, extracted from setenv.c.
27359 * setenv.c: Move the unsetenv() function to unsetenv.c.
27361 2001-12-20 Bruno Haible <bruno@clisp.org>
27363 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
27364 use malloc instead. For SunOS 4.
27366 2001-12-11 Bruno Haible <bruno@clisp.org>
27368 * setenv.c: Declare alloca.
27369 (compar_fn_t): New typedef.
27370 (KNOWN_VALUE, STORE_VALUE): Use it.
27372 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
27375 2002-12-10 Paul Eggert <eggert@twinsun.com>
27377 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
27378 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
27379 Choose values that are less likely to collide with system fnmatch
27381 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
27382 defined (e.g., a pure POSIX system).
27383 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
27384 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
27386 2002-12-06 Paul Eggert <eggert@twinsun.com>
27388 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
27389 a pain in practice to deal with generated m4 files. This change
27390 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
27392 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
27393 and jm-glibc-io.m4, as they are no longer a special case.
27394 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
27395 kludge and the auto-generation stuff. Check only whether the
27396 functions are declared, not whether they exist, since older hosts
27397 that don't declare the functions can't use the optimization anyway.
27399 2002-12-06 Jim Meyering <jim@meyering.net>
27401 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
27403 Merge in changes from libc's misc/error.c, in preparation
27404 for the merge of gnulib's changes back into libc.
27406 * lib/error.c (_): Define only if not already defined.
27407 Move definition to follow all #include directives.
27408 Include unlocked-io.h only if !_LIBC.
27409 [_LIBC]: Include <libio/libioP.h>.
27410 [USE_IN_LIBIO]: Include <libio/iolibio.h>
27411 (fflush): Tweak definition to use INTUSE.
27414 2002-12-05 Paul Eggert <eggert@twinsun.com>
27416 * lib/alloca.c [defined emacs]: Include "lisp.h".
27417 (xalloc_die) [defined emacs]: New macro.
27418 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
27419 [! defined emacs]: Include <xalloc.h>.
27420 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
27421 (pointer): Typedef to POINTER_TYPE *.
27422 (malloc): Remove decl; we now always use xmalloc.
27423 (alloca): Use old-style definition, since Emacs needs this.
27424 Check for arithmetic overflow when computing combined size.
27426 2002-12-04 Paul Eggert <eggert@twinsun.com>
27428 Do not generate unlocked-io.h automatically, since it's easier to
27429 maintain it by hand.
27431 * lib/unlocked-io.h: New file, from GNU diffutils,
27432 but with proper copyright notice and attribution.
27433 * lib/gen-uio: Remove.
27434 * lib/Makefile.am: Add copyright notice.
27435 (libfetish_a_SOURCES): Add unlocked-io.h.
27436 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
27437 (DISTCLEANFILES, io_functions): Remove macros.
27438 (EXTRA_DIST): Remove gen_uio.
27439 (unlocked-io.h): Remove rule.
27441 2002-12-04 Jim Meyering <jim@meyering.net>
27443 Reflect the fact that stat.c and lstat.c are no longer generated.
27444 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
27445 (DISTCLEANFILES): Likewise.
27446 (EXTRA_DIST): Likewise.
27447 (all_local): Don't depend on stat.c or lstat.c.
27448 (stat.c, lstat.c): Remove rules.
27449 (EXTRA_DIST): Remove xstat.in.
27451 * lib/xstat.in: Remove file. Contents moved into stat.c.
27452 * lib/stat.c: New file. Contents mostly from xstat.in.
27453 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
27454 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
27456 * lib/safe-read.c: Rework so that it may serve to define safe_write,
27458 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
27460 2002-12-03 Jim Meyering <jim@meyering.net>
27462 * lib/safe-read.c, safe-write.c: Change variable names and comments,
27463 but not semantics, to minimize the differences between these two files.
27464 (safe_read): Change comment to mention SAFE_READ_ERROR.
27466 * lib/safe-read.c (IS_EINTR): Define.
27467 (safe_read): Use IS_EINTR in place of in-function cpp directives.
27469 2002-12-02 Jim Meyering <jim@meyering.net>
27471 * lib/safe-read.c (EINTR): Define.
27472 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
27473 (INT_MAX): Provide fallback.
27474 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
27476 * lib/safe-read.h (SAFE_READ_ERROR): Define.
27478 2002-12-02 Bruno Haible <bruno@clisp.org>
27480 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27481 Define, taken from safe-read.c.
27482 (INT_MAX): Provide fallback.
27483 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
27484 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
27486 * lib/safe-read.c (EINTR): Remove definition.
27487 (safe_read): Don't use EINTR if it is absent.
27489 2002-12-01 Jim Meyering <jim@meyering.net>
27491 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
27493 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
27495 2002-11-27 Paul Eggert <eggert@twinsun.com>
27497 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
27498 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
27499 with `if (! (value < limit)) abort ();', for readability.
27501 2002-11-26 Karl Berry <karl@gnu.org>
27503 * lib/strdup.c: copy from libc again, with jim's ok.
27504 * lib/.cppi-disable: re-add strdup.c
27506 2002-11-25 Karl Berry <karl@gnu.org>
27508 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
27509 instead of "strtol.c".
27511 2002-11-25 Karl Berry <karl@gnu.org>
27513 * config/install-sh: update from automake for variable quoting, $0 in
27516 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
27517 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
27520 2002-11-25 Jim Meyering <jim@meyering.net>
27522 * lib/mktime.c: Sync from libc, now that it has the latest fix.
27524 2002-11-24 Karl Berry <karl@gnu.org>
27526 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
27527 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
27529 2002-11-24 Jim Meyering <jim@meyering.net>
27531 Update from coreutils:
27533 * lib/mktime.c: Merge in changes from libc.
27535 Avoid a link-time failure on some Linux systems.
27536 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
27538 (__mon_yday): Declare with the STATIC attribute.
27539 (__mktime_internal): Likewise.
27540 Based on a report from Greg Schafer.
27542 2002-11-23 Jim Meyering <jim@meyering.net>
27544 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
27545 Use `unsigned', not `int', as type of index.
27547 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
27549 * lib/fsusage.c: Remove unneeded parentheses around operands of
27552 2002-11-22 Paul Eggert <eggert@twinsun.com>
27554 * lib/quotearg.h: Allow multiple inclusion by surrounding with
27555 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
27556 so that we can be included first.
27557 (PARAMS): Remove; we now assume C89 or later. All uses removed.
27558 * lib/quotearg.c: Include quotearg.h immediately after config.h.
27559 No need to include stddef.h or sys/types.h any more.
27560 Surround local include files with "", not "<>".
27561 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
27562 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
27563 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
27564 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
27565 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
27566 (ISPRINT): Remove; no longer needed now that we assume C89.
27568 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
27571 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
27572 quotearg_char): Use SIZE_MAX rather than
27573 (size_t) -1 when we are talking about "infinity".
27575 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
27577 2002-11-22 Paul Eggert <eggert@twinsun.com>
27579 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
27580 hint that one should use `if (! x) abort ();' rather than `assert
27581 (x);', and anyway it's one less thing to worry about configuring.
27582 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
27583 hash_rehash, hash_insert): Use abort rather than assert.
27585 2002-11-22 Bruno Haible <bruno@clisp.org>
27587 * lib/safe-read.h: Assume C89. Add comments.
27588 (safe_read): Change return type to size_t.
27589 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
27590 byte counts > SSIZE_MAX correctly.
27591 * lib/safe-write.h: New file.
27592 * lib/safe-write.c: New file.
27593 * lib/full-read.h: New file.
27594 * lib/full-read.c: New file.
27595 * lib/full-write.h: Assume C89. Add comments.
27596 * lib/full-write.c: Include safe-write.h.
27597 (full_write): Rewritten to use safe_write.
27598 Suggested by Jim Meyering and Paul Eggert.
27600 2002-11-21 Jim Meyering <jim@meyering.net>
27602 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
27604 Merge in changes from the coreutils.
27606 2002-09-25 Paul Eggert <eggert@twinsun.com>
27607 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
27609 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
27610 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
27611 int. Work more efficiently if X is the same width as uintmax_t.
27612 Do not compare X to -1, to avoid bogus compiler warning.
27613 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
27614 Don't assume that f_frsize and f_bsize are the same type.
27616 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
27617 warning on FreeBSD.
27619 * lib/makepath.c (make_path): Restore umask *before* creating the final
27621 (make_path): Minor reformatting.
27623 * lib/xmalloc.c: Adjust to work with new autoconf macros,
27624 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
27625 HAVE_MALLOC/HAVE_REALLOC.
27627 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
27628 dummy ones. At least on GNU/Linux systems, `auto' means something
27630 From Michael Stone.
27632 2002-11-21 Bruno Haible <bruno@clisp.org>
27634 Remove case insensitive option matching.
27635 * lib/argmatch.h (argcasematch): Remove declaration.
27636 (ARGCASEMATCH): Remove macro.
27637 (__xargmatch_internal): Remove case_sensitive argument.
27638 (XARGMATCH): Update.
27639 (XARGCASEMATCH): Remove macro.
27640 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
27641 case_sensitive argument.
27642 (argcasematch): Remove function.
27643 (__xargmatch_internal): Remove case_sensitive argument.
27644 (main): Use XARGMATCH instead of XARGCASEMATCH.
27646 * lib/xmalloc.c: Change compile-time error message. Add comment about
27647 required autoconf version.
27649 2002-11-20 Paul Eggert <eggert@twinsun.com>
27651 Merge argmatch cleanups from Bison. Assume C89.
27653 * lib/argmatch.c: Include config.h here, not in argmatch.h.
27654 Include stdlib.h, for EXIT_FAILURE.
27655 Always include <string.h>, since we assume C89.
27656 (EXIT_FAILURE): Remove pre-C89 bug workaround.
27657 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
27658 Include <stddef.h> instead, since it's all we need for size_t.
27659 (PARAMS): Remove. All uses removed.
27660 (ARRAY_CARDINALITY): Do not bother to #undef.
27661 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
27662 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27663 Remove unnecessary parentheses.
27664 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
27665 Insert necessary parentheses.
27666 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
27667 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
27669 2002-11-19 Bruno Haible <bruno@clisp.org>
27671 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
27672 * lib/mbswidth.h: Include <stddef.h>, for size_t.
27674 * lib/mbswidth.h (PARAMS): Remove macro.
27675 (mbswidth, mbsnwidth): Use ANSI C function declarations.
27676 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
27678 * lib/gcd.h (PARAMS): Remove macro.
27679 (gcd): Use ANSI C function declarations.
27680 * lib/gcd.c (gcd): Likewise.
27682 2002-11-15 Bruno Haible <bruno@clisp.org>
27684 * lib/strcspn.c: Include <stddef.h>.
27685 (strcspn): Use ANSI C function declaration. Change return type to
27687 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
27688 (strpbrk): Use NULL.
27689 * lib/strpbrk.h (PARAMS): Remove macro.
27690 (strpbrk): Use ANSI C function declaration.
27691 * lib/strstr.c: Don't include <sys/types.h>.
27692 * lib/strstr.h (PARAMS): Remove macro.
27693 (strstr): Use ANSI C function declarations.
27695 2002-11-14 Karl Berry <karl@gnu.org>
27697 * config/mkinstalldirs: `do' on separate line, instead of
27700 2002-11-06 Bruno Haible <bruno@clisp.org>
27702 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
27703 * lib/gcd.c (gcd): Likewise.
27705 2002-11-05 Bruno Haible <bruno@clisp.org>
27707 * lib/gcd.h: New file, from gettext-0.11.5.
27708 * lib/gcd.c: New file, from gettext-0.11.5.
27710 2002-11-05 Bruno Haible <bruno@clisp.org>
27712 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27713 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27714 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27715 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
27717 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
27719 * lib/makepath.c: Include gettext.h instead of <locale.h> and
27722 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
27723 * lib/human.c: Include gettext.h instead of <libintl.h>.
27724 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
27725 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
27726 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
27727 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
27728 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
27729 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
27730 (textdomain): Remove definition.
27731 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
27733 * lib/long-options.c: Remove include of <libintl.h> and definition of
27735 * lib/same.c: Remove include of <libintl.h> and definition of _.
27737 2002-11-04 Owen Taylor <otaylor@redhat.com>
27739 * lib/config.charset: A few additions for Solaris.
27741 2002-11-04 Bruno Haible <haible@clisp.cons.org>
27743 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
27744 * lib/localcharset.c (locale_charset): Declare as extern "C".
27746 2002-11-04 Bruno Haible <haible@clisp.cons.org>
27748 * lib/config.charset: msdos in uk_UA uses CP1125.
27750 2002-11-04 Bruno Haible <bruno@clisp.org>
27752 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
27753 * lib/strcase.h: New file, from GNU gettext-0.11.5.
27754 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
27755 * lib/strstr.h: New file, from GNU gettext-0.11.5.
27756 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
27758 2002-11-04 Bruno Haible <bruno@clisp.org>
27760 * lib/localcharset.c (locale_charset): Don't return an empty string.
27762 2002-11-04 Bruno Haible <bruno@clisp.org>
27764 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
27767 2002-11-04 Bruno Haible <bruno@clisp.org>
27769 * lib/config.charset: Update for newest glibc. Add canonical names
27770 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
27772 2002-11-04 Bruno Haible <bruno@clisp.org>
27774 * lib/config.charset: Add support for NetBSD.
27776 2002-11-04 Bruno Haible <bruno@clisp.org>
27778 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
27780 2002-11-01 Bruno Haible <bruno@clisp.org>
27782 * configure.in: Add AC_CONFIG_AUX_DIR call.
27783 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
27785 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
27787 2002-09-28 Karl Berry <karl@gnu.org>
27789 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
27790 installed automake until the next release, since changes have been
27793 2002-09-25 Karl Berry <karl@gnu.org>
27795 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
27796 * lib/getopt*: copy from libc/posix.
27797 * lib/gettext.h: copy from gettext.
27798 * lib/.cppi-disable: add strdup.c, gettext.h.
27800 2002-09-25 Karl Berry <karl@gnu.org>
27802 * config/srclist.txt: enable gettext.h check.
27803 * config/config.{guess,sub}: update from prep.
27804 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
27805 from automake 1.6.3.
27808 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
27810 * regex.c (PATFETCH): Remove the translating fetch.
27811 (PATFETCH_RAW): Rename to PATFETCH.
27812 (set_image_of_range): New fun.
27813 (SET_RANGE_TABLE_WORK_AREA): Use it.
27814 (regex_compile): Don't translate the pattern chars so eagerly.
27815 Only do it when inserting an `exactn' bytecode or when handling
27817 (mutually_exclusive_p): Avoid empty statement.
27819 2002-07-06 Jim Meyering <meyering@lucent.com>
27821 * m4/README: Don't mention Makefile.am.in.
27822 Outline how I've tested changes to .m4 files. Yep, it's a pain.
27824 2002-07-01 Jim Meyering <meyering@lucent.com>
27826 * lib/c-stack.c: Include sys/time.h.
27827 From Volker Borchert.
27829 2002-06-26 Paul Eggert <eggert@twinsun.com>
27831 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
27833 2002-06-26 Paul Eggert <eggert@twinsun.com>
27835 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
27836 New macro. Use it uniformly instead of
27837 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
27838 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
27839 reported by Vin Shelton.
27841 2002-06-22 Paul Eggert <eggert@twinsun.com>
27843 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
27844 Do not assume SA_SIGINFO behavior.
27845 Bug reported by Jim Meyering on NetBSD 1.5.2.
27847 2002-06-22 Jim Meyering <meyering@lucent.com>
27849 * m4/c-stack.m4: New file, from diffutils-2.8.2.
27850 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
27852 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
27853 now that configure.ac uses AC_GNU_SOURCE.
27854 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
27855 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
27857 Update to latest tools. Suggestions from Paul Eggert.
27858 * m4/stdbool.m4: New file, from diffutils-2.8.2.
27859 * m4/gnu-source.m4: Update from diffutils-2.8.2.
27860 * m4/fnmatch.m4: Likewise.
27861 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
27862 to AC_HEADER_STDBOOL
27864 2002-06-22 Jim Meyering <meyering@lucent.com>
27866 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
27867 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
27869 2002-06-22 Jim Meyering <meyering@lucent.com>
27871 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
27873 * lib/exitfail.c, exitfail.h: Likewise.
27874 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
27876 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
27878 (EXTRA_DIST): Add fnmatch_loop.c.
27879 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
27881 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
27882 * lib/fnmatch.c: Update from diffutils-2.8.2.
27883 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
27884 * lib/fnmatch.h: Remove file.
27886 2002-06-21 Jim Meyering <meyering@lucent.com>
27888 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
27889 * m4/mbrtowc.m4: Likewise.
27891 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
27892 * m4/mbswidth.m4: Reflect name change:
27893 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
27894 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27896 * m4/lib-link.m4: Update from gettext-0.11.2.
27897 * m4/gettext.m4: Likewise.
27899 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
27900 From Alfred M. Szmidt.
27902 2002-06-18 Paul Eggert <eggert@twinsun.com>
27904 * lib/file-type.h: Report an error if neither S_ISREG nor
27905 S_IFREG is defined, instead of using a test specific to glibc
27906 2.2. This should be safe, since POSIX requires S_ISREG and
27907 Unix Version 7 had S_IFREG. We don't need to check for
27908 <sys/types.h> since we don't use any symbols that it defines.
27910 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
27912 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
27913 $@-t, so that each temporary file name is unique and valid in the first
27914 8 characters, for operation under DOS.
27916 2002-06-15 Paul Eggert <eggert@twinsun.com>
27918 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
27920 2002-06-15 Jim Meyering <meyering@lucent.com>
27922 Work even with DJGPP 2.03, which lacks support for symlinks.
27924 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
27926 * lib/lchown.c (S_ISLNK): Likewise.
27928 2002-06-15 Jim Meyering <meyering@lucent.com>
27930 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
27931 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
27932 have been included before this file.
27934 2002-06-14 Jim Meyering <meyering@lucent.com>
27936 * lib/file-type.h: Use the version from diffutils-2.8.2.
27937 * lib/file-type.c: Likewise.
27939 2002-06-07 Jim Meyering <meyering@lucent.com>
27941 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
27942 They're needed at least for NetBSD 1.5.2.
27943 ($statxfs_includes): Include those same headers.
27944 ($statxfs_includes): Include sys/vfs.h if available.
27945 ($statxfs_includes): Likewise for sys/statvfs.h.
27946 Check for the following members in both structs statfs and statvfs:
27947 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
27949 2002-06-01 Jim Meyering <meyering@lucent.com>
27951 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
27952 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
27954 2002-05-28 Jim Meyering <meyering@lucent.com>
27956 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
27957 Reported by Volker Borchert.
27959 2002-05-27 Jim Meyering <meyering@lucent.com>
27961 Fix a problem seen only on nonconforming systems whereby ls.c's
27962 use of localtime, and then of gettimeofday would cause trouble:
27963 the localtime call used to initialize rpl_gettimeofday's save
27964 mechanism would clobber ls's current local time information so
27965 that in any long listing the first file would always be listed
27966 with date 1970-01-01. Analysis by Volker Borchert.
27968 * lib/gettimeofday.c (localtime): Undefine.
27969 (rpl_localtime): New function.
27971 2002-05-27 Jim Meyering <meyering@lucent.com>
27973 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
27976 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
27977 use the replacement function; it wouldn't resolve at link time.
27978 Reported by Volker Borchert.
27980 2002-05-22 Jim Meyering <meyering@lucent.com>
27982 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
27984 * lib/file-type.h: New file.
27985 * lib/file-type.c (file_type): New file/function. Extracted from
27988 2002-04-30 Jim Meyering <meyering@lucent.com>
27990 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
27992 2002-04-29 Paul Eggert <eggert@twinsun.com>
27994 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
27996 2002-04-29 Paul Eggert <eggert@twinsun.com>
27998 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
27999 Do not check for alloca.h (no longer used) or stdbool.h (was never
28000 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
28002 2002-04-29 Paul Eggert <eggert@twinsun.com>
28004 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
28006 2002-04-29 Jim Meyering <meyering@lucent.com>
28008 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
28009 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
28010 Use AC_FUNC_STRNLEN here instead.
28012 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
28013 With autoconf-2.53a, it's part of AC_PROG_CC.
28015 2002-04-28 Paul Eggert <eggert@twinsun.com>
28017 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
28018 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
28020 2002-04-28 Paul Eggert <eggert@twinsun.com>
28022 * lib/sig2str.h, lib/sig2str.c: New files.
28023 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
28025 2002-04-28 Paul Eggert <eggert@twinsun.com>
28027 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
28028 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
28029 of 127, since 64 is the largest conceivable number for ancient
28031 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
28033 2002-04-28 Jim Meyering <meyering@lucent.com>
28035 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
28037 2002-04-24 Jim Meyering <meyering@lucent.com>
28039 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
28040 (jm_PREREQ): Use it.
28042 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
28043 mach/mach.h fcntl.h.
28044 Check for this function: setlocale.
28046 2002-04-24 Jim Meyering <meyering@lucent.com>
28048 * lib/gettext.h: New file, from Gettext.
28049 * lib/Makefile.am (INCLUDES): Remove -I../intl.
28050 (libfetish_a_SOURCES): Add gettext.h.
28052 2002-04-16 Jim Meyering <meyering@lucent.com>
28054 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
28055 ut_pid, ut_id, ut_exit.
28057 2002-04-16 Jim Meyering <meyering@lucent.com>
28059 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
28060 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
28061 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
28063 2002-04-12 Jim Meyering <meyering@lucent.com>
28065 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
28066 now-bogus check for f_type in sys/mount.h. Instead, just test for the
28067 existence of the getmntinfo function. Needed for Darwin 5.3.
28069 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
28070 This is necessary at least on Darwin 5.3.
28072 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
28073 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
28074 strnlen.o in the library, and that makes some versions of ranlib
28077 2002-04-12 Jim Meyering <meyering@lucent.com>
28079 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
28081 2002-04-09 Jim Meyering <meyering@lucent.com>
28083 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
28084 to be more precise. Rather than saying we're checking whether the
28085 function `works', say what we're testing.
28086 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
28087 Reported by Bruno Haible.
28089 2002-03-10 Jim Meyering <meyering@lucent.com>
28091 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
28092 Suggestion from Santiago Vila.
28094 2002-03-08 Jim Meyering <meyering@lucent.com>
28096 * lib/rename.c: Mention that this wrapper is needed also on
28097 mips-dec-ultrix4.4 systems.
28099 2002-03-02 Jim Meyering <meyering@lucent.com>
28101 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
28102 not HAVE_CLOCK_SETTIME.
28104 2002-02-27 Paul Eggert <eggert@twinsun.com>
28106 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
28107 Check for clock_settime.
28109 2002-02-27 Paul Eggert <eggert@twinsun.com>
28111 * lib/nanosleep.h: Rename to....
28112 * lib/timespec.h: New name for nanosleep.h. All uses changed.
28114 * lib/gettime.c: New file.
28115 * lib/settime.c: New file.
28116 * lib/stime.c: Remove.
28118 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
28119 timespec.h. Remove nanosleep.h.
28121 2002-02-25 Paul Eggert <eggert@twinsun.com>
28123 * m4/acl.m4: New file.
28124 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
28125 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
28127 2002-02-25 Paul Eggert <eggert@twinsun.com>
28129 * lib/acl.c, lib/acl.h: New files.
28130 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
28132 2002-02-24 Jim Meyering <meyering@lucent.com>
28134 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
28135 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
28136 cause trouble. Reported by Nelson Beebe.
28138 2002-02-23 Paul Eggert <eggert@twinsun.com>
28140 * lib/path-concat.c (xpath_concat): Reorder code to pacify
28141 compilers that don't know that xalloc_die never returns.
28143 2002-02-20 Jim Meyering <meyering@lucent.com>
28145 * lib/getdate.c: Regenerate using bison-1.33.
28147 2002-02-17 Jim Meyering <meyering@lucent.com>
28149 * config/config.guess (main): Don't use `head -1'; it's no longer
28150 portable. Use `sed 1q' instead.
28152 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
28154 * m4/codeset.m4: Upgrade to gettext-0.11.
28155 * m4/gettext.m4: Upgrade to gettext-0.11.
28156 * m4/glibc21.m4: Upgrade to gettext-0.11.
28157 * m4/iconv.m4: Upgrade to gettext-0.11.
28158 * m4/isc-posix.m4: Upgrade to gettext-0.11.
28159 * m4/lcmessage.m4: Upgrade to gettext-0.11.
28160 * m4/lib-ld.m4: New file, from gettext-0.11.
28161 * m4/lib-link.m4: New file, from gettext-0.11.
28162 * m4/lib-prefix.m4: New file, from gettext-0.11.
28163 * m4/progtest.m4: Upgrade to gettext-0.11.
28165 2002-02-15 Paul Eggert <eggert@twinsun.com>
28167 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
28168 (jm_PREREQ): Use it.
28170 2002-02-15 Paul Eggert <eggert@twinsun.com>
28172 * lib/posixver.c, lib/posixver.h: New files.
28173 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28175 2002-02-02 Paul Eggert <eggert@twinsun.com>
28176 Bruno Haible <bruno@clisp.org>
28178 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
28179 (fwrite_success_callback): New declaration.
28180 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
28181 print_unicode_char. Call failure callback instead of error.
28182 (fwrite_success_callback): New function.
28183 (exit_failure_callback): New function.
28184 (fallback_failure_callback): New function.
28185 (print_unicode_char): Call unicode_to_mb.
28187 2002-01-26 Jim Meyering <meyering@lucent.com>
28189 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
28190 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
28192 2002-01-26 Jim Meyering <meyering@lucent.com>
28194 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
28196 2002-01-22 Paul Eggert <eggert@twinsun.com>
28198 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
28200 2002-01-22 Jim Meyering <meyering@lucent.com>
28202 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
28203 Otherwise, some versions of automake would omit the rule that makes
28204 Makefile from Makefile.in.
28206 2002-01-21 Paul Eggert <eggert@twinsun.com>
28208 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
28209 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
28210 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
28211 (memcoll): Set errno to zero if there is no error.
28213 * lib/quotearg.c (quotearg_buffer_restyled):
28214 Fix bug with quoting buffers containing NUL when backslashing escapes.
28215 This bug was exposed by the other changes in this patch.
28216 (quotearg_n_options): New arg ARGSIZE.
28217 All callers changed.
28218 (quoting_options_from_style): New function.
28219 (quotearg_n_style): Use it.
28220 (quotearg_n_style_mem): New function.
28222 * lib/quotearg.h (quotearg_n_style_mem): New function.
28224 2002-01-19 Jim Meyering <meyering@lucent.com>
28226 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
28227 Remove useless quotes: DF_PROG="df".
28228 * m4/strnlen.m4: New file.
28230 2002-01-16 Paul Eggert <eggert@twinsun.com>
28232 * lib/backupfile.c (ISDIGIT): Comment fix.
28233 * lib/getdate.y (ISDIGIT): Likewise.
28234 * lib/posixtm.c (ISDIGIT, year): Likewise.
28235 * lib/strverscmp.c (ISDIGIT): Likewise.
28236 * lib/userspec.c (ISDIGIT): Likewise.
28238 2002-01-16 Jim Meyering <meyering@lucent.com>
28240 * lib/getdate.y: Add three semicolons, each just before a closing
28241 brace. Bison (as of version 1.31) no longer papers over that mistake.
28243 2002-01-05 Jim Meyering <meyering@lucent.com>
28245 * lib/version-etc.c (version_etc_copyright): Update copyright year.
28247 2001-12-19 Paul Eggert <eggert@twinsun.com>
28249 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
28250 not silently exit merely because the output buffer happens to
28251 have nothing pending.
28253 2001-12-18 Paul Eggert <eggert@twinsun.com>
28255 See the big note in ../ChangeLog.
28256 * lib/human.c (suffixes): Prefer K to k for 1024.
28257 (generate_suffix_backwards): New function.
28258 (human_readable_inexact): Use it.
28259 * lib/xstrtol.c (__xstrtol): If there is no number but there
28260 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
28261 Accept 'K' as well as 'k'.
28263 2001-12-15 Jim Meyering <meyering@lucent.com>
28265 * lib/regex.h (__restrict_arr): Update from libc.
28267 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
28268 as `remote' if the name starts with `//'. Suggested by Michael Stone.
28271 2001-12-14 Jim Meyering <meyering@lucent.com>
28273 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
28274 Suggestion from Bruno Haible.
28276 2001-12-10 Jim Meyering <meyering@lucent.com>
28278 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
28279 xrealloc, Instead, include "xalloc.h".
28280 (initbuffer): Don't cast xmalloc return value to char*.
28281 (readline): Reword comment.
28282 Don't cast xrealloc return value to char*
28283 Return NULL, not 0.
28285 2001-12-09 Jim Meyering <meyering@lucent.com>
28287 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
28288 about `signed and unsigned type in conditional expression'.
28289 * lib/posixtm.c (posix_time_parse): Likewise.
28291 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
28293 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
28294 to avoid a pedantic warning.
28296 * lib/getstr.c: Don't include assert.h.
28297 (getstr): Remove warning-evoking assertions.
28298 Return -1 if offset parameter is out of bounds.
28299 Change the type of a local from int to size_t.
28301 * lib/strftime.c (my_strftime_localtime_r): Include this function
28302 definition in the `#if ! HAVE_TM_GMTOFF' block.
28304 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
28305 Include xalloc.h instead.
28307 2001-12-02 Jim Meyering <meyering@lucent.com>
28309 * lib/tempname.c: Don't declare getenv, thus reverting the change of
28310 2001-11-18. It's no longer necessary, now that stdlib.h is always
28313 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
28314 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
28316 2001-11-30 Akim Demaille <akim@epita.fr>
28318 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
28319 before being defined.
28321 2001-11-27 Paul Eggert <eggert@twinsun.com>
28323 * lib/quotearg.h (quotearg_n, quotearg_n_style):
28324 First arg is int, not unsigned.
28325 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
28326 (SIZE_MAX, UINT_MAX): New macros.
28327 (quotearg_n_options): Abort if N is negative.
28328 Avoid overflow check on hosts where size_t is 64 bits and int
28329 is 32 bits, as overflow is impossible there.
28330 Fix off-by-one typo that caused unnecessary reallocation.
28332 2001-11-27 Jim Meyering <meyering@lucent.com>
28334 * lib/tempname.c: Merge with version from libc.
28335 * lib/regex.c: Likewise.
28337 * lib/tempname.c: Include stdlib.h unconditionally. On some old
28338 systems for which STDC_HEADERS is 0, it was not included, resulting in
28339 a warning about an integer-to-pointer conversion problem with getenv.
28340 Reported by Volker Borchert.
28342 2001-11-26 Jim Meyering <meyering@lucent.com>
28344 * lib/gtod.h: Remove file.
28345 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
28346 * lib/gettimeofday.c: Don't include gtod.h.
28347 (GTOD_init): Remove function.
28348 (rpl_gettimeofday): Do its job here instead, rather than aborting.
28349 Suggestion from Volker Borchert.
28351 2001-11-23 Jim Meyering <meyering@lucent.com>
28353 * lib/hash.h (struct hash_table): Don't define here. Merely declare
28355 * lib/hash.c (struct hash_table): Define it here instead.
28357 2001-11-22 Jim Meyering <meyering@lucent.com>
28359 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
28361 2001-11-20 Jim Meyering <meyering@lucent.com>
28363 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
28364 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
28366 2001-11-19 Jim Meyering <meyering@lucent.com>
28368 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
28369 directory. Use "conftestXXXXXX" as the template.
28370 Suggestion from Paul Eggert.
28372 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
28373 immediately, so the test doesn't mistakenly hit the max-open-files
28376 2001-11-18 Paul Eggert <eggert@twinsun.com>
28378 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
28379 (TEMPORARIES): New macro.
28380 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
28381 removes an artificial limitation (e.g. HP-UX 10.20, where
28384 2001-11-18 Jim Meyering <meyering@lucent.com>
28386 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
28388 2001-11-18 Jim Meyering <meyering@lucent.com>
28390 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
28393 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
28394 files will be created before anything else.
28396 2001-11-17 Paul Eggert <eggert@twinsun.com>
28398 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
28399 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
28401 2001-11-17 Jim Meyering <meyering@lucent.com>
28403 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
28404 Prompted by a report from Bob Proulx.
28406 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
28407 Instead, require UTILS_FUNC_MKSTEMP.
28409 2001-11-17 Jim Meyering <meyering@lucent.com>
28411 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
28412 Now, that's done as part of AC_FUNC_STRTOD.
28414 2001-11-17 Jim Meyering <meyering@lucent.com>
28416 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
28417 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
28418 rather than group writable. Patch by Juan F. Codagnone.
28420 * lib/readtokens.c: Remove explicit declarations of xmalloc and
28421 xrealloc, Instead, include "xalloc.h".
28423 * lib/mountlist.c: Include unlocked-io.h after all system headers.
28424 Remove explicit declarations of xmalloc, xrealloc,
28425 and xstrdup. Instead, include "xalloc.h".
28427 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
28429 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
28431 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
28433 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
28434 Reported by Padraig Brady.
28436 * lib/mkstemp.c: #undef mkstemp.
28438 (rpl_mkstemp): Rename from mkstemp.
28441 2001-11-16 Jim Meyering <meyering@lucent.com>
28443 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
28444 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
28445 determine the amount of total physical memory, use pstat_getstatic.
28446 HPUX-11 doesn't define _SC_PHYS_PAGES.
28447 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
28448 If sysconf couldn't be used to determine the amount of available
28449 physical memory, use both pstat_getstatic and pstat_getdynamic.
28450 Based on a patch from Bob Proulx.
28452 2001-11-10 Jim Meyering <meyering@lucent.com>
28454 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
28455 (jm_PREREQ): Use it.
28457 2001-11-09 Jim Meyering <meyering@lucent.com>
28459 * m4/jm-macros.m4: Require autoconf-2.52f.
28460 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
28461 Use these AC_-prefixed names, not the AM_-prefixed ones.
28463 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
28465 2001-11-05 Jim Meyering <meyering@lucent.com>
28467 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
28469 2001-11-04 Jim Meyering <meyering@lucent.com>
28471 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
28474 2001-11-03 Jim Meyering <meyering@lucent.com>
28476 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
28479 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
28480 know the name of the variable in the macro definition.
28482 2001-11-03 Jim Meyering <meyering@lucent.com>
28484 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
28485 in argmatch_to_argument call.
28487 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
28490 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
28491 e.g., a fault due to an attempt to free a NULL pointer.
28493 2001-11-01 Jim Meyering <meyering@lucent.com>
28495 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
28496 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
28498 2001-11-01 Jim Meyering <meyering@lucent.com>
28500 * lib/dirfd.c, lib/dirfd.h: New files.
28501 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
28503 * lib/hash.c (hash_print) [TESTING]: Clean up.
28505 2001-10-22 Paul Eggert <eggert@twinsun.com>
28507 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
28508 to avoid a warning if -Wall.
28510 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
28513 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
28514 (per RMS's instructions, this is now the canonical source)
28515 * lgpl/, gpl/: New directories.
28517 2001-10-21 Paul Eggert <eggert@twinsun.com>
28519 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
28521 2001-10-21 Jim Meyering <meyering@lucent.com>
28523 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
28524 this code would end up calling gettext even in packages built
28525 with --disable-nls.
28526 * lib/getopt.c (_): Likewise.
28527 * lib/regex.c (_): Likewise.
28529 2001-10-20 Paul Eggert <eggert@twinsun.com>
28531 * m4/error.m4 (jm_PREREQ_ERROR):
28532 Do not invoke AC_CHECK_FUNCS with strerror_r, as
28533 AC_FUNC_STRERROR_R does that.
28534 Check for strerror declaration.
28536 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
28537 are supposed to have them these days.
28538 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
28539 Merge changes from latest Autoconf CVS.
28540 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
28541 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
28542 POSIX decided to standardize on the int flavor of strerror_r.
28544 2001-10-20 Paul Eggert <eggert@twinsun.com>
28546 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
28547 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
28548 Use strerror_r that is only a macro, even if it is not a function.
28549 (strerror): Check for HAVE_DECL_STRERROR before declaring.
28550 (private_strerror): Use prototypes, not old-style function definition.
28551 (print_errno_message): New function.
28552 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
28553 char*-flavored one.
28554 (error_tail, error, error_at_line): Use it.
28556 2001-10-11 Jim Meyering <meyering@lucent.com>
28558 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
28559 and quote_n (1, ... to avoid clobbering a buffer.
28561 2001-10-05 Jim Meyering <meyering@lucent.com>
28563 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
28565 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
28566 * lib/hash-pjw.h: New file.
28568 2001-09-30 Jim Meyering <meyering@lucent.com>
28570 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
28571 `struct fsstat' has the `f_fstypename' member.
28572 Use that to define FS_TYPE, which is now used to make
28573 the getfsstat link test tighter.
28575 2001-09-30 Jim Meyering <meyering@lucent.com>
28577 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
28578 Include <sys/ucred.h>, for Apple Darwin.
28579 Include sys/mount.h and sys/fs_types.h only if available.
28581 (read_filesystem_list): Use FS_TYPE.
28583 2001-09-29 Paul Eggert <eggert@twinsun.com>
28585 * lib/exclude.c (excluded_filename): 0 -> false, since it's
28588 2001-09-29 Jim Meyering <meyering@lucent.com>
28590 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
28591 [one-argument getmntent function]): Include stdio.h before mntent.h.
28592 SunOS 4.1.x needs it for the declaration of `FILE'.
28593 Patch by Volker Borchert.
28595 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
28596 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
28597 sys/fs_types.h, and make the link-test for getfsstat guard #include
28598 directives with appropriate #if HAVE_*_H tests so that we can
28599 detect getfsstat on Apple Darwin1.3.7 systems.
28600 Reported by Nelson Beebe.
28601 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
28603 2001-09-28 Paul Eggert <eggert@twinsun.com>
28605 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
28606 #defines strtoimax. Also treat the other strto* functions
28609 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28610 Check for strtoul and strtoumax,
28611 as those declarations are made even in the signed case.
28612 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
28613 Likewise, for strtol and strtoimax.
28615 2001-09-28 Paul Eggert <eggert@twinsun.com>
28617 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
28618 #defines strtoimax. Also treat the other strto* functions
28621 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
28622 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
28623 (strtoimax, strtoumax): Do not declare if already defined as a macro.
28625 2001-09-26 Jim Meyering <meyering@lucent.com>
28627 Most macros in unlocked-io.h had the wrong number of arguments.
28628 * lib/gen-uio: New script.
28629 (USE_UNLOCKED_IO): Define to 1 if not already defined.
28630 * lib/unlocked-io.hin: Remove file.
28631 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
28632 rather than trying to embed it here.
28633 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
28634 Reported by Padraig Brady.
28636 2001-09-25 Volker Borchert <bt@teknon.de>
28638 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
28641 2001-09-24 Jim Meyering <meyering@lucent.com>
28643 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
28645 2001-09-23 Jim Meyering <meyering@lucent.com>
28647 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
28648 instead of the mere test for existence of mntent.h. The latter
28649 would get a false-positive on AIX 3.4 systems.
28650 In the outer getmntent if-block, don't die if neither of the getmntent
28651 tests succeeds. Instead, just fall through and continue with the
28654 2001-09-23 Jim Meyering <meyering@lucent.com>
28656 * lib/mountlist.c: Remove useless parentheses in #if directives.
28657 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
28658 the deprecated MOUNTED symbol is no longer defined in mntent.h.
28660 2001-09-22 Jim Meyering <meyering@lucent.com>
28662 * m4/gettext.m4: New file. From gettext.
28663 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
28664 * m4/progtest.m4: Likewise
28665 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
28666 * m4/glibc21.m4: Likewise.
28668 * m4/libintl.m4: Remove. No longer used.
28670 2001-09-22 Jim Meyering <meyering@lucent.com>
28672 * lib/localcharset.c: Update from latest gettext.
28673 * lib/config.charset: Likewise.
28675 2001-09-20 Jim Meyering <meyering@lucent.com>
28677 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
28679 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
28682 2001-09-20 Jim Meyering <meyering@lucent.com>
28684 * lib/xstrtol.c (strtoimax): Guard declaration with
28685 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
28686 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
28687 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
28688 (strtoumax): Likewise, for completeness (it wasn't necessary).
28690 2001-09-17 Paul Eggert <eggert@twinsun.com>
28692 * lib/strtoimax.c (HAVE_LONG_LONG):
28693 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
28694 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
28695 to work around bug in IBM C compiler.
28697 2001-09-17 Jim Meyering <meyering@lucent.com>
28699 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
28700 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
28701 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
28702 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
28703 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
28704 whenever the right hand side need not be expanded by the shell.
28706 2001-09-16 Paul Eggert <eggert@twinsun.com>
28708 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
28709 library. It's not correct, as some older glibcs are buggy.
28710 fnmatch wasn't fixed until glibc 2.2.
28712 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
28713 special shell magic here.
28715 2001-09-16 Jim Meyering <meyering@lucent.com>
28717 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
28718 * m4/jm-macros.m4: Require it.
28720 2001-09-16 Jim Meyering <meyering@lucent.com>
28722 * lib/mkdir.c: New file.
28724 2001-09-15 Jim Meyering <meyering@lucent.com>
28726 * m4/jm-macros.m4: Check for help2man.
28728 2001-09-11 Jim Meyering <meyering@lucent.com>
28730 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
28731 The body, by Paul Eggert, was moved here from configure.in.
28732 * m4/jm-macros.m4: Require UTILS_HOST_OS.
28734 2001-09-04 Paul Eggert <eggert@twinsun.com>
28736 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
28737 (jm_PREREQ): Use it.
28739 2001-09-04 Paul Eggert <eggert@twinsun.com>
28741 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
28742 Use ssize_t, not int, to store result of readlink.
28743 Check for ssize_t overflow as well as size_t overflow,
28744 as POSIX says the result of readlink is implementation-defined
28745 when ssize_t overflows.
28746 Remove unnecessary cast to char*.
28747 Use free+malloc instead of realloc, as the storage doesn't need
28748 to be preserved and it's clearer and can be more efficient that way.
28749 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
28750 * lib/xreadlink.h (xreadlink): Update prototype.
28752 2001-09-04 Paul Eggert <eggert@twinsun.com>
28754 * lib/xgetcwd.c: Revert some of the previous change; intead,
28755 fix the HAVE_GETCWD_NULL code to behave more like the
28756 !HAVE_GETCWD_NULL code used to.
28758 Include "xalloc.h".
28759 (xgetcwd): Do not return NULL when memory is exhausted; instead,
28762 2001-09-03 Paul Eggert <eggert@twinsun.com>
28764 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
28765 sys/param.h, as pathmax.h includes them.
28767 2001-09-03 Paul Eggert <eggert@twinsun.com>
28769 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
28770 (jm_PREREQ_XGETCWD): New macro.
28772 * m4/getcwd.m4: New file.
28774 2001-09-03 Paul Eggert <eggert@twinsun.com>
28776 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
28777 like the HAVE_GETCWD_NULL code.
28778 Include pathmax.h if not HAVE_GETCWD.
28779 Do not include xalloc.h.
28780 (INITIAL_BUFFER_SIZE): New symbol.
28781 Do not use xmalloc / xrealloc, since the caller is responsible for
28782 handling errors. Preserve errno around `free' during failure.
28783 Do not overrun buffer when using getwd.
28785 2001-09-03 Paul Eggert <eggert@twinsun.com>
28787 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
28788 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
28791 2001-09-03 Paul Eggert <eggert@twinsun.com>
28793 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
28794 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
28795 spotted by Jim Meyering.
28797 2001-09-03 Jim Meyering <meyering@lucent.com>
28799 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
28802 2001-09-02 Jim Meyering <meyering@lucent.com>
28804 * lib/error.c: Update from GNU libc.
28806 2001-09-01 Jim Meyering <meyering@lucent.com>
28808 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
28811 2001-09-01 Jim Meyering <meyering@lucent.com>
28813 * lib/xreadlink.c: New file.
28814 * lib/xreadlink.h: New file.
28815 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
28818 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
28819 doesn't conflict with sparc Solaris 7's definition in
28820 /usr/include/sys/int_types.h.
28822 * lib/exclude.c: Use `""', not `<>' to #include non-system header
28824 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
28825 and strncasecmp as r-values. Unixware didn't have declarations.
28827 2001-08-31 Paul Eggert <eggert@twinsun.com>
28829 * lib/xstrtol.h: Add copyright notice.
28830 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
28831 LONGINT_INVALID_SUFFIX_CHAR.
28833 2001-08-31 Paul Eggert <eggert@twinsun.com>
28835 * lib/xstrtol.c (strtoimax): New decl.
28837 2001-08-31 Paul Eggert <eggert@twinsun.com>
28839 * lib/xgetcwd.c: Don't include pathmax.h.
28840 Include stdlib.h and unistd.h if available.
28842 (xmalloc, xstrdup, free): Remove decls.
28843 (xgetcwd): Don't assume sizes fit in unsigned.
28844 Check for overflow when computing sizes.
28845 Simplify reallocation code.
28847 2001-08-31 Paul Eggert <eggert@twinsun.com>
28849 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
28850 a directory's st_size can have an arbitrary value, so the old
28851 usage could waste an arbitrary amount of memory. All uses
28853 * lib/savedir.h: Update prototype.
28855 2001-08-31 Paul Eggert <eggert@twinsun.com>
28857 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
28859 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
28862 Also, make the following further changes to make this file's
28863 configuration more similar to that of strtol.c:
28864 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
28865 (strtoumax, uintmax_t, strtoull, strtol): Remove.
28866 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
28867 (strtoimax): Renamed from strtoumax. All uses of unsigned values
28868 changed to signed values.
28870 And make the following changes as well:
28871 Fix copyright notice, as 1999 was missing.
28872 (verify): New macro.
28873 (strtoimax): Check sizes at compile-time, not run-time.
28874 Prefer strtol to strtoll if both work.
28875 (main): Remove; it was not that useful and was a pain to maintain.
28877 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
28879 2001-08-31 Jim Meyering <meyering@lucent.com>
28881 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
28882 Use an initial, malloc'd, buffer of length 128 rather than
28883 a statically allocated one of length 1024.
28885 2001-08-30 Paul Eggert <eggert@twinsun.com>
28887 Simplify code, partly by assuming autoconf 2.52 semantics.
28889 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
28891 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
28892 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
28894 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
28895 Move AC_REQUIRE to next-to-top level, to avoid confusion.
28896 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
28897 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
28898 jm_AC_HEADER_INTTYPES_H.
28899 * m4/jm-macros.m4 (jm_MACROS): Likewise.
28901 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
28903 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
28904 Quote first arg of AC_DEFUN.
28905 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
28906 since they are needed to parse the include file even if we need
28907 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
28908 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
28909 but with opposite signedness.
28911 2001-08-30 Paul Eggert <eggert@twinsun.com>
28913 Merge 'exclude' changes from tar 1.13.22.
28914 This fixes one or two unlikely storage allocation overflow bugs,
28915 but doesn't change user-visible behavior otherwise.
28917 2001-08-30 Paul Eggert <eggert@twinsun.com>
28919 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
28920 (jm_PREREQ_EXCLUDE): New macro.
28922 2001-08-30 Paul Eggert <eggert@twinsun.com>
28924 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
28927 2001-08-30 Paul Eggert <eggert@twinsun.com>
28929 * lib/hash.c: Remove '2001' from copyright notice.
28931 2001-08-30 Paul Eggert <eggert@twinsun.com>
28933 * lib/full-write.h: New file.
28934 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
28935 * lib/full-write.c: Correct credits, as cccp.c no longer
28936 exists and anyway it was so heavily changed from the old cccp
28937 code as to be unrecognizable. Include full-write.h.
28938 (full_write) Return size_t, with short writes meaning failure.
28939 All callers changed. This fixes a bug with large buffers
28941 * lib/utime.c: Include full-write.h.
28943 2001-08-30 Paul Eggert <eggert@twinsun.com>
28945 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
28946 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
28947 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
28948 Include if available.
28949 (<xalloc.h>): Include
28950 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
28951 (verify): New macro. Use it to verify that EXCLUDE macros do not
28952 collide with FNM macros.
28953 (struct patopts): New struct.
28954 (struct exclude): Use it, as exclude patterns now come with options.
28955 (new_exclude): Support above changes.
28956 (new_exclude, add_exclude_file):
28957 Initial size must now be a power of two to simplify overflow checking.
28958 (free_exclude, fnmatch_no_wildcards): New function.
28959 (excluded_filename): No longer requires options arg, as the options
28960 are determined by add_exclude. Now returns bool, not int.
28961 (excluded_filename, add_exclude):
28962 Add support for the fancy new exclusion options.
28963 (add_exclude, add_exclude_file): Now takes int options arg.
28964 Check for arithmetic overflow when computing sizes.
28965 (add_exclude_file): xrealloc might modify errno, so don't
28966 realloc until after errno might be used.
28968 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
28970 (free_exclude): New decl.
28971 (add_exclude, add_exclude_file): Now takes int options arg.
28972 (excluded_filename): No longer requires options arg, as the options
28973 are determined by add_exclude. Now returns bool, not int.
28975 2001-08-30 Paul Eggert <eggert@twinsun.com>
28977 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
28979 2001-08-27 Jim Meyering <meyering@lucent.com>
28981 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
28983 * lib/version-etc.c (N_): Remove definition.
28984 Revert most of last change.
28985 Instead, simply don't mark the `Copyright...' string for translation.
28986 Based on advice from Paul Eggert.
28988 * lib/strtoxmax.c: Tweak comment.
28990 2001-08-26 Jim Meyering <meyering@lucent.com>
28992 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
28994 * m4/xstrtoimax.m4: New file.
28995 * m4/xstrtoumax.m4: Add comments explaining why we
28996 AC_REPLACE_FUNCS(strtol).
28998 2001-08-26 Jim Meyering <meyering@lucent.com>
29000 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
29001 of copyright with `%s' so translators don't get an untranslated
29003 (COPYRIGHT_YEAR): Define.
29004 (version_etc): Use fprintf rather than fputs.
29005 Suggestion from Ulrich Drepper.
29007 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
29009 * lib/strtoll.c: New file, from GNU libc.
29010 * lib/xstrtoimax.c: New file.
29012 * lib/xstrtol.h: Add xstrtoimax.
29013 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
29014 * lib/strtoimax.c: New file. Likewise, but first define
29017 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
29019 * lib/strtoxmax.c: ... then renamed to this.
29021 2001-08-18 Paul Eggert <eggert@twinsun.com>
29023 * m4/inttypes.m4: Add AC_PREREQ(2.13).
29024 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
29025 (jm_AC_TYPE_INTMAX_T): New macro.
29026 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
29028 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
29030 * m4/longlong.m4: Renamed from ulonglong.m4.
29031 * m4/inttypes.m4: Renamed from inttypes_h.m4.
29032 * m4/uintmax_t.m4: Removed.
29034 2001-08-13 Paul Eggert <eggert@twinsun.com>
29036 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
29037 Port to Solaris 8, where 'sed' requires a space after the 'r'
29038 command, and where sh dislikes "$/". Clean up the spacing a bit.
29039 Redirect output to $tmp just once.
29041 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
29043 * lib/addext.c (<errno.h>): Include.
29044 (errno): Declare if not defined.
29045 (addext): Work correctly when pathconf returns -1 and leaves
29046 errno alone because there is no limit. Also, work even if
29047 pathconf returns a value greater than SIZE_MAX.
29049 2001-08-12 Jim Meyering <meyering@lucent.com>
29051 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
29052 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
29053 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
29054 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
29055 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
29056 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
29057 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
29058 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
29059 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
29060 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
29061 utime.m4, utimes.m4, xstrtoumax.m4:
29062 Quote the first argument in each use of AC_DEFUN.
29064 2001-08-12 Jim Meyering <meyering@lucent.com>
29066 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
29067 Simply `return getcwd (NULL, 0);'.
29068 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
29069 Use 1300 as initial value for length, not PATH_MAX.
29071 * lib/pathmax.h: Clean up cpp syntax.
29073 2001-08-12 Jim Meyering <meyering@lucent.com>
29075 * lib/gettimeofday.c: New file.
29076 * lib/gtod.h: New file.
29077 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
29079 2001-08-05 Jim Meyering <meyering@lucent.com>
29081 * m4/jm-macros.m4: Require autoconf-2.52.
29083 2001-08-04 Jim Meyering <meyering@lucent.com>
29085 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
29086 stmt, to get in sync with glibc.
29088 2001-08-03 Paul Eggert <eggert@twinsun.com>
29090 The following changes are from gettext 0.10.39 as maintained by
29093 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
29094 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
29095 with inverted sense. All uses changed.
29097 * lib/mbswidth.c: Don't include <limits.h>.
29098 Include <stdlib.h> and <string.h> unconditionally.
29099 (iswcntrl, mbsinit, ISCNTRL): New macros.
29100 (mbsnwidth): Use K&R style function declarations.
29101 Don't bother checking for MB_LEN_MAX == 1, since the compiler
29102 can optimize it when MB_CUR_MAX == 1.
29103 The width of control characters is zero, not 1.
29105 2001-08-03 Paul Eggert <eggert@twinsun.com>
29107 The following changes are from gettext 0.10.39 as maintained by
29108 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
29110 * m4/codeset.m4: Upgrade to serial AM1.
29111 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
29112 all uses changed. Quote first arg of AC_DEFUN.
29113 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
29115 * m4/iconv.m4: Upgrade to serial AM2.
29116 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
29117 Add --with-libconv-prefix.
29118 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
29119 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
29120 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
29121 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
29122 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
29124 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
29125 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
29126 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
29127 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
29128 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
29129 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
29130 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29131 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
29132 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
29134 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
29137 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
29138 not the default value.
29140 2001-06-25 Bruno Haible <haible@clisp.cons.org>
29141 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
29142 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
29143 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
29144 Also check for iswcntrl, used for wcwidth fallback.
29145 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
29148 2001-08-03 Jim Meyering <meyering@lucent.com>
29150 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
29151 as it was in the original. Reported by Paul Eggert.
29153 2001-07-16 Jim Meyering <meyering@lucent.com>
29155 * m4/gettimeofday.m4: New file.
29156 Prompted by a report from Bernhard Baehr.
29158 2001-07-15 Jim Meyering <meyering@lucent.com>
29160 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
29161 stuff. Now it's in ../Makefile.cfg.
29163 2001-07-15 Jim Meyering <meyering@lucent.com>
29165 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
29166 (BUILT_SOURCES): Add unlocked-io.h.
29167 (io_functions): Define.
29168 (unlocked-io.h): New rule.
29169 (DISTCLEANFILES): Add unlocked-io.h.
29170 (all-local): Depend on unlocked-io.h, to ensure it is created.
29172 * lib/unlocked-io.hin: New file
29174 * lib/regex.c: Update from glibc.
29176 2001-07-05 Jim Meyering <meyering@lucent.com>
29178 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
29180 (libfetish_a_SOURCES): Put all .h files here instead.
29181 Remove a thus-exposed (better checks in automake) duplicate and
29182 two unnecessary .h files.
29184 2001-07-04 Jim Meyering <meyering@lucent.com>
29186 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
29187 that generates jm-glibc-io.m4 so that it doesn't trigger any make
29190 2001-07-02 Jim Meyering <meyering@lucent.com>
29192 The following changes were prompted by suggestions from Bruno Haible.
29194 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
29196 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
29197 definition of EXTRA_DIST.
29198 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
29199 ensure that the generated file is created/updated whenever the list
29200 of $(unlocked_functions) is changed.
29201 (jm-glibc-io.m4): New rule.
29202 (unlocked-io.h): New rule -- currently unused.
29204 2001-06-24 Jim Meyering <meyering@lucent.com>
29206 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
29207 unmatched right bracket, rather than kludging it with an extra,
29208 falsely-matching quote in a comment. Patch by Akim Demaille.
29210 2001-06-11 Jim Meyering <meyering@lucent.com>
29212 * lib/regex.c: Update from GNU libc.
29214 2001-05-27 Jim Meyering <meyering@lucent.com>
29216 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
29217 Check for ut_type in struct utmp.
29219 2001-05-27 Jim Meyering <meyering@lucent.com>
29221 * lib/readutmp.h (UT_TYPE): Define.
29223 2001-05-24 Jim Meyering <meyering@lucent.com>
29225 * lib/argmatch.c: Include "quote.h".
29226 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
29227 quote function. Reported by Göran Uddeborg.
29229 2001-05-22 Jim Meyering <meyering@lucent.com>
29231 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
29232 now that we use the package-supplied version unconditionally.
29233 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
29235 2001-05-21 Jim Meyering <meyering@lucent.com>
29237 * m4/regex.m4: Change a couple backticks to single quotes to avoid
29238 shell syntax errors.
29240 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
29242 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
29244 2001-05-20 Paul Eggert <eggert@twinsun.com>
29246 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
29247 Don't bother to check library strftime, since
29248 we'll be using our own my_strftime function anyway.
29249 Define my_strftime instead of strftime.
29251 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
29253 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
29254 which is not yet declared.
29256 2001-05-15 Jim Meyering <meyering@lucent.com>
29258 * m4/regex.m4: Use proper quoting so brackets appear in the test
29260 Reported by, and with help from, Bruno Haible.
29262 2001-05-13 Jim Meyering <meyering@lucent.com>
29264 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
29267 2001-05-11 Paul Eggert <eggert@twinsun.com>
29269 dirname code cleanup. base_name now behaves more compatibly
29270 with POSIX basename when given file names that have trailing
29271 slashes, and similarly for dir_name. Add new primitives
29272 base_len and dir_len. Put the directory-name-related decls
29275 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
29276 * lib/backupfile.c (base_name): Likewise.
29277 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
29278 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
29279 * lib/makepath.c (strip_trailing_slashes): Likewise.
29280 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
29281 ISSLASH): Likewise.
29282 * lib/rename.c (strip_trailing_slashes): Likewise.
29283 * lib/same.c (base_name): Likewise.
29284 * lib/stripslash.c (ISSLASH): Likewise.
29286 * lib/addext.c: Include <dirname.h> after size_t is defined.
29287 * lib/backupfile.c: Likewise.
29289 * lib/addext.c (addext): Use base_len to trim redundant
29290 trailing slashes instead of doing it ourselves.
29291 But do not trim the last slash if it is not redundant.
29293 * lib/backupfile.c (find_backup_file_name,
29294 max_backup_version): Use base_len instead of rolling it ourselves.
29295 Handle the case of "" and (on DOS) "C:" correctly.
29297 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
29298 needed. Include <string.h>, <dirname.h>.
29299 (base_name): Allow file names ending in slashes, other than names
29300 that are all slashes. In this case, return the basename followed
29301 by the slashes. This is more general, and can be used in places
29302 where the original base_name purposely had an assertion failure.
29303 (base_len): New function.
29305 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
29306 Do not include <assert.h>; no longer needed.
29308 (memrchr): Remove decl.
29309 (dir_name_r): Remove.
29310 (dir_len): Renamed from dirlen. All callers changed.
29311 Rewrite in terms of base_name, for simplicity and consistency.
29312 (dir_name): Never return NULL. All callers changed.
29313 Do not include <stdlib.h> in test program; no longer needed.
29314 return 0; is fine for test program.
29316 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
29318 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
29320 * lib/path-concat.c (path_concat): Use base_len to compute
29321 base length, not strlen; this means we cannot rely on memcpy
29324 * lib/same.c (STREQ): Remove.
29325 (same_name): Handle the case where the basename ends in trailing '/'.
29327 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
29328 a slash was stripped. Do not strip the last slash after a
29329 file system prefix.
29331 2001-05-11 Paul Eggert <eggert@twinsun.com>
29333 * lib/Makefile.am (libfetish_a_SOURCES):
29334 Add strftime.c, since we now compile it on all hosts.
29336 * lib/strftime.c (my_strftime):
29337 Define to nstrftime if emacs, but only if my_strftime is not defined.
29338 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
29339 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
29340 Add one more extra argument: a nanoseconds value.
29343 (my_strftime function): Add %N format.
29344 (emacs_strftimeu): Renamed from emacs_strftime,
29345 with extra ut argument.
29347 2001-05-09 Paul Eggert <eggert@twinsun.com>
29349 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
29351 2001-04-21 Jim Meyering <meyering@lucent.com>
29353 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
29356 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
29358 * m4/ftruncate.m4: Check for chsize.
29359 Link with ftruncate.o unconditionally if ftruncate is missing.
29360 This was required when cross-compiling to i586-mingw32msvc.
29362 2001-04-08 Jim Meyering <meyering@lucent.com>
29364 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
29365 recomputed; that's necessary when the offset spans a DST transition.
29366 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
29368 2001-04-02 Jim Meyering <meyering@lucent.com>
29370 * lib/regex.h, regex.c: Update from GNU libc.
29372 2001-03-24 Jim Meyering <meyering@lucent.com>
29374 * m4/jm-macros.m4: Require autoconf-2.49d.
29376 2001-03-20 Bruno Haible <haible@clisp.cons.org>
29378 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
29380 2001-03-19 Paul Eggert <eggert@twinsun.com>
29382 * lib/version-etc.c (version_etc_copyright): Update to 2001.
29384 2001-03-17 Jim Meyering <meyering@lucent.com>
29386 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
29387 now that the version in autoconf is equivalent.
29388 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
29390 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
29391 Suggestion from Akim Demaille.
29393 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
29394 (jm_PREREQ_TEMPNAME): New function.
29396 2001-03-16 Paul Eggert <eggert@twinsun.com>
29398 * lib/tempname.c (uint64_t): Define to uintmax_t if
29399 not defined, and if UINT64_MAX is not defined.
29400 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
29401 Reported by John David Anglin.
29403 2001-03-15 Bruno Haible <haible@clisp.cons.org>
29405 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
29406 resolve alias if codeset is empty.
29407 * lib/config.charset (BeOS): Use wildcard syntax.
29409 2001-03-13 Jim Meyering <meyering@lucent.com>
29411 * lib/path-concat.c (path_concat)
29412 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
29413 concatenating e.g., `C:' and `foo'.
29416 2001-03-06 Bruno Haible <haible@clisp.cons.org>
29418 * lib/localcharset.c (locale_charset): Don't use
29419 setlocale(LC_CTYPE,NULL). Don't return NULL.
29420 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
29422 2001-03-06 Bruno Haible <haible@clisp.cons.org>
29424 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
29425 support for DOS/DJGPP.
29427 2001-03-01 Paul Eggert <eggert@twinsun.com>
29429 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
29430 lacks mkstemp. Compile our own tempname.c if we compile our own
29431 mkstemp.c, as mkstemp relies on tempname.
29433 2001-03-01 Jim Meyering <meyering@lucent.com>
29435 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
29436 AH_VERBATIM really does output its argument verbatim.
29438 2001-02-28 Paul Eggert <eggert@twinsun.com>
29440 * lib/Makefile.am (libfetish_a_SOURCES):
29441 Add dup-safer.c, fopen-safer.c.
29442 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
29444 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
29445 * lib/unistd-safer.h: New files.
29447 2001-02-25 Paul Eggert <eggert@twinsun.com>
29449 The mkstemp replacement is taken from glibc 2.2.2, with some
29450 portability fixes for use outside glibc, as follows:
29452 * lib/tempname.c (struct_stat64): New macro.
29453 (direxists, __gen_tempname): Use it.
29454 This avoids a portability problem with Solaris 8.
29456 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
29457 (<stddef.h>, <stdint.h>, <string.h>):
29458 Include only if STDC_HEADERS || _LIBC.
29459 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
29460 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
29461 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
29462 (__set_errno): Define this macro if <errno.h> doesn't.
29463 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
29464 Define these macros if <stdio.h> doesn't.
29465 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
29466 Define these macros if <sys/stat.h>
29467 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
29468 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
29469 __xstat64): Define if not _LIBC.
29470 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
29471 (__gen_tempname): Invoke gettimeofday only if
29472 HAVE_GETTIMEOFDAY || _LIBC;
29473 otherwise, fall back on plain "time".
29474 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
29476 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
29478 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
29480 2001-02-18 Paul Eggert <eggert@twinsun.com>
29482 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
29484 2001-02-17 Paul Eggert <eggert@twinsun.com>
29486 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
29487 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
29488 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
29489 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29491 2001-02-17 Paul Eggert <eggert@twinsun.com>
29493 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
29494 Remove workaround macros for hosts that have mbrtowc but not
29495 mbstate_t, as we now insist on proper declarations for both
29496 before using mbrtowc.
29498 2001-02-17 Jim Meyering <meyering@lucent.com>
29500 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
29501 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
29502 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
29505 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
29506 rather than AC_CACHE_VAL.
29508 2001-02-17 Jim Meyering <meyering@lucent.com>
29510 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
29511 around included file name.
29513 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
29515 * lib/strftime.c: Update from GNU libc (the only changes were to
29518 2001-02-17 Jim Meyering <meyering@lucent.com>
29520 * lib/regex.c: Update from libc.
29522 2001-02-17 Bruno Haible <haible@clisp.cons.org>
29524 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
29527 2001-02-16 Paul Eggert <eggert@twinsun.com>
29529 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
29530 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
29531 Reported by Mark Hounschell via Paul Eggert.
29533 2001-02-07 Jim Meyering <meyering@lucent.com>
29535 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
29537 2001-02-05 Jim Meyering <meyering@lucent.com>
29539 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
29540 it includes the patch required for `large file' support with at least
29541 HP-UX's 10.20 /bin/cc.
29543 2001-02-03 Jim Meyering <meyering@lucent.com>
29545 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
29546 AS_IF, now that it works once again (mysteriously).
29547 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29549 2001-01-30 Jim Meyering <meyering@lucent.com>
29551 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
29552 * m4/chown.m4: Rename conftestchown to conftest.chown.
29553 * m4/rename.m4: s/conftestdir/conftest.d1/ and
29554 s/conftestdir2/conftest.d2/.
29555 * m4/utimes.m4: s/conftestdata/conftest.data/
29556 Inspired by Pavel Roskin's change in autoconf.
29558 2001-01-30 Bruno Haible <haible@clisp.cons.org>
29560 * lib/config.charset: Update for FreeBSD 4.2.
29562 2001-01-27 Jim Meyering <meyering@lucent.com>
29564 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
29566 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
29568 2001-01-26 Jim Meyering <meyering@lucent.com>
29570 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
29571 quotearg.c includes it.
29573 2001-01-26 Jim Meyering <meyering@lucent.com>
29575 * lib/quotearg.c: Include stddef.h.
29576 * lib/quote.c: Include stddef.h.
29577 Reported by Axel Kittenberger.
29579 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
29580 line in double quotes so that it evokes a better diagnostic.
29581 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
29582 Reported by Axel Kittenberger.
29584 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
29586 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
29587 as if it was a `charset'.
29589 2001-01-21 Bruno Haible <haible@clisp.cons.org>
29591 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
29594 2001-01-21 Bruno Haible <haible@clisp.cons.org>
29596 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
29597 to avoid a warning. Add back 'const' to inptr.
29599 2001-01-20 Jim Meyering <meyering@lucent.com>
29601 Be sure that headers are checked before used in code compiled
29602 for the type checks.
29603 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
29604 In place of that, invoke jm_CHECK_ALL_TYPES.
29605 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
29606 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
29607 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
29608 The check for ssize_t was mistakenly run before the test for unistd.h.
29610 The configure-time check for stdbool.h was missing.
29611 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
29612 (jm_PREREQ_HASH): New function.
29614 2001-01-17 Jim Meyering <meyering@lucent.com>
29616 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
29617 for autoconf-2.49c.
29618 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
29620 2001-01-16 Jim Meyering <meyering@lucent.com>
29622 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
29625 2001-01-14 Jim Meyering <meyering@lucent.com>
29627 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
29628 foo and bar. Create conftestdir/ in the script, not in the C code.
29629 Remove directories in the script, not in the C code.
29630 Remove conftestdir{,2} before trying to create the directory.
29631 Make the entire configure script fail if the mkdir fails.
29633 2001-01-14 Jim Meyering <meyering@lucent.com>
29635 * lib/rename.c: New file. From Volker Borchert.
29636 Include stdlib.h, string.h or strings.h, and xalloc.h.
29637 Use strip_trailing_slashes rather than open-coding it.
29639 2001-01-03 Paul Eggert <eggert@twinsun.com>
29641 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
29643 2001-01-03 Jim Meyering <meyering@lucent.com>
29645 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
29646 of local `inptr' to avoid warning with some system declarations of
29649 2001-01-02 Volker Borchert <bt@teknon.de>
29651 * m4/rename.m4: New file.
29652 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
29654 2001-01-01 Jim Meyering <meyering@lucent.com>
29656 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
29657 even on systems with utmpx.h. It's necessary for the declaration of
29658 utmp's ut_user member. Reported by Andreas Jaeger.
29660 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
29661 available. They are required for the declarations of getgrgid and
29663 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
29664 Reported by Andreas Jaeger.
29666 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
29668 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
29669 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
29670 so `make install' also works in VPATH builds.
29672 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
29674 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
29675 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
29676 can be used in subdirectories.
29678 2000-12-29 Paul Eggert <eggert@twinsun.com>
29680 * lib/modechange.c: Do not assume that mode_t uses the
29681 traditional octal encoding. E.g. "chmod 1 FOO" should set
29682 the other-execute bit of FOO even if S_IXOTH != 1.
29684 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
29685 WOTH, XOTH, ALLM): New macros.
29686 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
29687 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
29689 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
29690 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
29692 No need to use uintmax_t; unsigned long is long enough.
29693 Don't bother to get suffix since we don't use it.
29695 2000-12-26 Jim Meyering <meyering@lucent.com>
29697 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
29698 better with autoheader.
29700 2000-12-24 Jim Meyering <meyering@lucent.com>
29702 * lib/hash.c (is_prime): Return explicit boolean values.
29703 (hash_get_first): Return NULL to appease Irix5.6's 89.
29704 Reported by Nelson Beebe.
29706 2000-12-19 Bruno Haible <haible@clisp.cons.org>
29708 * lib/localcharset.c (locale_charset): Add support for Win32.
29710 2000-12-18 Paul Eggert <eggert@twinsun.com>
29712 * lib/physmem.h, lib/physmem.c: New files.
29714 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
29715 (noinst_HEADERS): Add physmem.h.
29717 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
29718 't' for compatibility with Solaris 8 sort.
29720 2000-12-18 Bruno Haible <haible@clisp.cons.org>
29722 * lib/config.charset: Add support for BeOS.
29724 2000-12-17 Jim Meyering <meyering@lucent.com>
29726 * m4/dos.m4 (jm_AC_DOS): New file and macro.
29727 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
29729 2000-12-16 Jim Meyering <meyering@lucent.com>
29731 This bug had a serious impact on chown: `chown N:M FILE' (for integer
29732 N and M) would have treated it like `chown N:N FILE'.
29734 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
29736 2000-12-16 Jim Meyering <meyering@lucent.com>
29738 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
29739 SHELLS_FILE to a file name that's useful on djgpp systems.
29741 (ADDITIONAL_DEFAULT_SHELLS): Define.
29742 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
29743 Based mostly on a patch from Prashant TR.
29745 2000-12-16 Bruno Haible <haible@clisp.cons.org>
29747 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
29748 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
29749 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
29751 2000-12-08 Andreas Schwab <schwab@suse.de>
29753 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
29754 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
29756 2000-12-07 Jim Meyering <meyering@lucent.com>
29758 * lib/stripslash.c (ISSLASH): Define.
29759 (strip_trailing_slashes): Use ISSLASH rather than comparing against
29763 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
29764 (dir_name_r): Declare this function as static.
29765 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
29766 manifest itself on a name containing a mix of slashes and
29768 Make this function work with names starting with a DOS-style
29769 drive letter and colon prefix.
29770 (dir_name): Append `.' if necessary.
29771 Based mostly on patches from Prashant TR and Eli Zaretskii.
29773 * lib/dirname.h (dir_name_r): Remove prototype.
29775 2000-12-06 Paul Eggert <eggert@twinsun.com>
29777 * m4/off_t-format.m4: Remove this file.
29778 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
29780 2000-12-06 Jim Meyering <meyering@lucent.com>
29782 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
29783 replacement strtoull, we may well need the replacement strtoul, too.
29784 Check for declarations of strtoul and strtoull.
29785 Check for strtol. Mainly as a cue to cause automake to include
29786 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
29787 Check for limits.h -- strtol.c needs it.
29789 2000-12-05 Jim Meyering <meyering@lucent.com>
29791 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
29793 2000-12-04 Jim Meyering <meyering@lucent.com>
29795 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
29796 Also include memory.h, stdlib.h, unistd.h if appropriate.
29797 Reported by Andreas Jaeger (conflicting declaration of malloc).
29799 2000-12-02 Jim Meyering <meyering@lucent.com>
29801 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
29802 * m4/jm-macros.m4 (jm_MACROS): require it.
29804 2000-12-02 Jim Meyering <meyering@lucent.com>
29806 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
29808 2000-12-01 Paul Eggert <eggert@twinsun.com>
29810 * lib/memrchr.c: Include <config.h> before any system include file.
29812 2000-11-30 Jim Meyering <meyering@lucent.com>
29814 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
29816 2000-11-30 Jim Meyering <meyering@lucent.com>
29818 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
29820 2000-11-29 Paul Eggert <eggert@twinsun.com>
29822 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
29824 2000-11-26 Jim Meyering <meyering@lucent.com>
29826 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
29828 2000-11-22 Paul Eggert <eggert@twinsun.com>
29830 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
29831 size of (size_t) -1; it's not portable.
29833 2000-11-17 Jim Meyering <meyering@lucent.com>
29835 * lib/strstr.c: Update from GNU libc.
29837 2000-11-17 Akim Demaille <akim@epita.fr>
29839 * lib/obstack.h: Formatting changes.
29840 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
29841 prevent type checking.
29842 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
29843 cast the value to (void *): assigning a `foo *' to a `void *'
29845 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
29847 2000-11-16 Jim Meyering <meyering@lucent.com>
29849 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
29851 2000-11-11 Jim Meyering <meyering@lucent.com>
29853 * lib/error.c: Add a couple #includes, merging from GNU libc version.
29855 2000-11-10 Jim Meyering <meyering@lucent.com>
29857 * lib/obstack.h: Update from GNU libc.
29858 * lib/obstack.c: Likewise.
29860 2000-11-08 Bruno Haible <haible@clisp.cons.org>
29862 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
29864 2000-11-06 Paul Eggert <eggert@twinsun.com>
29866 * lib/getusershell.c (setusershell): Use rewind rather than
29867 fseek/fseeko, to avoid configuration hassles with fseeko.
29868 Don't bother opening SHELLS_FILE if shellstream is NULL;
29869 it's not necessary.
29871 2000-11-05 Jim Meyering <meyering@lucent.com>
29873 * lib/makepath.h (make_dir): Declare.
29874 * lib/makepath.c (make_dir): Remove `static' attribute.
29877 2000-11-04 Jim Meyering <meyering@lucent.com>
29879 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
29881 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
29883 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
29884 last one in a bucket, advance to the next bucket.
29886 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
29888 * lib/fnmatch.c: Do not comment out all the code if we are using
29889 the GNU C library, because in some cases we are replacing buggy
29890 code in the GNU C library itself.
29892 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
29894 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
29895 (regex_compile): Catch bogus \(\1\).
29897 2000-10-30 Paul Eggert <eggert@twinsun.com>
29899 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
29900 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
29901 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
29903 2000-10-30 Paul Eggert <eggert@twinsun.com>
29905 * lib/error.h, getline.h, modechange.h:
29906 Remove "2000" from Copyright line, as the file hasn't been
29907 changed this year other than in the copyright notice.
29909 * lib/xalloc.h: Add "2000" to Copyright line, as this file
29910 was changed this year.
29912 2000-10-29 Jim Meyering <meyering@lucent.com>
29914 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
29916 * m4/ls-mntd-fs.m4: Likewise
29918 2000-10-29 Jim Meyering <meyering@lucent.com>
29920 * lib/xstat.in: Fix grammar in comment.
29922 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
29924 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
29925 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
29926 doesn't define __restrict_arr.
29928 2000-10-28 Jim Meyering <meyering@lucent.com>
29930 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
29931 (jm_PREREQ_MEMCHR): New function.
29933 2000-10-28 Jim Meyering <meyering@lucent.com>
29935 * lib/memchr.c: Update from libc.
29936 Adjust for portability:
29937 [HAVE_STDLIB_H]: Include stdlib.h.
29938 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
29939 Undef __memchr, too.
29940 [!weak_alias]: Define __memchr to memchr.
29942 * lib/regex.c: Update from libc.
29943 * lib/regex.h: Likewise.
29944 * lib/getopt1.c: Likewise.
29945 * lib/memcmp.c: Likewise.
29947 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
29948 Avoid using fseek, when possible -- it's broken by design.
29949 Patch by Ulrich Drepper.
29951 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
29953 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
29954 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
29955 Giving in to popular pressure to shut up the compiler with casts.
29957 2000-10-26 Jim Meyering <meyering@lucent.com>
29959 * lib/strftime.c: Update from libc.
29961 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
29963 * regex.c: More `unsigned char' -> `re_char' changes.
29964 Also change several `int' into `re_wchar_t'.
29965 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
29966 (PUSH_FAILURE_POINTER): Don't cast any more.
29967 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
29968 We want GCC to complain, since this piece of code makes
29969 re_match non-reentrant, which *should* be fixed.
29970 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
29971 (EXTEND_BUFFER): Use RETALLOC.
29972 (SET_LIST_BIT): Don't cast.
29973 (re_wchar_t): New type.
29974 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
29975 that those two functions will always properly return.
29976 (IMMEDIATE_QUIT_CHECK): Cast to void.
29977 (analyse_first): Use recursion rather than an explicit stack.
29978 (re_compile_fastmap): Can't fail anymore.
29979 (re_search_2): Don't check re_compile_fastmap for failure.
29980 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
29981 Now also sets the new value (passed in a new argument).
29982 (re_match_2_internal): Use it.
29983 Also, use a new var `reg' of type size_t when looping through regs
29984 rather than reuse the inappropriate `mcnt'.
29986 2000-10-25 Jim Meyering <meyering@lucent.com>
29988 * lib/obstack.c: Update from libc.
29990 2000-10-24 Kenichi Handa <handa@etl.go.jp>
29992 * regex.c (regex_compile): Change the way of handling a range from
29993 a char less than 256 to a char not less than 256.
29995 2000-10-24 Andrew Innes <andrewi@gnu.org>
29997 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
29999 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
30000 so that re_search functions only quit when callers expect them to.
30002 2000-10-23 Jim Meyering <meyering@lucent.com>
30004 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
30005 wrong. That set_locale call must not have any side effects.
30008 2000-10-22 Jim Meyering <meyering@lucent.com>
30010 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
30011 [CYCLIC]: Remove now-unused definition.
30013 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
30014 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
30015 Suggestion from Ulrich Drepper.
30017 2000-10-21 Jim Meyering <meyering@lucent.com>
30019 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
30020 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
30021 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
30023 2000-10-21 Jim Meyering <meyering@lucent.com>
30025 * lib/dirname.c (memrchr): Declare if necessary.
30026 (dir_name): Remove the restriction that there be no
30027 trailing slashes. Now, this code skips past them, effectively
30029 [TEST_DIRNAME] (main): New unit tests.
30031 * lib/memrchr.c: New file from GNU libc.
30032 Undef __memrchr, too.
30033 [!weak_alias]: Define __memrchr to memrchr.
30034 Guard weak_alias use with `#ifdef weak_alias'.
30036 2000-10-21 Jim Meyering <meyering@lucent.com>
30038 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
30039 (dir_name): Use dir_name_r.
30040 * lib/dirname.h (dir_name_r): Declare it.
30042 2000-10-17 Jim Meyering <meyering@lucent.com>
30044 * lib/quote.h (PARAMS): Define and use.
30045 Reported by Akim Demaille.
30047 * lib/getopt.c: Update from libc.
30049 2000-10-16 Jim Meyering <meyering@lucent.com>
30051 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
30055 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
30057 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
30059 2000-09-25 Jim Meyering <meyering@lucent.com>
30061 * lib/md5.h (rol): Define (from GnuPG).
30063 * lib/sha.c: Give credit (GnuPG) where due.
30064 (M): Use rol rather than open-coding it.
30065 Add a FIXME comment.
30067 2000-09-21 Jim Meyering <meyering@lucent.com>
30069 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
30070 Reported by Michael Stone.
30072 2000-09-20 Jim Meyering <meyering@lucent.com>
30074 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
30075 (noinst_HEADERS): Add sha.h.
30076 Based on code from Scott G. Miller and from GnuPG.
30078 2000-09-18 Jim Meyering <meyering@lucent.com>
30080 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
30081 LIBS. Otherwise, everyone ends up linking with -lelf for some
30083 Reported by Mike Stone.
30085 2000-09-15 Jim Meyering <meyering@lucent.com>
30087 * lib/regex.c: Update from libc.
30089 2000-09-10 Jim Meyering <meyering@lucent.com>
30091 * lib/getopt.c (_getopt_internal): Update from glibc.
30093 2000-09-09 Jim Meyering <meyering@lucent.com>
30095 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
30096 think it should be used as a general replacement for isascii.
30097 * lib/fnmatch.c: Likewise.
30098 * lib/mbswidth.c: Likewise
30099 * lib/regex.c: Likewise.
30102 * lib/userspec.c: Include sys/param.h and limits.h.
30104 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
30105 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
30106 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
30107 UID, GID. Check range.
30109 2000-09-06 Jim Meyering <meyering@lucent.com>
30111 * lib/getopt.c (_getopt_internal): Update from glibc.
30113 2000-08-30 Jim Meyering <meyering@lucent.com>
30115 * lib/strftime.c: Merge in changes from GNU libc.
30117 2000-08-26 Jim Meyering <meyering@lucent.com>
30119 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
30120 * m4/fpending.m4: New file.
30122 2000-08-26 Jim Meyering <meyering@lucent.com>
30124 * lib/closeout.c: Include "__fpending.h".
30125 (close_stdout_status): Return right away if there's nothing to flush.
30127 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
30128 * lib/__fpending.c: New file.
30129 * lib/__fpending.h: New file.
30131 2000-08-20 Jim Meyering <meyering@lucent.com>
30133 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
30134 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
30135 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
30137 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
30139 Improve fileutils installation on systems where running
30140 programs (like install) can't be unlinked.
30141 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
30142 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
30144 2000-08-07 Paul Eggert <eggert@twinsun.com>
30146 Standardize on "memory exhausted" instead of "Memory exhausted"
30147 or "virtual memory exhausted".
30148 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
30149 "virtual memory exhausted".
30150 * lib/same.c (same_name): Invoke xalloc_die instead of printing
30152 * lib/userspec.c (parse_user_spec): Likewise.
30153 * lib/bumpalloc.h: comment fix
30154 * lib/same.c, userspec.c: Include xalloc.h.
30156 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
30157 not char *const and pointing to a constant array.
30158 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
30159 (xrealloc): Comment fix.
30161 * lib/userspec.c (parse_user_spec):
30162 Don't translate a message until just before returning,
30163 to avoid unnecessary translation.
30165 2000-08-07 Jim Meyering <meyering@lucent.com>
30167 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
30168 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
30169 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
30170 getgroups.c, gethostname.c, getopt.h, group-member.c,
30171 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
30172 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
30173 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
30174 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
30175 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
30176 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
30177 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
30178 yesno.c: Back out Copyright date changes for each file with no change
30179 this year. This eases coordination with other programs using the same
30180 source code modules. From Paul Eggert.
30182 2000-08-06 Paul Eggert <eggert@twinsun.com>
30184 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
30185 not char, for compatibility with glibc 2.1.3 strftime.c.
30187 2000-08-03 Greg McGary <greg@mcgary.org>
30189 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
30190 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
30191 (EXTEND_BUFFER): Use them.
30193 2000-08-01 Jim Meyering <meyering@lucent.com>
30195 * lib/dirname.c (ISSLASH): Define.
30196 (BACKSLASH_IS_PATH_SEPARATOR): Define.
30197 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
30198 both `\' and `/' may be use as path separators.
30199 Based on a patch from Prashant TR.
30201 2000-07-31 Paul Eggert <eggert@twinsun.com>
30203 * lib/quotearg.c (quotearg_n_options): Don't make the initial
30204 slot vector a constant, since it might get modified.
30206 2000-07-31 Jim Meyering <meyering@lucent.com>
30208 * lib/xmalloc.c: Use `virtual memory exhausted', not
30209 `Memory exhausted'.
30210 * lib/obstack.c (print_and_abort): Likewise.
30212 2000-07-30 Paul Eggert <eggert@twinsun.com>
30214 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
30215 buffer, so that the caller can always quote one small
30216 component of a "memory exhausted" message in slot 0.
30217 From a suggestion by Jim Meyering.
30219 2000-07-30 Jim Meyering <meyering@lucent.com>
30221 * lib/makepath.c (make_path): Quote the other instance, too.
30223 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
30224 (STATIC_BUF_SIZE): Define.
30225 (quotearg_n_options): Use only statically allocated storage when
30226 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
30227 than STATIC_BUF_SIZE.
30229 2000-07-29 Jim Meyering <meyering@lucent.com>
30231 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
30232 * lib/dirname.c (dir_name): Likewise.
30234 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
30237 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
30238 (dir_name): Assert that there are no trailing slashes.
30240 2000-07-29 Bruno Haible <haible@clisp.cons.org>
30242 * lib/mbswidth.h (mbswidth): Add a flags argument.
30243 (mbswidth): New declaration.
30244 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
30245 * lib/mbswidth.c (mbswidth): Add a flags argument.
30246 (mbsnwidth): New function.
30248 2000-07-24 Jim Meyering <meyering@lucent.com>
30250 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
30252 2000-07-23 Paul Eggert <eggert@twinsun.com>
30254 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
30256 2000-07-23 Paul Eggert <eggert@twinsun.com>
30258 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
30259 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
30260 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
30261 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
30262 invoke multibyte primitives.
30264 2000-07-23 Paul Eggert <eggert@twinsun.com>
30267 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
30268 so that mbstate_t is always defined.
30270 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
30271 be 1 in at least one GCC installation, and this configuration
30272 error is likely to be common. Ignoring MB_LEN_MAX hurts
30273 performance on hosts that have mbrtowc but have only unibyte
30274 locales, but I assume these hosts are rare.
30276 2000-07-23 Paul Eggert <eggert@twinsun.com>
30278 * lib/mbswidth.c (_XOPEN_SOURCE):
30279 Don't define; this causes problems on Solaris 7.
30280 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
30282 2000-07-23 Jim Meyering <meyering@lucent.com>
30284 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
30285 too: getgrgid, getpwuid, getuid.
30287 2000-07-23 Jim Meyering <meyering@lucent.com>
30289 * lib/basename.c (base_name): Add an assertion.
30291 2000-07-23 Bruno Haible <haible@clisp.cons.org>
30293 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
30294 shadow its mbsinit function.
30296 2000-07-17 Bruno Haible <haible@clisp.cons.org>
30298 * lib/mbswidth.h: New file.
30299 * lib/mbswidth.c: New file.
30300 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
30301 (noinst_HEADERS): Add mbswidth.h.
30303 2000-07-17 Bruno Haible <haible@clisp.cons.org>
30305 * lib/config.charset: Add support for FreeBSD. Improve support for
30308 2000-07-16 Bruno Haible <haible@clisp.cons.org>
30310 * m4/mbswidth.m4: New file.
30311 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
30313 2000-07-15 Jim Meyering <meyering@lucent.com>
30315 * lib/makepath.c: Include quote.h.
30316 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
30317 corresponding argument in a `quote (...)' call.
30318 Give better diagnostics.
30320 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
30321 (noinst_HEADERS): Add quote.h.
30323 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
30324 from tar's src/misc.c.
30325 * lib/quote.h: New file. Prototypes for same.
30327 2000-07-14 Paul Eggert <eggert@twinsun.com>
30329 From a suggestion by Bruno Haible.
30330 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
30331 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
30332 to decide whether to define the BeOS workaround macro;
30333 this adjusts to the change to AC_MBSTATE_T.
30335 2000-07-14 Jim Meyering <meyering@lucent.com>
30337 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
30338 jm_AC_TYPE_UINTMAX_T.
30340 2000-07-13 Paul Eggert <eggert@twinsun.com>
30342 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
30344 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
30345 quotearg_buffer_restyled): Add support for
30346 clocale_quoting_style. Undo previous change to
30347 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
30348 and "{RIGHT QUOTATION MARK}" msgids.
30350 2000-07-10 Paul Eggert <eggert@twinsun.com>
30352 From a suggestion by Bruno Haible.
30353 * m4/mbstate_t.m4 (AC_MBSTATE_T):
30354 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
30355 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
30356 and mbstate_t, to a single-part test that simply defines mbstate_t.
30357 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
30358 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
30360 2000-07-10 Jim Meyering <meyering@lucent.com>
30362 * m4/strerror_r.m4: Mirror the correction made in autoconf.
30364 * m4/gnu-source.m4: Output to confdefs.h directly.
30365 Suggestion from Akim Demaille.
30367 2000-07-09 Paul Eggert <eggert@twinsun.com>
30369 The old behavior of quoting `like this' doesn't look good with
30370 newer, ISO-style fonts. See:
30371 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
30373 Instead, quote "like this" by default. Let the translator
30374 tailor the locale-specific quoting behavior by providing
30375 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
30377 * lib/quotearg.c (N_): New macro.
30378 (gettext_default): New function.
30379 (quotearg_buffer_restyled): Use
30380 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
30381 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
30383 2000-07-09 Jim Meyering <meyering@lucent.com>
30385 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
30386 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
30388 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
30389 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
30391 2000-07-09 Jim Meyering <meyering@lucent.com>
30393 * lib/Most files: Update copyright dates to include 2000.
30395 2000-07-08 Jim Meyering <meyering@lucent.com>
30397 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
30399 (xgethostname): Remove now-unnecessary #ifdef.
30400 Move declaration of `err' into loop where it's used.
30402 2000-07-05 Paul Eggert <eggert@twinsun.com>
30403 and Bruno Haible <haible@clisp.cons.org>
30405 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
30406 only if the test for an object-type mbstate_t fails. This
30407 prevents us from mistakenly reporting that mbstate_t is a
30408 system object type after we "#define mbstate_t int" to work
30411 2000-07-05 Paul Eggert <eggert@twinsun.com>
30412 and Bruno Haible <haible@clisp.cons.org>
30414 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
30416 2000-07-05 Bruno Haible <haible@clisp.cons.org>
30418 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
30420 Include <ctype.h> for use of isalpha.
30422 2000-07-05 Bruno Haible <haible@clisp.cons.org>
30424 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
30425 by allocating a larger buffer. Test the gethostname return value for
30426 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
30427 returns an error and ENAMETOOLONG isn't defined.
30429 2000-07-05 Bruno Haible <haible@clisp.cons.org>
30431 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
30434 2000-07-04 Jim Meyering <meyering@lucent.com>
30436 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
30437 of the deprecated AC_CHECKING.
30439 2000-07-04 Jim Meyering <meyering@lucent.com>
30441 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
30442 Reported by Bruno Haible.
30444 2000-07-04 Jim Meyering <meyering@lucent.com>
30446 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
30447 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
30450 2000-07-03 Paul Eggert <eggert@twinsun.com>
30452 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
30453 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
30455 2000-07-03 Paul Eggert <eggert@twinsun.com>
30456 and Bruno Haible <haible@clisp.cons.org>
30458 * lib/quotearg.c (mbrtowc):
30459 Assign to *pwc, and return 1 only if result is nonzero.
30460 (iswprint): Use ISPRINT when substituting our own mbrtowc.
30462 2000-07-03 Jim Meyering <meyering@lucent.com>
30464 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
30466 2000-07-03 Jim Meyering <meyering@lucent.com>
30468 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
30469 This is necessary to get a definition of e.g., UTMP_FILE on
30473 2000-07-02 Jim Meyering <meyering@lucent.com>
30475 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
30477 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
30478 AC_LIBOBJ(function_name).
30479 * m4/chown.m4: Likewise.
30480 * m4/fnmatch.m4: Likewise.
30481 * m4/ftruncate.m4: Likewise.
30482 * m4/getgroups.m4: Likewise.
30483 * m4/getline.m4: Likewise.
30484 * m4/group-member.m4: Likewise.
30485 * m4/jm-macros.m4: Likewise.
30486 * m4/lstat.m4: Likewise.
30487 * m4/malloc.m4: Likewise.
30488 * m4/memcmp.m4: Likewise.
30489 * m4/nanosleep.m4: Likewise.
30490 * m4/putenv.m4: Likewise.
30491 * m4/realloc.m4: Likewise.
30492 * m4/regex.m4: Likewise.
30493 * m4/stat.m4: Likewise.
30494 * m4/strftime.m4: Likewise.
30496 2000-07-02 Jim Meyering <meyering@lucent.com>
30498 * lib/quotearg.c (mbstate_t): Don't define here.
30500 2000-07-02 Jim Meyering <meyering@lucent.com>
30502 * lib/nanosleep.c (SIGCONT): Define if not already defined.
30504 2000-07-01 Jim Meyering <meyering@lucent.com>
30506 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
30508 2000-07-01 Jim Meyering <meyering@lucent.com>
30510 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
30513 2000-07-01 Bruno Haible <haible@clisp.cons.org>
30515 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
30516 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
30518 2000-07-01 Bruno Haible <haible@clisp.cons.org>
30520 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
30521 per change in ../m4/ls-mntd-fs.m4.
30522 (read_filesystem_list): Ignore symbolic links.
30524 2000-06-29 Jim Meyering <meyering@lucent.com>
30526 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
30527 for declaration of strcmp.
30529 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
30531 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
30532 Avoid warning by casting result to `char *' to remove `const'.
30534 2000-06-28 Jim Meyering <meyering@lucent.com>
30536 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
30537 included by quotearg.c, for which we perform this test. From
30540 2000-06-27 Bruno Haible <haible@clisp.cons.org>
30542 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
30543 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
30544 <utmpx.h> exists, put readutmp.o into LIBOBJS.
30546 2000-06-27 Bruno Haible <haible@clisp.cons.org>
30548 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
30550 2000-06-26 Paul Eggert <eggert@twinsun.com>
30552 savedir now sets errno on failure and invokes xmalloc to get memory.
30553 Fix a couple of other minor bugs while we're at it.
30555 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
30556 (NAMLEN): Remove macro.
30557 (malloc, realloc): Remove decls.
30558 (stpcpy): Likewise.
30559 ("xalloc.h"): Include.
30560 (NAME_SIZE_DEFAULT): New macro.
30561 (savedir): Use xmalloc / xrealloc to allocate memory.
30562 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
30563 Skip "" directory entries.
30564 Use strlen to calculate directory entry length, since the old method
30565 is rarely used these days and isn't worth supporting.
30566 Don't use a pointer after freeing it.
30567 Check for integer overflow when calculating allocation size.
30568 Use memcpy to copy entries, instead of stpcpy.
30569 Set errno properly when returning NULL.
30570 Check for readdir error.
30572 2000-06-26 Jim Meyering <meyering@lucent.com>
30574 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
30576 2000-06-25 Jim Meyering <meyering@lucent.com>
30578 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
30579 Linux header bug when _XOPEN_SOURCE is defined to 500.
30581 2000-06-25 Bruno Haible <haible@clisp.cons.org>
30583 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
30586 2000-06-25 Bruno Haible <haible@clisp.cons.org>
30588 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
30590 Don't include <stdlib.h>. Don't declare malloc, realloc.
30592 2000-06-24 Jim Meyering <meyering@lucent.com>
30594 * m4/strerror_r.m4: Revive this file -- to try out an experimental
30595 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
30596 for which strerror does return char*, but which lacks a conveniently
30597 accessible declaration of the function. If the compile-test says
30598 strerror_r doesn't work, then resort to a `run'-test that works on
30599 BeOS and segfaults on DEC Unix.
30601 2000-06-24 Jim Meyering <meyering@lucent.com>
30603 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
30605 2000-06-23 Paul Eggert <eggert@twinsun.com>
30607 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
30608 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
30610 2000-06-23 Paul Eggert <eggert@twinsun.com>
30612 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
30613 (mbrtowc, mbstate_t): Define substitutes if
30614 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
30615 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
30616 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
30618 2000-06-23 Jim Meyering <meyering@lucent.com>
30620 * m4/afs.m4: Add missing AC_MSG_RESULT.
30621 Reported by Bruno Haible.
30623 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
30624 Suggestion from Bruno Haible.
30626 2000-06-23 Jim Meyering <meyering@lucent.com>
30628 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
30630 2000-06-21 Jim Meyering <meyering@lucent.com>
30632 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
30634 2000-06-21 Jim Meyering <meyering@lucent.com>
30636 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
30637 (noinst_HEADERS): Add getstr.h.
30639 * lib/getline.c (getstr): Move into a separate file.
30640 * lib/getstr.c (getstr): New file, extracted from getline.c, with
30641 the following changes: new parameter, delim2; both delim[12]
30642 parameters have type `int', not `char'. The latter would lose
30643 with 8-bit delimiters.
30644 * lib/getstr.h: New file.
30646 2000-06-21 Bruno Haible <haible@clisp.cons.org>
30648 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
30649 than 1024, return a memory chunk of least possible size, instead
30650 of size PATH_MAX + 2. In the loop, increment the size proportionally.
30651 Use free/xmalloc instead of xrealloc to avoid copying for very long
30654 2000-06-21 Bruno Haible <haible@clisp.cons.org>
30656 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
30659 2000-06-21 Bruno Haible <haible@clisp.cons.org>
30661 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
30662 address, not strdup. Include <stdlib.h> and don't declare free().
30664 2000-06-19 Jim Meyering <meyering@lucent.com>
30666 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
30668 2000-06-18 Jim Meyering <meyering@lucent.com>
30670 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
30672 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
30673 `checking whether...' message to be consistent with that of the
30676 2000-06-18 Jim Meyering <meyering@lucent.com>
30678 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
30679 Besides, these days every porting target provides a mkdir function.
30681 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
30682 needed. (this snippet comes from src/system.h).
30684 2000-06-16 Bruno Haible <haible@clisp.cons.org>
30686 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
30688 2000-06-15 Paul Eggert <eggert@twinsun.com>
30690 * lib/human.c (adjust_value): New function.
30691 (human_readable_inexact): Apply rounding style even when
30692 printing approximate values.
30694 2000-06-14 Paul Eggert <eggert@twinsun.com>
30696 * lib/human.c (human_readable_inexact): Allow an input block
30697 size that is not a multiple of the output block size, and vice versa.
30698 Reported by Piergiorgio Sartor.
30700 2000-06-14 Paul Eggert <eggert@twinsun.com>
30702 * lib/getdate.y (get_date): Apply relative times after time
30703 zone indicator, not before. Reported by Todd A. Jacobs.
30705 2000-06-13 Jim Meyering <meyering@lucent.com>
30707 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
30709 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
30711 2000-06-12 Paul Eggert <eggert@twinsun.com>
30713 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
30715 2000-06-12 Jim Meyering <meyering@lucent.com>
30717 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
30718 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
30720 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
30721 the optional argument, `lib'.
30723 2000-06-08 Jim Meyering <meyering@lucent.com>
30725 * m4/largefile.m4: Remove file (now that it's part of autoconf).
30727 2000-06-04 Paul Eggert <eggert@twinsun.com>
30729 Rewrite largefile configuration so that we don't need to run
30730 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
30731 AC_CANONICAL_HOST in configure.in -- jmm]
30733 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
30734 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
30735 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
30736 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
30737 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
30739 Instead of inspecting the output of getconf, try to compile the
30740 test program without and with the macro definition.
30741 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
30742 for getconf. Instead, check for the needed flags by compiling
30745 2000-06-04 Paul Eggert <eggert@twinsun.com>
30747 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
30749 2000-06-04 Jim Meyering <meyering@lucent.com>
30751 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
30752 SunOS 4.1.4 for which gid_t is an unsigned type.
30754 2000-06-03 Jim Meyering <meyering@lucent.com>
30756 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
30757 now that autoconf requires that.
30759 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
30760 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
30761 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
30763 2000-06-03 Jim Meyering <meyering@lucent.com>
30765 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
30767 2000-06-03 Bruno Haible <haible@clisp.cons.org>
30769 * m4/glibc21.m4: New file.
30770 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
30772 2000-06-03 Bruno Haible <haible@clisp.cons.org>
30774 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
30775 newer, don't install charset.alias.
30776 * lib/config.charset: Change the Linux/glibc rules so they become empty
30777 on glibc-2.1 or newer.
30779 2000-06-02 Jim Meyering <meyering@lucent.com>
30781 * lib/mountlist.c: Back out last change. Instead, do this...
30782 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
30783 me_dummy member using the same `ignore'-testing code.
30784 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
30788 2000-05-29 Jim Meyering <meyering@lucent.com>
30790 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
30791 mounts with the `ignore' attribute. Based on a patch from
30794 2000-05-28 Jim Meyering <meyering@lucent.com>
30796 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
30797 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30798 * m4/stat.m4: Likewise.
30799 * m4/lstat.m4: Likewise.
30800 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
30802 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
30803 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
30805 2000-05-26 Jim Meyering <meyering@lucent.com>
30807 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
30809 2000-05-24 Jim Meyering <meyering@lucent.com>
30811 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
30812 autoconf requires that.
30813 * m4/lib-check.m4: Likewise.
30814 * m4/jm-macros.m4: Likewise.
30815 * m4/strftime.m4: Likewise.
30817 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
30818 AC_CHECK_DECLS, now that autoconf requires that.
30820 2000-05-22 Jim Meyering <meyering@lucent.com>
30822 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30823 * m4/lstat.m4: Likewise.
30825 2000-05-22 Jim Meyering <meyering@lucent.com>
30827 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
30829 2000-05-20 Jim Meyering <meyering@lucent.com>
30831 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
30832 (jm_PREREQ): Use it.
30834 2000-05-18 Jim Meyering <meyering@lucent.com>
30836 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
30837 back, too, since it may have been modified by allocate_entry.
30838 (hash_delete): Rewrite to use neither the assignment operator
30839 nor the comma operator in an if-expression.
30841 2000-05-15 Paul Eggert <eggert@twinsun.com>
30844 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
30845 Remove; no longer needed.
30846 "quotearg.h": Add include.
30847 (file_name): Do not bother to explicitly initialize to NULL; it's less
30848 efficient on some hosts.
30849 (close_stdout_status): Remove test as to whether stdout was already
30850 closed; it breaks for the case "echo x | sort >&-".
30851 Quote file name colons.
30852 Do not assume that _("write error") lacks format strings.
30854 2000-05-15 Jim Meyering <meyering@lucent.com>
30856 * lib/version-etc.c (version_etc_copyright): Update the copyright
30857 string used in all --version output.
30859 2000-05-14 Jim Meyering <meyering@lucent.com>
30861 * lib/closeout.c (close_stdout_set_file_name): New function.
30862 (close_stdout_status): Use new file-scoped global.
30863 Return right away if fstat says the stdout file descriptor is invalid.
30864 * lib/closeout.h (close_stdout_set_file_name): Declare.
30866 2000-05-10 Jim Meyering <meyering@lucent.com>
30868 * lib/closeout.c [default_exit_status]: New file-scoped variable.
30869 (close_stdout_set_status): New function.
30870 * lib/closeout.h (close_stdout_set_status): Declare.
30872 2000-05-09 Jim Meyering <meyering@lucent.com>
30874 * m4/gettext.m4: Rename this...
30875 * m4/libintl.m4: ...to this.
30877 2000-05-08 Jim Meyering <meyering@lucent.com>
30879 * lib/long-options.c: Don't include closeout.h.
30880 (parse_long_options): Don't call close_stdout for --version.
30882 2000-05-06 Paul Eggert <eggert@twinsun.com>
30884 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
30885 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
30886 2.1.3 bug. This avoids a clash when files like regex.c define
30889 2000-05-06 Jim Meyering <meyering@lucent.com>
30891 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
30892 (AC_REPLACE_FUNCS): Add strnlen.
30894 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
30895 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
30897 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
30898 AC_SEARCH_LIBS call for nanosleep.
30899 (LIB_NANOSLEEP): Set and AC_SUBST.
30901 2000-05-06 Jim Meyering <meyering@lucent.com>
30903 * lib/strnlen.c: Undefine __strnlen and strnlen.
30904 [!weak_alias]: Define __strnlen to strnlen.
30906 * lib/atexit.c: New file, from libiberty.
30908 2000-05-06 Jim Meyering <meyering@lucent.com>
30910 * lib/closeout.c (close_stdout_status): Also check for errors on the
30913 2000-05-05 Jim Meyering <meyering@lucent.com>
30915 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
30916 AC_SEARCH_LIBS call for clock_gettime.
30917 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
30919 * m4/search-libs.m4: Update from autoconf.
30921 su doesn't work on Solaris 2.6.
30922 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
30923 <shadow.h>. Reported by Dragos Harabor.
30925 2000-05-05 Bruno Haible <haible@clisp.cons.org>
30927 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
30928 memcpy instead of xmalloc, xrealloc, path_concat.
30929 (locale_charset): Treat empty environment variables as absent.
30930 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
30932 2000-05-04 Jim Meyering <meyering@lucent.com>
30934 * lib/getopt.c: Update from glibc.
30935 * lib/obstack.c: Likewise.
30936 * lib/obstack.h: Likewise.
30937 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
30940 * lib/regex.h: Likewise.
30941 * lib/strndup.c: Likewise.
30942 * lib/strnlen.c: New file, from glibc.
30944 2000-05-03 Jim Meyering <meyering@lucent.com>
30946 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
30948 2000-05-02 Paul Eggert <eggert@twinsun.com>
30950 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
30951 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
30952 compile-time test, rather than inspecting host and OS, to
30953 decide whether to define _LARGEFILE_SOURCE.
30955 2000-05-01 Jim Meyering <meyering@lucent.com>
30957 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
30959 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
30960 Based on a patch from Bruno Haible.
30962 2000-05-01 Jim Meyering <meyering@lucent.com>
30964 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
30966 2000-04-29 Jim Meyering <meyering@lucent.com>
30968 * lib/path-concat.c: Declare strdup only if it's not defined.
30969 * lib/canon-host.c: Likewise.
30971 2000-04-28 Jim Meyering <meyering@lucent.com>
30973 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
30974 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
30975 is included first, then limits.h is included by locale.h by libintl.h.
30976 From John David Anglin.
30978 2000-04-25 Jim Meyering <meyering@lucent.com>
30980 * lib/makepath.c (S_IRWXUGO): Define.
30981 (make_path): Always perform explicit chmod if MODE specifies any
30982 of the `special' permission bits. Prompted by a bug report against
30983 install from Mate Wierdl and Joost van Baal.
30985 2000-04-18 Jim Meyering <meyering@lucent.com>
30987 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
30988 (jm_PREREQ): Use it.
30990 2000-04-18 Jim Meyering <meyering@lucent.com>
30992 * lib/README: New file.
30994 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
30995 getpagesize. For BeOS. Based on a patch from Bruno Haible.
30997 2000-04-17 Jim Meyering <meyering@lucent.com>
31000 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
31001 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
31002 Suggestion from Akim Demaille.
31004 2000-04-17 Jim Meyering <meyering@lucent.com>
31006 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
31007 the definition of it to rpl_strftime also defined-away the system's
31010 2000-04-15 Jim Meyering <meyering@lucent.com>
31012 Use `C' to denote so-called `contiguous' files, the same way
31014 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
31015 (ftypelet): Use S_ISCTG.
31016 From Michael Deutschmann.
31018 2000-04-14 Jim Meyering <meyering@lucent.com>
31020 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
31021 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
31024 2000-04-14 Jim Meyering <meyering@lucent.com>
31026 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
31028 2000-04-13 Jim Meyering <meyering@lucent.com>
31030 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
31031 AH_VERBATIM to insert required #ifndef into config.h.in.
31032 Suggestion from Akim Demaille.
31034 2000-04-12 Jim Meyering <meyering@lucent.com>
31036 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
31037 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
31038 Christian Krackowizer.
31040 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
31041 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
31042 (AC_SYS_LARGEFILE): Require.
31043 (AM_C_PROTOTYPES): Require.
31045 2000-04-08 Jim Meyering <meyering@lucent.com>
31047 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
31048 names don't conflict. Reported by Eli Zaretskii.
31050 2000-04-07 Jim Meyering <meyering@lucent.com>
31052 * lib/putenv.c: Move inclusion of errno.h so it follows that of
31053 sys/types.h, to work around system header problems on AIX 3.2.5.
31056 2000-04-07 Bruno Haible <haible@clisp.cons.org>
31058 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
31059 bug. Deal with the different error behavior of Irix iconv.
31061 2000-04-05 Paul Eggert <eggert@twinsun.com>
31063 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
31064 IRIX if the installer said otherwise.
31066 2000-04-05 Jim Meyering <meyering@lucent.com>
31068 Portability tweaks required for ultrix4.3.
31069 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
31070 (jm_CHECK_DECLS): Add getutent to the list of functions.
31071 (_jm_DECL_HEADERS): Add utmpx.h.
31072 From John David Anglin.
31074 * m4/strftime.m4: Back out the 2000-04-02 change.
31075 Instead of that change, simply undefine putenv in the test program.
31077 2000-04-05 Jim Meyering <meyering@lucent.com>
31079 Portability tweaks required for ultrix4.3.
31080 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
31082 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
31083 * lib/canon-host.c: Declare strdup.
31084 * lib/path-concat.c: Likewise.
31085 From John David Anglin.
31087 2000-04-04 Jim Meyering <meyering@lucent.com>
31089 Be more DOS 8.3-friendly.
31090 * lib/ref-add.sin: Renamed from ref-add.sed.in.
31091 * lib/ref-del.sin: Renamed from ref-del.sed.in.
31092 * lib/Makefile.am: Reflect renaming.
31093 Reported by Eli Zaretskii.
31095 Use a temporary file name that won't clash with `charset.alias'
31096 in the DOS 8.3 name space.
31097 * lib/Makefile.am (charset_tmp): Define.
31098 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
31099 (uninstall-local): Likewise.
31100 Reported by Eli Zaretskii.
31102 2000-04-03 Jim Meyering <meyering@lucent.com>
31104 * m4/gettext.m4: Fix typo in comment.
31106 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
31107 textutils/configure.in). Suggestion from Paul Eggert.
31108 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
31110 2000-04-02 Paul Eggert <eggert@twinsun.com>
31112 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
31113 variable in the shell rather than using putenv, which isn't
31114 portable. This avoids the configure-time inter-test dependency
31115 on the potentially-renamed putenv function.
31117 2000-03-30 Paul Eggert <eggert@twinsun.com>
31119 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
31120 before checking struct stat.st_blksize, so that
31121 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
31123 2000-03-29 Paul Eggert <eggert@twinsun.com>
31125 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
31126 since strftime.c uses HAVE_STRFTIME to decide whether to use
31127 the underlying strftime.
31129 2000-03-29 Paul Eggert <eggert@twinsun.com>
31131 * lib/time/strftime.c (my_strftime): Make sure we call the system
31132 strftime, not ourselves, when invoking the underlying strftime.
31134 2000-03-24 Jim Meyering <meyering@lucent.com>
31136 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
31137 (charset_alias): Define.
31138 (install-exec-local): Factor out common code.
31139 (uninstall-local): Split lines longer than 80.
31140 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
31141 (SUFFIXES): Define.
31142 (.sed.in.sed): New rule. Don't redirect directly to $@.
31143 (CLEANFILES): Add ref-add.sed and ref-del.sed.
31145 2000-03-19 Bruno Haible <haible@clisp.cons.org>
31147 * lib/config.charset: Output a line containing "Packages using this
31149 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
31150 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
31151 ref-del.sed): New rules.
31153 2000-03-17 Jim Meyering <meyering@lucent.com>
31155 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
31156 Otherwise, include <strings.h>
31158 2000-03-17 Bruno Haible <haible@clisp.cons.org>
31160 * lib/unicodeio.c (utf8_wctomb): New function.
31161 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
31162 format instead of in UCS-4 with platform dependent endianness.
31164 2000-03-10 Jim Meyering <meyering@lucent.com>
31166 * m4/lib-check.m4: Look for getspnam in -lgen, too.
31167 From Marco Franzen.
31169 2000-03-07 Paul Eggert <eggert@twinsun.com>
31171 * lib/savedir.c (savedir): Work even if directory size is
31172 negative; this can happen with some screwy NFS configurations.
31174 2000-03-06 Jim Meyering <meyering@lucent.com>
31176 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
31177 if it's NULL (because we ran out of memory). From Bruno Haible.
31179 2000-03-05 Jim Meyering <meyering@lucent.com>
31181 * lib/localcharset.c ("path-concat.h"): Include.
31182 (get_charset_aliases): Use path_concat instead of ANSI string
31185 * lib/unicodeio.h (PARAMS): Define.
31186 Use it to guard prototype.
31188 2000-03-04 Jim Meyering <meyering@lucent.com>
31190 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
31191 for lib/localcharset.c.
31193 2000-03-04 Jim Meyering <meyering@lucent.com>
31195 * lib/Makefile.am (install-exec-local): Create $(libdir) before
31196 installing into it.
31197 (uninstall-local): Uncomment this rule so `make distcheck' works
31200 * lib/unicodeio.c (<errno.h>): Include it.
31201 (errno): Declare if not defined.
31203 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
31205 * lib/config.charset: New version, incorporating remarks from a linux
31206 i18n mailing list. From Bruno Haible.
31208 2000-03-04 Bruno Haible <haible@clisp.cons.org>
31210 * m4/codeset.m4: New file.
31211 * m4/iconv.m4: New file.
31212 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
31214 2000-03-03 Jim Meyering <meyering@lucent.com>
31216 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
31218 2000-03-02 Jim Meyering <meyering@lucent.com>
31220 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
31221 the messages come out on separate lines.
31223 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
31224 rather than jm_CHECK_DECLARATIONS.
31225 * m4/decl.m4: Remove now-unused file.
31227 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
31230 2000-03-02 Jim Meyering <meyering@lucent.com>
31232 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
31234 2000-03-01 Jim Meyering <meyering@lucent.com>
31236 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
31237 * lib/unicodeio.c: Likewise.
31239 2000-03-01 Bruno Haible <haible@clisp.cons.org>
31241 * lib/config.charset: New file.
31242 * lib/localcharset.c: New file.
31243 * lib/unicodeio.h, lib/unicodeio.c: New files.
31244 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
31245 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
31246 (noinst_HEADERS): Add unicodeio.h.
31247 (all-local, install-exec-local, charset.alias): New targets.
31249 2000-02-28 Paul Eggert <eggert@twinsun.com>
31251 * lib/quotearg.c (ALERT_CHAR): New macro.
31252 (quotearg_buffer_restyled): Use it.
31254 2000-02-27 Jim Meyering <meyering@lucent.com>
31256 * m4/check-decl.m4: Add getenv to the list.
31258 2000-02-27 Jim Meyering <meyering@lucent.com>
31260 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
31261 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
31263 * lib/backupfile.c: Guard inclusion of stdlib.h with
31264 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
31265 Declare malloc if needed.
31267 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
31268 `#ifndef HAVE_DECL..'
31269 now that autoconf always defines the HAVE_DECL_ symbols.
31270 * lib/human.c: Likewise.
31271 * lib/same.c: Likewise.
31272 * lib/strtoumax.c: Likewise.
31274 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
31275 declaration check was not run.
31276 * lib/hash.c: Likewise.
31277 * lib/human.c: Likewise.
31278 * lib/same.c: Likewise.
31279 * lib/strtoumax.c: Likewise.
31281 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
31282 `.', then first look up the entire `.'-containing string as a login
31285 2000-02-23 Jim Meyering <meyering@lucent.com>
31287 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
31288 in place of my hack.
31290 2000-02-18 Paul Eggert <eggert@twinsun.com>
31292 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
31293 (textint): New typedef.
31294 (parser_control): Member year changed from int to textint.
31296 (YYSTYPE): Removed; replaced by %union with int and textint members.
31297 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
31298 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
31299 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
31300 (tSNUMBER, tUNUMBER): Now of type <textintval>.
31301 (date, number, to_year): Use width of number in digits, not its value,
31302 to determine whether it's a 2-digit year, or a 2-digit time.
31303 (yylex): Store number of digits of numeric tokens.
31304 Reported by John Kendall.
31306 (parser_control): Changed from struct parser_control to typedef (for
31307 consistency). All uses changed.
31309 (tID): Removed; not used.
31310 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
31312 2000-02-14 Paul Eggert <eggert@twinsun.com>
31314 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
31315 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
31317 2000-02-12 Jim Meyering <meyering@lucent.com>
31319 * lib/userspec.c (ISDIGIT): Define it.
31320 (isdigit): Remove definition.
31321 (is_number): Use ISDIGIT, not isdigit.
31322 <libintl.h>: Include.
31323 (_ and N_): Define.
31324 (parse_user_spec): Mark translatable strings.
31326 2000-02-10 Jim Meyering <meyering@lucent.com>
31328 With these changes, nanosleep.[ch] are finally enough like the other
31329 lib/* replacement files to compile on a few more losing systems.
31331 * lib/nanosleep.h: Don't include config.h.
31332 Remove prototype from declaration of nanosleep.
31333 (PARAMS): Remove now-unneeded definition.
31334 * lib/nanosleep.c: #undef nanosleep.
31335 (rpl_nanosleep): Rename from nanosleep.
31337 2000-02-10 Jim Meyering <meyering@lucent.com>
31339 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
31340 gnu_nanosleep to rpl_nanosleep.
31342 2000-02-09 Jim Meyering <meyering@lucent.com>
31344 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
31345 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
31347 2000-02-08 Akim Demaille <akim@epita.fr>
31349 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
31350 `[' and `]' and remove uses of `changequote'.
31351 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
31352 (AC_SYS_LARGEFILE): Likewise.
31353 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31354 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
31356 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
31357 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
31358 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
31359 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
31361 2000-02-05 Jim Meyering <meyering@lucent.com>
31363 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
31364 Remove explicit use of AC_HEADER_TIME. It is required by
31365 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
31366 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
31367 in autoconf whereby the expansion of the latter ended up preceding
31368 the expansion of its prerequisite, AC_HEADER_TIME.
31369 Reported by Volker Borchert.
31371 2000-02-03 Jim Meyering <meyering@lucent.com>
31373 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
31375 2000-02-03 Jim Meyering <meyering@lucent.com>
31377 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
31378 rather than with `#if HAVE_UTMPNAME'.
31380 2000-02-02 Jim Meyering <meyering@lucent.com>
31382 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
31383 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
31384 Reported by Eli Zaretskii.
31386 2000-02-01 Jim Meyering <meyering@lucent.com>
31388 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
31390 2000-01-31 Jim Meyering <meyering@lucent.com>
31392 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
31393 functions. Add the time.h and sys/time.h headers along with the
31394 AC_REQUIRE'ment of AC_HEADER_TIME.
31396 2000-01-31 Jim Meyering <meyering@lucent.com>
31398 * lib/nanosleep.h (nanosleep): Guard declaration with
31399 `#if ! HAVE_DECL_NANOSLEEP'.
31400 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
31401 the declaration in that vendor's sys/timers.h.
31402 Reported by Christian Krackowizer.
31404 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
31405 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
31406 (ISPRINT): Likewise.
31407 Reported by Tom Tromey.
31409 2000-01-30 Jim Meyering <meyering@lucent.com>
31411 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
31413 * m4/prereq.m4 (utmp_includes): Define.
31414 Check for ut_user and ut_name members in both struct utmpx
31417 2000-01-30 Jim Meyering <meyering@lucent.com>
31419 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
31420 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
31421 header files where only utmpx.ut_user is declared.
31423 * lib/readutmp.h (UT_USER): Define.
31425 2000-01-29 Jim Meyering <meyering@lucent.com>
31427 * m4/lib-check.m4: New file containing library-related checks from
31428 fileutils and sh-utils (textutils had none).
31430 2000-01-28 Jim Meyering <meyering@lucent.com>
31432 * m4/perl.m4: Change format of warning message to look more like that
31433 from the missing script. Suggestion from François Pinard.
31435 2000-01-25 Jim Meyering <meyering@lucent.com>
31437 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
31438 well as time.h in the compile check.
31439 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
31440 Fix typo in cross-compiling case: s/yes/no/.
31442 2000-01-23 Jim Meyering <meyering@lucent.com>
31444 * m4/jm-macros.m4: Move df-related tests here from
31445 fileutils/configure.in
31447 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
31448 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
31450 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
31451 s/space/ac_fsusage_space/.
31452 (jm_FILE_SYSTEM_USAGE): Take two parameters.
31454 * m4/ftruncate.m4: New file (derived from part of
31455 fileutils/configure.in).
31456 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
31457 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
31459 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
31460 AC_SUBST these here, rather than just in sh-util/configure.in, so
31461 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
31463 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
31464 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
31465 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
31466 (AC_SUBST(POW_LIBM)): Likewise.
31467 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
31469 2000-01-23 Jim Meyering <meyering@lucent.com>
31471 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
31474 2000-01-22 Jim Meyering <meyering@lucent.com>
31476 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
31478 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
31480 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
31482 (AC_CHECK_HEADERS): Likewise for sh-utils.
31483 (AC_CHECK_HEADERS): Likewise for textutils.
31484 Merge the three lists of headers.
31486 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
31487 from fileutils' configure.in.
31489 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
31490 code. Moved tests into their own function (_jm_DECL_HEADERS) in
31493 * m4/check-decl.m4: Use #if rather than #ifdef.
31494 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
31495 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
31496 (_jm_DECL_HEADERS): Define new function.
31497 (jm_CHECK_DECLARATIONS): Require it.
31499 2000-01-22 Jim Meyering <meyering@lucent.com>
31501 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
31502 [! HAVE_DECL_STRTOULL]: Declare strtoull.
31503 Required for some AIX systems. Reported by Christian Krackowizer.
31504 [TESTING] (main): New function.
31506 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
31507 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
31510 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
31513 * lib/strverscmp.c (ISDIGIT): Define.
31514 (strverscmp): Use ISDIGIT, not isdigit.
31516 2000-01-19 Jim Meyering <meyering@lucent.com>
31518 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
31519 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
31520 defines `struct timespec' in <sys/time.h>
31522 * m4/c-bs-a.m4: Remove uses of changequote altogether.
31523 Thanks to Akim for explaining.
31525 2000-01-17 Paul Eggert <eggert@twinsun.com>
31527 * lib/nanosleep.c (nanosleep):
31528 Don't use SA_INTERRUPT to decide whether to call sigaction, as
31529 POSIX.1 doesn't require SA_INTERRUPT and some systems
31530 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
31531 it's been part of POSIX.1 since day 1 (in 1988).
31533 2000-01-17 Jim Meyering <meyering@lucent.com>
31535 * lib/interlock: Remove unused file. Reported by François Pinard.
31537 2000-01-16 Paul Eggert <eggert@twinsun.com>
31539 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
31540 alert, backslash, formfeed, and vertical tab unnecessarily in
31541 shell quoting style.
31543 2000-01-16 Jim Meyering <meyering@lucent.com>
31545 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
31546 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
31547 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
31548 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
31550 2000-01-16 Jim Meyering <meyering@lucent.com>
31552 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
31553 because the latter didn't work.
31555 2000-01-15 Jim Meyering <meyering@lucent.com>
31557 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
31558 (AC_REPLACE_FUNCS): Add memcpy and memset.
31559 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
31561 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
31563 2000-01-12 Jim Meyering <meyering@lucent.com>
31565 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
31566 (jm_PREREQ): Use it.
31567 (jm_PREREQ_READUTMP): New macro.
31568 (jm_PREREQ): Use it.
31570 2000-01-11 Paul Eggert <eggert@twinsun.com>
31572 Quote multibyte characters correctly.
31573 * m4/c-bs-a.m4: New file.
31574 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
31575 (jm_PREREQ): Use it.
31577 2000-01-11 Paul Eggert <eggert@twinsun.com>
31579 * m4/uintmax_t.m4: Port to autoconf 2.13.
31581 2000-01-08 Jim Meyering <meyering@ascend.com>
31583 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
31584 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
31586 2000-01-04 Jim Meyering <meyering@ascend.com>
31588 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
31589 jm_STRUCT_DIRENT_D_TYPE.
31590 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
31591 jm_STRUCT_DIRENT_D_INO.
31592 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
31594 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
31596 * m4/utime.m4: Likewise.
31598 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
31599 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
31601 2000-01-03 Paul Eggert <eggert@twinsun.com>
31603 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
31604 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
31606 2000-01-02 Jim Meyering <meyering@ascend.com>
31608 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
31609 remember if this is necessary.
31611 1999-12-26 Jim Meyering <meyering@ascend.com>
31613 * m4/jm-macros.m4: Use it here.
31614 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
31616 1999-12-23 Jim Meyering <meyering@ascend.com>
31618 * m4/jm-macros.m4: Check for clock_gettime (moved from
31619 fileutils/configure.in)
31620 Check for gettimeofday.
31622 1999-12-20 Jim Meyering <meyering@ascend.com>
31624 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
31625 autoconf-2.14a-1999-12-20.
31627 1999-12-19 Jim Meyering <meyering@ascend.com>
31629 * m4/lstat-slash.m4: New file.
31630 * m4/jm-macros.m4: Use the new macro:
31631 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31633 1999-12-07 Jim Meyering <meyering@ascend.com>
31635 * m4/perl.m4: Require that File::Compare be available, too.
31636 Too many systems seem to lack it.
31638 * m4/strftime.m4: Add checks for most of the cpp macros tested in
31639 GNU's strftime.c. Prompted by a patch from Paul Eggert.
31641 1999-11-18 Paul Eggert <eggert@twinsun.com>
31643 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
31644 problem with the QNX 4.25 shell, which doesn't propagate exit
31645 status of failed commands inside shell assignments.
31647 1999-11-17 Jim Meyering <meyering@ascend.com>
31649 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
31651 1999-11-07 Jim Meyering <meyering@ascend.com>
31653 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
31655 1999-11-06 Jim Meyering <meyering@ascend.com>
31657 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
31658 * m4/jm-macros.m4 (jm_MACROS): Use it here.
31660 1999-11-05 Jim Meyering <meyering@ascend.com>
31662 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
31663 configure.in of textutils, fileutils, and sh-utils into this one
31664 (shared between those packages) file.
31665 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
31666 AC_STRUCT_ST_BLKSIZE.
31668 1999-11-03 Jim Meyering <meyering@ascend.com>
31670 * m4/ssize_t.m4: Remove file. No longer needed since the new version
31671 of AC_CHECK_TYPE checks includes unistd.h.
31672 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
31673 Suggestion from Akim Demaille.
31675 1999-10-30 Jim Meyering <meyering@ascend.com>
31677 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
31679 * m4/ls-mntd-fs.m4: Likewise.
31680 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
31681 * m4/jm-winsz1.m4: Likewise.
31683 * m4/const.m4: Remove file, since the fix made it into the experimental
31684 version of autoconf.
31685 * m4/mktime.m4: Likewise.
31687 * m4/check-type.m4: Remove file, now that the latest version of
31688 AC_CHECK_TYPE takes a third arg to specify additional #includes.
31690 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
31691 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
31694 1999-10-04 Jim Meyering <meyering@ascend.com>
31696 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
31698 1999-09-22 Paul Eggert <eggert@twinsun.com>
31700 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
31701 2.95.1 bug with HP-UX 10.20.
31703 1999-09-17 Jim Meyering <meyering@ascend.com>
31705 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
31706 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
31707 due to missing strdup (against sh-utils-2.0).
31709 1999-08-29 Jim Meyering <meyering@ascend.com>
31711 * m4/jm-macros.m4: Require jm_BISON.
31712 * m4/bison.m4: New file.
31714 1999-08-17 Paul Eggert <eggert@twinsun.com>
31716 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
31717 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
31719 1999-08-05 Jim Meyering <meyering@ascend.com>
31721 * m4/getline.m4: Rename test file from conftestdata to conftest.data
31722 to avoid conflicts with `conftest' on 8+3 filesystems.
31723 Suggestion from Eli Zaretskii.
31725 1999-08-04 Jim Meyering <meyering@ascend.com>
31727 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
31728 fileutils and sh-utils (textutils's getline test was inadequate).
31729 (AM_FUNC_GETLINE): Run this test.
31730 (AC_CHECK_FUNCS): Check for getdelim.
31731 Reported by Bob Proulx.
31733 1999-08-02 Jim Meyering <meyering@ascend.com>
31735 * m4/jm-macros.m4: Add a comment.
31737 1999-08-01 Paul Eggert <eggert@twinsun.com>
31739 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
31740 <inttypes.h> defines strtoumax as a macro (and not as a
31743 1999-08-01 Paul Eggert <eggert@twinsun.com>
31745 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
31746 that we can shift, multiply and divide unsigned long long
31747 values; Ultrix cc can't do it.
31749 1999-08-01 Paul Eggert <eggert@twinsun.com>
31751 * m4/mktime.m4: New file, which is a preview of what should appear
31752 in the next public autoconf release.
31754 1999-08-01 Paul Eggert <eggert@twinsun.com>
31756 * m4/lfs.m4: Remove this file.
31757 * m4/largefile.m4: New file. It contains the old contents of
31758 lfs.m4, except that all names with prefix AC_LFS have been
31759 changed to use the prefix AC_SYS_LARGEFILE instead, to be
31760 compatible with future autoconf versions. Also, some minor m4
31761 quoting problems have been fixed.
31763 1999-08-01 Paul Eggert <eggert@twinsun.com>
31765 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
31766 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
31767 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
31768 and simplify the shell code.
31770 1999-08-01 Jim Meyering <meyering@ascend.com>
31772 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
31775 1999-07-20 Jim Meyering <meyering@ascend.com>
31777 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
31779 1999-07-15 Jim Meyering <meyering@ascend.com>
31781 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
31783 1999-05-22 Jim Meyering <meyering@ascend.com>
31785 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
31787 1999-05-20 Jim Meyering <meyering@ascend.com>
31789 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
31790 Add a colon after each `then' in case $4 is empty.
31792 1999-05-16 Jim Meyering <meyering@ascend.com>
31794 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
31796 1999-05-10 Jim Meyering <meyering@ascend.com>
31798 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
31800 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
31803 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
31805 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
31807 1999-05-04 Paul Eggert <eggert@twinsun.com>
31809 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
31810 not CPPFLAGS, so that linking works correctly in IRIX.
31812 1999-04-30 Paul Eggert <eggert@twinsun.com>
31814 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
31816 1999-04-20 Paul Eggert <eggert@twinsun.com>
31818 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
31819 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
31820 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
31821 jm_AC_TYPE_UNSIGNED_LONG_LONG.
31822 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
31824 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
31826 1999-04-20 Jim Meyering <meyering@ascend.com>
31828 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
31829 AC_REPLACE xstroull if necessary. From Paul Eggert.
31830 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
31832 1999-04-18 Jim Meyering <meyering@ascend.com>
31834 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
31835 * m4/jm-macros.m4: Use it.
31837 1999-04-06 Jim Meyering <meyering@ascend.com>
31839 * m4/strftime.m4: Remove test for %f.
31841 1999-03-29 Jim Meyering <meyering@ascend.com>
31843 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
31844 superset of the AC_TYPE_* checks in the textutils, fileutils,
31845 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
31848 1999-03-28 Jim Meyering <meyering@ascend.com>
31850 * m4/jm-macros.m4: Define GNU_PACKAGE here.
31851 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
31852 replaced e.g., in the *.sh files of the sh-utils.
31854 1999-03-20 Jim Meyering <meyering@ascend.com>
31856 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
31857 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
31858 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
31860 1999-03-19 Jim Meyering <meyering@ascend.com>
31862 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
31864 1999-03-12 Jim Meyering <meyering@ascend.com>
31866 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
31868 1999-03-07 Jim Meyering <meyering@ascend.com>
31870 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
31873 1999-02-17 Jim Meyering <meyering@ascend.com>
31875 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
31876 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
31878 1999-02-07 Jim Meyering <meyering@ascend.com>
31880 * m4/group-member.m4: New file -- extracted from sh-utils'
31883 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
31884 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
31886 1999-02-06 Jim Meyering <meyering@ascend.com>
31888 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
31889 * m4/fnmatch.m4: Likewise.
31890 * m4/getgroups.m4: Likewise.
31891 * m4/lstat.m4: Likewise.
31892 * m4/malloc.m4: Likewise.
31893 * m4/putenv.m4: Likewise.
31894 * m4/realloc.m4: Likewise.
31895 * m4/regex.m4: Likewise.
31896 * m4/stat.m4: Likewise.
31897 * m4/strftime.m4: Likewise.
31898 Suggestion from Alain Magloire.
31900 * m4/chown.m4: Use `.$ac_objext', not `.o'.
31901 * m4/fnmatch.m4: Likewise.
31902 * m4/getgroups.m4: Likewise.
31903 * m4/getline.m4: Likewise.
31904 * m4/lstat.m4: Likewise.
31905 * m4/malloc.m4: Likewise.
31906 * m4/memcmp.m4: Likewise.
31907 * m4/putenv.m4: Likewise.
31908 * m4/realloc.m4: Likewise.
31909 * m4/regex.m4: Likewise.
31910 * m4/stat.m4: Likewise.
31911 * m4/strftime.m4: Likewise.
31912 Suggestion from Alain Magloire.
31914 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
31917 * m4/regex.m4: Add a run-time Test for proper operation of
31918 re_compile_pattern.
31920 1999-01-31 Jim Meyering <meyering@ascend.com>
31922 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
31924 1999-01-30 Jim Meyering <meyering@ascend.com>
31926 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
31928 * m4/jm-mktime.m4: Make this a wrapper around the official
31929 AM_FUNC_MKTIME rather than my private copy, now that the official one
31931 * m4/mktime.m4: Remove file.
31933 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
31934 * m4/uptime.m4: Likewise.
31935 * m4/uintmax_t.m4: Likewise.
31937 1999-01-28 Jim Meyering <meyering@ascend.com>
31939 * m4/jm-macros.m4: Use jm_AFS.
31940 * m4/afs.m4: New file (from fileutils' configure.in).
31942 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
31943 * m4/chown.m4: Likewise.
31944 * m4/d-ino.m4: Likewise.
31945 * m4/d-type.m4: Likewise.
31946 * m4/fnmatch.m4: Likewise.
31947 * m4/getgroups.m4: Likewise.
31948 * m4/gettext.m4: Likewise.
31949 * m4/jm-mktime.m4: Likewise.
31950 * m4/jm-winsz2.m4: Likewise.
31951 * m4/lcmessage.m4: Likewise.
31952 * m4/ls-mntd-fs.m4: Likewise.
31953 * m4/malloc.m4: Likewise.
31954 * m4/memcmp.m4: Likewise.
31955 * m4/putenv.m4: Likewise.
31956 * m4/realloc.m4: Likewise.
31957 * m4/st_mtim.m4: Likewise.
31958 * m4/strftime.m4: Likewise.
31960 1999-01-16 Jim Meyering <meyering@ascend.com>
31962 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
31963 (ARGMATCH_DIE_DECL): Define.
31965 1999-01-12 Jim Meyering <meyering@ascend.com>
31967 * m4/Makefile.am.in: Rewrite to avoid using fmt.
31968 Reported by Lars Hecking.
31970 1999-01-10 Jim Meyering <meyering@ascend.com>
31972 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
31974 * m4/inttypes_h.m4: Likewise.
31975 * m4/lstat.m4: Likewise.
31976 * m4/malloc.m4: Likewise.
31977 * m4/readdir.m4: Likewise.
31978 * m4/realloc.m4: Likewise.
31979 * m4/st_dm_mode.m4: Likewise.
31980 * m4/stat.m4: Likewise.
31981 * m4/utimbuf.m4: Likewise.
31982 * m4/utimes.m4: Likewise.
31984 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
31985 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
31986 comments in config.h.in are meaningful.
31988 * m4/jm-macros.m4: Require autoconf-2.13 here.
31990 * m4/regex.m4: By default, don't use the included regex.c on systems
31991 with glibc 2. Suggestion from Uli Drepper.
31993 1999-01-02 Jim Meyering <meyering@ascend.com>
31995 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
31997 1998-12-18 Jim Meyering <meyering@ascend.com>
31999 * m4/Makefile.am.in (Makefile.am): Simplify rule.
32000 Based on a suggestion from Lars Hecking.
32002 1998-11-16 Paul Eggert <eggert@twinsun.com>
32004 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
32006 1998-11-16 Jim Meyering <meyering@ascend.com>
32008 * m4/lfs.m4: Double-quote the `uname...` expression.
32010 1998-11-14 Jim Meyering <meyering@ascend.com>
32012 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
32013 * m4/stat.m4: Likewise.
32015 1998-11-03 Jim Meyering <meyering@ascend.com>
32017 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
32018 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
32020 1998-10-18 Jim Meyering <meyering@ascend.com>
32022 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
32024 1998-10-17 Jim Meyering <meyering@ascend.com>
32026 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
32027 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
32028 calls for those previously hard-coded headers. Instead, take a new
32030 (jm_CHECK_DECLARATIONS): Reflect interface change.
32031 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
32032 (jm_CHECK_DECL_LOCALTIME_R): New macro.
32034 * m4/mktime.m4: Test for spring-forward gap before long-running test.
32036 1998-10-14 Jim Meyering <meyering@ascend.com>
32038 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
32039 instead of "TZ=America/Vancouver". From Paul Eggert.
32041 1998-10-11 Jim Meyering <meyering@ascend.com>
32043 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
32044 This adds a test for a recently added compatibility fix for mktime.c.
32045 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
32047 1998-09-27 Jim Meyering <meyering@ascend.com>
32049 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
32051 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
32052 ../configure.in, including a change from Gordon Matzigkeit to allow
32053 cross-compiling for the Hurd.
32055 * m4/glibc.m4: New file/macro to test for the GNU C Library
32056 versions 1 and 2. From Gordon Matzigkeit.
32059 1998-09-21 Jim Meyering <meyering@ascend.com>
32061 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
32063 1998-08-18 Paul Eggert <eggert@twinsun.com>
32065 Port nanosecond-resolution times to UnixWare 2.1.2 and
32066 pedantic Solaris 2.6.
32068 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
32070 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
32071 Generate name of ns member, instead of just 1 or undef.
32072 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
32074 1998-08-15 Jim Meyering <meyering@ascend.com>
32076 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
32077 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
32078 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
32079 instead of jm_TYPE_SSIZE_T.
32081 1998-08-12 Jim Meyering <meyering@ascend.com>
32083 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
32085 1998-08-02 Jim Meyering <meyering@ascend.com>
32087 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
32088 in acconfig.h manually.
32090 1998-07-31 Paul Eggert <eggert@twinsun.com>
32092 * m4/st_mtim.m4: New file.
32094 1998-07-28 Jim Meyering <meyering@ascend.com>
32096 * m4/utimes.m4: Undef stat.
32098 1998-07-25 Jim Meyering <meyering@ascend.com>
32100 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
32101 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
32103 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
32105 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
32106 uid and gid actually remain unchanged.
32108 1998-07-07 Jim Meyering <meyering@ascend.com>
32110 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
32112 1998-07-04 Jim Meyering <meyering@ascend.com>
32114 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
32115 to prove that this macro can be used in packages without regex.c.
32117 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
32119 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
32122 1998-07-03 Jim Meyering <meyering@ascend.com>
32124 * m4/gettext.m4: Add -lintl if it's found to be necessary.
32126 * m4/gettext.m4: New file -- from gettext-0.10.35.
32127 * m4/lcmessage.m4: Likewise.
32128 * m4/progtest.m4: Likewise.
32130 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
32131 * m4/jm-macros.m4: Require the new macro.
32133 1998-06-29 Jim Meyering <meyering@ascend.com>
32135 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
32136 for the definition of NGROUPS (used in a system header included
32139 1998-06-28 Jim Meyering <meyering@ascend.com>
32141 * m4/ls-mntd-fs.m4: New file.
32142 * m4/fstypename.m4: New file.
32144 * m4/jm-macros.m4: Require the new macro.
32145 * m4/jm-glibc-io.m4: New file.
32147 1998-05-19 Jim Meyering <meyering@ascend.com>
32149 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
32150 * m4/lchown.m4: New file.
32152 * m4/Makefile.am.in: New file.
32153 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
32155 1998-05-14 Jim Meyering <meyering@ascend.com>
32157 * m4/Makefile.am (EXTRA_DIST): Add them.
32158 * m4/jm-macros.m4: New file.
32159 * m4/utimbuf.m4: New file.
32161 1998-05-12 Jim Meyering <meyering@ascend.com>
32163 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
32165 1998-05-11 Jim Meyering <meyering@ascend.com>
32167 * m4/isc-posix.m4: New file.
32169 1998-05-10 Jim Meyering <meyering@ascend.com>