1 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
3 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
4 a circularity problem with HP-UX ia64 reported by Bob Proulx in
5 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
9 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
11 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
12 the parameter matches the prototype.
14 2007-01-28 Jim Meyering <jim@meyering.net>
16 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
17 sys/time.h here, reverting that part of the previous patch:
18 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
20 2007-01-28 Bruno Haible <bruno@clisp.org>
22 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
23 value of $(SYS_TIME_H).
24 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
25 remove it conditionally, too. [added by Jim Meyering]
26 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
27 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
29 GETTIMEOFDAY_REPLACEMENT to 1.
31 2007-01-28 Bruno Haible <bruno@clisp.org>
33 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
34 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
36 Set UNISTD_H instead of UNISTD_H2.
37 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39 2007-01-28 Bruno Haible <bruno@clisp.org>
41 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
47 (func_create_testdir): Ensure C locale for `grep' and `tr'
49 (func_create_megatestdir): Avoid one `grep'. Fix bug in
50 ACLOCAL_AMFLAGS parsing state machine.
52 2007-01-27 Bruno Haible <bruno@clisp.org>
54 * modules/unistr/base: Update.
56 2007-01-27 Bruno Haible <bruno@clisp.org>
58 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60 * modules/unistr/u32-mbtouc-unsafe: Renamed from
61 modules/unistr/u32-mbtouc.
62 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63 * lib/unistr.h: Update.
64 * lib/linebreak.c: Update.
65 * modules/unistr/u32-mbtouc: Renamed from
66 modules/unistr/u32-mbtouc-safe.
67 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68 * lib/unistr.h: Update.
69 * lib/unistr/u32-to-u8.c: Update.
70 * lib/unistr/u32-to-u16.c: Update.
72 2007-01-27 Bruno Haible <bruno@clisp.org>
74 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
76 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
77 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
78 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
79 * modules/unistr/u16-mbtouc-unsafe: Renamed from
80 modules/unistr/u16-mbtouc.
81 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
82 * lib/unistr.h: Update.
83 * lib/linebreak.c: Update.
84 * modules/linebreak: Update.
85 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
86 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
87 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
88 * modules/unistr/u16-mbtouc: Renamed from
89 modules/unistr/u16-mbtouc-safe.
90 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
91 * lib/unistr.h: Update.
92 * lib/unistr/u16-to-u8.c: Update.
93 * modules/unistr/u16-to-u8: Update.
94 * lib/unistr/u16-to-u32.c: Update.
95 * modules/unistr/u16-to-u32: Update.
97 2007-01-27 Bruno Haible <bruno@clisp.org>
99 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
100 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
101 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
102 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
103 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104 * modules/unistr/u8-mbtouc-unsafe: Renamed from
105 modules/unistr/u8-mbtouc.
106 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107 * lib/unistr.h: Update.
108 * lib/striconveh.c: Update.
109 * modules/striconveh: Update.
110 * lib/linebreak.c: Update.
111 * modules/linebreak: Update.
112 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
113 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
114 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
115 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
116 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
117 * lib/unistr.h: Update.
118 * lib/striconveh.c: Update.
119 * modules/striconveh: Update.
120 * lib/unistr/u8-to-u16.c: Update.
121 * modules/unistr/u8-to-u16: Update.
122 * lib/unistr/u8-to-u32.c: Update.
123 * modules/unistr/u8-to-u32: Update.
125 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
128 * lib/argz.c: Do not include strings.h nor memory.h, include
129 string.h unconditionally. Patch by Simon Josefsson.
131 2007-01-27 Bruno Haible <bruno@clisp.org>
133 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
134 from gl_HEADER_STRING_H_BODY.
135 (gl_HEADER_STRING_H_BODY): Require it.
136 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
137 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
138 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
139 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
140 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
141 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
142 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
143 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
144 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
145 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
146 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
147 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
148 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
149 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
150 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
152 2007-01-27 Bruno Haible <bruno@clisp.org>
154 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
155 check_PROGRAMS into noinst_PROGRAMS.
156 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
157 check_PROGRAMS in this case.
158 (func_import): Set for_test to false.
159 (func_create_testdir): Set for_test to true.
161 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
162 Bruno Haible <bruno@clisp.org>
164 * modules/strcasestr (Files): Remove lib/strcasestr.h.
165 (Depends-on): Add string.
166 (Includes): Use <string.h> instead of strcasestr.h.
167 * modules/string (Makefile.am): Also substitute the value of
169 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
170 assume strcasestr is declared in <string.h> not <strings.h>. Also
171 set REPLACE_STRCASESTR.
172 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
174 * lib/strcasestr.h: Remove file.
175 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
176 * lib/string_.h (strcasestr): New declaration.
178 2007-01-27 Bruno Haible <bruno@clisp.org>
180 * lib/string_.h: Use 'extern'.
182 2007-01-27 Jim Meyering <jim@meyering.net>
184 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
185 of set-but-not-used local, "q".
187 * lib/mempcpy.c: Include <config.h> before <string.h>.
188 This fixes a compilation error on HP-UX, due to the system's
189 "restrict"-using mempcpy prototype.
191 2007-01-26 Bruno Haible <bruno@clisp.org>
194 * lib/javacomp.c: Include c-strstr.h.
195 (is_envjavac_gcj): Use c_strstr instead of strstr.
196 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
198 2007-01-26 Bruno Haible <bruno@clisp.org>
200 * MODULES.html.sh (Unicode string functions): Add the new modules.
202 * modules/uniconv/u32-strconv-to-locale: New file.
203 * lib/uniconv/u32-strconv-to-locale.c: New file.
205 * modules/uniconv/u16-strconv-to-locale: New file.
206 * lib/uniconv/u16-strconv-to-locale.c: New file.
208 * modules/uniconv/u8-strconv-to-locale: New file.
209 * lib/uniconv/u8-strconv-to-locale.c: New file.
211 * modules/uniconv/u32-strconv-from-locale: New file.
212 * lib/uniconv/u32-strconv-from-locale.c: New file.
214 * modules/uniconv/u16-strconv-from-locale: New file.
215 * lib/uniconv/u16-strconv-from-locale.c: New file.
217 * modules/uniconv/u8-strconv-from-locale: New file.
218 * lib/uniconv/u8-strconv-from-locale.c: New file.
220 * modules/uniconv/u32-strconv-to-enc: New file.
221 * lib/uniconv/u32-strconv-to-enc.c: New file.
222 * modules/uniconv/u32-strconv-to-enc-tests: New file.
223 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
225 * modules/uniconv/u16-strconv-to-enc: New file.
226 * lib/uniconv/u16-strconv-to-enc.c: New file.
227 * lib/uniconv/u-strconv-to-enc.h: New file.
228 * modules/uniconv/u16-strconv-to-enc-tests: New file.
229 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
231 * modules/uniconv/u8-strconv-to-enc: New file.
232 * lib/uniconv/u8-strconv-to-enc.c: New file.
233 * modules/uniconv/u8-strconv-to-enc-tests: New file.
234 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
236 * modules/uniconv/u32-strconv-from-enc: New file.
237 * lib/uniconv/u32-strconv-from-enc.c: New file.
238 * modules/uniconv/u32-strconv-from-enc-tests: New file.
239 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
241 * modules/uniconv/u16-strconv-from-enc: New file.
242 * lib/uniconv/u16-strconv-from-enc.c: New file.
243 * modules/uniconv/u16-strconv-from-enc-tests: New file.
244 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
246 * modules/uniconv/u8-strconv-from-enc: New file.
247 * lib/uniconv/u8-strconv-from-enc.c: New file.
248 * lib/uniconv/u-strconv-from-enc.h: New file.
249 * modules/uniconv/u8-strconv-from-enc-tests: New file.
250 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
252 * modules/uniconv/u32-conv-from-enc: New file.
253 * lib/uniconv/u32-conv-from-enc.c: New file.
254 * modules/uniconv/u32-conv-from-enc-tests: New file.
255 * tests/uniconv/test-u32-conv-from-enc.c: New file.
257 * modules/uniconv/u16-conv-from-enc: New file.
258 * lib/uniconv/u16-conv-from-enc.c: New file.
259 * lib/uniconv/u-conv-from-enc.h: New file.
260 * modules/uniconv/u16-conv-from-enc-tests: New file.
261 * tests/uniconv/test-u16-conv-from-enc.c: New file.
263 * modules/uniconv/u8-conv-from-enc: New file.
264 * lib/uniconv/u8-conv-from-enc.c: New file.
265 * modules/uniconv/u8-conv-from-enc-tests: New file.
266 * tests/uniconv/test-u8-conv-from-enc.c: New file.
268 * modules/uniconv/base: New file.
269 * lib/uniconv.h: New file.
271 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
273 * doc/gnulib-tool.texi (Initial import): Update to match current
274 behavior with strdup module.
275 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
276 * lib/memmem.h: Remove; all uses removed. This is now done
278 * lib/mempcpy.h: Likewise.
279 * lib/memrchr.h: Likewise.
280 * lib/stpcpy.h: Likewise.
281 * lib/stpncpy.h: Likewise.
282 * lib/strcase.h: Likewise.
283 * lib/strchrnul.h: Likewise.
284 * lib/strdup.h: Likewise.
285 * lib/strndup.h: Likewise.
286 * lib/strnlen.h: Likewise.
287 * lib/strpbrk.h: Likewise.
288 * lib/strsep.h: Likewise.
289 * lib/strstr.h: Likewise.
290 * lib/strtok_r.h: Likewise.
291 * lib/string_.h: New file.
292 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
293 Rely on <string.h> instead.
294 * lib/canon-host.c: Likewise.
295 * lib/chdir-long.c: Likewise.
296 * lib/concatpath.c: Likewise.
297 * lib/exclude.c: Likewise.
298 * lib/fchdir.c: Likewise.
299 * lib/getaddrinfo.c: Likewise.
300 * lib/getcwd.c: Likewise.
301 * lib/getsubopt.c: Likewise.
302 * lib/glob.c: Likewise.
303 * lib/hard-locale.c: Likewise.
304 * lib/iconvme.c: Likewise.
305 * lib/javacomp.c: Likewise.
306 * lib/mempcpy.c: Likewise.
307 * lib/memrchr.c: Likewise.
308 * lib/regex_internal.h: Likewise.
309 * lib/stpncpy.c: Likewise.
310 * lib/strcasecmp.c: Likewise.
311 * lib/strchrnul.c: Likewise.
312 * lib/strdup.c: Likewise.
313 * lib/striconv.c: Likewise.
314 * lib/striconveh.c: Likewise.
315 * lib/striconveha.c: Likewise.
316 * lib/strncasecmp.c: Likewise.
317 * lib/strndup.c: Likewise.
318 * lib/strnlen.c: Likewise.
319 * lib/strsep.c: Likewise.
320 * lib/strstr.c: Likewise.
321 * lib/strtok_r.c: Likewise.
322 * lib/userspec.c: Likewise.
323 * lib/w32spawn.h: Likewise.
324 * lib/xstrndup.c: Likewise.
325 * lib/mountlist.c (strstr): Remove decl.
326 * m4/string_h.m4: New file.
327 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
328 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
329 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
330 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
331 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
332 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
333 Set REPLACE_STRCASECMP if necessary.
334 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
335 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
336 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
337 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
338 HAVE_DECL_STRDUP if necessary.
339 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
340 since gl_FUNC_STRNDUP does that now.
341 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
342 Check for decl here...
343 (gl_PREREQ_STRNLEN): ... not here.
344 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
345 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
346 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
347 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
349 * modules/string: New file.
350 * modules/memmem (Files): Remove special-purpose include file.
351 (Depends-on): Add string.
352 (Include): Include <string.h>, not the removed file.
353 * modules/mempcpy: Likewise.
354 * modules/memrchr: Likewise.
355 * modules/stpcpy: Likewise.
356 * modules/stpncpy: Likewise.
357 * modules/strcase: Likewise.
358 * modules/strchrnul: Likewise.
359 * modules/strdup: Likewise.
360 * modules/strndup: Likewise.
361 * modules/strnlen: Likewise.
362 * modules/strpbrk: Likewise.
363 * modules/strsep: Likewise.
364 * modules/strstr: Likewise.
365 * modules/strtok_r: Likewise.
366 * tests/test-dirname.c: Don't include "strdup.h", since
367 <string.h> now suffices.
368 * tests/test-memmem.c: Don't include "memmem.h", since
369 <string.h> now suffices.
371 2007-01-25 Bruno Haible <bruno@clisp.org>
373 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
376 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
377 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
378 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
379 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
381 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
382 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
383 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
384 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
385 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
386 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
388 2007-01-24 Bruno Haible <bruno@clisp.org>
390 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
391 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
392 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
393 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
395 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
396 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
397 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
398 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
399 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
400 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
402 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
404 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
405 Reported by Ralf Wildenhues.
407 2007-01-24 Bruno Haible <bruno@clisp.org>
409 Drop AC_REQUIRE calls that are redundant with the module dependencies.
410 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
412 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
413 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
414 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
416 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
418 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
419 Don't use 'exit'; just return from 'main'.
420 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
422 * lib/fnmatch_.h: Readjust white space and comments to match
423 glibc, to avoid spurious diffs.
425 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
427 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
428 2004-12-01 change by Jakub Jelinek, since this code won't compile
429 if !LIBC. Problem reported by Bob Proulx.
431 2007-01-23 Bruno Haible <bruno@clisp.org>
433 * lib/striconveh.c: Include c-strcaseeq.h.
434 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
435 * modules/striconveh (Depends-on): Add c-strcaseeq.
437 2007-01-23 Bruno Haible <bruno@clisp.org>
439 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
441 * modules/c-strcaseeq: New file.
442 * lib/c-strcaseeq.h: New file.
444 * modules/streq: New file.
445 * lib/streq.h: New file.
447 2007-01-23 Bruno Haible <bruno@clisp.org>
449 * modules/striconveha-tests: New file.
450 * tests/test-striconveha.c: New file.
452 * lib/striconveha.h: Include <stdbool.h>.
453 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
454 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
455 (mem_iconveha_notranslit): Renamed from mem_iconveha.
456 (mem_iconveha): New function.
457 (str_iconveha_notranslit): Renamed from str_iconveha.
458 (str_iconveha): New function.
459 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
462 2007-01-23 Bruno Haible <bruno@clisp.org>
464 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
465 encodings without forgiving before trying any encoding with handler.
466 (str_iconveha): Try all encodings without forgiving before trying any
467 encoding with handler.
469 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
471 Import the following changes from libc.
473 2005-10-14 Ulrich Drepper <drepper@redhat.com>
475 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
477 2004-12-01 Jakub Jelinek <jakub@redhat.com>
479 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
480 normal_bracket label.
482 2004-09-01 Jakub Jelinek <jakub@redhat.com>
485 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
486 to normal_bracket after fetching the next character.
488 2007-01-22 Bruno Haible <bruno@clisp.org>
490 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
492 * lib/striconveh.c (iconv_carefully_1): New function.
493 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
495 (str_cd_iconveh): Update.
496 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
497 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
498 * tests/test-striconveh.c (MAGIC): New macro.
499 (new_offsets): New function.
500 (main): Test call with and without offsets.
502 2007-01-22 Bruno Haible <bruno@clisp.org>
504 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
505 * modules/sys_select (Makefile.am): Likewise.
506 * modules/sys_socket (Makefile.am): Likewise.
507 * modules/sys_time (Makefile.am): Likewise.
509 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
511 * modules/gettimeofday (License): Change from GPL to LGPL, since
512 gettimeofday is a library function.
514 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
516 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
518 2007-01-21 Bruno Haible <bruno@clisp.org>
520 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
522 2007-01-21 Bruno Haible <bruno@clisp.org>
524 * modules/striconveha: New file.
525 * lib/striconveha.h: New file.
526 * lib/striconveha.c: New file.
527 * MODULES.html.sh (Internationalization functions): Add striconveha.
528 * lib/striconv.c (str_iconv): Optimize the case of an empty input
530 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
532 2007-01-21 Bruno Haible <bruno@clisp.org>
534 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
535 * lib/striconveh.c (str_iconveh): Likewise.
537 2007-01-21 Bruno Haible <bruno@clisp.org>
539 * lib/striconveh.h (mem_iconveh): New declaration.
540 * lib/striconveh.c (mem_iconveh): New function.
541 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
543 2007-01-21 Bruno Haible <bruno@clisp.org>
545 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
547 * lib/striconveh.h (mem_cd_iconveh): Change specification.
548 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
549 original result buffer.
550 (str_cd_iconveh): Update.
551 * tests/test-striconveh.c (main): Update.
553 * lib/striconv.h (mem_cd_iconv): Change specification.
554 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
556 (str_cd_iconv): Update.
557 * tests/test-striconv.c (main): Update.
559 2007-01-21 Bruno Haible <bruno@clisp.org>
561 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
563 2007-01-20 Jim Meyering <jim@meyering.net>
565 * lib/userspec.c (parse_with_separator): If a user or group string
566 starts with "+", skip the corresponding name-to-ID look-up, since
567 such a look-up must fail: user and group names may not include "+".
569 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
571 * lib/poll.c: Include sys/time.h and time.h unconditionally,
572 since we now assume the sys_time module.
573 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
574 check for sys/time.h; no longer needed.
575 * modules/poll (Depends-on): Depend on sys_time.
577 2007-01-18 Bruno Haible <bruno@clisp.org>
579 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
580 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
582 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
585 * tests/test-gettimeofday.c: Include <time.h>.
586 (dummy): Remove variable.
588 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
589 gl_HEADER_SYS_TIME_H.
590 (gl_HEADER_SYS_TIME_H): New macro.
592 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
593 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
594 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
595 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
596 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
597 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
598 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
599 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
600 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
601 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
602 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
604 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
605 last change; it caused a compilation error when cross-compiling to
608 2007-01-18 Jim Meyering <jim@meyering.net>
610 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
611 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
612 than the race-prone "test -d sys || mkdir sys".
613 (configure.ac): Use AC_PROG_MKDIR_P.
614 * modules/sys_select: Likewise.
615 * modules/sys_socket: Likewise.
616 * modules/sys_time: Likewise.
618 2007-01-18 Eric Blake <ebb9@byu.net>
620 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
621 replace gettimeofday.
622 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
623 name, to avoid infinite recursion.
625 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
627 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
629 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
630 assume timespec.h defines struct timeval.
631 * lib/settime.c: Likewise.
632 * lib/utimens.c: Likewise.
633 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
634 since we now assume the gettimeofday module.
635 * lib/tempname.c (__gen_tempname): Likewise.
636 * lib/gettimeofday.h: Remove.
637 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
638 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
639 Include <time.h>, for 'time()'.
640 (localtime_buffer_addr): Also use this workaround if
641 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
642 to simplify the uses. All uses changed.
643 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
644 that #undef is inside {}, and 'const' follows type name consistently.
645 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
646 (gettimeofday): Do not use the maximum possible value for
647 tv->tv_usec, since that might break usages other than ls.c.
648 Instead, we'll leave ls.c alone. This undoes today's patch
649 by Bruno. Add a compile-time warning for 1s-clock resolution;
650 we've never observed the problem but might as well keep the
652 * lib/nanosleep.c: Include timespec.h first, for interface check.
653 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
654 now assume the sys_time module.
655 * lib/tempname.c: Likewise.
656 * lib/timespec.h: Likewise.
657 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
659 * lib/strftime.c: Likewise.
660 * lib/timespec.h: Likewise.
661 * lib/posixtm.c: Include posixtm.h first, for interface check.
662 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
663 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
664 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
665 * lib/sys_time_.h: New file.
666 * lib/timespec.h (struct timespec): Use long int, not long.
667 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
668 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
669 Remove obsolescent call to AC_HEADER_TIME.
670 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
671 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
672 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
673 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
675 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
676 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
677 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
678 into the sys_time module. Check for gettimeofday just once.
679 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
680 for gettimeofday signature to just check the signature. Merely
681 compile it, since linking doesn't test signature. Improve test for
682 whether gettimeofday.o is actually needed.
683 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
684 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
685 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
686 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
687 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
688 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
689 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
690 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
691 than worrying about sys/time.h.
692 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
693 Don't bother worrying about TIME_WITH_SYS_TIME.
694 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
695 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
696 * m4/sys_time_h.m4: New file.
697 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
698 Don't include sys/time.h. Return from main rather than exiting.
699 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
701 * modules/gethrxtime (Depends-on): Add sys_time.
702 * modules/gettime (Depends-on): Likewise.
703 * modules/gettimeofday (Depends-on): Likewise.
704 * modules/nanosleep (Depends-on): Likewise.
705 * modules/settime (Depends-on): Likewise.
706 * modules/tempname (Depends-on): Likewise.
707 * modules/utimens (Depends-on): Likewise.
708 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
709 (Include:) Change back to <sys/time.h>.
710 (Maintainer:) Add self.
711 * modules/sys_time: New file.
712 * modules/tempname (Depends-on): Add gettimeofday.
713 * tests/test-gettimeofday.c: Include <sys/time.h>
714 rather than gettimeofday.h.
716 2007-01-17 Bruno Haible <bruno@clisp.org>
718 * gnulib-tool (func_get_license): Revert last patch. Instead, let
719 the license default to GPL.
720 (func_create_testdir): Don't complain if a module is LGPL and its
721 tests module depends on GPLed modules.
723 2007-01-17 Bruno Haible <bruno@clisp.org>
725 * lib/gettimeofday.c (gettimeofday): Add code for the case
726 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
727 maximum possible value for tv->tv_usec, rather than the minimum one.
729 2005-10-08 Martin Lambers <marlam@marlam.de>
730 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
731 2007-01-16 Bruno Haible <bruno@clisp.org>
733 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
734 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
735 gl_FUNC_GETTIMEOFDAY.
736 (Include): Add gettimeofday.h.
737 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
738 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
739 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
740 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
741 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
742 * lib/gettimeofday.h: New file.
743 * lib/gettimeofday.c: Include <sys/timeb.h>.
744 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
745 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
746 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
749 * tests/test-gettimeofday.c: New file.
750 * modules/gettimeofday-tests: New file.
752 2007-01-16 Eric Blake <ebb9@byu.net>
754 * modules/fnmatch (Depends-on): Depend on wchar.
755 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
756 * m4/fnmatch.m4: Likewise.
757 * modules/mbchar (Makefile.am): Assume <wchar.h>.
758 * m4/mbchar.m4: Likewise.
759 * modules/mbswidth (Depends-on): Depend on wchar.
760 * lib/mbswidth.c: Assume <wchar.h>.
761 * m4/mbswidth.m4: Likewise.
762 * modules/quotearg (Depends-on): Depend on wchar.
763 * lib/quotearg.c: Assume <wchar.h>.
764 * m4/quotearg.m4: Likewise.
765 * modules/regex (Depends-on): Depend on wchar.
766 * lib/regex_internal.h: Assume <wchar.h>.
767 * m4/regex.m4: Likewise.
768 * modules/stdint (Depends-on): Depend on wchar.
769 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
770 * m4/stdint.m4: Likewise.
771 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
772 * modules/strftime (Depends-on): Depend on wchar.
773 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
774 * modules/strtol (Depends-on): Depend on wchar.
775 * lib/strtol.c: Assume <wchar.h>.
776 * modules/wcwidth (Depends-on): Depend on wchar.
777 * lib/wcwidth.h: Assume <wchar.h>.
778 * m4/wcwidth.m4: Likewise.
780 2007-01-16 Bruno Haible <bruno@clisp.org>
782 * modules/csharpexec-script: New, created from...
783 * modules/csharpexec: ... this.
785 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
787 * modules/javaexec-script: New, created from...
788 * modules/javaexec: ... this.
790 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
792 * modules/poll (Dependencies): Add sys_select.
794 2007-01-15 Jim Meyering <jim@meyering.net>
796 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
797 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
798 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
799 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
801 2007-01-15 Bruno Haible <bruno@clisp.org>
803 * modules/striconveh: New file.
804 * lib/striconveh.h: New file.
805 * lib/striconveh.c: New file.
806 * MODULES.html.sh (Internationalization functions): Add striconveh.
808 * modules/striconveh-tests: New file.
809 * tests/test-striconveh.c: New file.
811 2007-01-15 Bruno Haible <bruno@clisp.org>
813 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
814 not from GNU libiconv or GNU libc.
816 2007-01-15 Bruno Haible <bruno@clisp.org>
818 * doc/gnulib-intro.texi (Copyright): Explain the different license
819 terms for module descriptions, autoconf macros, tests, documentation.
821 2007-01-14 Bruno Haible <bruno@clisp.org>
823 * modules/striconv-tests: New file.
824 * tests/test-striconv.c: New file.
826 2007-01-14 Bruno Haible <bruno@clisp.org>
828 * modules/iconv-tests: New file.
829 * tests/test-iconv.c: New file.
831 2007-01-14 Bruno Haible <bruno@clisp.org>
833 * gnulib-tool (func_get_license): For test modules, use the license of
836 2007-01-14 Bruno Haible <bruno@clisp.org>
838 * modules/iconv (Include): Clarify that <iconv.h> can only be included
839 if iconv is found to exist.
841 2007-01-14 Bruno Haible <bruno@clisp.org>
843 * modules/c-ctype-tests: New file.
844 * tests/test-c-ctype.c: New file.
846 2007-01-14 Bruno Haible <bruno@clisp.org>
848 * modules/binary-io-tests: New file.
849 * tests/test-binary-io.sh: New file.
850 * tests/test-binary-io.c: New file.
852 2007-01-14 Bruno Haible <bruno@clisp.org>
854 * modules/array-oset-tests: New file.
855 * tests/test-array_oset.c: New file.
857 2007-01-14 Bruno Haible <bruno@clisp.org>
859 * modules/array-list-tests: New file.
860 * tests/test-array_list.c: New file.
862 2007-01-14 Bruno Haible <bruno@clisp.org>
864 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
866 Reported by Simon Josefsson in
867 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
869 2007-01-14 Bruno Haible <bruno@clisp.org>
871 * modules/allocsa-tests: New file.
872 * tests/test-allocsa.c: New file.
874 2007-01-14 Bruno Haible <bruno@clisp.org>
876 * modules/fchdir (Depends-on): Add absolute-header.
877 * modules/unistd (Depends-on): Likewise.
879 2006-12-30 Bruno Haible <bruno@clisp.org>
881 * modules/fchdir: New file.
882 * modules/unistd (Files): Add lib/unistd_.h.
883 (Makefile.am): Generate unistd.h from unistd_.h.
884 * lib/fchdir.c: New file.
885 * lib/dirent_.h: New file.
886 * lib/unistd_.h: New file.
887 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
888 * m4/fchdir.m4: New file.
889 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
890 (gl_HEADER_UNISTD): Invoke it.
891 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
893 * lib/backupfile.c (opendir, closedir): Undefine.
894 * lib/chown.c (open, close): Undefine.
895 * lib/clean-temp.c (open, close): Undefine.
896 * lib/copy-file.c (open, close): Undefine.
897 * lib/execute.c (open, close): Undefine.
898 * lib/fsusage.c (open, close): Undefine.
899 * lib/gc-gnulib.c (open, close): Undefine.
900 * lib/getcwd.c (opendir, closedir): Undefine.
901 * lib/glob.c (opendir, closedir): Undefine.
902 * lib/javacomp.c (open, close): Undefine.
903 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
904 * lib/openat-proc.c (open, close): Undefine.
905 * lib/pagealign_alloc.c (open, close): Undefine.
906 * lib/pipe.c (open, close): Undefine.
907 * lib/progreloc.c (open, close): Undefine.
908 * lib/savedir.c (opendir, closedir): Undefine.
909 * lib/utime.c (open, close): Undefine.
910 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
912 2007-01-10 Bruno Haible <bruno@clisp.org>
914 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
916 2007-01-12 Eric Blake <ebb9@byu.net>
918 Provide a robust <wchar.h>. Further simplifications are now
919 possible in other modules, but not included here.
920 * modules/wchar: New module.
921 * m4/wchar.m4: New file.
922 * lib/wchar_.h: Likewise.
923 * modules/mbchar (Depends-on): Depend on wchar, as the first use
925 * MODULES.html.sh (Extended multibyte and wide character utilities):
928 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
930 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
931 to a reasonable default for memory allocation.
932 (xreadlink): Don't allocate a huge buffer, to work around a buggy
933 file system that reports garbage st_size values for symlinks.
934 Problem reported by Liyang Hu.
936 2007-01-11 Simon Josefsson <simon@josefsson.org>
938 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
939 Emacs .#* auto-save files).
941 2007-01-11 Bruno Haible <bruno@clisp.org>
943 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
946 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
948 Use @...@ consistently in lib/wctype_.h.
949 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
950 on it being set to 1 or 0.
951 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
952 go back to AC_SUBSTing it.
953 * modules/wctype (Makefile.am): Undo previous change.
955 2007-01-10 Eric Blake <ebb9@byu.net>
957 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
958 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
959 * modules/wctype (Makefile.am): Likewise.
960 Reported by Chris McGuire.
962 2007-01-10 Jim Meyering <jim@meyering.net>
964 fts.c: a small readability/maintainability improvement
965 * lib/fts.c (fts_read): Make this code slightly more readable and
966 maintainable by hoisting the "sp->fts_cur = p" assignments to
967 immediately follow the statements that set P. Derived from
968 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
970 2007-01-10 Eric Blake <ebb9@byu.net>
972 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
973 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
974 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
975 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
976 Reported by Chris McGuire.
978 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
980 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
983 2007-01-09 Bruno Haible <bruno@clisp.org>
985 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
986 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
988 (func_module): Use them.
990 2007-01-09 Bruno Haible <bruno@clisp.org>
992 * modules/unistr/base: New file.
993 * lib/unistr.h: New file.
995 * modules/unistr/u8-to-u16: New file.
996 * lib/unistr/u8-to-u16.c: New file.
998 * modules/unistr/u8-to-u32: New file.
999 * lib/unistr/u8-to-u32.c: New file.
1001 * modules/unistr/u16-to-u8: New file.
1002 * lib/unistr/u16-to-u8.c: New file.
1004 * modules/unistr/u16-to-u32: New file.
1005 * lib/unistr/u16-to-u32.c: New file.
1007 * modules/unistr/u32-to-u8: New file.
1008 * lib/unistr/u32-to-u8.c: New file.
1010 * modules/unistr/u32-to-u16: New file.
1011 * lib/unistr/u32-to-u16.c: New file.
1013 * modules/unistr/u8-check: New file.
1014 * modules/unistr/u16-check: New file.
1015 * modules/unistr/u32-check: New file.
1016 * lib/unistr/u8-check.c: New file.
1017 * lib/unistr/u16-check.c: New file.
1018 * lib/unistr/u32-check.c: New file.
1020 * modules/unistr/u8-chr: New file.
1021 * modules/unistr/u16-chr: New file.
1022 * modules/unistr/u32-chr: New file.
1023 * lib/unistr/u8-chr.c: New file.
1024 * lib/unistr/u16-chr.c: New file.
1025 * lib/unistr/u32-chr.c: New file.
1027 * modules/unistr/u8-cmp: New file.
1028 * modules/unistr/u16-cmp: New file.
1029 * modules/unistr/u32-cmp: New file.
1030 * lib/unistr/u8-cmp.c: New file.
1031 * lib/unistr/u16-cmp.c: New file.
1032 * lib/unistr/u32-cmp.c: New file.
1034 * modules/unistr/u8-cpy: New file.
1035 * modules/unistr/u16-cpy: New file.
1036 * modules/unistr/u32-cpy: New file.
1037 * lib/unistr/u8-cpy.c: New file.
1038 * lib/unistr/u16-cpy.c: New file.
1039 * lib/unistr/u32-cpy.c: New file.
1040 * lib/unistr/u-cpy.h: New file.
1042 * modules/unistr/u8-cpy-alloc: New file.
1043 * modules/unistr/u16-cpy-alloc: New file.
1044 * modules/unistr/u32-cpy-alloc: New file.
1045 * lib/unistr/u8-cpy-alloc.c: New file.
1046 * lib/unistr/u16-cpy-alloc.c: New file.
1047 * lib/unistr/u32-cpy-alloc.c: New file.
1048 * lib/unistr/u-cpy-alloc.h: New file.
1050 * modules/unistr/u8-endswith: New file.
1051 * modules/unistr/u16-endswith: New file.
1052 * modules/unistr/u32-endswith: New file.
1053 * lib/unistr/u8-endswith.c: New file.
1054 * lib/unistr/u16-endswith.c: New file.
1055 * lib/unistr/u32-endswith.c: New file.
1056 * lib/unistr/u-endswith.h: New file.
1058 * modules/unistr/u8-mblen: New file.
1059 * modules/unistr/u16-mblen: New file.
1060 * modules/unistr/u32-mblen: New file.
1061 * lib/unistr/u8-mblen.c: New file.
1062 * lib/unistr/u16-mblen.c: New file.
1063 * lib/unistr/u32-mblen.c: New file.
1065 * modules/unistr/u8-mbtouc: New file.
1066 * modules/unistr/u16-mbtouc: New file.
1067 * modules/unistr/u32-mbtouc: New file.
1068 * lib/unistr/u8-mbtouc.c: New file.
1069 * lib/unistr/u16-mbtouc.c: New file.
1070 * lib/unistr/u32-mbtouc.c: New file.
1072 * modules/unistr/u8-mbtouc-safe: New file.
1073 * modules/unistr/u16-mbtouc-safe: New file.
1074 * modules/unistr/u32-mbtouc-safe: New file.
1075 * lib/unistr/u8-mbtouc-safe.c: New file.
1076 * lib/unistr/u16-mbtouc-safe.c: New file.
1077 * lib/unistr/u32-mbtouc-safe.c: New file.
1079 * modules/unistr/u8-move: New file.
1080 * modules/unistr/u16-move: New file.
1081 * modules/unistr/u32-move: New file.
1082 * lib/unistr/u8-move.c: New file.
1083 * lib/unistr/u16-move.c: New file.
1084 * lib/unistr/u32-move.c: New file.
1085 * lib/unistr/u-move.h: New file.
1087 * modules/unistr/u8-next: New file.
1088 * modules/unistr/u16-next: New file.
1089 * modules/unistr/u32-next: New file.
1090 * lib/unistr/u8-next.c: New file.
1091 * lib/unistr/u16-next.c: New file.
1092 * lib/unistr/u32-next.c: New file.
1094 * modules/unistr/u8-prev: New file.
1095 * modules/unistr/u16-prev: New file.
1096 * modules/unistr/u32-prev: New file.
1097 * lib/unistr/u8-prev.c: New file.
1098 * lib/unistr/u16-prev.c: New file.
1099 * lib/unistr/u32-prev.c: New file.
1101 * modules/unistr/u8-set: New file.
1102 * modules/unistr/u16-set: New file.
1103 * modules/unistr/u32-set: New file.
1104 * lib/unistr/u8-set.c: New file.
1105 * lib/unistr/u16-set.c: New file.
1106 * lib/unistr/u32-set.c: New file.
1107 * lib/unistr/u-set.h: New file.
1109 * modules/unistr/u8-startswith: New file.
1110 * modules/unistr/u16-startswith: New file.
1111 * modules/unistr/u32-startswith: New file.
1112 * lib/unistr/u8-startswith.c: New file.
1113 * lib/unistr/u16-startswith.c: New file.
1114 * lib/unistr/u32-startswith.c: New file.
1115 * lib/unistr/u-startswith.h: New file.
1117 * modules/unistr/u8-stpcpy: New file.
1118 * modules/unistr/u16-stpcpy: New file.
1119 * modules/unistr/u32-stpcpy: New file.
1120 * lib/unistr/u8-stpcpy.c: New file.
1121 * lib/unistr/u16-stpcpy.c: New file.
1122 * lib/unistr/u32-stpcpy.c: New file.
1123 * lib/unistr/u-stpcpy.h: New file.
1125 * modules/unistr/u8-stpncpy: New file.
1126 * modules/unistr/u16-stpncpy: New file.
1127 * modules/unistr/u32-stpncpy: New file.
1128 * lib/unistr/u8-stpncpy.c: New file.
1129 * lib/unistr/u16-stpncpy.c: New file.
1130 * lib/unistr/u32-stpncpy.c: New file.
1131 * lib/unistr/u-stpncpy.h: New file.
1133 * modules/unistr/u8-strcat: New file.
1134 * modules/unistr/u16-strcat: New file.
1135 * modules/unistr/u32-strcat: New file.
1136 * lib/unistr/u8-strcat.c: New file.
1137 * lib/unistr/u16-strcat.c: New file.
1138 * lib/unistr/u32-strcat.c: New file.
1139 * lib/unistr/u-strcat.h: New file.
1141 * modules/unistr/u8-strchr: New file.
1142 * modules/unistr/u16-strchr: New file.
1143 * modules/unistr/u32-strchr: New file.
1144 * lib/unistr/u8-strchr.c: New file.
1145 * lib/unistr/u16-strchr.c: New file.
1146 * lib/unistr/u32-strchr.c: New file.
1148 * modules/unistr/u8-strcmp: New file.
1149 * modules/unistr/u16-strcmp: New file.
1150 * modules/unistr/u32-strcmp: New file.
1151 * lib/unistr/u8-strcmp.c: New file.
1152 * lib/unistr/u16-strcmp.c: New file.
1153 * lib/unistr/u32-strcmp.c: New file.
1155 * modules/unistr/u8-strcpy: New file.
1156 * modules/unistr/u16-strcpy: New file.
1157 * modules/unistr/u32-strcpy: New file.
1158 * lib/unistr/u8-strcpy.c: New file.
1159 * lib/unistr/u16-strcpy.c: New file.
1160 * lib/unistr/u32-strcpy.c: New file.
1161 * lib/unistr/u-strcpy.h: New file.
1163 * modules/unistr/u8-strcspn: New file.
1164 * modules/unistr/u16-strcspn: New file.
1165 * modules/unistr/u32-strcspn: New file.
1166 * lib/unistr/u8-strcspn.c: New file.
1167 * lib/unistr/u16-strcspn.c: New file.
1168 * lib/unistr/u32-strcspn.c: New file.
1169 * lib/unistr/u-strcspn.h: New file.
1171 * modules/unistr/u8-strdup: New file.
1172 * modules/unistr/u16-strdup: New file.
1173 * modules/unistr/u32-strdup: New file.
1174 * lib/unistr/u8-strdup.c: New file.
1175 * lib/unistr/u16-strdup.c: New file.
1176 * lib/unistr/u32-strdup.c: New file.
1177 * lib/unistr/u-strdup.h: New file.
1179 * modules/unistr/u8-strlen: New file.
1180 * modules/unistr/u16-strlen: New file.
1181 * modules/unistr/u32-strlen: New file.
1182 * lib/unistr/u8-strlen.c: New file.
1183 * lib/unistr/u16-strlen.c: New file.
1184 * lib/unistr/u32-strlen.c: New file.
1185 * lib/unistr/u-strlen.h: New file.
1187 * modules/unistr/u8-strmblen: New file.
1188 * modules/unistr/u16-strmblen: New file.
1189 * modules/unistr/u32-strmblen: New file.
1190 * lib/unistr/u8-strmblen.c: New file.
1191 * lib/unistr/u16-strmblen.c: New file.
1192 * lib/unistr/u32-strmblen.c: New file.
1194 * modules/unistr/u8-strmbtouc: New file.
1195 * modules/unistr/u16-strmbtouc: New file.
1196 * modules/unistr/u32-strmbtouc: New file.
1197 * lib/unistr/u8-strmbtouc.c: New file.
1198 * lib/unistr/u16-strmbtouc.c: New file.
1199 * lib/unistr/u32-strmbtouc.c: New file.
1201 * modules/unistr/u8-strncat: New file.
1202 * modules/unistr/u16-strncat: New file.
1203 * modules/unistr/u32-strncat: New file.
1204 * lib/unistr/u8-strncat.c: New file.
1205 * lib/unistr/u16-strncat.c: New file.
1206 * lib/unistr/u32-strncat.c: New file.
1207 * lib/unistr/u-strncat.h: New file.
1209 * modules/unistr/u8-strncmp: New file.
1210 * modules/unistr/u16-strncmp: New file.
1211 * modules/unistr/u32-strncmp: New file.
1212 * lib/unistr/u8-strncmp.c: New file.
1213 * lib/unistr/u16-strncmp.c: New file.
1214 * lib/unistr/u32-strncmp.c: New file.
1216 * modules/unistr/u8-strncpy: New file.
1217 * modules/unistr/u16-strncpy: New file.
1218 * modules/unistr/u32-strncpy: New file.
1219 * lib/unistr/u8-strncpy.c: New file.
1220 * lib/unistr/u16-strncpy.c: New file.
1221 * lib/unistr/u32-strncpy.c: New file.
1222 * lib/unistr/u-strncpy.h: New file.
1224 * modules/unistr/u8-strnlen: New file.
1225 * modules/unistr/u16-strnlen: New file.
1226 * modules/unistr/u32-strnlen: New file.
1227 * lib/unistr/u8-strnlen.c: New file.
1228 * lib/unistr/u16-strnlen.c: New file.
1229 * lib/unistr/u32-strnlen.c: New file.
1230 * lib/unistr/u-strnlen.h: New file.
1232 * modules/unistr/u8-strpbrk: New file.
1233 * modules/unistr/u16-strpbrk: New file.
1234 * modules/unistr/u32-strpbrk: New file.
1235 * lib/unistr/u8-strpbrk.c: New file.
1236 * lib/unistr/u16-strpbrk.c: New file.
1237 * lib/unistr/u32-strpbrk.c: New file.
1238 * lib/unistr/u-strpbrk.h: New file.
1240 * modules/unistr/u8-strrchr: New file.
1241 * modules/unistr/u16-strrchr: New file.
1242 * modules/unistr/u32-strrchr: New file.
1243 * lib/unistr/u8-strrchr.c: New file.
1244 * lib/unistr/u16-strrchr.c: New file.
1245 * lib/unistr/u32-strrchr.c: New file.
1247 * modules/unistr/u8-strspn: New file.
1248 * modules/unistr/u16-strspn: New file.
1249 * modules/unistr/u32-strspn: New file.
1250 * lib/unistr/u8-strspn.c: New file.
1251 * lib/unistr/u16-strspn.c: New file.
1252 * lib/unistr/u32-strspn.c: New file.
1253 * lib/unistr/u-strspn.h: New file.
1255 * modules/unistr/u8-strstr: New file.
1256 * modules/unistr/u16-strstr: New file.
1257 * modules/unistr/u32-strstr: New file.
1258 * lib/unistr/u8-strstr.c: New file.
1259 * lib/unistr/u16-strstr.c: New file.
1260 * lib/unistr/u32-strstr.c: New file.
1261 * lib/unistr/u-strstr.h: New file.
1263 * modules/unistr/u8-strtok: New file.
1264 * modules/unistr/u16-strtok: New file.
1265 * modules/unistr/u32-strtok: New file.
1266 * lib/unistr/u8-strtok.c: New file.
1267 * lib/unistr/u16-strtok.c: New file.
1268 * lib/unistr/u32-strtok.c: New file.
1269 * lib/unistr/u-strtok.h: New file.
1271 * modules/unistr/u8-uctomb: New file.
1272 * modules/unistr/u16-uctomb: New file.
1273 * modules/unistr/u32-uctomb: New file.
1274 * lib/unistr/u8-uctomb.c: New file.
1275 * lib/unistr/u16-uctomb.c: New file.
1276 * lib/unistr/u32-uctomb.c: New file.
1278 * MODULES.html.sh (Unicode string functions): Add the new modules.
1280 2007-01-08 Bruno Haible <bruno@clisp.org>
1282 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1283 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1286 2007-01-08 Karl Berry <karl@gnu.org>
1288 * doc/error.texi: mention that main() fns must set program_name
1289 when progname is used.
1291 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
1293 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1294 WCTYPE_H is empty, for the benefit of builds from non-distclean
1295 directories. Problem reported by Eric Blake in
1296 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1298 2007-01-08 Bruno Haible <bruno@clisp.org>
1300 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1301 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1302 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1303 PROVIDE_CANONICALIZE_FILENAME_MODE.
1304 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1306 2007-01-08 Bruno Haible <bruno@clisp.org>
1308 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1309 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1310 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1311 * lib/fts.c: Likewise.
1312 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1314 2006-12-25 Bruno Haible <bruno@clisp.org>
1316 * modules/utf8-ucs4-safe: New file.
1317 * lib/utf8-ucs4-safe.h: New file.
1318 * lib/unistr/utf8-ucs4-safe.c: New file.
1320 * modules/utf16-ucs4-safe: New file.
1321 * lib/utf16-ucs4-safe.h: New file.
1322 * lib/unistr/utf16-ucs4-safe.c: New file.
1324 * MODULES.html.sh (Unicode string functions): Add the new modules.
1326 2007-01-08 Bruno Haible <bruno@clisp.org>
1328 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1329 (Depends-on): Add unitypes.
1330 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1331 (u8_mbtouc_aux): Move out to separate file.
1332 (u8_mbtouc): Use ucs4_t, uint8_t types.
1333 * lib/unistr/utf8-ucs4.c: New file.
1335 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1336 (Depends-on): Add unitypes.
1337 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1338 (u16_mbtouc_aux): Move out to separate file.
1339 (u16_mbtouc): Use ucs4_t, uint16_t types.
1340 * lib/unistr/utf16-ucs4.c: New file.
1342 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1343 (Depends-on): Add unitypes.
1344 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1345 (u8_uctomb_aux): Move out to separate file.
1346 (u8_uctomb): Use ucs4_t, uint8_t types.
1347 * lib/unistr/ucs4-utf8.c: New file.
1349 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1350 (Depends-on): Add unitypes.
1351 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1352 (u16_uctomb_aux): Move out to separate file.
1353 (u16_uctomb): Use ucs4_t, uint16_t types.
1354 * lib/unistr/ucs4-utf16.c: New file.
1356 2006-12-25 Bruno Haible <bruno@clisp.org>
1358 * modules/unitypes: New file.
1359 * lib/unitypes.h: New file.
1360 * MODULES.html.sh (func_all_modules): New section "Unicode string
1361 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1362 this section. Add unitypes.
1364 2007-01-08 Bruno Haible <bruno@clisp.org>
1366 Avoid variable names that conflict with those from libtool.
1367 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1368 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1369 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1370 library_names_spec to acl_library_names_spec, hardcode_* to
1372 Reported by Ralf Wildenhues.
1374 2007-01-08 Bruno Haible <bruno@clisp.org>
1376 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1378 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1380 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1381 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1383 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1385 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1386 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1387 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1388 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1390 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1392 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1393 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1395 * lib/gc-libgcrypt.c: Likewise.
1396 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1397 * modules/gc-arctwo (configure.ac): Likewise.
1398 * modules/gc-des (configure.ac): Likewise.
1399 * modules/gc-hmac-md5 (configure.ac): Likewise.
1400 * modules/gc-hmac-sha1 (configure.ac): Likewise.
1401 * modules/gc-md2 (configure.ac): Likewise.
1402 * modules/gc-md4 (configure.ac): Likewise.
1403 * modules/gc-md5 (configure.ac): Likewise.
1404 * modules/gc-random (configure.ac): Likewise.
1405 * modules/gc-rijndael (configure.ac): Likewise.
1406 * modules/gc-sha1 (configure.ac): Likewise.
1408 2007-01-08 Bruno Haible <bruno@clisp.org>
1410 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1412 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1414 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1416 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1417 * modules/fcntl-safer (configure.ac): Likewise.
1418 * modules/fopen-safer (configure.ac): Likewise.
1419 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1420 GNULIB_FWRITEERROR macro definition.
1422 2007-01-08 Bruno Haible <bruno@clisp.org>
1424 * m4/gnulib-common.m4: New file.
1425 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1426 (func_get_filelist): Add m4/gnulib-common.m4.
1428 2007-01-08 Bruno Haible <bruno@clisp.org>
1430 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1433 2007-01-08 Jim Meyering <jim@meyering.net>
1435 Use a more robust test for a "can't happen" condition.
1436 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1437 narrowed the st_size value. Presuming the "can't happen" condition
1438 is true, that narrowing could conceivably convert an invalid st_size
1439 value into a valid one. Instead, use a change based on Matthew
1440 Woehlke's original patch.
1442 Slight readability improvement: use an assert-like macro
1443 in place of literal "abort ()" uses.
1444 * lib/fts.c (fts_assert): Define.
1445 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1446 Use this macro instead of a bare 'abort'.
1448 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
1450 Don't worry about using IRIX 5.3's wctype.h broken definitions;
1451 simply work around them.
1452 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1453 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1454 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1455 Don't bother to define as macros, since the standard doesn't require it.
1456 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1457 longer worry about IRIX 5.3.
1458 (HAVE_WCTYPE_CTMP_BUG): Remove.
1460 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
1462 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1463 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
1464 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1465 Problems reported by Georg Schwarz for IRIX 5.3.
1467 * gnulib-tool (autoconf_minversion): Take the maximum version number
1468 found, not the minimum. Problem reported by James Youngman.
1470 2007-01-03 Karl Berry <karl@gnu.org>
1472 * doc/error.texi: new file, explaining interaction with progname.
1473 * doc/gnulib.texi: include it. Update copyright.
1475 2007-01-03 Simon Josefsson <simon@josefsson.org>
1477 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1478 AC_CANONICAL_HOST, to improve autobuild outputs.
1480 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
1481 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1483 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1484 sockets, server sockets, and other file descriptors. Count errors
1485 to compute the return value. Reorder the code a bit to be easier
1486 to follow. Don't set event bits that were not requested (except
1487 POLLERR and POLLHUP).
1489 2007-01-01 Bruno Haible <bruno@clisp.org>
1491 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1493 2007-01-03 Jim Meyering <jim@meyering.net>
1495 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
1497 2007-01-02 Bruno Haible <bruno@clisp.org>
1499 * modules/settime (Include): Require timespec.h.
1500 * modules/nanosleep (Include): Likewise.
1502 2007-01-01 Bruno Haible <bruno@clisp.org>
1504 * gnulib-tool (func_emit_copyright_notice): Bump year.
1505 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1507 2007-01-01 Bruno Haible <bruno@clisp.org>
1509 Improve support for OpenBSD.
1510 * build-aux/config.rpath (libname_spec): Export.
1511 (library_names_spec): New variable. Export.
1512 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1513 library_names_spec from the config.rpath output. Locate shared library
1514 through the name pattern in library_names_spec.
1516 2007-01-01 Eric Blake <ebb9@byu.net>
1518 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1520 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
1522 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1523 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
1524 assume the C locale, and avoid an "eval" that could cause trouble.
1525 Problem with SORT reported by Bob Proulx.
1527 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1528 Define. Trivial patch from Henning Nielsen Lund, originally
1529 sent to bug-grep@gnu.org today.
1531 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
1533 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1534 struct stat. Problem reported by Henning Nielsen Lund.
1535 * lib/acl.c: Include acl.h first, to check interface. Don't
1536 bother to include sys/types.h and sys/stat.h again.
1538 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
1540 Import the following change from libc; problem reported by
1543 2005-10-13 Ulrich Drepper <drepper@redhat.com>
1546 * lib/argp.h: Remove __NTH for __argp_usage inline function.
1548 2006-12-28 Jim Meyering <jim@meyering.net>
1550 * build-aux/announce-gen: Do not assume that the package
1551 builds any of tar.gz, tar.bz2, and .xdelta files.
1552 Suggestion from Simon Josefsson.
1554 2006-12-28 Simon Josefsson <simon@josefsson.org>
1556 * modules/announce-gen: New file.
1558 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
1560 * lib/mbchar.h: Just include <wctype.h>; the wctype module
1561 handles its gotchas now.
1562 * lib/mbswidth.c: Likewise.
1563 * lib/wcwidth.h: Likewise.
1564 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1565 and iswcntrl; the wctype module does this stuff now.
1566 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1567 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1568 * modules/mbchar (Depends-on): Add wctype.
1569 * modules/mbswidth (Depends-on): Likewise.
1570 * modules/wcwidth (Depends-on): Likewise.
1572 2006-12-27 Eric Blake <ebb9@byu.net>
1574 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1575 module uses more than what <wctype.h> is required to provide.
1577 2006-12-26 Eric Blake <ebb9@byu.net>
1579 * gnulib-tool (sed_extract_prog): Avoid space-tab.
1581 2006-12-26 Eric Blake <ebb9@byu.net>
1583 * modules/absolute-header: New module.
1584 * modules/fcntl (Depends-on): Depend on it.
1585 * modules/inttypes (Depends-on): Likewise.
1586 * modules/stdint (Depends-on): Likewise.
1587 * modules/sys_stat (Depends-on): Likewise.
1588 * modules/wctype (Depends-on): Likewise.
1589 * MODULES.html.sh (Support for building libraries and
1590 executables): Document it.
1592 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
1594 * gnulib-tool (SED): Remove, undoing previous change.
1595 The problem was that it broke coreutils on Solaris, because
1596 "sed --posix" leaked into a makefile.
1597 (sed): New alias, if 'alias' and GNU sed.
1599 2006-12-24 Jim Meyering <jim@meyering.net>
1601 Work around an fchownat bug in glibc-2.4:
1602 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1603 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1604 in spite of the -P option.
1605 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1607 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1608 * modules/openat (Files): Add lib/fchownat.c.
1609 * lib/openat.c (fchownat): Don't define here. Move to...
1610 * lib/fchownat.c: ...this new file.
1612 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
1614 Fix bug reported by Bruno Haible in
1615 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1616 where quotearg.c didn't compile on Mac OS X 10.2 because it
1617 lacks <wchar.h> and wint_t.
1618 * lib/wctype_.h (__wctype_wint_t): New type.
1619 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1620 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1621 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1622 Arg is now of type __wctype_wint_t, not wint_t.
1623 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1624 substitute HAVE_WINT_T.
1625 * modules/wctype (Files): Add m4/wint_t.m4.
1626 (wctype.h): Substitute HAVE_WINT_T.
1628 2006-12-23 Bruno Haible <bruno@clisp.org>
1630 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1632 2006-12-23 Bruno Haible <bruno@clisp.org>
1634 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1636 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1639 2006-12-22 Bruno Haible <bruno@clisp.org>
1641 * lib/copy-file.c: Include acl.h.
1642 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1643 Close the file descriptors only after being done with copy_acl.
1644 * modules/copy-file (Depends-on): Add acl.
1646 2006-12-22 Bruno Haible <bruno@clisp.org>
1648 * gnulib-tool (SED): New variable.
1649 Use $SED instead of sed everywhere.
1651 2006-12-22 Bruno Haible <bruno@clisp.org>
1653 * modules/no-c++: New file.
1654 * m4/no-c++.m4: New file.
1655 * MODULES.html.sh (Support for building libraries and executables):
1658 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
1660 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1661 Include <limits.h>, and use its INT_MAX to rewrite the
1662 j loop so that it does not overflow 'int'. Problem reported by
1664 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1665 Play it safe by shifting left by 1 rather than multiplying by 2,
1666 as GCC is less likely to optimize this away when the value
1667 is signed (when it assumes overflow leads to undefined behavior).
1668 Also, don't assume time_t uses two's complement.
1670 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
1672 * MODULES.html.sh: New module wctype.
1673 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
1674 * lib/fnmatch.c: Don't bother to include <wchar.h> before
1675 <wctype.h>, since the new wctype module should fix this.
1676 * lib/quotearg.c: Include <wctype.h> unconditionally, since
1677 the wctype module should arrange for it.
1678 * lib/regex_internal.h: Likewise.
1679 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
1680 since the wctype module should handle this now.
1681 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
1682 * modules/fnmatch (Depends-on): Add wctype.
1683 * modules/quotearg (Depends-on): Likewise.
1684 * modules/regex (Depends-on): Likewise.
1686 2006-12-19 Bruno Haible <bruno@clisp.org>
1688 * lib/strdup.h [C++]: Wrap definitions in extern "C".
1689 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
1691 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1693 * modules/savewd (Depends-on): Fix dependency on fcntl.
1695 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
1697 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
1698 conforms to C99, rather than relying on the user's environment
1699 setting of STDINT_H.
1701 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
1702 and Eric Blake <ebb9@byu.net>
1704 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
1705 This is more consistent with the other defines here.
1706 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
1707 Port to z/OS. Problem reported by Paul Gilmartin.
1708 Change local vars to use gl_ prefix rather than ac_.
1709 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
1711 * modules/double-slash-root: New module.
1712 * modules/dirname (Files): Remove m4/double-slash-root.m4.
1713 (Depends-on): Add double-slash-root.
1714 * MODULES.html.sh (File system functions): Mention new module.
1716 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
1718 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
1719 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
1720 This is for the benefit of gzip, which doesn't do i18n.
1722 2006-12-12 Jim Meyering <jim@meyering.net>
1724 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
1725 Reported by Andreas Schwab <schwab@suse.de>.
1727 2006-12-12 Bruno Haible <bruno@clisp.org>
1729 Merge these changes.
1730 2006-09-05 Bruno Haible <bruno@clisp.org>
1731 * lib/iconvme.c (iconv_string): No need to save and restore errno when
1732 iconv_alloc succeeded.
1733 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
1734 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
1735 test for " && dest " at the end - dest is always != NULL there. Call
1736 iconv with 4xNULL arguments initially, to reset the state. Call iconv
1737 with 2xNULL arguments, also to flush the state storage. Handle the
1738 IRIX iconv behaviour. Realloc the final result, to throw away unused
1741 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
1743 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
1744 and fchmodat unconditionally, since glibc 2.4 has them.
1745 Problem reported by Arkadiusz Miskiewicz.
1747 2006-12-10 Bruno Haible <bruno@clisp.org>
1749 * gnulib-tool (func_import): Show the include files only for those
1750 modules that are copied and specified.
1751 Reported by Karl Berry.
1753 2006-12-08 Jim Meyering <jim@meyering.net>
1755 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
1756 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
1758 * build-aux/announce-gen: Add two new options, both optional:
1759 --bootstrap-tools=TOOL_LIST
1760 a comma-separated list of tools, e.g.,
1761 autoconf,automake,bison,gnulib
1762 --gnulib-snapshot-date=DATE
1763 if gnulib is in the bootstrap tool list,
1764 then report this as the snapshot date.
1765 If not specified, use the current date/time.
1766 If you specify a date here, be sure it's UTC.
1768 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1770 * tests/test-argp-2.sh: Fix test to match actual output.
1771 (func_compare): Fix sed script to be portable.
1773 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
1775 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
1776 workaround for this case. It is not autoconfigured now; offhand
1777 it's hard to see how to autoconfigure it.
1779 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
1781 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1782 a directory that is about to be chowned. Such a directory's
1783 initial file permissions should permit the owner only and this
1784 should not be changed until after the chown, since the group and
1785 other bits would be incorrect if they granted permission before
1788 Fix porting problem for iswctype reported by Georg Schwarz in:
1789 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1790 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1791 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1792 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1793 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1795 2006-12-03 Jim Meyering <jim@meyering.net>
1797 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1798 p->fts_statp may not yet be defined.
1799 (fts_read): Instead, set it in the caller, once p->fts_statp is
1800 sure to be defined, and corresponds to a top-level directory.
1801 This bug made du -x fail. Here's the coreutils test case:
1802 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1803 Reported by Mike Frysinger.
1805 2006-12-01 Jim Meyering <jim@meyering.net>
1807 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1808 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1809 Reported by Simon Josefsson.
1811 2006-11-30 Jim Meyering <jim@meyering.net>
1813 * m4/warning.m4: Use the all-permissive copyright notice
1814 recommended by RMS (rather than LGPL).
1815 * m4/vararrays.m4: Likewise.
1816 * m4/flexmember.m4: Likewise.
1818 2006-11-29 Bruno Haible <bruno@clisp.org>
1820 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1821 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1823 Reported by Simon Josefsson <simon@josefsson.org>.
1825 2006-11-28 James Youngman <jay@gnu.org>
1827 * README: Advise users that they might find the bug-gnulib@gnu.org
1828 and autotools-announce@gnu.org mailing lists useful.
1830 2006-11-28 Bruno Haible <bruno@clisp.org>
1832 * m4/ptrdiff_max.m4: Remove file.
1834 2006-11-21 Bruno Haible <bruno@clisp.org>
1836 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1838 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1839 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1841 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1842 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1844 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1846 2006-11-28 Jim Meyering <jim@meyering.net>
1848 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1849 warning from "gcc -Wshadow" about shadowing the builtin.
1851 2006-11-27 Bruno Haible <bruno@clisp.org>
1853 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1855 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1857 2006-11-27 Bruno Haible <bruno@clisp.org>
1858 Paul Eggert <eggert@cs.ucla.edu>
1860 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
1862 2006-11-26 Bruno Haible <bruno@clisp.org>
1864 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1867 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
1868 Bruno Haible <bruno@clisp.org>
1870 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
1871 if compiling with "gcc -ansi".
1873 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
1875 Fix some incompatibilities with gcc -ansi -pedantic.
1876 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
1877 if compiling pedantically with GCC, unless it's C99 or later.
1878 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
1879 it mishandles gcc -ansi -pedantic as well.
1880 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
1882 * lib/regexec.c (check_node_accept_bytes): Don't use auto
1883 initializers for struct if -pedantic, unless it's C99 or later.
1885 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
1887 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
1888 Don't close an fd more than once. Identical atimes indicate
1889 success, not failure.
1891 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
1893 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
1895 2006-11-23 Jim Meyering <jim@meyering.net>
1897 * build-aux/announce-gen: New file. From coreutils.
1899 2006-11-22 Jim Meyering <jim@meyering.net>
1901 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
1902 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
1903 (fts_read): Use a temporary to narrow the overused st_size member
1904 before using it in a switch statement. Reported by Matthew Woehlke.
1906 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
1907 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1909 2006-11-20 Bruno Haible <bruno@clisp.org>
1911 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
1912 changequote instead of pairs of brackets.
1913 Reported by Andreas Schwab <schwab@suse.de>.
1915 2006-11-21 Jim Meyering <jim@meyering.net>
1917 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
1918 so as to remain compatible with older compilers.
1919 Patch from Michael Deutschmann.
1921 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
1923 * MODULES.html.sh (File system functions): Add openat.
1925 * lib/openat.h (rpl_fstatat): New macro, if
1926 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
1927 (fstatat): Define to rpl_fstatat under the same conditions,
1928 unless COMPILING_FSTATAT.
1929 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
1930 seems to have the bug.
1931 * lib/fstatat.c: New file.
1932 * modules/openat (Files): Add it.
1934 2006-11-20 Bruno Haible <bruno@clisp.org>
1936 * Makefile: New file.
1938 2006-11-20 Jim Meyering <jim@meyering.net>
1940 The beginnings of syntax-related checks for gnulib.
1941 * lib/Makefile: New file.
1942 * lib/t-idcache: New script. Ensure that the two halves of
1943 idcache.c stay in sync.
1945 * lib/idcache.c: Adjust comments in user- and group- portions to
1946 be more accurate, and to be consistent with one another.
1948 2006-11-20 Jim Meyering <jim@meyering.net>
1950 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
1951 continue using the flexible array member (thus, this module performs
1952 half as many malloc calls), with the addition that...
1953 (getgroup, getuser): Consistently record a non-match via an empty
1954 "name" string, and map an empty string match to a NULL return value.
1955 * modules/idcache (Depends-on): Re-add flexmember.
1957 * lib/idcache.c (getuser): Remove all uses of the register keyword.
1958 (getuidbyname, getgroup, getgidbyname): Likewise.
1960 Use cleaner syntax: NULL rather than 0.
1961 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
1963 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
1965 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
1966 It mishandled the case where the group was missing.
1967 Problem reported by Greg Schafer.
1968 * modules/idcache: Likewise.
1970 2006-11-18 Jim Meyering <jim@meyering.net>
1972 * check-module (%exempt_header): Add exception for some
1973 conditionally-included headers.
1975 * modules/i-ring (Depends-on): Add verify.
1976 (License): Change to LGPL.
1978 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
1980 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
1981 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
1982 and inttostr.h. Use snprintf rather than uinttostr, so that
1983 LGPLed code doesn't depend on GPLed.
1985 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
1987 * modules/inline (License): Change from GPL to LGPL.
1989 2006-11-17 Jim Meyering <jim@meyering.net>
1991 * modules/d-type (License): Switch to LGPL.
1993 2006-11-15 Bruno Haible <bruno@clisp.org>
1995 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
1997 2006-11-15 Eric Blake <ebb9@byu.net>
1999 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2000 the module dependency.
2002 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2003 Bruno Haible <bruno@clisp.org>
2005 * gnulib-tool (func_create_testdir): Add license consistency check.
2007 2006-11-15 Eric Blake <ebb9@byu.net>
2009 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2010 random "(cached)" in configure output.
2012 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2014 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2015 test for conforming inttypes.h is both announced and cached.
2017 * MODULES.html.sh (seen_modules, seen_files): New variables.
2018 (func_module): Rewrite to use a few less gnulib-tool and sed
2019 invocations. Avoid a couple of quadratic algorithms for ...
2020 (missed_modules, missed_files): ... these, with ...
2021 (func_append, func_tmpdir): ... these new functions, from
2022 gnulib-tool. Analogously, install traps for cleanup.
2024 * tests/test-gc.c (main): Remove unused variables.
2025 * tests/test-read-file.c: Include stdlib.h, for 'free'.
2027 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
2029 * modules/inttostr (License): Change to LGPL.
2031 2006-11-14 Eric Blake <ebb9@byu.net>
2033 * modules/tempname (License): Change to LGPL.
2035 2006-11-14 Eric Blake <ebb9@byu.net>
2037 * doc/functions.texi (Function Portability): *printf functions on
2038 Cygwin now understand all POSIX size specifiers.
2040 2006-11-14 Bruno Haible <bruno@clisp.org>
2042 * modules/c-ctype (License): Change to LGPL.
2044 2006-11-12 Bruno Haible <bruno@clisp.org>
2046 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2047 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2048 for GNOME libraries, for which the include files are installed in
2049 subdirectories of $prefix/include.
2051 2006-11-12 Bruno Haible <bruno@clisp.org>
2053 * m4/lib-link.m4: Require at least autoconf-2.54.
2054 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2055 name to underscores for the --with option.
2057 2006-11-13 Bruno Haible <bruno@clisp.org>
2059 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2060 the tests directory.
2061 Reported by Ralf Wildenhues.
2063 2006-11-13 Bruno Haible <bruno@clisp.org>
2065 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2066 (func_emit_initmacro_end): Undo the override here.
2067 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2068 Works around the famous automake error in coreutils.
2070 2006-11-13 Eric Blake <ebb9@byu.net>
2072 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2073 element, not its node.
2075 2006-11-12 Bruno Haible <bruno@clisp.org>
2077 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2078 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2080 2006-11-12 Bruno Haible <bruno@clisp.org>
2082 * gnulib-tool: New option --local-symlink.
2083 (func_usage): Document it.
2084 (lsymbolic): New variable.
2085 (func_import, func_create_testdir): If --symlink was not specified,
2086 test whether --local-symlink was specified and the file comes from
2087 the local_gnulib_dir.
2089 2006-11-12 Bruno Haible <bruno@clisp.org>
2091 * gnulib-tool (func_ln): New function.
2092 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2094 2006-11-12 Bruno Haible <bruno@clisp.org>
2096 Finish support for source files in subdirectories.
2097 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2098 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2100 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2102 2006-11-12 Bruno Haible <bruno@clisp.org>
2104 * gnulib-tool (func_get_automake_snippet): Synthesize also an
2105 EXTRA_lib_SOURCES augmentation.
2106 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2108 2006-11-12 Jim Meyering <jim@meyering.net>
2110 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2111 file descriptors. This also averts a failure on systems with
2112 native openat support when a traversed directory lacks "x" access.
2113 * lib/fts_.h: Include "i-ring.h"
2114 (struct FTS) [fts_fd_ring]: New member.
2115 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2116 (FCHDIR): Add parentheses.
2117 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2118 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
2119 When descending, rather than simply closing the previous
2120 fts_cwd_fd value, push that file descriptor onto the ring.
2121 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2122 (fts_open): Initialize the new fd_ring member.
2123 (fts_close): Clear the ring.
2124 (fts_safe_changedir): When possible, use our new fd_ring to skip
2125 the diropen and fstat and dev/ino comparison that would normally
2126 accompany a virtual `chdir ("..")'.
2128 * modules/fts (Depends-on): Add i-ring.
2129 * modules/i-ring: New module.
2130 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2131 * m4/i-ring.m4: New file.
2133 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2135 * gnulib-tool (func_create_testdir): Fix replacement of
2136 `build-aux' in configure.ac. Run autotools in gltests
2138 (func_create_testdir, func_create_megatestdir, test): There is
2139 no need for '--force' in most autotool invocations in a new
2140 tree. Actually fail the whole test if any of the tools, or the
2141 configure or make stages fail.
2144 * build-aux/gnupload: Revert last change. Add pointer to upload
2145 instructions of the GNU Maintenance Instructions.
2146 Suggestion by Karl Berry.
2148 2006-11-10 Jim Meyering <jim@meyering.net>
2150 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2152 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
2154 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2155 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2156 (bind_textdomain_codeset) [! ENABLE_NLS]:
2157 Evaluate all the arguments. That way, callers get compatible behavior
2158 if the arguments have side effects. Also, it avoids some GCC
2159 diagnostics in some cases; Joel E. Denny reported problems when Bison
2160 was configured with --enable-gcc-warnigs.
2162 2006-11-10 Jim Meyering <jim@meyering.net>
2164 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2165 relevant options in CFLAGS (like -O, -fno-inline) are taken into
2168 2006-11-10 Jim Meyering <jim@meyering.net>
2170 * modules/inline: New file/module.
2171 * modules/xalloc (Files): Remove m4/inline.m4.
2172 (Depends-on): Add inline, instead.
2173 * modules/oset: Likewise.
2174 * modules/list: Likewise.
2176 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
2178 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2179 Problem reported by Matthew Woehlke.
2181 2006-11-09 Bruno Haible <bruno@clisp.org>
2183 * lib/tempname.c (gen_tempname): Remove variant that invokes
2185 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2188 2006-11-08 Bruno Haible <bruno@clisp.org>
2190 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2191 to 'yes' instead of 'cross-compiling'.
2193 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
2195 * lib/quotearg.h (quotearg_free): New decl.
2196 * lib/quotearg.c (quotearg_free): New function.
2197 (slot0, nslots, slotvec0, slotvec):
2198 Now file-scope so that quotearg_free can get at them.
2200 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2203 * build-aux/gnupload: Add missing 'gnu' to example URL.
2204 Report by Karl Berry.
2206 2006-11-08 Bruno Haible <bruno@clisp.org>
2208 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2209 Suggested by Paul Eggert.
2211 2006-11-08 Jim Meyering <jim@meyering.net>
2213 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2214 It's already included if !_LIBC.
2215 (fts_safe_changedir): Add a comment.
2217 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
2219 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2220 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2223 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2224 definitions up, to avoid colliding with change below.
2225 (static_inline) [HAVE_INLINE]: New macro.
2226 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2227 Provide extern decls when !HAVE_INLINE. Do not define unless
2228 static_inline is defined, either by us or by xmalloc.c. Use
2229 static_inline rather than static inline.
2230 (XCALLOC): Optimize sizeof(T) = 1 case.
2231 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2233 2006-11-07 Bruno Haible <bruno@clisp.org>
2235 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2236 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2238 * modules/xalloc (Files): Add m4/inline.m4.
2240 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2243 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2244 (Miscellanous Notes): ...from this.
2246 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
2248 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2249 Mention that offsetof should be used instead of sizeof.
2252 2006-11-07 Bruno Haible <bruno@clisp.org>
2254 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2256 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
2258 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2259 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2260 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2261 (gl_tree_add_before, gl_tree_add_after):
2262 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2263 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2264 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2265 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2266 (gl_linked_add_after, gl_linked_add_at): Likewise.
2267 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2268 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2269 (gl_tree_add_before, gl_tree_add_after): Likewise.
2270 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2271 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2272 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2274 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2276 * lib/gl_oset.h: Use C comment style, not C++ comment style.
2278 2006-11-06 Bruno Haible <bruno@clisp.org>
2280 * m4/inline.m4: New file.
2281 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2282 * modules/list (Files): Add m4/inline.m4.
2283 * modules/oset (Files): Likewise.
2285 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
2287 * lib/idcache.c: Include <stddef.h>, for offsetof.
2288 (struct userid.name): Change from char * to a flexible array member.
2290 * modules/idcache (Depends-on): Add flexmember.
2292 * MODULES.html.sh (Core language properties): New module flexmember.
2293 * modules/flexmember, m4/flexmember.m4: New files.
2295 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2296 inline functions that are identical with the old xnmalloc_inline,
2297 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
2298 that we can avoid some unnecessary integer multiplications and
2299 divisions in the common case where the element size is known at
2301 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2303 (xnboundedmalloc): Remove.
2304 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2305 arguments, for consistency with rest of this header.
2306 (xcharalloc): Rewrite using XNMALLOC.
2307 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2308 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
2309 versions have been moved to lib/xalloc.h and renamed to be the
2310 non-*_inline versions.
2311 (xmalloc, xrealloc): Implement without reference to the xnmalloc
2312 and xnrealloc functions, since those functions are now inline and
2314 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2315 renaming described above.
2316 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2317 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
2318 captures the dependency in AC_C_INLINE.
2320 New module canonicalize-lgpl, proposed by Charles Wilson in
2321 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2322 with a few small changes afterwards.
2323 * MODULES.html.sh (File system functions): New module
2325 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2326 and canonicalize_file_name.
2327 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2328 * modules/canonicalize-lgpl: New files.
2330 2006-11-05 Bruno Haible <bruno@clisp.org>
2332 * gnulib-tool (func_import, func_create_testdir): Create directories
2333 also for files in subdirectories of lib/.
2335 2006-11-05 Bruno Haible <bruno@clisp.org>
2337 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2340 2006-11-03 Bruno Haible <bruno@clisp.org>
2342 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2343 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2344 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2345 (xnboundedmalloc): New inline function.
2346 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2347 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2349 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2351 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2352 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2353 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2355 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2356 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2358 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2359 gl_tree_add_after): Use XMALLOC instead of xmalloc.
2360 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2362 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2363 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2364 gl_tree_add_after): Use XMALLOC instead of xmalloc.
2365 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2366 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2367 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2368 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2370 2006-11-03 Bruno Haible <bruno@clisp.org>
2372 * lib/c-ctype.h [C++]: Define functions without name mangling.
2373 * lib/fwriteerror.h [C++]: Likewise.
2374 * lib/gcd.h [C++]: Likewise.
2375 * lib/linebreak.h [C++]: Likewise.
2377 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
2379 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2380 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2381 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2382 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2383 Check for functions and headers just once.
2384 Check for declaration of canonicalize_file_name.
2385 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2387 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
2389 * gnulib-tool (func_import): Fix typo in actioncmd.
2391 2006-11-02 Bruno Haible <bruno@clisp.org>
2393 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2394 newline sequence in the Makefile.am snippet as a space, like "make"
2396 Reported by Roger Persson <perrog@gmail.com>.
2398 2006-11-01 Bruno Haible <bruno@clisp.org>
2400 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2401 already declared in <string.h>.
2402 * lib/strcase.h (strncasecmp): Don't declare it if yes.
2404 2006-11-01 Bruno Haible <bruno@clisp.org>
2406 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2407 * lib/strcase.h: Include <string.h>.
2408 (strcasecmp): Define to rpl_strcasecmp here.
2410 2006-11-01 Bruno Haible <bruno@clisp.org>
2412 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2414 2006-11-01 Eric Blake <ebb9@byu.net>
2416 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2418 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2420 2006-10-29 Bruno Haible <bruno@clisp.org>
2422 Make it compile in C++ mode.
2423 * lib/full-write.c (full_rw): Add a cast.
2425 2006-11-01 Bruno Haible <bruno@clisp.org>
2427 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2429 Reported by Roger Persson <perrog@gmail.com>.
2431 2006-11-01 Eric Blake <ebb9@byu.net>
2433 * lib/getopt_.h: Fix comments.
2435 2006-10-31 Eric Blake <ebb9@byu.net>
2437 * modules/tmpdir (Depends-on): Add sys_stat.
2438 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2439 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2440 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2441 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2444 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
2446 Avoid some C++ diagnostics reported by Bruno Haible.
2447 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2449 (quotearg_alloc): Use xcharalloc rather than xmalloc.
2450 (struct slotvec): Move to top level.
2451 (quotearg_n_options): Rewrite to avoid xmalloc.
2452 * lib/xalloc.h (xcharalloc): New function.
2453 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2454 [defined __cplusplus]: Add function template that provides result
2455 type propagation. This part of the change is from Bruno Haible.
2457 2006-10-29 Bruno Haible <bruno@clisp.org>
2459 Make it compile in C++ mode.
2460 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2461 * lib/strnlen1.c (strnlen1): Cast memchr result.
2462 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2463 * lib/clean-temp.c (string_equals, string_hash): Add casts.
2464 (create_temp_dir): Rename local variable 'template'.
2465 (compile_csharp_using_sscli): Add cast.
2466 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2467 * lib/findprog.c (find_in_path): Likewise.
2468 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2469 * lib/wait-process.c (register_slave_subprocess): Likewise.
2471 2006-10-22 Bruno Haible <bruno@clisp.org>
2473 * modules/tsearch: New file.
2474 * lib/tsearch.h: New file.
2475 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2476 * m4/tsearch.m4: New file.
2477 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2479 2006-10-29 Eric Blake <ebb9@byu.net>
2481 * lib/arcfour.c: Assume config.h.
2482 * lib/arctwo.c: Likewise.
2483 * lib/base64.c: Likewise.
2484 * lib/check-version.c: Likewise.
2485 * lib/crc.c: Likewise.
2486 * lib/des.c: Likewise.
2487 * lib/gc-gnulib.c: Likewise.
2488 * lib/gc-libgcrypt.c: Likewise.
2489 * lib/gc-pbkdf2-sha1.c: Likewise.
2490 * lib/getaddrinfo.c: Likewise.
2491 * lib/getdelim.c: Likewise.
2492 * lib/getline.c: Likewise.
2493 * lib/hmac-md5.c: Likewise.
2494 * lib/hmac-sha1.c: Likewise.
2495 * lib/iconvme.c: Likewise.
2496 * lib/md2.c: Likewise.
2497 * lib/md4.c: Likewise.
2498 * lib/memxor.c: Likewise.
2499 * lib/read-file.c: Likewise.
2500 * lib/readline.c: Likewise.
2501 * lib/rijndael-alg-fst.c: Likewise.
2502 * lib/rijndael-api-fst.c: Likewise.
2503 * lib/xgetdomainname.c: Likewise.
2505 2006-10-28 Eric Blake <ebb9@byu.net>
2507 * lib/xstrndup.c: Assume config.h.
2509 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
2511 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2512 stat-macros.h is now for our own macros, whereas stat_h is for
2513 macros in the <sys/stat.h> name space.
2514 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2515 (STAT_MACROS_H): Remove.
2516 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2517 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2518 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2519 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2520 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2521 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2522 Move these macros to ...
2523 * lib/stat_.h: here. Don't include stat-macros.h.
2524 * lib/canonicalize.c: Don't include stat-macros.h.
2525 * lib/chown.c: Likewise.
2526 * lib/euidaccess.c: Likewise.
2527 * lib/file-type.c: Likewise.
2528 * lib/filemode.c: Likewise.
2529 * lib/glob.c: Likewise.
2530 * lib/isapipe.c: Likewise.
2531 * lib/lchown.c: Likewise.
2532 * lib/lstat.c: Likewise.
2533 * lib/mkdir-p.c: Likewise.
2534 * lib/rmdir.c: Likewise.
2535 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2536 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2537 unless mkdir isn't declared, to speed up 'configure'.
2538 Always create sys/stat.h, since it's unlikely any real sys/stat.h
2539 would define all the S_* symbols.
2540 * modules/canonicalize (Depends-on):
2541 Depend on sys_stat, not stat-macros.
2542 * modules/chown: Likewise.
2543 * modules/euidaccess: Likewise.
2544 * modules/filemode: Likewise.
2545 * modules/file-type: Likewise.
2546 * modules/glob: Likewise.
2547 * modules/isapipe: Likewise.
2548 * modules/lchown: Likewise.
2549 * modules/lstat: Likewise.
2550 * modules/mkancesdirs: Likewise.
2551 * modules/rmdir: Likewise.
2552 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2553 * modules/modechange: Likewise.
2554 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2555 (configure.ac): Remove gl_STAT_MACROS.
2556 * modules/sys_stat (Depends-on): Remove stat-macros.
2558 2006-10-27 Bruno Haible <bruno@clisp.org>
2560 * m4/signed.m4: Remove file.
2561 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2563 * modules/vasnprintf (Files): Remove m4/signed.m4.
2565 2006-10-27 Bruno Haible <bruno@clisp.org>
2567 Update to GNU gettext 0.16.
2568 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2569 m4/inttypes-h.m4, m4/signed.m4.
2570 * m4/gettext.m4: Update to GNU gettext 0.16.
2571 * m4/intl.m4: New file, from GNU gettext.
2572 * m4/intldir.m4: New file, from GNU gettext.
2573 * config/srclist.txt: Update
2575 2006-10-27 Eric Blake <ebb9@byu.net>
2577 * MODULES.html.sh: Document tempname.
2578 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2580 (Files): Move lib/tempname.c...
2581 * modules/tempname: ...to this new module.
2582 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2583 (gl_PREREQ_TEMPNAME): Move...
2584 * m4/tempname.m4: ...to this new file.
2585 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2586 * modules/sys_stat (Depends-on): Add stat-macros.
2587 * lib/stat_.h (includes): Pick up stat macros.
2588 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2589 if stat macros are broken.
2590 * lib/tempname.c (includes): No need to include "stat-macros.h".
2591 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2592 (direxists, __path_search) [!_LIBC]: Don't compile these in
2593 gnulib; the tmpdir module covers that.
2594 * lib/tempname.h: New file.
2596 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
2598 * COPYING: Explain how gnulib-tool converts licence headers.
2599 Almost all wording by Eric Blake.
2601 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
2603 * lib/mbchar.h (is_basic_table): Make read-only.
2604 * lib/mbchar.c (is_basic_table): Likewise.
2605 Reported by John Darrington.
2607 2006-10-25 Bruno Haible <bruno@clisp.org>
2609 * lib/progname.h (set_program_name): Undefine before defining.
2611 2006-10-25 Bruno Haible <bruno@clisp.org>
2613 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2614 false for non-gcc C++ compilers.
2615 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2617 2006-10-24 Bruno Haible <bruno@clisp.org>
2619 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2620 iconv implementations like Irix iconv.
2622 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
2624 * modules/vararrays: New file.
2625 * m4/vararrays.m4: New file, taken from diffutils.
2626 * MODULES.html.sh: New module vararrays.
2628 2006-10-24 Karl Berry <karl@gnu.org>
2630 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2631 Don't call GNU Unix.
2633 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2635 * users.txt: Add Libtool.
2639 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
2641 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2642 to gnulib's policy of including config.h unconditionally.
2644 2006-10-24 Bruno Haible <bruno@clisp.org>
2646 * modules/wcwidth (Files): Add m4/wint_t.m4.
2647 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2648 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2650 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
2652 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2653 to pacify GCC with some -W flags enabled. Problem reported by
2656 2006-10-24 Jim Meyering <jim@meyering.net>
2658 * MODULES.html.sh: Remove uinttostr. It's not a module.
2659 Reported by Karl Berry.
2661 2006-10-23 Bruno Haible <bruno@clisp.org>
2663 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2665 2006-10-24 Bruno Haible <bruno@clisp.org>
2667 * lib/gl_list.h: Use C comment style, not C++ comment style.
2669 2006-10-23 Eric Blake <ebb9@byu.net>
2671 * lib/getaddrinfo.c (includes): Add missing include.
2673 2006-10-23 Bruno Haible <bruno@clisp.org>
2674 Paul Eggert <eggert@cs.ucla.edu>
2676 Ability to rename obstack_free.
2677 * lib/obstack.h (__obstack_free): New macro. Declare instead of
2679 (obstack_free): Invoke the __obstack_free macro.
2680 * lib/obstack.c (obstack_free): Use __obstack_free macro.
2682 2006-10-23 Bruno Haible <bruno@clisp.org>
2683 Paul Eggert <eggert@cs.ucla.edu>
2685 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
2686 __argc, __argv from the declaration. (They are defined as macros on
2689 2006-10-22 Bruno Haible <bruno@clisp.org>
2691 * doc/gnulib-intro.texi: New file.
2692 * doc/gnulib.texi: Include it.
2694 2006-10-21 Bruno Haible <bruno@clisp.org>
2696 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
2697 "Introduction", "Miscellanous Notes", "Particular Modules".
2699 2006-10-21 Bruno Haible <bruno@clisp.org>
2701 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2702 Change mostlyclean-local rule to avoid sh syntax error from bash
2703 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
2705 2006-10-23 Jim Meyering <jim@meyering.net>
2707 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
2708 in place of snprintf.
2710 * modules/inttostr (Files): Add lib/uinttostr.c.
2711 * lib/uinttostr.c (inttostr): New file/function.
2712 * lib/inttostr.h (uinttostr): Declare.
2713 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
2714 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
2716 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
2718 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
2720 * lib/canonicalize.c (ELOOP): Define if not already defined.
2721 Problem reported by Bruno Haible in
2722 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
2724 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
2726 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
2727 Problem reported by Perry Smith and Ville Laurikari.
2729 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
2732 2006-10-19 Bruno Haible <bruno@clisp.org>
2734 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
2737 2006-10-19 Bruno Haible <bruno@clisp.org>
2739 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
2742 2006-10-19 Bruno Haible <bruno@clisp.org>
2744 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2746 2006-10-19 Bruno Haible <bruno@clisp.org>
2748 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
2751 2006-10-19 Bruno Haible <bruno@clisp.org>
2753 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
2756 2006-10-19 Bruno Haible <bruno@clisp.org>
2758 * gnulib-tool (func_create_testdir): Don't include ftruncate and
2759 mountlist by default.
2761 2006-10-16 Bruno Haible <bruno@clisp.org>
2763 * lib/c-strstr.c: Include c-strstr.h.
2765 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
2767 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
2770 2006-10-18 Bruno Haible <bruno@clisp.org>
2772 * lib/lock.h [C++]: Wrap definitions in extern "C".
2774 2006-10-18 Bruno Haible <bruno@clisp.org>
2776 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2779 2006-10-18 Bruno Haible <bruno@clisp.org>
2781 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2783 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
2785 * lib/xstrtol.h: Include gettext.h.
2786 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2787 Problem reported by Eric Blake.
2788 * modules/xstrtol (Depends-on): Add gettext-h.
2790 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
2792 * lib/strftime.c (advance): New macro.
2793 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
2794 incomplete type, so you can't add 0 to it. Problem and patch
2795 reported by Eelco Dolstra for dietlibc.
2797 2006-10-18 Jim Meyering <jim@meyering.net>
2799 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2800 type for a local, and rename it: s/up/user_proc/.
2802 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
2804 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2805 READ_UTMP_USER_PROCESS.
2806 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2808 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
2810 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2811 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2813 2006-10-17 Eric Blake <ebb9@byu.net>
2815 * lib/sigprocmask.c (sigprocmask): Fix typo.
2817 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2819 * modules/clean-temp (Makefile.am): Don't add to make output...
2820 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2823 2006-10-17 Bruno Haible <bruno@clisp.org>
2825 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2826 differently if DEFAULT_TEXT_DOMAIN is set.
2828 2006-10-16 Bruno Haible <bruno@clisp.org>
2830 * lib/clean-temp.c: Include fwriteerror.h.
2832 2006-10-16 Bruno Haible <bruno@clisp.org>
2834 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2836 2006-10-16 Bruno Haible <bruno@clisp.org>
2838 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2839 * lib/sigprocmask.h: Include <sys/types.h>.
2840 (sigset_t): Use the system's definition if present.
2842 2006-10-17 Eric Blake <ebb9@byu.net>
2844 * lib/xvasprintf.c (includes): Assume config.h.
2845 * lib/xasprintf.c (includes): Likewise.
2847 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
2849 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2850 at least as wide as intmax_t.
2852 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
2854 (Imported from Automake.)
2855 * build-aux/gnupload: Update to version 1.1 of directive file.
2857 2006-10-16 Eric Blake <ebb9@byu.net>
2859 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2860 match Automake 1.10a.
2862 2006-10-14 Bruno Haible <bruno@clisp.org>
2864 * modules/sigprocmask: New file.
2865 * lib/sigprocmask.h: New file.
2866 * lib/sigprocmask.c: New file.
2867 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
2868 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
2869 request sigprocmask.o.
2870 (gl_PREREQ_SIGPROCMASK): New macro.
2871 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
2872 (Depends-on): Add sigprocmask.
2873 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
2874 gt_SIGNALBLOCKING. Test for 'raise' only once.
2875 * lib/fatal-signal.c: Include sigprocmask.h.
2876 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
2877 unblock_fatal_signals): Define always.
2878 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2881 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
2884 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2885 which incorrectly sets the mode of an existing destination
2886 directory. In some cases the unpatched install-sh could do the
2887 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2888 system. We hope this is rare in practice, but it's clearly worth
2889 fixing. Problem reported by Alex Unleashed in
2890 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2891 Also, don't bother to check for -m bugs unless we're using -m;
2892 suggested by Stepan Kasal.
2894 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2897 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
2898 `-c' flag, so they appear at the same position as in %FASTDEP%
2899 mode in depend2.am. Fixes build failure for FreeBSD's c89,
2900 which ignores unknown options only after the first non-option.
2901 Bug report against M4 by Nelson H. F. Beebe.
2903 2006-10-13 Jim Meyering <jim@meyering.net>
2905 Fix a bug in yesterday's change.
2906 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
2907 p->fts_statp->st_dev would be used uninitialized.
2908 Ensures that we always call fts_stat on the very first entry.
2909 Miklos Szeredi reported that find -xdev stopped working.
2911 2006-10-12 Bruno Haible <bruno@clisp.org>
2913 * gnulib-tool (func_get_automake_snippet): Append an automatically
2914 computed EXTRA_DIST augmentation.
2915 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
2916 * modules/alloca-opt (Makefile.am): Likewise.
2917 * modules/allocsa (Makefile.am): Likewise.
2918 * modules/arcfour (Makefile.am): Likewise.
2919 * modules/arctwo (Makefile.am): Likewise.
2920 * modules/argmatch (Makefile.am): Likewise.
2921 * modules/argz (Makefile.am): Likewise.
2922 * modules/atexit (Makefile.am): Likewise.
2923 * modules/backupfile (Makefile.am): Likewise.
2924 * modules/byteswap (Makefile.am): Likewise.
2925 * modules/c-strtod (Makefile.am): Likewise.
2926 * modules/c-strtold (Makefile.am): Likewise.
2927 * modules/calloc (Makefile.am): Likewise.
2928 * modules/canon-host (Makefile.am): Likewise.
2929 * modules/canonicalize (Makefile.am): Likewise.
2930 * modules/chdir-long (Makefile.am): Likewise.
2931 * modules/chdir-safer (Makefile.am): Likewise.
2932 * modules/check-version (Makefile.am): Likewise.
2933 * modules/chown (Makefile.am): Likewise.
2934 * modules/cloexec (Makefile.am): Likewise.
2935 * modules/close-stream (Makefile.am): Likewise.
2936 * modules/closeout (Makefile.am): Likewise.
2937 * modules/crc (Makefile.am): Likewise.
2938 * modules/csharpexec (Makefile.am): Likewise.
2939 * modules/cycle-check (Makefile.am): Likewise.
2940 * modules/des (Makefile.am): Likewise.
2941 * modules/dev-ino (Makefile.am): Likewise.
2942 * modules/dirfd (Makefile.am): Likewise.
2943 * modules/dirname (Makefile.am): Likewise.
2944 * modules/dup2 (Makefile.am): Likewise.
2945 * modules/eealloc (Makefile.am): Likewise.
2946 * modules/error (Makefile.am): Likewise.
2947 * modules/euidaccess (Makefile.am): Likewise.
2948 * modules/exclude (Makefile.am): Likewise.
2949 * modules/exitfail (Makefile.am): Likewise.
2950 * modules/fcntl-safer (Makefile.am): Likewise.
2951 * modules/fcntl (Makefile.am): Likewise.
2952 * modules/file-type (Makefile.am): Likewise.
2953 * modules/fileblocks (Makefile.am): Likewise.
2954 * modules/filemode (Makefile.am): Likewise.
2955 * modules/filenamecat (Makefile.am): Likewise.
2956 * modules/fnmatch (Makefile.am): Likewise.
2957 * modules/fopen-safer (Makefile.am): Likewise.
2958 * modules/fpending (Makefile.am): Likewise.
2959 * modules/fprintftime (Makefile.am): Likewise.
2960 * modules/free (Makefile.am): Likewise.
2961 * modules/fsusage (Makefile.am): Likewise.
2962 * modules/ftruncate (Makefile.am): Likewise.
2963 * modules/fts (Makefile.am): Likewise.
2964 * modules/gc-arcfour (Makefile.am): Likewise.
2965 * modules/gc-des (Makefile.am): Likewise.
2966 * modules/gc-hmac-md5 (Makefile.am): Likewise.
2967 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
2968 * modules/gc-md4 (Makefile.am): Likewise.
2969 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2970 * modules/gc-sha1 (Makefile.am): Likewise.
2971 * modules/gc (Makefile.am): Likewise.
2972 * modules/getaddrinfo (Makefile.am): Likewise.
2973 * modules/getcwd (Makefile.am): Likewise.
2974 * modules/getdelim (Makefile.am): Likewise.
2975 * modules/getdomainname (Makefile.am): Likewise.
2976 * modules/getgroups (Makefile.am): Likewise.
2977 * modules/gethostname (Makefile.am): Likewise.
2978 * modules/gethrxtime (Makefile.am): Likewise.
2979 * modules/getline (Makefile.am): Likewise.
2980 * modules/getloadavg (Makefile.am): Likewise.
2981 * modules/getlogin_r (Makefile.am): Likewise.
2982 * modules/getndelim2 (Makefile.am): Likewise.
2983 * modules/getopt (Makefile.am): Likewise.
2984 * modules/getpagesize (Makefile.am): Likewise.
2985 * modules/getpass-gnu (Makefile.am): Likewise.
2986 * modules/getpass (Makefile.am): Likewise.
2987 * modules/getsubopt (Makefile.am): Likewise.
2988 * modules/gettime (Makefile.am): Likewise.
2989 * modules/gettimeofday (Makefile.am): Likewise.
2990 * modules/getugroups (Makefile.am): Likewise.
2991 * modules/getusershell (Makefile.am): Likewise.
2992 * modules/glob (Makefile.am): Likewise.
2993 * modules/group-member (Makefile.am): Likewise.
2994 * modules/hard-locale (Makefile.am): Likewise.
2995 * modules/hash (Makefile.am): Likewise.
2996 * modules/hmac-md5 (Makefile.am): Likewise.
2997 * modules/hmac-sha1 (Makefile.am): Likewise.
2998 * modules/human (Makefile.am): Likewise.
2999 * modules/idcache (Makefile.am): Likewise.
3000 * modules/imaxabs (Makefile.am): Likewise.
3001 * modules/imaxdiv (Makefile.am): Likewise.
3002 * modules/inet_ntop (Makefile.am): Likewise.
3003 * modules/inet_pton (Makefile.am): Likewise.
3004 * modules/intprops (Makefile.am): Likewise.
3005 * modules/inttostr (Makefile.am): Likewise.
3006 * modules/inttypes (Makefile.am): Likewise.
3007 * modules/isapipe (Makefile.am): Likewise.
3008 * modules/javaversion (Makefile.am): Likewise.
3009 * modules/lchmod (Makefile.am): Likewise.
3010 * modules/lchown (Makefile.am): Likewise.
3011 * modules/localcharset (Makefile.am): Likewise.
3012 * modules/long-options (Makefile.am): Likewise.
3013 * modules/lstat (Makefile.am): Likewise.
3014 * modules/malloc (Makefile.am): Likewise.
3015 * modules/mathl (Makefile.am): Likewise.
3016 * modules/mbchar (Makefile.am): Likewise.
3017 * modules/md2 (Makefile.am): Likewise.
3018 * modules/md4 (Makefile.am): Likewise.
3019 * modules/md5 (Makefile.am): Likewise.
3020 * modules/memcasecmp (Makefile.am): Likewise.
3021 * modules/memchr (Makefile.am): Likewise.
3022 * modules/memcmp (Makefile.am): Likewise.
3023 * modules/memcoll (Makefile.am): Likewise.
3024 * modules/memcpy (Makefile.am): Likewise.
3025 * modules/memmem (Makefile.am): Likewise.
3026 * modules/memmove (Makefile.am): Likewise.
3027 * modules/mempcpy (Makefile.am): Likewise.
3028 * modules/memrchr (Makefile.am): Likewise.
3029 * modules/memset (Makefile.am): Likewise.
3030 * modules/memxor (Makefile.am): Likewise.
3031 * modules/mkancesdirs (Makefile.am): Likewise.
3032 * modules/mkdir-p (Makefile.am): Likewise.
3033 * modules/mkdir (Makefile.am): Likewise.
3034 * modules/mkdtemp (Makefile.am): Likewise.
3035 * modules/mkstemp (Makefile.am): Likewise.
3036 * modules/mktime (Makefile.am): Likewise.
3037 * modules/modechange (Makefile.am): Likewise.
3038 * modules/mountlist (Makefile.am): Likewise.
3039 * modules/nanosleep (Makefile.am): Likewise.
3040 * modules/obstack (Makefile.am): Likewise.
3041 * modules/openat (Makefile.am): Likewise.
3042 * modules/pagealign_alloc (Makefile.am): Likewise.
3043 * modules/pathmax (Makefile.am): Likewise.
3044 * modules/physmem (Makefile.am): Likewise.
3045 * modules/poll (Makefile.am): Likewise.
3046 * modules/posixtm (Makefile.am): Likewise.
3047 * modules/posixver (Makefile.am): Likewise.
3048 * modules/putenv (Makefile.am): Likewise.
3049 * modules/quote (Makefile.am): Likewise.
3050 * modules/quotearg (Makefile.am): Likewise.
3051 * modules/raise (Makefile.am): Likewise.
3052 * modules/read-file (Makefile.am): Likewise.
3053 * modules/readline (Makefile.am): Likewise.
3054 * modules/readlink (Makefile.am): Likewise.
3055 * modules/readtokens (Makefile.am): Likewise.
3056 * modules/readutmp (Makefile.am): Likewise.
3057 * modules/realloc (Makefile.am): Likewise.
3058 * modules/regex (Makefile.am): Likewise.
3059 * modules/rename-dest-slash (Makefile.am): Likewise.
3060 * modules/rename (Makefile.am): Likewise.
3061 * modules/rijndael (Makefile.am): Likewise.
3062 * modules/rmdir (Makefile.am): Likewise.
3063 * modules/rpmatch (Makefile.am): Likewise.
3064 * modules/safe-read (Makefile.am): Likewise.
3065 * modules/safe-write (Makefile.am): Likewise.
3066 * modules/same-inode (Makefile.am): Likewise.
3067 * modules/same (Makefile.am): Likewise.
3068 * modules/save-cwd (Makefile.am): Likewise.
3069 * modules/savedir (Makefile.am): Likewise.
3070 * modules/setenv (Makefile.am): Likewise.
3071 * modules/settime (Makefile.am): Likewise.
3072 * modules/sha1 (Makefile.am): Likewise.
3073 * modules/sig2str (Makefile.am): Likewise.
3074 * modules/snprintf (Makefile.am): Likewise.
3075 * modules/stat-macros (Makefile.am): Likewise.
3076 * modules/stat-time (Makefile.am): Likewise.
3077 * modules/stdbool (Makefile.am): Likewise.
3078 * modules/stdint (Makefile.am): Likewise.
3079 * modules/stdlib-safer (Makefile.am): Likewise.
3080 * modules/stpcpy (Makefile.am): Likewise.
3081 * modules/stpncpy (Makefile.am): Likewise.
3082 * modules/strcase (Makefile.am): Likewise.
3083 * modules/strcasestr (Makefile.am): Likewise.
3084 * modules/strchrnul (Makefile.am): Likewise.
3085 * modules/strcspn (Makefile.am): Likewise.
3086 * modules/strdup (Makefile.am): Likewise.
3087 * modules/strerror (Makefile.am): Likewise.
3088 * modules/strftime (Makefile.am): Likewise.
3089 * modules/strndup (Makefile.am): Likewise.
3090 * modules/strnlen (Makefile.am): Likewise.
3091 * modules/strpbrk (Makefile.am): Likewise.
3092 * modules/strsep (Makefile.am): Likewise.
3093 * modules/strstr (Makefile.am): Likewise.
3094 * modules/strtod (Makefile.am): Likewise.
3095 * modules/strtoimax (Makefile.am): Likewise.
3096 * modules/strtok_r (Makefile.am): Likewise.
3097 * modules/strtol (Makefile.am): Likewise.
3098 * modules/strtoll (Makefile.am): Likewise.
3099 * modules/strtoul (Makefile.am): Likewise.
3100 * modules/strtoull (Makefile.am): Likewise.
3101 * modules/strtoumax (Makefile.am): Likewise.
3102 * modules/strverscmp (Makefile.am): Likewise.
3103 * modules/sys_socket (Makefile.am): Likewise.
3104 * modules/sys_stat (Makefile.am): Likewise.
3105 * modules/sysexits (Makefile.am): Likewise.
3106 * modules/time_r (Makefile.am): Likewise.
3107 * modules/timegm (Makefile.am): Likewise.
3108 * modules/timespec (Makefile.am): Likewise.
3109 * modules/tmpfile-safer (Makefile.am): Likewise.
3110 * modules/trim (Makefile.am): Likewise.
3111 * modules/unistd-safer (Makefile.am): Likewise.
3112 * modules/unlinkdir (Makefile.am): Likewise.
3113 * modules/unlocked-io (Makefile.am): Likewise.
3114 * modules/userspec (Makefile.am): Likewise.
3115 * modules/utime (Makefile.am): Likewise.
3116 * modules/utimecmp (Makefile.am): Likewise.
3117 * modules/utimens (Makefile.am): Likewise.
3118 * modules/vasnprintf (Makefile.am): Likewise.
3119 * modules/vasprintf (Makefile.am): Likewise.
3120 * modules/vsnprintf (Makefile.am): Likewise.
3121 * modules/xalloc (Makefile.am): Likewise.
3122 * modules/xgetcwd (Makefile.am): Likewise.
3123 * modules/xnanosleep (Makefile.am): Likewise.
3124 * modules/xreadlink (Makefile.am): Likewise.
3125 * modules/xstrtod (Makefile.am): Likewise.
3126 * modules/xstrtol (Makefile.am): Likewise.
3127 * modules/xstrtold (Makefile.am): Likewise.
3128 * modules/yesno (Makefile.am): Likewise.
3129 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3131 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
3133 * modules/error (Makefile.am): Distribute files through
3134 EXTRA_DIST, not lib_SOURCES.
3136 2006-10-12 Eric Blake <ebb9@byu.net>
3138 * modules/error (Makefile.am): Distribute files in /lib.
3139 * modules/obstack (Makefile.am): Likewise.
3141 2006-10-12 Bruno Haible <bruno@clisp.org>
3143 * modules/acl (Makefile.am): Distribute all files in lib/ through
3145 * modules/arcfour (Makefile.am): Likewise.
3146 * modules/arctwo (Makefile.am): Likewise.
3147 * modules/argmatch (Makefile.am): Likewise.
3148 * modules/argz (Makefile.am): Likewise.
3149 * modules/atexit (Makefile.am): Likewise.
3150 * modules/backupfile (Makefile.am): Likewise.
3151 * modules/c-strtod (Makefile.am): Likewise.
3152 * modules/c-strtold (Makefile.am): Likewise.
3153 * modules/calloc (Makefile.am): Likewise.
3154 * modules/canon-host (Makefile.am): Likewise.
3155 * modules/canonicalize (Makefile.am): Likewise.
3156 * modules/chdir-long (Makefile.am): Likewise.
3157 * modules/chdir-safer (Makefile.am): Likewise.
3158 * modules/check-version (Makefile.am): Likewise.
3159 * modules/chown (Makefile.am): Likewise.
3160 * modules/cloexec (Makefile.am): Likewise.
3161 * modules/close-stream (Makefile.am): Likewise.
3162 * modules/closeout (Makefile.am): Likewise.
3163 * modules/crc (Makefile.am): Likewise.
3164 * modules/cycle-check (Makefile.am): Likewise.
3165 * modules/des (Makefile.am): Likewise.
3166 * modules/dirfd (Makefile.am): Likewise.
3167 * modules/dirname (Makefile.am): Likewise.
3168 * modules/dup2 (Makefile.am): Likewise.
3169 * modules/euidaccess (Makefile.am): Likewise.
3170 * modules/exclude (Makefile.am): Likewise.
3171 * modules/exitfail (Makefile.am): Likewise.
3172 * modules/fcntl-safer (Makefile.am): Likewise.
3173 * modules/file-type (Makefile.am): Likewise.
3174 * modules/fileblocks (Makefile.am): Likewise.
3175 * modules/filemode (Makefile.am): Likewise.
3176 * modules/filenamecat (Makefile.am): Likewise.
3177 * modules/fnmatch (Makefile.am): Likewise.
3178 * modules/fopen-safer (Makefile.am): Likewise.
3179 * modules/fpending (Makefile.am): Likewise.
3180 * modules/fprintftime (Makefile.am): Likewise.
3181 * modules/free (Makefile.am): Likewise.
3182 * modules/fsusage (Makefile.am): Likewise.
3183 * modules/ftruncate (Makefile.am): Likewise.
3184 * modules/fts (Makefile.am): Likewise.
3185 * modules/gc (Makefile.am): Likewise.
3186 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3187 * modules/getaddrinfo (Makefile.am): Likewise.
3188 * modules/getcwd (Makefile.am): Likewise.
3189 * modules/getdelim (Makefile.am): Likewise.
3190 * modules/getdomainname (Makefile.am): Likewise.
3191 * modules/getgroups (Makefile.am): Likewise.
3192 * modules/gethostname (Makefile.am): Likewise.
3193 * modules/gethrxtime (Makefile.am): Likewise.
3194 * modules/getline (Makefile.am): Likewise.
3195 * modules/getloadavg (Makefile.am): Likewise.
3196 * modules/getlogin_r (Makefile.am): Likewise.
3197 * modules/getopt (Makefile.am): Likewise.
3198 * modules/getpass (Makefile.am): Likewise.
3199 * modules/getpass-gnu (Makefile.am): Likewise.
3200 * modules/getsubopt (Makefile.am): Likewise.
3201 * modules/gettime (Makefile.am): Likewise.
3202 * modules/gettimeofday (Makefile.am): Likewise.
3203 * modules/getugroups (Makefile.am): Likewise.
3204 * modules/getusershell (Makefile.am): Likewise.
3205 * modules/glob (Makefile.am): Likewise.
3206 * modules/group-member (Makefile.am): Likewise.
3207 * modules/hard-locale (Makefile.am): Likewise.
3208 * modules/hash (Makefile.am): Likewise.
3209 * modules/hmac-md5 (Makefile.am): Likewise.
3210 * modules/hmac-sha1 (Makefile.am): Likewise.
3211 * modules/human (Makefile.am): Likewise.
3212 * modules/idcache (Makefile.am): Likewise.
3213 * modules/imaxabs (Makefile.am): Likewise.
3214 * modules/imaxdiv (Makefile.am): Likewise.
3215 * modules/inet_ntop (Makefile.am): Likewise.
3216 * modules/inet_pton (Makefile.am): Likewise.
3217 * modules/inttostr (Makefile.am): Likewise.
3218 * modules/isapipe (Makefile.am): Likewise.
3219 * modules/lchown (Makefile.am): Likewise.
3220 * modules/long-options (Makefile.am): Likewise.
3221 * modules/lstat (Makefile.am): Likewise.
3222 * modules/malloc (Makefile.am): Likewise.
3223 * modules/mathl (Makefile.am): Likewise.
3224 * modules/mbchar (Makefile.am): Likewise.
3225 * modules/md2 (Makefile.am): Likewise.
3226 * modules/md4 (Makefile.am): Likewise.
3227 * modules/md5 (Makefile.am): Likewise.
3228 * modules/memcasecmp (Makefile.am): Likewise.
3229 * modules/memchr (Makefile.am): Likewise.
3230 * modules/memcmp (Makefile.am): Likewise.
3231 * modules/memcoll (Makefile.am): Likewise.
3232 * modules/memcpy (Makefile.am): Likewise.
3233 * modules/memmem (Makefile.am): Likewise.
3234 * modules/memmove (Makefile.am): Likewise.
3235 * modules/mempcpy (Makefile.am): Likewise.
3236 * modules/memrchr (Makefile.am): Likewise.
3237 * modules/memset (Makefile.am): Likewise.
3238 * modules/memxor (Makefile.am): Likewise.
3239 * modules/mkancesdirs (Makefile.am): Likewise.
3240 * modules/mkdir (Makefile.am): Likewise.
3241 * modules/mkdir-p (Makefile.am): Likewise.
3242 * modules/mkdtemp (Makefile.am): Likewise.
3243 * modules/mkstemp (Makefile.am): Likewise.
3244 * modules/mktime (Makefile.am): Likewise.
3245 * modules/modechange (Makefile.am): Likewise.
3246 * modules/mountlist (Makefile.am): Likewise.
3247 * modules/nanosleep (Makefile.am): Likewise.
3248 * modules/openat (Makefile.am): Likewise.
3249 * modules/pagealign_alloc (Makefile.am): Likewise.
3250 * modules/physmem (Makefile.am): Likewise.
3251 * modules/poll (Makefile.am): Likewise.
3252 * modules/posixtm (Makefile.am): Likewise.
3253 * modules/posixver (Makefile.am): Likewise.
3254 * modules/putenv (Makefile.am): Likewise.
3255 * modules/quote (Makefile.am): Likewise.
3256 * modules/quotearg (Makefile.am): Likewise.
3257 * modules/raise (Makefile.am): Likewise.
3258 * modules/read-file (Makefile.am): Likewise.
3259 * modules/readline (Makefile.am): Likewise.
3260 * modules/readlink (Makefile.am): Likewise.
3261 * modules/readtokens (Makefile.am): Likewise.
3262 * modules/readutmp (Makefile.am): Likewise.
3263 * modules/realloc (Makefile.am): Likewise.
3264 * modules/regex (Makefile.am): Likewise.
3265 * modules/rename (Makefile.am): Likewise.
3266 * modules/rename-dest-slash (Makefile.am): Likewise.
3267 * modules/rijndael (Makefile.am): Likewise.
3268 * modules/rmdir (Makefile.am): Likewise.
3269 * modules/rpmatch (Makefile.am): Likewise.
3270 * modules/safe-read (Makefile.am): Likewise.
3271 * modules/safe-write (Makefile.am): Likewise.
3272 * modules/same (Makefile.am): Likewise.
3273 * modules/save-cwd (Makefile.am): Likewise.
3274 * modules/savedir (Makefile.am): Likewise.
3275 * modules/setenv (Makefile.am): Likewise.
3276 * modules/settime (Makefile.am): Likewise.
3277 * modules/sha1 (Makefile.am): Likewise.
3278 * modules/sig2str (Makefile.am): Likewise.
3279 * modules/snprintf (Makefile.am): Likewise.
3280 * modules/stdlib-safer (Makefile.am): Likewise.
3281 * modules/stpcpy (Makefile.am): Likewise.
3282 * modules/stpncpy (Makefile.am): Likewise.
3283 * modules/strcase (Makefile.am): Likewise.
3284 * modules/strcasestr (Makefile.am): Likewise.
3285 * modules/strchrnul (Makefile.am): Likewise.
3286 * modules/strcspn (Makefile.am): Likewise.
3287 * modules/strdup (Makefile.am): Likewise.
3288 * modules/strerror (Makefile.am): Likewise.
3289 * modules/strftime (Makefile.am): Likewise.
3290 * modules/strndup (Makefile.am): Likewise.
3291 * modules/strnlen (Makefile.am): Likewise.
3292 * modules/strpbrk (Makefile.am): Likewise.
3293 * modules/strsep (Makefile.am): Likewise.
3294 * modules/strstr (Makefile.am): Likewise.
3295 * modules/strtod (Makefile.am): Likewise.
3296 * modules/strtoimax (Makefile.am): Likewise.
3297 * modules/strtok_r (Makefile.am): Likewise.
3298 * modules/strtol (Makefile.am): Likewise.
3299 * modules/strtoll (Makefile.am): Likewise.
3300 * modules/strtoul (Makefile.am): Likewise.
3301 * modules/strtoull (Makefile.am): Likewise.
3302 * modules/strtoumax (Makefile.am): Likewise.
3303 * modules/strverscmp (Makefile.am): Likewise.
3304 * modules/time_r (Makefile.am): Likewise.
3305 * modules/timegm (Makefile.am): Likewise.
3306 * modules/tmpfile-safer (Makefile.am): Likewise.
3307 * modules/unistd-safer (Makefile.am): Likewise.
3308 * modules/unlinkdir (Makefile.am): Likewise.
3309 * modules/userspec (Makefile.am): Likewise.
3310 * modules/utime (Makefile.am): Likewise.
3311 * modules/utimecmp (Makefile.am): Likewise.
3312 * modules/utimens (Makefile.am): Likewise.
3313 * modules/vasnprintf (Makefile.am): Likewise.
3314 * modules/vasprintf (Makefile.am): Likewise.
3315 * modules/vsnprintf (Makefile.am): Likewise.
3316 * modules/xalloc (Makefile.am): Likewise.
3317 * modules/xgetcwd (Makefile.am): Likewise.
3318 * modules/xnanosleep (Makefile.am): Likewise.
3319 * modules/xreadlink (Makefile.am): Likewise.
3320 * modules/xstrtod (Makefile.am): Likewise.
3321 * modules/xstrtol (Makefile.am): Likewise.
3322 * modules/xstrtold (Makefile.am): Likewise.
3323 * modules/yesno (Makefile.am): Likewise.
3325 2006-10-12 Jim Meyering <jim@meyering.net>
3327 * m4/getloadavg.m4: Revert the change below.
3329 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3330 lib/getloadavg.c using "ls -L", not "test -f". The latter would
3331 fail with a symlink, which is what coreutils' ./bootstrap now
3334 2006-10-12 Bruno Haible <bruno@clisp.org>
3336 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3338 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3339 MSVC and mingw explicitly.
3341 2006-10-11 Simon Josefsson <jas@extundo.com>
3342 Bruno Haible <bruno@clisp.org>
3344 Add support for multiple gnulib-tool invocations in the scope of a
3345 single configure.ac file.
3346 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3347 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3348 with the same contents as the _LIBADD variable.
3349 (func_emit_initmacro_start, func_emit_initmacro_end,
3350 func_emit_initmacro_done): New functions.
3351 (func_import, func_create_testdir): Invoke them. Allow the identifiers
3352 gl_LIBOBJS and gl_LTLIBOBJS.
3354 2006-10-11 Bruno Haible <bruno@clisp.org>
3356 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3357 (func_create_testdir): Don't create po/Makefile.am, don't invoke
3358 autoreconf. Instead, invoke autopoint explicitly but move back the
3359 *.m4 files from gnulib.
3361 2006-10-11 Bruno Haible <bruno@clisp.org>
3363 * gnulib-tool (func_usage): Make module names after --create-testdir
3365 (func_create_testdir): If no module was specified, use nearly all
3368 2006-10-12 Jim Meyering <jim@meyering.net>
3370 Big performance improvement for fts-based tools that use FTS_NOSTAT.
3371 Avoid spurious inode-mismatch problems on non-POSIX file systems.
3372 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3373 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3374 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3375 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3376 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3377 (fts_set_stat_required): New function.
3378 (fts_open): Defer the calls to fts_stat, if possible or requested.
3379 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3380 into fts_stat itself.
3381 (fts_read): Perform any required (deferred) fts_stat call.
3382 (fts_build): Likewise, for the directory we're about to open and read.
3383 In the readdir loop, carefully decide whether each entry will require
3384 an eventual call to fts_stat, using dirent.d_type info if available.
3385 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3386 a command line argument into this function. Update all callers.
3387 Map a return value of FTS_DOT to FTS_D for a command line argument.
3388 * modules/fts (Depends-on): Add d-type. Alphabetize.
3389 Thanks to Miklos Szeredi for his tenacity and for the initial
3390 bug report about "find" failing on a FUSE-based file system.
3392 * lib/fts.c (fts_open): Use consistent indentation.
3394 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
3396 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3397 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3398 reported by Jim Meyering. All uses of cache variables renamed
3399 to match Autoconf's.
3400 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3403 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3404 Fix misspelling in diagnostic.
3406 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
3408 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3409 defined. Problem reported by Matthew Woehlke.
3411 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3412 Add support for Tandem NonStop R series.
3413 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3416 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3417 (has_trailing_slash): Omit size arg; all callers changed.
3418 Omit 'inline', since it doesn't help performance and we'd
3419 need to configure it.
3420 Don't count //, ///, etc. as having a trailing slash.
3421 As a side effect, this removes a C99ism reported by Matthew Woehlke.
3422 (rpl_rename_dest_slash): On failure, use rename's errno rather
3423 than (in some cases) an incorrect or junk errno.
3424 Simplify code by removing need to compute length; this does
3425 cause it to make two passes instead of one over the file name,
3428 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3429 change, since Autoconf's version may no longer be appropriate now
3430 that we are using CVS Autoconf's version. Add support for Tandem.
3432 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
3433 Bruno Haible <bruno@clisp.org>
3435 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3436 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3437 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3438 gl_AC_TYPE_LONG_LONG.
3440 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3441 instead of HAVE_LONG_LONG.
3442 * lib/printf-args.c (printf_fetchargs): Likewise.
3443 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3444 * lib/vasnprintf.c (VASNPRINTF): Likewise.
3445 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3446 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3447 gl_AC_TYPE_LONG_LONG.
3449 2006-10-11 Bruno Haible <bruno@clisp.org>
3451 * m4/longlong.m4: Add comments.
3452 * m4/ulonglong.m4: Likewise.
3454 2006-10-10 Bruno Haible <bruno@clisp.org>
3456 Make it possible to #define stpcpy, strdup to aliases.
3457 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3458 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3460 2006-10-10 Bruno Haible <bruno@clisp.org>
3462 Make it possible to #define gcd to an alias.
3463 * lib/gcd.c: Include config.h.
3465 2006-10-10 Bruno Haible <bruno@clisp.org>
3467 Make it possible to #define c_isascii to an alias.
3468 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3469 defined. Undefine the macros before defining them, to avoid gcc
3471 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3472 define NO_C_CTYPE_MACROS early.
3474 2006-10-10 Bruno Haible <bruno@clisp.org>
3476 Make it possible to #define set_program_name to an alias.
3477 * lib/progname.c: Don't undefine set_program_name; instead, undefine
3478 ENABLE_RELOCATABLE early.
3480 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
3482 Port to Tandem NSK OSS, which has 64-bit signed int but at most
3483 32-bit unsigned int. Problem reported by Matthew Woehlke in:
3484 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3485 More generally, don't assume that 64-bit signed int is available
3486 if unsigned int is, and vice versa.
3487 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3488 unsigned symbols, not on their signed counterparts.
3489 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3490 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3491 (UINT64_C, UINTMAX_C):
3493 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3494 unsigned counterparts.
3495 (Have_long_long, Unsigned): New macros.
3496 (Int): Renamed from INT.
3497 (strtoimax): Use the new macros.
3498 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3499 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3500 * modules/inttypes (inttypes.h): Substitute
3501 HAVE_UNSIGNED_LONG_LONG_INT.
3502 * modules/stdint (stdint.h): Likewise.
3503 (Files): Add m4/ulonglong.m4.
3505 2006-10-10 Bruno Haible <bruno@clisp.org>
3507 Fix a gcc -Wshadow warning.
3508 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3510 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3511 gl_linked_indexof_from_to): Likewise.
3512 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3514 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3516 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3517 Reported by Eric Blake.
3519 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
3521 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3522 for NetBSD. Problem reported by Bruno Haible.
3524 2006-10-09 Jim Meyering <jim@meyering.net>
3526 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3527 Patch from Bruno Haible.
3529 2006-10-09 Jim Meyering <jim@meyering.net>
3531 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3532 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3533 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3535 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
3537 Don't include <config.h> twice; this doesn't work in some cases,
3538 e.g., when config.h has "#define intmax_t long long int" and
3539 we include <config.h>, <inttypes.h>, <config.h> in that order.
3540 Problem reported by Matthew Woehlke in:
3541 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3542 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3543 * lib/fts-cycle.c: Don't include config.h.
3544 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3545 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3546 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
3547 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3549 * lib/xstrtoumax.c: Likewise.
3550 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3551 __strtol and the like, so that this module is more like its siblings.
3552 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3553 Remove; no longer needed now that we assume gnulib inttypes.h.
3555 2006-10-08 Bruno Haible <bruno@clisp.org>
3557 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3560 2006-10-07 Jim Meyering <jim@meyering.net>
3562 * modules/inttypes (inttypes.h): Revert what seems to have been
3563 an inadvertent part of today's change: use "|", not "/" in the
3564 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3566 2006-10-07 Bruno Haible <bruno@clisp.org>
3568 * modules/sublist: New file.
3570 2006-10-07 Bruno Haible <bruno@clisp.org>
3572 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3573 * modules/argz (argz.h): Likewise.
3574 * modules/arpa_inet (arpa/inet.h): Likewise.
3575 * modules/byteswap (byteswap.h): Likewise.
3576 * modules/configmake (configmake.h): Likewise.
3577 * modules/fcntl (fcntl.h): Likewise.
3578 * modules/fnmatch (fnmatch.h): Likewise.
3579 * modules/getopt (getopt.h): Likewise.
3580 * modules/glob (glob.h): Likewise.
3581 * modules/inttypes (inttypes.h): Likewise.
3582 * modules/netinet_in (netinet/in.h): Likewise.
3583 * modules/poll (poll.h): Likewise.
3584 * modules/stdbool (stdbool.h): Likewise.
3585 * modules/stdint (stdint.h): Likewise.
3586 * modules/sys_select (sys/select.h): Likewise.
3587 * modules/sys_socket (sys/socket.h): Likewise.
3588 * modules/sys_stat (sys/stat.h): Likewise.
3589 * modules/sysexits (sysexits.h): Likewise.
3590 * modules/unistd (unistd.h): Likewise.
3591 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3592 Add a "DO NOT EDIT" comment to the generated file.
3593 (func_import): Likewise for gnulib-comp.m4.
3595 2006-10-07 Bruno Haible <bruno@clisp.org>
3597 * lib/gl_sublist.h: New file.
3598 * lib/gl_sublist.c: New file.
3600 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
3602 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3603 name (relative to the original working directory) and the file
3604 name component (relative to the temporary working directory). All
3606 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3607 * lib/mkdir-p.c (make_dir_parents): Likewise.
3608 * lib/mkdir-p.h (make_dir_parents): Likewise.
3610 2006-10-06 Eric Blake <ebb9@byu.net>
3612 Define several macros for use by the clean-temp module.
3613 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3614 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3615 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3617 * lib/clean-temp.h (close_stream_temp): New declaration.
3618 * lib/clean-temp.c (includes): Pull in headers according to what
3619 other modules are in use.
3620 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3622 2006-10-06 Bruno Haible <bruno@clisp.org>
3624 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3625 instead of fopen, fwriteerror.
3627 2006-10-06 Bruno Haible <bruno@clisp.org>
3629 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3630 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3632 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3633 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3634 Return an error indicator.
3635 Suggested by Eric Blake.
3637 2006-10-06 Bruno Haible <bruno@clisp.org>
3639 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3640 Reported by Eric Blake.
3642 2006-10-06 Bruno Haible <bruno@clisp.org>
3644 * modules/closeout (Description): Mention stderr too.
3646 2006-10-06 Bruno Haible <bruno@clisp.org>
3647 and Paul Eggert <eggert@cs.ucla.edu>
3649 * lib/closeout.c (close_stdout): Also close stderr.
3650 * lib/closeout.h: Update comment.
3652 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
3654 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3655 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3656 * lib/dirchownmod.c: Include lchown.h.
3657 * lib/lchown.c: Don't include files that lchown.h now includes.
3658 Don't declare chown, since lchown.h now does that.
3659 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3660 (lchown): Define to rpl_chown if lchown is declared but
3661 does not exist. Declare using a prototype if lchown is not
3662 declared. Add a copyright notice.
3663 * lib/mkstemp.h: Include <unistd.h>.
3664 * lib/openat.c: Include lchown.h.
3666 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
3667 we now test for that separately.
3668 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
3669 rather than O_NOFOLLOW, when testing whether it's possible to
3670 avoid a race condition reliably.
3671 * lib/savewd.c (savewd_chdir): Likewise.
3673 Remove macros that are no longer needed now that stdint.h is
3675 * lib/fsusage.c (UINTMAX_MAX): Remove.
3676 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
3677 * lib/utimecmp.c (SIZE_MAX): Remove.
3679 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
3681 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
3682 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
3685 2006-10-05 Bruno Haible <bruno@clisp.org>
3687 * lib/gl_list.h (gl_sortedlist_search_from_to,
3688 gl_sortedlist_indexof_from_to): New declarations.
3689 (gl_list_implementation): New fields sortedlist_search_from_to,
3690 sortedlist_indexof_from_to.
3691 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
3693 * lib/gl_list.c (gl_sortedlist_search_from_to,
3694 gl_sortedlist_indexof_from_to): New functions.
3695 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
3697 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
3698 (gl_array_sortedlist_search_from_to): New function.
3699 (gl_array_list_implementation): Update.
3700 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
3702 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
3703 (gl_carray_sortedlist_search_from_to): New function.
3704 (gl_carray_list_implementation): Update.
3705 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
3706 gl_linked_sortedlist_indexof_from_to): New functions.
3707 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3708 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3709 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
3710 gl_tree_sortedlist_indexof_from_to): New functions.
3711 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3712 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3714 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3715 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
3718 2006-10-05 Bruno Haible <bruno@clisp.org>
3720 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
3721 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
3722 (struct gl_list_implementation): Add fields search_from_to,
3723 indexof_from_to. Remove fields search, indexof.
3724 (gl_list_search): Use the search_from_to method.
3725 (gl_list_search_from, gl_list_search_from_to): New functions.
3726 (gl_list_indexof): Use the indexof_from_to method.
3727 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3728 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
3729 (gl_list_search_from, gl_list_search_from_to): New functions.
3730 (gl_list_indexof): Use the indexof_from_to method.
3731 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3732 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
3733 gl_array_indexof. Add start_index, end_index arguments.
3734 (gl_array_search_from_to): Renamed from gl_array_search. Add
3735 start_index, end_index arguments.
3736 (gl_array_remove, gl_array_list_implementation): Update.
3737 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
3738 gl_carray_indexof. Add start_index, end_index arguments.
3739 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
3740 start_index, end_index arguments.
3741 (gl_carray_remove, gl_carray_list_implementation): Update.
3742 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
3743 gl_linked_search. Add start_index, end_index arguments.
3744 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
3745 start_index, end_index arguments.
3746 (gl_linked_remove): Update.
3747 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3748 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3749 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
3751 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
3752 gl_tree_search. Add start_index, end_index arguments.
3753 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3754 start_index, end_index arguments.
3755 (gl_tree_remove): Update.
3756 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3757 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3758 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
3760 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
3761 gl_tree_search. Add start_index, end_index arguments.
3762 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3763 start_index, end_index arguments.
3764 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3766 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3768 2006-10-05 Bruno Haible <bruno@clisp.org>
3770 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
3772 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3773 fwriteerror_temp): New declarations.
3774 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
3775 (descriptors): New variable.
3776 (cleanup): First, close the descriptors.
3777 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
3778 fclose_temp, fwriteerror_temp): New functions.
3780 2006-10-04 Jim Meyering <jim@meyering.net>
3782 * lib/fts.c (fts_open): Tiny comment change.
3784 2006-10-04 Bruno Haible <bruno@clisp.org>
3786 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3787 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3789 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3790 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3792 (gl_LOCK): Require gl_LOCK_BODY.
3794 2006-10-04 Bruno Haible <bruno@clisp.org>
3796 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3797 (gl_oset_search_atleast): New declaration.
3798 (struct gl_oset_implementation): Add field 'search_atleast'.
3799 (gl_oset_search_atleast): New inline function.
3800 * lib/gl_oset.c (gl_oset_search_atleast): New function.
3801 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3802 (gl_array_oset_implementation): Update.
3803 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3804 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3805 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3807 2006-10-04 Bruno Haible <bruno@clisp.org>
3809 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3811 2006-10-03 Bruno Haible <bruno@clisp.org>
3813 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3814 from gl_avltreehash_list_implementation.
3816 2006-10-03 Bruno Haible <bruno@clisp.org>
3818 * lib/gl_oset.c (gl_oset_add): Fix return type.
3820 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
3822 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3824 2006-10-02 Eric Blake <ebb9@byu.net>
3826 * modules/strnlen (Depends-on): Add extensions.
3828 2006-10-02 Eric Blake <ebb9@byu.net>
3830 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3831 definition in 2.60+.
3833 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
3835 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3838 2006-10-02 Bruno Haible <bruno@clisp.org>
3840 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3841 to the AUTOMAKE_OPTIONS.
3842 Reported by Jim Meyering.
3844 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
3846 Work around bug in Solaris 10 /proc file system:
3847 /proc/self/fd/NNN/.. isn't the parent directory of
3848 the directory whose file descriptor is NNN. This needs to
3849 be worked around at run time, not compile time, since a
3850 program might be built on Solaris 8, where things work, and
3852 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
3853 to use the following interface instead:
3854 (OPENAT_BUFFER_SIZE): New macro.
3855 (openat_proc_name): New function.
3856 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3857 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3859 * lib/openat-proc.c: New file.
3860 * modules/openat (Files): Add lib/openat-proc.c.
3861 (Depends-on): Add same-inode, stdbool.
3862 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
3864 2006-09-29 Bruno Haible <bruno@clisp.org>
3866 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
3867 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
3868 argument. Set stdout_closed before testing for ferror, not after.
3869 (fwriteerror, fwriteerror_no_ebadf): New functions.
3871 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3873 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
3875 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
3877 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
3878 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
3880 2006-09-28 Jim Meyering <jim@meyering.net>
3882 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
3885 2006-09-28 Bruno Haible <bruno@clisp.org>
3887 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
3888 * modules/linkedhash-list (Depends-on): Likewise.
3889 * modules/rbtreehash-list (Depends-on): Likewise.
3891 2006-09-28 Bruno Haible <bruno@clisp.org>
3893 * lib/strndup.h: Simplify the redefinition of strndup.
3894 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
3895 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
3897 2006-09-28 Bruno Haible <bruno@clisp.org>
3899 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
3900 * lib/gl_linkedhash_list.c: Likewise.
3901 * lib/gl_rbtreehash_list.c: Likewise.
3903 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
3905 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
3908 * lib/__fpending.h: Don't include <stdio_ext.h> unless
3909 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
3910 it causes <stdio_ext.h> to cause a compile-time error.
3911 Problem reported by Nelson H. F. Beebe.
3912 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
3913 of HAVE_DECL___PENDING.
3915 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
3916 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
3919 2006-09-27 Jim Meyering <jim@meyering.net>
3921 This file could end up with a definition for a function
3922 named __strndup, rather than rpl_strndup on a system with
3923 incomplete weak_alias support.
3924 * lib/strndup.c (strndup): Rename from __strndup.
3925 Remove #defines that used to map __strndup to strndup.
3926 Don't use K&R prototypes.
3927 Remove LIBC-related code, since this file is not sync'd with glibc.
3928 * lib/strndup.h: Revamp, accordingly.
3929 * m4/strndup.m4: Modernize.
3931 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
3933 * modules/savewd (Depends-on): Add 'raise'.
3934 * lib/savewd.c: Include <signal.h>, for 'raise'.
3936 2006-09-26 Jim Meyering <jim@meyering.net>
3938 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
3939 when we detect Darwin 8.7.0's acl_get_file bug.
3940 Rearrange to perform the new (below) run-test while $LIBS
3941 contains any acl-related library. Set USE_ACL at the end.
3942 (gl_ACL_GET_FILE): New function.
3944 2006-09-26 Eric Blake <ebb9@byu.net>
3946 * lib/verror.c: Include <config.h> unconditionally.
3948 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
3950 * modules/clock-time (Maintainer): Add self.
3951 * modules/getlogin_r (Depends-on): Add extensions.
3953 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3955 * modules/clock-time: New module.
3956 * modules/nanosleep (Depends-on): Add clock-time.
3957 * modules/gethrxtime (Depends-on): Likewise.
3958 * modules/gettime (Depends-on): Likewise.
3959 * modules/settime (Depends-on): Likewise.
3961 * modules/fts-lgpl: Depend on openat.
3962 * modules/mkancesdirs: Depend on savewd.
3963 * modules/mkdir-p: Likewise.
3965 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3967 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
3969 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
3970 `gl_have_arbitrary_file_name_length_limit' to
3971 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
3972 actually works between configure runs.
3974 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3975 Bruno Haible <bruno@clisp.org>
3977 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
3979 2006-09-25 Jim Meyering <jim@meyering.net>
3981 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
3982 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
3984 2006-09-25 Eric Blake <ebb9@byu.net>
3986 * gnulib-tool (func_import, func_create_testdir): Fix typos in
3987 exec's in 2006-09-18 patch when shuffling fds.
3989 2006-09-25 Bruno Haible <bruno@clisp.org>
3991 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
3992 Reported by Jim Meyering.
3994 2006-09-24 Jim Meyering <jim@meyering.net>
3996 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
3997 compare a pointer against a literal "0". That caused failures with
3998 at least HP-UX's hpcc.
4000 2006-09-22 Simon Josefsson <jas@extundo.com>
4004 * modules/gc-hmac-sha1:
4005 * modules/gc-hmac-md5:
4007 * modules/gc-arcfour: Distribute more files.
4009 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4011 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4012 (gl_linked_iterator_from_to): Initialize struct completely.
4013 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4014 (gl_tree_iterator_from_to): Likewise
4015 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4016 * lib/gl_array_list.c [lint] (gl_array_iterator)
4017 (gl_array_iterator_from_to): Likewise.
4018 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4019 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4020 (gl_carray_iterator_from_to): Likewise.
4022 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4023 * lib/md4.c (md4_process_block): Remove unused variable.
4024 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4025 parentheses for clarity.
4027 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4029 * modules/bison-i18n (Depends-on): Add gettext.
4031 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4033 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4034 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4035 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4036 also add missing comma that caused broken test.
4037 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4038 stdlib.h, for `abort'.
4039 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4041 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4042 include unistd.h if present, for `rmdir'.
4043 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4045 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4046 in the process include standard headers for prototypes.
4047 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4048 gets declared on GNU/Linux.
4049 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4050 unistd.h, for `rmdir'.
4051 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4053 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4055 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4057 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4059 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4061 * gnulib-tool (func_version): Create output all at once. This
4062 may help avoid triggering unnecessary SIGPIPEs, and at any
4063 rate it doesn't hurt.
4065 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4066 Bruno Haible <bruno@clisp.org>
4068 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4069 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4070 * m4/signed.m4 (bh_C_SIGNED): Likewise.
4072 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4073 (gl_FUNC_VASPRINTF): Invoke it.
4075 2006-09-22 Bruno Haible <bruno@clisp.org>
4077 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4078 getloadavg.c as first argument.
4080 2006-09-22 Bruno Haible <bruno@clisp.org>
4082 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4083 at the beginning of the gl_INIT macro.
4084 * modules/getloadavg (configure.ac): Pass $gl_source_base to
4087 2006-09-22 Bruno Haible <bruno@clisp.org>
4089 * gnulib-tool (func_create_megatestdir): Don't include the config-h
4091 Suggested by Ralf Wildenhues.
4093 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
4095 Import this patch from libc:
4097 2006-09-06 Jakub Jelinek <jakub@redhat.com>
4099 * lib/regex_internal.c (re_string_reconstruct): Handle
4100 offset < pstr->valid_raw_len && pstr->offsets_needed case.
4101 Ensure no bytes read before raw_mbs array. Pass a saved copy of
4102 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4103 re_string_context_at.
4105 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4107 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4108 gl_REGEX now does it for us.
4109 (gl_REGEX): Add test taken from
4110 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4112 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4113 Check that large offsets work. Modernize Autoconf usages.
4114 Prefer "yes" to mean a good thing rather than a bad.
4115 Don't put "#define mkstemp" in config.h, as this might interfere
4116 with standard system headers that "#define mkstemp mkstemp64".
4118 * modules/mkstemp (Depends-on): Add extensions, so that
4119 mkstemp is visible on some platforms.
4120 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4121 (Include): Change to "mkstemp.h" from <stdlib.h>.
4122 (Files): Add mkstemp.h.
4124 * lib/mkstemp.h: New file, since some standard headers
4126 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4127 Include "mkstemp.h".
4128 Make the _LIBC code resemble glibc original more,
4129 e.g., use K&R style.
4130 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4131 (mkstemp): Remove, since mkstemp.h does this for us.
4132 * lib/stdlib--.h: Include mkstemp.h.
4134 Import this patch from libc:
4136 2006-04-07 Ulrich Drepper <drepper@redhat.com>
4138 * lib/tempname.c (__gen_tempname): Change attempts_min
4139 into a macro. Use preprocessor to decide how to initialize
4140 attempts [Coverity CID 67].
4142 2006-09-20 Bruno Haible <bruno@clisp.org>
4144 * lib/mkdtemp.c: Import from libc.
4145 2006-04-07 Ulrich Drepper <drepper@redhat.com>
4146 * sysdeps/posix/tempname.c (__gen_tempname): Change
4147 attempts_min into a macro. Use preprocessor to decide how to
4148 initialize attempts [Coverity CID 67].
4149 2001-11-27 Paul Eggert <eggert@twinsun.com>
4150 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4151 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4153 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4155 * gnulib-tool (func_exit): New function, to allow to pass the
4156 exit status portably through the trap. Use everywhere.
4157 (--help, --version): Signal a write error.
4158 (trap): catch SIGPIPE, for write errors.
4159 Exit at the end of the trap, with the correct exit status.
4161 2006-09-19 Karl Berry <karl@gnu.org>
4163 * doc/gnulib.texi: note about the license texinfo files.
4165 2006-09-19 Eric Blake <ebb9@byu.net>
4167 * gnulib-tool: Avoid space-tab.
4169 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
4171 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4172 that prevented coreutils 6.1 from building. Problem reported
4173 by Petter Reinholdtsen.
4175 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
4177 * gnulib-tool (avoidlist): Fix typo that broke options like
4178 --avoid=lock that are used by coreutils bootstrap.
4180 2006-09-18 Mark D. Baushke <mdb@gnu.org>
4182 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4183 more systematically.
4185 2006-09-18 Jim Meyering <jim@meyering.net>
4187 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4189 2006-09-18 Bruno Haible <bruno@clisp.org>
4191 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4193 2006-09-18 Bruno Haible <bruno@clisp.org>
4195 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4196 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4197 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4198 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4199 * m4/gettext.m4: Require autoconf >= 2.52.
4200 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4201 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4202 of gl_cv_header_inttypes_h.
4204 2006-09-18 Bruno Haible <bruno@clisp.org>
4206 * lib/javaversion.c: Include configmake.h.
4208 2006-09-18 Bruno Haible <bruno@clisp.org>
4210 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4211 avoid that the while loops be executed in a subshell.
4213 2006-09-18 Bruno Haible <bruno@clisp.org>
4215 * MODULES.html.sh (func_module): Break long lines.
4216 Suggested by Bruce Korb <bkorb@gnu.org>.
4218 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4220 Speed up by a factor of 1.12.
4221 * gnulib-tool (nl): New variable.
4222 (func_import): Rewrite include directive extraction to only read each
4225 2006-09-17 Bruno Haible <bruno@clisp.org>
4227 * modules/javaversion (Makefile.am): Remove DEFS setting.
4228 (Depends-on): Add configmake, for PKGDATADIR definition.
4230 2006-09-17 Bruno Haible <bruno@clisp.org>
4232 * gnulib-tool (func_create_testdir): Rewrite all files at once.
4234 2006-09-17 Bruno Haible <bruno@clisp.org>
4236 * gnulib-tool (func_append): New function, stolen from libtool.m4.
4237 (func_modules_transitive_closure, func_modules_add_dummy,
4238 func_modules_to_filelist, func_import, func_create_testdir,
4239 func_create_megatestdir, ...): Use it wherever possible.
4240 Suggested by Ralf Wildenhues.
4242 2006-09-16 Karl Berry <karl@gnu.org>
4244 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4245 to avoid sectioning errors.
4246 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4247 [ifinfo]: blank line after @center-ed titles.
4248 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4249 Spell FSF address consistently with others.
4250 (These changes approved by rms.)
4252 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4254 Speed up by a factor of 1.61.
4255 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4256 already checked module names again.
4258 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4260 Speed up by a factor of 1.13.
4261 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4262 for new_files, and the input to func_add_or_update.
4264 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4266 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4267 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4269 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
4271 * modules/mkancesdirs (Depends-on): Add fcntl.
4272 * modules/savewd: New file.
4273 * MODULES.html.sh (File system functions): Add savewd.
4275 * modules/configmake (Makefile.am): Add support for the
4276 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4278 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
4280 * m4/savewd.m4: New file.
4282 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
4284 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4285 (dirchownmod): New arg FD. All callers changed.
4286 Use FD rather than opening the directory ourself, as opening is
4287 now the caller's responsibility.
4288 * lib/dirchownmod.h: Likewise.
4289 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4290 hosts that require <sys/types.h> before <sys/stat.h>. Include
4291 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4293 (mkancesdirs): Return length of prefix of FILE that has already
4294 been made, or -2 if there is a child doing the work. Redo
4295 algorithm so that it is O(N) rather than O(N**2). Optimize away
4296 ".", and treat ".." specially since it might stray back into
4297 already-created areas. Use a subprocess if necessary. New arg
4298 WD; all users changed. MAKE_DIR function should now return 1
4299 if it creates a directory that is not readable. Return -2 if
4300 a child process is spun off.
4301 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4302 Adjust signature to match code.
4303 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4304 (make_dir_parents): Use a subprocess if necessary. New arg WD;
4306 * lib/savewd.c, lib/savewd.h: New files.
4308 2006-09-15 Jim Meyering <jim@meyering.net>
4310 * modules/rename-dest-slash: New module.
4311 * MODULES.html.sh (posix_compat): Add it here.
4313 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4315 2006-09-15 Jim Meyering <jim@meyering.net>
4317 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4320 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4322 2006-09-15 Jim Meyering <jim@meyering.net>
4324 * lib/rename-dest-slash.c (has_trailing_slash): Use
4325 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4326 (rpl_rename_dest_slash): Perform the cheaper trailing slash
4327 test before testing whether SRC is a directory.
4328 Suggestions from Bruno Haible.
4330 Avoid a warning about an unused variable.
4331 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4332 into the #ifdef block where it's used.
4334 * lib/rename-dest-slash.c: New file.
4336 2006-09-14 Bruno Haible <bruno@clisp.org>
4338 * lib/allocsa.c: Include <config.h> unconditionally.
4339 * lib/asnprintf.c: Likewise.
4340 * lib/asprintf.c: Likewise.
4341 * lib/c-strcasecmp.c: Likewise.
4342 * lib/c-strcasestr.c: Likewise.
4343 * lib/c-strncasecmp.c: Likewise.
4344 * lib/c-strstr.c: Likewise.
4345 * lib/classpath.c: Likewise.
4346 * lib/clean-temp.c: Likewise.
4347 * lib/concatpath.c: Likewise.
4348 * lib/copy-file.c: Likewise.
4349 * lib/csharpcomp.c: Likewise.
4350 * lib/csharpexec.c: Likewise.
4351 * lib/execute.c: Likewise.
4352 * lib/fatal-signal.c: Likewise.
4353 * lib/findprog.c: Likewise.
4354 * lib/fwriteerror.c: Likewise.
4355 * lib/gl_array_list.c: Likewise.
4356 * lib/gl_array_oset.c: Likewise.
4357 * lib/gl_avltree_list.c: Likewise.
4358 * lib/gl_avltree_oset.c: Likewise.
4359 * lib/gl_avltreehash_list.c: Likewise.
4360 * lib/gl_carray_list.c: Likewise.
4361 * lib/gl_linked_list.c: Likewise.
4362 * lib/gl_linkedhash_list.c: Likewise.
4363 * lib/gl_list.c: Likewise.
4364 * lib/gl_oset.c: Likewise.
4365 * lib/gl_rbtree_list.c: Likewise.
4366 * lib/gl_rbtree_oset.c: Likewise.
4367 * lib/gl_rbtreehash_list.c: Likewise.
4368 * lib/imaxabs.c: Likewise.
4369 * lib/imaxdiv.c: Likewise.
4370 * lib/javacomp.c: Likewise.
4371 * lib/javaexec.c: Likewise.
4372 * lib/javaversion.c: Likewise.
4373 * lib/linebreak.c: Likewise.
4374 * lib/localcharset.c: Likewise.
4375 * lib/lock.c: Likewise.
4376 * lib/mbchar.c: Likewise.
4377 * lib/mbswidth.c: Likewise.
4378 * lib/mkdtemp.c: Likewise.
4379 * lib/pipe.c: Likewise.
4380 * lib/printf-args.c: Likewise.
4381 * lib/printf-parse.c: Likewise.
4382 * lib/progname.c: Likewise.
4383 * lib/progreloc.c: Likewise.
4384 * lib/readlink.c: Likewise.
4385 * lib/sh-quote.c: Likewise.
4386 * lib/stpcpy.c: Likewise.
4387 * lib/stpncpy.c: Likewise.
4388 * lib/strcasecmp.c: Likewise.
4389 * lib/strcasestr.c: Likewise.
4390 * lib/strcspn.c: Likewise.
4391 * lib/striconv.c: Likewise.
4392 * lib/strncasecmp.c: Likewise.
4393 * lib/strnlen1.c: Likewise.
4394 * lib/strstr.c: Likewise.
4395 * lib/strtok_r.c: Likewise.
4396 * lib/tls.c: Likewise.
4397 * lib/tmpdir.c: Likewise.
4398 * lib/unicodeio.c: Likewise.
4399 * lib/unsetenv.c: Likewise.
4400 * lib/vasnprintf.c: Likewise.
4401 * lib/vasprintf.c: Likewise.
4402 * lib/wait-process.c: Likewise.
4403 * lib/xallocsa.c: Likewise.
4404 * lib/xsetenv.c: Likewise.
4405 * lib/xstriconv.c: Likewise.
4407 2006-09-13 Simon Josefsson <jas@extundo.com>
4409 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4410 that internally, suggested by Ralf Wildenhues
4411 <Ralf.Wildenhues@gmx.de>.
4413 2006-09-13 Simon Josefsson <jas@extundo.com>
4415 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4417 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4419 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
4421 * lib/_fpending.c: Include <config.h> unconditionally, since we no
4422 longer worry about uses that don't define HAVE_CONFIG_H.
4423 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4424 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4425 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4426 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4427 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4428 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4429 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4430 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4431 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4432 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4433 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4434 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4435 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4436 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4437 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4438 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4439 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4440 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4441 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4442 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4443 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4444 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4445 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4446 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4447 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4448 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4449 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4450 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4451 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4452 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4453 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4454 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4455 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4456 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4457 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4458 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4459 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4460 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4461 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4462 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4463 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4466 2006-09-13 Eric Blake <ebb9@byu.net>
4468 * lib/getopt.c: Fix typo in last commit.
4470 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
4472 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4475 2006-09-12 Jim Meyering <jim@meyering.net>
4477 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4478 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4479 Reported by Nelson H. F. Beebe.
4481 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
4483 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4484 program_invocation_name and program_invocation_short_name are
4486 * lib/argp-namefrob.h: Move declarations of program_invocation_name
4487 and program_invocation_short_name to argp.h, so they are visible
4489 * lib/argp.h: Likewise
4491 2006-09-10 Bruno Haible <bruno@clisp.org>
4493 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4494 m4/inttypes_h.m4, m4/uintmax_t.m4.
4496 2006-09-10 Bruno Haible <bruno@clisp.org>
4498 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4499 gl_AC_TYPE_UINTMAX_T.
4501 2006-09-10 Bruno Haible <bruno@clisp.org>
4503 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4505 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
4507 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4508 convention. Text proposed by Bruno Haible.
4509 (struct argp_option): Document the use of N_() wrappers.
4511 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4512 '\v', and translate the two parts separately, instead of feeding
4513 the whole string to gettext. This allows to exclude
4514 '\v' from the strings visible to the translator by writing doc
4515 strings as N_("..") "\v" N_("..").
4517 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
4519 * config/srclist.txt: Undo latest change; the bug was fixed.
4521 2006-09-09 Bruno Haible <bruno@clisp.org>
4523 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4524 assignments if building a library without libtool.
4525 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4526 in func_emit_lib_Makefile_am.
4527 (func_import): When building a static library libfoo.a, arrange to
4528 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4529 (func_create_testdir): Likewise.
4530 * modules/gc (configure.ac, Makefile.am): If building statically,
4531 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4532 * modules/iconvme (configure.ac, Makefile.am): Likewise.
4533 * modules/striconv (configure.ac, Makefile.am): Likewise.
4534 Based on a suggestion by Ralf Wildenhues.
4536 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
4538 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4539 Check for unistd.h too, since Autoconf doesn't assume POSIX.
4542 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
4543 Add year_2050_test to catch glibc bug 2821
4544 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4546 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
4547 Prefer #ifdef to #if.
4549 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
4550 Return from 'main' instead of calling 'exit'.
4552 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
4554 * lib/mktime.c (guess_time_tm): Fix bug where mktime
4555 returned the maximum time_t value rather than (time_t) -1.
4556 Problem originally reported by William Bardwell
4557 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4559 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4561 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4564 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
4566 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4569 2006-09-08 Jim Meyering <jim@meyering.net>
4571 Don't make generated files read-only. That would bother too many
4572 people. However, do retain the ability to work when targets are
4573 read-only: remove the destination and temporary files before writing
4574 them (when generated via sed or echo), or by using the -f option for
4575 both cp and mv commands. Suggestion to use -f from Paul Eggert.
4576 * modules/alloca-opt, modules/argz, modules/arpa_inet:
4577 * modules/byteswap, modules/configmake, modules/fcntl:
4578 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4579 * modules/localcharset, modules/netinet_in, modules/poll:
4580 * modules/stdbool, modules/stdint, modules/sys_select:
4581 * modules/sys_socket, modules/sys_stat, modules/sysexits:
4583 2006-09-08 Jim Meyering <jim@meyering.net>
4585 Avoid new build failure on FreeBSD 6.0.
4586 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4587 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
4588 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4590 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4592 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4594 2006-09-07 Jim Meyering <jim@meyering.net>
4596 Fix global typo in last change: use chmod u-w, not chmod u-x.
4597 Spotted by Paul Eggert and Bruce Korb.
4598 * modules/alloca-opt, modules/argz, modules/arpa_inet:
4599 * modules/byteswap, modules/configmake, modules/fcntl:
4600 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4601 * modules/localcharset, modules/netinet_in, modules/poll:
4602 * modules/stdbool, modules/stdint, modules/sys_select:
4603 * modules/sys_socket, modules/sys_stat, modules/sysexits:
4605 2006-09-06 Jim Meyering <jim@meyering.net>
4607 Make generated files be read-only.
4608 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4609 Ensure that each generated file is now read-only.
4610 * modules/argz: Likewise.
4611 * modules/arpa_inet: Likewise.
4612 * modules/byteswap: Likewise.
4613 * modules/configmake: Likewise.
4614 * modules/fcntl: Likewise.
4615 * modules/fnmatch: Likewise.
4616 * modules/getopt: Likewise.
4617 * modules/glob: Likewise.
4618 * modules/inttypes: Likewise.
4619 * modules/netinet_in: Likewise.
4620 * modules/poll: Likewise.
4621 * modules/stdbool: Likewise.
4622 * modules/stdint: Likewise.
4623 * modules/sys_select: Likewise.
4624 * modules/sys_socket: Likewise.
4625 * modules/sys_stat: Likewise.
4626 * modules/sysexits: Likewise.
4627 * modules/localcharset: Same as above, but continue using temporary
4628 file named "t-$@" (why different?) rather than the "$@-t" used
4631 * modules/sysexits (Makefile.am): Replace literal occurrences
4632 of "sysexit.h" more readable, and more consistent, "$@".
4634 2006-09-06 Bruno Haible <bruno@clisp.org>
4636 * modules/striconv: New file.
4637 * modules/xstriconv: New file.
4638 * MODULES.html.sh (Internationalization functions): Add striconv,
4641 2006-09-06 Bruno Haible <bruno@clisp.org>
4643 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4644 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4645 not using libtool correctly.
4647 2006-09-06 Bruno Haible <bruno@clisp.org>
4649 * lib/striconv.h: New file.
4650 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4652 * lib/xstriconv.h: New file.
4653 * lib/xstriconv.c: New file.
4655 2006-09-06 Bruno Haible <bruno@clisp.org>
4657 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4660 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4662 * lib/argz_.h: Sync from Libtool.
4664 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
4665 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4667 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
4669 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
4671 * modules/trim: New file.
4673 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
4675 * lib/trim.h: New file.
4676 * lib/trim.c: New file.
4678 2006-09-05 Bruno Haible <bruno@clisp.org>
4680 * MODULES.html.sh (String handling): Add trim.
4682 2006-09-04 Karl Berry <karl@gnu.org>
4684 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
4687 2006-09-03 Bruno Haible <bruno@clisp.org>
4689 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
4692 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
4694 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
4695 not gl_GETLOADAVG. Omit unneeded semicolons.
4696 Problems reported by Ralf Wildenhues in
4697 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4698 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
4699 at the end, which is the usual gnulib style.
4701 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
4702 of doing all the work ourselves.
4703 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
4704 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
4706 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
4708 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
4709 Problem reported by Ralf Wildenhues in
4710 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4712 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
4713 HAVE_STRUCT_STATFS_F_FSTYPENAME.
4715 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
4717 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
4718 yesterday's patch by changing test -n to test -z.
4720 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
4722 * modules/getloadavg (Files): Add m4/getloadavg.m4.
4723 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
4724 the former is now obsolescent.
4726 * modules/chdir-long (Depends-on): Add fcntl.
4728 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
4730 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
4731 obsolescent, and programs should use gnulib instead.
4732 * m4/getloadavg.m4: New file, with contents taken from Autoconf
4733 but with prefixes changed.
4735 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
4737 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
4738 or stdbool.h, because they might not exist while configuring.
4740 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
4741 Don't include unistd.h or limits.h; not needed, since chdir-long.h
4743 (O_DIRECTORY): Remove.
4745 2006-08-31 Eric Blake <ebb9@byu.net>
4747 * gnulib-tool: Don't let emacs change spaces to TAB.
4749 2006-08-31 Bruno Haible <bruno@clisp.org>
4751 * gnulib-tool: When calling func_import more than once, do it in a
4753 Reported by Eric Blake <ebb9@byu.net>.
4755 2006-08-31 Bruno Haible <bruno@clisp.org>
4757 * gnulib-tool (nl): Remove variable.
4758 (sed_transform_lib_file): Use more robust test for config-h module.
4759 (func_import): Fix typo in 2006-08-25 patch.
4761 2006-08-31 Bruno Haible <bruno@clisp.org>
4763 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
4764 specified, augment Makefile.am variables instead of assigning them.
4766 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
4768 Work around a bug in both the Linux and SunOS 64-bit kernels:
4769 nanosleep mishandles sleeps for longer than 2**31 seconds.
4770 Problem reported by Frank v Waveren in
4771 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4772 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
4773 Check for nanosleep bug.
4774 (LIB_NANOSLEEP): Append clock_gettime library if needed.
4776 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
4778 Work around a bug in both the Linux and SunOS 64-bit kernels:
4779 nanosleep mishandles sleeps for longer than 2**31 seconds.
4780 Problem reported by Frank v Waveren in
4781 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4782 * lib/nanosleep.c (BILLION): New constant.
4783 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4784 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4787 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
4789 * modules/nanosleep (Depends-on): Add gettime.
4791 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
4792 and Simon Josefsson <jas@extundo.com>
4793 and Oskar Liljeblad <oskar@osk.mine.nu>
4795 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4796 * gnulib-tool (func_import): New license type 'unmodifiable license
4798 * modules/fdl: Use it. Longer description.
4799 * module/gpl, module/lgpl: New files.
4801 2006-08-30 Jim Meyering <jim@meyering.net>
4803 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4804 shadowing the parameter.
4806 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4810 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4812 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4813 sharing with gnulib. Report by Eric Blake.
4815 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4817 * modules/isapipe: New file.
4818 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4820 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4822 * modules/configmake (Makefile.am): Add a comment, and omit
4823 the CONFIGMAKE_ prefix from generated macro names. Suggested
4826 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4828 * m4/isapipe.m4: New file.
4830 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4832 * lib/isapipe.c, lib/isapipe.h: New files.
4834 2006-08-29 Jim Meyering <jim@meyering.net>
4836 * modules/configmake (Makefile.am): Make configmake.h depend on
4837 Makefile. Otherwise, a stale configmake.h could hang around.
4839 2006-08-29 Eric Blake <ebb9@byu.net>
4841 * lib/error.c (error_at_line, print_errno_message): Match libc, after
4842 resolution of upstream bug 3044.
4844 2006-08-29 Bruno Haible <bruno@clisp.org>
4846 * modules/localcharset (Depends-on): Add configmake.
4847 (Makefile.am): Remove setting of LIBDIR through DEFS.
4849 2006-08-29 Bruno Haible <bruno@clisp.org>
4851 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4854 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4856 * modules/fcntl: New file.
4857 * modules/chdir-safer (Depends-on): Add fcntl.
4858 * modules/fts: Likewise.
4859 * modules/mkdir-p: Likewise.
4861 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
4862 This undoes the most recent change, since we're now addressing the
4863 problem in a different way.
4865 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
4866 into output, since the output might be called Makefile.am even
4867 if $makefile_name is something different.
4868 (func_import): Use $makefile_am rather than
4869 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
4872 * modules/inttypes (Files): Add m4/inttypes-h.m4.
4874 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4876 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
4877 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
4878 recent change to stdint.m4, since we're now addressing the problem in a
4881 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4883 * m4/fcntl_h.m4: New file.
4885 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4887 * lib/fcntl_.h: New file.
4888 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
4890 * lib/dirchownmod.c: Likewise.
4891 * lib/fts.c: Likewise.
4893 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
4894 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
4895 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
4896 just before including <inttypes.h>, to avoid circular inclusion.
4898 2006-08-28 Jim Meyering <jim@meyering.net>
4900 * doc/visibility.texi: Actually read and correct the grammar of the
4901 sentence affected by yesterday's change.
4903 2006-08-28 Eric Blake <ebb9@byu.net>
4905 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
4908 2006-08-28 Eric Blake <ebb9@byu.net>
4910 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
4912 2006-08-28 Eric Blake <ebb9@byu.net>
4914 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
4916 2006-08-28 Bruno Haible <bruno@clisp.org>
4918 * modules/c-strstr: New file, from GNU gettext.
4919 * MODULES.html.sh (String handling): Add c-strstr.
4921 2006-08-28 Bruno Haible <bruno@clisp.org>
4923 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
4925 Reported by Eric Blake.
4927 2006-08-28 Bruno Haible <bruno@clisp.org>
4929 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
4930 (VASNPRINTF): Return a string of length > INT_MAX without failing.
4931 * lib/vasprintf.c: Include errno.h, limits.h.
4932 (EOVERFLOW): New fallback definition.
4933 (vasprintf): Test here whether the string length is > INT_MAX.
4934 * lib/vsnprintf.c: Include errno.h, limits.h.
4935 (EOVERFLOW): New fallback definition.
4936 (vsnprintf): Fix bug when generated string was too long for the buffer.
4937 Test here whether the string length is > INT_MAX.
4939 2006-08-28 Bruno Haible <bruno@clisp.org>
4941 * lib/inttypes_.h (SCNX*): Remove definitions.
4942 Reported by Eric Blake.
4944 2006-08-28 Bruno Haible <bruno@clisp.org>
4946 * lib/c-strstr.h: New file, from GNU gettext.
4947 * lib/c-strstr.c: New file, from GNU gettext.
4949 2006-08-28 Bruno Haible <bruno@clisp.org>
4951 * gnulib-tool: Reorder some statements.
4953 2006-08-28 Bruno Haible <bruno@clisp.org>
4955 * gnulib-tool: New option --makefile-name.
4956 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
4958 (func_import): Write $makefile_name to the cache file, and read it from
4959 there unless explicitly specified. Use $makefile_name as file name
4960 instead of Makefile.am. Adjust the recommendations accordingly.
4962 2006-08-28 Bruno Haible <bruno@clisp.org>
4964 * gnulib-tool (func_verify_module): Check against misapplying patch.
4966 2006-08-28 Bruno Haible <bruno@clisp.org>
4968 * gnulib-tool (func_relativize, func_relconcat): New functions.
4969 Give an error if --local-dir is given with --update.
4970 Remove trailing slashes from $local_gnulib_dir.
4971 (func_import): Store the relativized $local_gnulib_dir in
4972 gnulib-cache.m4, and read it from there if not specified explicitly.
4974 2006-08-28 Bruno Haible <bruno@clisp.org>
4976 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
4977 is the current directory. Respect also $local_gnulib_dir.
4979 2006-08-28 Bruno Haible <bruno@clisp.org>
4980 Simon Josefsson <jas@extundo.com>
4983 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
4985 2006-08-27 Jim Meyering <jim@meyering.net>
4987 * doc/visibility.texi: Remove duplicate word: "pointer".
4989 2006-08-26 Bruno Haible <bruno@clisp.org>
4991 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
4992 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
4993 (Makefile.am): Create inttypes.h from inttypes_.h.
4994 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
4996 * modules/imaxabs: New file.
4998 * modules/imaxdiv: New file.
5000 2006-08-26 Bruno Haible <bruno@clisp.org>
5002 * m4/inttypes.m4: New file.
5003 * m4/_inttypes_h.m4: Remove file.
5004 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5006 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5008 * m4/imaxabs.m4: New file.
5010 * m4/imaxdiv.m4: New file.
5012 2006-08-26 Bruno Haible <bruno@clisp.org>
5014 * lib/inttypes_.h: New file.
5015 * lib/inttypes.h: Remove file.
5016 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5018 * lib/imaxabs.c: New file.
5020 * lib/imaxdiv.c: New file.
5022 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
5024 New config-h module, so that "make" output needn't be cluttered
5026 * MODULES.html.sh (Support for building libraries and executables):
5028 * modules/config-h: New file.
5029 * gnulib-tool (nl, sed_transform_lib_file): New vars.
5030 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5031 the config-h module is used.
5033 New configmake module, so that "make" output needn't be cluttered
5034 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5035 * MODULES.html.sh (Support for building libraries and executables):
5037 * modules/configmake: New file.
5039 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
5041 * m4/config-h.m4: New file.
5043 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
5045 * config/srclist.txt: Add elisp-comp.
5047 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
5049 * MODULES.html.sh (Support for building libraries and executables):
5051 * build-aux/elisp-comp: New file.
5052 * modules/elisp-comp: New file.
5054 2006-08-24 Bruno Haible <bruno@clisp.org>
5056 * gnulib-tool (func_create_testdir): Use non-default values of
5057 sourcebase and m4base.
5059 2006-08-24 Bruno Haible <bruno@clisp.org>
5061 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5064 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
5066 * modules/openat (Depends-on): Add lchown.
5068 2006-08-23 Bruno Haible <bruno@clisp.org>
5070 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5071 of gl_LOCK_EARLY instead of gl_LOCK.
5073 2006-08-23 Bruno Haible <bruno@clisp.org>
5075 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5077 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5079 2006-08-23 Bruno Haible <bruno@clisp.org>
5081 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5084 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5085 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5086 (gl_LOCK): New macro.
5088 2006-08-22 Simon Josefsson <jas@extundo.com>
5090 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5093 2006-08-22 Simon Josefsson <jas@extundo.com>
5095 * MODULES.html.sh: Add "Support for maintaining and release
5098 * build-aux/gnupload: New file, from coreutils.
5100 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
5102 Avoid the need for AC_LIBSOURCES in m4 macros.
5103 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5104 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5105 * modules/check-version (EXTRA_DIST): Add check-version.h.
5106 * modules/crc (EXTRA_DIST): Add crc.h.
5107 * modules/des (EXTRA_DIST): Add des.h.
5108 * modules/gc (EXTRA_DIST): Add gc.h.
5109 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5110 * modules/getline (EXTRA_DIST): Add getline.h.
5111 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5112 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5113 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5114 * modules/md2 (EXTRA_DIST): Add md2.h.
5115 * modules/md4 (EXTRA_DIST): Add md4.h.
5116 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5117 * modules/read-file (EXTRA_DIST): Add read-file.h.
5118 * modules/readline (EXTRA_DIST): Add readline.h.
5119 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5122 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
5124 * m4/rijndael.m4 (gl_ARCFOUR):
5125 * m4/arctwo.m4 (gl_ARCTWO):
5126 * m4/check-version.m4 (gl_CHECK_VERSION):
5127 * m4/crc.m4 (gl_CRC):
5128 * m4/des.m4 (gl_DES):
5129 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5131 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5132 * m4/getline.m4 (gl_FUNC_GETLINE):
5133 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5134 * m4/hmac-md5.m4 (gl_HMAC_MD5):
5135 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5136 * m4/md2.m4 (gl_MD2):
5137 * m4/md4.m4 (gl_MD4):
5138 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5139 * m4/read-file.m4 (gl_FUNC_READ_FILE):
5140 * m4/readline.m4 (gl_FUNC_READLINE):
5141 * m4/rijndael.m4 (gl_RIJNDAEL):
5142 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5143 to get the necessary .h files and whatnot.
5145 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
5147 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5148 gnulib rather than the other way around.
5149 * config/srclistvars.sh (COREUTILS): Remove.
5151 2006-08-22 Jim Meyering <jim@meyering.net>
5153 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5155 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5157 2006-08-22 Eric Blake <ebb9@byu.net>
5159 * modules/regexprops-generic: New file.
5160 * MODULES.html.sh (Support for building documentation): List it.
5162 2006-08-22 Eric Blake <ebb9@byu.net>
5164 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5165 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5166 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5167 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5169 2006-08-22 Bruno Haible <bruno@clisp.org>
5171 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5172 and lib_LTLIBRARIES like the other lib_* variables.
5174 2006-08-22 Bruno Haible <bruno@clisp.org>
5176 * build-aux/x-to-1.in: New file, from GNU gettext.
5178 2006-08-22 Bruno Haible <bruno@clisp.org>
5180 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5183 2006-08-22 Bruno Haible <bruno@clisp.org>
5185 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5188 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
5191 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5193 Problem reported by Bruno Haible.
5195 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
5197 Avoid the need for AC_LIBSOURCES in m4 macros.
5198 * modules/acl (EXTRA_DIST): Add acl.h.
5199 * modules/argmatch (Files): Add m4/argmatch.m4.
5200 (configure.ac): Add gl_ARGMATCH.
5201 (EXTRA_DIST): Renamed from lib_SOURCES, for
5202 consistency with the other modules. Remove argmatch.c.
5203 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5204 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5205 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5206 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5207 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5208 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5209 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5210 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5211 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5212 * modules/closeout (EXTRA_DIST): Add closeout.h.
5213 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5214 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5215 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5216 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
5217 dirname.h; remove basename.c and stripslash.c.
5218 * modules/exclude (EXTRA_DIST): Add exclude.h.
5219 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5220 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5221 * modules/file-type (EXTRA_DIST): Add file-type.h.
5222 * modules/filemode (EXTRA_DIST): Add filemode.h.
5223 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5224 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5225 * modules/fpending (EXTRA_DIST): Add __fpending.h.
5226 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5227 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5228 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5229 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5230 * modules/getdate (EXTRA_DIST): Add getdate.c.
5231 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5232 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5233 * modules/getpass (EXTRA_DIST): Add getpass.h.
5234 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5235 * modules/group-member (EXTRA_DIST): Add group-member.h.
5236 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5237 * modules/hash (EXTRA_DIST): Add hash.h.
5238 * modules/human (EXTRA_DIST): Add human.h.
5239 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5240 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5241 * modules/lchown (EXTRA_DIST): Add lchown.h.
5242 * modules/long-options (EXTRA_DIST): Add long-options.h.
5243 * modules/lstat (EXTRA_DIST): Add lstat.h.
5244 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5245 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5246 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5247 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5248 * modules/memxor (EXTRA_DIST): Add memxor.h.
5249 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5250 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5251 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5252 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5253 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5254 * modules/physmem (EXTRA_DIST): Add physmem.h.
5255 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5256 * modules/posixver (EXTRA_DIST): Add posixver.h.
5257 * modules/quote (EXTRA_DIST): Add quote.h.
5258 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5259 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5260 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5261 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5262 regex_internal.h regexec.c.
5263 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5264 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5265 * modules/same (EXTRA_DIST): Add same.h.
5266 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5267 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5268 * modules/savedir (EXTRA_DIST): Add savedir.h.
5269 * modules/sha1 (EXTRA_DIST): Add sha1.h.
5270 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5271 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5272 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5273 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5274 * modules/strdup (EXTRA_DIST): Add strdup.h.
5275 * modules/strftime (EXTRA_DIST): Add strftime.h.
5276 * modules/strndup (EXTRA_DIST): Add strndup.h.
5277 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5278 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5279 * modules/time_r (EXTRA_DIST): Add time_r.h.
5280 * modules/timespec (EXTRA_DIST): Add timespec.h.
5281 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5282 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5283 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5284 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5285 * modules/userspec (EXTRA_DIST): Add userspec.h.
5286 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5287 * modules/utimens (EXTRA_DIST): Add utimens.h.
5288 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5289 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5290 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5291 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5292 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5293 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5294 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5295 * modules/yesno (EXTRA_DIST): Add yesno.h.
5297 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
5299 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5301 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5302 * m4/dev-ino.m4, same-inode.m4: Remove.
5304 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5305 * m4/acl.m4 (AC_FUNC_ACL):
5306 * m4/backupfile.m4 (gl_BACKUPFILE):
5307 * m4/c-strtod.m4 (gl_C99_STRTOLD):
5308 * m4/canon-host.m4 (gl_CANON_HOST):
5309 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5310 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5311 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5312 * m4/cloexec.m4 (gl_CLOEXEC):
5313 * m4/close-stream.m4 (gl_CLOSE_STREAM):
5314 * m4/closeout.m4 (gl_CLOSEOUT):
5315 * m4/dirfd.m4 (gl_FUNC_DIRFD):
5316 * m4/dirname.m4 (gl_DIRNAME):
5317 * m4/exclude.m4 (gl_EXCLUDE):
5318 * m4/exitfail.m4 (gl_EXITFAIL):
5319 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5320 * m4/file-type.m4 (gl_FILE_TYPE):
5321 * m4/filemode.m4 (gl_FILEMODE):
5322 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5323 * m4/fpending.m4 (gl_FUNC_FPENDING):
5324 * m4/fprintftime.m4 (gl_FPRINTFTIME):
5325 * m4/fts.m4 (gl_FUNC_FTS):
5326 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5327 * m4/getdate.m4 (gl_GETDATE):
5328 * m4/gethrxtime.m4 (gl_GETHRXTIME):
5329 * m4/getpagesize.m4 (gl_GETPAGESIZE):
5330 * m4/getpass.m4 (gl_FUNC_GETPASS):
5331 * m4/gettime.m4 (gl_GETTIME):
5332 * m4/getugroups.m4 (gl_GETUGROUPS):
5333 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5334 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5335 * m4/hard-locale.m4 (gl_HARD_LOCALE):
5336 * m4/hash.m4 (gl_HASH):
5337 * m4/idcache.m4 (gl_IDCACHE):
5338 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5339 * m4/lchown.m4 (gl_FUNC_LCHOWN):
5340 * m4/long-options.m4 (gl_LONG_OPTIONS):
5341 * m4/lstat.m4 (gl_FUNC_LSTAT):
5342 * m4/md5.m4 (gl_MD5):
5343 * m4/memcasecmp.m4 (gl_MEMCASECMP):
5344 * m4/memcoll.m4 (gl_MEMCOLL):
5345 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5346 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5347 * m4/memxor.m4 (gl_MEMXOR):
5348 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5349 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5350 * m4/modechange.m4 (gl_MODECHANGE):
5351 * m4/mountlist.m4 (gl_MOUNTLIST):
5352 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5353 * m4/openat.m4 (gl_FUNC_OPENAT):
5354 * m4/pathmax.m4 (gl_PATHMAX):
5355 * m4/physmem.m4 (gl_PHYSMEM):
5356 * m4/posixtm.m4 (gl_POSIXTM):
5357 * m4/posixver.m4 (gl_POSIXVER):
5358 * m4/quote.m4 (gl_QUOTE):
5359 * m4/quotearg.m4 (gl_QUOTEARG):
5360 * m4/readtokens.m4 (gl_READTOKENS):
5361 * m4/readutmp.m4 (gl_READUTMP):
5362 * m4/regex.m4 (gl_REGEX):
5363 * m4/safe-read.m4 (gl_SAFE_READ):
5364 * m4/safe-write.m4 (gl_SAFE_WRITE):
5365 * m4/same.m4 (gl_SAME):
5366 * m4/save-cwd.m4 (gl_SAVE_CWD):
5367 * m4/savedir.m4 (gl_SAVEDIR):
5368 * m4/settime.m4 (gl_SETTIME):
5369 * m4/sha1.m4 (gl_SHA1):
5370 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5371 * m4/stat-macros.m4 (gl_STAT_MACROS):
5372 * m4/stat-time.m4 (gl_STAT_TIME):
5373 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5374 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5375 * m4/strdup.m4 (gl_FUNC_STRDUP):
5376 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5377 * m4/strndup.m4 (gl_FUNC_STRNDUP):
5378 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5379 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5380 * m4/time_r.m4 (gl_TIME_R):
5381 * m4/timespec.m4 (gl_TIMESPEC):
5382 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5383 * m4/unlinkdir.m4 (gl_UNLINKDIR):
5384 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5385 * m4/userspec.m4 (gl_USERSPEC):
5386 * m4/utimecmp.m4 (gl_UTIMECMP):
5387 * m4/utimens.m4 (gl_UTIMENS):
5388 * m4/xalloc.m4 (gl_XALLOC):
5389 * m4/xgetcwd.m4 (gl_XGETCWD):
5390 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5391 * m4/xreadlink.m4 (gl_XREADLINK):
5392 * m4/xstrtod.m4 (gl_XSTRTOD):
5393 * m4/yesno.m4 (gl_YESNO):
5394 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5395 to get the necessary .h files and whatnot.
5397 2006-08-21 Mark D. Baushke <mdb@gnu.org>
5398 Bruno Haible <bruno@clisp.org>
5400 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5401 /bin/sh understanding of '!' conditional negation.
5403 2006-08-21 Jim Meyering <jim@meyering.net>
5405 * modules/openat (Depends-on): Really alphabetize.
5407 * modules/acl (Depends-on): Add error and quote.
5409 * check-module (find_included_lib_files): Add at-func.c to the
5410 ok-to-include-more-than-once white list.
5412 * modules/openat (Depends-on): Add lstat. Alphabetize.
5414 2006-08-21 Bruno Haible <bruno@clisp.org>
5416 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5417 Emit a pkgdata_DATA variable only if some snippets add contents to it.
5418 Reported by Martin Lambers <marlam@marlam.de>.
5420 2006-08-21 Bruno Haible <bruno@clisp.org>
5422 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5423 specify an installation location, don't emit a noinst_LIBRARIES or
5424 noinst_LTLIBRARIES assignment.
5426 2006-08-21 Bruno Haible <bruno@clisp.org>
5429 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5430 BeOS has mbrtowc() but no <wctype.h>.
5432 2006-08-21 Bruno Haible <bruno@clisp.org>
5435 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5438 2006-08-21 Bruno Haible <bruno@clisp.org>
5441 * lib/mbchar.h: Include <wctype.h> only if it exists.
5443 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
5445 Remove files that are no longer needed by their respective modules.
5446 * m4/obstack.m4: Remove.
5447 * m4/strerror_r.m4: Remove.
5448 * m4/uint32_t.m4: Remove.
5449 * m4/uintptr_t.m4: Remove.
5450 * m4/ullong_max.m4: Remove.
5451 * m4/xstrtoimax.m4: Remove.
5452 * m4/xstrtoumax.m4: Remove.
5454 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5455 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5456 dependencies now capture this.
5458 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5459 Do not use AC_LIBSOURCES, since gnulib modules now do this.
5460 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5461 * m4/human.m4 (gl_HUMAN): Likewise.
5462 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5463 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5465 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5467 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5468 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5470 * m4/human.m4 (gl_HUMAN): Likewise.
5471 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5472 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5473 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5474 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5475 * m4/xstrtol (gl_XSTRTOL): Likewise.
5477 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5478 AC_TYPE_LONG_LONG_INT.
5479 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5480 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5481 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5482 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5484 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5487 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5488 (gl_PREREQ_XSTRTOUL): Remove.
5490 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5492 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5495 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
5497 Add and change modules to make it easier for coreutils to use
5499 * modules/backupfile (Files): Remove m4/d-ino.m4.
5500 (Depends-on): Add d-ino.
5501 * modules/cycle-check (Depends-on): Add stdint.
5502 (lib_SOURCES): Add cycle-check.h.
5503 * modules/d-ino: New module.
5504 * modules/d-type: New module.
5505 * modules/error (Files): Remove m4/strerror_r.m4.
5506 * modules/filemode (Files): Add m4/st_dm_mode.m4.
5507 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5508 m4/inttypes_h.m4, m4/uintmax_t.m4.
5509 (Depends-on): Add stdint.
5510 (lib_SOURCES): Add fsusage.h.
5511 * modules/getcwd (Files): Remove d-ino.m4.
5512 (Depends-on): Add d-ino.
5513 * modules/getndelim2 (Depends-on): Add stdint.
5514 * modules/glob (Files): Remove m4/d-type.m4.
5515 (Depends-on): Add d-type.
5516 * modules/host-os: New module.
5517 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5518 m4/inttypes_h.m4, m4/uintmax_t.m4.
5519 * Depends-on: Add stdint.
5520 (lib_SOURCES): Add human.h.
5521 * modules/inttostr (Files): Remove m4/intmax_t.m4,
5522 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5523 m4/uintmax_t.m4, m4/ulonglong.m4.
5524 (Depends-on): Add stdint.
5525 (EXTRA_DIST): Add inttostr.h.
5526 * modules/lchmod: New module.
5527 * modules/link-follow: New module.
5528 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5529 (Depends-on): Add lchmod.
5530 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5531 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5532 (Depends-on): Add stdint.
5533 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5534 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5535 (Depends-on): Add stdint.
5536 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5537 * modules/perl: New module.
5538 * modules/regex (Depends-on): Add stdint.
5539 * modules/rmdir-errno: New module.
5540 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5542 (Depends-on): Add stdint.
5543 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5545 (Depends-on): Add stdint.
5546 * modules/unlink-busy: New module.
5547 * modules/utimecmp (Depends-on): Add stdint.
5548 * modules/uptime: New module.
5549 * modules/winsz-ioctl: New module.
5550 * modules/winsz-termios: New module.
5551 * modules/xnanosleep (Depends-on): Add nanosleep.
5552 * modules/ullong_max: Remove.
5553 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5554 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5555 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5556 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5557 (Depends-on): Add inttypes.
5558 (lib_SOURCES): Add xstrtol.h.
5559 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5560 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5561 * MODULES.html.sh: Move 'assert' into the assert section.
5562 Move 'dummy' into the linking section.
5564 Add section for compatibility checks for POSIX:2001 functions,
5565 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5566 winsz-ioctl, and winsz-termios into it.
5568 Add top-level Misc section and put host-os, perl, and uptime
5571 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
5573 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5574 now assume the stdint module. Do not include inttypes.h.
5575 * lib/fsusage.h: Likewise.
5576 * lib/getndelim2.c: Likewise.
5577 * lib/human.h: Likewise.
5578 * lib/inttostr.h: Likewise.
5579 * lib/obstack.c: Likewise.
5580 * lib/regex_internal.h: Likewise.
5581 * lib/tempname.c: Likewise.
5582 * lib/utimecmp.c: Likewise.
5583 * lib/xstrtol.h: Likewise.
5585 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5587 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5588 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5589 * lib/xtime.h: Likewise.
5591 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
5593 * modules/openat (Files): Add lib/fchmodat.c.
5594 Fixes problem reported by Jay Youngman.
5596 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
5598 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
5599 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
5601 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
5602 Bruno Haible <bruno@clisp.org>
5604 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5605 and is a script that invokes bison. Tighten the code. Add comments.
5607 2006-08-18 Jim Meyering <jim@meyering.net>
5609 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5610 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5611 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
5612 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5614 2006-08-18 Bruno Haible <bruno@clisp.org>
5616 * modules/bison-i18n: New file.
5617 * MODULES.html.sh (Internationalization functions): Add it.
5619 2006-08-18 Bruno Haible <bruno@clisp.org>
5621 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5622 sys/statvfs.h. When getmntinfo was found, check its declaration and
5623 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5625 2006-08-18 Bruno Haible <bruno@clisp.org>
5627 * m4/bison-i18n.m4: New file, from bison.
5629 2006-08-18 Bruno Haible <bruno@clisp.org>
5631 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5632 (ME_DUMMY): Treat "kernfs" as a dummy.
5633 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5635 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
5637 Update from coreutils.
5639 2006-08-15 Jim Meyering <jim@meyering.net>
5641 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5643 2006-01-17 Jim Meyering <jim@meyering.net>
5645 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5647 2006-01-11 Jim Meyering <jim@meyering.net>
5649 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5650 Check for the lchmod function.
5652 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
5654 Update from coreutils.
5656 * lib/__fpending.h: Add copyright notice.
5657 * lib/fprintftime.h: Likewise.
5658 * lib/savedir.c: Use (C) in copyright notice.
5659 * lib/savedir.h: Likewise.
5661 2006-08-15 Jim Meyering <jim@meyering.net>
5663 * lib/at-func.c: New file, with the logic of all emulated at-functions.
5664 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5665 in support of the EXPECTED_ERRNO macro.
5666 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
5667 definitions. Instead, define the appropriate symbols and include
5669 * lib/mkdirat.c (mkdirat): Likewise.
5670 * lib/fchmodat.c (fchmodat): Likewise.
5671 (ENOSYS): Remove definition.
5672 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
5673 it. Don't include "unistd--.h" -- it wasn't ever used.
5675 2006-01-17 Jim Meyering <jim@meyering.net>
5677 Rewrite fts.c not to change the current working directory,
5678 by using openat, fstatat, fdopendir, etc..
5680 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
5681 (HAVE_OPENAT_SUPPORT): Define.
5682 [_LIBC] (fchdir): Don't undef or define; no longer used.
5683 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
5684 Now, this `function' always succeeds, and consumes its file descriptor
5685 parameter -- so callers must not close such FDs. Update callers.
5686 (diropen_fd, opendirat, cwd_advance_fd): New functions.
5687 (diropen): Add parameter, SP. Adjust all callers.
5688 Implement using diropen_fd, rather than open.
5689 (fts_open): Initialize new member, fts_cwd_fd.
5690 Remove fts_rft-setting code.
5691 (fts_close): Close fts_cwd_fd, if necessary.
5692 (__opendir2): Define in terms of opendir or opendirat,
5693 depending on whether the FST_NOCHDIR flag is set.
5694 (fts_build): Since fts_safe_changedir consumes its FD, and since
5695 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
5696 and close the dup'd file descriptor upon failure.
5697 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
5698 (fts_safe_changedir): Tweak semantics to reflect that this function
5699 now calls cwd_advance_fd and hence consumes its FD argument.
5700 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
5701 [struct FTS] (fts_rft): Remove now-unused member.
5702 [struct FTS] (fts_cycle.state): Improve comment.
5704 * lib/openat.c (openat_needs_fchdir): New function.
5705 * lib/openat.h (openat_needs_fchdir): Declare it.
5707 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
5709 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
5710 Problem and fix reported by Pádraig Brady in
5711 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
5713 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
5715 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
5717 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
5719 * lib/memcoll.c (memcoll): Optimize for the common case where the
5720 arguments are bytewise equal.
5722 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
5724 * doc/regexprops-generic.texi: Add a copyright notice.
5726 2006-08-15 Bruno Haible <bruno@clisp.org>
5728 * modules/tmpdir (License): Change to LGPL.
5730 2006-08-15 Bruno Haible <bruno@clisp.org>
5732 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
5735 2006-08-14 Simon Josefsson <jas@extundo.com>
5737 * config/srclist.txt: Add gnupload.
5739 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
5741 Change copyright notice from LGPL 2 to GPL 2, since that's the
5742 standard form used in the gnulib repository.
5743 * tests/test-lock.c: Likewise.
5744 * tests/test-stdint.c: Likewise.
5745 * tests/test-tls.c: Likewise.
5747 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
5748 prelude-manager. User shorter URLs for GNU projects, without '?'.
5749 Add copyright notice.
5751 * check-module: Add copyright notice. Output a copyright
5752 notice if "--version" is specified.
5753 * modules/COPYING: New file.
5754 * tests/test-getaddrinfo.c: Add copyright notice.
5755 * tests/test-verify.c: Likewise.
5757 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
5759 Change copyright notice from LGPL 2 to GPL 2, since that's the
5760 standard form used in the gnulib repository.
5761 * lib/lock.c: LGPL -> GPL.
5762 * lib/lock.h: Likewise.
5763 * lib/strnlen1.c: Likewise.
5764 * lib/strnlen1.h: Likewise.
5765 * lib/tls.c: Likewise.
5766 * lib/tls.h: Likewise.
5767 * lib/tmpdir.c: Likewise.
5769 * lib/TODO: Remove; this belongs only in coreutils.
5771 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
5773 Add copyright notices to long-enough files that lack them, since
5774 otherwise the files aren't clearly free. Use the same notice that
5775 getdate.texi already uses.
5776 * doc/alloca-opt.texi: Add copyright notice.
5777 * doc/alloca.texi: Likewise.
5778 * doc/ctime.texi: Likewise.
5779 * doc/functions.texi: Likewise.
5780 * doc/gcd.texi: Likewise.
5781 * doc/gnulib-tool.texi: Likewise.
5782 * doc/inet_ntoa.texi: Likewise.
5783 * doc/visibility.texi: Likewise.
5785 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5786 * doc/quote.texi: Add copyright notice.
5788 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5789 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
5790 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
5791 Mention SunOS 5.11. Mention that everything before SunOS 5.7
5792 is now obsolete, and give a pointer to the Sun list.
5793 Add copyright notice.
5795 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
5797 * config/srclistvars.sh: Add copyright notice.
5799 2006-08-14 Eric Blake <ebb9@byu.net>
5801 Import the following change from libc:
5803 2006-08-12 Ulrich Drepper <drepper@redhat.com>
5806 * lib/misc/error.c: Add space between program name and message if file
5809 2006-08-12 Karl Berry <karl@gnu.org>
5811 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5812 remove, these originate in gnulib now.
5814 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5816 * doc/Makefile (standards.info standards.html standards.dvi):
5817 Also depend on make-stds.texi.
5819 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
5821 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5822 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
5824 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5825 in wchar_t. Problem reported by Eric Blake.
5827 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5828 LEN is smaller than SIZE. Suggested by Bruno Haible.
5829 Also, help the compiler to keep LEN in a register.
5831 2006-08-11 Eric Blake <ebb9@byu.net>
5833 * users.txt: Sort. Add tar.
5835 2006-08-11 Bruno Haible <bruno@clisp.org>
5837 * users.txt: New file.
5839 2006-08-11 Bruno Haible <bruno@clisp.org>
5841 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5842 before <wchar.h>. Needed for OSF/1 and BSD/OS.
5844 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
5846 * modules/snprintf (Depends-on): Remove minmax.
5847 (Maintainer): Add self and Bruno.
5849 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
5851 * lib/.cppi-disable: Add snprintf.h, socket_.h.
5852 * lib/snprintf.c: Include <errno.h> and <limits.h>.
5853 (EOVERFLOW): Define if the system does not.
5854 Do not include "minmax.h"; it wasn't used.
5855 (snprintf): Don't assume size_t promotes to an unsigned type.
5856 Fix bug when generated string was too long for the buffer: the
5857 buffer's contents are supposed to be the initial prefix of the
5858 output. Don't assume vasnprintf returns EOVERFLOW if the size
5859 exceeds INT_MAX; do the check ourselves.
5861 Import the following changes from libc:
5863 2006-06-02 Jakub Jelinek <jakub@redhat.com>
5865 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
5866 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
5867 set wc to the byte which couldn't be converted.
5868 (re_string_reconstruct): Don't clear valid_raw_len before calling
5869 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
5870 tip_context using re_string_context_at.
5872 2006-05-02 Ulrich Drepper <drepper@redhat.com>
5874 * lib/posix/regex.h: g++ still cannot handled [restrict].
5876 2006-04-21 Ulrich Drepper <drepper@redhat.com>
5878 * lib/posix/regex.h: Remove special handling for VMS.
5880 2006-08-10 Jim Meyering <jim@meyering.net>
5882 * modules/same-inode: New module.
5883 * modules/dev-ino: New module.
5884 * modules/cycle-check: Depend on these modules, rather than simply
5885 including their .h files.
5886 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
5887 required via m4/cycle-check.m4.
5888 * modules/same: Depend on new same-inode module, rather than
5889 including same-inode.h.
5890 * modules/chdir-safer: New file.
5892 * modules/chown (Depends-on): Add stat-macros.
5894 2006-08-10 Jim Meyering <jim@meyering.net>
5896 * m4/cycle-check.m4: New file.
5897 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
5898 * m4/dev-ino.m4, m4/same-inode.m4: New files.
5900 2006-08-10 Eric Blake <ebb9@byu.net>
5902 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
5903 in from original proposal.
5905 2006-08-10 Eric Blake <ebb9@byu.net>
5906 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5908 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
5911 2006-08-10 Bruno Haible <bruno@clisp.org>
5913 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
5916 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
5918 Sync from coreutils.
5920 2006-07-19 Mike Frysinger <vapier@gentoo.org>
5922 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
5923 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
5925 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
5927 * modules/restrict: Remove; no longer needed now that we assume
5928 Autoconf 2.59 or later.
5929 * MODULES.html.sh: Remove 'restrict'.
5930 * modules/argp (Depends-on): Remove 'restrict'.
5931 * modules/base64 (Depends-on): Likewise.
5932 * modules/gc (Depends-on): Likewise.
5933 * modules/getaddrinfo (Depends-on): Likewise.
5934 * modules/glob (Depends-on): Likewise.
5935 * modules/inet_ntop (Depends-on): Likewise.
5936 * modules/inet_pton (Depends-on): Likewise.
5937 * modules/memxor (Depends-on): Likewise.
5938 * modules/regex (Depends-on): Likewise.
5939 * modules/strtok_r (Depends-on): Likewise.
5940 * modules/time_r (Depends-on): Likewise.
5942 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
5944 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
5945 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
5946 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5947 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
5948 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5949 * m4/memxor.m4 (gl_MEMXOR): Likewise.
5950 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
5951 gl_C_RESTRICT replaced by AC_C_RESTRICT.
5953 Merge from coreutils.
5954 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
5955 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
5956 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5957 * m4/time_r.m4 (gl_TIME_R): Likewise.
5959 2006-08-09 Karl Berry <karl@gnu.org>
5961 * config/srclist.txt: no more gettext-tools, per Bruno.
5963 2006-08-08 Eric Blake <ebb9@byu.net>
5965 * modules/verror: New module.
5966 * MODULES.html.sh: Document it.
5968 2006-08-08 Eric Blake <ebb9@byu.net>
5970 * lib/verror.h, lib/verror.c: New files.
5972 2006-08-08 Eric Blake <ebb9@byu.net>
5974 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
5975 verror_at_line output complies with GNU Coding Standards even when
5978 2006-08-07 Bruno Haible <bruno@clisp.org>
5980 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
5982 Reported by Ralf Wildenhues.
5984 2006-08-07 Bruno Haible <bruno@clisp.org>
5986 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
5987 in an AC_DEFUN. Needed so that the autoconf snippets can use
5990 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5992 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5993 Initialize pkgdata_DATA.
5994 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
5997 2006-08-06 Eric Blake <ebb9@byu.net>
5999 * lib/error.h: Fold in some upstream changes from glibc.
6000 * lib/error.c: Likewise.
6002 2006-08-04 Bruno Haible <bruno@clisp.org>
6004 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6005 Make the mostlyclean-local rule depend on mostlyclean-generic.
6006 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6008 2006-07-31 Bruno Haible <bruno@clisp.org>
6010 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6011 <stdlib.h>, <string.h>.
6013 2006-07-30 Bruno Haible <bruno@clisp.org>
6015 * modules/readlink (License): Change to LGPL.
6017 2006-07-30 Bruno Haible <bruno@clisp.org>
6019 * modules/javaversion (Makefile.am): Distribute javaversion.java and
6020 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6021 set PKGDATADIR to point to it.
6023 2006-07-30 Bruno Haible <bruno@clisp.org>
6025 * modules/csharpexec (configure.ac): Comment out macro invocation.
6026 * modules/javaexec (configure.ac): Likewise.
6027 * modules/javacomp-script (configure.ac): Likewise.
6029 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6031 2006-07-30 Bruno Haible <bruno@clisp.org>
6033 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6036 2006-07-30 Bruno Haible <bruno@clisp.org>
6038 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6040 2006-07-30 Bruno Haible <bruno@clisp.org>
6042 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6043 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6046 2006-07-29 Bruno Haible <bruno@clisp.org>
6048 Make it possible for gnulib-tool to work with locally modified or
6049 augmented gnulib repositories.
6050 * gnulib-tool (func_usage): Document --local-dir option.
6051 (local_gnulib_dir): New variable.
6052 Handle --local-dir option.
6053 (func_lookup_file): New function.
6054 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6055 (func_get_description, func_get_filelist, func_get_description,
6056 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6057 func_get_automake_snippet, func_get_include_directive,
6058 func_get_license, func_get_maintainer): Use func_lookup_file.
6059 (func_import, func_create_testdir): Use func_lookup_file.
6061 2006-07-29 Bruno Haible <bruno@clisp.org>
6063 * modules/setenv (Depends-on): Add unistd.
6065 2006-07-29 Bruno Haible <bruno@clisp.org>
6067 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6069 2006-07-29 Bruno Haible <bruno@clisp.org>
6071 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6073 2006-07-29 Bruno Haible <bruno@clisp.org>
6075 * gnulib-tool (import, update): If there is no Makefile.am, look at
6076 aclocal.m4, instead of bailing out.
6078 2006-07-29 Bruno Haible <bruno@clisp.org>
6080 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6081 Categorize the options by when they are useful.
6083 2006-07-29 Bruno Haible <bruno@clisp.org>
6085 * gnulib-tool (func_usage): Document option --no-libtool.
6086 Handle option --no-libtool.
6087 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6088 for changed semantics of $libtool variable.
6089 (func_import): Likewise. If libtool is not used, show this through
6090 an option --no-libtool.
6091 (func_create_testdir): Update.
6093 2006-07-29 Bruno Haible <bruno@clisp.org>
6095 * gnulib-tool (func_import): Extend error message about missing
6098 2006-07-29 Bruno Haible <bruno@clisp.org>
6100 * gnulib-tool (func_import): Don't create the $docbase directory if
6101 there is no file to store there.
6103 2006-07-29 Bruno Haible <bruno@clisp.org>
6105 * gnulib-tool (autoconf_minversion): If a --dir option is given and
6106 relevant, look for configure.ac there, not in the current directory.
6107 Also use a simple search for AC_PREREQ, not "autoconf --trace".
6109 2006-07-29 Bruno Haible <bruno@clisp.org>
6111 * gnulib-tool (SORT): New variable.
6112 (func_usage): Undocument --assume-autoconf option.
6113 Remove --assume-autoconf option handling.
6114 (autoconf_minversion): Determine from the contents of configure.ac.
6115 (func_import): Remove autoconf_minversion handling.
6116 Suggested by Eric Blake.
6118 2006-07-29 Bruno Haible <bruno@clisp.org>
6120 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6122 2006-07-29 Bruno Haible <bruno@clisp.org>
6124 * config/srclist.txt (*setenv.[ch]): Remove rules.
6126 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6128 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6130 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6132 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6135 2006-07-28 Simon Josefsson <jas@extundo.com>
6137 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6138 * modules/inet_pton (Depends-on): Likewise.
6140 2006-07-28 Simon Josefsson <jas@extundo.com>
6142 * m4/netinet_in_h.m4: New file.
6144 2006-07-28 Simon Josefsson <jas@extundo.com>
6146 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6149 2006-07-28 Simon Josefsson <jas@extundo.com>
6151 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6154 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
6156 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6157 setgid on directories only if they set these bits.
6158 * lib/modechange.h: Remove obsolete comment about masks.
6160 2006-07-28 Eric Blake <ebb9@byu.net>
6162 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6165 2006-07-28 Bruno Haible <bruno@clisp.org>
6167 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6169 2006-07-28 Bruno Haible <bruno@clisp.org>
6171 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6173 2006-07-28 Bruno Haible <bruno@clisp.org>
6175 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6176 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6178 Avoids link error on FreeBSD 4.x.
6179 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6181 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6183 * lib/mbswidth.c (iswcntrl): Likewise.
6185 2006-07-27 Bruno Haible <bruno@clisp.org>
6187 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6190 2006-07-27 Bruno Haible <bruno@clisp.org>
6192 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6193 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6196 2006-07-26 Eric Blake <ebb9@byu.net>
6198 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6200 2006-07-26 Eric Blake <ebb9@byu.net>
6202 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6203 like mingw that lack mkstemp.
6204 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6205 avoid compilation warning on mingw.
6207 2006-07-26 Bruno Haible <bruno@clisp.org>
6209 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6210 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6211 INT_FAST*_MIN, INTPTR_MIN.
6213 2006-07-25 Bruno Haible <bruno@clisp.org>
6215 * modules/version-etc (Depends-on): Add stdarg.
6217 2006-07-25 Bruno Haible <bruno@clisp.org>
6219 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6222 2006-07-25 Bruno Haible <bruno@clisp.org>
6224 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6225 defined in <stdarg.h> or config.h.
6227 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
6229 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6230 (gl_STDIO_SAFER): Remove.
6232 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
6234 * MODULES.html.sh (File stream based Input/Output):
6235 Add fopen-safer, tmpfile-safer; remove stdio-safer.
6236 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6237 * modules/fopen-safer, modules/tmpfile-safer: New files.
6238 * modules/stdio-safer: Remove.
6240 2006-07-24 Bruno Haible <bruno@clisp.org>
6242 * modules/tmpdir: New file.
6243 * MODULES.html.sh (File system functions): Add it.
6245 2006-07-24 Bruno Haible <bruno@clisp.org>
6247 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6248 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6250 2006-07-24 Bruno Haible <bruno@clisp.org>
6252 * modules/clean-temp: New file.
6254 2006-07-24 Bruno Haible <bruno@clisp.org>
6256 * m4/tmpdir.m4: New file, from GNU gettext.
6258 2006-07-24 Bruno Haible <bruno@clisp.org>
6260 * lib/tmpdir.h: New file, from GNU gettext.
6261 * lib/tmpdir.c: New file, from GNU gettext.
6263 2006-07-24 Bruno Haible <bruno@clisp.org>
6265 * lib/clean-temp.h: New file, from GNU gettext.
6266 * lib/clean-temp.c: New file, from GNU gettext.
6268 2006-07-23 Eric Blake <ebb9@byu.net>
6270 * modules/stdio-safer (Files): Add tmpfile-safer.c.
6271 (Depends-on): Add binary-io.
6273 2006-07-23 Eric Blake <ebb9@byu.net>
6275 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6277 2006-07-23 Eric Blake <ebb9@byu.net>
6279 * lib/tmpfile-safer.c: New file.
6280 * lib/stdio-safer.h (fopen_safer): Add prototype.
6281 * lib/stdio--.h (tmpfile): Make safer.
6283 2006-07-23 Bruno Haible <bruno@clisp.org>
6285 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6286 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6287 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6288 gl_linked_remove_at): Use it.
6290 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6291 and Simon Josefsson <jas@extundo.com>
6293 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6295 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6297 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
6299 * modules/close-stream: New file.
6300 * modules/closeout (Description): Make it clear that it exits
6301 with a diagnostic on error.
6302 (Depends-on): Add close-stream. Remove fpending, stdbool.
6303 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6305 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
6307 * m4/close-stream.m4: New file.
6309 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
6311 * lib/close-stream.c, lib/close-stream.h: New files.
6313 2006-07-22 Bruno Haible <bruno@clisp.org>
6315 Merge from GNU gettext 0.15.
6317 2006-05-01 Bruno Haible <bruno@clisp.org>
6319 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6321 2006-07-22 Bruno Haible <bruno@clisp.org>
6323 * modules/javaversion: New file.
6324 * MODULES.html.sh (Java): Add javaversion.
6326 2006-03-12 Bruno Haible <bruno@clisp.org>
6328 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6330 2005-12-04 Bruno Haible <bruno@clisp.org>
6332 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6335 2006-06-21 Bruno Haible <bruno@clisp.org>
6337 Avoid warnings from recent versions of mcs.
6338 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6339 -o, -L, -r any more. Use options documented since mcs-1.0
6340 instead. Similarly for -g.
6342 2005-12-04 Bruno Haible <bruno@clisp.org>
6344 * build-aux/csharpcomp.sh.in: Suffix for resources is
6345 .resources, not .resource.
6347 2005-07-09 Bruno Haible <bruno@clisp.org>
6349 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6351 Reported by Mark Junker <mjscod@gmx.de>.
6353 2006-07-22 Bruno Haible <bruno@clisp.org>
6355 * modules/gettext: Upgrade to gettext-0.15.
6356 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6358 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6360 2006-07-22 Bruno Haible <bruno@clisp.org>
6362 Merge from GNU gettext 0.15.
6364 2006-03-25 Bruno Haible <bruno@clisp.org>
6366 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6368 2006-07-21 Bruno Haible <bruno@clisp.org>
6370 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6373 2006-05-09 Bruno Haible <bruno@clisp.org>
6375 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6376 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6377 for the conftestver execution.
6379 2006-05-01 Bruno Haible <bruno@clisp.org>
6381 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6382 optional target-version argument. Verify that the compiler
6383 groks source of the specified source-version, or add -source
6384 option as necessary. Verify that the compiler produces
6385 bytecode in the specified target-version, or add -target and
6386 -source options as necessary. Make the result of the test
6387 available as variable CONF_JAVAC. Also log error output in
6390 2006-03-11 Bruno Haible <bruno@clisp.org>
6392 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6394 2006-05-09 Bruno Haible <bruno@clisp.org>
6396 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6397 CLASSPATH_SEPARATOR to a semicolon.
6399 2006-03-12 Bruno Haible <bruno@clisp.org>
6401 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6402 available as variable CONF_JAVA, for subsequent autoconf
6403 tests. Also log error output in config.log.
6405 2006-07-19 Bruno Haible <bruno@clisp.org>
6407 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6408 that getline works on glibc2 systems. Needed to avoid trouble
6410 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6412 2005-12-04 Bruno Haible <bruno@clisp.org>
6414 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6415 launcher (untested).
6417 2005-12-04 Bruno Haible <bruno@clisp.org>
6419 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6421 2006-07-22 Bruno Haible <bruno@clisp.org>
6423 * gettext.m4: Update from GNU gettext-0.15.
6426 * inttypes-pri.m4: Likewise.
6427 * inttypes-h.m4: Renamed from inttypes.m4.
6428 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6430 2006-07-22 Bruno Haible <bruno@clisp.org>
6432 Merge from GNU gettext 0.15.
6434 2005-07-05 Bruno Haible <bruno@clisp.org>
6436 * printf-args.c (printf_fetchargs): Work around broken
6437 definition of wint_t on mingw.
6439 2005-02-12 Bruno Haible <bruno@clisp.org>
6441 * xallocsa.h: Add extern "C" for C++.
6443 2006-05-17 Bruno Haible <bruno@clisp.org>
6446 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6448 2006-04-30 Bruno Haible <bruno@clisp.org>
6450 * progreloc.c: Include <mach-o/dyld.h> if available.
6451 (find_executable): Use _NSGetExecutablePath when possible.
6453 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
6455 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6458 2005-12-29 Bruno Haible <bruno@clisp.org>
6460 * progreloc.c (set_program_name_and_installdir): Fix
6463 2005-12-04 Bruno Haible <bruno@clisp.org>
6466 * progreloc.c: Include <windows.h> also on Cygwin.
6467 (find_executable): Add support for Cygwin.
6468 (set_program_name_and_installdir): Handle also platforms with
6471 2006-07-11 Bruno Haible <bruno@clisp.org>
6473 * javacomp.c: Fix a comment.
6474 Reported by Jim Meyering.
6476 2006-04-30 Bruno Haible <bruno@clisp.org>
6478 * javacomp.h (compile_java_class): Add source_version,
6479 target_version arguments.
6480 * javacomp.c: Rewritten to choose only a compiler that
6481 respects the specified source_version and target_version.
6483 2006-06-27 Bruno Haible <bruno@clisp.org>
6485 Assume correct S_ISDIR macro.
6486 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6488 2006-07-22 Bruno Haible <bruno@clisp.org>
6490 * javaversion.h: New file, from GNU gettext.
6491 * javaversion.c: New file, from GNU gettext.
6492 * javaversion.java: New file, from GNU gettext.
6493 * javaversion.class: New file, from GNU gettext.
6495 2006-05-17 Bruno Haible <bruno@clisp.org>
6498 * javaexec.c (execute_java_class): Test for jview program
6501 2006-04-09 Bruno Haible <bruno@clisp.org>
6503 * fatal-signal.c: Don't include string.h.
6504 (at_fatal_signal): Use a copying loop instead of memcpy.
6506 2005-12-04 Bruno Haible <bruno@clisp.org>
6508 * csharpexec.c: Add support for 'clix' launcher (untested).
6509 (execute_csharp_using_sscli): New function.
6510 (execute_csharp_program): Call it.
6512 2006-06-21 Bruno Haible <bruno@clisp.org>
6514 Avoid warnings from recent versions of mcs.
6515 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6516 -o, -L, -r any more. Use options documented since mcs-1.0
6517 instead. Similarly for -g.
6519 2005-07-09 Bruno Haible <bruno@clisp.org>
6521 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6523 Reported by Mark Junker <mjscod@gmx.de>.
6525 2006-06-17 Bruno Haible <bruno@clisp.org>
6527 * config.charset: Update for NetBSD 3.0.
6529 2006-05-17 Bruno Haible <bruno@clisp.org>
6532 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6534 2006-05-16 Bruno Haible <bruno@clisp.org>
6536 * localcharset.c [CYGWIN]: Include <windows.h>.
6537 (get_charset_aliases): For Cygwin, return the same CPxxx
6538 aliases list as under WIN32.
6539 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6540 the environment variables. Fall back to GetACP().
6542 2006-04-05 Bruno Haible <bruno@clisp.org>
6544 * config.charset: Update Juan Manuel Guerrero's address.
6546 2005-02-12 Bruno Haible <bruno@clisp.org>
6548 * allocsa.h: Add extern "C" for C++.
6550 2005-02-10 Bruno Haible <bruno@clisp.org>
6552 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6553 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6555 2006-07-22 Bruno Haible <bruno@clisp.org>
6557 * gettext.h: Update to GNU gettext-0.15.
6559 2006-07-22 Bruno Haible <bruno@clisp.org>
6561 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6562 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6563 lib-prefix.m4, longdouble.m4, ssize_t.m4.
6565 2006-07-21 Eric Blake <ebb9@byu.net>
6567 * modules/stdlib-safer: New file.
6568 * MODULES.html.sh (File stream based Input/Output): Add
6571 2006-07-21 Eric Blake <ebb9@byu.net>
6573 * lib/stdlib-safer.h: New file from coreutils, required by
6576 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
6578 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6580 2006-07-20 Bruno Haible <bruno@clisp.org>
6582 * gnulib-tool: Recognize new option --assume-autoconf.
6583 (autoconf_minversion): New variable.
6584 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6586 2006-07-20 Bruno Haible <bruno@clisp.org>
6588 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6590 2006-07-19 Derek R. Price <derek@ximbiot.com>
6592 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6593 Reindent and repaginate.
6595 2006-07-19 Derek Price <derek@ximbiot.com>
6597 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
6600 2006-07-17 Bruno Haible <bruno@clisp.org>
6602 * modules/list: New file.
6603 * modules/array-list: New file.
6604 * modules/carray-list, modules/carray-list-tests: New files.
6605 * modules/linked-list, modules/linked-list-tests: New files.
6606 * modules/avltree-list, modules/avltree-list-tests: New files.
6607 * modules/rbtree-list, modules/rbtree-list-tests: New files.
6608 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6609 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6610 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6611 * modules/oset: New file.
6612 * modules/array-oset: New file.
6613 * modules/avltree-oset, modules/avltree-oset-tests: New files.
6614 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6615 * tests/test-carray_list.c: New file.
6616 * tests/test-linked_list.c: New file.
6617 * tests/test-avltree_list.c: New file.
6618 * tests/test-rbtree_list.c: New file.
6619 * tests/test-linkedhash_list.c: New file.
6620 * tests/test-avltreehash_list.c: New file.
6621 * tests/test-rbtreehash_list.c: New file.
6622 * tests/test-avltree_oset.c: New file.
6623 * tests/test-rbtree_oset.c: New file.
6624 * MODULES.html.sh (Container data structures): New section.
6626 2006-07-17 Bruno Haible <bruno@clisp.org>
6628 * m4/gl_list.m4: New file.
6630 2006-07-17 Bruno Haible <bruno@clisp.org>
6632 * lib/gl_list.h: New file.
6633 * lib/gl_list.c: New file.
6634 * lib/gl_array_list.h: New file.
6635 * lib/gl_array_list.c: New file.
6636 * lib/gl_carray_list.h: New file.
6637 * lib/gl_carray_list.c: New file.
6638 * lib/gl_linked_list.h: New file.
6639 * lib/gl_linked_list.c: New file.
6640 * lib/gl_anylinked_list1.h: New file.
6641 * lib/gl_anylinked_list2.h: New file.
6642 * lib/gl_avltree_list.h: New file.
6643 * lib/gl_avltree_list.c: New file.
6644 * lib/gl_anyavltree_list1.h: New file.
6645 * lib/gl_anyavltree_list2.h: New file.
6646 * lib/gl_rbtree_list.h: New file.
6647 * lib/gl_rbtree_list.c: New file.
6648 * lib/gl_anyrbtree_list1.h: New file.
6649 * lib/gl_anyrbtree_list2.h: New file.
6650 * lib/gl_anytree_list1.h: New file.
6651 * lib/gl_anytree_list2.h: New file.
6652 * lib/gl_linkedhash_list.h: New file.
6653 * lib/gl_linkedhash_list.c: New file.
6654 * lib/gl_anyhash_list1.h: New file.
6655 * lib/gl_anyhash_list2.h: New file.
6656 * lib/gl_avltreehash_list.h: New file.
6657 * lib/gl_avltreehash_list.c: New file.
6658 * lib/gl_rbtreehash_list.h: New file.
6659 * lib/gl_rbtreehash_list.c: New file.
6660 * lib/gl_anytreehash_list1.h: New file.
6661 * lib/gl_anytreehash_list2.h: New file.
6663 * lib/gl_oset.h: New file.
6664 * lib/gl_oset.c: New file.
6665 * lib/gl_array_oset.h: New file.
6666 * lib/gl_array_oset.c: New file.
6667 * lib/gl_avltree_oset.h: New file.
6668 * lib/gl_avltree_oset.c: New file.
6669 * lib/gl_rbtree_oset.h: New file.
6670 * lib/gl_rbtree_oset.c: New file.
6671 * lib/gl_anytree_oset.h: New file.
6673 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
6675 * m4/mkancesdirs.m4: New file.
6676 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
6677 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
6678 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
6681 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
6683 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
6684 * lib/mkancesdirs.h: New files.
6685 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
6686 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
6687 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
6688 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
6689 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
6690 callers changed. Revamp internals significantly, by not
6691 attempting to create directories that are temporarily more
6692 permissive than the final results. Do not attempt to use
6693 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
6694 This removes some race conditions, fixes some bugs, and simplifies
6695 things. Use new dirchownmod function to do owner and mode changes.
6696 * lib/mkdir-p.h: Likewise.
6697 * lib/modechange.c (octal_to_mode): New function.
6698 (struct mode_change): New member mentioned.
6699 (make_node_op_equals): New arg mentioned. All callers changed.
6700 (mode_compile): Keep track of which mode bits the user has explicitly
6702 (mode_adjust): New arg DIR, so that we implement the X op correctly.
6703 New arg PMODE_BITS, to keep track of which mode bits the user
6704 mentioned; it treats S_ISUID and S_ISGID speciall.
6705 All callers changed.
6706 * lib/modechange.h: Likewise.
6708 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
6710 * MODULES.html.sh: Add mkancestors.
6711 * modules/mkancesdirs: New module.
6712 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
6713 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
6714 The chdir-safer and afs files are now orphans; I'll remove them
6715 unless someone speaks up.
6716 Add lib/dirchownmod.c, lib/dirchownmod.h.
6717 (Depends-on): Remove alloca, chown, save-cwd, dirname.
6718 Add lchown, mkancesdirs.
6719 (Maintainer): Add self.
6721 2006-07-15 Karl Berry <karl@gnu.org>
6723 * gnulib-tool: help message wording/arrangement.
6725 2006-07-14 Simon Josefsson <jas@extundo.com>
6727 * doc/gnulib.texi (Libtool and Windows): New section.
6729 2006-07-12 Simon Josefsson <jas@extundo.com>
6731 * modules/gendocs (License): Fix license, approved by Karl.
6733 2006-07-12 Eric Blake <ebb9@byu.net>
6735 * MODULES.html.sh: Add gendocs.
6737 2006-07-11 Eric Blake <ebb9@byu.net>
6739 * modules/fdl: New module, to install doc/fdl.texi.
6740 * MODULES.html.sh: Add new section for documentation modules.
6741 * gnulib-tool: Avoid space-tab.
6742 (--doc-base): New option, to manage files from doc.
6744 2006-07-11 Eric Blake <ebb9@byu.net>
6746 * m4/absolute-header.m4: Fix comments to match recent change.
6748 2006-07-11 Eric Blake <ebb9@byu.net>
6750 * gnulib-tool: List --doc-base before --tests-base.
6752 2006-07-11 Derek R. Price <derek@ximbiot.com>
6754 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
6756 2006-07-11 Bruno Haible <bruno@clisp.org>
6758 * README: Mention where to put documentation.
6760 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6762 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
6764 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
6766 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
6769 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
6771 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
6772 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
6773 "no/such/file/stdint.h" when there is no such file, so that
6774 the resulting C code can be parsed by dodgy compilers.
6775 Problems reported by Bob Proulx.
6777 2006-07-10 Derek R. Price <derek@ximbiot.com>
6779 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6780 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
6781 macros into the GNU _D_EXACT_NAMLEN.
6782 * lib/savedir.c: Likewise.
6783 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6785 2006-07-10 Derek R. Price <derek@ximbiot.com>
6786 and Paul Eggert <eggert@cs.ucla.edu>
6788 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6790 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
6791 macros into the GNU _D_EXACT_NAMLEN.
6793 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
6795 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6796 around the absolute name, to work around a problem with the HP-UX
6797 11.23 native C compiler, reported by Bob Proulx.
6799 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
6801 * doc/maintain.texi, make-stds.texi: Sync from
6802 <http://savannah.gnu.org/projects/gnustandards>.
6804 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
6806 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6808 2006-07-09 Jim Meyering <jim@meyering.net>
6810 * m4/glob.m4: Remove a doubled word in a comment.
6812 2006-07-09 Jim Meyering <jim@meyering.net>
6814 * lib/argp-pv.c: Remove a doubled word in a comment.
6815 * lib/check-version.c (check_version): Likewise.
6816 * lib/javacomp.c (compile_java_class): Likewise.
6818 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
6820 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6821 for the benefit of people using Autoconf 2.60. If you want to
6822 support older Autoconf versions you can copy m4/onceonly_2_57.m4
6823 (or m4/onceonly.m4, if pre-2.57) manually.
6825 2006-07-08 Jim Meyering <jim@meyering.net>
6827 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6829 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6830 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6833 2006-07-08 Jim Meyering <jim@meyering.net>
6835 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6837 2006-07-07 Simon Josefsson <jas@extundo.com>
6839 * tests/test-crc.c: Change expected crc value, the test vector
6840 were probably computed using the old broken crc.c?
6842 2006-07-06 Simon Josefsson <jas@extundo.com>
6844 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6845 now the canonical place for the M4 file).
6847 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6848 from the sys_socket dependency now.
6850 * modules/inet_pton (Files): Ditto.
6852 * modules/inet_ntop (Files): Ditto.
6854 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
6856 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6857 not gl_PREREQ_GETUSERSHELL.
6859 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6861 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
6862 with only one argument, for Autoconf 2.60.
6863 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
6864 expand to nothing, so add a shell command to avoid syntax error.
6865 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6867 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6869 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
6871 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
6873 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
6874 no longer needed. Check for isblank decl.
6875 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
6876 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
6879 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
6881 * lib/getloadavg.c: Use __VMS, not VMS.
6882 * lib/getopt.c: Likewise.
6883 * lib/getpagesize.h: Likewise.
6884 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
6885 and probably does not work.
6887 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
6889 * lib/.cppi-disable: Add wcwidth.
6890 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
6891 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
6892 (ISGRAPH): Remove. All uses changed to isgraph.
6893 (FOLD) [!defined _LIBC]: Remove special case.
6894 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
6895 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
6897 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
6900 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
6902 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
6903 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
6904 brackets. Other minor changes to suppress some compiler
6907 2006-07-06 Derek R. Price <derek@ximbiot.com>
6908 and Paul Eggert <eggert@cs.ucla.edu>
6910 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
6911 of invoking obsolescent AC_HEADER_DIRENT macro.
6912 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6913 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6914 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6915 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6916 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
6917 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6918 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
6919 * m4/readdir.m4: Remove; no longer needed.
6921 2006-07-06 Derek R. Price <derek@ximbiot.com>
6922 and Paul Eggert <eggert@cs.ucla.edu>
6924 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
6925 Don't worry about this obsolete case any more.
6926 (HAVE_DIR): Remove. All uses removed; we now assume you can read
6928 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
6929 worry about this obsolete case any more.
6930 * lib/fts.c: Likewise.
6931 * lib/getcwd.c: Likewise.
6932 * lib/glob.h: Likewise.
6933 * lib/savedir.c: Likewise.
6935 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
6937 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
6938 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
6939 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
6942 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6943 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6944 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
6946 * m4/getdate.m4 (gl_GETDATE): Likewise.
6947 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6948 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6949 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6950 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6951 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6952 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6953 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
6956 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
6958 * lib/memcasecmp.c: Include <limits.h>.
6959 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
6960 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
6961 Don't assume isdigit succeeds only on '0' through '9'.
6963 2006-07-05 Eric Blake <ebb9@byu.net>
6965 * modules/getaddrinfo (Depends-on): Add snprintf.
6967 2006-07-05 Eric Blake <ebb9@byu.net>
6969 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
6970 to avoid 'header present but could not be compiled' on cygwin.
6972 2006-07-05 Eric Blake <ebb9@byu.net>
6974 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
6975 missing from netdb.h.
6976 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
6978 2006-07-05 Derek R. Price <derek@ximbiot.com>
6980 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
6982 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
6983 * m4/getdate.m4 (gl_GETDATE): Likewise.
6984 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6985 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6986 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6987 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6988 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6990 2006-07-05 Derek R. Price <derek@ximbiot.com>
6992 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
6993 All uses of is_space replaced by isspace.
6994 * lib/exit.h: Don't talk about STDC_HEADERS.
6995 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
6996 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
6997 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
6998 replaced by isprint etc.
6999 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7000 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7001 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7002 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7003 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7004 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7006 2006-07-05 Bruno Haible <bruno@clisp.org>
7008 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7009 the function exists, before testing against AIX.
7010 Reported by Martin Lambers <marlam@marlam.de>.
7012 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
7014 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7015 From Mark D. Baushke.
7017 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
7019 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7020 to the absolute name, not just one, to bypass Sun C 5.8's
7021 "warning: #include of /usr/include/... may be non-portable".
7023 2006-07-04 Eric Blake <ebb9@byu.net>
7025 * modules/dirname-tests: New test module.
7026 * tests/test-dirname.c: New file, replacing dirname.c
7027 TEST_DIRNAME section that was recently deleted.
7029 2006-07-04 Bruno Haible <bruno@clisp.org>
7031 Assume ANSI C header files and <ctype.h> functions.
7032 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7033 (mbsnwidth): Use isprint, iscntrl instead.
7035 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
7037 Merge from coreutils.
7038 * MODULES.html.sh: Add xstrtold.
7039 * modules/xstrtold: New file.
7040 * modules/cycle-check (Files): Add lib/same-inode.h.
7041 * modules/dirname (Files): Add m4/double-slash-root.m4.
7042 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7043 * modules/mkdir-p (Files): Add lib/same-inode.h.
7044 * modules/same (Files): Add lib/same-inode.h.
7046 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
7048 * m4/absolute-header.m4: Renamed from full-header-path.m4.
7049 This is to keep the terminology clean; POSIX talks about
7050 "absolute pathnames", not "full pathnames", but the GNU
7051 Coding Standards say to use "path" for something else;
7052 so use "absolute" to keep both sides happy.
7053 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7054 Set gl_absolute_header, not gl_full_header_path.
7055 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7056 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7059 Merge from coreutils.
7061 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
7063 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7064 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7065 want to require the building of c-strtod.o.
7066 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7068 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7070 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
7072 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7073 --as-needed option if available. Problem reported by Albert Chin in
7074 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7075 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7076 cc merely issues a bunch of annoying warnings for --as-needed
7077 (this problem was reported by Bob Proulx). Also, try linking with
7078 -lm to detect a bug in binutils 2.16 (this problem was reported
7079 by Ralf Wildenhues).
7081 2006-06-18 Jim Meyering <jim@meyering.net>
7083 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7084 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7086 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7087 also check for glibc-2.4's abort-inducing bug.
7089 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7090 Low-probability clean-up should be to use rmdir to get rid of
7091 the just-created directory, not unlink.
7093 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7094 configure fail, and request a bug report to inform us about it.
7095 Add a comment that, barring reports to the contrary, in 2007 we'll
7096 assume ftruncate is universally available.
7098 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
7100 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7102 2006-03-12 Jim Meyering <jim@meyering.net>
7104 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7105 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7106 * m4/same.m4 (gl_SAME): Likewise.
7107 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7109 2006-03-11 Eric Blake <ebb9@byu.net>
7111 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7112 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7113 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7114 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7116 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
7118 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7119 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
7120 reported by Mark D. Baushke, one in
7121 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7123 Merge from coreutils.
7125 * lib/.cppi-disable: Add stdint_.h.
7126 * lib/.cvsignore: Add stdint.h.
7128 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
7130 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7131 both double and long double versions.
7132 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
7133 * lib/xstrtold.c: New file.
7134 * lib/xstrtod.h (xstrtold): New decl.
7136 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
7138 * lib/filemode.c (setst): Remove.
7139 (strmode): Rewrite to avoid setst. This makes the code shorter,
7140 (arguably) clearer, and the generated code is a bit smaller on my
7141 Debian GNU/Linux stable x86 host.
7143 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
7145 * lib/filemode.c: Include "filemode.h" first, to test the interface.
7146 Assume that filemode.h includes sys/types.h and sys/stat.h.
7147 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7148 (ftypelet): Reorder to put common cases first, for efficiency.
7149 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
7151 (strmode): Renamed from mode_string, and now stores 12 bytes instead
7152 of 10, for compatibility with FreeBSD. All callers changed.
7153 (filemodestring): Now stores 12 bytes instead of 10, and sets file
7154 types that can't be deduced solely from st_mode. First arg is now a
7156 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7157 (strmode): Renamed from mode_string.
7158 (filemodestring): New decl.
7159 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7160 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7162 (S_ISPORT, S_ISWHT): New macros, if not already defined.
7164 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
7166 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7167 fsusage.h now does that. Include fsusage.h first, to test interface.
7168 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
7169 at most one method (the old code could have generated decls that
7170 didn't conform to C89, not that this was ever exercised).
7171 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7173 2006-03-19 Jim Meyering <jim@meyering.net>
7175 Work even in a chroot where d_ino values for entries in "/"
7176 don't match the stat.st_ino values for the same names.
7177 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7178 number, iterate through all entries again, using lstat instead.
7179 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7180 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7182 * lib/getcwd.c (__getcwd): Clarify a comment.
7183 Use memcpy in place of a call to strcpy.
7185 2006-03-12 Jim Meyering <jim@meyering.net>
7187 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7188 matches that of the current directory (which we're about to chdir ".."
7189 out of), then save the dev-ino of the parent, instead.
7191 * lib/same-inode.h (SAME_INODE): New file/macro.
7192 * lib/chdir-safer.c (SAME_INODE): Remove definition.
7193 Include "same-inode.h", instead.
7194 * lib/same.c: Likewise.
7195 * lib/cycle-check.h: Include "same-inode.h".
7196 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7197 * lib/cycle-check.c (SAME_INODE): Remove definition.
7198 * lib/root-dev-ino.h: Include "same-inode.h".
7200 2006-03-11 Eric Blake <ebb9@byu.net>
7202 * lib/same.c (same_name): s/base_name/last_component/
7203 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7204 * lib/filenamecat.c (file_name_concat): Likewise.
7206 2006-03-11 Eric Blake <ebb9@byu.net>,
7207 Paul Eggert <eggert@cs.ucla.edu>
7209 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7210 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7212 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7213 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7214 (last_component): New method.
7215 * lib/dirname.c (dir_len): Determine when drive letters need a
7216 subsequent slash. Preserve // when it is special.
7217 (dir_name): Don't append dot when drive letter is absolute.
7218 [TEST_DIRNAME]: Move into a full-blown gnulib test.
7219 * lib/basename.c (base_name): New semantics - malloc the result.
7220 Preserve // when it is special. Preserve relative files that look
7222 (base_len): Preserve // when it is special.
7223 (last_component): New method, similar to old base_name semantics.
7224 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7225 base_name. Strip redundant slashes from ///.
7227 2006-07-03 Jim Meyering <jim@meyering.net>
7229 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7230 macro is used before the first cycle_check call.
7232 2006-07-03 Eric Blake <ebb9@byu.net>
7234 * modules/dirname (Depends-on): Add xstrndup.
7236 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
7238 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7239 test cases, so that config.log is a bit easier to follow.
7241 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
7243 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7244 both are 64 bits, since this seems to be the tradition, and this
7245 prevents gcc -Wformat from warning about usages with PRIuMAX. If
7246 we ever run into a host that prefers long long to long in this
7247 case, we'll need another configure-time test. Problem reported by
7250 2006-07-02 Eric Blake <ebb9@byu.net>
7252 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7254 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
7256 * modules/inttypes (Depends-on): No longer depends on stdint.
7257 * modules/stdint (Description): Say more about assumptions.
7258 Say that the fast types might differ. Say macros are used.
7259 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
7260 (Makefile.am): Revise list of substituted symbols to match
7262 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7263 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7264 * tests/test-stdint.c (verify_same_types)
7265 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7266 the code conforms to C99/C89.
7267 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7268 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7270 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
7272 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7273 but fix a bug, by requiring at least 64 bits.
7274 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7275 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7276 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
7277 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7279 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7280 changes. Make 2.59 a prerequisite. Check and substitute for
7281 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
7282 inttypes.h. Do not use special include files; just use the
7283 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
7284 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
7285 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7286 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7287 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7288 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7289 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7290 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7291 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7292 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7293 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7294 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7295 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7296 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7297 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7298 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7299 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7300 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7301 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7302 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7303 WINT_MAX. Check for C99 conformance more strictly, by detecting
7304 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
7305 not check for things that C99 does not require, e.g., int8_t. If
7306 a test isn't needed unless <stdint.h> isn't working, and is
7307 unlikely to be needed for any other reason, then don't do it
7308 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
7309 size_t, since we assume C89 freestanding at least. Do not check
7310 for sig_atomic_t, wchar_t, or wint_t, since the code now does
7311 the right thing even if the types are not defined. Instead use:
7312 (gl_STDINT_TYPE_PROPERTIES): New macro.
7313 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
7314 testing whether <sys/types.h> clashes, as Autoconf does this for
7315 us now. All uses removed.
7316 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7317 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7318 (gl_CHECK_TYPE_SAME):
7319 Remove; no longer needed.
7320 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7321 exists, since we'll return 0 anyway in that case.
7322 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7324 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
7326 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7327 possible collision with system files.
7328 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7329 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7330 WCHAR_MIN and WCHAR_MAX in this case.
7331 (<stddef.h>): Do not include; no longer needed.
7332 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7333 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7334 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7335 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7336 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7337 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7338 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7339 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7340 !defined(__c99))]: Include in this case too, since it's harmless
7342 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7344 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7345 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7346 (_STDINT_MIN, _STDINT_MAX): New macros.
7347 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7348 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7349 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7350 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7351 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7352 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7353 macros, not typedefs; this simplifies things quite a bit.
7354 Use long int for all types narrower than int64_t.
7355 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7356 Define in terms of long long int or int64_t or long int,
7357 not int64_t or int32_t. This saves some compile-time testing.
7358 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7359 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7360 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7361 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7362 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7363 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7364 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7365 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7366 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7367 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7368 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7369 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7370 undef any previous version and define our own version, for
7371 simplicity and consistency with the new macros for types.
7372 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7373 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7374 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7375 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
7376 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7377 @WINT_T_SUFFIX@ to keep things simple here.
7378 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7379 Simplify by assuming typical 8/16/32/64 host, since we're
7380 already doing that elsewhere anyway.
7381 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7382 and assume long long int is 64 bits if available. This
7383 speeds up 'configure'.
7385 2006-07-01 Eric Blake <ebb9@byu.net>
7387 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7388 Reported by Andreas Buening.
7390 2006-07-01 Eric Blake <ebb9@byu.net>
7392 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7394 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
7396 * lib/getaddrinfo.c: fixed typo
7398 2006-06-29 Jim Meyering <jim@meyering.net>
7400 * modules/strftime (Maintainer): Add my name, since with the
7401 FPRINTFTIME changes strftime.c has forked from glibc.
7403 2006-06-29 Eric Blake <ebb9@byu.net>
7405 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7407 2006-06-29 Eric Blake <ebb9@byu.net>
7409 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7411 2006-06-29 Eric Blake <ebb9@byu.net>
7413 * lib/stat_.h: New file.
7415 2006-06-29 Eric Blake <ebb9@byu.net>
7417 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7418 unused static function.
7420 2006-06-29 Eric Blake <ebb9@byu.net>
7422 * doc/functions.texi (Function Portability): Document missing lstat
7425 2006-06-29 Eric Blake <ebb9@byu.net>
7427 * MODULES.html.sh: Add sys_stat.
7428 * modules/sys_stat: New module.
7429 * modules/mkstemp (Depends-on): Add sys_stat.
7431 2006-06-29 Derek R. Price <derek@ximbiot.com>
7433 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7435 2006-06-29 Derek R. Price <derek@ximbiot.com>
7437 * m4/c-bs-a.m4: Removed.
7439 2006-06-29 Derek R. Price <derek@ximbiot.com>
7441 * lib/strftime.c: Assume strftime() exists.
7443 2006-06-29 Derek Price <derek@ximbiot.com>
7445 * modules/c-bs-a: Removed - \a is C89.
7446 * MODULES.html.sh: Remove c-bs-a.
7448 2006-06-29 Bruno Haible <bruno@clisp.org>
7450 * modules/wcwidth (License): Change to LGPL.
7452 2006-06-28 Simon Josefsson <jas@extundo.com>
7454 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
7457 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7460 2006-06-28 Simon Josefsson <jas@extundo.com>
7462 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7464 2006-06-28 Simon Josefsson <jas@extundo.com>
7466 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7467 functions there. It will succeed on Windows XP, but on Windows
7468 2000 and (presumably) earlier, it will fail, and use the internal
7470 (use_win32_p): New function.
7471 (getaddrinfo): Use strtoul on servname, to support numeric ports.
7472 Support AI_NUMERICSERV to disable getservbyname.
7473 (getnameinfo): New function, only supports
7474 NI_NUMERICHOST|NI_NUMERICSERV for now.
7476 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7477 only have some of them. Add AI_NUMERICSERV. Add prototype for
7480 2006-06-28 Eric Blake <ebb9@byu.net>
7482 * modules/wcwidth: New file.
7483 * modules/mbchar (Depends-on): Add wcwidth.
7484 * modules/mbswidth (Depends-on): Add wcwidth.
7485 * MODULES.html.sh: Add wcwidth.
7487 2006-06-28 Eric Blake <ebb9@byu.net>
7489 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7490 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7492 2006-06-28 Eric Blake <ebb9@byu.net>
7494 * lib/xvasprintf.h: Fix comments.
7496 2006-06-28 Eric Blake <ebb9@byu.net>
7498 * lib/mbchar.h (wcwidth): Include wcwidth.h.
7499 * lib/mbswidth.c (wcwidth): Move from here...
7500 * lib/wcwidth.h: ...to this new file.
7502 2006-06-28 Derek R. Price <derek@ximbiot.com>
7504 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7506 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7508 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7510 2006-06-28 Derek R. Price <derek@ximbiot.com>
7512 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
7513 Autoconf 2.60 says this stuff was obsolete.
7515 2006-06-28 Bruno Haible <bruno@clisp.org>
7517 * modules/wcwidth (Files): Add m4/wchar_t.m4.
7519 2006-06-28 Bruno Haible <bruno@clisp.org>
7521 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7524 2006-06-28 Bruno Haible <bruno@clisp.org>
7526 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7527 declaration for wcwidth.
7528 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7530 2006-06-28 Bruno Haible <bruno@clisp.org>
7532 * lib/mkdtemp.c [MINGW]: Include <io.h>.
7533 (mkdir): Define using _mkdir.
7535 2006-06-28 Bruno Haible <bruno@clisp.org>
7537 * lib/getaddrinfo.h: Fix POSIX URL.
7538 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7540 (use_win32_p): Make static.
7541 (getaddrinfo): Reject service name if it is empty or does not consist
7542 solely of decimal digits, or if its value is > 65535.
7543 (getnameinfo): Remove useless casts.
7545 2006-06-27 Simon Josefsson <jas@extundo.com>
7547 * modules/sys_select: New file, suggested by Bruno Haible, Paul
7548 Eggert and Martin Lambers.
7550 2006-06-27 Simon Josefsson <jas@extundo.com>
7552 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7553 Eggert and Martin Lambers.
7555 2006-06-27 Bruno Haible <bruno@clisp.org>
7557 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7558 result to 0, not to empty.
7559 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7561 2006-06-27 Bruno Haible <bruno@clisp.org>
7563 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7565 2006-06-26 Simon Josefsson <jas@extundo.com>
7567 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7570 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
7572 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7573 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
7574 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7576 2006-06-26 Mark D. Baushke <mdb@gnu.org>
7578 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7580 2006-06-26 Bruno Haible <bruno@clisp.org>
7582 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7584 2006-06-26 Bruno Haible <bruno@clisp.org>
7586 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7588 2006-06-26 Bruno Haible <bruno@clisp.org>
7590 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7591 SGI C compiler in pre-C99 mode.
7592 Suggested by Mark D. Baushke and Larry Jones.
7594 2006-06-26 Bruno Haible <bruno@clisp.org>
7596 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7598 Reported by Mark D. Baushke and Larry Jones.
7600 2006-06-26 Bruno Haible <bruno@clisp.org>
7602 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7604 Suggested by Mark D. Baushke and Larry Jones.
7606 2006-06-23 Simon Josefsson <jas@extundo.com>
7607 Bruno Haible <bruno@clisp.org>
7609 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7610 Emit mostlyclean-local rule.
7611 (func_emit_tests_Makefile_am): Likewise.
7612 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7614 2006-06-23 Mark D. Baushke <mdb@gnu.org>
7616 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7618 2006-06-23 Bruno Haible <bruno@clisp.org>
7620 * tests/test-stdint.c: Update to match ISO C 99 Technical
7623 2006-06-23 Bruno Haible <bruno@clisp.org>
7625 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7627 2006-06-23 Bruno Haible <bruno@clisp.org>
7629 * lib/stdint_.h: Treat IRIX like OpenBSD.
7631 2006-06-23 Bruno Haible <bruno@clisp.org>
7633 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7634 ISO C 99 Technical Corrigendum 1.
7636 2006-06-22 Simon Josefsson <jas@extundo.com>
7638 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7641 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
7643 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7644 needed. Some compiler complained about some of them. Problem reported
7646 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7648 2006-06-21 Simon Josefsson <jas@extundo.com>
7650 * tests/test-getaddrinfo.c: New file.
7652 * modules/getaddrinfo-tests: New file.
7654 * MODULES.html.sh: Add inet_pton.
7656 * modules/inet_pton: New file.
7658 2006-06-21 Simon Josefsson <jas@extundo.com>
7660 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
7661 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
7662 of using the (limited) gnulib implementation on Windows XP.
7664 * m4/inet_pton.m4: New file.
7666 2006-06-21 Simon Josefsson <jas@extundo.com>
7668 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
7671 * lib/socket_.h: Don't define WINVER.
7673 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
7674 slightly modified to work in gnulib.
7676 2006-06-21 Simon Josefsson <jas@extundo.com>
7678 * doc/gnulib.texi (Windows sockets): Add.
7680 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
7682 * lib/read-file.c (fread_file): Start with buffer allocation of
7683 0 bytes rather than 1 byte; this simplifies the code.
7684 Don't invoke feof; it's not needed. Refactor to avoid duplicate
7685 code to free buffer and save/restore errno.
7686 (internal_read_file): Remove unused local.
7688 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
7690 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
7691 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
7692 Problem reported by Denis Excoffier in
7693 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
7695 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7697 * modules/sys_socket, modules/socklen: Include sys/types since
7698 FreeBSD 4.x's sys/socket.h needs it.
7700 2006-06-19 Simon Josefsson <jas@extundo.com>
7702 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
7704 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
7706 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
7708 2006-06-19 Bruno Haible <bruno@clisp.org>
7710 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
7711 and FULL_PATH_INTTYPES_H in angle brackets.
7712 Reported by Mark D. Baushke <mdb@gnu.org>.
7714 2006-06-17 Eric Blake <ebb9@byu.net>
7716 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
7719 2006-06-17 Bruno Haible <bruno@clisp.org>
7721 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
7724 2006-06-17 Bruno Haible <bruno@clisp.org>
7726 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
7727 whether errno is declared. Assume <errno.h> declares errno.
7729 2006-06-17 Bruno Haible <bruno@clisp.org>
7731 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
7733 2006-06-17 Bruno Haible <bruno@clisp.org>
7735 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
7736 problem on Solaris 2.5.1.
7738 2006-06-16 Eric Blake <ebb9@byu.net>
7740 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
7741 * lib/unicodeio.c [!defined errno]: Likewise.
7742 * lib/strtol.c [!defined errno]: Likewise.
7743 * lib/strtod.c [!defined errno]: Likewise.
7745 2006-06-15 Eric Blake <ebb9@byu.net>
7747 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
7749 2006-06-15 Eric Blake <ebb9@byu.net>
7751 * config/srclist.txt (ssize_t.m4): Lose sync.
7753 2006-06-15 Bruno Haible <bruno@clisp.org>
7755 * modules/stdint (Files): Include m4/full-header-path.m4,
7756 m4/size_max.m4, m4/wchar_t.m4.
7757 (Makefile.am): Many more substitutions.
7758 * modules/stdint-tests: New file.
7759 * tests/test-stdint.c: New file.
7761 2006-06-15 Bruno Haible <bruno@clisp.org>
7763 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
7764 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
7765 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
7766 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
7767 gl_CHECK_TYPE_SAME): New macros.
7769 2006-06-15 Bruno Haible <bruno@clisp.org>
7771 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
7773 2006-06-15 Bruno Haible <bruno@clisp.org>
7775 * lib/stdint_.h: Rewritten to be fully auto-configured.
7776 Fixes bug on HP-UX/IA64.
7778 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
7780 * lib/getdate.y (__attribute__): Don't define if already defined.
7781 Problem reported by Larry Jones.
7782 * lib/utimens.c (__attribute__): Likewise.
7784 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
7786 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7787 reported by Andreas Schwab.
7789 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7790 Bruno Haible <bruno@clisp.org>
7792 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7793 check for the declaration of strnlen and a run test that exposes the
7794 AIX 5.1 strnlen bug. In the failure case, #define strndup to
7797 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7798 Bruno Haible <bruno@clisp.org>
7800 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7802 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7804 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7805 compile test, for Tru64 4.0D.
7807 2006-05-28 Karl Berry <karl@gnu.org>
7809 * config/srclist.txt (printf-args.c): lose sync.
7811 2006-05-26 Martin Lambers <marlam@marlam.de>
7813 * lib/getpass.c: Updates the test for the native W32 API, and adds
7814 missing includes, thus fixing compilation warnings.
7816 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
7818 * lib/exclude.c (exclude_fnmatch): New function.
7819 (excluded_file_name): Call exclude_fnmatch.
7820 * lib/exclude.h (excluded_file_name): New prototype
7822 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
7824 * lib/tempname.c (small_open, large_open): New macros.
7825 (__open, __open64) [!_LIBC]: Remove.
7826 (__gen_tempname): Use small_open and large_open instead of __open
7827 and __open64. This fixes a portability bug on HP-UX 11.11i
7828 reported by Simon Wing-Tang in
7829 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7831 2006-05-24 Bruno Haible <bruno@clisp.org>
7833 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7834 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7835 Reported by Thorsten Maerz <torte@netztorte.de> via
7836 Aaron Stone <aaron@serendipity.cx>.
7838 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7840 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7841 gl_ rather than jm_. Link, don't run, so that cross-compiles are
7842 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
7843 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7844 not really conditional on the cache.
7845 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7847 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7849 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7850 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7851 (my_usleep): Don't mishandle maximum value.
7853 2006-05-19 Jim Meyering <jim@meyering.net>
7855 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
7857 2006-05-17 Bruno Haible <bruno@clisp.org>
7860 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
7862 2006-05-17 Bruno Haible <bruno@clisp.org>
7864 * lib/stdint_.h: Fix recognition of Cygwin.
7866 2006-05-15 Bruno Haible <bruno@clisp.org>
7868 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
7869 on libtool patch by Ralf Wildenhues.
7871 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
7873 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7874 test for C99 conformance; (bool) 0.5 is an integer constant
7875 expression, but (bool) -0.5 is not. Problem reported by Fedor
7876 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7878 2006-05-11 Simon Josefsson <jas@extundo.com>
7880 * m4/xvasprintf.m4: Fix obvious typo.
7882 2006-05-11 Jim Meyering <jim@meyering.net>
7884 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
7887 2006-05-10 Simon Josefsson <jas@extundo.com>
7889 * lib/md4.c: Typo fix, update copyright years.
7890 (K1, K2): Don't use L because it turn computations into 64-bit on
7893 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
7895 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
7896 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
7897 unwanted sign propagation, e.g., on hosts with 64-bit int.
7898 There still are some problems with reeelly weird theoretical hosts
7899 (e.g., 33-bit int) but it's not worth worrying about now.
7900 * lib/sha1.c (rol): Likewise.
7901 (K1, K2, K3, K4): Remove unnecessary L suffix.
7903 2006-05-10 Bruno Haible <bruno@clisp.org>
7905 * lib/des.c: Cast to avoid warnings.
7907 2006-05-09 Bruno Haible <bruno@clisp.org>
7909 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
7910 (Depends-on): Depend also on xsize, stdarg.
7911 (configure.ac): Add gl_XVASPRINTF.
7913 2006-05-09 Bruno Haible <bruno@clisp.org>
7915 * m4/xvasprintf.m4: New file.
7917 2006-05-09 Bruno Haible <bruno@clisp.org>
7919 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
7920 (EOVERFLOW): Define fallback value.
7921 (xstrcat): New function.
7922 (xvasprintf): Recognize the special case of a string concatenation.
7924 2006-05-08 Eric Blake <ebb9@byu.net>
7926 * gnulib-tool (func_version): Base copyright year on CVS date.
7927 (func_emit_copyright_notice): New function.
7928 (func_emit_lib_Makefile_am): Use it.
7929 (func_emit_tests_Makefile_am): Likewise.
7930 (func_import): Likewise.
7932 2006-05-08 Bruno Haible <bruno@clisp.org>
7934 * modules/stdarg: New file.
7935 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
7937 2006-05-08 Bruno Haible <bruno@clisp.org>
7939 * m4/stdarg.m4: New file, from GNU gettext.
7941 2006-05-08 Bruno Haible <bruno@clisp.org>
7943 * config/srclist.txt (build-aux/config.rpath): different from latest
7946 2006-05-08 Bruno Haible <bruno@clisp.org>
7948 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
7950 2006-05-05 Jim Meyering <jim@meyering.net>
7952 * m4/warning.m4: New file, derived from bison's file by the same name.
7954 2006-05-03 Bruno Haible <bruno@clisp.org>
7956 * lib/stdint_.h: Shorter URL.
7957 * lib/inttypes.h: Likewise.
7959 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7961 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
7963 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7965 * lib/verify.h: Document the internals better. Most of this change
7966 was written by Bruno Haible.
7968 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7970 * doc/verify.texi: New file, partly based on a proposal by
7973 2006-05-02 Bruno Haible <bruno@clisp.org>
7975 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
7977 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
7979 2006-04-29 Bruno Haible <bruno@clisp.org>
7981 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
7982 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
7984 2006-04-29 Bruno Haible <bruno@clisp.org>
7986 * gnulib-tool: Make --update option actually work.
7988 2006-04-29 Bruno Haible <bruno@clisp.org>
7990 * doc/gcd.texi: New file.
7991 * doc/gnulib.texi: Include it.
7993 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
7995 * lib/getdate.y (get_date): When adding relative date, start with the
7996 initial time, not with the result of the first mktime call.
7998 2006-04-25 Bruno Haible <bruno@clisp.org>
8000 * gnulib-tool (func_import): Output the include directives in three
8001 blocks, sorted separately.
8002 Reported by Ben Pfaff <blp@cs.stanford.edu>.
8004 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
8006 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8007 to define main with arguments, for C++. Reported by Eric Blake.
8008 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8009 Prefer 'int main ()' to 'int main (void)', for C++.
8010 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8011 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8012 for 'main', for C99 and C++.
8014 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
8016 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8017 Don't assume that exit status -1 is valid.
8018 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8019 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8020 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8021 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8022 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8023 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8024 not AC_TRY_RUN. Use return, not exit. Don't assume that
8025 functions can be used without declaring them, or that you can
8026 exit with status -1.
8027 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8029 2006-04-24 Karl Berry <karl@gnu.org>
8031 * config/srclist.txt (longdouble.m4): sync lost.
8033 2006-04-24 Eric Blake <ebb9@byu.net>
8035 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8037 2006-04-24 Bruno Haible <bruno@clisp.org>
8039 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8040 poll() implementation in AIX.
8041 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8043 2006-04-24 Bruno Haible <bruno@clisp.org>
8045 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8046 assigned exactly once.
8048 2006-04-23 Claudio Fontana <claudio@gnu.org>
8049 Bruno Haible <bruno@clisp.org>
8051 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8052 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8055 2006-04-23 Bruno Haible <bruno@clisp.org>
8057 * modules/copy-file: Depend on unistd.
8058 * modules/execute: Likewise.
8059 * modules/fatal-signal: Likewise.
8060 * modules/findprog: Likewise.
8061 * modules/mkdtemp : Likewise.
8062 * modules/pipe: Likewise.
8063 * modules/wait-process: Likewise.
8065 2006-04-23 Bruno Haible <bruno@clisp.org>
8067 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8068 condition was already detected.
8069 Reported by Ben Pfaff <blp@cs.stanford.edu>.
8071 2006-04-23 Bruno Haible <bruno@clisp.org>
8073 * lib/copy-file.c: Include <unistd.h> unconditionally.
8074 * lib/execute.c: Likewise.
8075 * lib/fatal-signal.c: Likewise.
8076 * lib/findprog.c: Likewise.
8077 * lib/mkdtemp.c: Likewise.
8078 * lib/pipe.h: Likewise.
8079 * lib/pipe.c: Likewise.
8080 * lib/wait-process.h: Likewise.
8082 2006-04-23 Bruno Haible <bruno@clisp.org>
8084 * gnulib-tool (func_usage): Fix --import description. Document
8086 (func_import): Create temporary file in a temporary directory, if
8087 --dry-run is specified. Silence errors from 'grep' when there are no
8089 (func_create_testdir): Silence errors from 'grep' when there are no
8091 Reported by Karl Berry <karl@freefriends.org>.
8093 2006-04-20 Bruno Haible <bruno@clisp.org>
8095 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8096 one argument, so that the code will be portable to Autoconf 2.60.
8097 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8098 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8099 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8101 2006-04-19 Derek Price <derek@ximbiot.com>
8102 Eric Blake <ebb9@byu.net>
8104 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8105 rather than "/full/path.h". Update comment to match. Shorten &
8106 generalize m4_translit call via AS_TR_CPP.
8108 2006-04-19 Derek Price <derek@ximbiot.com>
8109 Eric Blake <ebb9@byu.net>
8111 * lib/inttypes.h: Correct grammar in comment.
8113 2006-04-18 Derek Price <derek@ximbiot.com>
8114 Paul Eggert <eggert@cs.ucla.edu>
8116 * modules/inttypes: New file.
8117 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8119 2006-04-18 Derek Price <derek@ximbiot.com>
8120 Paul Eggert <eggert@cs.ucla.edu>
8122 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8125 2006-04-18 Derek Price <derek@ximbiot.com>
8126 Paul Eggert <eggert@cs.ucla.edu>
8128 * lib/inttypes.h: New file.
8129 * lib/strtoimax.c: Assume <inttypes.h>.
8131 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
8133 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8134 isn't mounted. Problem reported by Kir Kolyshkin.
8136 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
8138 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8139 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
8141 * lib/regex.h (RE_DUP_MAX): Update comment to match current
8144 2006-04-12 Eric Blake <ebb9@byu.net>
8146 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8147 is now done automatically by the corresponding Autoconf macro.
8149 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
8151 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8154 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
8156 Merge regex changes from libc, removing some of our
8157 POSIX-conformance changes that were rejected and redoing them in a
8160 * lib/regcomp.c (re_compile_internal, init_dfa):
8161 Length arg is now size_t, not Idx. All uses changed.
8162 (peek_token): Forward decl now says internal_function.
8163 (__re_error_msgid, __re_error_msgid_idx):
8164 Now static rather than extern with attribute_hidden.
8165 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8166 For some reason libc prefers K&R style defns for external functions.
8167 (regerror) [!defined _LIBC]: Likewise.
8168 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8169 (seek_collating_symbol_entry, lookup_collation_sequence_value):
8170 (build_range_exp, build_collating_symbol):
8172 (re_compile_fastmap): Use '\0' to memset, not 0.
8173 (utf8_sb_map): Make the calculations more obvious.
8174 (init_dfa, parse_bracket_exp, build_charclass_op):
8175 Call calloc and cast result, as glibc does.
8176 (init_word_char, fetch_token, peek_token, peek_token_bracket):
8177 (build_range_exp, build_collating_symbol):
8178 Now internal functions.
8180 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8182 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
8183 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8184 Don't depend on VMS; depend on __VMS instead, for POSIX
8185 namespace cleanness.
8186 (regoff_t): Define to ssize_t, not long int.
8188 Remove the REG_ macros named below. Instead, make the old names
8189 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8191 (REG_BACKSLASH_ESCAPE_IN_LISTS):
8192 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8193 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8194 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8195 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8196 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8197 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8198 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8199 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8200 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8201 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8202 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8203 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8204 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8205 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8206 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8207 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8209 Remove. All uses replaced by the old RE_* names.
8210 (RE_BACKSLASH_ESCAPE_IN_LISTS):
8211 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8212 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8213 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8214 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8215 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8216 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8217 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8218 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8219 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8220 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8221 Don't bother having these macros be independent of each others'
8222 values, since they no longer exist in the POSIX name space.
8224 Rename the following member names back to their old names,
8225 unless !__USE_GNU_REGEX. All uses changed back.
8226 (buffer): Renamed from re_buffer.
8227 (allocated): Renamed from re_allocated.
8228 (used): Renamed from re_used.
8229 (syntax): Renamed from re_syntax.
8230 (fastmap): Renamed from re_fastmap.
8231 (translate): Renamed from re_translate.
8232 (can_be_null): Renamed from re_can_be_null.
8233 (regs_allocated): Renamed from re_regs_allocated.
8234 (fastmap_accurate): Renamed from re_fastmap_accurate.
8235 (no_sub): Renamed from re_no_sub.
8236 (not_bol): Renamed from re_not_bol.
8237 (not_eol): Renamed from re_not_eol.
8238 (newline_anchor): Renamed from re_newline_anchor.
8239 (num_regs): Renamed from rm_num_regs.
8240 (start): Renamed from rm_start.
8241 (end): Renamed from rm_end.
8243 (free_state): Move up a bit.
8245 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8246 #define to be empty.
8247 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8248 when that is what is intended.
8249 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8250 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8252 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8253 All uses changed back to re_malloc, etc. It's now the caller's
8254 responsibility to check for overflow; all callers changed.
8255 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8256 (re_x2nrealloc): Remove.
8257 (free_state): Remove decl.
8259 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8260 (re_set_registers, re_exec):
8263 2006-01-31 Roland McGrath <roland@redhat.com>
8265 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8266 Reported by Mike Frysinger <vapier@gentoo.org>.
8268 2006-01-15 Andreas Jaeger <aj@suse.de>
8271 * lib/regex_internal.c (re_string_reconstruct): Adjust for
8272 build_wcs_upper_buffer change.
8273 (build_wcs_upper_buffer): Change return type.
8275 2005-12-10 Ulrich Drepper <drepper@redhat.com>
8277 * lib/regex_internal.h: Include <stdint.h> if available.
8279 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
8281 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8283 2005-10-14 Ulrich Drepper <drepper@redhat.com>
8285 * lib/regcomp.c: Adjust for changed secondary hash function.
8287 2005-09-30 Ulrich Drepper <drepper@redhat.com>
8289 * lib/regex.h: Pretty printing.
8290 Clean up namespace a bit.
8292 2005-09-30 Jakub Jelinek <jakub@redhat.com>
8294 * lib/regexec.c (update_cur_sifted_state, check_arrival,
8295 check_arrival_add_next_nodes): Avoid using uninitialized variable.
8297 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
8298 Ulrich Drepper <drepper@redhat.com>
8301 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
8303 (bitset_word_t): Renamed from bitset_word. All uses changed.
8305 2005-09-22 Ulrich Drepper <drepper@redhat.com>
8308 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8309 * lib/regcomp.c: Remove unnecessary uses of
8310 unsigned RE_TRANSLATE_TYPE.
8311 * lib/regex_internal.h: Likewise.
8312 * lib/regex_internal.c: Likewise.
8313 * lib/regexec.c: Likewise.
8314 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8316 2005-09-07 Ulrich Drepper <drepper@redhat.com>
8318 * lib/regexec.c (find_recover_state): Remove unnecessary
8320 (transit_state_bkref): Make DFA a const pointer.
8321 (get_subexp): Likewise.
8322 (check_arrival): Likewise.
8323 (update_cur_sifted_state): Likewise.
8324 (re_search_internal): Likewise.
8325 (prune_impossible_nodes): Likewise.
8326 (acquire_init_state_context): Likewise.
8327 (proceed_next_node): Likewise.
8328 (set_regs): Likewise.
8329 (free_fail_stack_return): Likewise.
8330 (check_arrival_expand_ecl): Mark DFA parameter as const.
8331 (check_arrival_expand_ecl_sub): Likewise.
8332 (check_subexp_limits): Likewise.
8333 (sub_epsilon_src_nodes): Likewise.
8334 (add_epsilon_src_nodes): Likewise.
8335 (merge_state_array): Likewise.
8336 (update_regs): Likewise.
8337 (build_trtable): Likewise.
8338 (sift_states_backward): Mark MCTX parameter as const.
8339 (build_sifted_states): Likewise.
8340 (update_cur_sifted_state): Likewise.
8341 (sift_states_mkref): Likewise.
8342 (check_arrival_expand_ecl): Mark eclosure as const.
8343 (check_dst_limits_calc_pos_1): Likewise.
8344 * lib/regex_internal.h (re_match_context_t): Make dfa a const
8347 2005-09-06 Ulrich Drepper <drepper@redhat.com>
8349 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8350 (transit_state_sb): Likewise.
8351 (transit_state_mb): Likewise.
8352 (sift_states_iter_mb): Likewise.
8353 (check_arrival_add_next_nodes): Likewise.
8354 (check_node_accept_bytes): Change first parameter to pointer-to-const.
8355 [_LIBC] (re_search_2_stub): Use mempcpy.
8357 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8358 mbrtowc for very simple UTF-8 case.
8360 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8362 (re_acquire_state_context): Likewise.
8363 * lib/regex_internal.h: Adjust prototypes.
8365 * lib/regex.c: Prevent using C++ compilers.
8367 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8368 (re_acquire_state_context): Likewise.
8370 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
8372 * modules/regex (Depends-on): Add ssize_t.
8374 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
8376 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8379 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
8381 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8383 2006-03-29 Mark D. Baushke <mdb@gnu.org>
8384 Bruno Haible <bruno@clisp.org>
8386 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8387 <sys/types.h> and <inttypes.h>.
8389 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8391 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8392 `__error_t_defined', so argp.h will not typedef the former.
8394 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
8396 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8397 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
8398 glibc names. Even if glibc is changed to conform to POSIX, the
8399 traditional names will be available anyway, since regex depends on
8400 the extensions module. Also, fix a longstanding typo in the
8401 implementation of Spencer ERE test #75 from grep 2.3. Problems
8402 reported by Emanuele Giaquinta. Also, change sense of cached
8403 variable, so that the message makes sense.
8405 2006-03-24 Simon Josefsson <jas@extundo.com>
8407 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8408 including some doc fixes.
8409 (base64_encode_alloc): Fix +1 bug on allocation failures.
8411 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8413 * lib/base64.c (base64_encode): Do not read past end of array with
8414 unsanitized input on systems with CHAR_BIT > 8.
8416 2006-03-24 Eric Blake <ebb9@byu.net>
8418 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8420 2006-03-22 Karl Berry <karl@gnu.org>
8422 * config/srclist.txt (*setenv.[ch]): get from coreutils.
8423 * config/srclistvars.sh (COREUTILS): new var.
8425 2006-03-17 Jim Meyering <jim@meyering.net>
8427 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8428 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8430 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
8432 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8433 no longer needs it. Instead, check that regoff_t is as least
8434 as wide as ptrdiff_t.
8436 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8437 so that our regex.h stays compatible with the installed regex.
8438 This is helpful for installers who configure --without-included-regex.
8439 Problem reported by Emanuele Giaquinta.
8441 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
8443 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8444 Typedef to long int, not to off_, as POSIX will likely change
8447 2006-03-15 Eric Blake <ebb9@byu.net>
8449 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8451 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
8453 * lib/argp-help.c (validate_uparams): Fix typo
8454 * lib/argp-parse.c (argp_default_options): Consistently begin help
8455 messages with a lowercase letter.
8457 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
8459 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
8460 overrun buffers and shouldn't be used (much as gets shouldn't be
8462 * lib/time_r.c (asctime_r, ctime_r): Likewise.
8464 2006-03-08 Simon Josefsson <jas@extundo.com>
8466 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8467 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8469 2006-03-08 Simon Josefsson <jas@extundo.com>
8471 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8472 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8474 2006-03-08 Simon Josefsson <jas@extundo.com>
8476 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8477 signal that configure disabled the device.
8479 2006-03-08 Simon Josefsson <jas@extundo.com>
8481 * build-aux/maint.mk: Fix refresh-po, to handle no translated
8484 2006-03-07 Simon Josefsson <jas@extundo.com>
8486 * modules/getopt (Depends-on): Add unistd.
8488 * modules/unistd: New file.
8490 2006-03-07 Simon Josefsson <jas@extundo.com>
8492 * modules/gc-random: New file.
8494 2006-03-07 Simon Josefsson <jas@extundo.com>
8496 * m4/unistd_h.m4: New file.
8498 2006-03-07 Simon Josefsson <jas@extundo.com>
8500 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8501 test to be side-effect free by storing the result in the cache
8502 variable gl_cv_lib_readline, and moving the assignment of
8503 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8504 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8506 2006-03-07 Simon Josefsson <jas@extundo.com>
8508 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
8509 error on missing devices (the functions will return an error).
8511 * m4/gc.m4: Move random stuff to gc-random.m4
8513 2006-03-07 Simon Josefsson <jas@extundo.com>
8515 * lib/unistd_.h: New file.
8517 2006-03-07 Simon Josefsson <jas@extundo.com>
8519 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8521 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
8523 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8524 Problem reported by Juan Manuel Guerrero.
8526 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
8528 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8530 * lib/getlogin_r.c: Likewise.
8531 * lib/getlogin_r.h: Likewise.
8532 * lib/glob.c: Likewise.
8533 * lib/pagealign_alloc.c: Likewise.
8534 * lib/unistd_.h: Remove; no longer needed.
8536 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
8538 * MODULES.html.sh (Support for systems lacking POSIX:2001):
8540 * modules/c-stack (Depends-on): Add unistd.
8541 * modules/getlogin_r: Likewise.
8542 * modules/glob: Likewise.
8543 * modules/pagealign_alloc: Likewise.
8544 * modules/unistd (Files): Remove lib/unistd_.h.
8545 (EXTRA_DIST): Remove.
8546 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8548 (MOSTLYCLEANFILES): Remove unistd.h-t.
8550 2006-03-03 Simon Josefsson <jas@extundo.com>
8552 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8554 2006-03-03 Simon Josefsson <jas@extundo.com>
8556 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8559 2006-03-03 Simon Josefsson <jas@extundo.com>
8561 * build-aux/maint.mk: Add indent target.
8563 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8565 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8566 our replacement poll.h in any case, to avoid a differing
8567 declaration from a system header. Seen on AIX.
8569 2006-03-01 Simon Josefsson <jas@extundo.com>
8571 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8574 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
8576 * modules/gettime (Depends-on): Add extensions module.
8577 * modules/nanosleep (Depends-on): Likewise.
8578 * modules/settime (Depends-on): Likewise.
8580 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
8582 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8583 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8585 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8586 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8588 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8589 not "==". Reported by Ralf Wildenhues.
8591 2006-03-01 Karl Berry <karl@gnu.org>
8593 * doc/Copyright/request-*: new files, synced from gnuorg.
8595 2006-03-01 Karl Berry <karl@gnu.org>
8597 * config/srclist.txt (Copyright/*): new entries.
8599 2006-02-28 Simon Josefsson <jas@extundo.com>
8601 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8603 2006-02-27 Simon Josefsson <jas@extundo.com>
8605 * lib/base64.h: Indent #define's. From Jim Meyering
8608 2006-02-27 Jim Meyering <jim@meyering.net>
8610 Revert the change of 2006-02-24, so these files can continue
8611 to be sync'd from gettext.
8612 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8615 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
8617 * modules/intprops: New file.
8618 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8620 * modules/getloadavg (Files): Remove lib/intprops.h.
8621 (Depends-on): Add intprops.
8622 * modules/human: Likewise.
8623 * modules/inttostr: Likewise.
8624 * modules/openat: Likewise.
8625 * modules/sig2str: Likewise.
8626 * modules/userspec: Likewise.
8627 * modules/utimecmp: Likewise.
8628 * modules/xnanosleep: Likewise.
8629 * modules/xstrtol: Likewise.
8631 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
8633 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8634 * modules/lock-tests (TESTS): Use $(EXEEXT).
8635 * modules/tls-tests: Likewise.
8636 * modules/argp-tests: Likewise.
8637 (check_PROGRAMS): New var, replacing...
8638 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8640 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8642 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8645 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
8647 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8649 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8651 Sync from coreutils.
8652 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8655 2006-02-22 Jim Meyering <jim@meyering.net>
8657 Sync from coreutils.
8658 * m4/chdir-safer.m4: New file.
8660 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
8662 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8663 AT_FDCWD exceeds INT_MAX.
8664 * lib/openat.h (AT_FDCWD): Likewise.
8666 2006-02-17 Eric Blake <address@hidden>
8668 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
8670 2006-02-16 Simon Josefsson <jas@extundo.com>
8672 * modules/getaddrinfo (Depends-on): Add sys_socket.
8674 2006-02-15 Simon Josefsson <jas@extundo.com>
8676 * build-aux/maint.mk: Add dsyntax-check rule.
8678 2006-02-15 Eric Blake <ebb9@byu.net>
8680 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
8681 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
8682 'present but cannot compile' warnings on cygwin.
8683 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
8684 use ws2tcpip.h if sys/socket.h works.
8685 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
8686 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
8688 2006-02-14 Simon Josefsson <jas@extundo.com>
8690 * modules/maintainer-makefile (Files): Rename.
8692 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
8693 and (the local) Makefile.cfg to maint-cfg.mk.
8695 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
8698 * modules/maintainer-makefile: New module.
8700 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
8701 severaly stripped to make it possible to build it up from scratch
8702 with reliable tests.
8704 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
8705 fixes to permit overriding the default actions when configure and
8706 makefile are not available.
8708 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
8710 Sync from coreutils.
8711 * modules/lstat (Depends-on): Don't depend on xalloc.
8712 (License): Change from GPL to LGPL, since this is now simply a
8713 replacement for a libc function.
8715 2006-02-14 Jim Meyering <jim@meyering.net>
8717 Sync from coreutils.
8719 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
8720 failure on deficient systems, and simplify gnulib lgpl dependencies.
8721 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
8722 xmalloc/lstat combination. Based on a patch from Bruno Haible.
8724 * lib/xalloc-die.c: Remove unused definition of N_.
8726 2006-02-14 Jim Meyering <jim@meyering.net>
8728 Sync from coreutils.
8729 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
8730 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8731 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
8732 double-quote uses of that variable, to accommodate the rare case in
8733 which getmntent is available in none of the libraries checked. This
8734 happens at least on FreeBSD 5.0.
8736 2006-02-13 Simon Josefsson <jas@extundo.com>
8738 * gnulib-tool (Usage): Fix --import, from
8739 karl@freefriends.org (Karl Berry).
8741 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
8743 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
8745 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
8747 * lib/argp-namefrob.h: Restore changes accidentally lost during the
8748 "autoupdate" on 2005-12-12.
8750 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
8752 * modules/closeout (Depends-on): Remove atexit.
8754 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
8756 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
8757 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
8759 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
8761 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
8762 __EXTENSIONS__ if this causes compilation to fail. Problem
8763 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
8764 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
8766 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
8768 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
8769 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
8770 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
8773 2006-01-26 Simon Josefsson <jas@extundo.com>
8775 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
8776 prototype is visible on mingw32.
8778 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8781 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8784 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
8786 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
8787 attempt to open for write; this always fails, at least on POSIX
8788 hosts. This reinstates the 2006-01-09 change, which was
8789 inadvertently removed.
8791 2006-01-26 Bruno Haible <bruno@clisp.org>
8793 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8794 Reported by Paul Eggert.
8796 2006-01-26 Bruno Haible <bruno@clisp.org>
8797 Paul Eggert <eggert@cs.ucla.edu>
8799 * lib/stdbool_.h (_Bool)
8800 [(! (defined __cplusplus || defined __BEOS__)
8801 && !defined __GNUC__
8802 && !(defined __HP_cc || defined __xlc__
8803 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8804 || defined __sgi))]:
8805 #define to signed char in these cases too; this simplifies
8806 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8807 etc., separately) and makes it more conservative.
8809 2006-01-25 Simon Josefsson <jas@extundo.com>
8811 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8812 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
8813 ws2tcpip.h with WINVER=0x0501. All for mingw32.
8815 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
8817 * lib/argp-namefrob.h: Bugfix. Remove stray #
8819 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
8821 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8822 so that we test the test.
8823 Check for yet another HP-UX cc bug involving *bool |= bool.
8825 2006-01-25 Karl Berry <karl@gnu.org>
8827 * config/srclist.txt (vasnprintf.c): sync lost.
8829 2006-01-25 Jim Meyering <jim@meyering.net>
8831 Sync from the stable (b5) branch of coreutils:
8833 * lib/fts.c (fts_children): Don't let close() clobber errno from
8836 * lib/fts.c (fts_stat): When following a symlink-to-directory,
8837 don't necessarily interpret stat-fails+lstat-succeeds as indicating
8838 a dangling symlink. That can also happen at least for ELOOP.
8839 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8840 FYI, this bug predates the inclusion of fts.c in coreutils.
8842 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8843 in their own block, so pre-c99 compilers don't object.
8845 Avoid the double-free (first in fts_read, second in fts_close) that
8846 would occur when an `active' directory is made inaccessible (e.g.,
8847 via chmod a-x) during a traversal.
8848 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8849 before returning. Reproduce this failure by
8850 mkdir -p a/b; cd a; chmod a-x . b
8851 Reported by Stavros Passas.
8853 2006-01-25 Jim Meyering <jim@meyering.net>
8855 * lib/fileblocks.c: Remove more useless parentheses.
8856 * lib/readutmp.h: Likewise.
8858 2006-01-25 Bruno Haible <bruno@clisp.org>
8860 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
8862 Reported by Paul Eggert.
8864 2006-01-25 Bruno Haible <bruno@clisp.org>
8866 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
8867 rid of a trap command. For Solaris sh.
8868 Reported by Mark D. Baushke <mdb@gnu.org>.
8870 2006-01-24 Simon Josefsson <jas@extundo.com>
8872 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
8875 2006-01-24 Karl Berry <karl@gnu.org>
8877 * config/srclist.txt (argp-namefrob.h): sync lost.
8879 2006-01-24 Jim Meyering <jim@meyering.net>
8881 * modules/openat (Files): Add lib/intprops.h.
8882 From Mark D. Baushke.
8884 2006-01-24 Jim Meyering <jim@meyering.net>
8886 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
8887 Reported by Mark D. Baushke.
8889 2006-01-24 Jim Meyering <jim@meyering.net>
8891 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
8893 2006-01-24 Bruno Haible <bruno@clisp.org>
8895 * modules/strnlen (Maintainer): Change from glibc to all.
8897 2006-01-24 Bruno Haible <bruno@clisp.org>
8899 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
8900 Patch by Paul Eggert.
8902 2006-01-24 Bruno Haible <bruno@clisp.org>
8904 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
8906 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
8909 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
8910 'signed char' to avoid problems with the built-in _Bool type.
8911 Reported by Paul Eggert on 2005-11-26.
8913 2006-01-24 Bruno Haible <bruno@clisp.org>
8915 * gnulib-tool (func_import): Avoid constructing complicated sed
8916 expressions inside backquote.
8917 Report and solution by Mark D. Baushke <mdb@gnu.org>.
8919 2006-01-23 Ulrich Drepper <drepper@redhat.com>
8921 These changes imported from libc.
8922 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
8923 test and two separate function calls.
8924 * lib/strndup.c (__strndup): Add libc_hidden_def.
8926 2006-01-23 Simon Josefsson <jas@extundo.com>
8928 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
8929 Remove the test_*_SOURCES variable: automake infers it by default.
8930 * modules/tls-tests: Likewise.
8932 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8934 Work around porting bugs reported by Dieter in
8935 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
8936 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
8937 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
8938 Include "getopt.h" first, to check interface.
8939 (getenv): Declare only if defined HAVE_DECL_GETENV &&
8941 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
8942 (__strndup): Revert to K&R-style function dfns, the glibc style.
8943 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
8944 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
8945 Include strnlen.h first, to get prototype properly.
8946 (strnlen): Renamed from __strnlen.
8949 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8951 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
8953 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8955 * config/srclist.txt: Adjust to reflect glibc reorganization.
8956 This affects only comments.
8958 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8960 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
8961 Reported by Bruce Korb <bkorb@gnu.org>.
8963 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
8965 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
8966 to pacify gcc -Wswitch-default.
8968 2006-01-22 Bruno Haible <bruno@clisp.org>
8970 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
8971 temporary buffer for sprintf, take into account the precision also
8972 for 'd', 'i', 'u', 'o', 'x', 'X'.
8974 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
8976 * modules/argp-tests: New module
8977 * tests/test-argp.c: New file
8978 * tests/test-argp-2.sh: New file
8980 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
8982 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
8983 (__argp_base_name): Removed
8984 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
8986 (__argp_base_name): Provide macro definition or extern declaration
8987 depending on the configuration
8989 2006-01-20 Simon Josefsson <jas@extundo.com>
8991 * modules/inet_ntop (Depends-on): Depend on sys_socket.
8993 2006-01-20 Simon Josefsson <jas@extundo.com>
8995 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
8997 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
8999 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9000 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9001 Suggested by Bruno Haible.
9003 2006-01-20 Karl Berry <karl@gnu.org>
9005 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9006 until changes propagate, I guess.
9008 2006-01-19 Simon Josefsson <jas@extundo.com>
9010 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9012 2006-01-19 Simon Josefsson <jas@extundo.com>
9014 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9016 2006-01-19 Simon Josefsson <jas@extundo.com>
9018 * gnulib-tool: Set check_PROGRAMS.
9020 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9021 modules/des-tests, modules/gc-arcfour-tests,
9022 modules/gc-arctwo-tests, modules/gc-des-tests,
9023 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9024 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9025 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9026 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9027 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9028 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9029 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9032 2006-01-18 Simon Josefsson <jas@extundo.com>
9034 * modules/socklen (Depends-on): Depend on sys_socket.
9036 2006-01-18 Simon Josefsson <jas@extundo.com>
9038 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9039 modules/des-tests, modules/gc-arcfour-tests,
9040 modules/gc-arctwo-tests, modules/gc-des-tests,
9041 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9042 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9043 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9044 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9045 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9046 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9047 $(EXEEXT) to automake TESTS variable, for mingw32.
9049 2006-01-17 Simon Josefsson <jas@extundo.com>
9051 * modules/socklen (Include): Need sys/socket.h.
9053 2006-01-17 Bruno Haible <bruno@clisp.org>
9055 * modules/ssize_t (Include): Add <sys/types.h>.
9057 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
9059 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9060 it's not portable and it doesn't work with cross-compiles.
9061 Problem reported by Bruno Haible. Fix missing-$ typo in
9062 'test "gl_cv_ignore_unused_libraries" ...' that prevented
9063 -zignore from being used with Sun's C compiler.
9065 2006-01-12 Simon Josefsson <jas@extundo.com>
9067 * lib/base64.c: Fix warning, reported by Bruno Haible
9068 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9070 2006-01-12 Bruno Haible <bruno@clisp.org>
9072 * modules/ldd: New file.
9073 * build-aux/ldd.sh.in: New file.
9074 * MODULES.html.sh (Support for building libraries and executables): Add
9077 2006-01-12 Bruno Haible <bruno@clisp.org>
9079 * m4/ldd.m4: New file.
9081 2006-01-12 Bruno Haible <bruno@clisp.org>
9083 * gnulib-tool (func_import, func_create_testdir): Don't go into an
9084 endless loop while replacing $auxdir with build-aux.
9086 2006-01-11 Simon Josefsson <jas@extundo.com>
9088 * lib/stdint_.h (SIZE_MAX): Add missing (.
9090 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
9092 Sync from coreutils.
9093 * lib/md5.c: Fix commentary typos.
9094 (alignof, UNALIGNED_P): No need for a GCC-specific version.
9095 * lib/md5.h (__attribute__): Remove; unused.
9096 * lib/sha1.c: Fix commentary to match md5 better.
9097 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9098 so that we don't need to worry about alignment. All uses changed.
9099 This merges the 2005-10-28 md5 change into sha1.
9101 2006-01-11 Jim Meyering <jim@meyering.net>
9103 Sync from coreutils.
9104 * lib/md5.c (OP): Fix spacing.
9106 2006-01-11 Bruno Haible <bruno@clisp.org>
9108 Ensure automatic ordering between gl_LOCK and gl_ARGP.
9109 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9110 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9112 2006-01-11 Bruno Haible <bruno@clisp.org>
9114 Ensure automatic ordering between gl_LOCK and gl_ARGP.
9115 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9116 the "early" section as well.
9118 2006-01-11 Bruno Haible <bruno@clisp.org>
9120 Avoid "ar: no archive members specified" error on MacOS X.
9121 * gnulib-tool (func_modules_add_dummy): New function.
9122 (func_import, func_create_testdir): Invoke it.
9124 2006-01-11 Bruno Haible <bruno@clisp.org>
9126 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9127 with $auxdir in AC_CONFIG_FILES statements.
9129 2006-01-11 Bruno Haible <bruno@clisp.org>
9131 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9132 Initialize also noinst_HEADERS to empty.
9134 2006-01-11 Bruno Haible <bruno@clisp.org>
9136 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9138 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9141 2006-01-11 Bruno Haible <bruno@clisp.org>
9143 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9144 overridable by the user.
9145 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9147 2006-01-10 Simon Josefsson <jas@extundo.com>
9149 * modules/sys_socket: New file.
9151 2006-01-10 Simon Josefsson <jas@extundo.com>
9153 * m4/sys_socket_h.m4: New file.
9155 2006-01-10 Simon Josefsson <jas@extundo.com>
9157 * lib/socket_.h: New file.
9159 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
9161 * modules/readutmp (Maintainer): Add myself.
9163 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
9165 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9166 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
9167 People who are still concerned with buggy memcmp implementations
9168 can invoke gl_FUNC_MEMCMP themselves.
9170 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
9172 * lib/regex_internal.h (BITSET_WORD_BITS):
9173 Work around a bug in 64-bit PGC (before version 6.1-2), where the
9174 preprocessor mishandles large unsigned values as if they were signed.
9175 Problem reported by Claudio Fontana in
9176 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9178 2006-01-10 Jim Meyering <jim@meyering.net>
9180 Avoid the double-free (first in fts_read, second in fts_close) that
9181 would occur when an `active' directory is made inaccessible (e.g.,
9182 via chmod a-x) during a traversal.
9183 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9184 before returning. Reproduce this failure by
9185 mkdir -p a/b; cd a; chmod a-x . b
9186 Reported by Stavros Passas.
9188 Sync from coreutils.
9189 * lib/sha1.c: Tweak grammar in a comment.
9191 2006-01-10 Jim Meyering <jim@meyering.net>
9193 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9194 Patch by Joerg Sonnenberger.
9196 2006-01-10 Bruno Haible <bruno@clisp.org>
9198 * modules/readutmp: Depend on module free.
9199 * modules/strtok_r: Depend on module restrict.
9201 2006-01-10 Bruno Haible <bruno@clisp.org>
9203 * modules/gettext (configure.ac): Add an invocation of
9204 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9206 2006-01-10 Bruno Haible <bruno@clisp.org>
9208 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9209 Reported by Werner Lemberg <wl@gnu.org>.
9211 2006-01-10 Bruno Haible <bruno@clisp.org>
9213 * lib/localcharset.c: Update from GNU gettext.
9215 2006-01-10 Bruno Haible <bruno@clisp.org>
9217 * lib/argp.h (__const): Remove macro. Use const instead.
9218 * lib/argp-fmtstream.h (__const): Likewise.
9219 * lib/glob_.h (__const): Remove macro.
9220 * lib/glob-libc.h: Use const instead of __const.
9222 2006-01-10 Bruno Haible <bruno@clisp.org>
9224 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9226 Needed to avoid an automake error regarding the 'gettext' module.
9228 2006-01-09 Simon Josefsson <jas@extundo.com>
9230 * modules/inet_ntop (Depends-on): Add restrict.
9232 2006-01-09 Simon Josefsson <jas@extundo.com>
9234 * modules/gc-rijndael-tests (License): Put under LGPL.
9236 * modules/gc-des-tests (License): Likewise.
9238 * modules/gc-arcfour-tests (License): Likewise.
9240 * modules/gc-arctwo-tests (License): Likewise.
9242 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9244 * modules/gc-hmac-sha1-tests (Files): Likewise.
9246 * modules/gc-hmac-md5-tests (License): Likewise.
9248 * modules/gc-sha1-tests (License): Likewise.
9250 * modules/gc-md5-tests (License): Likewise.
9252 * modules/gc-md4-tests (License): Likewise.
9254 * modules/gc-md2-tests (License): Likewise.
9256 * modules/gc-tests (License): Likewise.
9258 * modules/des-tests (License): Likewise.
9260 * modules/md4-tests (License): Likewise.
9262 * modules/md2-tests (License): Likewise.
9264 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
9266 Sync from coreutils:
9268 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9269 * modules/lib-ignore: New file.
9270 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9271 chdir-safer.m4, lchmod.m4.
9272 * modules/openat: Add mkdirat.c, openat-priv.h.
9274 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
9276 Sync from coreutils.
9277 * m4/lib-ignore.m4: New file.
9278 * m4/lchmod.m4: New file.
9280 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
9282 Sync from coreutils.
9283 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9284 for write access: POSIX says that must fail.
9285 * lib/fts.c (diropen): Likewise.
9286 * lib/save-cwd.c (save_cwd): Likewise.
9287 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9288 well, for minor improvements on hosts that lack O_DIRECTORY.
9289 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9290 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9291 Fall back on chown if open failed with EACCES.
9293 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9294 Report an error at compile-time if only a 1-second nominal clock
9295 resolution is found.
9297 * lib/lchmod.h: New file.
9298 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9299 (make_dir_parents): Use lchown rather than chown, and
9300 lchmod rather than chmod.
9302 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9303 dummies too. Problem with "none" reported by Bob Proulx. Problem with
9304 "proc" reported by n0dalus.
9306 * lib/mountlist.c: Include <limits.h>.
9307 (dev_from_mount_options)
9308 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9309 New function. It no longer assumes "dev=" has the System V meaning
9310 on Linux (since it doesn't). It also parses "dev=" more carefully.
9311 (read_file_system_list)
9312 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9313 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9316 * lib/posixtm.h (PDS_PRE_2000): New macro.
9317 * lib/posixtm.c (year): Arg is now syntax_bits rather than
9318 allow_century. All usages changed. Reject dates outside the range
9319 1969-1999 if PDS_PRE_2000 is used.
9321 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
9323 Sync from coreutils.
9324 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9325 (Time of day items): Mention the possibility of leap seconds.
9326 Problem reported by Dr. David Alan Gilbert.
9328 2006-01-09 Jim Meyering <jim@meyering.net>
9330 Sync from coreutils.
9332 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9334 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9336 * lib/modechange.c (mode_compile): Reject an invalid mode string
9337 that starts with an octal digit. From Andreas Gruenbacher.
9339 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9340 and dup to open_safer and dup_safer, respectively.
9341 (openat_permissive): Fix typo in comment.
9343 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9344 "gettext.h"; either no longer needed or are guaranteed by openat.h.
9345 (_): Remove; no longer needed.
9346 (openat): Renamed from rpl_openat; no need for rpl_openat
9347 since openat.h renames openat for us.
9348 Replace most of the body with a call to openat_permissive,
9349 to avoid duplicate code.
9350 Port to (probably hypothetical) environments were mode_t is
9352 (openat_permissive): Require mode arg, so that we can check
9353 types better. Put it just after flags. Change cwd failure
9354 indicator from pointer-to-bool to pointer-to-errno-value.
9355 All callers changed.
9356 Invoke openat_save_fail and/or openat_restore_fail if
9357 cwd_errno is null, so that openat can call us.
9358 (openat_permissive, fdopendir, fstatat, unlinkat):
9359 Simplify errno handling to avoid some duplicate code,
9360 as it's OK to set errno on success.
9361 * lib/openat.h: Revamp code so that function macros depend on
9362 __OPENAT_PREFIX only, not also on AT_FDCWD.
9363 (openat_ro): Remove. Caller changed to use openat_permissive.
9364 (openat_permissive): Now a macro, if not a function.
9365 (openat_restore_fail, openat_save_fail): Now always functions,
9366 since mkdirat needs them even if __OPENAT_PREFIX is defined.
9368 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9370 * lib/mkdirat.c: Include openat-priv.h.
9371 Remove definitions of macros defined therein.
9372 * lib/openat.c: Likewise.
9374 * lib/mkdirat.c (mkdirat): New file and function.
9375 * lib/openat.h (mkdirat): Declare.
9377 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9379 * lib/openat.h (openat_permissive): Declare.
9380 (openat_ro): Define.
9382 * lib/openat.c (EXPECTED_ERRNO): New macro.
9383 (openat_permissive): New function -- used in remove.c rewrite.
9384 (all functions): Set errno just before returning, only if there
9385 was an actual failure.
9386 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9388 Emulate openat-family functions using Linux's procfs, if possible.
9389 Idea and some code based on Ulrich Drepper's glibc changes.
9391 * lib/openat.c: (BUILD_PROC_NAME): New macro.
9392 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9393 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9394 before falling back on save_cwd and restore_cwd.
9395 (fdopendir, fstatat, unlinkat): Likewise.
9397 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9398 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9400 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9401 as second argument to va_arg. Otherwise, some versions of gcc
9402 warn that `if this code is reached, the program will abort'.
9404 2006-01-09 Jim Meyering <jim@meyering.net>
9406 Sync from coreutils.
9407 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9408 Require openat-priv.h.
9410 2006-01-09 Bruno Haible <bruno@clisp.org>
9412 * modules/strnlen (Include): Use strnlen.h.
9414 2006-01-09 Bruno Haible <bruno@clisp.org>
9416 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9418 2006-01-09 Bruno Haible <bruno@clisp.org>
9420 * lib/sysexit_.h (EX_OK): New macro.
9421 Suggested by Martin Lambers <marlam@marlam.de>.
9423 2006-01-09 Bruno Haible <bruno@clisp.org>
9425 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9426 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9428 2006-01-09 Bruno Haible <bruno@clisp.org>
9430 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9433 2006-01-09 Bruno Haible <bruno@clisp.org>
9435 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9436 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9437 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9438 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9440 2006-01-09 Bruno Haible <bruno@clisp.org>
9442 * build-aux/javacomp.sh.in: New file, moved from lib/.
9443 * modules/javacomp-script (Files): Update.
9444 (configure.ac): Add AC_CONFIG_FILES invocation.
9445 (EXTRA_DIST): Remove variable.
9447 * build-aux/javaexec.sh.in: New file, moved from lib/.
9448 * modules/javaexec (Files): Update.
9449 (configure.ac): Add AC_CONFIG_FILES invocation.
9450 (EXTRA_DIST): Remove javaexec.sh.in.
9452 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9453 * modules/csharpcomp-script (Files): Update.
9454 (configure.ac): Add AC_CONFIG_FILES invocation.
9455 (EXTRA_DIST): Remove variable.
9457 * build-aux/csharpexec.sh.in: New file, moved from lib/.
9458 * modules/csharpexec (Files): Update.
9459 (configure.ac): Add AC_CONFIG_FILES invocation.
9460 (EXTRA_DIST): Remove csharpexec.sh.in.
9462 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
9464 Sync from coreutils.
9466 Add POSIX ACL support
9467 * lib/acl.h (copy_acl, set_acl): Add declarations.
9468 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9469 systems other than Linux.
9470 (chmod_or_fchmod): New function: use fchmod when possible,
9471 and chmod otherwise.
9472 (file_has_acl): Add a POSIX ACL implementation, with a
9473 Linux-specific subcase.
9474 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9475 S_ISVTX from one file to another. Fall back to fchmod/chmod when
9476 acls are unsupported.
9477 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9478 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
9481 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
9483 Sync from coreutils.
9484 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9486 2006-01-07 Bruno Haible <bruno@clisp.org>
9488 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9491 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
9493 * lib/strftime.c (tzname): Don't declare if it is already #defined.
9494 Problem reported for Mingw by Mark Junker.
9496 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
9498 * README: Gnulib normally doesn't generate a tarball.
9500 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
9502 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9503 long int, not int, for nanosecond counts, so that people who are
9504 used to POSIX struct timespec won't be surprised. Reported by Jim
9507 2005-12-28 Bruno Haible <bruno@clisp.org>
9509 * build-aux/config.rpath: Update from GNU gettext.
9511 2005-12-16 Jim Meyering <jim@meyering.net>
9513 * modules/fprintftime: New module.
9514 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9516 2005-12-16 Jim Meyering <jim@meyering.net>
9518 * m4/fprintftime.m4: New file.
9520 2005-12-16 Jim Meyering <jim@meyering.net>
9522 * lib/fprintftime.c, lib/fprintftime.h: New files.
9524 2005-12-15 Simon Josefsson <jas@extundo.com>
9526 * modules/socklen (configure.ac): Fix M4 macro name, to align with
9529 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
9531 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9532 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9534 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
9536 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9537 * lib/argp-help.c (fill_in_uparams): Check if the constructed
9538 struct uparams is valid. Fall back to the default values if it is
9541 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
9543 * modules/argp (Files): Add argp-pin.c
9544 (Depends-on): dirname
9545 (lib_SOURCES): Add argp-pin.c
9547 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
9549 * m4/argp.m4: Check if program_invocation_name and
9550 program_invocation_short_name are declared and define appropriate
9551 macros if they are not.
9553 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
9555 * lib/argp-help.c (__argp_base_name): New function
9556 (__argp_short_program_name): Rewrite using __argp_base_name
9557 * lib/argp-namefrob.h: Define program_invocation_name and
9558 program_invocation_short_name if requested
9559 (__argp_base_name): Add prototype
9560 * lib/argp-parse.c (argp_def): Use gettext wrappers
9561 (argp_default_parser): Use __argp_base_name
9562 * lib/argp-pin.c: New file. Defines program_invocation_name and
9563 program_invocation_short_name on systems that lack them.
9565 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
9567 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9568 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9569 porting problem reported by Georg Schwarz in
9570 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9572 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
9574 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9575 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9576 porting problem reported by Georg Schwarz in
9577 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9579 2005-12-05 Bruno Haible <bruno@clisp.org>
9581 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9582 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9583 Reported by Mark Junker <mjscod@gmx.de>.
9585 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
9587 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9588 Use implementation from Albert Chin, with some
9589 comments/corrections by Stepan Kasal and myself.
9591 2005-12-02 Bruno Haible <bruno@clisp.org>
9593 * gnulib-tool (func_import): Accept GPLed build tool modules when
9595 * modules/csharpcomp-script: New file.
9596 * modules/csharpcomp: Depend on it.
9597 * modules/javacomp-script: New file.
9598 * modules/javacomp: Depend on it.
9599 Suggested by Simon Josefsson.
9601 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
9603 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9604 statement, to work around an HP-UX 10.20 compiler bug reported by
9607 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
9609 * modules/savedir (Depends-on): Add openat.
9611 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
9613 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9614 (uintmax_t) [defined uintmax_t]: Do not declare.
9615 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9616 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9617 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
9618 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9619 sake of portability to weird hosts that C allows (though we don't
9620 know of any practical examples).
9622 * lib/savedir.h (fdsavedir): New decl.
9623 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9624 contains most of the former guts of savedir.
9625 (savedir): Use savedirstream.
9628 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
9630 * modules/obstack (Files): Add m4/ulonglong.m4.
9631 Problem reported by Davide Angelocola.
9633 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
9635 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9636 coreutils no longer futzes with rounding modes.
9638 2005-11-14 Jim Meyering <jim@meyering.net>
9640 * lib/mkstemp-safer.c: Include <config.h>, required for possible
9641 replacement of mkstemp.
9643 2005-11-10 Simon Josefsson <jas@extundo.com>
9645 * lib/readline.c: Remove EOL.
9647 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
9649 * modules/gethrxtime (Depends-on): Add gettime.
9651 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
9653 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9654 or gettimeofday; no longer needed.
9656 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
9658 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9660 (gethrxtime) [! (HAVE_NANOUPTIME
9661 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9662 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9663 our own approximation.
9665 2005-11-08 Eric Blake <ebb9@byu.net>
9667 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9669 2005-11-08 Eric Blake <ebb9@byu.net>
9671 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9673 2005-11-04 Bruno Haible <bruno@clisp.org>
9675 * gnulib-tool: Implement --update mode.
9677 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
9679 Fix porting problem reported by Theodoros V. Kalamatianos.
9680 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
9681 Don't assume that futimes failing means we must fail.
9683 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
9685 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
9686 variables to suggest the intended function of the PATH_MAX check.
9688 2005-10-30 Kean Johnston <jkj@sco.com>
9690 Trivial changes to support SCO systems.
9691 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
9693 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
9694 where __ptr is null when no I/O is pending.
9696 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
9698 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
9699 leave errno alone. Problem reported by Dmitry V. Levin.
9701 2005-10-28 Simon Josefsson <jas@extundo.com>
9703 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
9706 * tests/test-gc-md2.c, tests/test-md2.c: New files.
9708 * modules/md2, modules/md2-tests: New files.
9710 2005-10-28 Simon Josefsson <jas@extundo.com>
9712 * m4/inet_ntop.m4: More tests.
9714 * m4/gc-md2.m4, md2.m4: New file.
9716 2005-10-28 Simon Josefsson <jas@extundo.com>
9718 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
9719 "restrict" keywords, as per POSIX. Protect the function
9720 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
9721 Don't use K&R prototypes. Check the sprintf return values.
9722 Re-define EAFNOSUPPORT if not present. Indent.
9724 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
9725 suggested by Bruno Haible <bruno@clisp.org>.
9727 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
9729 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
9731 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
9734 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
9736 * lib/md2.h, lib/md2.c: New files.
9738 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
9740 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
9741 errno alone. Problem reported by Frederic Jolliton.
9743 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
9745 * modules/verify (License): Change from GPL to LGPL. This is a
9746 tiny module and there are apparently near-equivalents that are
9747 under the BSD license.
9749 2005-10-24 Simon Josefsson <jas@extundo.com>
9751 * modules/sha1: Relicense to LGPL.
9753 2005-10-24 Simon Josefsson <jas@extundo.com>
9755 * lib/md4.h: Shrink buffer size, now that we changed the type.
9757 2005-10-23 Simon Josefsson <jas@extundo.com>
9759 * gnulib-tool (func_import): Fix --tests-base.
9761 2005-10-22 Simon Josefsson <jas@extundo.com>
9763 * modules/arcfour (Depends-on): Need stdint.
9765 2005-10-22 Simon Josefsson <jas@extundo.com>
9767 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
9768 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
9770 2005-10-22 Simon Josefsson <jas@extundo.com>
9772 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
9773 suggested by Bruno Haible <bruno@clisp.org>.
9775 2005-10-22 Simon Josefsson <jas@extundo.com>
9777 * lib/crc.h: Include stddef.h, for size_t.
9779 2005-10-22 Simon Josefsson <jas@extundo.com>
9781 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9782 arcfour_context struct (simplify test vector testing in GNU
9785 2005-10-21 Simon Josefsson <jas@extundo.com>
9787 * modules/des, modules/des-tests: New files.
9789 * modules/gc-des, modules/gc-des-tests: New files.
9791 * tests/test-des.c, tests/test-gc-des.c: New file.
9793 2005-10-21 Simon Josefsson <jas@extundo.com>
9795 * modules/arctwo, modules/arctwo-tests: New files.
9797 * tests/test-arctwo.c: New file.
9799 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9801 * tests/test-gc-arctwo.c: New file.
9803 2005-10-21 Simon Josefsson <jas@extundo.com>
9805 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9806 Bruno Haible <bruno@clisp.org>.
9808 * m4/gc-des.m4: New file.
9810 2005-10-21 Simon Josefsson <jas@extundo.com>
9812 * m4/arctwo.m4: New file.
9814 * m4/gc-arctwo.m4: New file.
9816 2005-10-21 Simon Josefsson <jas@extundo.com>
9818 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9821 2005-10-21 Simon Josefsson <jas@extundo.com>
9823 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9826 * lib/hmac-sha1.c (hmac_sha1): Likewise.
9828 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9829 Bruno Haible <bruno@clisp.org>.
9831 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9834 2005-10-21 Simon Josefsson <jas@extundo.com>
9836 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9838 2005-10-21 Simon Josefsson <jas@extundo.com>
9840 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9842 2005-10-21 Simon Josefsson <jas@extundo.com>
9844 * lib/des.h, lib/des.c: New files.
9846 * lib/gc-gnulib.c: Support DES.c
9848 2005-10-21 Simon Josefsson <jas@extundo.com>
9850 * lib/arctwo.h, lib/arctwo.c: New files.
9852 * lib/gc-gnulib.c: Support ARCTWO.
9854 2005-10-21 Simon Josefsson <jas@extundo.com>
9856 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9857 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9859 2005-10-21 Simon Josefsson <jas@extundo.com>
9861 * gnulib-tool (func_import, func_create_testdir): Define automake
9862 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
9863 Makefile.am snippet),
9864 suggested by Bruno Haible <bruno@clisp.org>.
9866 * modules/gc (Makefile.am): Use it.
9868 2005-10-21 Bruno Haible <bruno@clisp.org>
9870 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
9873 2005-10-19 Simon Josefsson <jas@extundo.com>
9875 * tests/test-gc-rijndael.c: New file.
9877 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
9879 2005-10-19 Simon Josefsson <jas@extundo.com>
9881 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
9884 2005-10-19 Simon Josefsson <jas@extundo.com>
9886 * tests/test-gc-arcfour.c: New file.
9888 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
9890 2005-10-19 Simon Josefsson <jas@extundo.com>
9892 * modules/gc-md4, modules/gc-md4-tests: New file.
9894 * tests/test-gc-md4.c: New file.
9896 2005-10-19 Simon Josefsson <jas@extundo.com>
9898 * m4/gc-md4.m4: New file.
9900 2005-10-19 Simon Josefsson <jas@extundo.com>
9902 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
9903 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
9906 2005-10-19 Simon Josefsson <jas@extundo.com>
9908 * m4/gc-arcfour.m4: New file.
9910 * m4/gc-rijndael.m4: New file.
9912 2005-10-19 Simon Josefsson <jas@extundo.com>
9914 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
9916 2005-10-19 Simon Josefsson <jas@extundo.com>
9918 * lib/gc-gnulib.c: Support ARCFOUR.
9920 2005-10-19 Simon Josefsson <jas@extundo.com>
9922 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
9925 * lib/gc.h: Add ECB enum type.
9927 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
9929 2005-10-18 Simon Josefsson <jas@extundo.com>
9931 * tests/test-md5.c: New file.
9933 * modules/md5-tests: New file.
9935 2005-10-18 Simon Josefsson <jas@extundo.com>
9937 * tests/test-md4.c: New file.
9939 * modules/md4, modules/md4-tests: New files.
9941 2005-10-18 Simon Josefsson <jas@extundo.com>
9943 * m4/md4.m4: New file.
9945 2005-10-18 Simon Josefsson <jas@extundo.com>
9947 * lib/md4.h, lib/md4.c: New files, based on md5.?.
9949 2005-10-17 Stepan Kasal <kasal@ucw.cz>
9951 * gnulib-tool (func_create_testdir): Omit the second check whether
9952 BUILT_SOURCES in nonempty.
9954 2005-10-17 Simon Josefsson <jas@extundo.com>
9956 * tests/test-rijndael.c: New file.
9958 2005-10-17 Simon Josefsson <jas@extundo.com>
9960 * modules/sha1: Depend on stdint instead of md5.
9962 * modules/md5: Depend on stdint, remove uint32_t.
9964 2005-10-17 Simon Josefsson <jas@extundo.com>
9966 * modules/gc-sha1-tests: New file.
9968 * tests/test-gc-sha1.c: New file.
9970 2005-10-17 Simon Josefsson <jas@extundo.com>
9972 * m4/md5.m4: Remove call to uint32_t.m4.
9974 2005-10-17 Simon Josefsson <jas@extundo.com>
9976 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
9978 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
9981 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
9983 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
9985 2005-10-17 Simon Josefsson <jas@extundo.com>
9987 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
9989 2005-10-17 Simon Josefsson <jas@extundo.com>
9991 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
9993 2005-10-17 Simon Josefsson <jas@extundo.com>
9995 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
9997 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
9999 2005-10-17 Bruno Haible <bruno@clisp.org>
10001 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10002 that it can also be used in a test.
10004 2005-10-16 Bruno Haible <bruno@clisp.org>
10006 * gnulib-tool (func_emit_tests_Makefile_am): Also define
10007 TESTS_ENVIRONMENT, so that individual tests can augment it.
10009 * gnulib-tool (func_create_testdir): Use an intermediate target for
10010 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10011 macros, like $(ALLOCA_H), which cannot be passed through the command
10014 2005-10-15 Simon Josefsson <jas@extundo.com>
10016 * modules/rijndael-tests: New file.
10018 * modules/rijndael: New file.
10020 2005-10-15 Simon Josefsson <jas@extundo.com>
10022 * m4/rijndael.m4: New file.
10024 2005-10-15 Simon Josefsson <jas@extundo.com>
10026 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10028 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10030 2005-10-14 Simon Josefsson <jas@extundo.com>
10032 * tests/test-arcfour.c: New file.
10034 * modules/arcfour, modules/arcfour-tests: New files.
10036 2005-10-14 Simon Josefsson <jas@extundo.com>
10038 * m4/arcfour.m4: New file.
10040 2005-10-14 Simon Josefsson <jas@extundo.com>
10042 * lib/arcfour.h, lib/arcfour.c: New files.
10044 2005-10-14 Roland McGrath <roland@redhat.com>
10046 Import from libc. [BZ #1331]
10047 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10049 Reported by Matej Vela <vela@debian.org>.
10051 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
10053 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10054 include <wchar.h>; no longer needed.
10056 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
10058 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10060 2005-10-14 Jakub Jelinek <jakub@redhat.com>
10061 and Ulrich Drepper <drepper@redhat.com>
10064 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10065 instead of inline stream orientation test and two separate
10066 function calls. Pay no attention to USE_IN_LIBIO.
10068 2005-10-13 Simon Josefsson <jas@extundo.com>
10070 * modules/gc-hmac-md5-tests: New file.
10072 * tests/test-gc-hmac-sha1.c: New file.
10074 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10076 * modules/gc-hmac-md5-tests: New file.
10078 * tests/test-gc-md5.c: New file.
10080 * modules/gc-md5-tests: New file.
10082 2005-10-13 Simon Josefsson <jas@extundo.com>
10084 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10085 Move memory allocation outside of loop.
10087 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
10089 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10090 intermediate directory is in a read-only file system. Problem
10091 reported by Eric Blake.
10093 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
10095 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10097 2005-10-12 Simon Josefsson <jas@extundo.com>
10099 * tests/test-hmac-sha1.c: New file.
10101 * modules/hmac-sha1-tests: New file.
10103 * modules/hmac-sha1: New file.
10105 2005-10-12 Simon Josefsson <jas@extundo.com>
10107 * modules/gc-sha1: New file.
10109 2005-10-12 Simon Josefsson <jas@extundo.com>
10111 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10113 * tests/test-gc-pbkdf2-sha1.c: New file.
10115 2005-10-12 Simon Josefsson <jas@extundo.com>
10117 * modules/gc-md5, modules/gc-hmac-md5: New files.
10119 * modules/gc (Files): Remove md5, memxor and hmac files.
10121 2005-10-12 Simon Josefsson <jas@extundo.com>
10123 * m4/gc-pbkdf2-sha1.m4: New file.
10125 * m4/gc-hmac-sha1.m4: New file.
10127 * m4/gc-sha1: New file.
10129 * m4/hmac-sha1.m4: New file.
10131 2005-10-12 Simon Josefsson <jas@extundo.com>
10133 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10135 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10137 2005-10-12 Simon Josefsson <jas@extundo.com>
10139 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10140 suggested by Bruno Haible <bruno@clisp.org>.
10142 2005-10-12 Simon Josefsson <jas@extundo.com>
10144 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10146 2005-10-12 Simon Josefsson <jas@extundo.com>
10148 * lib/gc-pbkdf2-sha1.c: New file.
10150 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10152 2005-10-12 Simon Josefsson <jas@extundo.com>
10154 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10156 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10158 2005-10-12 Simon Josefsson <jas@extundo.com>
10160 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10161 GC_USE_HMAC_MD5, respectively.
10163 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10164 (gc_md5): Fix typo.
10166 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10168 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10170 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10172 2005-10-12 Bruno Haible <bruno@clisp.org>
10174 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10175 Reported by Stepan Kasal <kasal@ucw.cz>.
10177 2005-10-11 Simon Josefsson <jas@extundo.com>
10179 * tests/test-crc.c: New file.
10181 * modules/crc, modules/crc-tests: New files.
10183 2005-10-11 Simon Josefsson <jas@extundo.com>
10185 * m4/crc.m4: New file.
10187 2005-10-11 Simon Josefsson <jas@extundo.com>
10189 * lib/gc.h: Add gc_hash and gc_hash_buffer.
10191 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
10193 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10195 2005-10-11 Simon Josefsson <jas@extundo.com>
10197 * lib/crc.h, lib/crc.c: New files.
10199 * lib/gc.h (gc_hash_buffer): Add doc.
10201 2005-10-11 Bruno Haible <bruno@clisp.org>
10203 * modules/c-strcasestr: New file.
10204 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10206 2005-10-11 Bruno Haible <bruno@clisp.org>
10208 * modules/c-strcase: New file.
10209 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10211 2005-10-11 Bruno Haible <bruno@clisp.org>
10213 * lib/strcasecmp.c: Include limits.h.
10214 (strcasecmp): Avoid integer overflow on exotic platforms.
10215 * lib/strncasecmp.c: Include limits.h.
10216 (strncasecmp): Avoid integer overflow on exotic platforms.
10217 Reported by Paul Eggert.
10219 2005-10-11 Bruno Haible <bruno@clisp.org>
10221 * lib/c-strcasestr.h: New file, from GNU gettext.
10222 * lib/c-strcasestr.c: New file, from GNU gettext.
10224 2005-10-11 Bruno Haible <bruno@clisp.org>
10226 * lib/c-strcase.h: New file, from GNU gettext.
10227 * lib/c-strcasecmp.c: New file, from GNU gettext.
10228 * lib/c-strncasecmp.c: New file, from GNU gettext.
10230 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
10232 * modules/mempcpy (License): GPL -> LGPL.
10233 * modules/strchrnul (License): Likewise.
10234 * modules/sysexits (License): Likewise.
10236 2005-10-08 Simon Josefsson <jas@extundo.com>
10238 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10240 2005-10-07 Simon Josefsson <jas@extundo.com>
10242 * m4/memxor.m4: Remove gl_C_RESTRICT call.
10244 2005-10-06 Simon Josefsson <jas@extundo.com>
10246 * tests/test-hmac-md5.c: New file.
10248 * modules/hmac-md5-tests: New file.
10250 * modules/hmac-md5: New file.
10252 2005-10-06 Simon Josefsson <jas@extundo.com>
10254 * m4/hmac-md5.m4: New file.
10256 * m4/memxor.m4: Require gl_C_RESTRICT.
10258 2005-10-06 Simon Josefsson <jas@extundo.com>
10260 * lib/memxor.c (memxor): Avoid casts and warnings.
10262 2005-10-06 Simon Josefsson <jas@extundo.com>
10264 * lib/hmac-md5.c: New file.
10266 * lib/hmac.h: New file.
10268 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
10270 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10271 promotes to int, not unsigned int, to catch the AIX 5.3
10274 2005-10-05 Simon Josefsson <jas@extundo.com>
10276 * modules/memxor: New file.
10278 * modules/iconv (Files): Move config.rpath to havelib, it is used
10281 * modules/havelib (Files): Add config.rpath.
10283 2005-10-05 Simon Josefsson <jas@extundo.com>
10285 * m4/memxor.m4: New file.
10287 2005-10-05 Simon Josefsson <jas@extundo.com>
10289 * lib/memxor.c (memxor): Fix compiler error.
10291 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10292 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10294 * lib/memxor.h, lib/memxor.c: New files.
10296 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10297 we assume all systems have it, suggested by Jim Meyering
10298 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
10299 any systems lack sys/socket.h; mingw32 is known to lack it, but we
10300 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
10303 2005-10-05 Simon Josefsson <jas@extundo.com>
10305 * config/srclist.txt: Add glibc bug 1423 for md5.h.
10307 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
10309 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10310 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10311 needed, since the source code now assumes these .h files.
10313 2005-10-05 Derek Price <derek@ximbiot.com>
10315 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10317 2005-10-05 Bruno Haible <bruno@clisp.org>
10319 * modules/stdint (License): Change to LGPL.
10321 2005-10-04 Simon Josefsson <jas@extundo.com>
10323 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10324 D. Baushke" <mdb@gnu.org>.
10326 2005-10-04 Bruno Haible <bruno@clisp.org>
10328 * lib/verify.h (verify_true): Provide alternative definition for C++.
10330 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
10332 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
10333 (SSIZE_MAX): New macro, if not already defined.
10334 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10337 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
10339 Sync from coreutils.
10340 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10341 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10342 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
10343 ULLONG_MAX doesn't work with 2.7.2.1.
10345 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
10347 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10350 * modules/exclude (Depends-on): Depend on verify.
10351 * modules/strtoimax (Depends-on): Likewise.
10352 * modules/utimecmp (Depends-on): Likewise.
10354 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
10356 * lib/exclude.c: Include verify.h.
10357 (verify): Remove. All callers changed to use verify.h's version.
10358 * lib/strtoimax.c: Likewise.
10359 * lib/utimecmp.c: Likewis.e
10361 Sync from coreutils.
10362 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10363 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10364 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10365 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
10366 bother returning ENOSYS if settimeofday or stime fails; just let
10367 them return whatever errno they want to return.
10368 * lib/utimens.c: Include unistd.h, for dup2.
10369 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10370 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10372 2005-10-02 Jim Meyering <jim@meyering.net>
10374 Sync from coreutils.
10375 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10376 from glibc-2.2.5 that fails for read-only files.
10378 2005-10-02 Jim Meyering <jim@meyering.net>
10380 Sync from coreutils.
10381 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10382 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10383 `#if HAVE_CONFIG_H'.
10384 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10385 Remove AT_FDCWD test.
10386 Do not consume the fd unless successful.
10387 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10388 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10389 block, so that we don't even try to compile it if settimeofday is
10390 available. This works around a compilation failure on OSF1 V5.1,
10391 due to stime requiring a `long int*' while tv_sec is `int'.
10393 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
10395 Sync from coreutils.
10396 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10397 against `yes', rather than just testing for nonempty.
10399 2005-10-01 Simon Josefsson <jas@extundo.com>
10401 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10404 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10405 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
10406 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
10407 freeaddrinfo and gai_strerror are declared by the POSIX headers.
10408 Check if struct addrinfo is declared.
10410 2005-10-01 Simon Josefsson <jas@extundo.com>
10412 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10413 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
10414 AI_* and EAI_* definitions. Protect function declarations.
10416 2005-10-01 Jim Meyering <jim@meyering.net>
10418 Sync from coreutils.
10420 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10421 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
10422 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10423 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10424 in the inet and nsl libraries. Required on Solaris 5.7.
10426 2005-10-01 Jim Meyering <jim@meyering.net>
10428 Sync from coreutils.
10429 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10430 in the inet and nsl libraries. Required on Solaris 5.7.
10432 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
10434 * lib/getdelim.c (getdelim): Remove unused variables.
10436 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
10438 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10439 so that the code works even with ancient cpp. Portability problem
10440 with GCC 2.7.2.1 reported by Thomas M.Ott.
10442 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
10444 * modules/regex (Depends-on): Add strcase.
10446 * modules/gethostname (Licence): Change from GPL to LGPL, since
10447 gethostname.c is a trivial implementation of a standard library
10449 * modules/poll (License): Change from GPL to LGPL, since it's
10450 derived from LGPL code.
10452 2005-09-27 Jim Meyering <jim@meyering.net>
10454 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10457 * lib/intprops.h (signed_type_or_expr__): Define.
10458 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10459 for unsigned types.
10461 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
10463 * lib/verify.h (verify_expr): Remove, replacing with:
10464 (verify_true): New macro that returns true instead of void.
10465 (verify_type__): Remove.
10466 (verify): Use verify_true rather than verify_type__.
10468 2005-09-26 Bruno Haible <bruno@clisp.org>
10470 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10472 (lib_SOURCES): Remove mbchar.c.
10473 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10474 (Files): Add m4/mbrtowc.m4.
10475 * modules/mbiter: Likewise.
10476 * modules/mbuiter: Likewise.
10478 2005-09-26 Bruno Haible <bruno@clisp.org>
10480 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10481 compile mbchar.c if they are not both present.
10482 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10483 * m4/mbiter.m4 (gl_MBITER): Likewise.
10484 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10485 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10486 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10488 2005-09-25 Jim Meyering <jim@meyering.net>
10490 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10491 also uses socklen_t.
10493 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
10495 * lib/utimens.c (ENOSYS): Define if not already defined.
10496 (futimens): Support having a null PATH if the file descriptor
10499 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10501 (__attribute): Define to empty unless GCC 3.1 or later.
10502 This works around a core dump on OpenBSD 3.4, which has GCC
10503 2.95.3, which dumps core when given __attribute__(()). It also
10504 simplifies other tests, since we really don't want to bother with
10505 worrying about which ancient version of GCC supported what.
10506 Original problem reported by Yoann Vandoorselaere, with part of
10507 the fix suggested by Derek Price.
10509 2005-09-24 Jim Meyering <jim@meyering.net>
10511 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10512 so we can once again use a positive bitfield width of 1 -- now we
10513 don't have to explain why we were using a bitfield width of 2.
10515 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
10517 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10518 and similarly for the other external symbols. Problem reported
10521 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10522 bug reported by Jim Meyering.
10524 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10525 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10526 not needed, since socklen is a prerequisite module.
10528 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
10530 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10531 Problem reported by Eric Blake.
10532 (getaddrinfo): Initialize se so that it's not garbage.
10533 Redo internal storage allocation so that it doesn't make unportable
10534 assumptions about alignment.
10537 * lib/utimens.c (futimens): Use futimesat if available.
10538 Prefer it to futimes since it doesn't have the futimes bug.
10540 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10541 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10542 Instead, declare a function that returns a pointer to an array,
10543 and use verify_type__ to declare the size of the array.
10544 Problem and germ of a solution reported by Bruno Haible.
10545 (verify_type__): Use 2, not 1, for bitfield size, to avoid
10546 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
10548 2005-09-23 Jim Meyering <jim@meyering.net>
10550 Sync from coreutils.
10551 Correct build failure (socklen_t not defined) on at least
10552 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10553 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10555 2005-09-23 Jim Meyering <jim@meyering.net>
10557 * modules/getaddrinfo (Depends-on): Add socklen.
10559 2005-09-23 Bruno Haible <bruno@clisp.org>
10561 * tests/test-verify.c: New file.
10563 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
10565 Sync from coreutils.
10567 * modules/argmatch (Depends-on): Add verify.
10568 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10570 * modules/save-cwd (Depends-on): Likewise.
10572 * modules/openat (Files): Add lib/openat-die.c.
10573 (Depends-on): Remove error, exitfail.
10576 * modules/verify: New file.
10577 * MODULES.html.sh (Diagnostics <assert.h>): New section,
10578 with "verify" module.
10580 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
10582 Sync from coreutils.
10584 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10585 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10586 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10587 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10588 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10589 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10590 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10591 Don't bother checking for string.h, stdlib.h, unistd.h.
10592 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10593 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10595 * m4/jm-macros.m4 (gl_MACROS): Likewise.
10596 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10598 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10599 (gl_GETDATE): Use it.
10601 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10603 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
10605 Sync from coreutils.
10607 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10609 * lib/argmatch.h: Include verify.h
10610 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10611 (ARGMATCH_ASSERT): Remove; unused.
10612 * lib/canonicalize.c: Assume STDC_HEADERS.
10613 * lib/exclude.c: Include "strcase.h".
10614 * lib/regex_internal.h [!defined _LIBC]: Likewise.
10615 * lib/getusershell.c: Include stdio--.h rather than stdio.h
10617 (getusershell): Call fopen, not fopen_safer.
10618 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10619 Do not include unistd-safer.h.
10620 (save_cwd): Don't call fd_safer; no longer needed
10621 now that we include fcntl--.h.
10623 * lib/getdate.y (relative_time): New type.
10624 (RELATIVE_TIME_0): New constant.
10625 (parser_control): Use relative_time instead of doing it ourselves.
10626 (%union): Add new relative_time rel member.
10627 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10629 (relunit, relunit_snumber): Now of type rel.
10630 (zone, rel, relunit, get_date): Adjust to above changes.
10632 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10633 Do not include unistd-safer.h.
10634 (getloadavg): Don't call fd_safer; no longer needed
10635 now that we include fcntl--.h.
10637 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10638 (make_dir_parents): Treat ENOSYS like EEXIST.
10640 Improve quality of diagnostics on restore_cwd failure.
10641 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
10642 (make_dir_parents): Last arg is now int * (for errno), not bool *.
10643 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10644 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10645 each time through the loop. Do not diagnose restore_cwd failure;
10646 that is the caller's job (and perhaps the caller does not care).
10648 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10649 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10650 If the file already exists but is not a directory, don't bother
10651 to try to make its parents.
10652 Close potential file descriptor leak if we can't chdir("/") (!).
10653 Don't always return true if chdir($PWD) fails; return true only
10654 if the requested action was done successfully (except for the
10656 Don't log final directory unless we actually made it.
10657 Refactor to avoid duplicate code to fix up permissions.
10658 Don't attempt to fix up parent permissions if chdir($PWD) fails.
10660 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10661 to make it a bit faster and (I hope) clearer.
10662 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10663 Fix bug in formats like %2N.
10665 * lib/verify.h: New file.
10667 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
10669 Sync from coreutils.
10670 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
10672 2005-09-22 Jim Meyering <jim@meyering.net>
10674 Sync from coreutils.
10676 * m4/lstat.m4 (gl_FUNC_LSTAT):
10677 Use AC_LIBSOURCES to require lstat.c and lstat.h.
10678 Remove obsolete comment.
10679 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
10680 * m4/xstrtod.m4: Likewise.
10682 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
10684 2005-09-22 Jim Meyering <jim@meyering.net>
10686 Sync from coreutils.
10688 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
10690 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
10691 the .tm_year member, since otherwise gcc-4.0 would now warn about
10692 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
10694 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
10695 order to avoid an unsuppressible warning from gcc on 64-bit systems.
10697 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
10698 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
10699 when run in a time zone for which daylight savings time is in effect
10700 for the starting date.
10702 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
10703 stop us from restricting permissions of just-created absolute-named
10705 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
10706 to restore initial working directory.
10707 * lib/mkdir-p.c (make_dir_parents): New parameter:
10708 different_working_dir, to tell caller if/when we change the working
10709 directory and are unable to return to the initial one.
10710 * lib/mkdir-p.h (make_dir_parents): Update prototype.
10711 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
10712 `return false'. This fixes a bug introduced on 2004-07-30.
10714 * lib/openat.c (fdopendir): Be sure to close the supplied
10715 file descriptor before returning. This makes our replacement
10716 implementation a little closer to Solaris's, where fdopendir
10717 ties the file descriptor to the returned DIR* pointer.
10718 * lib/openat.c (unlinkat): New function.
10719 * lib/openat.h (unlinkat): Add prototype.
10720 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
10721 (openat_restore_fail): Rename from openat_restore_die.
10722 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
10724 Provide an alternative to exiting immediately upon save_cwd or
10725 restore_cwd failure. Now, an application can arrange e.g.,
10726 to perform a longjump in that case.
10727 * lib/openat.c: Include dirname.h.
10728 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
10729 (rpl_openat, fdopendir, fstatat): Call openat_save_die
10730 and openat_restore_die rather than calling error directly.
10731 Don't include "error.h" or "exitfail.h"; they're no longer needed.
10733 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
10734 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
10737 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
10738 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
10739 int utc, int nanoseconds);
10741 date should not have to allocate a megabyte of virtual memory to
10742 handle a format argument like +%1048575T. When implemented with
10743 strftime, it must allocate such a buffer, use strftime to fill it
10744 in, print it, then free it.
10745 With fprintftime, it simply prints everything and exits.
10746 With no need for memory allocation, that's one fewer way to fail.
10747 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
10748 optional field width, not before, so we accept %9:z, not %:9z.
10749 (my_strftime): Be sure to use L_('x') for literals.
10751 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
10752 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
10753 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
10754 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
10755 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
10756 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
10757 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
10758 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
10759 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
10760 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
10761 * lib/xgethostname.c, lib/xreadlink.c:
10762 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
10764 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
10765 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
10766 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
10767 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10768 and don't include <sys/file.h>).
10770 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
10772 Sync from coreutils.
10774 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
10775 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
10776 [!LDAV_DONE]: Avoid unused variable warning.
10778 2005-09-21 Bruno Haible <bruno@clisp.org>
10780 * lib/unicodeio.h (unicode_to_mb): New declaration.
10782 2005-09-20 Derek Price <derek@ximbiot.com>
10784 * lib/getaddrinfo.c: Don't include <netdb.h> included from
10787 2005-09-20 Bruno Haible <bruno@clisp.org>
10789 * gnulib-tool: Remove trailing slashes from the values specified for
10790 --source-base, --m4-base, --tests-base, --aux-dir.
10791 Suggested by Simon Josefsson <jas@extundo.com>.
10793 2005-09-20 Bruno Haible <bruno@clisp.org>
10795 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10796 func_modules_to_filelist, func_import, func_create_testdir): Make all
10797 sorting results locale-independent, so that gnulib-cache.m4 doesn't
10798 change when gnulib-tool is invoked in a different locale.
10800 2005-09-19 Simon Josefsson <jas@extundo.com>
10802 * m4/socklen.m4: Fix typo.
10804 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10806 Use a consistent style for including <config.h>.
10807 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10808 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10809 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10810 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10811 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10812 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10813 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10814 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10815 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10816 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10817 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10818 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10819 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10820 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10821 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10822 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10823 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10824 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10825 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10826 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10827 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10828 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10829 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10830 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10831 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10832 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10833 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10834 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10835 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10836 lib/xstrtoumax.c, lib/yesno.c:
10837 Standardize inclusion of config.h.
10838 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10839 lib/inttostr.h: Removed inclusion of config.h from header files.
10840 * lib/inttostr.c: Adjusted in-tree users.
10841 * lib/timespec.h: Remove superfluous warning to include config.h.
10842 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10843 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10844 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10845 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10846 config.h with HAVE_CONFIG_H.
10848 2005-09-19 Jim Meyering <jim@meyering.net>
10850 * modules/pathmax (License): Change to LGPL.
10852 2005-09-19 Derek Price <derek@ximbiot.com>
10854 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10856 2005-09-19 Bruno Haible <bruno@clisp.org>
10858 * gnulib-tool (import): Provide default for --tests-base.
10860 2005-09-19 Bruno Haible <bruno@clisp.org>
10862 * doc/quote.texi: New file, extracted from gnulib.texi.
10863 * doc/ctime.texi: New file, extracted from gnulib.texi.
10864 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
10865 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
10866 * doc/gnulib.texi: Include them.
10868 2005-09-18 Bruno Haible <bruno@clisp.org>
10871 * gnulib-tool (func_readlink): New function.
10872 (func_ln_if_changed): Use it.
10874 2005-09-18 Bruno Haible <bruno@clisp.org>
10876 * gnulib-tool: Support --with-tests also with --import.
10877 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
10878 (func_import): Use variables $testsbase and $inctests. Emit a
10879 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
10880 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
10881 SUBDIRS += $testsdir.
10882 (func_create_testdir): Update.
10884 2005-09-18 Bruno Haible <bruno@clisp.org>
10886 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
10887 instead of $dry_run.
10888 (func_cp_if_changed, func_mv_if_changed): Remove functions.
10889 (func_ln_if_changed): Don't handle dry-run here.
10890 (func_import): In dry-run mode, detect more precisely which actions
10891 would be performed, and don't use "...ing" verbs.
10893 2005-09-18 Bruno Haible <bruno@clisp.org>
10895 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
10896 (func_import): Use join on two temporary files instead of three nested
10897 loops, in order to determine which files are new or old.
10899 2005-09-18 Bruno Haible <bruno@clisp.org>
10901 * gnulib-tool (func_import): Comment out code that spits out the
10902 new files with --dry-run.
10904 2005-09-18 Bruno Haible <bruno@clisp.org>
10906 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
10908 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
10910 * lib/stat-time.h: New file.
10911 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
10912 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
10913 in a different way.
10914 (timespec_cmp): New function.
10915 * lib/utimecmp.c: Include stat-time.h.
10916 (SYSCALL_RESOLUTION): Depend on whether various struct stat
10917 members exist, not on the obsolescent ST_MTIM_NSEC.
10918 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
10920 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
10922 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
10924 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
10926 * MODULES.html.sh (File system functions): Add stat-time.
10927 * modules/stat-time: New file.
10928 * modules/timespec (Files): Remove m4/st_mtim.m4; this
10929 is now done in a different way, by the stat-time module.
10930 * modules/utimecmp (Depends-on): Add stat-time.
10932 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
10934 * m4/st_mtim.m4: Remove. Superseded by...
10935 * m4/stat-time.m4: New file.
10936 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
10937 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
10939 2005-09-15 Derek Price <derek@ximbiot.com>
10941 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
10943 2005-09-15 Derek Price <derek@ximbiot.com>
10945 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
10946 * lib/regex_internal.c: Ditto, using this...
10947 (__GNUC_PREREQ): ...new macro.
10948 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
10950 (__GNUC_PREREQ): ...this new macro.
10952 * lib/strstr.h: Include string.h. Define strstr as a macro here.
10954 2005-09-15 Derek Price <derek@ximbiot.com>
10955 Paul Eggert <eggert@cs.ucla.edu>
10957 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
10958 changes, consolidating in...
10959 * lib/regex_internal.h: ...this file.
10961 2005-09-13 Jim Meyering <jim@meyering.net>
10963 * lib/canon-host.c: Filter through gnu indent and reword comments
10965 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
10967 2005-09-13 Derek Price <derek@ximbiot.com>
10969 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
10971 Reported by Jim Meyering <jim@meyering.net>.
10973 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10975 * lib/base64.c: Typo.
10976 (base64_encode): Put b64str in initialized data section.
10978 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
10980 Merge glibc and coreutils changes into gnulib, plus a few
10982 * lib/md5.c: Use #error rather than a string.
10983 (CYCLIC): New macro, from glibc source. Use it instead of rol.
10984 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
10985 (__attribute__): Define to empty for non recent-GCC.
10986 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
10987 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
10988 Renamed from their non-__ counterparts, with new macros replacing
10989 them if not _LIBC. Add __THROW attribute.
10991 (struct md5_ctx): Align buffer if using GCC.
10992 * lib/sha1.h (struct sha1_ctx): Likewise.
10993 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
10994 The old name was backwards.
10995 (NOTSWAP): Remove; not used.
10996 (rol): New macro, moved here from md5.h.
10997 (sha1_process_block): Remove a FIXME that doesn't make sense.
10999 2005-09-12 Derek Price <derek@ximbiot.com>
11001 Return usable errors from canon-host.
11002 * lib/canon-host.h: New file.
11003 * lib/canon-host.c (canon_host): Wrap...
11004 (canon_host_r): ...this new function, which now relies exclusively on
11006 (ch_strerror): New function.
11007 (last_cherror): New global.
11008 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11010 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
11012 (freeaddrinfo): Free ai->ai_canonname when set.
11014 2005-09-12 Derek Price <derek@ximbiot.com>
11016 Make canon-host require getaddrinfo.
11017 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11018 AC_LIBSOURCE canon-host.h. Call...
11019 (gl_PREREQ_CANON_HOST): ...this new function, which requires
11021 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11023 2005-09-12 Derek Price <derek@ximbiot.com>
11025 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
11027 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
11029 2005-09-12 Derek Price <derek@ximbiot.com>
11031 * lib/gai_strerror.c: Include config.h when available. Include
11032 getaddrinfo.h before other headers to test interface.
11033 Reported by Larry Jones <lawrence.jones@ugs.com>.
11035 2005-09-12 Derek Price <derek@ximbiot.com>
11036 Paul Eggert <eggert@cs.ucla.edu>
11038 * modules/glob (Files): Add glob-libc.h.
11040 2005-09-12 Derek Price <derek@ximbiot.com>
11041 Paul Eggert <eggert@cs.ucla.edu>
11043 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11044 glob_.h, glob-libc.h.
11045 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11047 2005-09-12 Derek Price <derek@ximbiot.com>
11048 Paul Eggert <eggert@cs.ucla.edu>
11050 * lib/glob-libc.h: Renamed from glob_.h. The new version is
11051 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11052 protecting things that should be done only in gnulib contexts.
11053 * lib/glob_.h: New file, containing only the glob things needed for
11055 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
11056 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11057 (glob, globfree, glob_pattern_p): Now defined simply in terms of
11058 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11059 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11060 and to respect the namespace rules better.
11062 2005-09-08 Simon Josefsson <jas@extundo.com>
11064 * modules/socklen: New file.
11066 2005-09-08 Simon Josefsson <jas@extundo.com>
11068 * m4/socklen.m4: New file.
11070 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
11072 * modules/utimens (Files): Add m4/utimbuf.m4, since
11073 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11074 Reported by Sergey Poznyakoff.
11076 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
11078 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11079 definitions, since that's the preferred style in glibc.
11080 Fix a minor spacing issue, and update copyright notice to match
11083 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
11085 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11087 2005-09-06 Simon Josefsson <jas@extundo.com>
11089 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11090 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
11092 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
11094 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11097 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
11099 * config/srclist.txt: Add glibc bug 1302.
11101 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
11103 Change bitset word type from unsigned int to unsigned long int,
11104 as this has better performance on typical 64-bit hosts.
11105 Port bitset code to hosts with unusual word sizes.
11106 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11107 (build_collating_symbol):
11108 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11109 argument is a bitset. This is merely a style issue, but it makes
11110 it clearer that an entire array is expected.
11111 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11112 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11113 Port to the case where bitset_word is not the same as unsigned int.
11114 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11115 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11117 * lib/regexec.c (check_dst_limits_calc_pos_1,
11118 check_subexp_matching_top):
11119 (build_trtable, group_nodes_into_DFAstates):
11121 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11122 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11123 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11124 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11125 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11126 * lib/regcomp.c (optimize_subexps, lower_subexp):
11127 Work even if bitset_word has holes in its bitwise representation.
11128 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11129 * lib/regexec.c (check_dst_limits_calc_pos_1,
11130 check_subexp_matching_top):
11132 * lib/regex_internal.c (re_string_reconstruct):
11133 Don't assume UCHAR_MAX == 255.
11134 * lib/regex_internal.h (bitset_set_all): Likewise.
11135 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11137 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
11138 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11140 (BITSET_WORD_MAX): New macro.
11141 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11142 (bitset_set_all, bitset_copy): Now inline functions, not macros.
11143 (bitset_empty, bitset_copy):
11144 Prefer sizeof (bitset) to multiplying it out ourselves.
11145 (bitset_not_merge): Remove; unused.
11146 (bitset_contain): Return bool, not unsigned int with one bit on.
11147 All callers changed.
11148 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11149 alignment than re_node_set; do this by defining a new internal
11150 type struct dests_alloc and using it to allocate memory.
11152 2005-09-05 Bruno Haible <bruno@clisp.org>
11154 * gnulib-tool (func_import): Fix comparison in handling of symbolic
11157 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
11159 * modules/size_max (Makefile.am): Add size_max.h
11161 2005-09-04 Derek Price <derek@ximbiot.com>
11163 * gnulib-tool (func_import): Fix reversed $symbolic logic.
11165 2005-09-03 Simon Josefsson <jas@extundo.com>
11167 * gnulib-tool: Fix typo.
11169 2005-09-03 Simon Josefsson <jas@extundo.com>
11171 * config/srclist.txt: Add glibc bug 1293.
11173 2005-09-03 Derek Price <derek@ximbiot.com>
11175 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11176 From Larry Jones <lawrence.jones@ugs.com>.
11178 2005-09-02 Simon Josefsson <jas@extundo.com>
11180 * modules/socklen: New file.
11182 2005-09-02 Simon Josefsson <jas@extundo.com>
11184 * modules/havelib: New module.
11186 * modules/gettext, modules/iconv, modules/lock, modules/readline:
11189 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
11191 Check for arithmetic overflow when calculating sizes, to prevent
11192 some buffer-overflow issues. These patches are conservative, in the
11193 sense that when I couldn't determine whether an overflow was possible,
11194 I inserted a run-time check.
11195 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11197 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11198 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11199 (re_xnrealloc, re_x2nrealloc): New inline functions.
11200 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11201 parse_bracket_exp):
11202 (build_equiv_class, build_charclass): Check for arithmetic overflow
11203 in size expression calculations.
11204 * lib/regex_internal.c (re_string_realloc_buffers):
11205 (build_wcs_upper_buffer, re_node_set_add_intersect):
11206 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11207 (re_dfa_add_node, register_state): Likewise.
11208 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11209 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11210 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11211 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11213 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
11215 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11216 m4/ulonglong.m4. Problem reported by Martin Lambers.
11218 2005-09-02 Bruno Haible <bruno@clisp.org>
11220 Support for lib vs. lib64 distinction on biarch platforms.
11221 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11222 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11223 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11225 2005-09-02 Bruno Haible <bruno@clisp.org>
11227 * gnulib-tool (import): In the other first-use case, provide defaults
11230 2005-09-02 Bruno Haible <bruno@clisp.org>
11232 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11233 patches not yet found in the latest gettext release.
11235 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
11237 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11238 to avoid a collision with bits/local_lim.h in glibc.
11239 All uses changed. Problem reported by Dmitry V. Levin in
11240 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11242 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11243 bugs in int versus size_t comparisons.
11244 (re_string_context_at): Fix bug where the code assumed that
11247 Use bool where appropriate.
11248 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11249 All callers changed.
11250 (calc_eclosure_iter): Likewise, for ROOT arg.
11251 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11252 (build_charclass_op): Likewise, for NON_MATCH arg.
11253 * lib/regex_internal.c (re_string_allocate, re_string_construct):
11254 (re_string_construct_common): Likewise, for ICASE arg.
11255 * lib/regexec.c (re_search_2_stub, re_search_stub):
11256 Likewise, for RET_LEN arg.
11257 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11258 (set_regs): Likewise, for FL_BACKTRACK arg.
11259 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11260 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11261 (calc_eclosure_iter, parse_bracket_exp):
11262 Use bool for internal variables that are booleans.
11263 * lib/regexec.c (re_search_internal, check_matching,
11264 proceed_next_node):
11265 (set_regs, build_sifted_states, sift_states_bkref):
11266 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11267 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11268 (find_collation_sequence_value):
11270 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11271 (re_node_set_compare):
11272 Return bool, not int. All callers changed.
11273 * lib/regexec.c (check_halt_node_context, check_dst_limits):
11274 (build_trtable, check_node_accept): Likewise.
11275 * lib/regex_internal.h: Include stdbool.h.
11277 Fix bugs uncovered when converting to bool.
11278 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11279 failure instead of charging ahead blindly.
11280 * lib/regex_internal.c (register_state): Likewise.
11281 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11282 for freeing internal storage.
11283 (group_nodes_into_DFA_states): Use unsigned int, not int, for
11284 bitset pieces used as boolean, to avoid undefined behavior
11285 on hosts that do int overflow checking.
11287 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
11289 * config/srclist.txt: Add glibc bugs 1285-1287.
11291 2005-09-01 Jim Meyering <jim@meyering.net>
11293 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11294 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11295 Require gl_STAT_MACROS, too.
11297 2005-09-01 Bruno Haible <bruno@clisp.org>
11299 * gnulib-tool (import): In the first-use case, provide defaults.
11301 2005-09-01 Bruno Haible <bruno@clisp.org>
11303 * gnulib-tool (func_import): Remove the .tmp files.
11305 2005-09-01 Bruno Haible <bruno@clisp.org>
11307 * gnulib-tool (func_import): Fix handling of symbolic links.
11309 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
11311 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11312 old glibc regex code mishandles strings longer than 2**31 bytes.
11313 This patch fixes this when the regex code is used in gnulib
11314 (i.e., outside glibc).
11316 This patch should not affect the use of the regex code inside
11317 glibc. No doubt this problem also needs to be handled for glibc
11318 as well, but the result will be an incompatible change to the
11319 glibc ABI, and the old ABI will have to be supported too. That
11320 can be the the subject for another patch.
11322 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11323 governing whether the rest of this patch is active. By default,
11324 the macro is disabled and the patch has no effect.
11325 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11326 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11327 (struct re_pattern_buffer, re_search, re_search_2, re_match):
11328 (re_match_2, re_set_registers): Use the new types.
11329 * lib/regex_internal.h (Idx, re_hashval_t): New types.
11330 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11332 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11333 (re_string_context_at, bin_tree_t, re_dfastate_t):
11334 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11335 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11336 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11337 (re_string_char_size_at, re_string_wchar_at):
11338 (re_string_elem_size_at):
11339 Use the new types and macros to port to 64-bit hosts.
11340 Use unsigned types for internal values, so that the code
11341 mostly works even for arrays larger than SSIZE_MAX.
11342 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11343 (search_duplicated_node, calc_eclosure_iter, fetch_number):
11344 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11345 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11346 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11347 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11348 (calc_inveclosure, parse_dup_op, build_range_exp):
11349 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11350 (fetch_number, create_token_tree, mark_opt_subexp):
11352 * lib/regex_internal.c (re_string_construct_common,
11353 create_ci_newstate):
11354 (create_cd_newstate, re_string_allocate, re_string_construct):
11355 (re_string_realloc_buffers, build_wcs_upper_buffer):
11356 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11357 (re_string_reconstruct, re_string_peek_byte_case):
11358 (re_string_fetch_byte_case, re_string_context_at):
11359 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11360 (re_node_set_init_copy, re_node_set_add_intersect):
11361 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11362 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11363 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11364 (re_acquire_state, re_acquire_state_context, register_state):
11366 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11367 search_cur_bkref_entry):
11368 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11369 (re_search_internal, re_search_2_stub, re_search_stub)
11370 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11371 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11372 (update_cur_sifted_state, check_dst_limits):
11373 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11374 (check_subexp_limits, sift_states_bkref, merge_state_array):
11375 (check_subexp_matching_top, get_subexp, get_subexp_sub):
11376 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11377 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11378 (expand_bkref_cache, check_node_accept_bytes):
11379 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11380 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11381 (acquire_init_state_context, check_halt_node_context):
11382 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11383 (sift_states_backward, clean_state_log_if_needed):
11384 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11385 (find_recover_state, transit_state_sb, transit_state_mb):
11386 (transit_state_bkref, build_trtable, match_ctx_clean):
11388 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11389 to work around an assumption that REG_MISSING is negative.
11391 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11392 (seek_collating_symbol_entry) [defined _LIBC]:
11393 (lookup_collation_sequence_value) [defined _LIBC]:
11394 (build_range_exp, build_collating_symbol) [defined _LIBC]:
11395 Use prototypes rather than old-style function definitions.
11396 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11397 (transit_state_sb) [0]:
11398 (find_collation_sequence_value) [defined _LIBC]: Likewise.
11400 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11403 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11404 (optimize_subexps, lower_subexp):
11405 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11406 since the signed shift might overflow. Use 1u<<31 instead.
11407 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11409 * lib/regexec.c (check_dst_limits_calc_pos_1,
11410 check_subexp_matching_top): Likewise.
11412 * lib/regcomp.c (optimize_subexps, lower_subexp):
11413 Use CHAR_BIT rather than 8, for clarity.
11414 * lib/regexec.c (check_dst_limits_calc_pos_1):
11415 (check_subexp_matching_top): Likewise.
11416 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11417 have to worry about portability issues when shifting it left.
11418 Remove no-longer-needed test for table_size > 0.
11419 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11420 in a word, as the resulting behavior is undefined.
11421 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11422 in one case, a <= should have been an <, and in another case the
11423 whole test was missing.
11424 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
11425 the standard name CHAR_BIT.
11426 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11427 this is not true on one's complement and signed-magnitude hosts.
11429 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11431 (struct re_dfa_t): Remove unused member states_alloc.
11432 * lib/regcomp.c (init_dfa): Don't initialize unused members.
11434 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
11436 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11437 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
11438 and large-file glibc and in 32-bit large-file Solaris.
11440 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
11442 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11443 lengths fit in regoff_t; this isn't true if regoff_t is the same
11445 * lib/regex.c (re_search_internal): 5th arg is LAST_START
11446 (= START + RANGE) instead of RANGE. This avoids overflow
11447 problems when regoff_t is the same width as size_t.
11448 All callers changed.
11449 (re_search_2_stub): Check for overflow when adding the
11450 sizes of the two strings.
11451 (re_search_stub): Check for overflow when adding START
11452 to RANGE; if it occurs, substitute the extreme value.
11454 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
11456 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11458 2005-08-31 Jim Meyering <jim@meyering.net>
11460 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11461 a pointer-to-const.
11462 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11463 (register_state): Likewise.
11464 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11465 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11466 (group_nodes_into_DFAstates): Likewise.
11468 2005-08-31 Jim Meyering <jim@meyering.net>
11470 * check-module: Add a FIXME comment.
11472 2005-08-31 Eric Blake <ebb9@byu.net>
11474 * modules/unistd-safer (Files): Add unistd--.h.
11475 * modules/stdio-safer (Files): Add stdio--.h.
11477 2005-08-31 Derek Price <derek@ximbiot.com>
11479 * lib/getdelim.c (getdelim): Return EOF on EOF.
11480 Reported by Larry Jones <lawrence.jones@ugs.com>.
11482 2005-08-31 Bruno Haible <bruno@clisp.org>
11484 Avoid unnecessary diffs in the generated lib/Makefile.am.
11485 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11486 the generated files.
11487 (func_import): Don't set cmd.
11489 2005-08-31 Bruno Haible <bruno@clisp.org>
11491 * lib/strstr.c: Include <stddef.h>, for NULL.
11492 * lib/strcasestr.c: Likewise.
11493 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11495 2005-08-31 Bruno Haible <bruno@clisp.org>
11497 * gnulib-tool: New option --macro-prefix.
11498 (func_import): Use macro_prefix.
11499 (import): Handle option --macro-prefix.
11501 2005-08-31 Bruno Haible <bruno@clisp.org>
11503 * gnulib-tool (import): Rename most ac_* variables to cached_*.
11504 Also use new variables cached_lgpl, cached_libtool.
11506 2005-08-31 Bruno Haible <bruno@clisp.org>
11508 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11509 always instantiating them.
11511 2005-08-31 Bruno Haible <bruno@clisp.org>
11513 * gnulib-tool (func_import): Read the previous cached settings
11514 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11515 earlier added by gnulib but are now dropped. Warn when a gnulib file
11516 overwrites a non-gnulib file.
11518 2005-08-31 Bruno Haible <bruno@clisp.org>
11520 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11521 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11522 projects that don't keep autogenerated files in CVS. Put into
11523 actioncmd only the specified modules, not the transitive closure.
11525 2005-08-31 Bruno Haible <bruno@clisp.org>
11527 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11528 Create directories that shall be filled.
11529 (import): Don't look for gl_* macros in configure.ac. Recurse across
11530 all directories containing a gnulib-cache.m4 files, if meaningful.
11532 2005-08-31 Bruno Haible <bruno@clisp.org>
11534 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11535 (import): Set seen_libtool when we see gl_LIBTOOL.
11537 2005-08-31 Bruno Haible <bruno@clisp.org>
11539 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11540 declaration macro definitions from generated gnulib.m4.
11542 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
11544 * lib/iconvme.h: Add prototype for iconv_alloc.
11546 2005-08-29 Simon Josefsson <jas@extundo.com>
11548 * lib/iconvme.c: Fix errno.
11550 2005-08-29 Bruno Haible <bruno@clisp.org>
11552 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11553 that it works when the directory contains spaces.
11555 2005-08-29 Bruno Haible <bruno@clisp.org>
11557 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11559 2005-08-29 Bruno Haible <bruno@clisp.org>
11561 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11564 2005-08-29 Bruno Haible <bruno@clisp.org>
11565 and Stepan Kasal <kasal@ucw.cz>
11567 * check-module: If more parameters are given, check each of them
11568 separately; add more exceptions, as noted by Jim Meyering.
11569 (check_module): New procedure.
11570 (%exempt_header): Now contains all exceptions.
11572 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
11574 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11576 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
11578 * lib/iconvme.c: Split iconv_string into iconv_alloc.
11580 2005-08-28 Bruno Haible <bruno@clisp.org>
11582 * m4/gnulib-tool.m4: New file.
11584 2005-08-27 Jim Meyering <jim@meyering.net>
11586 * modules/unistd-safer (Files): Add pipe-safer.c.
11587 * modules/fcntl-safer (Files): Add creat-safer.c.
11589 2005-08-27 Jim Meyering <jim@meyering.net>
11591 * m4/stdlib-safer.m4: New file. From coreutils.
11592 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11593 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11594 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11595 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11596 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11598 2005-08-27 Jim Meyering <jim@meyering.net>
11600 * lib/fopen-safer.c: Merge minor changes from coreutils.
11601 * lib/dup-safer.c: Likewise.
11602 * lib/fd-safer.c: Likewise.
11604 Merge from coreutils.
11605 * lib/stdio--.h: New file.
11606 * lib/stdlib--.h: New file.
11607 * lib/mkstemp-safer.c: New file.
11609 GNU tar needs these.
11610 * lib/pipe-safer.c: New file.
11611 * lib/creat-safer.c: New file.
11612 * lib/fcntl--.h (creat): Define to creat_safer.
11613 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11614 * lib/unistd--.h (pipe): Define to pipe_safer.
11615 * lib/unistd-safer.h: Declare pipe_safer.
11617 2005-08-26 Simon Josefsson <jas@extundo.com>
11619 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11620 Haible <bruno@clisp.org>.
11622 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
11624 * lib/regex_internal.h: Remove all references to
11625 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11627 (bitset_not, bitset_merge, bitset_not_merge):
11628 (bitset_mask, re_string_allocate, re_string_construct):
11629 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11630 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11631 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11632 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11633 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11634 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11635 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11636 (re_acquire_state_context):
11637 Remove unnecessary forward decls.
11638 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11639 Put __attribute at function definition,
11640 now that the function decl has been removed.
11641 * lib/regex_internal.c (re_string_peek_byte_case):
11642 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11645 2005-08-25 Stepan Kasal <kasal@ucw.cz>
11647 * m4/regex.m4: Add AC_PREREQ(2.50).
11648 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11650 2005-08-25 Simon Josefsson <jas@extundo.com>
11652 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11655 2005-08-25 Simon Josefsson <jas@extundo.com>
11657 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
11658 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
11659 GLIBC specific code.
11661 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
11663 Make regex safe for g++. This fixes one real bug (an "err"
11664 that should have been "*err"). g++ problem reported by
11666 * lib/regex_internal.h (re_calloc): New macro, consistent with
11667 re_malloc etc. All callers of calloc changed to use re_calloc.
11668 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
11669 not int. All callers changed.
11670 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
11671 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
11672 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
11673 (find_recover_state): Change "err" to "*err"; this fixes what
11674 appears to be a real bug.
11675 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
11678 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
11680 * modules/regex (Depends-on): Add malloc, since the code
11681 assumes that !malloc(0) means failure.
11683 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
11685 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
11687 alloca modernization/simplification for regex.
11688 * lib/regex.c: Remove portability cruft for alloca. This no longer
11689 needs to be at the start of the file, and can be moved into
11690 regex_internal.h and simplified.
11691 * lib/regex_internal.h: Include <alloca.h>.
11692 (__libc_use_alloca) [!defined _LIBC]: New macro.
11693 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
11694 now works outside glibc.
11696 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
11698 * config/srclist.txt: Add glibc bugs 1241, 1245.
11700 2005-08-25 Jim Meyering <jim@meyering.net>
11702 * lib/open-safer.c: Include <config.h>.
11703 Otherwise, we'd lose LARGEFILE support in any file using
11706 2005-08-25 Bruno Haible <bruno@clisp.org>
11708 * m4/minmax.m4: Require autoconf 2.52.
11709 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
11710 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
11711 alternatives of translit over the alphabet.
11712 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
11714 2005-08-24 Simon Josefsson <jas@extundo.com>
11716 * tests/test-getpass.c: New file.
11718 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
11720 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
11721 for GNU regex features.
11723 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
11725 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
11726 * lib/regex.h (regerror): Likewise.
11728 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
11729 requires this. (The code never needed it.)
11731 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
11732 All uses of recently-renamed identifiers changed to use the new,
11733 POSIX-compliant names. The code will build and run just fine
11734 without these changes, but it's better to eat our own dog food
11735 and use the standard-conforming names.
11737 * lib/regex.h: Fix a multitude of POSIX name space violations.
11738 These changes have an effect only for programs that define
11739 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
11740 do not change anything for programs compiled in the normal way.
11741 Also, there is no effect on the ABI.
11743 (_REGEX_SOURCE): New macro.
11744 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
11745 defined and _GNU_SOURCE is not; this fixes a name space violation.
11747 Rename the following macros to obey POSIX requirements.
11748 The old names are still visible as macros if _REGEX_SOURCE is defined.
11749 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
11750 RE_BACKSLASH_ESCAPE_IN_LISTS.
11751 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
11752 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
11753 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
11754 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
11755 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
11756 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
11757 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
11758 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
11759 (REG_INTERVALS): renamed from RE_INTERVALS.
11760 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
11761 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
11762 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
11763 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
11764 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
11765 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
11766 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
11767 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
11768 RE_UNMATCHED_RIGHT_PAREN_ORD.
11769 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
11770 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
11771 (REG_DEBUG): renamed from RE_DEBUG.
11772 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
11773 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
11774 unusual, since we can't clash with the POSIX REG_ICASE.
11775 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
11776 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
11777 (REG_NO_SUB): renamed from RE_NO_SUB.
11778 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11779 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11780 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11781 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11782 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11783 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11784 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11785 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11786 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11787 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11788 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11789 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11790 RE_SYNTAX_POSIX_MINIMAL_BASIC.
11791 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11792 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11793 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11794 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
11795 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11796 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11797 (REG_FIXED): Renamed from REGS_FIXED.
11798 (REG_NREGS): Renamed from RE_NREGS.
11800 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11801 of other REG_* macros, since POSIX says the user is allowed to
11802 #undef these macros selectively.
11804 (reg_errcode_t): Update comment stating what other tables need
11807 Rename the following enum values to obey POSIX requirements.
11808 The old names are still visible as macros.
11809 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
11810 is not defined, since GNU is supposed to be a superset of POSIX as
11811 much as possible, and since we want reg_errcode_t to be a signed
11812 type for implementation consistency.
11813 (_REG_NOERROR): Renamed from REG_NOERROR.
11814 (_REG_NOMATCH): Renamed from REG_NOMATCH.
11815 (_REG_BADPAT): Renamed from REG_BADPAT.
11816 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11817 (_REG_ECTYPE): Renamed from REG_ECTYPE.
11818 (_REG_EESCAPE): Renamed from REG_EESCAPE.
11819 (_REG_ESUBREG): Renamed from REG_ESUBREG.
11820 (_REG_EBRACK): Renamed from REG_EBRACK.
11821 (_REG_EPAREN): Renamed from REG_EPAREN.
11822 (_REG_EBRACE): Renamed from REG_EBRACE.
11823 (_REG_BADBR): Renamed from REG_BADBR.
11824 (_REG_ERANGE): Renamed from REG_ERANGE.
11825 (_REG_ESPACE): Renamed from REG_ESPACE.
11826 (_REG_BADRPT): Renamed from REG_BADRPT.
11827 (_REG_EEND): Renamed from REG_EEND.
11828 (_REG_ESIZE): Renamed from REG_ESIZE.
11829 (_REG_ERPAREN): Renamed from REG_ERPAREN.
11830 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11831 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11832 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11833 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11835 (_REG_RE_NAME, _REG_RM_NAME): New macros.
11836 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
11837 changed. But support the old name if the new one is not defined
11838 and if _REGEX_SOURCE.
11840 Change the following member names in struct re_pattern_buffer.
11841 The old names are still supported if !_REGEX_SOURCE.
11842 The new names are always supported, regardless of _REGEX_SOURCE.
11843 (re_buffer): Renamed from buffer.
11844 (re_allocated): Renamed from allocated.
11845 (re_used): Renamed from used.
11846 (re_syntax): Renamed from syntax.
11847 (re_fastmap): Renamed from fastmap.
11848 (re_translate): Renamed from translate.
11849 (re_can_be_null): Renamed from can_be_null.
11850 (re_regs_allocated): Renamed from regs_allocated.
11851 (re_fastmap_accurate): Renamed from fastmap_accurate.
11852 (re_no_sub): Renamed from no_sub.
11853 (re_not_bol): Renamed from not_bol.
11854 (re_not_eol): Renamed from not_eol.
11855 (re_newline_anchor): Renamed from newline_anchor.
11857 Change the following member names in struct re_registers.
11858 The old names are still supported if !_REGEX_SOURCE.
11859 The new names are always supported, regardless of _REGEX_SOURCE.
11860 (rm_num_regs): Renamed from num_regs.
11861 (rm_start): Renamed from start.
11862 (rm_end): Renamed from end.
11864 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
11865 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
11866 Prepend __ to parameter names.
11868 Undo yesterday's changes.
11870 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
11872 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
11873 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
11876 2005-08-24 Jim Meyering <jim@meyering.net>
11878 Sync from coreutils.
11879 * m4/fcntl-safer.m4: New file.
11881 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
11882 and object files for this module.
11884 2005-08-24 Jim Meyering <jim@meyering.net>
11886 Sync from coreutils.
11887 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
11889 2005-08-24 Jim Meyering <jim@meyering.net>
11891 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
11892 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
11894 2005-08-24 Jim Meyering <jim@meyering.net>
11896 * modules/fcntl-safer: New module.
11897 * modules/fts (Depends-on): Add fcntl-safer.
11898 * MODULES.html.sh (File descriptor based Input/Output):
11901 2005-08-24 Bruno Haible <bruno@clisp.org>
11903 Support for unit test modules.
11904 * modules/README: Mention tests modules.
11905 * modules/TEMPLATE-TESTS: New file.
11906 * gnulib-tool: New options --extract-tests-module, --with-tests and
11907 --tests-base (unused for the moment).
11908 (testsbase, inctests): New variables.
11909 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
11910 (func_verify_module): Exclude TEMPLATE-TESTS.
11911 (func_verify_nontests_module, func_verify_tests_module): New functions.
11912 (func_get_dependencies): Add implicit dependency for tests modules.
11913 (func_get_tests_module): New function.
11914 (func_modules_transitive_closure): When --with-tests was specified,
11915 include the unit tests as well, unless explicitly avoided.
11916 (func_emit_lib_Makefile_am): Ignore the tests modules here.
11917 (func_emit_tests_Makefile_am): New function.
11918 (func_create_testdir): When --with-tests was specified, emit a
11920 * MODULES.html.sh (Future developments): Update.
11922 2005-08-24 Bruno Haible <bruno@clisp.org>
11924 * modules/tls-tests: New file.
11925 * tests/test-tls.c: New file, from GNU gettext.
11927 2005-08-24 Bruno Haible <bruno@clisp.org>
11929 * modules/lock-tests: New file.
11930 * tests/test-lock.c: New file, from GNU gettext.
11932 2005-08-24 Bruno Haible <bruno@clisp.org>
11934 * lib/lock.h: Add multiple inclusion guard.
11935 * lib/tls.h: Add multiple inclusion guard.
11937 2005-08-24 Bruno Haible <bruno@clisp.org>
11939 * gnulib-tool: Add support for the --aux-dir option to
11940 --create-testdir, --create-megatestdir, --test, --megatest.
11941 (func_create_testdir, func_create_megatestdir): Optionally emit a
11942 AC_CONFIG_AUX_DIR directive.
11943 (create-testdir, create-megatestdir, test, megatest): Provide a
11944 default value for $auxdir.
11946 2005-08-24 Bruno Haible <bruno@clisp.org>
11948 * gnulib-tool (import): Use compound statement instead of subshell
11951 2005-08-24 Bruno Haible <bruno@clisp.org>
11953 * gnulib-tool (import): Change --aux-dir default to "build-aux".
11955 2005-08-24 Bruno Haible <bruno@clisp.org>
11957 * gnulib-tool (func_version): Update.
11959 2005-08-24 Bruno Haible <bruno@clisp.org>
11961 * gnulib-tool (func_import, func_create_testdir,
11962 func_create_megatestdir): Quote all autoconf macro arguments.
11964 2005-08-24 Bruno Haible <bruno@clisp.org>
11966 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
11967 option --force, because --force causes the aclocal.m4 of each
11968 subdirectory to be newer than the corresponding config.h.in.
11970 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
11972 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
11973 All contents moved to gl_REGEX.
11974 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
11975 assume that it does.
11977 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
11979 * lib/regex.h (REG_NOSYS)
11980 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
11981 Define, since POSIX requires it as of 2001.
11983 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
11984 New private symbol, used to keep the enum signed in all cases.
11985 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
11987 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
11989 * lib/regex_internal.c (re_string_skip_chars, register_state):
11991 Remove forward decls; no longer needed now that we use prototypes.
11992 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
11993 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
11994 (clean_state_log_if_needed): Likewise.
11996 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
11998 * config/srclist.txt: Add glibc bugs 1231-1233.
12000 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
12002 Fix problems reported by Sam Steingold in
12003 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12004 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12005 assumed that reg_errcode_t is a signed type, which is not
12006 necessarily true if _XOPEN_SOURCE is not defined.
12007 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12008 since some compilers warn about it otherwise.
12010 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
12012 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12013 (init_word_char, create_initial_state, duplicate_node_closure):
12014 (fetch_token, peek_token_bracket, build_range_exp):
12015 (build_collating_symbol): Remove forward decls; no longer needed
12016 now that we use prototypes.
12019 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12020 (re_compile_fastmap_iter, regcomp, regerror, regfree):
12021 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12022 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12023 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12024 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12025 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12026 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12027 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12028 (build_range_exp, build_collating_symbol, parse_bracket_exp):
12029 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12030 (build_charclass, build_charclass_op, fetch_number, create_tree):
12031 (create_token_tree, mark_opt_subexp, duplicate_tree):
12032 Use prototypes rather than old-style definitions.
12034 * lib/regex_internal.c:
12035 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12036 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12037 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12038 (re_string_reconstruct, re_string_peek_byte_case):
12039 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12040 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12041 (re_node_set_init_copy, re_node_set_add_intersect):
12042 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12043 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12044 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12045 (re_acquire_state, re_acquire_state_context, register_state):
12046 (create_ci_newstate, create_cd_newstate, free_state):
12048 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12050 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12051 (re_search_internal, prune_impossible_nodes):
12052 (acquire_init_state_context, check_matching, static):
12053 (check_halt_node_context, check_halt_state_context, proceed_next_node):
12054 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12055 (update_regs, sift_states_backward, build_sifted_states):
12056 (clean_state_log_if_needed, merge_state_array):
12057 (update_cur_sifted_state, add_epsilon_src_nodes):
12058 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12059 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12060 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12061 (find_recover_state, check_subexp_matching_top, transit_state_mb):
12062 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12063 (check_arrival, check_arrival_add_next_nodes):
12064 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12065 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12066 (check_node_accept_bytes, check_node_accept, extend_buffers):
12067 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12068 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12072 * lib/regex_internal.h:
12073 (re_string_allocate, re_string_construct, re_string_reconstruct):
12074 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12075 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12076 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12077 (re_string_context_at, re_string_peek_byte_case):
12078 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12079 is defined, since we now use prototypes always.
12081 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
12082 C89 or better. All uses removed.
12084 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
12086 * config/srclist.txt: Add glibc bugs 1220-1227.
12088 2005-08-20 Jim Meyering <jim@meyering.net>
12090 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12091 of unused local, dfa.
12093 2005-08-20 Bruno Haible <bruno@clisp.org>
12095 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12097 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
12099 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12100 (re_node_set_insert_last, re_dfa_add_node):
12101 Rename local variables to avoid GCC shadowing warnings.
12103 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
12105 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12106 [defined lint]: Suppress bogus uninitialized-variable warnings.
12108 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12109 and let the caller return REG_ESPACE if out of space. This
12110 removes an uninitialied-variable warning with GCC 4.0.1, and also
12111 avoids taking the address of a local variable. All callers
12114 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
12116 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12117 $LIBCSRC/posix/regexec.c.
12118 Add glibc bug 1217 for regcomp.c.
12120 2005-08-19 Jim Meyering <jim@meyering.net>
12122 * lib/regexec.c (proceed_next_node): Redo local variables to
12123 avoid GCC shadowing warnings.
12125 2005-08-18 Bruno Haible <bruno@clisp.org>
12127 * lib/strstr.c (strstr): Fix return value in multibyte case.
12128 * lib/strcasestr.c (strcasestr): Likewise.
12130 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
12132 * lib/regex.h: Remove useless space-before-tab. From coreutils.
12134 2005-08-17 Jim Meyering <jim@meyering.net>
12136 Make the %s format (seconds since the epoch) work for a negative
12137 number and when used with a zero-padded field width, e.g. %015s.
12139 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12140 label so that it precedes the code to set `digits'. Otherwise,
12141 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
12142 print `00-22'. Now, it prints `-0022', as it should.
12144 2005-08-17 Bruno Haible <bruno@clisp.org>
12146 * modules/strstr (Files): Add m4/mbrtowc.m4.
12147 (Depends-on): Add mbuiter.
12149 2005-08-17 Bruno Haible <bruno@clisp.org>
12151 * modules/strcasestr: New file.
12152 * MODULES.html.sh (String handling, based on ANSI C 89): Add
12155 2005-08-17 Bruno Haible <bruno@clisp.org>
12157 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12159 2005-08-17 Bruno Haible <bruno@clisp.org>
12161 * modules/mbuiter: New file.
12162 * MODULES.html.sh (Extended multibyte and wide character utilities):
12165 2005-08-17 Bruno Haible <bruno@clisp.org>
12167 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12168 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12170 2005-08-17 Bruno Haible <bruno@clisp.org>
12172 * m4/strcasestr.m4: New file.
12174 2005-08-17 Bruno Haible <bruno@clisp.org>
12176 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12177 * lib/strstr.c: Completely rewritten, with multibyte locale support.
12179 2005-08-17 Bruno Haible <bruno@clisp.org>
12181 * lib/strcasestr.h: New file.
12182 * lib/strcasestr.c: New file.
12184 2005-08-17 Bruno Haible <bruno@clisp.org>
12186 * lib/strcasecmp.c: Use mbuiter.h.
12188 2005-08-17 Bruno Haible <bruno@clisp.org>
12190 * lib/mbuiter.h: New file.
12192 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
12194 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12195 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
12196 and gl_GETOPT are both invoked via different paths (as happens
12197 with GNU tar CVS because it uses both argp and getopt), the former
12200 2005-08-16 Bruno Haible <bruno@clisp.org>
12202 * modules/tls: New file.
12203 * MODULES.html.sh (Multithreading): Add tls.
12205 2005-08-16 Bruno Haible <bruno@clisp.org>
12207 * modules/strnlen1: New file.
12208 * MODULES.html.sh (String handling): Add strnlen1.
12210 2005-08-16 Bruno Haible <bruno@clisp.org>
12212 * modules/strcase (Files): Add m4/mbrtowc.m4.
12213 (Depends-on): Add strnlen1, mbchar.
12215 2005-08-16 Bruno Haible <bruno@clisp.org>
12217 * modules/mbiter: New file.
12218 * MODULES.html.sh (Extended multibyte and wide character utilities):
12221 2005-08-16 Bruno Haible <bruno@clisp.org>
12223 * modules/mbfile: New file.
12224 * MODULES.html.sh (Extended multibyte and wide character utilities):
12227 2005-08-16 Bruno Haible <bruno@clisp.org>
12229 * modules/mbchar: New file.
12230 * MODULES.html.sh (Extended multibyte and wide character utilities):
12233 2005-08-16 Bruno Haible <bruno@clisp.org>
12235 * m4/tls.m4: New file, from GNU gettext.
12237 2005-08-16 Bruno Haible <bruno@clisp.org>
12239 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12241 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12243 2005-08-16 Bruno Haible <bruno@clisp.org>
12245 * m4/mbiter.m4: New file.
12247 2005-08-16 Bruno Haible <bruno@clisp.org>
12249 * m4/mbfile.m4: New file.
12251 2005-08-16 Bruno Haible <bruno@clisp.org>
12253 * m4/mbchar.m4: New file.
12255 2005-08-16 Bruno Haible <bruno@clisp.org>
12257 * lib/tls.h: New file, from GNU gettext.
12258 * lib/tls.c: New file, from GNU gettext.
12260 2005-08-16 Bruno Haible <bruno@clisp.org>
12262 * lib/strnlen1.h: New file.
12263 * lib/strnlen1.c: New file.
12265 2005-08-16 Bruno Haible <bruno@clisp.org>
12267 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12268 (mbi_init): Update.
12269 (mbi_avail, mbi_advance): Let the iteration end before the terminating
12270 NUL byte, not after it.
12272 2005-08-16 Bruno Haible <bruno@clisp.org>
12274 * lib/strcase.h (strcasecmp): Add note in comments.
12275 * lib/strncasecmp.c: Use code from strcasecmp.c.
12276 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12277 (strcasecmp): Work correctly in multibyte locales.
12279 2005-08-16 Bruno Haible <bruno@clisp.org>
12281 * lib/mbiter.h: New file.
12283 2005-08-16 Bruno Haible <bruno@clisp.org>
12285 * lib/mbfile.h: New file.
12287 2005-08-16 Bruno Haible <bruno@clisp.org>
12289 * lib/mbchar.h: New file.
12290 * lib/mbchar.c: New file.
12292 2005-08-16 Bruno Haible <bruno@clisp.org>
12294 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12295 the valid ones. Makes the comparison operations transitive:
12296 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12297 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12299 2005-08-15 Simon Josefsson <jas@extundo.com>
12301 * modules/ssize_t (License): Change to 'unlimited'.
12303 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12305 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
12307 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12308 Add comments for each pending glibc patch.
12310 2005-08-15 Bruno Haible <bruno@clisp.org>
12312 * lib/regex.h (__restrict_arr): Don't define to __restrict if
12313 __cplusplus is defined.
12315 2005-08-14 Jim Meyering <jim@meyering.net>
12317 Sync from coreutils.
12319 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12320 Use the hash-table-based cycle-detection code not just when
12321 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12322 Reported by James Youngman in
12323 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12324 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12325 FTS_TIGHT_CYCLE_CHECK.
12326 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12327 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12329 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12330 * lib/fts.c (fd_safer): Remove decl.
12331 Include fcntl--.h rather than unistd-safer.h
12332 (fts_safe_changedir): Don't call fd_safer; no longer needed
12333 now that we include fcntl--.h.
12335 2005-08-12 Simon Josefsson <jas@extundo.com>
12337 * modules/getndelim2: Use ssize_t module.
12338 * modules/getnline: Likewise.
12339 * modules/safe-read: Likewise.
12340 * modules/xreadlink: Likewise.
12342 * modules/ssize_t: New file.
12344 2005-08-12 Simon Josefsson <jas@extundo.com>
12346 * m4/readline.m4: Look for termcap, curses or ncurses if required.
12348 2005-08-12 Simon Josefsson <jas@extundo.com>
12350 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12353 2005-08-12 Simon Josefsson <jas@extundo.com>
12355 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12356 readline, getdelim and check_version.
12357 (Support for systems lacking ISO C 99: Sizes of integer types):
12360 2005-08-12 Bruno Haible <bruno@clisp.org>
12362 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12364 2005-08-11 Simon Josefsson <jas@extundo.com>
12366 * modules/readline: New file.
12368 * modules/strnlen (Files): Add strnlen.h.
12370 2005-08-11 Simon Josefsson <jas@extundo.com>
12372 * m4/readline.m4: New file.
12374 2005-08-11 Simon Josefsson <jas@extundo.com>
12376 * lib/readline.h, readline.c: New file.
12378 2005-08-11 Simon Josefsson <jas@extundo.com>
12380 * doc/gnulib.texi (Initial import, Finishing touches): Mention
12383 2005-08-11 Bruno Haible <bruno@clisp.org>
12385 * lib/strnlen.h (strnlen): Change parameter name to match comment.
12387 2005-08-10 Stepan Kasal <kasal@ucw.cz>
12389 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12391 2005-08-10 Simon Josefsson <jas@extundo.com>
12393 * tests/test-iconvme.c: New file.
12395 2005-08-10 Simon Josefsson <jas@extundo.com>
12397 * m4/strnlen.m4: New file.
12399 * m4/strndup.m4: Don't check for strnlen declaration, done in
12402 2005-08-10 Simon Josefsson <jas@extundo.com>
12404 * lib/strndup.c: Use strnlen.h.
12406 * lib/strnlen.h: New file.
12408 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
12412 2005-08-02 Simon Josefsson <jas@extundo.com>
12414 * modules/readline: New file.
12416 2005-08-02 Simon Josefsson <jas@extundo.com>
12418 * modules/getdelim: New file.
12420 * modules/getline: Rewrite, don't use getndelim2.
12422 2005-08-02 Simon Josefsson <jas@extundo.com>
12424 * m4/getline.m4: Separate out getdelim stuff into separate module.
12426 * m4/getdelim.m4: New file.
12428 2005-08-02 Simon Josefsson <jas@extundo.com>
12430 * lib/getline.h, getline.c: Rewrite.
12432 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12434 2005-07-31 Bruno Haible <bruno@clisp.org>
12436 * lib/lock.h (gl_lock_initializer): New macro.
12437 (gl_lock_define_initialized): Use it.
12438 (gl_rwlock_initializer): New macro.
12439 (gl_rwlock_define_initialized): Use it.
12440 (gl_recursive_lock_initializer): New macro.
12441 (gl_recursive_lock_define_initialized): Use it.
12443 2005-07-30 Karl Berry <karl@gnu.org>
12445 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12446 Report from Ben Pfaff, regarding getopt.
12448 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
12450 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12452 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12453 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
12454 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12455 (gl_GETOPT): Use the new macros. Most of the implementation
12456 is moved to the new macros. This is for programs like Emacs
12457 that don't want all the functionality of gl_GETOPT.
12459 2005-07-26 Bruno Haible <bruno@clisp.org>
12461 * m4/lock.m4: Update from GNU gettext.
12463 2005-07-26 Bruno Haible <bruno@clisp.org>
12465 * lib/lock.h: Update from GNU gettext.
12466 * lib/lock.c: Update from GNU gettext.
12468 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
12470 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12471 obsolescent AC_TRY_RUN. Include the default includes files, for
12474 2005-07-24 Bruno Haible <bruno@clisp.org>
12476 * modules/visibility: New file.
12477 * MODULES.html.sh (Misc): Add visibility.
12479 2005-07-24 Bruno Haible <bruno@clisp.org>
12481 * m4/visibility.m4: New file.
12483 2005-07-24 Bruno Haible <bruno@clisp.org>
12485 * doc/visibility.texi: New file.
12487 2005-07-22 Bruno Haible <bruno@clisp.org>
12489 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12490 $(ALLOCA_H), redundant through BUILT_SOURCES.
12491 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12492 redundant through BUILT_SOURCES.
12493 * modules/byteswap (Makefile.am): Remove explicit dependency on
12494 $(BYTESWAP_H), redundant through BUILT_SOURCES.
12495 * modules/fnmatch (Makefile.am): Remove explicit dependency on
12496 $(FNMATCH_H), redundant through BUILT_SOURCES.
12497 * modules/getopt (Makefile.am): Remove explicit dependency on
12498 $(GETOPT_H), redundant through BUILT_SOURCES.
12499 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12500 redundant through BUILT_SOURCES.
12501 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12502 redundant through BUILT_SOURCES.
12503 * modules/stdbool (Makefile.am): Remove explicit dependency on
12504 $(STDBOOL_H), redundant through BUILT_SOURCES.
12505 * modules/stdint (Makefile.am): Remove explicit dependency on
12506 $(STDINT_H), redundant through BUILT_SOURCES.
12507 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12508 Remove explicit dependency on $(SYSEXITS_H).
12509 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12511 2005-07-18 Simon Josefsson <jas@extundo.com>
12513 * lib/check-version.c (check_version): Accept identical versions too.
12515 2005-07-18 Bruno Haible <bruno@clisp.org>
12517 * modules/lock: New file.
12518 * MODULES.html.sh (Multithreading): New section.
12520 2005-07-18 Bruno Haible <bruno@clisp.org>
12522 * m4/lock.m4: New file, from GNU gettext.
12524 2005-07-18 Bruno Haible <bruno@clisp.org>
12526 * lib/lock.h: New file, from GNU gettext.
12527 * lib/lock.c: New file, from GNU gettext.
12529 2005-07-18 Bruno Haible <bruno@clisp.org>
12531 * lib/lock.h (gl_once_t): New type.
12532 (gl_once_define, gl_once): New macros.
12533 * lib/lock.c (fresh_once): New variable.
12534 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12537 2005-07-16 Simon Josefsson <jas@extundo.com>
12539 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12540 workaround, suggested by Bruno.
12542 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
12544 * modules/xalloc (Depends-on): Add xalloc-die.
12545 * modules/xvasprintf (Depends-on): Add xalloc-die.
12547 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
12549 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12550 with a minor change.
12552 2005-07-15 Bruno Haible <bruno@clisp.org>
12554 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12555 When using lib/poll.c, define poll as rpl_poll.
12557 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
12559 * modules/argp (Depends-on): Remove unlocked-io.
12561 2005-07-14 Derek Price <derek@ximbiot.com>
12563 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
12564 for glob symlink bug.
12566 2005-07-14 Bruno Haible <bruno@clisp.org>
12568 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12569 Instead, test for *_unlocked function declarations directly.
12571 2005-07-11 Simon Josefsson <jas@extundo.com>
12573 * modules/size_max: New file.
12575 * modules/xsize: Depend on size_max module for size_max.m4.
12577 2005-07-11 Simon Josefsson <jas@extundo.com>
12579 * lib/size_max.h: New file.
12581 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
12583 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12584 copyright symbol and the year.
12585 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12586 (version_etc_va): Use parameterized copyright notice.
12587 Reword to conform to the current GNU coding standards.
12589 2005-07-11 Karl Berry <karl@gnu.org>
12591 * doc/gnulib.texi (Quoting): new node.
12592 (Initial import): more info, from Patrice.
12594 2005-07-11 Bruno Haible <bruno@clisp.org>
12596 * gnulib-tool (func_usage): Document option --avoid.
12597 (Command line options): Handle --avoid.
12598 (func_acceptable): New function.
12599 (func_modules_transitive_closure): Use it.
12601 2005-07-11 Bruno Haible <bruno@clisp.org>
12603 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12604 Reported by Jim Meyering.
12606 2005-07-10 Bruno Haible <bruno@clisp.org>
12608 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12609 Needed when size_t is smaller than 'unsigned int'.
12610 Reported by Paul Eggert.
12612 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
12614 * modules/argp (Depends-on): Add unlocked-io
12616 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
12618 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12621 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
12623 * config/srclist.txt: Comment out regcomp.c, since we have a porting
12626 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
12627 and Paul Eggert <eggert@cs.ucla.edu>
12629 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12630 in wint_t, not wchar_t. Remove now-unnecessary cast.
12632 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
12634 * modules/regex (Files): Add lib/regex_internal.c,
12635 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12636 (Depends-on): Add extensions.
12637 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12639 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
12641 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12643 * m4/same.m4 (gl_SAME): Likewise.
12644 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12646 * m4/regex.m4: Adjust to new libc regex implementation.
12647 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12648 all the .c and .h parts of (the new) regex.
12649 Quote the m4 stuff better.
12650 Check for RE_ICASE bug of old gnulib.
12651 Check for REG_STARTEND of recent libc.
12652 Rename local variables from jm_* to gl_*.
12653 Quote operand of "test -f".
12654 Say "recent enough" version of libc, not "version 2".
12655 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12656 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
12657 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12658 Remove check for btowc, isascii.
12659 Require AM_LANGINFO_CODESET.
12661 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
12663 * lib/regex.c, regex.h: Sync from libc.
12664 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12666 New files, synced from libc, except that regex_internal.h
12667 currently has a small porting fix.
12669 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
12671 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
12672 regex_internal.c, regexec.c.
12673 Add regex_internal.h too, but as a comment, since the libc version
12674 is currently broken in gnulib mode.
12676 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
12678 Support programs like Emacs that use gnulib but not gettext.
12679 * MODULES.html.sh (Internationalization functions): Add gettext-h.
12680 * modules/gettext-h: New file.
12681 * modules/gettext (Files): Remove lib/gettext.h.
12682 (Depends-on): Add gettext-h.
12683 (Makefile.am): Remove lib_SOURCES.
12684 * modules/argmatch, modules/c-stack, modules/closeout:
12685 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
12686 * modules/execute, modules/file-type, modules/getaddrinfo:
12687 * modules/getopt, modules/human, modules/javacomp:
12688 * modules/javaexec, modules/mkdir-p, modules/obstack:
12689 * modules/openat, modules/pagealign_alloc, modules/pipe:
12690 * modules/quotearg, modules/regex, modules/rpmatch:
12691 * modules/unicodeio, modules/userspec, modules/version-etc:
12692 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
12694 Depend on gettext-h, not gettext.
12696 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
12698 * gnulib-tool (func_import): Add support for 'public domain' license.
12699 * modules/alloca, modules/atexit, modules/memmove:
12700 Now public domain, not GPL.
12701 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
12702 * modules/realloc, modules/strerror, modules/strtod:
12705 2005-07-05 Bruno Haible <bruno@clisp.org>
12707 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
12708 autoconf CVS. Needed for mingw.
12710 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
12712 Remove the dependency of the strftime module on the tzset module.
12713 * modules/strftime (Depends-on): Remove dependency on tzset.
12715 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
12717 Remove the dependency of the strftime module on the tzset module.
12718 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
12719 gl_FUNC_TZSET_CLOBBER.
12721 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
12723 Remove the dependency of the strftime module on the tzset module.
12724 * lib/strftime.c (my_strftime)
12725 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
12726 Copy the input structure, to work around some of the bug with
12727 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
12728 Solaris releases, you should also use the tzset module, but we won't
12729 require it as a dependency any more since we don't want LGPLed code
12730 to depend on GPLed code.
12732 2005-07-02 Jim Meyering <jim@meyering.net>
12734 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
12735 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
12736 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
12737 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
12739 2005-07-02 Jim Meyering <jim@meyering.net>
12741 * lib/backupfile.c (backup_args): Change a `0' to NULL.
12743 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
12745 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
12746 declares only 'struct timespec;' (!).
12748 2005-07-01 Jim Meyering <jim@meyering.net>
12750 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
12751 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
12752 * lib/save-cwd.c, tempname.c:
12753 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12754 and don't include <sys/file.h>).
12756 2005-06-29 Jim Meyering <jim@meyering.net>
12758 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
12759 type name. Use the variable name instead.
12760 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
12763 2005-06-28 Simon Josefsson <jas@extundo.com>
12765 * modules/check-version (Files): Add check-version.m4.
12767 2005-06-28 Simon Josefsson <jas@extundo.com>
12769 * m4/check-version.m4: New file, suggested by Jim Meyering
12770 <jim@meyering.net>.
12772 2005-06-28 Simon Josefsson <jas@extundo.com>
12774 * lib/check-version.h, lib/check-version.c: New files.
12776 2005-06-28 Simon Josefsson <jas@extundo.com>
12778 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
12779 collision with global variable. Better indentation. Don't
12780 increment buffer pointer beyond buffer end. Based on comments
12781 from Paul Eggert <eggert@cs.ucla.edu>.
12783 * lib/base64.h: Indent.
12785 2005-06-28 Simon Josefsson <jas@extundo.com>
12787 * doc/gnulib.texi (Library version handling): New section.
12789 2005-06-28 Jim Meyering <jim@meyering.net>
12791 * check-module (find_included_lib_files): Hard-code another
12792 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12793 but modules/fts-lgpl (correctly) does not list those files.
12795 * modules/canonicalize (Files): Add lib/pathmax.h.
12797 2005-06-25 Simon Josefsson <jas@extundo.com>
12799 * modules/check-version: New file.
12801 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
12803 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12804 initializer of struct addrinfo, as an indication that we don't
12805 care how many members the structure has.
12807 2005-06-24 Derek Price <derek@ximbiot.com>
12808 and Bruno Haible <bruno@clisp.org>
12810 Remove stat module & update lstat.
12811 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12812 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12813 * m4/stat.m4: Remove this file.
12815 2005-06-24 Derek Price <derek@ximbiot.com>
12816 and Bruno Haible <bruno@clisp.org>
12818 Remove stat module & update lstat.
12819 * lib/stat.c: Remove this file...
12820 (slash_aware_lstat): ...moving this content and its support...
12821 * lib/lstat.c (rpl_lstat): ...into here.
12822 * lib/lstat.h: New file.
12824 2005-06-24 Derek Price <derek@ximbiot.com>
12825 and Bruno Haible <bruno@clisp.org>
12827 Remove stat module & update lstat.
12828 * config/srclist.txt (libc sources): Remove stat.
12830 2005-06-24 Derek Price <derek@ximbiot.com>
12831 and Bruno Haible <bruno@clisp.org>
12833 Remove stat module & update lstat.
12834 * MODULES.html.sh (stat): Remove.
12835 * MODULES.html: Regenerated.
12836 * modules/lstat (Description): Correct function name.
12837 (Files): Add "lstat.h".
12838 (Depends-on): Remove stat, add xalloc, stat-macros.
12839 * modules/stat: Remove this file.
12840 (Include): Add "lstat.h", remove <sys/stat.h>.
12842 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
12844 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
12845 (ranged_convert): Don't save conversion in a temporary struct.
12846 This causes a warning with GCC 4.0.0, and anyway in the typical
12847 case it's not worth the extra 100 bytes or so of code.
12848 (ranged_convert, __mktime_internal): When calling a function via a
12849 pointer P, use P () rather than (*P) (), as we now assume C89 or
12852 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
12854 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12855 "who -r" failed to give output. Problem reported by Tim Waugh.
12857 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12858 (xcalloc): Use it to avoid needless tests.
12859 Problem reported by Jim Meyering.
12861 2005-06-20 Derek Price <derek@ximbiot.com>
12863 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
12864 unnecessary for Autoconfs > 2.59c.
12866 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12868 * lib/argp.h (__option_is_short): Check upper limit of
12869 __key. Isprint() requires its argument to have the value
12870 of an unsigned char or EOF.
12872 2005-06-16 Jim Meyering <jim@meyering.net>
12874 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
12875 when either N or S is zero.
12877 2005-06-16 Derek Price <derek@ximbiot.com>
12879 * m4/bison.m4: Declare YACC & YFLAGS precious.
12881 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
12883 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
12884 multibyte string or pattern, fall back on unibyte matching.
12885 Problem reported by James Youngman.
12887 2005-06-08 Bruno Haible <bruno@clisp.org>
12889 * modules/csharpcomp: New file.
12890 * MODULES.html.sh (C#): Add csharpcomp.
12892 2005-06-08 Bruno Haible <bruno@clisp.org>
12894 * m4/csharpcomp.m4: New file, from GNU gettext.
12896 2005-06-08 Bruno Haible <bruno@clisp.org>
12898 * lib/csharpcomp.h: New file, from GNU gettext.
12899 * lib/csharpcomp.c: New file, from GNU gettext.
12900 * lib/csharpcomp.sh.in: New file, from GNU gettext.
12902 2005-06-08 Bruno Haible <bruno@clisp.org>
12904 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
12907 2005-06-07 Derek Price <derek@ximbiot.com>
12910 * lib/glob_.h: Indent nested #ifdef.
12912 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12914 Sync from coreutils.
12915 Use "file name" when talking about file names, instead of "filename"
12916 or "path", as per the GNU coding standards.
12917 * lib/mkdir-p.c: Renamed from makepath.c.
12918 (make_dir_parents): Renamed from make_path. All callers changed.
12919 * lib/mkdir-p.h: Likewise. All includers changed.
12920 * lib/filenamecat.c: Renamed from path-concat.c.
12921 (file_name_concat): Renamed from path_concat. All callers changed.
12922 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
12923 * lib/filenamecat.h: Likewise. All includers changed.
12924 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
12925 in comments or local variable names.
12926 * lib/basename.c: Likewise.
12927 * lib/canonicalize.c, canonicalize.h: Likewise.
12928 * lib/dirname.c, dirname.h: Likewise.
12929 * lib/euidaccess.c: Likewise.
12930 * lib/exclude.c: Likewise
12931 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
12932 * lib/fsusage.c, fsuage.h: Likewise.
12933 * lib/fts.c, fts_.h: Likewise.
12934 * lib/getcwd.c: Likewise.
12935 * lib/getloadavg.c: Likewise.
12936 * lib/mkstemp.c: Likewise.
12937 * lib/mountlist.c, mountlist.h: Likewise.
12938 * lib/openat.c, openat.h: Likewise.
12939 * lib/readlink-stub.c: Likewise.
12940 * lib/readutmp.c, readutmp.h: Likewise.
12941 * lib/rename.c: Likewise.
12942 * lib/rmdir.c: Likewise.
12943 * lib/same.c: Likewise.
12944 * lib/savedir.c: Likewise.
12945 * lib/stripslash.c: Likewise.
12946 * lib/tempname.c: Likewise.
12947 * lib/xreadlink.c: Likewise.
12948 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
12950 * lib/exclude.h: Likewise.
12952 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
12953 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12954 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
12955 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12956 * lib/pathmax.h: Include <limits.h> unconditionally, since other
12957 files have been getting away with it for years (MORE/BSD 4.3
12959 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
12960 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12962 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
12963 Define to 256, not 255, as per modern POSIX.
12965 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12967 Sync from coreutils.
12968 Use "file name" when talking about file names, instead of "filename"
12969 or "path", as per the GNU coding standards.
12970 * MODULES.html.sh: mkdir-p renamed from makepath.
12971 filenamecat renamed from path-concat.
12972 * modules/filenamecat: Renamed from modules/path-concat.
12973 (Files): filenamecat.h and filenamecat.c renamed from
12974 path-concat.h and path-concat.c.
12975 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
12976 (Include): filenamecat.h, not path-concat.h.
12977 * modules/mkdir-p: Renamed from modules/makepath.
12978 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
12980 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
12981 (Include): mkdir-p.h, not makepath.h.
12983 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12985 Sync from coreutils.
12986 * m4/mkdir-p.m4: Renamed from makepath.m4.
12987 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
12988 Rename files from makepath.c to mkdir-p.c, and from
12989 makepath.h to mkdir-p.h.
12990 * m4/filenamecat.m4: Renamed from path-concat.m4.
12991 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
12992 Rename files from path-concat.c to filenamecat.c,
12993 and from path-concat.h to filenamecat.h.
12994 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
12995 "file name" in local variables or comments.
12996 * m4/rename.m4: Likewise.
12998 2005-06-01 Bruno Haible <bruno@clisp.org>
13000 * modules/csharpexec: New file.
13001 * MODULES.html.sh (C#): New section.
13003 2005-06-01 Bruno Haible <bruno@clisp.org>
13005 * m4/csharp.m4: New file, from GNU gettext.
13006 * m4/csharpexec.m4: New file, from GNU gettext.
13008 2005-06-01 Bruno Haible <bruno@clisp.org>
13010 * lib/csharpexec.h: New file, from GNU gettext.
13011 * lib/csharpexec.c: New file, from GNU gettext.
13012 * lib/csharpexec.sh.in: New file, from GNU gettext.
13014 2005-05-31 Derek Price <derek@ximbiot.com>
13015 Paul Eggert <eggert@cs.ucla.edu>
13018 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13020 2005-05-31 Derek Price <derek@ximbiot.com>
13021 Paul Eggert <eggert@cs.ucla.edu>
13024 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13026 2005-05-29 Derek Price <derek@ximbiot.com>
13028 * config/srclist.txt (glob_.h, glob.c): Add these files.
13030 2005-05-29 Derek Price <derek@ximbiot.com>
13032 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13033 * modules/glob: New file.
13034 * modules/getlogin_r: Add link to POSIX spec in description.
13036 2005-05-29 Derek Price <derek@ximbiot.com>
13037 Paul Eggert <eggert@cs.ucla.edu>
13039 * m4/glob.m4: New file.
13041 2005-05-29 Derek Price <derek@ximbiot.com>
13042 Paul Eggert <eggert@cs.ucla.edu>
13044 * lib/glob_.h, lib/glob.c: New files.
13046 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13048 * modules/fts (Files): Remove m4/inttypes-pri.m4.
13049 * modules/fts-lgpl (Depends-on): Remove gettext.
13051 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13053 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13054 and don't require gt_INTTYPES_PRI.
13056 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
13058 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13060 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13061 the configuration hassle isn't worth it.
13062 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13063 (LONGEST_MODIFIER, PRIuMAX): Remove.
13065 2005-05-27 Bruno Haible <bruno@clisp.org>
13067 * lib/getlogin_r.h: Remove second include of <stddef.h>.
13069 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
13071 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13072 _POSIX_PTHREAD_SEMANTICS for Solaris.
13074 2005-05-25 Derek Price <derek@ximbiot.com>
13076 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13078 2005-05-25 Derek Price <derek@ximbiot.com>
13079 Paul Eggert <eggert@cs.ucla.edu>
13081 * modules/getlogin_r, m4/getlogin_r.m4: New files.
13082 * lib/getlogin_r.c, getlogin_r.h: New files.
13084 2005-05-25 Bruno Haible <bruno@clisp.org>
13085 Derek Price <derek@ximbiot.com>
13087 * lib/getlogin_r.h: Simplify API documentation.
13089 2005-05-23 Derek Price <derek@ximbiot.com>
13091 * modules/minmax (Files): Add m4/minmax.m4.
13092 (configure.ac): Add gl_MINMAX.
13094 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
13096 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13097 so that unistd-safer.h (GPL'ed code) need not be included.
13099 2005-05-22 Bruno Haible <bruno@clisp.org>
13101 * m4/minmax.m4: New file.
13102 Based on a patch by Derek Price <derek@ximbiot.com>.
13104 2005-05-22 Bruno Haible <bruno@clisp.org>
13106 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13107 (INT64_MIN): Fix definition.
13108 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13110 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13111 NEED_SIGNED_INT_TYPES.
13113 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13114 HAVE_SYSTEM_INTTYPES.
13116 2005-05-22 Bruno Haible <bruno@clisp.org>
13118 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13119 Also include <sys/param.h> if it defines MIN, MAX.
13120 Based on a patch by Derek Price <derek@ximbiot.com>.
13122 2005-05-21 Jim Meyering <jim@meyering.net>
13124 * modules/fts (Files): Add m4/inttypes-pri.m4.
13125 (Depends-on): Add lstat and remove gettext. Alphabetize.
13127 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
13130 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13131 (setup_dir, free_dir): New functions.
13132 (enter_dir, leave_dir): Define trivial
13133 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
13134 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
13135 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13136 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13137 Move to fts-cycle.c.
13138 (fts_open): Use setup_dir.
13139 (fts_close): Use free_dir.
13140 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13141 This adds a label and some gotos, but the alternatives were messier.
13142 Check for memory allocation failure when entering a dir.
13143 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13144 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13145 (FTS): New member fts_cycle, that is a union that contains the
13146 old active_dir_ht and cycle_state. All uses changed to mention
13147 fts_cycle.ht and fts_cycle.state.
13148 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13149 fts.c, with the following changes:
13150 (setup_dir, free_dir): New functions.
13151 (enter_dir): Now returns bool. Return true if successful, false
13152 if memory exhausted. All callers changed.
13153 Do not bother partly cleaning up on
13154 memory allocation failure; that is free_dir's job.
13155 However, free ad if hash_insert fails, to avoid memory leak.
13156 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13157 fts->fts_options to see which union member to use.
13159 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
13161 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13162 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13164 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
13166 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13168 2005-05-20 Jim Meyering <jim@meyering.net>
13170 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13171 Now a macro, to pacify GCC.
13173 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
13175 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13178 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
13180 * lib/chown.c (rpl_chown): Return -1 on failure.
13182 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
13184 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13185 Don't check for stddef.h.
13186 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13187 don't use its results.
13188 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13189 since we include them unconditionally. Don't require
13190 AM_STDBOOL_H, since stdbool is a prerequisite.
13191 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13192 since we assume C89 or better.
13193 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13194 as we don't use their results.
13195 Don't check for fchdir, memmove, memset, strrchr, as we use
13196 them unconditionally.
13197 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13198 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13200 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
13202 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13203 Include <stddef.h> unconditionally, since we assume C89 now.
13204 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13205 * lib/fts.c: Include fts_.h first, to check interface.
13206 Do not include intprops.h; no longer needed.
13207 Include cycle-check.h and hash.h, since fts_.h no longer does.
13208 Remove unnecessary casts of closedir to void.
13209 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13210 decide whether to decrement nlinks.
13211 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13212 (FTS): Use struct hash_table * instead of Hash_table, so that
13213 we no longer need to include hash.h here.
13215 2005-05-18 Jim Meyering <jim@meyering.net>
13217 * modules/dirfd (License): Change to LGPL. Most of the code
13218 is already in the public domain.
13220 2005-05-18 Jim Meyering <jim@meyering.net>
13222 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13223 Reported by Yoann Vandoorselaere.
13225 2005-05-17 Jim Meyering <jim@meyering.net>
13227 * m4/fts.m4: New file, from coreutils.
13229 2005-05-17 Jim Meyering <jim@meyering.net>
13231 * lib/fts.c, lib/fts_.h: New files, from coreutils.
13233 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
13235 Sync from coreutils.
13236 * m4/unlinkdir.m4: New file.
13238 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
13240 Sync from coreutils.
13241 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13242 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13243 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13244 White space changes only.
13245 * lib/makepath.c (make_path): Port to hosts where leading "//" is
13247 * lib/yesno.c: Include getline.h, not ctype.h.
13248 (yesno): Don't remove leading white space; POSIX doesn't allow it.
13249 Use getline to remove arbitrary restriction on response length.
13251 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
13253 * config/srclist-update: Spell out "Street" in FSF postal
13254 mail address; this is the style the FSF seems to prefer.
13256 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13257 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13258 this updates FSF postal mail address.
13260 Sync from coreutils.
13261 * modules/unlinkdir: New file.
13262 * modules/yesno (Depends-on): Add getline.
13263 * MODULES.html.sh (File system functions): Add unlinkdir.
13265 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
13267 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13269 Change the initial comment to refer to GPL, not LGPL.
13270 gnulib-tool will change it to LGPL as needed.
13272 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13273 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13274 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13275 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13276 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13277 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13278 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13279 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13280 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13281 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13282 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13283 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13284 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13285 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13286 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13287 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13288 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13289 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13290 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13291 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13292 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13293 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13294 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13295 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13296 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13297 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13298 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13299 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13300 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13301 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13302 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13303 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13304 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13305 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13306 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13307 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13308 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13309 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13310 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13311 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13312 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13313 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13314 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13315 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13316 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13317 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13318 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13319 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13320 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13321 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13322 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13323 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13324 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13325 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13326 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13327 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13328 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13329 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13330 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13331 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13332 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13333 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13334 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13335 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13336 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13337 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13338 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13339 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13340 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13341 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13342 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13343 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13344 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13345 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13346 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13347 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13348 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13349 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13350 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13351 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13352 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13353 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13354 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13355 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13356 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13357 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13358 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13359 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13360 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13361 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13362 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13363 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13364 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13365 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13366 lib/yesno.c, lib/yesno.h:
13367 Update FSF postal mail address.
13369 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
13371 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13372 tests/test-memmem.c, tests/test-stpncpy.c:
13373 Update FSF postal mail address.
13375 2005-05-13 Bruno Haible <bruno@clisp.org>
13377 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13378 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13379 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13380 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13381 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13382 Add support for 64-bit integers in the MSVC compiler.
13384 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13386 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13388 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
13390 * gnulib-tool (func_import): Sort and uniquify recommended includes.
13392 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
13394 * doc/getdate.texi (General date syntax): Don't say that date
13395 date --iso-8601=ns generates acceptable dates; it doesn't yet.
13396 Problem reported by Nic Ferrier.
13398 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13400 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13401 specified in ai_socktype. Fix invalid ai_protocol
13402 check. ai_protocol is usually set to 0 or depending on
13403 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
13404 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
13405 ai_socktype / ai_protocol in the returned addrinfo structure.
13407 2005-05-10 Simon Josefsson <jas@extundo.com>
13409 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13410 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13412 2005-05-10 Karl Berry <karl@gnu.org>
13414 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13415 (from http://www.gnu.org/licenses).
13416 * doc/COPYING.LIB: also rename to COPYING.LESSER.
13417 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13420 2005-05-10 Karl Berry <karl@gnu.org>
13422 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13423 (COPYING.DOC): remove.
13425 * config/srclist-update: new FSF address.
13427 2005-05-10 Derek Price <derek@ximbiot.com>
13429 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13432 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13433 Bruno Haible <bruno@clisp.org>
13435 * modules/inet_ntop: New file.
13436 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13439 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13440 Bruno Haible <bruno@clisp.org>
13442 * m4/inet_ntop.m4: New file.
13444 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13445 Bruno Haible <bruno@clisp.org>
13447 * lib/inet_ntop.h: New file.
13448 * lib/inet_ntop.c: New file, from glibc with modifications.
13450 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
13452 * modules/time_r (License): Change to LGPL.
13453 * modules/extensions (License): Change to LGPL. Actually,
13454 the license is more permissive than that, but currently gnulib-tool
13455 doesn't know how to handle more-permissive licenses.
13457 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13458 Problem reported by Dave Love.
13460 2005-05-08 Jim Meyering <jim@meyering.net>
13462 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13465 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
13467 * modules/argmatch (Depends-on): Add stdbool.
13468 * modules/backupfile (Depends-on): Likewise.
13469 * modules/chdir-long (Depends-on): Likewise.
13470 * modules/closeout (Depends-on): Likewise.
13471 * modules/cycle-check (Depends-on): Likewise.
13472 * modules/dirname (Depends-on): Likewise.
13473 * modules/fnmatch (Depends-on): Likewise.
13474 * modules/fsusage (Depends-on): Likewise.
13475 * modules/fwriteerror (Depends-on): Likewise.
13476 * modules/getcwd (Depends-on): Likewise.
13477 * modules/getloadavg (Depends-on): Likewise.
13478 * modules/hard-locale (Depends-on): Likewise.
13479 * modules/makepath (Depends-on): Likewise.
13480 * modules/mountlist (Depends-on): Likewise.
13481 * modules/nanosleep (Depends-on): Likewise.
13482 * modules/posixtm (Depends-on): Likewise.
13483 * modules/quotearg (Depends-on): Likewise.
13484 * modules/readtokens (Depends-on): Likewise.
13485 * modules/readtokens0 (Depends-on): Likewise.
13486 * modules/readutmp (Depends-on): Likewise.
13487 * modules/save-cwd (Depends-on): Likewise.
13488 * modules/strftime (Depends-on): Likewise.
13489 * modules/userspec (Depends-on): Likewise.
13490 * modules/utimecmp (Depends-on): Likewise.
13491 * modules/xgetcwd (Depends-on): Likewise.
13492 * modules/xnanosleep (Depends-on): Likewise.
13493 * modules/xstrtod (Depends-on): Likewise.
13494 * modules/yesno (Depends-on): Likewise.
13496 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
13498 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13501 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
13503 Merge from coreutils. Among other things,
13504 add bulletproofing for cases where stdin, stdout, or stderr are closed.
13505 * lib/fd-safer.c: New file.
13506 * lib/fcntl-safer.h, open-safer.c: Remove.
13507 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13508 * lib/dup-safer.c: Include unistd-safer.h first.
13509 Don't include errno.h.
13510 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13511 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13512 * lib/file-type.c: Rely on file-type.h change.
13513 * lib/getloadavg.c: Include unistd-safer.h.
13514 (getloadavg): Use safer open.
13515 * lib/getusershell.c: Include "stdio-safer.h".
13516 (getusershell): Use safer fopen.
13517 * lib/long-options.c (long_options): Use NULL rather than 0.
13518 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13520 * lib/modechange.c: Likewise.
13521 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13522 (MODE_DONE): New constant.
13523 (struct mode_change): Remove 'next' member.
13524 (make_node_op_equals): New function; like the old one of the
13525 same name, except it allocates an array.
13526 (mode_compile, mode_create_from_ref): Use it.
13527 (mode_compile): Allocate result as an array, not a linked list.
13528 Parse octal string ourself, so that we catch mistakes like "+0".
13529 (mode_adjust): Arg is an array, not a linked list.
13530 * lib/modechange.c: Include stat-macros.h, xalloc.h.
13531 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13532 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13533 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13534 Remove. This is now stat-macros.h's job.
13535 (talloc): Remove. All callers replaced by xalloc, so that
13536 our invokers don't have to worry about reporting memory failures.
13537 (make_node_op_equals): Remove.
13538 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13540 (struct mode_change): Moved here from modechange.h.
13541 (mode_append_entry): Remove.
13542 (mode_compile): Remove MASKED_OPS arg, since it encouraged
13543 apps to have incorrect behavior. Use simpler algorithm for head
13544 and tail. Don't futz with umask; that's now the job of mode_adjust.
13545 Detect more invalid usages rather than having somewhat-random behavior.
13546 Don't insert an "a=" action, as that leads to incorrect behavior.
13547 (mode_compile, mode_create_from_ref): Return NULL on error instead
13548 of an enum, since now there's only one way to have an error. All
13550 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13551 at the correct time. Simplify calculation of "+u" and its ilk.
13552 Don't mishandle "+X".
13553 (mode_free): Remove "register" and localize decls.
13554 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13555 (struct mode_change): Move to modechange.c; callers don't
13556 need to see this stuff.
13557 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13558 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13559 (mode_change, mode_adjust): Reflect the new signatures noted above.
13560 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13561 that might redefine system include files.
13562 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13563 (my_usleep): Use NULL rather than (void *) 0.
13564 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13565 Use siginterrupt to specify that system calls should be interrupted.
13566 (rpl_nanosleep): Move initialization of suspended closer to call of
13568 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
13569 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
13570 (desirable_utmp_entry): New function.
13571 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13572 using x2nrealloc, to simplify logic.
13573 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13574 size calculation. Do not assume utmp file is a regular file.
13575 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13576 (READ_UTMP_CHECK_PIDS): New constant.
13577 * lib/save-cwd.c: Include unistd-safer.h.
13578 (save_cwd): Use fd_safer.
13579 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13580 [!_LIBC] Include "stat-macros.h" instead.
13581 * lib/unistd-safer.h (fd_safer): New decl.
13583 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
13585 * modules/getloadavg (Depends-on): Add unistd-safer.
13586 * modules/getusershell (Depends-on): Add stdio-safer.
13587 * modules/lstat (Depends-on): Remove xalloc.
13588 * modules/mkstemp (Depends-on): Add stat-macros.
13589 * modules/modechange (Depends-on): Remove xstrtol.
13590 Add stat-macros, xalloc.
13591 * modules/save-cwd (Depends-on): Add unistd-safer.
13592 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13593 * modules/unistd-safer (Files): Add lib/fd-safer.c
13594 (Makefile.am): Remove lib_SOURCES.
13596 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13597 Remove fcntl-safer; unistd-safer supersedes it.
13599 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
13601 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13603 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13604 (gl_PREREQ_CHOWN): Remove.
13605 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13606 it. Don't require AC_HEADER_STAT.
13607 (gl_PREREQ_LSTAT): Remove.
13608 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13609 Don't require AC_HEADER_STAT.
13610 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13611 (gl_PREREQ_RMDIR): Remove.
13612 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13613 mention stat-macros.h or AC_HEADER_STAT, since we'll make
13614 the stat-macros module a prerequisite.
13615 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13616 * m4/filemode.m4 (gl_FILEMODE): Likewise.
13617 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13618 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13619 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13621 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13622 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
13624 * m4/fcntl-safer.m4: Remove.
13625 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13626 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13627 Invoke gl_PREREQ_FD_SAFER.
13628 (gl_PREREQ_FD_SAFER): New macro.
13629 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13630 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13631 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13632 Remove duplicate call to AC_LIBOBJ(readutmp).
13633 (gl_PREREQ_READUTMP): Remove. All uses inlined.
13635 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13636 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
13638 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
13640 * MODULES.html.sh (Misc): Add byteswap.
13642 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
13644 * modules/getcwd (Depends-on): Add extensions.
13645 * modules/openat (Depends-on): Likewise.
13647 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
13649 * modules/byteswap: New file.
13651 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
13653 * m4/byteswap.m4: New file.
13655 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
13657 * lib/byteswap_.h: New file.
13659 2005-04-25 Karl Berry <karl@gnu.org>
13661 * m4/gettext.m4: Update from GNU gettext 0.14.4.
13663 2005-04-25 Albert Chin <china@thewrittenword.com>
13665 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13668 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
13670 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
13671 (func_ln_if_changed) Remove forcibly for no error message
13672 in case file does not exist.
13674 2005-04-19 Simon Josefsson <jas@extundo.com>
13676 * gnulib-tool (Options): Make --symlink mean --symbolic.
13678 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
13680 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
13682 2005-04-16 Simon Josefsson <jas@extundo.com>
13684 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
13686 2005-04-15 Simon Josefsson <jas@extundo.com>
13688 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
13690 2005-04-15 Simon Josefsson <jas@extundo.com>
13692 * gnulib-tool: Rename --symlink to --symbolic.
13694 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
13696 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
13697 symbolic links to files instead of copying/moving. Add --aux-dir,
13698 specifying directory relative --dir where auxiliary build tools
13701 2005-04-14 Bruno Haible <bruno@clisp.org>
13703 * modules/allocsa (License): Change to LGPL.
13704 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13706 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
13708 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
13709 that "UTC +1 second" continues to work. Problem reported
13710 by Dmitry V. Levin.
13711 (relunit_snumber): New rule.
13714 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
13716 * lib/getdate.y (universal_time_zone_table): New constant.
13717 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
13718 universal_time_zone_table.
13719 (lookup_zone): Prefer universal_time_zone_table to
13720 local_time_zone_table, so that "GMT" time stamps are allowed in
13721 London during the summer. Problem reported by Ian Abbott.
13723 2005-04-12 Jim Meyering <jim@meyering.net>
13725 * lib/human.c (humblock): Set *options even when returning due to
13726 xstrtoumax conversion failure. Thanks to a used-uninitialized
13727 warning from gcc-4.
13729 2005-04-09 Jim Meyering <jim@meyering.net>
13731 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
13732 -Wuninitialized: initialize tm0.tm_year.
13734 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
13736 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
13737 count, since there's no maximum. All uses changed.
13738 Add member dsts_seen.
13739 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
13741 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
13742 Use pc_rels_seen to decide whther a date is absolute.
13744 * lib/getdate.y (number): Don't overwrite year.
13745 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
13748 2005-04-02 Simon Josefsson <jas@extundo.com>
13750 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
13751 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
13753 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
13755 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
13756 where no absolute path name can be longer than PATH_MAX.
13758 2005-03-27 Jim Meyering <jim@meyering.net>
13760 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
13762 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
13764 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
13765 "one's complement" -> "ones' complement" in comment, as per Knuth.
13766 "value of type" -> "type or expression" in comment.
13767 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
13769 2005-03-26 Jim Meyering <jim@meyering.net>
13772 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
13773 Correct typos: s/or/of/.
13775 2005-03-26 Jim Meyering <jim@meyering.net>
13777 * modules/check-include-files: Move to ../ and rename to...
13778 * check-module: ...this.
13780 2005-03-25 Jim Meyering <jim@meyering.net>
13782 * modules/xvasprintf (Files): Add xalloc.h.
13784 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
13786 * modules/gettext (Files): config/config.rpath ->
13787 build-aux/config.rpath
13788 * modules/iconv (Files): Likewise.
13789 Problem reported by Oskar Liljeblad.
13791 2005-03-23 Jim Meyering <jim@meyering.net>
13793 * modules/check-include-files: New script to check for
13794 missing dependencies, multiple includes, etc.
13796 * modules/c-strtold (Depends-on): Add xalloc.
13797 * modules/c-strtod (Depends-on): Add xalloc.
13798 * modules/hash (Depends-on): Add xalloc.
13799 (Files): Remove lib/xalloc.h.
13801 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13802 * modules/userspec (Files): Add lib/inttostr.h.
13804 2005-03-23 Jim Meyering <jim@meyering.net>
13806 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13808 2005-03-22 Jim Meyering <jim@meyering.net>
13810 * modules/stat-macros: New module.
13811 * modules/canonicalize, modules/euidaccess, modules/file-type,
13812 * modules/filemode, modules/lchown, modules/makepath,
13813 * modules/rmdir, modules/stat: Depend on new stat-macros module
13814 rather than listing lib/stat-macros.h manually.
13815 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13817 2005-03-22 Jim Meyering <jim@meyering.net>
13819 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13821 2005-03-22 Bruno Haible <bruno@clisp.org>
13823 * config/srclist.txt: Replace target directory 'config' with
13825 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13826 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13829 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
13831 * modules/chdir-long (Depends-on): Add mempcpy.
13833 * modules/acl, modules/backupfile, modules/c-strtod,
13834 modules/c-strtold, modules/canon-host, modules/canonicalize,
13835 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13836 modules/exclude, modules/exitfail, modules/file-type,
13837 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13838 modules/getdate, modules/getline, modules/getpagesize,
13839 modules/getpass, modules/getugroups, modules/group-member,
13840 modules/hard-locale, modules/hash, modules/human, modules/idcache,
13841 modules/inttostr, modules/long-options, modules/makepath,
13842 modules/md5, modules/memcasecmp, modules/memcoll,
13843 modules/modechange, modules/mountlist, modules/path-concat,
13844 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13845 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13846 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13847 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13848 modules/strftime, modules/strndup, modules/strverscmp,
13849 modules/timespec, modules/unlocked-io, modules/userspec,
13850 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13852 Remove lib_SOURCES line from Makefile.am section, as this is now
13853 done automatically by the corresponding Autoconf macro.
13855 2005-03-21 Jim Meyering <jim@meyering.net>
13857 Changes imported from coreutils.
13859 * lib/cycle-check.c: Don't include xalloc.h.
13861 * lib/path-concat.c: Don't include assert.h.
13862 (path_concat): Remove assertion that would have triggered
13863 for ABASE starting with more than one slash.
13864 Reported by Andreas Schwab.
13866 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
13867 properly when ABASE is an absolute file name.
13868 Correct the description of this function.
13869 Include <assert.h>.
13870 Add an assertion and a test driver.
13871 This fixes a bug introduced on 2004-07-02.
13872 Andreas Schwab reported the resulting failure of cp --parents:
13873 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
13875 2005-03-21 Jim Meyering <jim@meyering.net>
13877 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
13878 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
13880 2005-03-21 Jim Meyering <jim@meyering.net>
13881 and Paul Eggert <eggert@cs.ucla.edu>
13883 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
13884 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
13885 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
13886 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
13887 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
13888 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
13889 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
13890 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
13891 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
13892 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
13893 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
13894 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
13895 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
13896 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
13897 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
13898 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
13899 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
13902 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
13904 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
13905 (which shouldn't happen), generate nothing instead of returning 0
13906 immediately, so that nstrftime (NULL, ...) doesn't return 0.
13908 2005-03-16 Bruno Haible <bruno@clisp.org>
13910 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
13911 HAVE_LONGLONG_64BIT.
13913 2005-03-16 Bruno Haible <bruno@clisp.org>
13915 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
13916 HAVE_LONGLONG_64BIT.
13918 2005-03-16 Bruno Haible <bruno@clisp.org>
13920 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
13921 HAVE_LONGLONG_64BIT.
13923 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
13925 * lib/strftime.c (my_strftime): Prepend space to format so that we can
13926 reliably distinguish strftime failure from empty output on POSIX
13929 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
13931 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
13932 (iconv_string): Don't guess a size-zero buffer, as that might cause
13933 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
13934 result would be 'too large', where 'too large' is (heuristically)
13935 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
13936 overflow concerns. This will prevent some unwanted malloc failures
13937 when the inputs are very large.
13939 2005-03-15 Karl Berry <karl@gnu.org>
13941 * config/srclist.txt (config.rpath): from gettext.
13942 * config/config.rpath: update.
13944 2005-03-15 Bruno Haible <bruno@clisp.org>
13946 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
13949 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
13952 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
13955 2005-03-14 Simon Josefsson <jas@extundo.com>
13957 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
13960 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
13962 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
13963 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
13965 * lib/strtol.c: Likewise.
13967 2005-03-14 Jim Meyering <jim@meyering.net>
13969 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
13970 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
13971 to be nonzero so that we (and caller) can detect the difference
13972 between a valid zero-length expansion and an error return, even
13973 when the underlying strftime fails before writing anything into
13976 2005-03-14 Bruno Haible <bruno@clisp.org>
13978 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
13979 Update from GNU gettext 0.14.3.
13981 2005-03-10 Jim Meyering <jim@meyering.net>
13983 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
13985 2005-03-10 Jim Meyering <jim@meyering.net>
13987 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
13988 so that this module works on systems without fchdir.
13990 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
13992 Factor int-properties macros into a single file, except for
13993 glibc-related files.
13994 * lib/intprops.h: New file.
13995 * lib/getloadavg.c: Include it instead of limits.h.
13996 (INT_STRLEN_BOUND): Remove.
13997 * lib/human.c: Include intprops.h.
13998 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
13999 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14001 * lib/inttostr.h: Include intprops.h instead of limits.h.
14002 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14003 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14004 for consistency with intprops.h.
14005 (time_t_is_integer, twos_complement_arithmetic): Use them.
14006 * lib/sig2str.h: Include <signal.h>, intprops.h.
14007 (INT_STRLEN_BOUND): Remove.
14008 * lib/strftime.c (TYPE_SIGNED): Remove.
14009 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14010 * lib/strtol.c: Adjust comments to match intprops.h.
14011 * lib/userspec.c: Include intprops.h.
14012 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14013 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14014 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14015 instead of rolling our own expressions.
14016 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14018 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
14020 (my_strftime): Do not mishandle years close to INT_MAX, by doing
14021 the right thing even if adding 1900 would overflow. Similarly
14022 for tm_mon + 1 and tm_yday + 1.
14023 Make %Y always equivalent to %C%y, and similarly for %G and %g.
14024 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14025 (DO_SIGNED_NUMBER): New macro.
14026 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14028 2005-03-07 Bruno Haible <bruno@clisp.org>
14030 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14032 2005-03-07 Bruno Haible <bruno@clisp.org>
14034 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14036 2005-03-04 Derek R. Price <derek@ximbiot.com>
14038 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14039 (func_import): Only replace files via --import when they have actually
14042 2005-03-03 Derek R. Price <derek@ximbiot.com>
14044 * m4/mmap-anon.m4: New file.
14045 * m4/pagealign_alloc.m4: New file.
14047 2005-03-03 Derek R. Price <derek@ximbiot.com>
14048 Bruno Haible <bruno@clisp.org>
14050 * modules/pagealign_alloc: New file.
14051 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14053 2005-03-03 Derek R. Price <derek@ximbiot.com>
14054 Bruno Haible <bruno@clisp.org>
14056 * lib/pagealign_alloc.h: New file.
14057 * lib/pagealign_alloc.c: New file.
14059 2005-03-03 Bruno Haible <bruno@clisp.org>
14061 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14062 Use an all-permissive copyright notice, recommended by RMS.
14064 2005-03-02 Bruno Haible <bruno@clisp.org>
14066 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14067 of AIX, the replacement has to be done only after <string.h> is
14068 included, therefore not in config.h. stpncpy.h does the replacement,
14069 and stpncpy.c uses it.
14071 2005-03-02 Bruno Haible <bruno@clisp.org>
14073 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14076 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
14078 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14079 The workaround isn't strictly needed for POSIX conformance, and
14080 it's too much of a pain to configure and maintain. We'll ask
14081 people to fix their kernels instead.
14082 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14083 (NANOSLEEP_BUG_WORKAROUND): Remove.
14084 (xnanosleep): Remove the workaround.
14086 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
14088 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14089 Reported by Derek Price.
14090 (Include): Add "timespec.h".
14092 * modules/xnanosleep (Depends-on): Remove gethrxtime.
14094 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
14096 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14097 to detect nanosleep bug.
14099 2005-03-01 Bruno Haible <bruno@clisp.org>
14101 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14103 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
14105 * modules/gethrxtime: New file.
14106 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14107 (Depends-on): Add gethrxtime.
14108 (configure.ac): Add gl_XNANOSLEEP.
14109 (Makefile.am): Remove lib_SOURCES line.
14111 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
14113 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14114 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14116 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
14118 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14119 * lib/timespec.h (gettime): Return void, since it always
14120 succeeds now. All uses changed.
14121 * lib/gettime.c (gettime) Likewise.
14122 [HAVE_NANOTIME]: Prefer nanotime.
14123 Assume gettimeofday succeeds, as POSIX requires.
14124 Assime time () succeeds, since other code already does.
14125 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14126 (timespec_subtract): Remove.
14127 (NANOSLEEP_BUG_WORKAROUND): New constant.
14128 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14129 things considerably. Use it only on GNU/Linux hosts, since the
14130 workaround shouldn't be needed elsewhere.
14132 2005-02-24 Bruno Haible <bruno@clisp.org>
14134 * modules/gettext (Files): Add m4/glibc2.m4.
14136 2005-02-24 Bruno Haible <bruno@clisp.org>
14138 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14139 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14141 Update from GNU gettext 0.14.2.
14142 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14144 2005-02-24 Bruno Haible <bruno@clisp.org>
14146 * lib/localcharset.c: Update from GNU gettext 0.14.2.
14147 * lib/config.charset: Update from GNU gettext 0.14.2.
14149 2005-02-24 Bruno Haible <bruno@clisp.org>
14151 * lib/gettext.h: Update from GNU gettext 0.14.2.
14153 2005-02-23 Simon Josefsson <jas@extundo.com>
14155 * m4/iconvme.m4: New file.
14157 2005-02-23 Jim Meyering <jim@meyering.net>
14159 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14161 Thanks to Bruno Haible for catching it.
14163 2005-02-22 Simon Josefsson <jas@extundo.com>
14165 * modules/iconvme: New file.
14167 * MODULES.html.sh: Add iconvme.
14169 2005-02-22 Simon Josefsson <jas@extundo.com>
14171 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14173 2005-02-22 Simon Josefsson <jas@extundo.com>
14175 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14177 2005-02-22 Jim Meyering <jim@meyering.net>
14179 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14182 2005-02-20 Neil Conway <neilc@samurai.com>
14184 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14185 returned by OSX/Darwin if the specified buffer is not large
14186 enough for the hostname.
14188 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14190 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14191 pass it to _help, otherwise the latter coredumps trying to
14192 dereference state.root_argp.
14194 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
14196 * modules/chdir-long (Depends-on): Add memrchr.
14197 * modules/memrchr (Files): Add lib/memrchr.h.
14198 (Include): "memrchr.h".
14200 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
14202 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14204 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
14206 * lib/memrchr.h: New file.
14207 * lib/chdir-long.c: Include it.
14208 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14209 Don't bother including stddef.h.
14211 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
14213 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14215 Include <sys/types.h>, for dev_t.
14216 (ME_DUMMY, ME_REMOTE): Move from here....
14217 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14218 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
14220 Include mountlist.h first, to test the interface.
14222 2005-01-29 Bruno Haible <bruno@clisp.org>
14224 * lib/progname.c (program_name): Initialize.
14225 Needed when linking statically on MacOS X.
14227 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
14229 Sync from coreutils.
14230 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14231 (Depends-on): Add c-strtod.
14232 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14234 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
14236 Sync from coreutils.
14237 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14239 Remove files that are specific to coreutils.
14240 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14242 2005-01-28 Bruno Haible <bruno@clisp.org>
14244 * modules/javacomp: New file.
14245 * MODULES.html.sh (Java): Add javacomp.
14247 2005-01-28 Bruno Haible <bruno@clisp.org>
14249 * m4/javacomp.m4: New file, from GNU gettext.
14251 2005-01-28 Bruno Haible <bruno@clisp.org>
14253 * lib/javacomp.sh.in: New file, from GNU gettext.
14254 * lib/javacomp.h: New file, from GNU gettext.
14255 * lib/javacomp.c: New file, from GNU gettext.
14257 2005-01-26 Simon Josefsson <jas@extundo.com>
14259 * lib/gai_strerror.c: Use GPL in header.
14261 2005-01-26 Bruno Haible <bruno@clisp.org>
14263 * modules/javaexec: New file.
14264 * MODULES.html.sh (Java): Add javaexec.
14266 2005-01-26 Bruno Haible <bruno@clisp.org>
14268 * m4/javaexec.m4: New file, from GNU gettext.
14270 2005-01-26 Bruno Haible <bruno@clisp.org>
14272 * lib/javaexec.sh.in: New file, from GNU gettext.
14273 * lib/javaexec.h: New file, from GNU gettext.
14274 * lib/javaexec.c: New file, from GNU gettext.
14276 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14278 * modules/lchown (Depends-on): Remove lchown.h
14280 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14282 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14283 must be defined if the header file was not found, in order
14284 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14286 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14288 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14289 initializers for struct pentry_state.
14290 (__argp_error): Check return value of __asprintf
14291 (__argp_failure): Translate error message
14293 * lib/argp-parse.c: Removed braces around the expansion of N_()
14295 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
14297 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14298 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14299 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14300 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14301 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14302 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14303 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14304 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14305 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14306 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14307 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14308 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14309 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14310 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14311 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14312 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14313 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14314 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14315 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14316 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14317 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14318 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14319 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14320 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14321 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14322 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14323 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14324 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14325 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14326 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14327 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14328 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14329 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14330 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14331 xstrtol.m4, xstrtoumax.m4, yesno.m4:
14332 Use an all-permissive copyright notice, recommended by RMS.
14334 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
14336 * modules/chdir-long (Depends-on): Remove mempcpy.
14338 2005-01-21 Jim Meyering <jim@meyering.net>
14340 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14341 same value as for Solaris 9.
14343 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14344 component length. This included changing the parameter to be
14345 of type `char *' rather than `char const *'.
14346 * lib/chdir-long.h (chdir_long): Update prototype.
14348 * lib/openat.c (fdopendir, fstatat): New functions.
14349 * lib/openat.h: Include headers required for use of DIR and struct
14351 [AT_SYMLINK_NOFOLLOW]: Define.
14352 (fdopendir, fstatat): Add prototypes.
14354 2005-01-21 Bruno Haible <bruno@clisp.org>
14356 * modules/classpath: New file.
14357 * MODULES.html.sh (Java): Add classpath.
14359 2005-01-21 Bruno Haible <bruno@clisp.org>
14361 * lib/classpath.h: New file, from GNU gettext.
14362 * lib/classpath.c: New file, from GNU gettext.
14364 2005-01-20 Simon Josefsson <jas@extundo.com>
14366 * modules/version-etc-fsf: New file.
14368 2005-01-20 Simon Josefsson <jas@extundo.com>
14370 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14371 * lib/version-etc.c: Remove version_etc_copyright.
14372 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14373 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14375 2005-01-20 Simon Josefsson <jas@extundo.com>
14377 * lib/base64.h (isbase64): Add.
14379 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14380 using a unsigned prototype, don't inline.
14381 (base64_decode): Use it.
14383 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
14385 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14388 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
14390 * lib/save-cwd.c (save_cwd): Remove code to support the case
14391 where fchdir is missing or flaky.
14393 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
14395 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14397 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
14399 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14400 AC_LIBSOURCES now does this.
14401 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14402 with new ullong_max module.
14404 2005-01-19 Bruno Haible <bruno@clisp.org>
14406 * modules/sh-quote: New file.
14407 * MODULES.html.sh (Executing programs): Add sh-quote.
14409 2005-01-19 Bruno Haible <bruno@clisp.org>
14411 * lib/sh-quote.h: New file, from GNU gettext.
14412 * lib/sh-quote.c: New file, from GNU gettext.
14414 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
14416 Merge from coreutils.
14417 * m4/ullong_max.m4: New file.
14418 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14419 (gl_MACROS): Assume localeconv exists.
14421 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
14423 Merge changes from coreutils, as described below in several
14424 changelogs dated today.
14426 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14427 (O_DIRECTORY): Remove; not needed here, since "." must be
14428 a directory. All uses removed.
14429 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
14430 universal on Suns, and we also need to test for IRIX.
14431 Revamp code to use 'if' rather than '#if'.
14432 Avoid unnecessary comparison of cwd->desc to 0.
14434 * lib/utimens.c (futimens): Robustify the previous patch, by checking
14435 for known valid error numbers rather than observed invalid ones.
14437 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
14439 * modules/ullong_max: New file.
14441 * modules/chdir-long, modules/openat: New files.
14442 * modules/save-cwd (Depends-on): Depend on chdir-long.
14443 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14445 2005-01-18 Jim Meyering <jim@meyering.net>
14447 Merge from coreutils.
14448 * m4/chdir-long.m4, m4/openat.m4: New files.
14449 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14450 save-cwd.h. Add AC_LIBOBJ for save-cwd.
14451 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14452 is sane and DOES follow symlinks. Besides, testing 20 different
14453 systems found no broken chown implementations.
14454 Prompted by a change in rsync's copy of this macro.
14455 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14457 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14459 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14460 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14461 NULL-means-set-to-current-time semantics.
14462 Remove temporary file immediately, rather than waiting
14463 for configure's at-exit trap code to do it.
14465 2005-01-18 Jim Meyering <jim@meyering.net>
14467 * lib/version-etc.c (version_etc_copyright): Update copyright date.
14469 * lib/utimens.c (futimens): Account for the fact that futimes
14470 can also fail with errno == ENOSYS or errno == ENOENT.
14471 Patch from Dmitry V. Levin.
14473 Change the name of the robust chdir function from chdir to chdir_long.
14474 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14475 (restore_cwd): Use chdir_long, not chdir.
14476 * lib/chdir-long.c: Renamed from chdir.c.
14477 * lib/chdir-long.h: Renamed from chdir.h.
14478 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14481 2005-01-18 Bruno Haible <bruno@clisp.org>
14483 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14484 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14485 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14486 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14487 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14488 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14489 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14490 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14491 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14492 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14493 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14494 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14495 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14496 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14497 Use an all-permissive copyright notice, recommended by RMS.
14499 2005-01-18 Bob Proulx <bob@proulx.com>
14501 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14502 simplify offsetof() macro construct to avoid compile failure with
14503 native HP-UX 11.0 ANSI C compiler.
14505 2005-01-17 Bruno Haible <bruno@clisp.org>
14507 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14508 redundant because stpncpy.m4 takes care of it.
14510 2005-01-17 Bruno Haible <bruno@clisp.org>
14512 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14514 2005-01-17 Bruno Haible <bruno@clisp.org>
14516 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14519 2005-01-17 Bruno Haible <bruno@clisp.org>
14521 * lib/fwriteerror.h (fwriteerror): Change specification to include
14523 * lib/fwriteerror.c: Include <stdbool.h>.
14524 (fwriteerror): At the end, close the file stream. Record whether
14525 stdout was already closed.
14527 2005-01-17 Bruno Haible <bruno@clisp.org>
14529 * lib/execute.c (environ): Declare if needed.
14530 * lib/pipe.c (environ): Likewise.
14531 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14533 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14535 * modules/argp: Depend on vsnprintf
14537 2005-01-10 Jim Meyering <jim@meyering.net>
14539 * modules/closeout (Depends-on): Add atexit.
14541 2005-01-06 Bruno Haible <bruno@clisp.org>
14543 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14545 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
14547 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14548 definitions to be after all include files, to avoid collisions.
14549 Problem reported by Bob Proulx.
14551 2005-01-04 Jim Meyering <jim@meyering.net>
14553 Changes imported from coreutils.
14554 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14555 as the mkstemp template, use a temporary directory and an
14556 8.3-friendly template to avoid trouble on systems like DJGPP.
14557 Reported by Juan M. Guerrero via Stepan Kasal.
14558 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14559 close. Remove the temporary directory right away, rather than waiting
14560 for configure's at-exit trap code to do it.
14561 Suggestion from Stepan Kasal.
14563 2005-01-01 Simon Josefsson <jas@extundo.com>
14565 * gnulib-tool: Print #include directives when --import'ing.
14567 2004-12-28 Simon Josefsson <jas@extundo.com>
14569 * tests/test-base64.c: Include required header files. Remove
14572 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
14574 * modules/error (Depends-on): Remove gettext.
14576 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
14578 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14579 not needed. This removes a dependency on the gettext module.
14580 [defined _LIBC]: Do not include <libintl.h>; not needed.
14582 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
14584 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14585 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14587 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
14589 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14592 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
14594 * modules/getdate (Depends-on): Remove alloca-opt.
14596 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
14598 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14600 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
14602 * lib/argp-parse.c: Include <stddef.h>.
14603 (alignof, alignto): New macros.
14604 (parser_init): Don't assume that void * is aligned sufficiently
14607 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14608 need to extend the stack.
14609 (YYINITDEPTH): New macro, so that the initial stack isn't overly
14612 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14614 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14616 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
14618 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14619 (2004-10-24) change. Apparently this was a false alarm.
14621 * modules/getdate: Depend on alloca-opt, not alloca.
14623 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
14625 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14626 Remove now-obsolete comment about AIX.
14627 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14628 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14629 (YYMAXDEPTH): New macro.
14631 2004-12-18 Simon Josefsson <jas@extundo.com>
14633 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14635 2004-12-18 Bruno Haible <bruno@clisp.org>
14637 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14639 2004-12-18 Bruno Haible <bruno@clisp.org>
14641 * lib/fatal-signal.c (fatal_signals): Make non-const.
14642 (init_fatal_signals): New function.
14643 (uninstall_handlers, install_handlers): Ignore signals that were set to
14645 (at_fatal_signal): Call init_fatal_signals.
14646 (init_fatal_signal_set): Likewise. Ignore signals that were set to
14648 Reported by Paul Eggert.
14650 2004-12-18 Bruno Haible <bruno@clisp.org>
14652 * doc/alloca.texi: New file.
14653 * doc/alloca-opt.texi: New file.
14655 2004-12-17 Jim Meyering <jim@meyering.net>
14657 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14658 Otherwise, install-sh could exit with improper exit status when
14659 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
14661 2004-12-16 Simon Josefsson <jas@extundo.com>
14663 * tests/test-base64.c: Add license.
14665 2004-12-15 Stepan Kasal <address@hidden>
14667 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
14669 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
14671 * modules/getcwd (Files): Add m4/d-ino.m4.
14672 Suggested by Mark D. Baushke.
14674 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
14676 * lib/getdate.y (textint): New member "negative".
14677 (time_zone_hhmm): New function.
14678 Expect 14 shift-reduce conflicts, not 13.
14679 (o_colon_minutes): New rule.
14680 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
14681 (yylex): Set the "negative" member of signed numbers.
14683 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
14685 * doc/getdate.texi (Time of day items, Time zone items):
14686 Describe new formats +00:00, UTC+00:00.
14688 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
14690 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
14691 spurious "-l"s. Problem reported by Stepan Kasal.
14693 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
14695 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
14696 in Autoconf 2.59. Problem reported by Mark D. Baushke.
14698 2004-12-04 Simon Josefsson <jas@extundo.com>
14700 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
14701 Vandoorselaere <yoann@prelude-ids.org>.
14703 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
14705 Changes imported from coreutils.
14706 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
14708 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
14710 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
14712 Changes imported from coreutils.
14713 * lib/hard-locale.c: Assume <locale.h> exists.
14714 Include "strdup.h".
14715 (GLIBC_VERSION): New macro.
14716 (hard_locale): Assume setlocale exists.
14717 Rewrite to avoid #ifdef.
14718 Use strdup rather than malloc + strcpy.
14719 * lib/human.c: Assume <locale.h> exists.
14720 (human_readable): Assume localeconv exists.
14722 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
14724 * modules/hard-locale (Depends-on): Add strdup.
14726 2004-12-01 Jakub Jelinek <jakub@redhat.com>
14728 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
14729 convert T2, not T. (Imported from libc.)
14731 2004-11-30 Simon Josefsson <jas@extundo.com>
14733 * modules/restrict (License): Change to LGPL.
14735 2004-11-30 Simon Josefsson <jas@extundo.com>
14737 * m4/restrict.m4: Add copyright and copying conditions.
14739 2004-11-30 Simon Josefsson <jas@extundo.com>
14741 * m4/base64.m4: New file.
14743 2004-11-30 Simon Josefsson <jas@extundo.com>
14745 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
14748 * tests/test-base64.c: New file.
14750 * modules/base64: New file.
14752 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
14754 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14755 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
14757 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
14759 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
14761 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
14762 (__getcwd.c): Don't restore errno; glibc doesn't.
14763 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
14764 first, falling back to our code only if its results look suspicious.
14765 Ensure that the resulting buffer is only as large as necessary.
14767 * lib/readutmp.c: Include readutmp.h first.
14768 Include <errno.h>, since readutmp.h no longer does that.
14769 * lib/readutmp.h: Don't include <errno.h>,
14770 <sys/param.h>, <time.h>; not needed to establish interface.
14771 (errno): Remove decl.
14772 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
14773 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
14774 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
14776 2004-11-28 Simon Josefsson <jas@extundo.com>
14778 * lib/base64.h, base64.c: New file.
14780 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
14782 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14784 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
14786 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14787 (Depends-on): Remove pathmax, same. Add mempcpy.
14788 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14789 (Makefile.am): Append getcwd.h to lib_SOURCES.
14790 (Include): Add getcwd.h.
14791 (Maintainer): Change from Jim Meyering to "all, glibc",
14792 since getdate now uses intended-for-glibc code.
14793 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14794 (Depends-on): Depend on getcwd. Do not depend on pathmax.
14796 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
14798 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14799 HP's ANSI C compiler.
14800 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14801 Declaring int functions causes warnings on some modern systems and
14802 shouldn't be needed to compile on ancient ones.
14803 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14806 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14807 with the following changes.
14808 (__set_errno): Parenthesize properly.
14809 Include <stdbool.h>.
14810 (MIN, MAX, MATCHING_INO): New macros.
14811 (__getcwd): Define with prototype, not K&R form.
14812 Use heuristics to allocate default buffer on stack if possible.
14813 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14814 behavior, and to avoid the PATH_MAX limit when computing
14816 Use MATCHING_INO to compare inode number to file.
14817 Check for arithmetic overflow in size calculations.
14818 Fix bug in reallocation of dot array that caused getcwd to fail
14819 on directories nested deeper than 75.
14820 Be more careful about saving errno on error.
14821 Do not use realloc; use only free+malloc, as this is a bit
14822 more flexible and avoids a needless copy operation.
14823 Do not inspect st_dev and st_ino for symbolic links; POSIX
14824 doesn't specify the latter.
14825 Check for closedir errors.
14826 Avoid needless casts.
14827 Use "#ifdef weak_alias" around weak_alias, to be like other
14829 The following changes to getcwd.c have effect only when used in
14830 gnulib; they have no effect inside glibc proper.
14831 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14832 as alloca isn't used.
14833 (alloca, __alloca): Likewise.
14834 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14835 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14836 unconditionally, as gnulib assumes C89 or better.
14837 Do not include <sys/param.h>.
14838 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14839 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14841 (NULL) [!defined NULL]: Remove; we assume C89 or better.
14842 Include <dirent.h> in a way that is compatible with modern Autoconf.
14843 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14844 New macros, if not already defined.
14845 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14846 Use "_LIBC", not "defined _LIBC", for consistency.
14847 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14849 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14850 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
14851 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14852 credit only to Jim Meyering and adjust the copyright dates.
14853 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14854 <stdlib.h>, <unistd.h>, "pathmax.h".
14855 Instead, include "xgetcwd.h" (first) and "getcwd.h".
14856 (INITIAL_BUFFER_SIZE): Remove.
14857 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14859 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
14861 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
14862 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
14863 Use the _ONCE methods, for efficiency.
14864 Check for fcntl.h. In test program, include <errno.h>
14865 and <fcntl.h> if available. Remove old K&R cruft from
14866 test program. Check for common errors in GNU/Linux,
14867 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
14868 don't do AC_LIBOBJ, as that's getcwd.m4's job.
14869 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
14870 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
14872 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
14873 accommodate new getcwd.c.
14874 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
14875 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
14876 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
14877 that's all we need now.
14879 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14881 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
14882 argp-parse.c depends on getopt internals, that means we should
14883 always use our getopt, to be on the safe side.
14884 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
14885 order not to spoil the result of an eventual previous invocation
14886 of gl_GETOPT_SUBSTITUTE.
14888 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14890 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
14891 redefinition warnings. To avoid them, include the defines
14892 in `#if !defined __need_getopt ... #endif'. The only place
14893 where __getopt_argv_const is used is in definitions
14894 of getopt_long and getopt_long_only below, which are as well
14895 protected by `#ifndef __need_getopt'.
14896 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
14897 __need_getopt after including <stdio.h> and <unistd.h> These
14898 headers might have defined it.
14900 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
14902 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
14904 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
14906 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
14907 (futimens): New function, which uses futimes if available.
14908 (futimens, utimens): Support timespec==NULL, with same semantics
14909 as utime and utimens.
14910 * lib/utimens.h (futimens): New decl.
14912 2004-11-23 Jim Meyering <jim@meyering.net>
14914 * lib/getopt_.h: Remove trailing blanks.
14916 2004-11-23 Jim Meyering <jim@meyering.net>
14918 * lib/__fpending.c: Add comment.
14920 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
14922 * modules/canonicalize (Depends-on): Add xreadlink.
14923 Problem reported by James Youngman.
14925 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
14927 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
14929 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
14930 optopt): Use them instead of invoking ## directly; otherwise, the
14931 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
14933 2004-11-19 Bruno Haible <bruno@clisp.org>
14935 * lib/strtok_r.c: Move comments from here...
14936 * lib/strtok_r.h: ... to here.
14938 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
14940 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
14941 implementations that mishandle size_t overflow.
14943 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
14945 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
14946 might fail. Problem reported by Yoann Vandoorselaere.
14947 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
14948 implementations that mishandle size_t overflow.
14950 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14952 * modules/canon-host (Depends-on): Add strdup.
14954 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14956 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
14958 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14960 * lib/canon-host.c: Include "strdup.h".
14961 (canon_host): Use getaddrinfo if available, so that IPv6 works.
14962 Use strdup instead of malloc/strcpy to duplicate strings.
14964 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
14965 (human_space_before_unit): New constant.
14966 * lib/human.c (human_readable): Support it.
14968 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
14969 (xgetcwd): Set errno correctly when failing.
14970 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
14971 the failure is actually due to a PATH_MAX problem.
14973 Further getopt changes to make it more likely that glibc will
14974 buy the changes back.
14975 * lib/getopt.c (POSIXLY_CORRECT): New constant.
14976 (getopt): Use it, so to preserve glibc semantic
14977 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
14978 when compiling for libc.
14979 * lib/getopt_.h (__getopt_argv_const): Bring it back.
14980 (getopt_long, getopt_long_only): Use it.
14982 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14983 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
14984 (getopt): Argv is now char * const *, as per standard.
14985 (_getopt_internal_r, _getopt_internal): Argv is now char **,
14986 not char *__getopt_argv_const *.
14987 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14988 _getopt_long_only_r): Likewise.
14989 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
14990 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14991 _getopt_long_r, _getopt_long_only_r): Likewise.
14992 * lib/getopt_.h (__getopt_argv_const): Remove.
14993 (getopt): Argv is now char * const *, as per standard.
14995 * lib/getdate.y (tORDINAL): New token.
14996 (day, relunit): Allow it for relative times.
14997 (relative_time_table): Use tORDINAL for ordinals.
14999 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
15001 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15002 Document that "second" isn't allowed as an ordinal number.
15004 2004-11-16 Jim Meyering <jim@meyering.net>
15006 * modules/closeout (Depends-on): Add fpending.
15008 2004-11-15 Jim Meyering <jim@meyering.net>
15010 * lib/closeout.c: Include "__fpending.h" once again.
15011 Include <stdbool.h>.
15012 (close_stdout): Don't fail just because stdout was closed initially,
15013 since some programs don't write to stdout in the normal course of
15014 operation (other than --version and --help), and we don't want this
15015 function to make e.g. `touch file >&-' fail.
15016 But do fail if it was closed and someone has tried to write to it.
15017 E.g., `printf foo >&-' must fail.
15019 2004-11-13 Jim Meyering <jim@meyering.net>
15021 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15023 2004-11-12 Simon Josefsson <jas@extundo.com>
15025 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15026 small doc fix is still pending.
15028 2004-11-11 Simon Josefsson <jas@extundo.com>
15030 * modules/strtok_r: New file.
15032 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15035 2004-11-11 Simon Josefsson <jas@extundo.com>
15037 * m4/strtok_r.m4: New file.
15039 * m4/getopt.m4: Replace opterr.
15041 2004-11-11 Simon Josefsson <jas@extundo.com>
15043 * lib/strtok_r.h, strtok_r.c: New file.
15045 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
15047 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15048 of replacing opterr, getopt, etc. This should handle the
15049 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15051 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
15053 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15054 we can stop lying to compilers about the constness of argv when we
15055 are compiled outside glibc.
15056 (getopt, getopt_long, getopt_long_only): Use it.
15057 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15058 _getopt_internal, getopt): Likewise.
15059 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15060 _getopt_long_only_r): Likewise.
15061 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15062 _getopt_long_r, _getopt_long_only_r): Likewise.
15064 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15065 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15066 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15067 the other external symbols.
15068 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15069 declaration, since the above renaming now works around collisions.
15071 2004-11-11 Jim Meyering <jim@meyering.net>
15073 * lib/linebreak.c: Remove trailing blanks.
15074 * lib/alloca_.h: Likewise.
15075 * lib/acosl.c: Likewise.
15076 * lib/euidaccess.c: Likewise.
15077 * lib/allocsa.h: Likewise.
15079 2004-11-10 Simon Josefsson <jas@extundo.com>
15081 * m4/getaddrinfo.m4: New file.
15083 2004-11-10 Simon Josefsson <jas@extundo.com>
15085 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15087 2004-11-10 Simon Josefsson <jas@extundo.com>
15089 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15092 * modules/getaddrinfo: New file.
15094 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
15096 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15098 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
15100 * lib/mktime.c (SHR): New macro, which is a portable
15101 substitute for >> that should work even on Crays.
15102 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15103 Problem reported by Mark D. Baushke in
15104 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15105 * lib/getdate.y (SHR): Likewise.
15107 * lib/strftime.c (SHR): Likewise.
15109 * lib/quotearg.c (struct quoting_options): Use unsigned int for
15110 quote_these_too, so that right shifts are well defined. All uses
15113 2004-11-10 Jim Meyering <jim@meyering.net>
15115 Ensure that no close failure goes unreported.
15116 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
15117 return early when it seems there's nothing to flush.
15118 Don't include __fpending.h.
15120 2004-11-10 Jim Meyering <jim@meyering.net>
15122 * modules/closeout (Depends-on): Remove fpending.
15124 2004-11-10 Jim Meyering <jim@meyering.net>
15126 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15128 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
15130 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
15132 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15133 and AC_REQUIRE when possible, to avoid duplicate checks.
15134 Check for <wchar.h>.
15136 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
15138 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15140 2004-11-09 Bruno Haible <bruno@clisp.org>
15142 * m4/sockpfaf.m4: New file.
15144 2004-11-05 Bruno Haible <bruno@clisp.org>
15146 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15147 Reported by Mark D. Baushke <mdb@cvshome.org>.
15149 2004-11-04 Bruno Haible <bruno@clisp.org>
15151 2004-09-11 Bruno Haible <bruno@clisp.org>
15152 * allocsa.valgrind: New file.
15153 2004-02-06 Bruno Haible <bruno@clisp.org>
15154 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15155 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15156 Reported by Christopher Seip <chris.seip@hp.com>.
15158 2004-11-04 Bruno Haible <bruno@clisp.org>
15160 * modules/allocsa (Files): Add lib/allocsa.valgrind.
15161 (Makefile.am): Distribute it.
15163 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
15165 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15166 with errno == ERANGE if the buffer is too small.
15167 Problem reported by Mark D. Baushke.
15169 2004-11-03 Albert Chin <china@thewrittenword.com>
15170 Paul Eggert <eggert@cs.ucla.edu>
15172 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15173 equivalent, substitute $ac_type for equivalent type rather than
15174 blindly using uint32_t *always* which won't work if uint32_t is not
15175 available. Define _UINT32_T to work around typedef of uint32_t if
15176 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15179 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
15181 * m4/jm-macros.m4: Sync from coreutils.
15182 (gl_MACROS): Check for mbrlen, for pathchk.
15183 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15185 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
15187 * lib/xreadlink.c (MAXSIZE): New macro.
15188 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
15189 size does not exceed MAXSIZE. Avoid cast.
15190 As suggested by Mark D. Baushke in
15191 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15192 if readlink fails with buffer size just under MAXSIZE, try again
15195 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
15197 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15199 2004-11-02 Derek R. Price <derek@ximbiot.com>
15200 and Paul Eggert <eggert@cs.ucla.edu>
15202 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15203 (get_date): Overparenthesize to avoid GCC warning.
15205 2004-11-02 Bruno Haible <bruno@clisp.org>
15207 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15210 2004-11-02 Bruno Haible <bruno@clisp.org>
15212 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15213 function returns void.
15215 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
15217 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15218 fflush_unlocked, flockfile, funlockfile, funlockfile,
15219 fputs_unlocked, putc_unlocked.
15221 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
15223 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15224 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15227 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
15229 * modules/getdate (Files): Add doc/getdate.texi.
15230 (Depends-on): Add setenv, xalloc.
15232 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
15234 * lib/getdate.y: Add support for TZ="foo" within a date string.
15235 Fix some bugs near time_t boundaries. Reject dates with
15236 out-of-range components, e.g., "Sept 31".
15237 Include <stdlib.h>, "setenv.h", "xalloc.h".
15238 (ISDIGIT_LOCALE): Remove; unused.
15239 Note that the TZ and time functions used here are not reentrant.
15240 (mktime_ok, get_tz): New functions.
15241 (TZBUFSIZE): New constant.
15242 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
15243 This requires that we sometimes generate our own TZ="XXX..." setting.
15245 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
15247 * doc/getdate.texi: New file, from coreutils with modifications for
15248 the new TZ parsing.
15250 2004-10-27 Derek R. Price <derek@ximbiot.com>
15252 * lib/mktime.c (not_equal_tm): Remove redundant check.
15254 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
15256 * modules/regex (lib_SOURCES): Add regex.c.
15257 Reported by James Youngman in
15258 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15260 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
15262 * lib/getdate.y: Use Bison 1.875 features, and some minor
15263 code cleanups. This change does not affect semantics.
15264 Don't include <stdlib.h>; no longer needed.
15265 Don't include unlocked-io.h; only the "#if TEST" code uses
15266 stdio, and performance isn't crucial there.
15267 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15268 Bison 1.875 features as described below.
15269 All uses of "PC." replaced by "pc->".
15270 (YYSTYPE): Add a forward declaration.
15271 (yylex, yyerror): Use full prototypes in forward decls.
15272 Use "%pure-parser" rather than obsolescent "%pure_parser".
15273 Use %parse-param and %lex-param instead of obsolescent
15274 YYPARSE_PARAM and YYLEX_PARAM.
15275 (meridian_table, month_and_day_table, time_units_table,
15276 relative_time_table, time_zone_table, military_table,
15277 lookup_zone, lookup_word, get_date):
15278 Use NULL instead of 0 where appropriate.
15279 (to_hour): Avoid abort (), to avoid a dependency on
15281 (yyerror, yylex): Now accepts parser_control * arg.
15282 (main) [TEST]: Use '\0' rather than 0 for char.
15284 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
15286 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15288 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
15290 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15291 It's now the caller's responsibility to handle the case where
15292 !HAVE_GETPAGESIZE && !defined getpagesize.
15294 * lib/mktime.c (leapyear): Arg is long int, not int.
15296 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
15298 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15300 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
15302 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15303 missing. Problem reported by James Youngman.
15305 2004-10-16 Simon Josefsson <jas@extundo.com>
15307 * gnulib-tool: Fix comments. Fix parse problem.
15308 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15310 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
15312 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15313 implementation of getopt_long. Problem reported by Alexander Taler in:
15314 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15316 2004-10-15 Bruno Haible <bruno@clisp.org>
15318 * gnulib-tool: Untabify. Initialize supplied_libname.
15319 (func_usage): More homogenous output.
15320 (func_modules_transitive_closure, func_modules_to_filelist,
15321 func_emit_lib_Makefile_am): New functions.
15322 (func_import): New function, extracted from big case statement. Use
15323 func_get_license, func_modules_transitive_closure,
15324 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15325 opt_lgpl. Don't use test -a, as it's not portable.
15326 (func_create_testdir): Use func_modules_transitive_closure,
15327 func_modules_to_filelist, func_emit_lib_Makefile_am.
15329 2004-10-15 Bruno Haible <bruno@clisp.org>
15331 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15333 2004-10-15 Bruno Haible <bruno@clisp.org>
15335 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15336 the portions belonging to each module.
15337 Suggested by Derek Robert Price <derek@ximbiot.com>.
15339 2004-10-12 Simon Josefsson <jas@extundo.com>
15341 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15342 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15345 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
15347 * modules/vsnprintf: New file.
15349 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
15351 * m4/vsnprintf.m4: New file.
15353 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
15355 * lib/vsnprintf.h: New file.
15356 * lib/vsnprintf.c: New file.
15358 2004-10-11 Bruno Haible <bruno@clisp.org>
15360 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15363 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
15365 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15367 2004-10-07 Bruno Haible <bruno@clisp.org>
15369 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15370 fits into the provided buffer.
15372 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
15374 * lib/diacrit.c, diacrit.h: Add GPL notice.
15376 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15378 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15379 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15380 This avoids a potential constant-folding bug.
15382 2004-10-05 Bruno Haible <bruno@clisp.org>
15384 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15385 for the declaration of strsep.
15387 2004-10-05 Bruno Haible <bruno@clisp.org>
15389 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15391 2004-10-04 Simon Josefsson <jas@extundo.com>
15393 * modules/memmem: New file.
15394 * tests/test-memmem.c: New file.
15395 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15397 2004-10-04 Simon Josefsson <jas@extundo.com>
15399 * m4/memmem.m4: New file.
15401 2004-10-04 Simon Josefsson <jas@extundo.com>
15403 * lib/memmem.h: New file.
15404 * lib/memmem.c: New file, taken from glibc.
15406 2004-10-04 Simon Josefsson <jas@extundo.com>
15408 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15409 '#ifdef USE_UNLOCKED_IO'.
15411 2004-10-04 Simon Josefsson <jas@extundo.com>
15413 * config/srclist.txt: Add memmem from glibc.
15415 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
15417 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15419 * modules/argmatch, modules/argp, modules/closeout, modules/error,
15420 modules/exclude, modules/getdate, modules/getline,
15421 modules/getndelim2, modules/getpass, modules/getpass-gnu,
15422 modules/getusershell, modules/linebuffer, modules/md5,
15423 modules/mountlist, modules/posixtm, modules/readtokens,
15424 modules/readutmp, modules/regex, modules/sha1,
15425 modules/version-etc, modules/yesno:
15426 Remove dependency on unlocked-io.
15428 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
15430 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
15432 * m4/unlocked-io.m4: Add copyright notice.
15433 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15435 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
15437 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
15438 * lib/xmalloc.c (xmemdup): Likewise.
15439 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15440 XFREE): Remove these long-obsolescent macros.
15441 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15442 * lib/xstrdup.c: Remove.
15444 * lib/regex.c (re_comp): Cast gettext return value to char *,
15445 Problem reported by Martin Neitzel via Mark D. Baushke.
15447 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
15449 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15450 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15451 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15452 regex.c, sha1.c, version-etc.c, yesno.c:
15453 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15454 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15455 the includer's responsibility.
15457 Sync from coreutils.
15459 * lib/modechange.c (mode_compile): Don't decrement a pointer that
15460 points to the start of a string, as the C Standard says the
15461 resulting behavior is undefined.
15463 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15464 simple -> simple_backups, numbered_existing ->
15465 numbered_existing_backups, numbered -> numbered_backups
15466 to avoid shadowing problems. All uses changed.
15467 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15468 * lib/backupfile.c (check_extension, numbered_backup):
15469 Rename locals to avoid shadowing 'basename'.
15470 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15473 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15474 * lib/.cvsignore: Add getopt.h.
15476 2004-10-04 Bruno Haible <bruno@clisp.org>
15478 * modules/README: New file.
15479 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15482 2004-10-02 Jim Meyering <jim@meyering.net>
15484 * lib/dirfd.h, getpagesize.h: Add copyright notice.
15486 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
15488 * modules/strsep: New file.
15490 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
15492 * m4/strsep.m4: New file.
15494 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
15496 * lib/strsep.h: New file.
15497 * lib/strsep.c: New file.
15499 2004-10-01 Simon Josefsson <jas@extundo.com>
15501 * lib/snprintf.c (snprintf): Handle size==0.
15503 2004-10-01 Simon Josefsson <jas@extundo.com>
15504 Bruno Haible <bruno@clisp.org>
15506 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15507 (snprintf): Declare 'args'.
15509 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
15511 * lib/snprintf.c: Remove comments as to why each header is needed.
15513 2004-10-01 Bruno Haible <bruno@clisp.org>
15515 * MODULES.html.sh: Add strsep.
15517 2004-09-30 Simon Josefsson <jas@extundo.com>
15519 * modules/snprintf: New file.
15521 2004-09-30 Simon Josefsson <jas@extundo.com>
15523 * m4/snprintf.m4: New file.
15525 2004-09-30 Simon Josefsson <jas@extundo.com>
15527 * lib/snprintf.h, lib/snprintf.c: New files.
15529 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15531 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15532 (hol_entry_help): Never translate an empty string.
15533 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15534 * lib/argp.h (OPTION_NO_TRANS): New option.
15536 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
15538 * modules/argp (Maintainer): Replace Simon Josefsson
15539 by Sergey Poznyakoff.
15541 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
15543 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15544 changes merged back into glibc.
15546 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
15548 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15550 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
15552 * lib/xvasprintf.c: Include xalloc.h.
15553 (xvasprintf): Use xalloc_die, not xmalloc_die.
15555 2004-09-29 Bruno Haible <bruno@clisp.org>
15557 * modules/alloca-opt: New file, derived from modules/alloca.
15558 * modules/allocsa: Depend on alloca-opt instead of alloca.
15559 * modules/setenv: Likewise.
15560 * modules/vasnprintf: Likewise.
15561 * MODULES.html.sh: Add alloca-opt.
15563 2004-09-28 Simon Josefsson <jas@extundo.com>
15565 * gnulib-tool: New parameter --lgpl, to asseert that modules are
15566 LGPL, and to replace license template from GPL to LGPL.
15568 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
15570 * modules/dummy: Change license to LGPL.
15572 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
15574 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15576 2004-09-24 Simon Josefsson <jas@extundo.com>
15578 * modules/minmax (License): Change from GPL to LGPL.
15580 2004-09-23 Simon Josefsson <jas@extundo.com>
15582 * gnulib-tool (--import): Typo.
15584 2004-09-23 Simon Josefsson <jas@extundo.com>
15586 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15588 2004-09-22 Bruno Haible <bruno@clisp.org>
15590 * modules/*: Add 'License' field.
15591 * gnulib-tool: Accept --extract-license option.
15592 (func_get_license): New function.
15594 2004-09-21 Bruno Haible <bruno@clisp.org>
15596 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15597 Reported by Simon Josefsson.
15599 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
15601 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15602 gl_AC_TYPE_LONG_LONG.
15604 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
15606 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15608 2004-09-18 Simon Josefsson <jas@extundo.com>
15609 and Paul Eggert <eggert@cs.ucla.edu>
15611 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15612 calls with autoreconf. Define GL_LIB.
15614 2004-09-14 Karl Berry <karl@gnu.org>
15616 * config/srclist.txt: unsync setenv.c, sigh.
15618 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
15620 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15621 Problem reported by Bruno Haible in:
15622 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15624 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
15626 * config/srclist.txt: Comment out argp-pvh.c.
15628 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
15630 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15631 in case some system header has #define'd it. Problem reported by
15632 Soeren D. Schulze in
15633 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15635 2004-09-09 Karl Berry <karl@gnu.org>
15637 * regex.[ch]: delete from the root. These were supposed to be
15638 synced with emacs cvs, but this has not happened for about
15639 a year, and anyway nothing else uses emacs regex.[ch].
15640 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15641 lib/regex[.ch] is untouched.
15643 2004-09-09 Bruno Haible <bruno@clisp.org>
15645 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15647 2004-09-09 Bruno Haible <bruno@clisp.org>
15649 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15651 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15653 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
15655 * modules/xvasprintf: New file.
15656 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15658 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
15660 * lib/xvasprintf.h: New file.
15661 * lib/xvasprintf.c: New file.
15662 * lib/xasprintf.c: New file.
15664 2004-09-08 Bruno Haible <bruno@clisp.org>
15666 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
15668 2004-09-08 Bruno Haible <bruno@clisp.org>
15670 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
15671 length is > INT_MAX.
15672 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
15675 2004-09-08 Bruno Haible <bruno@clisp.org>
15677 * lib/stdint_.h: New file, taken from GNU clisp.
15679 2004-09-08 Bruno Haible <bruno@clisp.org>
15680 Oskar Liljeblad <oskar@osk.mine.nu>
15682 * modules/stdint: New file.
15683 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
15685 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
15687 Import from coreutils.
15688 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
15689 strings on unbounded length. alloca's performance benefits aren't
15690 that important here.
15691 (V_STRDUP): Remove.
15692 (parse_with_separator): New function, with most of the internals
15693 of the old parse_user_spec. Allow user to omit both user and group,
15694 for compatibility with FreeBSD.
15695 Clone only the user name, not the entire spec.
15696 Do not set *uid, *gid unless entirely successful.
15697 Avoid memory leak in some failing cases.
15698 Fix regression for USER.GROUP reported by Dmitry V. Levin in
15699 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
15700 (parse_user_spec): Rewrite to use parse_with_separator.
15702 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
15704 * modules/userspec: Don't depend on alloca.
15706 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
15708 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
15710 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
15712 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
15713 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
15714 utimecmp, utimens, xnanosleep. Rename sha to sha1.
15716 2004-08-16 Simon Josefsson <jas@extundo.com>
15718 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
15719 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
15720 Add --dry-run for --import.
15721 Let user provided command line parameters override configure.ac
15724 2004-08-12 Simon Josefsson <jas@extundo.com>
15726 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
15727 as discussed with Paul Eggert in threads rooted at
15728 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
15730 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
15731 Before, the test was empty, and relied on ELIDE_CODE in source
15733 (gl_PREREQ_GETOPT): New macro.
15734 (gl_GETOPT): Use them.
15736 2004-08-12 Simon Josefsson <jas@extundo.com>
15738 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
15739 * lib/getopt_.h: Renamed from getopt.h.
15741 2004-08-12 Simon Josefsson <jas@extundo.com>
15743 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
15744 Change default library name from libfoo to libgnu.
15745 Now, if you have a configure.ac that says:
15748 gl_MODULES(error getopt etcetera)
15750 you can import all you need by running:
15751 ../gnulib/gnulib-tool --import
15753 * modules/getopt (Files): Rename getopt.h to getopt_.h.
15754 (Makefile.am): Rewrite, use logic from argz.
15755 (Include): Use <getopt.h> instead of "getopt.h".
15757 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
15759 * modules/argp (Files): Add m4/unlocked-io.m4.
15760 (Depends-on): Add extensions.
15762 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
15764 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
15765 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
15766 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
15767 Check for program_invocation_name, program_invocation_short_name,
15768 flockfile, funlockfile, features.h, _getopt_long_only_r.
15770 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
15772 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
15773 its complicated substitute.
15774 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
15775 and program_invocation_name.
15776 (__argp_basename) [!_LIBC]: Remove; the only use was
15777 replaced by its body.
15778 (__argp_short_program_name): Change condition from
15779 !defined __argp_short_program_name to
15780 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15781 to match argp-namefrob.h.
15782 (__argp_failure): Don't assume strerror_r returns char *.
15783 * lib/argp-parse.c (N_): Define unconditionally.
15784 (argp_default_options): Fill out initializers with 0 to avoid
15787 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
15789 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15792 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
15794 Merge from coreutils.
15796 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15798 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15799 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15801 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
15803 Merge from coreutils.
15805 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15806 wmemchr or wmemcpy. Problem reported by Robert Dahlem
15807 for Reliant Unix 5.43.
15809 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15810 (union fooround): Use uintmax_t, not long int.
15811 The rest is a merge from libc:
15812 [defined _LIBC]: Include <shlib-compat.h>.
15813 (_obstack) [defined _LIBC]: Remove after 2.3.4.
15815 * lib/settime.c (settime): Recode to avoid warning with
15818 * lib/strverscmp.c: Convert to UTF-8.
15820 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
15822 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15825 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15827 * modules/xalloc-die: New file.
15828 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15830 * modules/md5 (Files): Add m4/uint32_t.m4.
15831 * modules/sha1: Renamed from modules/sha.
15833 Rename lib/sha.h to lib/sha1.h.
15834 Rename lib/sha.c to lib/sha1.c.
15835 Rename m4/sha.m4 to m4/sha1.m4.
15836 (lib_SOURCES): Likewise.
15837 (configure.ac): Rename gl_SHA to gl_SHA1.
15838 (Include): sha.h -> sha1.h.
15840 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15842 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15843 * m4/sha1.m4: Renamed from sha.m4.
15844 (gl_SHA1): Renamed from gl_SHA. All uses changed.
15846 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15848 * lib/obstack.h (obstack_empty_p):
15849 Don't assume that chunk->contents is suitably aligned.
15850 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15851 Likewise. Problem reported by Benno in
15852 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15854 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15855 readable. This could be improved further but it'd take some work.
15857 2004-08-08 Simon Josefsson <jas@extundo.com>
15859 * modules/xgethostname (Depends-on): Remove exit and error (not
15862 * modules/getpass-gnu: Add getpass.h.
15863 (Depends-on): Add stdbool.
15864 * modules/getpass: Add getpass.h.
15866 2004-08-08 Simon Josefsson <jas@extundo.com>
15868 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
15869 Check getpass declaration.
15871 2004-08-08 Simon Josefsson <jas@extundo.com>
15873 * lib/xgethostname.c: Don't include error.h (not used).
15875 * lib/getpass.h: Add.
15876 * lib/getpass.c: Include getpass.h first.
15878 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
15880 * lib/xalloc-die.c: New file.
15881 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
15883 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
15884 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
15886 (_, N_, xalloc_die): Move to xalloc-die.c.
15887 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
15888 so that we needn't mess with xalloc_msg_memory_exhausted.
15890 * lib/sha1.h: Renamed from sha.h.
15891 (SHA1_H): Renamed from _SHA_H.
15892 (sha1_ctx): Renamed from sha_ctx.
15893 (sha1_init_ctx): Renamed from sha_init_ctx.
15894 (sha1_process_block): Renamed from sha_process_block.
15895 (sha1_process_bytes): Renamed from sha_process_bytes.
15896 (sha1_finish_ctx): Renamed from sha_finish_ctx.
15897 (sha1_read_ctx): Renamed from sha_read_ctx.
15898 (sha1_stream): Renamed from sha_stream.
15899 (sha1_buffer): Renamed from sha_buffer.
15900 * lib/sha1.c: Likewise; renamed from sha.c.
15901 Do not include <sys/types.h>.
15902 Include <stddef.h> rather than <stdlib.h>.
15904 2004-08-08 Bruno Haible <bruno@clisp.org>
15906 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
15907 FILESYSTEM_PREFIX_LEN.
15908 * lib/progreloc.c: Likewise.
15909 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
15911 2004-08-06 Simon Josefsson <jas@extundo.com>
15913 * modules/progname (Depends-on): Don't depend on stdbool.
15915 2004-08-06 Simon Josefsson <jas@extundo.com>
15917 * modules/getsubopt: New file.
15918 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15921 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
15923 More merge from coreutils.
15925 * m4/utimens.m4, m4/utimecmp.m4: New files.
15926 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
15927 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
15928 prereq.m4, sha.m4: Import changes from coreutils.
15930 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
15932 More merge from coreutils.
15933 * modules/raise, modules/readtokens0, modules/utimens:
15934 * modules/utimecmp, module/xnanosleep: New files.
15935 * modules/strftime: Add lib/strftime.h.
15936 Change include from <time.h> to "strftime.h".
15937 * modules/yesno: Add lib/yesno.h.
15938 * modules/backupfile: Remove lib/addext.c.
15939 * modules/euidaccess: Add stat-macros.h.
15940 * modules/canonicalize, modules/euidaccess,
15941 modules/filemode, modules/lchown, modules/makepath,
15942 modules/rmdir, modules/stat: Likewise.
15944 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
15947 * lib/argp-help.c (make_hol, hol_append): Don't assume that
15948 SIZE_MAX is a valid preprocessor constant.
15949 (__argp_basename): Change from "#ifndef _LIBC"
15950 to "#ifndef __argp_short_program_name", so that
15951 we don't compile these functions for tar.
15953 More merges from coreutils.
15954 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
15955 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
15956 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
15957 * lib/addext.c: Remove; no longer needed.
15958 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
15959 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
15960 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
15961 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
15962 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
15963 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
15964 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
15965 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
15966 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
15967 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15968 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
15969 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
15970 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
15971 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
15972 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
15973 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
15974 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
15975 Import changes from coreutils.
15977 2004-08-05 Simon Josefsson <jas@extundo.com>
15979 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
15981 2004-08-05 Simon Josefsson <jas@extundo.com>
15983 * m4/getsubopt.m4: New file.
15985 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
15987 Merge from coreutils.
15989 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
15990 * m4/getcwd-path-max.m4: New files.
15992 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
15993 FILESYSTEM_PREFIX_LEN ->
15994 FILE_SYSTEM_PREFIX_LEN.
15995 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
15996 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
15997 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
15998 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16000 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16001 prerequisite modules now handle the DOS stuff.
16002 Don't check for unistd.h.
16004 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
16006 Merge from coreutils.
16008 * lib/.gdb-history: Remove; this doesn't belong here.
16010 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16011 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16012 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16013 * lib/getcwd.c: New files.
16015 * lib/dirname.h: Include <stdbool.h>.
16016 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16017 for consistency with POSIX terminology. All uses changed.
16018 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16019 (strip_trailing_slashes): Use bool for booleans.
16020 * lib/stripslash.c (strip_trailing_slashes): Likewise.
16022 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16023 sometimes returns a positive errno value even when it succeeds.
16024 (print_errno_message) [!LIBC]: Fall back on strerror if
16025 __strerror_r fails.
16027 * lib/path-concat.c (mempcpy): Don't define if a system header defines
16028 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16029 (longest_relative_suffix): New function.
16030 (path_concat): Use it. Assume first argument is not NULL.
16031 Port to DOS. Omit redundant separators.
16032 Report an error instead of returning NULL.
16033 Use mempcpy instead of memcpy.
16034 (xpath_concat): Remove: not declared or used.
16036 * lib/same.h: Include <stdbool.h>
16037 (same_name): Return bool, not int.
16038 * lib/same.c (same_name): Likewise.
16039 (errno): Don't declare; we assume C89 or better now.
16041 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16042 if not already defined.
16044 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16045 * lib/dup-safer.c (errno): Likewise.
16047 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
16049 Merge from coreutils.
16050 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16051 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16052 * modules/path-concat: Don't depend on strdup.
16054 2004-08-03 Simon Josefsson <jas@extundo.com>
16056 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16057 * lib/progname.h: Don't include stdbool.h.
16059 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
16061 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16062 * MODULES.html.sh (func_all_modules): Remove fatal.
16064 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
16066 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16068 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
16070 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16073 2004-08-02 Simon Josefsson <jas@extundo.com>
16075 * lib/getsubopt.h: New file, with comments from Bruno Haible.
16076 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16077 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16079 2004-08-01 Simon Josefsson <jas@extundo.com>
16081 * lib/xgetdomainname.c: Include stdlib.h, for free().
16083 2004-07-19 Bruno Haible <bruno@clisp.org>
16085 * MODULES.html.sh (func_all_modules): Add dummy.
16087 2004-07-16 Simon Josefsson <jas@extundo.com>
16089 * modules/dummy: New file.
16091 2004-07-16 Simon Josefsson <jas@extundo.com>
16093 * lib/dummy.c: New file.
16095 2004-07-16 Bruno Haible <bruno@clisp.org>
16097 * lib/backupfile.h: Add extern "C" for C++.
16098 * lib/closeout.h: Likewise.
16099 * lib/copy-file.h: Likewise.
16100 * lib/findprog.h: Likewise.
16101 * lib/full-write.h: Likewise.
16102 * lib/pathname.h: Likewise.
16103 * lib/progname.h: Likewise.
16104 * lib/stpcpy.h: Likewise.
16105 * lib/stpncpy.h: Likewise.
16106 * lib/strcase.h: Likewise.
16107 * lib/strstr.h: Likewise.
16108 * lib/xalloc.h: Likewise.
16110 * lib/mbswidth.h: Add extern "C" for C++.
16111 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16113 2004-07-13 Robert Millan <robertmh@gnu.org>
16115 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16117 2004-07-09 Simon Josefsson <jas@extundo.com>
16119 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
16120 failed without this.)
16122 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
16124 * modules/chown (Files): Add lib/fchown-stub.c, since
16125 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16127 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
16129 * lib/fchown-stub.c: New file.
16131 2004-06-24 Jim Meyering <jim@meyering.net>
16133 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16135 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
16137 * modules/argz: Omit "#include".
16139 * MODULES.html.sh (func_all_modules): Add calloc, to match
16140 2004-06-01 addition of calloc module.
16142 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
16144 * m4/argz.m4: New file, which is autoupdated from libtool.
16146 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
16148 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16151 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
16153 * config/srclist-update: Don't insist on "USA." before the
16154 close-comment, as libtool omits the period and puts the */ on a
16156 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16157 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16159 2004-06-22 Gary V. Vaughan <gary@gnu.org>
16161 * modules/argz: New file.
16162 * MODULES.html.sh (func_all_modules): Add argz.
16164 2004-06-12 Jim Meyering <jim@meyering.net>
16165 and Paul Eggert <eggert@cs.ucla.edu>
16167 * modules/hash (Files): Add lib/xalloc.h.
16168 * modules/pipe (Depends-on): Add wait-process.
16169 * modules/stat (Depends-on): Add xalloc.
16170 * modules/userspec (Files): Add lib/userspec.h.
16173 Upgrade from gettext-0.13.
16174 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16175 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16176 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16178 2004-06-10 Jim Meyering <jim@meyering.net>
16180 * lib/calloc.c: New file.
16182 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
16184 * lib/getdate.y (yylex): Allow space between sign and number.
16185 Problem reported by Dan Jacobson.
16187 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
16189 Merge from coreutils CVS.
16191 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16192 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16193 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16194 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16195 xstrtol.m4: Fix copyright date and/or serial number.
16197 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16198 See if we need an fchown replacement.
16199 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16200 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16201 and use the replacement function if we detect either defect.
16203 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16206 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
16207 and Jim Meyering <jim@meyering.net>
16209 Merge from coreutils CVS.
16211 * lib/stat-macros.h: New file, with contents from file-type.h
16212 and coreutils' system.h.
16213 * lib/file-type.c: Include "stat-macros.h".
16214 * lib/file-type.h (file_type): Move all macro definitions to new file,
16217 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16218 Wrap old code with this conditional.
16219 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16220 function that does not dereference symlinks.
16221 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16223 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16224 dependency problems.
16225 (xreadlink): Accept new arg SIZE, for efficiency.
16226 All decls and uses changed.
16227 * lib/xreadlink.h: Include <stddef.h>, for size_t.
16229 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16230 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16232 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16235 2004-06-01 Jim Meyering <jim@meyering.net>
16237 * m4/calloc.m4: New file.
16239 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
16241 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16242 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
16243 Also, fix a typo in a diagnostic.
16245 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
16247 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16248 or AC_FUNC_REALLOC.
16250 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
16252 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16253 macros to be defined.
16254 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16255 the allocator returns NULL because the requested size is zero.
16257 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
16259 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16260 var. Add comment explaining why libc still defines it. This
16261 merges the following patch from glibc:
16262 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16264 2004-05-20 Andreas Schwab <schwab@suse.de>
16266 * m4/free.m4: Replace free if it not known to work, not the other
16269 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
16271 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
16272 present in glibc since revision 1.1 of this file.
16273 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16274 obstack_alignment_mask, obstack_alloc, obstack_base,
16275 obstack_blank, obstack_blank_fast, obstack_chunk_size,
16276 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16277 obstack_grow0, obstack_init, obstack_int_grow,
16278 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16279 obstack_next_free, obstack_object_size, obstack_ptr_grow,
16280 obstack_ptr_grow_fast, obstack_room): Remove declarations of
16281 nonexistent functions.
16283 2004-05-18 Karl Berry <karl@gnu.org>
16285 * config/srclist.txt: break link for vasnprintf.c.
16287 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
16289 Port obstack to the AS/400, where pointers are 16 bytes wide and
16290 you cannot cast an integer to a valid pointer. This patch is
16291 currently waiting to be integrated into glibc; see
16292 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16294 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16295 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16296 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16297 (struct obstack): temp member is now a union of a pointer and
16298 an integer, instead of an integer. All integer uses changed.
16299 This does not affect the physical layout of struct obstack,
16300 except on hosts (like the AS/400) where the size or alignment of
16301 void * is greater than that of ptrdiff_t.
16302 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16303 __STDC__)]: Store temporary in pointer member of union, not
16305 * lib/obstack.c: Include <stddef.h>, for offsetof.
16306 (struct fooalign): Remove; it doesn't need a name.
16307 (union fooround): Change double to long double, and add void *.
16308 (DEFAULT_ALIGNMENT): Use offsetof to compute.
16309 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16310 not a macro. Hence the values are always int; so remove all
16311 casts-to-int in uses.
16313 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
16315 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16316 we can get this patch merged into glibc.
16318 2004-05-17 Derek R. Price <derek@ximbiot.com>
16319 Paul Eggert <eggert@cs.ucla.edu>
16321 * m4/argp: Depend on alloca.
16323 2004-05-17 Derek R. Price <derek@ximbiot.com>
16324 Paul Eggert <eggert@cs.ucla.edu>
16326 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16329 2004-05-17 Bruno Haible <bruno@clisp.org>
16331 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16332 precision that consists of a '.' followed by an empty digit string.
16333 Patch by Tor Lillqvist <tml@iki.fi>.
16335 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
16337 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16338 for backward compatibility with older code. We need our own
16339 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
16340 it under some other name, and our alloca.h will define it.
16342 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
16343 Derek Price <derek@ximbiot.com>
16345 * lib/alloca.c: Include <alloca.h>, to get our interface.
16346 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16347 include <alloca.h> first. Use C89 prototype for alloca; this
16348 requires including <stddef.h> for size_t. Use extern "C" if C++.
16349 Use #elif for simplicity, since we can assume C89 now.
16350 Don't try to source the system alloca.h since it will not be found
16351 and to prevent recursively including its replacement.
16352 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16353 * lib/regex.c: Likewise.
16355 2004-05-16 Derek Price <derek@ximbiot.com>
16356 Paul Eggert <eggert@cs.ucla.edu>
16358 getline cleanup. This changes the getndelim2 API: both order of
16359 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16362 * lib/getline.c: Don't include stddef.h or stdio.h, since our
16363 interface does that.
16364 (getline): Always use getdelim, so that we don't have two
16365 copies of this code.
16366 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16368 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16369 (GETNDELIM2_MAXIMUM): New macro.
16370 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
16371 instead of the old practice of delim2==0. All callers changed.
16372 Return -1 on overflow, instead of returning junk.
16373 Do not set *linesize unless allocation succeeds.
16374 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16375 that we include sys/types.h.
16376 * lib/getnline.h: Likewise.
16377 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16378 (getndelim2): Reorder arguments.
16379 * lib/getnline.c (getnline, getndelim):
16380 Don't discard the NMAX argument.
16381 (getnline): Invoke getndelim, to avoid code duplication.
16382 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16383 of (size_t) -1 by callers of the getnline family.
16385 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
16387 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16388 Check for gettimeofday.
16389 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16390 Check for settimeofday, stime.
16392 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
16394 * lib/nanosleep.c (suspended): Change its type from int to
16395 sig_atomic_t volatile.
16396 (first_call): Make it private to rpl_nanosleep, and have it
16397 be zero initially as that's a bit faster.
16398 (my_usleep): Round up fractional times instead of truncating them,
16399 as this is the usual meaning for 'sleep'.
16401 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16403 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16404 (ENOSYS): Define if not defined.
16405 (settime): Fall back on stime if it exists and settimeofday fails.
16406 But don't bother with fallbacks if a method fails with errno == EPERM.
16408 2004-05-11 Jim Meyering <jim@meyering.net>
16410 Prior to this change, the save_cwd caller required read access to the
16411 current directory on most systems (ones with the fchdir function).
16413 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16414 fails, try write-only, and finally, resort to using xgetcwd.
16416 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
16418 * lib/obstack.c, obstack.h: Import changes from libc.
16420 2004-04-28 Bruno Haible <bruno@clisp.org>
16422 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16423 also implicitly appends .exe to executables.
16424 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16425 accepts Windows pathnames.
16426 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16427 Treat Cygwin like Windows, since it now accepts Windows pathnames.
16428 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16429 Treat Cygwin like Windows, since it now accepts Windows pathnames.
16430 Reported by Derek Robert Price <derek@ximbiot.com>.
16432 2004-04-21 Karl Berry <karl@gnu.org>
16434 * config/srclist.txt (localcharset.c): break sync.
16436 2004-04-20 Paul Eggert <eggert@twinsun.com>
16438 * m4/host-os.m4: Add a copyright notice.
16440 2004-04-20 Jim Meyering <jim@meyering.net>
16442 Change UTILS_ to gl_ in AC_DEFINE'd names.
16443 Change utils_- and jm_-prefixed variables, too.
16444 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16445 UTILS_FUNC_MKDIR_TRAILING_SLASH.
16446 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16448 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16449 Don't emit trailing blanks.
16450 Also rename jm_-prefixed variables to have gl_ prefix.
16452 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16453 Also rename jm_-prefixed variables to have gl_ prefix.
16455 * m4/jm-macros.m4: Reflect the renamings.
16456 * m4/prereq.m4: Likewise.
16458 2004-04-20 Jim Meyering <jim@meyering.net>
16460 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16463 2004-04-20 Jim Meyering <jim@meyering.net>
16464 Bruno Haible <bruno@clisp.org>
16466 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16467 memory when realloc fails.
16469 2004-04-19 Jim Meyering <jim@meyering.net>
16471 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16472 now that readutmp.c may call `free (0)'.
16474 2004-04-19 Bruno Haible <bruno@clisp.org>
16476 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16477 * m4/inttypes_h.m4: Likewise.
16478 * m4/stdint_h.m4: Likewise.
16479 * m4/intmax_t.m4: Likewise.
16480 * m4/uintmax_t.m4: Likewise.
16482 2004-04-18 Jim Meyering <jim@meyering.net>
16484 * m4/prereq.m4: Don't forbid jm_ prefix.
16486 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16487 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16488 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16489 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16490 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16491 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16492 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16493 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16494 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16495 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16496 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16497 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16498 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16499 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16500 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16501 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16502 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16503 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16504 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16506 2004-04-18 Jim Meyering <jim@meyering.net>
16508 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16509 failure, don't leak memory and do call END_UTMP_ENT.
16511 2004-04-16 Jim Meyering <jim@meyering.net>
16513 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
16514 coreutils' stat program.
16515 (gl_PREREQ): Don't require jm_PREREQ_STAT.
16517 2004-04-11 Paul Eggert <eggert@twinsun.com>
16519 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16521 (CHAR_BIT): Remove, since we assume C89.
16522 Include <stdint.h> if available, as per current Autoconf CVS advice.
16524 2004-03-31 Jim Meyering <jim@meyering.net>
16526 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16527 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16528 * m4/xalloc.m4: Likewise.
16530 2004-03-30 Paul Eggert <eggert@twinsun.com>
16532 Merge from coreutils.
16534 * m4/inttostr.m4: New file.
16535 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16536 Require AM_STDBOOL_H and gl_TIMESPEC instead.
16537 Require gl_CLOCK_TIME.
16538 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16540 2004-03-30 Paul Eggert <eggert@twinsun.com>
16542 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16543 not bool, to be more consistent with Unix conventions.
16544 Suggested by Bruno Haible.
16546 Merge from coreutils.
16548 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16549 * lib/umaxtostr.c: New files.
16551 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16552 the usual <time.h> dance.
16553 (get_date): Change signature to support fractional time stamps.
16554 All callers changed.
16555 * lib/getdate.y: Include "getdate.h" first, as we can now
16556 assume C89 and don't need to worry about 'const'.
16557 Similarly, include "unlocked-io.h" near start, not in middle.
16558 Include <limits.h>.
16559 (textint.value): Use long int rather than int.
16560 (textint.digits): Use size_t rather than int.
16561 (BILLION, LOG10_BILLION): New constants.
16562 (parser_control): New member rel_ns. Members day_ordinal,
16563 time_zone, month, day, hour, minutes, rel_year, rel_month,
16564 rel_day, rel_hour, rel_minutes, rel_seconds
16565 are now long int, not int. Member seconds is now struct timespec,
16566 not int. New member timespec_seen. Members dates_seen, days_seen,
16567 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16569 (%union.intval): Now long int, not int.
16570 New member timespec.
16571 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16572 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16573 (spec): Now is a timespec or an item list.
16574 (timespec, items): New nonterminals.
16575 (time, rel, relunit, number, get_date):
16576 Add support for fractional seconds.
16577 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16578 (gmtime, localtime, mktime): Remove decls; not needed with C89.
16579 (to_hour): First arg is now long int, not int.
16580 (to_year): Returns long int, not int.
16581 Don't treat year -70 like 70.
16582 (tm_diff): Returns long int, not int.
16583 (lookup_word): Use bool instead of int when appropriate.
16584 (yylex): Use size_t for count, not int.
16585 Detect overflow when parsing large integer constants.
16586 Add support for fractions.
16587 (get_date): Make pointers 'const' if possible.
16588 Use more-portable code to detect integer overflow.
16589 (main) [TEST]: Adjust to above changes. Test for localtime failure.
16590 Don't use ctime; it's not reliable if the year has >4 digits.
16592 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16593 This is for compatibility with BSD.
16595 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16596 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16597 From coreutils' system.h.
16599 * lib/userspec.c: Don't include "posixver.h".
16600 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16601 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16602 compatible extension. Simplify code by removing a boolean int
16603 that was always nonzero if a string was nonnull.
16605 2004-03-30 Jim Meyering <jim@meyering.net>
16607 Merge from coreutils.
16609 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16610 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16611 on some systems one must include <grp.h> before it.
16612 Reported by Christian Krackowizer.
16614 2004-03-30 Jim Meyering <jim@meyering.net>
16616 Merge from coreutils.
16618 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16620 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16621 an empty input stream.
16623 * lib/readtokens.c: Include <stdbool.h>.
16624 (readtoken): Use `size_t' rather than int/long.
16625 All callers adjusted.
16626 Use `bool' rather than `int' where appropriate.
16627 Use memset rather than an explicit loop.
16628 Use x2nrealloc rather than xrealloc.
16629 Allow the use of `\0' as a delimiter.
16630 (readtokens): Likewise.
16631 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16633 2004-03-30 Jim Meyering <jim@meyering.net>
16635 * m4/realloc.m4: Remove file, since now it does no more than
16636 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16637 the `configure.ac' section of module/realloc.
16638 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16640 2004-03-30 Bruno Haible <bruno@clisp.org>
16642 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16645 2004-03-29 Paul Eggert <eggert@twinsun.com>
16647 Merge changes to getloadavg.c from coreutils and Emacs.
16649 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16650 Define to an expression, not to the empty string.
16651 Include cloexec.h and xalloc.h.
16652 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16653 Use set_cloexec_flag rather than rolling our own.
16654 * lib/cloexec.c, lib/cloexec.h: New files.
16656 2004-03-29 Paul Eggert <eggert@twinsun.com>
16658 * m4/cloexec.m4: New file.
16660 2004-03-18 Paul Eggert <eggert@twinsun.com>
16662 * lib/getopt.h: Sync with libc CVS.
16664 2004-03-18 Paul Eggert <eggert@twinsun.com>
16665 Bruno Haible <bruno@clisp.org>
16667 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
16670 2004-03-18 Paul Eggert <eggert@twinsun.com>
16671 Bruno Haible <bruno@clisp.org>
16673 * lib/mbswidth.h: Include <wchar.h> only if
16674 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
16676 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
16678 2004-03-09 Paul Eggert <eggert@twinsun.com>
16680 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
16681 Sync with libc CVS.
16682 * lib/getopt_int.h: New file, also synced from libc.
16684 2004-03-09 Paul Eggert <eggert@twinsun.com>
16686 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
16687 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
16688 Bring back getopt.c, getopt.h, getopt1.c.
16690 2004-03-07 Paul Eggert <eggert@twinsun.com>
16692 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
16693 All uses changed. Check for sa_sigaction member; this fixes
16694 a bug first reported by Jason Andrade in
16695 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16697 2004-03-07 Paul Eggert <eggert@twinsun.com>
16699 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
16700 '#if' expressions. Unlike the code it replaces, it does not
16701 depend on (defined _SC_PAGESIZE). However, it does depend on
16702 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
16703 first reported by Jason Andrade in
16704 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16706 2004-02-25 Simon Josefsson <jas@extundo.com>
16708 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
16710 2004-02-25 Simon Josefsson <jas@extundo.com>
16712 * lib/strdup.h: New file.
16713 * lib/strdup.c: Include it.
16714 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
16715 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
16717 2004-02-23 Karl Berry <karl@gnu.org>
16719 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
16720 (from fencepost.gnu.org:/gd/gnuorg).
16722 2004-02-23 Karl Berry <karl@gnu.org>
16724 * config/srclistvars.sh (GNUORG) [karl]: redefine.
16725 * config/srclist.txt: add maintain/standards documents.
16727 2004-02-18 Bruno Haible <bruno@clisp.org>
16729 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
16730 Reported by Derek Robert Price <derek@ximbiot.com>.
16732 2004-02-16 Karl Berry <karl@gnu.org>
16734 * config/mkinstalldirs, install-sh: update from automake.
16736 2004-02-06 Karl Berry <karl@gnu.org>
16738 * m4/po.m4: update from gettext 0.14.1.
16740 2004-02-06 Karl Berry <karl@gnu.org>
16742 * lib/config.charset: update from gettext 0.14.1.
16744 2004-02-05 Paul Eggert <eggert@twinsun.com>
16746 Add comments and code, prompted by suggestions from Bruno Haible
16748 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
16749 describing the enum quoting_style values.
16750 * lib/quotearg.c (quotearg_alloc): New function.
16751 (quotearg_buffer_restyled): Treat lone { and } as special.
16752 Treat = as special. Work around bug with older shells
16753 that "see" a '\' that is really the 2nd byte of a multibyte char.
16754 Quote empty string with shell_quoting_style.
16756 2004-02-03 Bruno Haible <bruno@clisp.org>
16758 * m4/pipe.m4: New file, from GNU gettext.
16760 2004-02-03 Bruno Haible <bruno@clisp.org>
16762 * lib/pipe.h: New file, from GNU gettext.
16763 * lib/pipe.c: New file, from GNU gettext.
16765 2004-01-27 Bruno Haible <bruno@clisp.org>
16767 * m4/execute.m4: New file, from GNU gettext.
16769 2004-01-27 Bruno Haible <bruno@clisp.org>
16771 * lib/execute.h: New file, from GNU gettext.
16772 * lib/execute.c: New file, from GNU gettext.
16773 * lib/w32spawn.h: New file, from GNU gettext.
16775 2004-01-24 Paul Eggert <eggert@twinsun.com>
16777 Merge from diffutils.
16779 * lib/file-type.c (file_type): Add typed memory objects.
16780 * lib/file-type.h (S_TYPEISTMO): New macro.
16782 * lib/c-stack.h (c_stack_action): Remove argv argument.
16783 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
16784 (die): Don't calculate message unless segv_action returns.
16785 (get_stack_location, min_address_from_argv, max_address_from_argv,
16786 volatile stack_base, volatile_stack_size): Remove.
16787 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16788 that every segmentation violation is a stack overflow. (Ouch!)
16789 See Debian bug 136249 (still outstanding) for more info about why
16790 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16792 2004-01-24 Paul Eggert <eggert@twinsun.com>
16794 Exit-status fix from coreutils.
16796 Use exit_failure consistently in place of EXIT_FAILURE,
16797 so that program exit statuses are consistent on failure.
16799 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16800 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16801 * lib/argmatch.h: Comment fix to match the above.
16802 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16803 Now a macro referring to exit_failure, instead of a separate
16804 variable. Include "exitfail.h" to get it.
16805 * lib/xstrtol.h: Include "exitfail.h".
16806 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16808 * lib/long-options.c (parse_long_options): Use prototype
16809 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
16812 2004-01-21 Jim Meyering <jim@meyering.net>
16814 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16815 so as not to conflict with a different-sized __mktime_internal
16816 function in GNU libc.
16817 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16818 Problem building statically-linked `ls' reported by Michael Brunnbauer.
16820 2004-01-20 Karl Berry <karl@gnu.org>
16822 * config/config.guess: update from config.
16824 * config/srclistvars.sh: GNUWWWLICENSES for karl.
16826 2004-01-20 Bruno Haible <bruno@clisp.org>
16828 Safer stack allocation.
16829 * lib/setenv.c: Include allocsa.h.
16830 (alloca): Remove fallback definition.
16831 (freea): Remove macro.
16832 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16835 2004-01-20 Bruno Haible <bruno@clisp.org>
16837 * m4/eealloc.m4: New file, from GNU gettext.
16839 2004-01-20 Bruno Haible <bruno@clisp.org>
16841 * m4/allocsa.m4: New file, from GNU gettext.
16843 2004-01-20 Bruno Haible <bruno@clisp.org>
16845 * lib/xallocsa.h: New file, from GNU gettext.
16846 * lib/xallocsa.c: New file, from GNU gettext.
16848 2004-01-20 Bruno Haible <bruno@clisp.org>
16850 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16852 2004-01-20 Bruno Haible <bruno@clisp.org>
16854 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16855 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16858 2004-01-20 Bruno Haible <bruno@clisp.org>
16860 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
16863 2004-01-20 Bruno Haible <bruno@clisp.org>
16865 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
16867 2004-01-20 Bruno Haible <bruno@clisp.org>
16869 * lib/eealloc.h: New file.
16871 2004-01-20 Bruno Haible <bruno@clisp.org>
16873 * lib/binary-io.h: Avoid warnings on Cygwin.
16875 2004-01-20 Bruno Haible <bruno@clisp.org>
16877 * lib/allocsa.h: New file, from GNU gettext.
16878 * lib/allocsa.c: New file, from GNU gettext.
16880 2004-01-18 Karl Berry <karl@gnu.org>
16882 * doc/gpl.texi, doc/lgpl.texi: new files.
16884 2004-01-18 Karl Berry <karl@gnu.org>
16886 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
16887 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
16889 2004-01-15 Paul Eggert <eggert@twinsun.com>
16891 Merge from coreutils.
16893 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
16894 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
16895 (gl_DEFAULT_POSIX2_VERSION): Move
16896 the documentation from 'configure' into 'config.hin',
16897 so that 'configure --help' isn't burdened by it and
16898 we don't have to worry about its formatting there.
16899 Reword the documentation so that it's more succinct
16900 and can be run together into a single paragraph.
16901 * m4/same.m4 (gl_SAME): Check for pathconf.
16903 2004-01-15 Paul Eggert <eggert@twinsun.com>
16905 Merge from coreutils.
16907 * lib/posixver.c: Include posixver.h.
16909 * lib/same.c: Include <stdbool.h>, <limits.h>.
16910 (_POSIX_NAME_MAX): Define if not defined.
16912 (same_name): If file names are silently truncated, report
16913 that the file names are the same if they are the same after
16914 the silent truncation.
16916 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
16917 conversion function.
16918 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
16919 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
16922 2004-01-15 Jim Meyering <jim@meyering.net>
16924 Merge from coreutils.
16926 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
16927 if no library is required.
16928 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
16929 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
16930 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
16931 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
16932 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
16933 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
16934 value, $ac_cv_search_crypt, if it's "none required".
16935 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
16936 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
16937 not gl_FUNC_GETLOADAVG.
16938 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
16939 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
16941 2004-01-15 Jim Meyering <jim@meyering.net>
16943 Merge from coreutils.
16945 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
16946 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
16947 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
16949 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
16950 optional configure-time default.
16952 * lib/version-etc.c (version_etc_copyright): Update copyright date.
16954 * lib/xreadlink.c (xreadlink): Correct outdated comment.
16956 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
16958 Merge from coreutils.
16960 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
16961 value, $ac_cv_search_nanosleep, if it's "none required".
16963 2004-01-14 Paul Eggert <eggert@twinsun.com>
16965 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
16966 with like-named macro in fnmatch.c.
16967 (EXT): Use an internal constant instead.
16969 Merge fnmatch patches from glibc.
16970 * lib/fnmatch.c (mbsinit): Remove define.
16971 Add libc_hidden_ver (__fnmatch, fnmatch).
16972 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
16973 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
16975 2004-01-14 Karl Berry <karl@gnu.org>
16977 * config/install-sh: update from automake.
16979 2004-01-13 Karl Berry <karl@gnu.org>
16981 * config/install-sh: update from automake.
16983 2004-01-09 Karl Berry <karl@gnu.org>
16985 * config/install-sh: update from automake.
16987 2004-01-05 Karl Berry <karl@gnu.org>
16989 * config/config.{sub,guess}: update from config.
16991 2003-12-31 Karl Berry <karl@gnu.org>
16993 * config/depcomp: update from automake.
16995 2003-12-14 Karl Berry <karl@gnu.org>
16997 * lib/config.charset: update from gettext-runtime.
16999 2003-12-03 Paul Eggert <eggert@twinsun.com>
17001 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17002 Bug reported by Alfred M. Szmidt.
17004 2003-12-03 Bruno Haible <bruno@clisp.org>
17006 * m4/gettext.m4: Upgrade from gettext-0.13.
17007 * m4/po.m4: Upgrade from gettext-0.13.
17008 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17009 * m4/intmax.m4: New file, from gettext-0.13.
17010 * m4/printf-posix.m4: New file, from gettext-0.13.
17012 2003-11-29 Karl Berry <karl@gnu.org>
17014 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17016 2003-11-25 Paul Eggert <eggert@twinsun.com>
17017 Bruno Haible <bruno@clisp.org>
17019 * lib/printf-parse.h: Don't include sys/types.h.
17020 (ARG_NONE): New macro.
17021 (char_directive): Change type of *arg_index fields to size_t.
17022 * lib/printf-parse.c: Don't include sys/types.h.
17023 (SSIZE_MAX): Remove macro.
17024 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17025 Remove unnecessary overflow check.
17026 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17029 2003-11-25 Bruno Haible <bruno@clisp.org>
17031 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17033 2003-11-25 Bruno Haible <bruno@clisp.org>
17035 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17038 2003-11-24 Paul Eggert <eggert@twinsun.com>
17040 * modules/alloca: Remove dependency on xalloc.
17042 2003-11-24 Paul Eggert <eggert@twinsun.com>
17044 * lib/alloca.c: Remove dependency on xalloc module.
17045 (xalloc_die): Remove.
17046 (memory_full) [!defined emacs]: New macro.
17047 [!defined emacs]: Don't include xalloc.h.
17048 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17049 address arithmetic overflows. Change datatypes a bit to avoid
17052 2003-11-22 Jim Meyering <jim@meyering.net>
17054 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17057 2003-11-21 Karl Berry <karl@gnu.org>
17059 * config/config.{sub,guess}: update from config.
17061 2003-11-18 Karl Berry <karl@gnu.org>
17063 * config/config.{sub,guess}: update from config.
17065 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17067 2003-11-17 Paul Eggert <eggert@twinsun.com>
17069 * README: Mention that S+T cannot overflow if S is the size of
17070 an existing object and T is sufficiently small.
17072 2003-11-17 Jim Meyering <jim@meyering.net>
17074 On systems without utime and without a utimes function capable of
17075 dealing with a NULL struct utimbuf* argument, this utime replacement
17076 could -- in unusual circumstances -- leak a file descriptor.
17077 * lib/utime.c: Include <unistd.h> and <errno.h>.
17078 (utime_null): Be sure to close `fd' and to preserve errno.
17079 Reported by Geoff Collyer via Arnold Robbins.
17081 2003-11-17 Bruno Haible <bruno@clisp.org>
17083 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17084 (Depends-on): Add xsize.
17086 2003-11-17 Bruno Haible <bruno@clisp.org>
17088 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17090 2003-11-17 Bruno Haible <bruno@clisp.org>
17092 * lib/vasnprintf.c (alloca): Remove fallback definition.
17093 (freea): Remove definition.
17094 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17095 Reported by Paul Eggert.
17097 2003-11-16 Paul Eggert <eggert@twinsun.com>
17098 Bruno Haible <bruno@clisp.org>
17100 Protect against address arithmetic overflow.
17101 * lib/printf-args.h: Include stddef.h.
17102 (arguments): Change type of field 'count' to size_t.
17103 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17104 'unsigned int' where appropriate.
17105 * lib/printf-parse.h: Include sys/types.h.
17106 (char_directive): Change type of *arg_index fields to ssize_t.
17107 (char_directives): Change type of fields 'count', max_*_length to
17109 * lib/printf-parse.c: Include sys/types.h and xsize.h.
17110 (SSIZE_MAX): Define fallback value.
17111 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17112 instead of 'int' where appropriate. Check a_allocated, d_allocated
17113 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17114 * lib/vasnprintf.c: Include xsize.h.
17115 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17116 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17117 overflow. Avoid wraparound when converting a width or precision from
17120 2003-11-16 Bruno Haible <bruno@clisp.org>
17122 Update from GNU gettext.
17123 * lib/printf-parse.c: Generalize to it can be compiled for wide
17125 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17126 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17127 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17128 SNPRINTF): New macros.
17129 Don't include <alloca.h> if the file is used inside libintl.
17130 (local_wcslen): New function, for Solaris 2.5.1.
17131 (VASNPRINTF): Use it instead of wcslen.
17133 2003-11-16 Bruno Haible <bruno@clisp.org>
17135 * lib/xsize.h (xmax): New function.
17136 (xsum, xsum3, xsum4): Declare as "pure" functions.
17138 2003-11-12 Paul Eggert <eggert@twinsun.com>
17140 * modules/xalloc (Files): Undo latest change, since xalloc.h
17141 no longer needs SIZE_MAX or PTRDIFF_MAX.
17143 2003-11-12 Paul Eggert <eggert@twinsun.com>
17145 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17148 2003-11-12 Paul Eggert <eggert@twinsun.com>
17150 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17151 "return", to pacify some unknown compiler. Problem reported
17152 by Joerg Schilling.
17154 2003-11-12 Paul Eggert <eggert@twinsun.com>
17156 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17157 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17158 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
17159 heuristic is just as accurate as far as we know, and it removes a
17160 dependency on size_max.m4 and ptrdiff_max.m4.
17162 2003-11-11 Bruno Haible <bruno@clisp.org>
17164 * modules/xsize (Files): Add m4/size_max.m4.
17165 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17167 2003-11-11 Bruno Haible <bruno@clisp.org>
17169 * m4/size_max.m4: New file.
17170 * m4/ptrdiff_max.m4: New file.
17171 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17172 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17173 (gl_XALLOC): Invoke it.
17175 2003-11-11 Bruno Haible <bruno@clisp.org>
17177 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17178 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17181 2003-11-10 Paul Eggert <eggert@twinsun.com>
17183 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17184 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17185 rejected some allocations of exactly SIZE_MAX - 2 bytes.
17187 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17188 not (size_t) -1, since it's defined here.
17190 2003-11-09 Karl Berry <karl@gnu.org>
17192 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17194 2003-11-06 Paul Eggert <eggert@twinsun.com>
17196 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17197 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17198 Reject sizes of exactly SIZE_MAX bytes.
17199 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17200 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17202 2003-11-05 Bruno Haible <bruno@clisp.org>
17204 * lib/xsize.h: Include limits.h, to avoid a possible collision with
17205 SIZE_MAX defined in <limits.h> on Solaris.
17207 2003-11-04 Jim Meyering <jim@meyering.net>
17209 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17210 variable names, rather than @VAR@.
17211 * modules/poll: Likewise.
17213 2003-11-04 Bruno Haible <bruno@clisp.org>
17215 * modules/xsize: New file.
17216 * modules/linebreak: Depend on xsize.
17217 * MODULES.html.sh (func_all_modules): Add xsize.
17219 2003-11-04 Bruno Haible <bruno@clisp.org>
17221 * m4/xsize.m4: New file.
17223 2003-11-04 Bruno Haible <bruno@clisp.org>
17225 * lib/xsize.h: New file.
17226 * lib/linebreak.c: Include xsize.h.
17227 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17228 argument for overflow.
17229 Suggested by Paul Eggert.
17231 2003-11-03 Karl Berry <karl@gnu.org>
17233 * config/config.{guess,sub}: update from config.
17235 2003-11-03 Jim Meyering <jim@meyering.net>
17237 * modules/userspec (lib_SOURCES): Add userspec.h.
17238 (Include): Add "userspec.h".
17239 Improve description.
17241 2003-11-03 Jim Meyering <jim@meyering.net>
17243 * lib/userspec.c: Include "userspec.h".
17244 * lib/userspec.h: New file.
17246 2003-11-03 Bruno Haible <bruno@clisp.org>
17248 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17250 2003-11-03 Bruno Haible <bruno@clisp.org>
17252 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17253 available, to avoid (extremely rare) race condition.
17254 Suggested by Paul Eggert.
17256 2003-11-02 Karl Berry <karl@gnu.org>
17258 * config/srclist.txt (vasprintf.c): sync broken, sigh.
17260 2003-10-31 Paul Eggert <eggert@twinsun.com>
17262 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17263 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17264 (read_filesystem_list): Set and use me_type_malloced.
17265 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17266 whatever the type happens to be), for brevity and consistency.
17267 Check for size calculation overflow on Alphas running OSF/1.
17269 2003-10-31 Jim Meyering <jim@meyering.net>
17271 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17273 * lib/linebuffer.c: Include <string.h> for declaration of memset.
17275 2003-10-30 Paul Eggert <eggert@twinsun.com>
17276 Bruno Haible <bruno@clisp.org>
17278 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17279 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17281 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
17283 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17284 netbsd*-gnu*. Suggested by Robert Millan.
17286 2003-10-29 Paul Eggert <eggert@twinsun.com>
17288 * modules/group-member: Depend on stdbool.
17290 2003-10-29 Paul Eggert <eggert@twinsun.com>
17292 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17294 2003-10-29 Paul Eggert <eggert@twinsun.com>
17296 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
17297 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
17298 after the 'gnu' in these cases. This fixes some bugs in the
17299 previous change, and is based on suggestions by Robert Millan.
17301 2003-10-29 Paul Eggert <eggert@twinsun.com>
17303 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17304 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
17306 * lib/quotearg.c (quotearg_n_options): Use it.
17307 * lib/group-member.c: Include <stdbool.h>.
17308 (free_group_info): Arg is now const *; don't free arg.
17309 (get_group_info): Now returns bool and accepts struct group_info *,
17310 rather than returning a malloc'ed struct group_info *.
17311 All uses changed. Check for overflow in internal size calculation.
17313 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17314 rather than xmalloc/xrealloc.
17315 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17316 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
17317 conformance bug: the old code used a pointer after freeing the
17318 storage that it addressed.
17319 * lib/hash.c (hash_initialize): Simplify the code by using
17320 xalloc_oversized rather than doing it by hand.
17321 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17322 the buffer preserved. Use free and xmalloc instead.
17323 * lib/quotearg.c (quotearg_n_options): Likewise.
17324 Use a simpler test for size overflow. Don't use xalloc_oversized
17325 because unsigned int might be wider than size_t (!); this suggests
17326 that we should switch from unsigned int to size_t for slot numbers.
17328 2003-10-28 Paul Eggert <eggert@twinsun.com>
17330 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17331 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
17332 NetBSD kernels. Requested by Richard Stallman.
17334 2003-10-27 Paul Eggert <eggert@twinsun.com>
17336 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17337 to allocate the returned structure. Do not allocate a subarray,
17338 as x2nrealloc will do that.
17339 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17340 instead of xnrealloc.
17341 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17343 2003-10-27 Bruno Haible <bruno@clisp.org>
17345 * lib/stdbool_.h: Better support for BeOS.
17347 2003-10-26 Paul Eggert <eggert@twinsun.com>
17349 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17352 2003-10-26 Paul Eggert <eggert@twinsun.com>
17354 * lib/xalloc.h (xalloc_oversized): New static inline function, for
17355 callers that want to do their own size-overflow checking. Include
17356 <stdbool.h>, since xalloc_oversized returns bool.
17357 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
17358 to use xalloc_oversized.
17360 Add two functions x2realloc, x2nrealloc, for programs that grow
17361 arrays dynamically by doubling their sizes.
17362 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17363 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17366 Port to C99 semantics for 'inline' of external functions.
17367 Bug reported by Bruno Haible.
17368 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17369 with the old contents of xnmalloc.
17370 (xnmalloc, xmalloc): Use it.
17371 (xnrealloc_inline): New static inline function,
17372 with the old contents of xnrealloc.
17373 (xnrealloc, xrealloc): Use it.
17375 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17378 2003-10-26 Karl Berry <karl@gnu.org>
17380 * config/srclist.txt (COPYING.DOC): no longer available from
17381 /gd/gnuorg; don't know where the ultimate source is.
17383 2003-10-25 Paul Eggert <eggert@twinsun.com>
17385 Fix several address-calculation bugs in the hash modules,
17386 plus some minor code cleanup.
17388 * lib/hash.h: Include <stdbool.h>, for bool.
17389 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17390 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17391 hash_get_n_entries, hash_get_max_bucket_length,
17392 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17393 hash_rehash): Use size_t rather than unsigned.
17394 * lib/hash.c (struct hash_table, hash_get_n_buckets,
17395 hash_get_n_buckets_used, hash_get_n_entries,
17396 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17397 hash_get_entries, hash_do_for_each, hash_string, is_prime,
17398 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17400 (SIZE_MAX): Define if not defined.
17401 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17402 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17404 Use const * when possible.
17405 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17406 (check_tuning): Fix bug: if tuning parameters were very close to
17407 0 or 1, rounding errors could have caused subscript violations.
17408 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17409 (hash_initialize): Add 'fail:' label
17410 to free table and return NULL, and use it to simplify code.
17411 Use calloc rather than clearing the storage ourself.
17412 (hash_initialize, hash_rehash): Check for arithmetic overflow in
17413 buffer size calculations.
17414 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17415 Include <stddef.h>, for size_t.
17416 * lib/hash-pjw.c (hash_pjw): Likewise.
17417 Switch to method described by Bruno Haible.
17418 Include <limits.h>, for CHAR_BIT.
17419 (SIZE_BITS): New macro.
17421 2003-10-23 Paul Eggert <eggert@twinsun.com>
17423 * m4/getline.m4 (AM_FUNC_GETLINE):
17424 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17425 hosts. Problem reported by Derek Robert Price in
17426 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17427 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17428 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17430 2003-10-21 Paul Eggert <eggert@twinsun.com>
17432 * lib/getndelim2.c (getndelim2): When size calculation overflows,
17433 ceiling the allocation at NMAX bytes rather than silently
17434 discarding input bytes before NMAX is reached. This makes
17435 a difference only if NMAX exceeds SIZE_MAX / 2.
17437 * lib/obstack.c: Merge from glibc.
17438 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17439 Add libc_hidden_def (_obstack_newchunk).
17440 (_obstack_free) [! defined _LIBC]: Remove.
17441 [defined _LIBC]: Make a strong alias from obstack_free, rather than
17442 a clone of the function body.
17443 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17444 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17446 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17448 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17451 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17452 (obstack_ptr_grow_fast, obstack_int_grow_fast):
17453 Don't use lvalue casts, as GCC plans to remove support for them
17454 in GCC 3.5. Reported by Joseph S. Myers. This bug
17455 was also present in the non-GCC version, indicating that this
17456 code had always been buggy and had never been widely used.
17457 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17458 Use the fast variant of each macro, rather than copying the
17459 definiens of the fast variant; that way, we'll be more likely to
17460 catch future bugs in the fast variants.
17462 2003-10-20 Bruno Haible <bruno@clisp.org>
17464 * modules/wait-process: New file.
17465 * MODULES.html.sh (func_all_modules): Add wait-process.
17467 2003-10-20 Bruno Haible <bruno@clisp.org>
17469 * m4/wait-process.m4: New file.
17471 2003-10-20 Bruno Haible <bruno@clisp.org>
17473 * lib/wait-process.h: New file, from GNU gettext.
17474 * lib/wait-process.c: New file, from GNU gettext.
17476 2003-10-19 Jim Meyering <jim@meyering.net>
17478 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17481 2003-10-18 Karl Berry <karl@gnu.org>
17483 * config/config.guess: update from config.
17485 2003-10-16 Paul Eggert <eggert@twinsun.com>
17487 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17488 (getgroups): First arg is int, not size_t.
17489 Don't let 'free' mangle errno.
17491 2003-10-16 Paul Eggert <eggert@twinsun.com>
17493 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17495 2003-10-16 Karl Berry <karl@gnu.org>
17497 * config/config.{guess,sub}: update from config.
17499 2003-10-16 Jim Meyering <jim@meyering.net>
17501 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17504 2003-10-15 Paul Eggert <eggert@twinsun.com>
17506 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17507 (SIZE_MAX): Remove.
17508 (new_exclude, add_exclude_file): Initial size no longer needs to
17510 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17511 our own address arithmetic overflow checking.
17513 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17514 (fnmatch): Do not alloca more than 2000 wide characters;
17515 instead, use malloc for large buffers.
17516 Check for address arithmetic overflow, and return -1
17517 with errno set to ENOMEM in that case.
17518 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17519 (NEW_PATTERN): Do not alloca more than 8000 bytes;
17520 instead, return -1. Check for address arithmetic overflow.
17522 2003-10-14 Paul Eggert <eggert@twinsun.com>
17524 Handle invalid suffixes and overflow independently, so that
17525 callers can treat them independently as needed. Fix some bugs in
17526 suffix handling, e.g., "100k@" was not diagnosed as an invalid
17527 suffix for a human-readable blocksize. The major caller-visible
17528 change is the addition of a new
17529 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17530 that both overflow and suffix chars were found.
17532 * lib/human.c (humblock): Don't check separately for invalid suffix
17533 char; that is xstrtoumax's job (now that its bug is fixed).
17534 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17535 INTMAX_MAX]: New macros.
17536 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17537 TYPE_MAXIMUM): New macros.
17538 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17539 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17540 if overflow occurs, as it's what __strtol does and it's more useful
17542 (__xstrtol): If __strtol reports some error other than ERANGE,
17543 reflect it to the caller as LONGINT_INVALID. If it reports
17544 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17545 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17546 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17548 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
17549 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17550 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17551 [defined UINTMAX_MAX]: New macros.
17553 2003-10-14 Bruno Haible <bruno@clisp.org>
17555 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17557 2003-10-14 Bruno Haible <bruno@clisp.org>
17559 * m4/sig_atomic_t: New file, from GNU gettext.
17560 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17562 2003-10-14 Bruno Haible <bruno@clisp.org>
17564 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17565 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17566 Also use volatile where needed.
17568 2003-10-12 Paul Eggert <eggert@twinsun.com>
17570 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
17571 Change maintainer from Bruno Haible to 'all'.
17573 2003-10-12 Paul Eggert <eggert@twinsun.com>
17575 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17577 2003-10-12 Paul Eggert <eggert@twinsun.com>
17579 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17580 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17581 and define in terms of the other primitives.
17582 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17583 (SIZE_MAX): Define if not already defined.
17584 (array_size_overflow): New function.
17585 (xalloc_die): Abort instead of exiting if 'error' returns.
17586 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17587 (xmalloc, xrealloc): Use them.
17588 (xcalloc): Check for address arithmetic overflow.
17589 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17590 a bit faster than strcpy.
17592 2003-10-10 Simon Josefsson <jas@extundo.com>
17594 * modules/argp (Depends-on): Add restrict and strcase.
17596 2003-10-10 Simon Josefsson <jas@extundo.com>
17598 * m4/argp.m4: Add AC_C_INLINE.
17600 2003-10-08 Paul Eggert <eggert@twinsun.com>
17602 Merge getpass from libc, plus a few fixes.
17604 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17605 Include <stdbool.h>.
17606 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17607 __fsetlocking to empty.
17608 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17609 do include <bits/libc-lock.h>.
17610 Do not include <fcntl.h>; not needed.
17611 [_LIBC]: Include <wchar.h>.
17612 (NOTCANCEL_MODE): New macro.
17613 (flockfile, funlockfile) [_LIBC]: New macros.
17614 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17615 [!_LIBC]: New macros.
17616 (call_fclose): New function.
17617 (getpass): Use it. Save tty stream separately; this simplifies the
17618 code and makes it more reliable if stdin happens to equal stdout.
17619 Invoke __fsetlocking on tty.
17620 Handle thread cancellation if needed.
17621 Namespace cleanup (use __tcgetattr, __getline).
17622 Use bool for Booleans.
17623 [USE_IN_LIBIO]: Handle wide streams.
17624 [!_LIBC]: Unconditionally do the fseek, since we don't know what
17625 stream might go where.
17627 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17628 doesn't have to include <stdio.h> before us.
17629 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17630 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17631 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17632 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17633 if not declared, so that we can use getpass.c code from libc without
17635 (flockfile, ftrylockfile, funlockfile): New macros.
17637 2003-10-08 Paul Eggert <eggert@twinsun.com>
17639 * modules/getpass: Depend on stdbool.
17641 2003-10-08 Paul Eggert <eggert@twinsun.com>
17643 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17645 2003-10-07 Karl Berry <karl@gnu.org>
17647 * config/config.{guess,sub}: update from config.
17649 2003-10-06 Jim Meyering <jim@meyering.net>
17650 Bruno Haible <bruno@clisp.org>
17652 This lets translators provide better translations for the
17653 "Written by ..." part of --version output.
17654 * lib/version-etc.h: Include stdarg.h.
17655 (version_etc_copyright): Declare as readonly.
17656 (version_etc): Make this function variadic with a NULL-terminated list
17657 of author name strings.
17658 (version_etc_va): New declaration.
17659 * lib/version-etc.c: Include stdarg.h, stdlib.h.
17660 (version_etc_copyright): Declare as readonly.
17661 (version_etc_va): New function. Provide a different translatable string
17662 for each possible number of authors < 10. Abbreviate when there are 10
17664 (version_etc): Make this function variadic. Call version_etc_va.
17665 Suggestion from Gary V. Vaughan.
17667 * lib/long-options.h (parse_long_options): Change prototype: the
17668 authors string is moved to the end and becomes variadic.
17669 * lib/long-options.c: Include stdarg.h.
17670 (parse_long_options): Make this function variadic, too.
17671 Call version_etc_va, not version_etc.
17673 2003-10-06 Bruno Haible <bruno@clisp.org>
17675 * modules/version-etc-2: Remove file.
17676 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
17678 2003-10-06 Bruno Haible <bruno@clisp.org>
17680 * modules/fatal-signal: New file.
17681 * MODULES.html.sh (func_all_modules): Add fatal-signal.
17683 2003-10-06 Bruno Haible <bruno@clisp.org>
17685 * m4/fatal-signal.m4: New file.
17686 * m4/signalblocking.m4: New file, from GNU gettext.
17688 2003-10-06 Bruno Haible <bruno@clisp.org>
17690 * lib/version-etc-2.h: Remove file.
17691 * lib/version-etc-2.c: Remove file.
17693 2003-10-06 Bruno Haible <bruno@clisp.org>
17695 * lib/fatal-signal.h: New file, from GNU gettext.
17696 * lib/fatal-signal.c: New file, from GNU gettext.
17698 2003-10-05 Paul Eggert <eggert@twinsun.com>
17700 * README: Rework advice for preventing empty .o files.
17701 Don't recommend ELIDE constructs. Recommend <stddef.h>,
17704 2003-10-04 Karl Berry <karl@gnu.org>
17706 * lib/argp*: update from libc.
17708 2003-10-04 Karl Berry <karl@gnu.org>
17710 * config/config.{guess,sub}: update from config.
17712 2003-10-02 Bruno Haible <bruno@clisp.org>
17714 * modules/lchown (Include): Add lchown.h.
17715 * modules/time_r (Include): Use "..." syntax.
17716 * modules/xgetdomainname (Include): Add xgetdomainname.h.
17718 2003-10-01 Simon Josefsson <jas@extundo.com>
17720 * MODULES.html.sh (func_all_modules): Move gethostname from section
17721 'based on' to section 'lacking' POSIX:2001.
17723 2003-10-01 Larry Jones <lawrence.jones@eds.com>
17725 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
17726 to output mode on the same stream.
17728 2003-09-29 Paul Eggert <eggert@twinsun.com>
17730 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
17731 Fix arg typo in previous patch.
17733 2003-09-28 Jim Meyering <jim@meyering.net>
17735 * lib/error.c: Correct cpp indentation.
17737 2003-09-27 Paul Eggert <eggert@twinsun.com>
17739 * modules/free: New file.
17741 2003-09-27 Paul Eggert <eggert@twinsun.com>
17743 * m4/free.m4: New file.
17745 2003-09-27 Paul Eggert <eggert@twinsun.com>
17747 * lib/minmax.h (MIN, MAX)
17748 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
17749 Omit the special code that used __typeof__, since we worry that
17750 it could be more trouble than it's worth. See:
17751 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
17752 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
17754 * lib/free.c: New file.
17756 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
17758 Trivial fixes to Makefile.am parts of module listings.
17759 * modules/strstr: Append strstr.h to lib_SOURCES.
17760 * modules/strcase: Likewise, for strcase.h.
17762 2003-09-27 Karl Berry <karl@gnu.org>
17764 * config/mkinstalldirs: update from automake.
17766 2003-09-26 Paul Eggert <eggert@twinsun.com>
17768 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
17769 (error_tail): Do not loop, reallocating temporary buffer, since
17770 the output cannot contain more wide characters than the input
17771 contains bytes, the size must be big enough already. This avoids
17772 one potential size overflow calculation. Check for size overflow
17773 when calculating temporary buffer size. Free temporary buffer
17774 when done, if it was allocated with malloc; this plugs a memory
17775 leak. Remove casts from void * to pointers, that are no longer
17776 needed now that we're assuming C89 or better.
17778 Merge error changes from glibc.
17780 * lib/error.c, error.h: Update copyright notice header to match glibc.
17781 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17782 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17783 Disable cancellation while printing error.
17784 * lib/error.h: Prepend __ to parameter names.
17786 2003-09-26 Jim Meyering <jim@meyering.net>
17788 * lib/error.c (error_tail): Move some declarations
17789 into inner scope where the local variables are used.
17791 2003-09-26 Bruno Haible <bruno@clisp.org>
17793 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17795 Don't define stpncpy through config.h; it's now done through stpncpy.h.
17797 2003-09-26 Bruno Haible <bruno@clisp.org>
17799 * lib/stpncpy.h (gnu_stpncpy): New declaration.
17800 (stpncpy): Define as alias for gnu_stpncpy.
17801 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17803 2003-09-25 Simon Josefsson <jas@extundo.com>
17805 * lib/xgetdomainname.h: New file.
17806 * lib/xgetdomainname.c: New file.
17808 2003-09-25 Simon Josefsson <jas@extundo.com>
17809 Bruno Haible <bruno@clisp.org>
17811 * modules/getdomainname: New file.
17812 * modules/xgetdomainname: New file.
17813 * MODULES.html.sh (func_all_modules): Add getdomainname,
17816 2003-09-25 Simon Josefsson <jas@extundo.com>
17817 Bruno Haible <bruno@clisp.org>
17819 * m4/getdomainname.m4: New file.
17821 2003-09-25 Simon Josefsson <jas@extundo.com>
17822 Bruno Haible <bruno@clisp.org>
17824 * lib/getdomainname.h: New file.
17825 * lib/getdomainname.c: New file.
17827 2003-09-25 Karl Berry <karl@gnu.org>
17829 * lib/argp-fmtstream.c, argp-help.c: update from libc.
17831 2003-09-25 Karl Berry <karl@gnu.org>
17833 * config/install-sh: update from automake.
17835 2003-09-25 Bruno Haible <bruno@clisp.org>
17837 * modules/version-etc-2: New file, from modules/version-etc with
17839 * MODULES.html.sh (func_all_modules): Add version-etc-2.
17841 2003-09-25 Bruno Haible <bruno@clisp.org>
17843 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17844 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17846 2003-09-24 Simon Josefsson <jas@extundo.com>
17848 * modules/xgethostname: Add xgethostname.h.
17850 2003-09-24 Paul Eggert <eggert@twinsun.com>
17852 * lib/linebuffer.c (freebuffer): Don't free the argument, just
17853 the buffer associated with the argument. Bug reported by
17856 2003-09-24 Paul Eggert <eggert@twinsun.com>
17858 * README: Document assumptions that 'int' is at least 32 bits
17859 wide, that integer arithmetic is 2's complement without overflow,
17860 that there are no holes in integer values, that adding sizes of
17861 two nonoverlapping objects can't overflow, and that all-bits-zero
17862 yields scalar zero. Fix spelling and capitalization typos.
17864 2003-09-19 Karl Berry <karl@gnu.org>
17866 * lib/argp.h: update from libc.
17868 2003-09-17 Paul Eggert <eggert@twinsun.com>
17870 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
17871 to avoid spurious warnings like "AC_RUN_IFELSE was called before
17872 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
17874 2003-09-17 Paul Eggert <eggert@twinsun.com>
17876 * gnulib-tool: Use "test -h", not "test -L", for portability
17877 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
17878 (tags_regexp): Remove, since \| doesn't conform to POSIX.
17879 (sed_extract_prog): Issue s commands one-by-one, rather than
17880 using \| in one s command.
17882 2003-09-16 Paul Eggert <eggert@twinsun.com>
17884 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
17885 input error, instead of returning NULL the next time we are called
17886 (and therefore losing track of errno).
17888 2003-09-16 Bruno Haible <bruno@clisp.org>
17890 * gnulib-tool (func_create_testdir): Warn about duplicated
17893 2003-09-15 Paul Eggert <eggert@twinsun.com>
17895 * modules/argmatch, modules/fatal, modules/obstack,
17896 modules/xalloc, modules/xgethostname: Sort dependencies by
17897 importance, not alphabetically.
17899 2003-09-15 Paul Eggert <eggert@twinsun.com>
17901 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
17902 fails, so that the caller gets the proper errno.
17904 * lib/readutmp.c (read_utmp): Likewise.
17905 Check for fstat error. Close stream and free storage
17908 2003-09-14 Karl Berry <karl@gnu.org>
17910 * config/srclist.txt (strdup.c): disable for c89 changes.
17912 2003-09-14 Jim Meyering <jim@meyering.net>
17914 * lib/getloadavg.c: Correct cpp indentation.
17915 * lib/strdup.c: Likewise.
17916 * lib/vasnprintf.c: Likewise.
17918 2003-09-14 Bruno Haible <bruno@clisp.org>
17920 * modules/fwriteerror: New file.
17921 * MODULES.html.sh (func_all_modules): Add fwriteerror.
17923 2003-09-14 Bruno Haible <bruno@clisp.org>
17925 * lib/fwriteerror.h: New file.
17926 * lib/fwriteerror.c: New file.
17928 2003-09-12 Paul Eggert <eggert@twinsun.com>
17930 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
17931 modules/xgethostname, modules/xalloc: Depend on exit.
17933 2003-09-12 Paul Eggert <eggert@twinsun.com>
17935 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
17937 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
17938 and AC_MINIX, too, so that their extensions are available.
17940 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
17941 This macro has been superseded by gl_BACKUPFILE.
17943 More patches to assume C89 or better.
17945 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
17947 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
17949 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
17950 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
17951 Include <string.h>, <stdlib.h> unconditionally.
17952 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
17953 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
17954 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
17955 headers or for string.h.
17956 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
17959 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
17961 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
17962 * m4/userspec.m4 (gl_USERSPEC): Likewise.
17963 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
17964 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
17965 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17966 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
17968 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
17969 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
17970 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
17972 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
17973 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
17974 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
17977 2003-09-12 Paul Eggert <eggert@twinsun.com>
17979 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
17980 * lib/obstack.c [!defined _LIBC]: Likewise.
17981 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
17982 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
17983 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
17985 More changes to assume C89 or better.
17987 * lib/error.c (error_tail): Assume vprintf.
17989 * lib/argmatch.c (getenv): Remove decl.
17990 * lib/progreloc.c (get_full_program_name): Define via prototype.
17991 * lib/setenv.c (clearenv): Likewise.
17992 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
17994 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
17995 (malloc, memcpy): Remove decls.
17996 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
17997 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
17998 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17999 (memcpy): Remove macro.
18000 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18001 (__P): Remove. All uses removed.
18002 (PTR): Remove. All uses changed to void *.
18003 (CHAR_BIT, NULL): Remove.
18004 (spaces, zeros, memset_space, memset_zero)
18005 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18007 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18008 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18009 Define with prototype.
18010 Remove now-unnecessary prototype decl.
18011 (extra_args_spec): Assume ANSI C. All uses changed.
18012 (extra_args_spec_iso): Remove.
18013 (my_strftime, emacs_strftimeu): Define via prototype.
18014 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18016 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18017 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18018 (strtoul, strtol): Remove decls.
18019 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18021 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18022 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
18023 (LOCALE_PARAM_PROTO): New macro.
18024 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18025 (INTERNAL (strtol), strtol): Define with a prototype.
18026 (PARAMS): Remove. All uses removed.
18027 * lib/tempname.c: Include <string.h> unconditionally.
18028 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18029 * lib/xgethostname.c (main): Define with a prototype.
18030 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18031 Include <stdlib.h> unconditionally.
18032 (calloc, malloc, realloc, free): Remove decls.
18033 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18034 Include <stdlib.h> unconditionally. Sort include file names.
18036 (xstrtod): Define with a prototype.
18037 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18038 (strtol, strtoul): Remove decls.
18040 2003-09-11 Paul Eggert <eggert@twinsun.com>
18042 More patches to assume C89 or better.
18043 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18044 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18045 string.h, memchr, STDC_HEADERS.
18047 2003-09-11 Paul Eggert <eggert@twinsun.com>
18049 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18050 Include <stdlib.h>, <string.h> unconditionally.
18051 Remove now-unnecessary cast to char *.
18052 * lib/strnlen.c: Include <string.h> unconditionally.
18053 * lib/yesno.c (yesno): Define with a prototype.
18055 2003-09-11 Bruno Haible <bruno@clisp.org>
18057 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18059 2003-09-10 Jim Meyering <jim@meyering.net>
18061 * lib/error.c: Correct indentation of cpp directives.
18063 2003-09-10 Bruno Haible <bruno@clisp.org>
18065 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18066 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18067 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18068 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18069 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18070 <stdlib.h> and <string.h> checks.
18071 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18072 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18074 2003-09-10 Bruno Haible <bruno@clisp.org>
18076 * lib/strcspn.c: Include <string.h> unconditionally.
18077 * lib/strpbrk.c: Include <string.h> unconditionally.
18078 * lib/strstr.c: Include <string.h> unconditionally.
18079 * lib/unicodeio.c: Include <string.h> unconditionally.
18080 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18081 * lib/unsetenv.c: Likewise.
18082 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18083 * lib/yesno.c: Include <stdlib.h> unconditionally.
18084 (rpmatch): Add prototype.
18086 2003-09-09 Paul Eggert <eggert@twinsun.com>
18088 More patches to assume C89 or better.
18089 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18090 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18091 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18093 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18095 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18097 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18099 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18100 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18101 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18103 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18104 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18106 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18108 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18109 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18110 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18111 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18112 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18113 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18115 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18116 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18117 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18118 C headers, or for string.h.
18119 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18120 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18121 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18122 headers, memory.h, stdlib.h, string.h, strings.h.
18123 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18124 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18125 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18127 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18128 headers, memory.h, string.h.
18129 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18130 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18132 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18134 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18135 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18136 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18137 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18138 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18140 2003-09-09 Paul Eggert <eggert@twinsun.com>
18144 * lib/acosl.c (main): Use a prototype.
18145 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18148 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18150 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18151 (getopt, etopt_long, getopt_long_only, _getopt_internal)
18152 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18154 * lib/getopt.c (const): Remove macro.
18155 Include <string.h> unconditionally.
18156 (my_index): Remove; all uses changed to strchr.
18157 (strlen): Remove decl.
18158 (exchange): Remove forward decl; no longer needed.
18159 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18160 Define with prototype.
18161 * lib/getopt1.c (const): Remove macro.
18162 (getopt_long, getopt_long_only, main): Define with prototype.
18164 * lib/getugroups.c: Include <string.h> unconditionally.
18166 * lib/getusershell.c: Include <stdlib.h> unconditionally.
18167 (getusershell, setusershell, endusershell, readname, main):
18168 Define with prototypes.
18170 * lib/group-member.c: Include group-member.h first.
18171 Include <stdlib.h> unconditionally.
18173 * lib/hard-locale.c: Include hard-locale.h first.
18174 Include <stdlib.h>, <string.h> unconditionally.
18176 * lib/hash.c (free, malloc): Remove decls.
18177 Include <stdlib.h> unconditionally.
18179 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18180 (getenv): Do not declare.
18182 * lib/idcache.c: Include <string.h> unconditionally.
18184 * lib/long-options.c: Include long-options.h first, to test interface.
18185 Include <stdlib.h> unconditionally.
18187 * lib/makepath.c: Include makepath.h first, to test interface.
18188 Include <stdlib.h> and <string.h> unconditionally.
18190 * lib/linebuffer.c: Include <stdlib.h>.
18191 (free): Remove decl.
18193 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18194 stddef.h. rpl_malloc returns void *, not char *.
18195 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
18198 * lib/md5.h: Include <limits.h> unconditionally.
18199 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18200 (__P): Remove; all uses removed.
18201 * lib/md5.c: Include "md5.h" first.
18202 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18203 md5_buffer, md5_process_bytes, md5_process_block):
18204 Define with prototypes.
18205 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
18206 * lib/sha.c: Include "sha.h" first.
18207 Include <stdlib.h>, <string.h> unconditionally.
18209 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18210 * lib/memcmp.c (__ptr_t): Likewise.
18211 * lib/memrchr.c (__ptr_t): Likewise.
18212 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18213 Include <string.h> unconditionally.
18214 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18215 * lib/memchr.c: Include <stdlib.h> unconditionally.
18216 * lib/memchr.c (LONG_MAX): Remove.
18217 * lib/memrchr.c (LONG_MAX): Likewise.
18218 * lib/memchr.c (__memchr): Define via a prototype.
18219 * lib/memrchr.c (__memrchr): Likewise.
18220 * lib/memcmp.c (__P): Remove, and remove all uses.
18221 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18222 Remove forward decls; no longer needed.
18223 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18224 Use types required by C89 in prototype.
18226 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18227 * lib/savedir.c: Likewise.
18228 * lib/mkdir.c (free): Remove decl.
18229 * lib/rmdir.c (rmdir): Define with a prototype.
18230 * lib/savedir.c: Include savedir.h first, to test interface.
18232 * lib/mktime.c (STDC_HEADERS): Remove.
18233 Include <stdlib.h>, <string.h> unconditionally.
18235 * lib/modechange.c: Include <stdlib.h> unconditionally.
18236 (malloc): Remove decl.
18238 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18239 (free): Remove decl.
18241 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18242 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18243 (This type really should be intptr_t, but that's a C99ism.)
18244 (_obstack_memcpy): Remove: all uses changed to memcpy.
18245 Include <string.h> unconditionally.
18246 (struct obstack): Assume __STDC__ for types of members
18247 chunkfun, freefun, extra_arg.
18248 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18249 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18250 obstack_begin, obstack_specify_allocation,
18251 obstack_specify_allocation_with_arg, obstack_chunkfun,
18252 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18253 Remove unprototyped decls and the macros that use them.
18254 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
18255 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18256 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18257 (defined __STDC__ && __STDC__)]:
18258 Remove nonprototyped code.
18259 Include <stdlib.h> unconditionally.
18260 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18261 _obstack_allocated_p, _obstack_free, obstack_free,
18262 _obstack_memory_used, print_and_abort):
18263 Define using prototypes.
18264 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18265 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18266 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18267 obstack_next_free, obstack_object_size, obstack_room) [0]:
18268 Remove unused, unprototyped code.
18270 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18272 * lib/physmem.c (physmem_total, physmem_available, main): Define
18275 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18276 (main): Define with a prototype.
18278 * lib/posixver.c (getenv): Remove decl.
18280 * lib/putenv.c (malloc): Returns void *, not char *.
18281 Include <string.h> unconditionally.
18282 (strchr, memcpy, NULL): Do not define.
18284 * lib/readtokens.c: Include readtokens.h first, to test interface.
18285 Include <stdlib.h>, <string.h> unconditionally.
18286 (init_tokenbuffer): Define with a prototype.
18288 * lib/regex.c (PARAMS): Remove. All uses removed.
18289 All uses of _RE_ARGS removed, too.
18290 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18292 (bzero): Assume memset exists.
18293 (memcmp, memcpy, NULL): Remove.
18294 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18295 char, or assignments to local vars of type signed char.
18296 (init_syntax_once, PREFIX(extract_number_and_incr),
18297 PREFIX(print_partial_compiled_pattern),
18298 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18299 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18300 PREFIX(regex_grow_registers), PREFIX(regex_compile),
18301 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18302 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18303 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18304 wcs_compile_range, byte_compile_range, truncate_wchar,
18305 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18306 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18307 count_mbs_length, wcs_re_match_2_internal,
18308 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18309 PREFIX(alt_match_null_string_p),
18310 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18311 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18312 regfree, PREFIX(extract_number)): Define with prototype. Remove
18313 now-unnecessary declaration, if any.
18314 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18316 Remove now-unnecessary casts among pointer types.
18317 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
18319 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18320 (free): Remove decl.
18322 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18324 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18325 (free): Remove decl.
18327 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18328 * lib/xgetcwd.c: Likewise.
18330 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18331 (free): Remove decl.
18333 * lib/strchrnul.c (strchrnul): Define with a prototype.
18334 Fix bug: c_in was not converted to char before searching.
18336 The following changes are not K&R related:
18338 * lib/group-member.h: Include <sys/types.h>, so that this file is
18340 * lib/makepath.h: Likewise.
18342 * lib/getusershell.c (readname, default_index, line_size, readname):
18343 Use size_t, not int, for sizes.
18344 (readname): If the size overflows, report an error instead of
18347 2003-09-09 Paul Eggert <eggert@twinsun.com>
18349 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18352 2003-09-09 Paul Eggert <eggert@twinsun.com>
18354 * README: New section: portability guidelines.
18356 2003-09-09 Derek Robert Price <derek@ximbiot.com>
18358 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18361 2003-09-09 Derek Robert Price <derek@ximbiot.com>
18363 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18365 2003-09-08 Paul Eggert <eggert@twinsun.com>
18367 Assume C89 or better; remove K&R cruft.
18368 A few of these changes were first proposed by Derek Robert Price
18369 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18371 * lib/addext.c: Include <string.h> unconditionally.
18372 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18373 Don't declare getenv or malloc.
18375 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18376 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18378 (find_stack_direction, alloca): Use prototypes.
18380 * lib/atexit.c (atexit): Define using a prototype.
18382 * lib/basename.c, dirname.c, stripslash.c:
18383 Include <string.h> unconditionally.
18385 * lib/bcopy.c: Include <stddef.h>.
18386 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18388 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18390 * lib/error.h (error, error_at_line, error_print_progname)
18391 [! (defined (__STDC__) && __STDC__)]: Remove decls.
18392 * lib/error.c: Include error.h first, to check interface.
18393 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18394 (VA_START): Remove; all uses changeed to va_start.
18395 (exit, strerror): Remove decls.
18396 (error_print_progname): Prototype uncondionally.
18397 Don't include <errno.h>; no longer needed.
18398 (private_strerror): Remove.
18399 (error_tail): Always define.
18400 (error, error_at_line): Assume C89 or better; always use prototypes.
18401 * lib/fatal.c: Include "fatal.h" first, to test interface.
18402 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18403 (VA_START): Remove; all uses changed to va_start.
18404 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18406 (exit): Remove decl.
18407 (fatal): Prototype unconditionally. Assume va_start works.
18408 Abort at end, to pacify gcc.
18410 * lib/euidaccess.c (main): Define with a prototype.
18412 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18414 * lib/exitfail.c: Include <stdlib.h> unconditionally.
18416 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
18418 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18419 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18420 (getenv): Remove decl.
18421 (fnmatch): Define using a prototype.
18422 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18423 (FCT): Define using a prototype.
18425 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18427 * lib/gethostname.c: Include <stddef.h>.
18428 (gethostname): Define with prototype. Length is size_t, not int.
18430 2003-09-08 Paul Eggert <eggert@twinsun.com>
18432 Assume C89 or better; remove K&R cruft.
18433 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18434 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18435 string.h, getenv, malloc.
18436 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18438 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18439 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18440 do not check for strerror.
18441 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18442 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18443 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18444 do not check for doprnt or vprintf.
18445 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
18446 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18448 2003-09-08 Paul Eggert <eggert@twinsun.com>
18450 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18451 getversion.c should have been removed then, but was accidentally
18454 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18455 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18457 2003-09-08 Karl Berry <karl@gnu.org>
18459 * config/config.sub, config.guess, srclistvars.sh: update from savannah
18460 config, forget about prep.
18462 * config/depcomp, missing: update from automake.
18464 2003-09-07 Paul Eggert <eggert@twinsun.com>
18466 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
18467 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18469 2003-09-07 Paul Eggert <eggert@twinsun.com>
18471 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18472 copy_tm_result. Bug reported by Simon Josefsson in
18473 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18475 2003-09-06 Paul Eggert <eggert@twinsun.com>
18477 * m4/time_r.m4: New file.
18478 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18479 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18480 is. Check for timegm declaration.
18481 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18482 Do not check for gmtime_r.
18483 Replace mktime if __mktime_internal does not exist and if mktime
18484 hasn't been replaced already.
18486 2003-09-06 Paul Eggert <eggert@twinsun.com>
18488 * lib/time_r.c, lib/time_r.h: New files.
18490 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18492 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
18493 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18495 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18497 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18498 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18499 Include <time_r.h>.
18501 * lib/timegm.c: Switch to glibc implementation, with the following
18503 [defined HAVE_CONFIG_H]: Include <config.h>.
18504 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18505 (__mktime_internal) [!defined _LIBC]: New decl.
18506 (__gmtime_r) [!defined _LIBC]: New macro and function.
18507 (timegm): Use a prototype, since gnulib assumes C89.
18508 Do not bother declaring tmp to be const, as it's not really usefu.
18509 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18510 (timegm): Declare only if HAVE_DECL_TIMEGM.
18512 2003-09-06 Paul Eggert <eggert@twinsun.com>
18514 * MODULES.html.sh (func_all_modules): Add time_r.
18515 * modules/time_r: New file.
18516 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18517 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
18519 2003-09-03 Paul Eggert <eggert@twinsun.com>
18521 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18522 Bug reported by Lute Kamstra in
18523 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18525 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18526 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
18527 course with correspondingly smaller numbers for tomorrow and
18528 yesterday. From Tadayoshi Funaba. Originally installed into
18529 sh-utils on 1999-08-07, but the patch got lost (I guess during the
18532 2003-08-31 Simon Josefsson <jas@extundo.com>
18534 * modules/timegm: New file.
18535 * MODULES.html.sh (func_all_modules): Add timegm.
18537 2003-08-31 Simon Josefsson <jas@extundo.com>
18539 * m4/timegm.m4: New file.
18541 2003-08-31 Simon Josefsson <jas@extundo.com>
18543 * lib/timegm.h: New file.
18544 * lib/timegm.c: New file. Based on
18545 wget-1.8.2/src/http.c:mktime_from_utc.
18547 2003-08-31 Karl Berry <karl@gnu.org>
18549 * lib/argp.h: update from libc.
18551 2003-08-28 Bruno Haible <bruno@clisp.org>
18553 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18554 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18555 followed by '#define fnmatch fnmatch_posix' gives an error.
18557 2003-08-28 Bruno Haible <bruno@clisp.org>
18559 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18560 warning on QNX, which defines O_BINARY to 000000.
18562 2003-08-27 Jim Meyering <jim@meyering.net>
18564 * m4/mkstemp.m4: Require that the system mkstemp be able to create
18565 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
18566 would fail after 32. Reported by Danny Levinson. Details here:
18567 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18569 2003-08-24 Bruno Haible <bruno@clisp.org>
18571 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18572 MSVC7 <stdio.h> is included later.
18574 2003-08-22 Simon Josefsson <jas@extundo.com>
18576 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18578 2003-08-20 Karl Berry <karl@gnu.org>
18580 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18582 2003-08-20 Bruno Haible <bruno@clisp.org>
18584 * modules/progname: New file.
18585 * MODULES.html.sh (func_all_modules): Add progname.
18587 2003-08-20 Bruno Haible <bruno@clisp.org>
18589 * lib/progname.h: New file, from GNU gettext.
18590 * lib/progname.c: New file, from GNU gettext.
18591 * lib/progreloc.c: New file, from GNU gettext.
18593 2003-08-19 Jim Meyering <jim@meyering.net>
18595 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18596 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18598 2003-08-19 Bruno Haible <bruno@clisp.org>
18600 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18603 2003-08-19 Bruno Haible <bruno@clisp.org>
18605 * lib/xstrdup.c: Assume <string.h> exists.
18607 2003-08-18 Paul Eggert <eggert@twinsun.com>
18609 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
18612 2003-08-18 Jim Meyering <jim@meyering.net>
18614 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18615 * m4/lib-ld.m4: Likewise.
18617 2003-08-18 Jim Meyering <jim@meyering.net>
18619 * lib/setenv.h: Indent nested cpp directive.
18620 * lib/vasnprintf.c: Remove trailing blanks.
18622 2003-08-17 Simon Josefsson <jas@extundo.com>
18624 * modules/xstrndup: New file.
18625 * MODULES.html.sh (func_all_modules): Add xstrndup.
18627 2003-08-17 Simon Josefsson <jas@extundo.com>
18629 * modules/argp: Fix autoconf macro name. Add more dependencies.
18631 2003-08-17 Simon Josefsson <jas@extundo.com>
18633 * m4/xstrndup.m4: New file.
18635 2003-08-17 Simon Josefsson <jas@extundo.com>
18637 * m4/argp.m4: New file.
18639 2003-08-17 Simon Josefsson <jas@extundo.com>
18640 Bruno Haible <bruno@clisp.org>
18642 * lib/xstrndup.h: New file.
18643 * lib/xstrndup.c: New file.
18645 2003-08-17 Bruno Haible <bruno@clisp.org>
18647 * modules/strndup (Files, Include): Add lib/strndup.h.
18649 2003-08-17 Bruno Haible <bruno@clisp.org>
18651 * modules/euidaccess (Files): Add lib/euidaccess.h.
18653 2003-08-17 Bruno Haible <bruno@clisp.org>
18655 * lib/strndup.h: New file.
18657 2003-08-17 Bruno Haible <bruno@clisp.org>
18659 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18660 like AC_GNU_SOURCE.
18661 * modules/extensions (configure.ac): Comment out the invocation of
18662 gl_USE_SYSTEM_EXTENSIONS.
18664 2003-08-16 Paul Eggert <eggert@twinsun.com>
18666 Merges from coreutils, etc.
18667 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
18668 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
18669 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
18671 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
18672 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
18674 2003-08-16 Paul Eggert <eggert@twinsun.com>
18676 Document merge from coreutils.
18677 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
18678 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
18679 * modules/utime: Add m4/utimes-null.m4.
18681 2003-08-16 Paul Eggert <eggert@twinsun.com>
18683 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
18684 space, undoing this 2003-08-12 change:
18685 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18687 2003-08-16 Paul Eggert <eggert@twinsun.com>
18689 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
18690 strtoul.c from libc, undoing this 2003-08-12 change:
18691 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18693 2003-08-16 Jim Meyering <jim@meyering.net>
18695 Merges from coreutils.
18696 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
18697 prefix. Adjust cache variables similarly. Create 500 rather than
18698 just 300 files, to exercise bug on Darwin6.5, too.
18699 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
18701 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
18702 AM_SYS_POSIX_TERMIOS.
18703 Reported by mkc@mathdogs.com.
18704 Also change use of $am_cv_sys_posix_termios
18705 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
18706 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
18707 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
18708 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
18709 in /proc/mounts until it finds one with matching device number. This
18710 is unnecessary when the FILE argument *is* a mount point. No stat call
18711 is necessary in that case. So, disable the statvfs-testing code on
18712 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
18713 as RedHat bug# 84846.
18714 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18715 to 1MB, so as not to render systems with no stack size limit (e.g.,
18716 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
18717 Include <unistd.h>. On some systems,
18718 it is required for the definition of _SC_PAGESIZE.
18720 2003-08-16 Jim Meyering <jim@meyering.net>
18722 Merge from coreutils.
18723 * lib/xstrtoimax.c: #else #if -> #elif.
18724 * lib/xstrtoumax.c: Likewise.
18726 2003-08-16 Jim Meyering <jim@meyering.net>
18728 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
18729 * m4/utimes.m4: Removed.
18730 * m4/utimes-null.m4: Renamed from utimes.m4.
18732 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18733 to 1MB, so as not to render systems with no stack size limit (e.g.,
18734 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
18735 Include <unistd.h>. On some systems,
18736 it is required for the definition of _SC_PAGESIZE.
18738 2003-08-16 Jim Meyering <jim@meyering.net>
18739 and Paul Eggert <eggert@cs.ucla.edu>
18741 Merges from coreutils, etc.
18743 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
18744 using the latest version from cvs. This avoids problems with #line
18745 directives using a vendor (Sun) compiler.
18746 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
18747 Don't set GETGROUPS_LIB here; now it's
18748 done via getgroups.m4's wrapper function.
18749 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
18750 rather than just in sh-util/configure.in, so that the
18751 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
18753 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
18754 AC_FUNC_GETLOADAVG where to find getloadavg.c.
18755 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
18756 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
18757 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
18758 Remove code that is now done by the newly-required macros.
18759 Append $(EXEEXT) to DF_PROG.
18760 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
18761 Do not invoke or require the following here,
18762 since prereq.m4 or some gnulib .m4 now does this for us:
18763 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
18764 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
18765 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
18766 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
18767 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
18768 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
18769 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
18771 Do not replace the following functions, as this is now the job
18772 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
18773 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
18774 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
18775 atexit getpass, strdup, getpagesize.
18777 Do not check for the following functions, as this is now the job
18778 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18779 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
18781 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18782 Check for sys/sysctl.h.
18783 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18784 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
18785 of checking for ssize_t ourselves.
18787 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18788 Require every macro that gnulib/modules/* suggests for us.
18789 (jm_PREREQ_ADDEXT): New macro.
18790 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18791 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18793 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18794 (gl_PHYSMEM): Use it.
18795 Also check for `table' function.
18796 Check for new headers and functions.
18797 Add check for sys/sysmp.h.
18798 With suggestions from Kaveh Ghazi.
18799 Ignore headers that are present but cannot be compiled. This
18800 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18803 2003-08-15 Paul Eggert <eggert@twinsun.com>
18805 Document merge from coreutils.
18806 * modules/userspec: Depend on posixver.
18807 * modules/strftime: Depend on tzset.
18809 2003-08-15 Paul Eggert <eggert@twinsun.com>
18811 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18812 rather than tab, after '#' in shell-script copyright notices.
18813 Suggested by Bruno Haible.
18815 2003-08-15 Paul Eggert <eggert@twinsun.com>
18817 * config/srclist-update: Use three spaces, rather than tab, after '#'
18818 in shell-script copyright notices. Suggested by Bruno Haible.
18819 Remove unnecessary parenthesization in regular expression.
18821 2003-08-15 Jim Meyering <jim@meyering.net>
18823 Merge from coreutils.
18824 * lib/xgethostname.c: Include <stdlib.h>.
18825 (xghostname): Don't exit for anything other than memory-related
18826 failure; just return NULL.
18827 * lib/userspec.c: Include "posixver.h".
18828 (parse_user_spec): Accept `.' as a separator only
18829 in pre-POSIX-200112 mode.
18830 * lib/strtoimax.c: Use #elif rather than #else #if.
18831 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18832 Remove function, now that we can rely on a working tzset function.
18833 [!_LIBC]: Ensure that the required autoconf test has been run.
18834 [!defined _NL_CURRENT && HAVE_STRFTIME]:
18835 Use underlying_strftime for %r.
18836 * lib/sha.c: Merge in some clean-up and optimization changes from
18838 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18839 Ensure that it is a multiple of 64.
18840 Rearrange loop exit tests so as to avoid performing an
18841 additional fread after encountering an error or EOF.
18842 * lib/realloc.c: Update copyright date.
18844 2003-08-15 Jim Meyering <jim@meyering.net>
18845 and Paul Eggert <eggert@twinsun.com>
18847 Merge from coreutils.
18848 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18849 member but strut utmpx does not. Needed for AIX 4.3.3.
18850 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18852 2003-08-15 Jim Meyering <jim@meyering.net>
18853 and Paul Eggert <eggert@cs.ucla.edu>
18855 Merges from coreutils, etc.
18856 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18857 Require gl_FUNC_TZSET_CLOBBER.
18858 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18859 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18862 2003-08-14 Paul Eggert <eggert@twinsun.com>
18864 Help the merge from coreutils.
18865 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
18866 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
18867 * m4/tzset.m4: Use it too.
18869 2003-08-14 Paul Eggert <eggert@twinsun.com>
18871 * modules/tzset: New file.
18873 2003-08-14 Jim Meyering <jim@meyering.net>
18875 Merges from coreutils.
18876 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
18877 variable names, rather than @FNMATCH_H@.
18878 * modules/alloca: Likewise for $(ALLOCA_H).
18880 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
18881 the three copies of the literal target, `fnmatch.h'.
18882 * modules/alloca (alloca.h): Likewise.
18884 2003-08-14 Jim Meyering <jim@meyering.net>
18886 Merge from coreutils.
18887 * m4/tzset.m4: New file.
18888 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
18889 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
18890 otherwise, AIX 5.1 systems would end up using the latter.
18891 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
18892 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
18893 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
18894 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
18896 2003-08-14 Jim Meyering <jim@meyering.net>
18898 Merge from coreutils.
18899 * lib/obstack.h: Whitespace changes.
18900 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
18901 and xcalloc return values.
18902 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
18903 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
18904 hang on OSF/1 5.1 for DIR on both local and remote file systems.
18905 Reported by (and fix confirmed by) Nelson H. F. Beebe.
18906 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18908 Use mntctl's return value to drive the entry-processing loop, since
18909 we can't rely on the value of the vmt_length member in the last
18910 entry. On some systems doing so could result in exhausting
18911 virtual memory. Based in part on a patch from Mike Jetzer.
18913 2003-08-14 Jim Meyering <jim@meyering.net>
18914 and Paul Eggert <eggert@twinsun.com>
18916 Merges from coreutils, plus other fixes.
18917 * lib/physmem.c: Merge in portability changes from gcc/libiberty
18918 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
18919 for credits and details. Thanks to Kaveh Ghazi for helping
18920 to keep these files in sync.
18921 (ARRAY_SIZE): Define it.
18922 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
18923 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
18924 (memcasecmp): Don't assume size_t fits in unsigned int.
18925 Remove casts and duplicate code.
18926 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
18927 (memcpy): Remove definition.
18928 Merge in some clean-up and optimization changes from glibc.
18929 [BLOCKSIZE]: Move definition to top of file.
18930 Ensure that it is a multiple of 64.
18931 Rearrange loop exit tests so as to avoid performing an
18932 additional fread after encountering an error or EOF.
18933 * lib/md5.h (md5_uintptr): Define.
18934 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
18935 return to the initial working directory. Preserve errno
18937 * lib/idcache.c: Include "xalloc.h".
18938 (xmalloc, xrealloc): Remove decls.
18939 (getuser): Remove casts no longer required in C89.
18940 * lib/human.c: Include stdio.h, for sprintf.
18941 * lib/group-member.c: Include "xalloc.h".
18942 (xmalloc, xrealloc): Remove decls.
18943 (get_group_info): Remove casts no longer required in C89.
18944 * lib/getusershell.c (readname): Remove casts no longer required in
18946 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
18947 * lib/getline.c: Whitespace fix, from coreutils.
18949 2003-08-13 Paul Eggert <eggert@twinsun.com>
18951 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
18954 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18955 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18956 Undo previous (whitespace-only) change.
18958 2003-08-13 Paul Eggert <eggert@twinsun.com>
18960 * lib/exclude.c: Include <ctype.h>
18961 (IN_CTYPE_DOMAIN): New macro.
18962 (is_space): New fn.
18963 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
18966 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18967 Undo previous (whitespace-only) change.
18969 2003-08-13 Paul Eggert <eggert@twinsun.com>
18971 * config/srclist-update: Change update back to the old behavior,
18972 leaving whitespace alone. Use one 'sed' command rather than a
18974 (fixlicense): Now a variable, not a function.
18975 (remove_trailing_blanks): Remove.
18976 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
18977 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18978 Undo previous (whitespace-only) change.
18980 2003-08-12 Paul Eggert <eggert@twinsun.com>
18982 Merge from coreutils.
18983 * modules/euidaccess: Add lib_SOURCES, include for new
18986 2003-08-12 Paul Eggert <eggert@twinsun.com>
18988 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18989 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18990 Normalize leading white space and remove trailing white space.
18992 Merge from coreutils
18993 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
18995 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
18996 0.12.1. These files are now being upgraded automatically by
18997 ../config/srclist-update.
18999 2003-08-12 Paul Eggert <eggert@twinsun.com>
19001 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19002 Normalize leading white space and remove trailing white space.
19003 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19004 notice, as per ../config/srclist-update.
19006 Merge from coreutils.
19007 * lib/euidaccess.h: New file.
19008 * lib/euidaccess.c: Include it.
19009 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19010 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
19011 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19013 2003-08-12 Paul Eggert <eggert@twinsun.com>
19015 * config/srclist-update: Add copyright notice.
19016 (remove_id_lines, remove_trailing_blanks): New constants.
19017 (fixfile): Use them to normalize spacing a bit in copied files.
19018 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19019 Normalize leading white space and remove trailing white space.
19021 * config/texinfo.tex: Sync with texinfo.
19023 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19024 strtoul.c from libc, to merge coreutils whitespace changes.
19026 * config/srclist.txt: Get the following m4 files from gettext:
19027 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19028 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19029 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19032 2003-08-12 Karl Berry <karl@gnu.org>
19034 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19037 2003-08-11 Paul Eggert <eggert@twinsun.com>
19039 * modules/gnu-source, m4/gnu-source.m4:
19040 Remove; we're assuming Autoconf 2.54 or later now.
19041 Suggested by Bruno Haible.
19042 * MODULES.html.sh (func_all_modules): Remove gnu-source.
19044 2003-08-11 Bruno Haible <bruno@clisp.org>
19046 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19048 2003-08-11 Bruno Haible <bruno@clisp.org>
19050 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19051 (vasnprintf): Use it instead of wcslen.
19053 2003-08-11 Bruno Haible <bruno@clisp.org>
19055 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19056 value to ensure that _Bool promotes to int. Use #define for _Bool when
19057 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19059 2003-08-10 Karl Berry <karl@gnu.org>
19061 * lib/regex.h: update from libc (whitespace fix).
19063 2003-08-09 Paul Eggert <eggert@twinsun.com>
19065 Merge some files from coreutils. These changes were
19066 originally made by Jim Meyering.
19067 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19068 many older Unixes require this.
19069 * lib/alloca.c (alloca): Remove cast to argument of free;
19070 no longer needed in C89.
19071 * lib/alloca_.h, regex.h: Fix white space to match
19072 what GNU indent does.
19074 2003-08-09 Paul Eggert <eggert@twinsun.com>
19076 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19077 apparently Emacs's Unicode mode got confused before my 2003-08-05
19080 2003-08-08 Paul Eggert <eggert@twinsun.com>
19082 * m4/extensions.m4: New file.
19083 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19084 Require gl_USE_SYSTEM_EXTENSIONS.
19085 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19086 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19088 2003-08-08 Paul Eggert <eggert@twinsun.com>
19090 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19091 * modules/extensions, modules/gnu-source: New files.
19092 * modules/timespec, modules/unlocked-io: Depend on extensions.
19094 2003-08-07 Paul Eggert <eggert@twinsun.com>
19096 * modules/restrict: New file.
19097 * MODULES.html.sh (func_all_modules): Add restrict.
19098 * modules/regex: Depend on restrict.
19100 2003-08-07 Paul Eggert <eggert@twinsun.com>
19102 * m4/restrict.m4: New file.
19103 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19105 2003-08-07 Bruno Haible <bruno@clisp.org>
19107 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19108 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19110 2003-08-07 Bruno Haible <bruno@clisp.org>
19112 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19113 makes the module 'getndelim2' compatible with the module 'getline'.
19115 2003-08-05 Paul Eggert <eggert@twinsun.com>
19117 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19118 byte with "\201" to avoid glitches when editing that source file
19119 with multi-gnome-terminal.
19121 2003-08-05 Paul Eggert <eggert@twinsun.com>
19123 * lib/bumpalloc.h: Remove.
19125 2003-08-05 Paul Eggert <eggert@twinsun.com>
19127 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19128 * modules/bumpalloc: Remove.
19130 2003-08-04 Paul Eggert <eggert@twinsun.com>
19132 * lib/getloadavg.c: Change copyright notice and spacing to conform to
19135 Merge from coreutils.
19136 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19138 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19139 from Karl Berry, implemented by Jim Meyering.
19140 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19141 from Dmitry V. Levin.
19142 Remove anachronistic cast of xrealloc.
19143 * lib/fnmatch_.h (__const): Remove. Use 'const'.
19144 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19145 type. Otherwise, it wouldn't compile with at least /bin/cc on
19146 ymp-cray-unicos9.0.2.X.
19147 Combine two mostly-identical uses of alloca into one.
19148 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19150 2003-08-04 Dave Love <d.love@dl.ac.uk>
19154 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
19155 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
19156 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19157 obsolete NLIST_NAME_UNION.
19158 [__GNU__]: Undef BSD and FSCALE.
19159 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19161 2003-08-03 Paul Eggert <eggert@twinsun.com>
19163 * lib/stdbool_.h (_Bool): Make it signed char, instead of
19164 an enum type, so that it's guaranteed to promote to int. See:
19165 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19167 2003-08-03 Karl Berry <karl@gnu.org>
19169 * config/depcomp: update from automake.
19171 2003-07-31 Paul Eggert <eggert@twinsun.com>
19173 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
19174 (strerror): Don't assume that a printable int fits in 14 bytes.
19176 2003-07-31 Bruno Haible <bruno@clisp.org>
19178 * modules/getpass-gnu: New file.
19179 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19181 2003-07-31 Bruno Haible <bruno@clisp.org>
19183 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19185 2003-07-24 Karl Berry <karl@gnu.org>
19187 * config/missing: update from automake.
19189 2003-07-24 Derek Robert Price <derek@ximbiot.com>
19190 Bruno Haible <bruno@clisp.org>
19192 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19193 * lib/getline.c (getline, getdelim): Likewise.
19194 Remove _GNU_SOURCE define; now it's defined in config.h through
19197 2003-07-23 Karl Berry <karl@gnu.org>
19199 * config/config.sub: update from prep.
19201 2003-07-22 Paul Eggert <eggert@twinsun.com>
19203 * modules/xalloc (Depends-on): Add exitfail.
19204 * modules/xmemcoll: Likewise.
19206 2003-07-22 Paul Eggert <eggert@twinsun.com>
19208 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19209 over-parenthesization in macros.
19211 Sync with coreutils.
19213 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19216 Use `exit_failure' for xalloc and xmemcoll instead of their own
19217 private exit-failure variables.
19218 * lib/xalloc.h (xalloc_exit_failure): Remove.
19219 * lib/xmalloc.c: Likewise. Include exitfail.h.
19220 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19221 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19222 * lib/xmemcoll.c: Likewise. Include exitfail.h.
19223 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19225 2003-07-20 Jim Meyering <jim@meyering.net>
19227 * modules/closeout (Depends-on): Add exitfail.
19228 Suggestion from Bruno Haible.
19230 2003-07-19 Karl Berry <karl@gnu.org>
19232 * config/config.sub: update from prep.
19234 2003-07-18 Paul Eggert <eggert@twinsun.com>
19236 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19238 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
19239 to test that it can stand by itself. Include "exitfail.h".
19240 Clients should set exit_failure instead.
19241 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
19243 2003-07-18 Bruno Haible <bruno@clisp.org>
19245 * modules/getndelim2: New file.
19246 * modules/getline: Share files with module getndelim2.
19247 * modules/getnline: Depend on getndelim2 instead of sharing files with
19248 it. Add getnline.c to lib_SOURCES.
19249 * MODULES.html.sh (func_all_modules): Add getndelim2.
19251 2003-07-18 Bruno Haible <bruno@clisp.org>
19253 * m4/getndelim2.m4: New file.
19254 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19255 invoke gl_PREREQ_GETNDELIM2.
19256 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19257 gl_PREREQ_GETNDELIM2.
19258 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19261 2003-07-18 Bruno Haible <bruno@clisp.org>
19263 * lib/getndelim2.h: New file.
19264 * lib/getndelim2.c: Make into a module of its own. Include config.h,
19266 (getndelim2): Make non-static. Change return type to ssize_t.
19267 * lib/getline.h: Change argument names.
19268 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19269 * lib/getnline.c: Include getndelim2.h.
19271 2003-07-18 Andreas Schwab <schwab@suse.de>
19273 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19275 2003-07-17 Karl Berry <karl@gnu.org>
19277 * config/config.sub: update from prep.
19279 2003-07-17 Bruno Haible <bruno@clisp.org>
19281 * modules/getnline: New file.
19282 * modules/getline: Add lib/getndelim2.c to source file list.
19283 * MODULES.html.sh (func_all_modules): Add getnline.
19285 2003-07-17 Bruno Haible <bruno@clisp.org>
19287 * m4/getnline.m4: New file.
19289 2003-07-17 Bruno Haible <bruno@clisp.org>
19291 * m4/Makefile.am.in: Remove file.
19292 * m4/Makefile.am: Remove file.
19293 * m4/Makefile.in: Remove file.
19295 2003-07-17 Bruno Haible <bruno@clisp.org>
19297 * lib/getnline.h: New file.
19298 * lib/getnline.c: New file.
19299 * lib/getndelim2.c: New file, extracted from getline.c.
19300 (getndelim2): Renamed from getdelim2, with added nmax argument.
19301 * lib/getline.c: Include getndelim2.c.
19302 (getdelim2): Moved out to getndelim2.c.
19303 (getline, getdelim): Update.
19305 2003-07-17 Bruno Haible <bruno@clisp.org>
19307 * lib/Makefile.am: Remove file.
19308 * lib/Makefile.in: Remove file.
19310 2003-07-17 Bruno Haible <bruno@clisp.org>
19312 * configure.in: Remove file.
19313 * Makefile.in: Remove file.
19315 2003-07-17 Bruno Haible <bruno@clisp.org>
19317 * MODULES.html.sh: Put the </BODY> right before </HTML>.
19319 2003-07-16 Karl Berry <karl@gnu.org>
19321 * config/srclist-update: was running fixlicense twice, which caused
19322 texinfo.tex to be nullified for some reason. Simplify,
19323 $gplsrc is no longer needed as far as I can see?
19325 2003-07-16 Jim Meyering <jim@meyering.net>
19327 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
19329 2003-07-15 Paul Eggert <eggert@twinsun.com>
19331 * config/srclist.txt: Get the following files from gettext-runtime/intl
19332 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19333 ref-del.sin. From Bruno Haible.
19334 * config/srclist-update (fixfile): Change grep pattern again, since the
19335 previous fix didn't work (there was another trailing $). Use
19336 '[$]' to escape the $s.
19338 2003-07-15 Karl Berry <karl@gnu.org>
19340 * lib/vasnprintf.c: update from gettext.
19342 2003-07-15 Karl Berry <karl@gnu.org>
19344 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19345 gets expanded when surrounded by '$'.
19347 2003-07-15 Jim Meyering <jim@meyering.net>
19349 * modules/save-cwd: Don't depend on error. From Derek Price.
19351 2003-07-15 Jim Meyering <jim@meyering.net>
19353 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19355 2003-07-14 Simon Josefsson <jas@extundo.com>
19357 * modules/mempcpy: New file.
19358 * MODULES.html.sh (func_all_modules): Add mempcpy.
19360 2003-07-14 Simon Josefsson <jas@extundo.com>
19362 * m4/mempcpy.m4: New file.
19364 2003-07-14 Simon Josefsson <jas@extundo.com>
19366 * lib/mempcpy.h: New file.
19367 * lib/mempcpy.c: New file.
19369 2003-07-14 Paul Eggert <eggert@twinsun.com>
19371 * modules/getdate, modules/posixtm: Depend on mktime.
19373 2003-07-14 Paul Eggert <eggert@twinsun.com>
19375 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19376 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19377 unicodeio.c, unicodeio.h, unlocked-io.h:
19378 Switch from LGPL to GPL.
19380 2003-07-14 Paul Eggert <eggert@twinsun.com>
19382 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19383 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19384 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19385 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19386 vasprintf.c, vasprintf.h: Regenerate. These files are now being
19387 updated automatically by ../config/srclist-update. This changes
19388 their license from LPGL to GPL.
19390 2003-07-14 Paul Eggert <eggert@twinsun.com>
19392 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
19393 assumed to refer to the root of the most recent stable gettext version.
19394 * config/srclistvars.sh: Add defaults for eggert.
19395 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19396 Match "This program" as well as "The program". This is needed
19399 2003-07-14 Jim Meyering <jim@meyering.net>
19401 Don't emit diagnostics. Let callers do that.
19402 * lib/save-cwd.c: Don't include "error.h".
19403 (save_cwd): Don't call error. Ensure that errno is valid
19404 when returning nonzero.
19406 * lib/save-cwd.h (restore_cwd): Update prototype.
19407 * lib/save-cwd.c (restore_cwd): Remove two parameters.
19408 Simplify. Don't call error upon failure. Let callers do that.
19409 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19410 when auditing is enabled. But don't bother updating the #if.
19412 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
19414 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19415 it breaks C++ compilation.
19416 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19418 2003-07-10 Simon Josefsson <jas@extundo.com>
19420 * modules/strchrnul (Makefile.am): Add strchrnul.h.
19422 2003-07-10 Jim Meyering <jim@meyering.net>
19424 * m4/clock_time.m4: Remove trailing blank.
19425 * m4/intmax_t.m4: Likewise.
19427 2003-07-10 Jim Meyering <jim@meyering.net>
19429 * lib/vasnprintf.c: Remove trailing blanks.
19430 Make cpp indentation consistent.
19432 2003-07-09 Paul Eggert <eggert@twinsun.com>
19434 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19435 posixver.c, strftime.c, strnlen.c, strverscmp.c:
19436 Switch from LGPL to GPL.
19438 2003-07-09 Paul Eggert <eggert@twinsun.com>
19440 * config/srclist.txt: Sort sublists. Add
19441 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19442 that differ from gnulib for one reason or another; we'd like this list
19443 to be smaller but for now let's document what we have.
19445 2003-07-08 Paul Eggert <eggert@twinsun.com>
19447 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19448 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
19449 and sweeter "eval x=$x".
19450 * config/srclist.txt: Get lib/argp* from glibc.
19452 2003-07-07 Paul Eggert <eggert@twinsun.com>
19454 * lib/mktime.c: Fix some boundary cases and remove need for floating
19457 Issue a compile-time diagnostic if time_t is floating point, or if
19458 two's complement arithmetic is not in effect, or if arithmetic
19459 right shift does not propagate the sign. These assumptions were
19460 all in the original code but they weren't checked.
19462 (TIME_T_MIDPOINT, verify): New macros.
19463 (__isleap): Remove; it has integer overflow problems.
19464 (leapyear): New function, without those problems.
19465 (ydhms_tm_diff): Remove; splitting into two parts.
19466 (ydhms_diff): New function, containing the arithmetic part of
19467 the old ydhms_tm_diff function. Issue a compile-time
19468 diagnostic if we are not using C99 integer division.
19469 Avoid casts when possible.
19470 (guess_time_tm): New function, containing the checking part of
19471 the old ydhms_tm_diff function. Return the new value, rather than
19472 the difference between it and the old. Accept a new argument T
19473 so that *T specifies the old value. Check for overflow in the result.
19475 (__mktime_internal): Use a time_t offset, not a long int offset.
19476 This undoes the 2003-06-04 change, which is no longer needed now
19477 that we have better overflow checking.
19478 (localtime_offset): Likewise.
19480 (__mktime_internal): Avoid harmful overflow on hosts where time_t
19481 and long are 64-bit but int is only 32-bit.
19482 (ydhms_diff): Use long int to store year1 and yday1.
19483 Issue a compile-time diagnostic if long int is not wide enough.
19485 (__mktime_internal): Use long int to store adjusted year and yday.
19486 Use plain C rather than preprocessor commands, if that doesn't
19488 Check for overflow (and try to repair) after each probe
19489 rather than checking only at the very end. This avoids some bugs
19490 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19491 does not equal GMT offset at maximum time).
19492 Use integer to check for overflow rather than floating point; this
19493 is more portable to non-IEEE hosts, and is a tad faster.
19494 When we detect that we are oscillating between two values,
19495 don't check whether tm_isdst has the requested value, since
19496 we already know the answer. When tm_isdst has the wrong value,
19497 use a different heuristic to find the right one, based on the
19498 extreme values actually observed in practice in tz2003a,
19499 rather than the (overly optimistic) "previous 3 calendar quarters".
19501 (not_equal_tm, print_tm, check_result): Use "const T" rather than
19502 "T const" to accommodate glibc style.
19503 (check_result): Use less-confusing report format. "long" -> "long int.
19505 Don't loop if the iteration overflows time_t.
19506 Allow a negative step in the iteration.
19508 2003-07-06 Karl Berry <karl@gnu.org>
19510 * config/depcomp: update from automake.
19511 * config/config.sub: update from prep.
19513 2003-07-03 Karl Berry <karl@gnu.org>
19515 * config/config.guess: update from prep.
19517 2003-07-01 Paul Eggert <eggert@twinsun.com>
19519 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19520 xreadlink.c now includes it unconditionally.
19522 2003-07-01 Paul Eggert <eggert@twinsun.com>
19524 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19525 having it depend on HAVE_SYS_TYPES_H.
19527 2003-07-01 Bruno Haible <bruno@clisp.org>
19529 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19530 <sys/types.h> should be sufficient.
19531 Reported by Paul Eggert.
19533 2003-06-26 Karl Berry <karl@gnu.org>
19535 * config/depcomp: update from automake.
19537 2003-06-26 Bruno Haible <bruno@clisp.org>
19539 * modules/human: Depend on module stdbool.
19541 2003-06-25 Bruno Haible <bruno@clisp.org>
19543 * modules/readlink: New file.
19544 * modules/xreadlink: Depend on it.
19545 * MODULES.html.sh (func_all_modules): Add readlink.
19547 2003-06-25 Bruno Haible <bruno@clisp.org>
19549 * m4/readlink.m4: New file.
19551 2003-06-25 Bruno Haible <bruno@clisp.org>
19553 * lib/readlink.c: New file.
19555 2003-06-22 Karl Berry <karl@gnu.org>
19557 * config/srclist.txt: update mkinstalldirs from automake.
19558 * config/mkinstalldirs: update.
19560 2003-06-22 Bruno Haible <bruno@clisp.org>
19562 Portability to mingw32.
19563 * m4/ssize_t.m4: New file, from GNU gettext.
19564 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19565 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19567 2003-06-22 Bruno Haible <bruno@clisp.org>
19569 * modules/safe-read: Add m4/ssize_t.m4.
19570 * modules/xreadlink: Add m4/ssize_t.m4.
19572 2003-06-20 Bruno Haible <bruno@clisp.org>
19574 Assume C89, so PARAMS isn't needed.
19575 * lib/unicodeio.h (PARAMS): Remove.
19576 * lib/unicodeio.c: Don't use PARAMS.
19578 2003-06-18 Karl Berry <karl@gnu.org>
19580 * config/config.{guess,sub}: update from prep.
19582 2003-06-18 Jim Meyering <jim@meyering.net>
19584 Merge changes from coreutils.
19585 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19586 Remove explicit declarations of xmalloc and realloc.
19588 (read_utmp): Remove anachronistic cast of xmalloc.
19590 2003-06-17 Paul Eggert <eggert@twinsun.com>
19592 Assume C89, so PARAMS isn't needed.
19593 * lib/backupfile.h (PARAMS): Remove. All uses removed.
19594 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19595 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19596 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19597 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19598 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19599 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19600 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19601 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19602 lib/xstrtod.h, lib/xstrtol.h: Likewise.
19603 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19604 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19605 no longer needed. Anyway, config.h should always be included before any
19608 2003-06-11 Simon Josefsson <jas@extundo.com>
19610 * modules/sysexits: New file.
19611 * MODULES.html.sh (func_all_modules): Add sysexits.
19613 2003-06-11 Simon Josefsson <jas@extundo.com>
19615 * lib/sysexit_.h: New file.
19617 2003-06-11 Derek Price <derek@ximbiot.com>
19619 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19622 2003-06-11 Bruno Haible <bruno@clisp.org>
19624 * m4/sysexits.m4: New file.
19626 2003-06-10 Simon Josefsson <jas@extundo.com>
19628 * lib/argp.h: New file, from glibc.
19629 * lib/argp-ba.c: New file, from glibc.
19630 * lib/argp-eexst.c: New file, from glibc.
19631 * lib/argp-fmtstream.c: New file, from glibc.
19632 * lib/argp-fmtstream.h: New file, from glibc.
19633 * lib/argp-fs-xinl.c: New file, from glibc.
19634 * lib/argp-help.c: New file, from glibc.
19635 * lib/argp-namefrob.h: New file, from glibc.
19636 * lib/argp-parse.c: New file, from glibc.
19637 * lib/argp-pv.c: New file, from glibc.
19638 * lib/argp-pvh.c: New file, from glibc.
19639 * lib/argp-xinl.c: New file, from glibc.
19641 2003-06-10 Simon Josefsson <jas@extundo.com>
19643 * modules/strchrnul: New file.
19645 2003-06-10 Simon Josefsson <jas@extundo.com>
19647 * modules/argp: New file.
19649 2003-06-10 Simon Josefsson <jas@extundo.com>
19651 * m4/strchrnul.m4: New file.
19653 2003-06-10 Simon Josefsson <jas@extundo.com>
19655 * lib/strchrnul.h: New file.
19656 * lib/strchrnul.c: New file.
19658 2003-06-10 Bruno Haible <bruno@clisp.org>
19660 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19662 2003-06-07 Karl Berry <karl@gnu.org>
19664 * config/config.{guess,sub}: update from prep.
19666 2003-06-07 Jim Meyering <jim@meyering.net>
19668 * modules/strtod: Use $(...) notation, not @...@ for
19669 AC_REPLACE'd variables.
19670 * modules/localcharset: Likewise.
19672 2003-06-07 Jim Meyering <jim@meyering.net>
19674 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
19675 in place of my name in the copyright comment.
19676 Remove definition and uses of __P.
19679 * lib/stat.c: Don't declare xmalloc explicitly.
19680 Instead, include "xalloc.h".
19681 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
19682 xrealloc, and xcalloc return values.
19683 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
19685 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
19687 2003-06-07 Bruno Haible <bruno@clisp.org>
19689 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
19690 avoid AC_CONFIG_LINKS.
19691 * modules/fnmatch (Makefile.am): Use explicit creation rule for
19692 fnmatch.h, to avoid AC_CONFIG_LINKS.
19693 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
19695 2003-06-07 Bruno Haible <bruno@clisp.org>
19697 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
19698 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
19699 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19701 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
19702 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19705 2003-06-06 Jim Meyering <jim@meyering.net>
19707 Merge from coreutils.
19708 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
19709 Consolidate declarations and initializations of *_base* locals.
19711 Merge from coreutils.
19712 This avoids a core dump on systems without GNU putenv,
19713 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
19714 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
19715 (unsetenv): New static function, from GNU libc.
19716 (rpl_putenv): Use it.
19718 * lib/modechange.c: Remove trailing blanks.
19720 Merge from coreutils.
19721 * lib/fsusage.c: Remove declaration of statfs.
19722 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
19724 * lib/posixtm.c: Include <stdbool.h> unconditionally.
19726 2003-06-06 Jim Meyering <jim@meyering.net>
19728 * lib/stdbool_.h: Renamed from stdbool.h.in.
19730 2003-06-06 Jim Meyering <jim@meyering.net>
19731 Bruno Haible <bruno@clisp.org>
19733 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
19734 Adjust Makefile.am snippet not to redirect directly to target.
19735 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
19737 2003-06-05 Paul Eggert <eggert@twinsun.com>
19739 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
19740 mismatch, look in future quarters as well as past. This fixes a
19741 bug when processing fall-backwards gaps immediately after a long
19742 period of daylight-saving time.
19744 * lib/mktime.c: Assume freestanding C89 or better.
19745 (HAVE_LIMITS_H): Remove. Assume it's 1.
19746 (__P): Remove; not used.
19747 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
19748 (mktime, not_equal_tm, print_tm, check_result,
19749 main): Use prototypes. Use const * where appropriate.
19750 (main): Fix typo in testing code that uncovered by above changes.
19751 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
19753 2003-06-04 Paul Eggert <eggert@twinsun.com>
19755 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
19756 locale.h, localeconv. This merges changes from coreutils.
19758 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
19759 It can be removed after the next Autoconf is released.
19760 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
19763 2003-06-04 Paul Eggert <eggert@twinsun.com>
19765 * lib/mktime.c: Fix Debian bug 177940
19766 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
19767 (localtime_offset): Now long int, not time_t, because we want it
19768 to be guaranteed to be signed. All uses changed.
19769 (__mktime_internal): If overflow would occur when adding offset,
19772 Merge 'human' changes from coreutils. Rewrite to support
19773 locale-specific notations like thousands separators.
19774 * lib/human.c: Simplify authorship notice.
19775 Include human.h immediately after config.h.
19776 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
19777 <limits.h>: Do not include, since human.h does.
19778 (SIZE_MAX, UINTMAX_MAX): New macros.
19779 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19780 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19781 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19782 (power_letter): Renamed from suffixes.
19783 (generate_suffix_backwards): Remove.
19784 (adjust_value): Now takes int style (because of human.h changes)
19785 and long double value (for greater precision on some platforms).
19786 (group_number): New function.
19787 (human_readable): Use it. Use integer options, not enum.
19788 Put the options before the sizes in the arg list.
19789 Support all the new options.
19790 The old human_readable function has been removed;
19791 use inttostr.h instead.
19792 (human_readable, default_block_size, humblock):
19793 Use uintmax_t, not int, for block sizes.
19794 (human_readable_inexact, block_size_types): Remove.
19795 (block_size_opts): New constant.
19796 (human_options): Renamed from human_block_size, with new signature
19797 that allows block sizes up to UINTMAX_MAX. All callers changed.
19798 * lib/human.h: Add copyright and authorship notice.
19799 Include <limits.h> and <stdbool.h> unconditionally.
19800 (PARAMS): Remove. All uses removed.
19801 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19802 (enum human_inexact_style): Remove tag; now a nameless enum.
19803 (human_floor, human_ceiling, human_round_to_even): Now have
19804 values 2, 0, 1 rather than -1, 1, 0.
19805 (human_group_digits, human_suppress_point_zero, human_autoscale,
19806 human_base_1024, human_SI, human_B): New constants.
19807 (human_readable_inexact, human_block_size): Remove.
19808 (human_readable): Size args are now uintmax_t, not int.
19809 (human_options): New decl.
19811 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19812 unnecessary now that we assume C89 or better. This change
19813 imported from coreutils.
19815 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19816 arbitrarily. This is the same patch as 2003-05-28, but it got lost
19817 in the 2003-05-30 sync from glibc.
19819 .h files should stand alone, but we shouldn't include <sys/types.h>
19820 if we can get away with just <stddef.h>.
19822 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19823 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19824 rather than <sys/types.h>, as we merely need size_t.
19825 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19827 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19828 Include <stdio.h>, to get FILE.
19829 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19830 memcasecmp.h has included <stddef.h> and all we need is size_t.
19831 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19832 our interface, instead of including <sys/types.h>
19834 2003-06-04 Paul Eggert <eggert@twinsun.com>
19836 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19837 now, as glibc mktime is buggy on non-glibc systems.
19839 2003-06-03 Karl Berry <karl@gnu.org>
19841 * config/config.sub: update from prep.
19843 2003-06-02 Paul Eggert <eggert@twinsun.com>
19846 Fix some minor time-related bugs with POSIX time arguments.
19847 Some valid time stamps were being rejected (notably -1, and
19848 time stamps before 1900 on 64-bit hosts). And some invalid
19849 time stamps were being accepted, e.g. September 31.
19851 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19852 that we can return (time_t) -1 successfully.
19853 * lib/posixtm.c: Likewise.
19854 [HAVE_STDBOOL_H]: Include <stdbool.h>.
19855 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19856 (t): Remove static var.
19857 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19858 of static var. All uses changed.
19859 (year): Do not reject years before 1900; they can occur with
19861 (posix_time_parse): Do not check for out-of-range components;
19862 that is now the caller's responsibility, since our checks were
19863 only approximations.
19864 (posixtime): Use mktime to check for out-of-range components,
19865 since it knows them exactly.
19866 If mktime returns (time_t) -1, check whether an error actually occurred
19867 by invoking localtime on -1.
19868 (main) [TEST_POSIXTIME]: Check for input data errors, and report
19869 posixtime failures better.
19870 Improve the test data (in comments only).
19872 2003-06-02 Karl Berry <karl@gnu.org>
19874 * config/mkinstalldirs (version): new variable.
19875 (--version): new option.
19876 (usage): improve message.
19878 2003-05-30 Karl Berry <karl@gnu.org>
19880 * lib/mktime.c: update from libc.
19882 2003-05-30 Bruno Haible <bruno@clisp.org>
19884 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
19885 * config/config.rpath: Upgrade to gettext-0.12.1.
19887 2003-05-30 Bruno Haible <bruno@clisp.org>
19889 * m4/gettext.m4: Upgrade to gettext-0.12.1.
19890 * m4/nls.m4: New file, from gettext-0.12.1.
19891 * m4/po.m4: New file, from gettext-0.12.1.
19892 * m4/progtest.m4: Upgrade to gettext-0.12.1.
19894 2003-05-30 Bruno Haible <bruno@clisp.org>
19896 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
19897 * lib/localcharset.h: Likewise.
19898 * lib/localcharset.c: Likewise.
19900 2003-05-29 Karl Berry <karl@gnu.org>
19902 * config/config.rpath: update from gettext.
19904 2003-05-28 Paul Eggert <eggert@twinsun.com>
19906 Assume the headers required for C89 freestanding compilers.
19907 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
19908 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
19909 * m4/human.m4 (gl_HUMAN): Likewise.
19910 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
19911 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
19912 * m4/userspec.m4 (gl_USERSPEC): Likewise.
19913 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
19914 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19915 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
19917 2003-05-28 Paul Eggert <eggert@twinsun.com>
19919 Assume the headers required for C89 freestanding compilers.
19920 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
19921 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
19922 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
19923 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
19924 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
19925 define, since <limits.h> is guaranteed to do that.
19926 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
19927 * lib/exclude.c: Include <stdbool.h> unconditionally.
19928 * lib/tempname.c: Include <stddef.h> unconditionally.
19929 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
19930 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
19931 <stddef.h> does that.
19932 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
19933 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
19934 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
19936 * lib/xstrtol.c: Likewise.
19937 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
19938 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
19940 * lib/addext.c (addext): Use assignment rather than cast, to avoid
19941 warnings on some platforms.
19943 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19946 2003-05-26 Jim Meyering <jim@meyering.net>
19948 Merge in a change from coreutils:
19949 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
19950 that is guaranteed to be `no'. Use `no_such_member' to indicate
19951 that condition, rather than `-1' which is slightly misleading.
19952 Change the name of the cache variable to have the gl_ prefix.
19953 Prompted by a patch from Richard Dawe for DJGPP.
19955 2003-05-24 Karl Berry <karl@gnu.org>
19957 * config/config.guess: update from prep.
19959 2003-05-22 Karl Berry <karl@gnu.org>
19961 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
19963 2003-05-20 Karl Berry <karl@gnu.org>
19965 * config/config.guess: update from prep.
19967 2003-05-18 Karl Berry <karl@gnu.org>
19969 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
19970 might actually be set by the user.
19972 * config/depcomp, install-sh, mdate-sh: update from automake.
19974 2003-05-17 Bruno Haible <bruno@clisp.org>
19976 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
19977 invalid expansion for AC_EGREP_CPP.
19978 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19979 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19980 Suggested by Akim Demaille <akim@epita.fr> in
19981 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
19983 2003-05-12 Jim Meyering <jim@meyering.net>
19985 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
19986 the space-padded-by-default conversion specifiers, %e, %k, %l.
19988 2003-05-12 Bruno Haible <bruno@clisp.org>
19990 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
19991 the string is longer than 4 KB.
19993 2003-05-11 Karl Berry <karl@gnu.org>
19995 * config/config.{guess,sub}: update from prep.
19997 2003-05-09 Bruno Haible <bruno@clisp.org>
19999 * modules/error: Add m4/strerror_r.m4 to file list.
20001 2003-05-03 Bruno Haible <bruno@clisp.org>
20003 Upgrade to Unicode-4.0.
20004 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20005 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20006 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20007 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20008 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20009 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20010 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20011 Change width of U+E0100..U+E01EF from 1 to 0.
20013 2003-04-25 Jim Meyering <jim@meyering.net>
20015 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20016 of type size_t, not int.
20018 2003-04-25 Bruno Haible <bruno@clisp.org>
20020 * lib/copy-file.c: Include <stddef.h>, for size_t.
20022 2003-04-21 Paul Eggert <eggert@twinsun.com>
20024 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20025 code which expansion is under static control. Patch imported from
20026 Akim Demaille's patch to Bison; see
20027 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20029 2003-04-14 Bruno Haible <bruno@clisp.org>
20031 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20033 2003-04-11 Jim Meyering <jim@meyering.net>
20035 Merge changes from Coreutils.
20037 2003-03-22 Jim Meyering <jim@meyering.net>
20039 * lib/strftime.c (widen): Cast alloca return value to proper type.
20041 2003-01-19 Ulrich Drepper <drepper@redhat.com>
20044 * lib/strftime.c (my_strftime): Handle very large width
20045 specifications for numeric values correctly. Improve checks for
20048 2003-01-19 Jim Meyering <jim@meyering.net>
20050 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20052 (nl_get_alt_digit) [! defined my_strftime]: Define.
20053 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20054 _nl_get_alt_digit and _nl_get_walt_digit.
20056 * lib/strftime.c (my_strftime): Merge in locale-related changes from
20057 libc. These changes have no effect outside of _LIBC.
20059 2003-04-10 Bruno Haible <bruno@clisp.org>
20061 * modules/findprog: New file.
20062 * MODULES.html.sh (func_all_modules): Add it.
20064 2003-04-10 Bruno Haible <bruno@clisp.org>
20066 * m4/findprog.m4: New file.
20067 * m4/eaccess.m4: New file.
20069 2003-04-10 Bruno Haible <bruno@clisp.org>
20071 * lib/findprog.h: New file, from GNU gettext.
20072 * lib/findprog.c: New file, from GNU gettext.
20074 2003-04-05 Jim Meyering <jim@meyering.net>
20076 Merge changes from Coreutils.
20078 * lib/exclude.h (PARAMS): Remove definition and uses.
20079 * lib/exclude.c: Remove uses of `PARAMS'.
20081 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20082 Add test-cases for DOS filenames. Declare program_name.
20083 (main): Set up program_name. Patch by Rich Dawe.
20085 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20087 Use mntctl's return value to drive the entry-processing loop, since
20088 we can't rely on the value of the vmt_length member in the last
20089 entry. On some systems doing so could result in exhausting
20090 virtual memory. Based in part on a patch from Mike Jetzer.
20092 2003-04-04 Bruno Haible <bruno@clisp.org>
20094 * modules/linebreak: New file.
20095 * MODULES.html.sh (func_all_modules): Add it.
20097 2003-04-04 Bruno Haible <bruno@clisp.org>
20099 * m4/linebreak.m4: New file.
20101 2003-04-04 Bruno Haible <bruno@clisp.org>
20103 * lib/linebreak.h: New file, from GNU gettext.
20104 * lib/linebreak.c: New file, from GNU gettext with slight
20106 * lib/lbrkprop.h: New file, from GNU gettext.
20108 2003-04-03 Bruno Haible <bruno@clisp.org>
20110 * modules/utf8-ucs4: New file.
20111 * modules/utf16-ucs4: New file.
20112 * modules/ucs4-utf8: New file.
20113 * modules/ucs4-utf16: New file.
20114 * MODULES.html.sh (func_all_modules): Add them.
20116 2003-04-03 Bruno Haible <bruno@clisp.org>
20118 * m4/utf-ucs4.m4: New file.
20119 * m4/ucs4-utf.m4: New file.
20121 2003-04-03 Bruno Haible <bruno@clisp.org>
20123 * lib/utf8-ucs4.h: New file, from GNU gettext.
20124 * lib/utf16-ucs4.h: New file, from GNU gettext.
20125 * lib/ucs4-utf8.h: New file, from GNU gettext.
20126 * lib/ucs4-utf16.h: New file, from GNU gettext.
20128 2003-04-02 Bruno Haible <bruno@clisp.org>
20130 * modules/binary-io: New file.
20131 * MODULES.html.sh (func_all_modules): Add it.
20133 2003-04-02 Bruno Haible <bruno@clisp.org>
20135 * lib/binary-io.h: New file, from GNU gettext.
20137 2003-04-01 Bruno Haible <bruno@clisp.org>
20139 * modules/pathname: New file.
20140 * MODULES.html.sh (func_all_modules): Add it.
20142 2003-04-01 Bruno Haible <bruno@clisp.org>
20144 * lib/pathname.h: New file, from GNU gettext.
20145 * lib/concatpath.c: New file, from GNU gettext.
20147 2003-03-30 Bruno Haible <bruno@clisp.org>
20149 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20151 2003-03-30 Bruno Haible <bruno@clisp.org>
20153 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20154 function chown() doesn't exist.
20156 2003-03-28 Bruno Haible <bruno@clisp.org>
20158 * modules/copy-file: New file.
20159 * MODULES.html.sh (func_all_modules): Add it.
20161 2003-03-28 Bruno Haible <bruno@clisp.org>
20163 * m4/copy-file.m4: New file.
20165 2003-03-28 Bruno Haible <bruno@clisp.org>
20167 * lib/copy-file.h: New file, from GNU gettext.
20168 * lib/copy-file.c: New file, from GNU gettext.
20170 2003-03-18 Jim Meyering <jim@meyering.net>
20172 * lib/quote.c (quote_n): Fix typo in comment.
20174 2003-03-18 Bruno Haible <bruno@clisp.org>
20176 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20178 * m4/onceonly_2_57.m4: Likewise.
20180 2003-03-17 Bruno Haible <bruno@clisp.org>
20182 * m4/onceonly.m4: Require autoconf 2.54 or newer.
20183 (m4_quote): Remove macro.
20184 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20186 2003-03-14 Jim Meyering <jim@meyering.net>
20188 Merge changes from Coreutils.
20189 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20190 to be const, in order to avoid warnings.
20191 (obstack_room): Likewise.
20192 (obstack_empty_p): Likewise.
20194 2003-03-14 Bruno Haible <bruno@clisp.org>
20196 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20197 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20199 2003-03-13 Paul Eggert <eggert@twinsun.com>
20201 Merge changes from Bison.
20202 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20203 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20204 when compiling Bison 1.875's `bitset bset = obstack_alloc
20205 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
20206 * lib/hash.c: Include <stdbool.h> unconditionally.
20208 2003-03-13 Paul Eggert <eggert@twinsun.com>
20210 * m4/onceonly.m4 (m4_quote): New macro.
20211 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20212 Quote AC_FOREACH variable-expansions properly.
20214 2003-03-13 Paul Eggert <eggert@twinsun.com>
20216 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20218 2003-03-09 Paul Eggert <eggert@twinsun.com>
20220 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20221 Reported by Bruce Becker; see:
20222 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20224 2003-03-03 Paul Eggert <eggert@twinsun.com>
20225 Bruno Haible <bruno@clisp.org>
20227 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20228 Reported by John Hughes, see
20229 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20231 2003-02-20 Bruno Haible <bruno@clisp.org>
20233 * MODULES.html.sh (func_all_modules): Add poll.
20235 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
20237 * modules/poll: New file.
20239 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
20241 * lib/poll_.h: New file.
20242 * lib/poll.c: New file.
20244 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
20246 * m4/poll.m4: New file.
20248 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
20250 * modules/mathl: New file.
20252 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
20254 * lib/mathl.h: New file.
20255 * lib/acosl.c: New file.
20256 * lib/asinl.c: New file.
20257 * lib/atanl.c: New file.
20258 * lib/ceill.c: New file.
20259 * lib/cosl.c: New file.
20260 * lib/expl.c: New file.
20261 * lib/floorl.c: New file.
20262 * lib/frexpl.c: New file.
20263 * lib/ldexpl.c: New file.
20264 * lib/logl.c: New file.
20265 * lib/sincosl.c: New file.
20266 * lib/sinl.c: New file.
20267 * lib/sqrtl.c: New file.
20268 * lib/tanl.c: New file.
20269 * lib/trigl.c: New file.
20270 * lib/trigl.h: New file.
20272 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
20274 * m4/mathl.m4: New file.
20276 2003-02-18 Bruno Haible <bruno@clisp.org>
20278 * MODULES.html.sh (func_all_modules): Add mathl.
20280 2003-02-17 Bruno Haible <bruno@clisp.org>
20282 * modules/mkdtemp: New module.
20283 * MODULES.html.sh (func_all_modules): Add it.
20285 2003-02-17 Bruno Haible <bruno@clisp.org>
20287 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20289 2003-02-17 Bruno Haible <bruno@clisp.org>
20291 * lib/mkdtemp.h: New file, from GNU gettext.
20292 * lib/mkdtemp.c: New file, from GNU gettext.
20294 2003-02-02 Jim Meyering <jim@meyering.net>
20296 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20299 2003-01-31 Bruno Haible <bruno@clisp.org>
20301 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20303 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20305 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20307 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20310 2003-01-31 Bruno Haible <bruno@clisp.org>
20312 * lib/rename.c: #undef rename before defining rpl_rename.
20313 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20315 2003-01-30 Bruno Haible <bruno@clisp.org>
20317 * modules/vasnprintf, modules/vasprintf: New modules.
20318 * MODULES.html.sh (func_all_modules): Add them.
20320 2003-01-30 Bruno Haible <bruno@clisp.org>
20322 * m4/signed.m4: New file, from GNU gettext.
20323 * m4/longdouble.m4: New file, from GNU gettext.
20324 * m4/wchar_t.m4: New file, from GNU gettext.
20325 * m4/wint_t.m4: New file, from GNU gettext.
20326 * m4/vasnprintf.m4: New file.
20327 * m4/vasprintf.m4: New file.
20329 2003-01-30 Bruno Haible <bruno@clisp.org>
20331 * lib/printf-args.h: New file, from GNU gettext.
20332 * lib/printf-args.c: New file, from GNU gettext.
20333 * lib/printf-parse.h: New file, from GNU gettext.
20334 * lib/printf-parse.c: New file, from GNU gettext.
20335 * lib/vasnprintf.h: New file, from GNU gettext.
20336 * lib/vasnprintf.c: New file, from GNU gettext.
20337 * lib/asnprintf.c: New file, from GNU gettext.
20338 * lib/vasprintf.h: New file, from GNU gettext with modifications.
20339 * lib/vasprintf.c: New file, from GNU gettext.
20340 * lib/asprintf.c: New file, from GNU gettext.
20342 2003-01-29 Bruno Haible <bruno@clisp.org>
20344 * modules/stpncpy: New module.
20345 * MODULES.html.sh (func_all_modules): Add it.
20347 2003-01-29 Bruno Haible <bruno@clisp.org>
20349 * m4/stpncpy.m4: New file.
20351 2003-01-29 Bruno Haible <bruno@clisp.org>
20353 * lib/stpncpy.h: New file, from GNU gettext with modifications.
20354 * lib/stpncpy.c: New file, from GNU gettext with modifications.
20356 2003-01-28 Bruno Haible <bruno@clisp.org>
20358 * modules/c-ctype: New module.
20359 * MODULES.html.sh (func_all_modules): Add it.
20361 2003-01-28 Bruno Haible <bruno@clisp.org>
20363 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20365 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20368 2003-01-27 Bruno Haible <bruno@clisp.org>
20370 * modules/xsetenv: New module.
20371 * MODULES.html.sh (func_all_modules): Add it.
20373 2003-01-27 Bruno Haible <bruno@clisp.org>
20375 * lib/xsetenv.h: New file, from GNU gettext.
20376 * lib/xsetenv.c: New file, from GNU gettext.
20378 2003-01-23 Jim Meyering <jim@meyering.net>
20380 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20381 from working on systems without dirfd (at least Irix and OSF1/Tru64).
20383 2003-01-23 Bruno Haible <bruno@clisp.org>
20385 * modules/minmax: New module.
20386 * MODULES.html.sh (func_all_modules): Add it.
20388 2003-01-23 Bruno Haible <bruno@clisp.org>
20390 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20393 2003-01-22 Bruno Haible <bruno@clisp.org>
20395 * modules/exit: New module.
20396 * MODULES.html.sh (func_all_modules): Add it.
20398 2003-01-22 Bruno Haible <bruno@clisp.org>
20400 * lib/exit.h: New file, from GNU gettext.
20402 2003-01-19 Bruno Haible <bruno@clisp.org>
20404 * gnulib-tool: Recognize option --extract-maintainer.
20405 (func_get_maintainer): New function.
20406 * modules/*: Add Maintainer entry.
20408 2003-01-16 Jim Meyering <jim@meyering.net>
20410 * m4/regex.m4: The `regex' struct is both input and output.
20411 Initialize it before each use. Patch by Tim Waugh.
20413 2003-01-16 Bruno Haible <bruno@clisp.org>
20415 * MODULES.html.sh: Add a table of contents. Add the module name as
20416 leftmost column. Add hyperlinks.
20418 2003-01-15 Bruno Haible <bruno@clisp.org>
20420 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20422 2003-01-15 Bruno Haible <bruno@clisp.org>
20424 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20425 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20428 2003-01-15 Bruno Haible <bruno@clisp.org>
20430 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20432 2003-01-15 Bruno Haible <bruno@clisp.org>
20434 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20435 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20437 2003-01-14 Jim Meyering <jim@meyering.net>
20439 * lib/same.c (same_name): Tweak a comment.
20441 2003-01-14 Bruno Haible <bruno@clisp.org>
20443 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20444 when a string comparison is sufficient.
20446 2003-01-14 Bruno Haible <bruno@clisp.org>
20448 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20451 2003-01-14 Bruno Haible <bruno@clisp.org>
20453 * lib/hash-pjw.c: Add comment about low quality of this function.
20455 2003-01-13 Bruno Haible <bruno@clisp.org>
20457 * modules/stpcpy: Distribute lib/stpcpy.h.
20458 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20460 2003-01-13 Bruno Haible <bruno@clisp.org>
20462 * modules/*: Add a description.
20463 * modules/strpbrk: Fix Makefile.am snippet.
20464 * modules/strtoimax: Fix dependencies.
20465 * modules/strtoumax: Likewise.
20467 2003-01-13 Bruno Haible <bruno@clisp.org>
20469 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20470 * modules/alloca (Makefile.am): All object files depend on alloca.h.
20471 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20473 2003-01-13 Bruno Haible <bruno@clisp.org>
20475 * gnulib-tool (func_create_testdir): Store config/* files in the main
20477 * config.rpath: Move to ...
20478 * config/config.rpath: ... here.
20479 * modules/gettext: Contains config/config.rpath, not config.rpath.
20480 * modules/iconv: Likewise.
20482 2003-01-12 Paul Eggert <eggert@twinsun.com>
20484 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20485 to avoid collisions with libcurses and libreadline.
20487 * m4/getstr.m4: Remove.
20488 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20490 2003-01-12 Paul Eggert <eggert@twinsun.com>
20492 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20493 to avoid collisions with libcurses and libreadline.
20495 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20496 * lib/getstr.h, getstr.c: Remove.
20497 * lib/getline.c: Include "getline.h", to check interface.
20498 Move body of old getstr.c here: this defines MIN_CHUNK and
20499 declares getdelim2, which is renamed from getstr.
20500 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20502 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20504 * lib/linebuffer.h: Likewise.
20505 (readline): Remove backward-compatibility macro.
20507 2003-01-12 Paul Eggert <eggert@twinsun.com>
20509 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20510 to avoid collisions with libcurses and libreadline.
20512 * MODULES.html.sh: Remove getstr.
20513 * modules/getline: Depend on unlocked-io, not getstr.
20515 2003-01-12 Jim Meyering <jim@meyering.net>
20517 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
20519 2003-01-10 Bruno Haible <bruno@clisp.org>
20521 * modules/alloca: Change Makefile.am requirements. Simplify Include
20522 requirements. Add lib/alloca_.h to file list.
20524 2003-01-10 Bruno Haible <bruno@clisp.org>
20526 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20528 2003-01-10 Bruno Haible <bruno@clisp.org>
20530 * lib/alloca_.h: New file.
20531 * lib/getdate.y: Unconditionally include alloca.h.
20532 * lib/makepath.c: Likewise.
20533 * lib/setenv.c: Likewise.
20534 * lib/userspec.c: Likewise.
20536 2003-01-09 Karl Berry <karl@gnu.org>
20538 * MODULES.html.sh: include `dirname $0` in PATH, to find
20541 2003-01-09 Bruno Haible <bruno@clisp.org>
20543 * modules/stdbool: Change configure.ac, Makefile.am requirements.
20544 Simplify Include requirements. Add lib/stdbool.h.in to file list.
20546 2003-01-09 Bruno Haible <bruno@clisp.org>
20548 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20550 2003-01-09 Bruno Haible <bruno@clisp.org>
20552 * lib/stdbool.h.in: New file.
20554 2003-01-09 Bruno Haible <bruno@clisp.org>
20556 * gnulib-tool (func_all_modules): Ignore files ending in ~.
20557 * MODULES.html.sh: Likewise.
20559 2003-01-08 Jim Meyering <jim@meyering.net>
20561 * lib/full-write.c: Undefine and define-away `const' after inclusion
20562 of errno.h, not before. Suggestion from Bruno Haible.
20564 2003-01-08 Bruno Haible <bruno@clisp.org>
20566 * modules/full-read: Depend on full-write.
20568 2003-01-08 Bruno Haible <bruno@clisp.org>
20570 * lib/safe-read.c: Include specification header first, to ensure its
20572 * lib/full-write.c: Likewise.
20574 2003-01-07 Jim Meyering <jim@meyering.net>
20576 * lib/full-write.c: Rework so that it may serve to define full_read,
20578 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20580 2003-01-07 Bruno Haible <bruno@clisp.org>
20582 * lib/strtoimax.c: Include <stdint.h> as an alternative to
20584 * lib/xstrtol.h: Likewise.
20585 * lib/xstrtoimax.c: Likewise.
20586 * lib/xstrtoumax.c: Likewise.
20587 * lib/human.h: Likewise.
20589 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20590 on systems that have <inttypes.h> but not <stdint.h>.
20592 2003-01-07 Bruno Haible <bruno@clisp.org>
20594 * MODULES.html.sh: Add copyright notice.
20595 (missed_files): Omit CVS directory entries.
20596 (func_module): Make it work with sed-3.02.
20597 * MODULES.txt: Remove file.
20599 2003-01-06 Jim Meyering <jim@meyering.net>
20601 * lib/version-etc.c: Update year in translatable copyright string.
20603 2003-01-03 Karl Berry <karl@gnu.org>
20605 * config/config.{guess,sub}: update from prep.
20607 2003-01-02 Karl Berry <karl@gnu.org>
20609 * doc/COPYING.DOC: belatedly updated to 1.2.
20611 2003-01-01 Karl Berry <karl@gnu.org>
20613 * gnulib-tool (func_verify_module): report module name $module in
20614 error message, not $1.
20615 * gnulib-tool (create-testdir): don't complain if destdir couldn't
20616 be created, only if it doesn't exist.
20617 * gnulib-tool (last_checkin_date): don't expand the $Date here.
20619 2002-12-31 Paul Eggert <eggert@twinsun.com>
20621 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20623 2002-12-31 Paul Eggert <eggert@twinsun.com>
20625 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20626 memcmp if strcoll doesn't work.
20628 2002-12-31 Bruno Haible <bruno@clisp.org>
20630 * lib/utime.c (utime_null): No need to call ftruncate if the file was
20633 2002-12-31 Bruno Haible <bruno@clisp.org>
20635 * lib/memcoll.c (STRCOLL): New macro.
20638 2002-12-31 Bruno Haible <bruno@clisp.org>
20640 * lib/localcharset.h: New file.
20641 * lib/localcharset.c: Include it.
20642 * lib/unicodeio.c: Likewise.
20644 2002-12-31 Bruno Haible <bruno@clisp.org>
20646 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20647 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20649 2002-12-31 Bruno Haible <bruno@clisp.org>
20651 * lib/getline.h: Include <stddef.h>, for size_t.
20653 * lib/unicodeio.h: Include <stddef.h>, for size_t.
20654 * lib/unicodeio.c: Don't include <stddef.h>.
20656 2002-12-31 Bruno Haible <bruno@clisp.org>
20658 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20661 2002-12-24 Karl Berry <karl@gnu.org>
20663 * config/config.guess: update from prep.
20665 2002-12-24 Bruno Haible <bruno@clisp.org>
20667 General infrasructure.
20668 * m4/README: Rewritten.
20669 * m4/onceonly.m4: New file.
20670 * m4/onceonly_2_57.m4: New file.
20673 * m4/atexit.m4: New file.
20676 * m4/strtod.m4: New file.
20679 * m4/strtol.m4: New file.
20682 * m4/strtoul.m4: New file.
20685 * m4/memchr.m4: New file.
20688 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
20689 (jm_FUNC_MEMCMP): Invoke it.
20692 * m4/memcpy.m4: New file.
20695 * m4/memmove.m4: New file.
20698 * m4/memset.m4: New file.
20701 * m4/strcspn.m4: New file.
20704 * m4/strpbrk.m4: New file.
20707 * m4/strstr.m4: New file.
20710 * m4/strerror.m4: New file.
20713 * m4/mktime.m4: Renamed from jm-mktime.m4.
20714 (gl_PREREQ_MKTIME): New macro.
20715 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
20718 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
20719 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
20720 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
20723 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
20724 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
20725 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
20728 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
20729 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
20730 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
20732 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
20735 * m4/xalloc.m4: New file.
20738 * m4/alloca.m4: New file.
20741 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20742 (jm_FUNC_PUTENV): Invoke it.
20745 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
20746 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
20747 when invoked twice.
20748 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
20752 * m4/memrchr.m4: New file.
20755 * m4/stpcpy.m4: New file.
20758 * m4/strcase.m4: New file.
20761 * m4/strdup.m4: New file.
20764 * m4/strnlen.m4: New file.
20767 * m4/strndup.m4: New file.
20770 * m4/xstrtod.m4: New file.
20773 * m4/xstrtol.m4: New file.
20776 * m4/getdate.m4: New file.
20778 Module unlocked-io.
20779 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20780 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20781 * m4/jm-glibc-io.m4n: Remove file.
20783 Module long-options.
20784 * m4/long-options.m4: New file.
20787 * m4/md5.m4: New file.
20790 * m4/sha.m4: New file.
20793 * m4/getstr.m4: New file.
20796 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20797 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20798 <sys/types.h>, for size_t. Use the function name gnu_getline, not
20799 simply getline. Infoke gl_PREREQ_GETLINE.
20802 * m4/obstack.m4: New file.
20805 * m4/hash.m4: New file.
20808 * m4/readtokens.m4: New file.
20811 * m4/strverscmp.m4: New file.
20814 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20818 * m4/strtoll.m4: New file.
20821 * m4/strtoull.m4: New file.
20824 * m4/strtoimax.m4: New file.
20827 * m4/strtoumax.m4: New file.
20830 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20831 jm_AC_PREREQ_XSTRTOIMAX.
20832 Moved the strtol prerequisites to strtol.m4.
20833 Moved the strtoll prerequisites to strtoll.m4.
20834 Moved the strtoimax prerequisites to strtoimax.m4.
20837 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20838 jm_AC_PREREQ_XSTRTOUMAX.
20839 Moved the strtoul prerequisites to strtoul.m4.
20840 Moved the strtoull prerequisites to strtoull.m4.
20841 Moved the strtoumax prerequisites to strtoumax.m4.
20844 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20845 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20848 * m4/dup2.m4: New file.
20851 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20852 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20855 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20856 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20858 Module gettimeofday.
20859 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20860 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
20861 gl_PREREQ_GETTIMEOFDAY.
20864 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
20865 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
20868 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
20869 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
20870 jm_AC_TYPE_UINTMAX_T.
20871 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
20874 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
20875 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
20878 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
20879 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
20882 * m4/timespec.m4 (gl_TIMESPEC): New macro.
20883 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
20884 * m4/st_mtim.m4: Indentation.
20887 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
20888 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
20889 gl_PREREQ_NANOSLEEP.
20892 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
20893 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
20894 (gl_REGEX): New macro.
20897 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
20898 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
20901 * m4/rmdir.m4: New file.
20904 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
20905 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
20906 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
20909 * m4/dirname.m4: New file.
20912 * m4/getopt.m4: New file.
20914 Module unistd-safer.
20915 * m4/unistd-safer.m4: New file.
20918 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
20920 (gl_PREREQ_FNMATCH_EXTRA): New macro.
20921 (gl_FUNC_FNMATCH_POSIX): New macro.
20922 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
20923 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
20927 * m4/exclude.m4: New file.
20930 * m4/human.m4: New file.
20936 * m4/backupfile.m4: New file.
20937 * m4/d-ino.m4: Indentation.
20940 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
20941 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
20942 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
20945 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
20949 * m4/euidaccess.m4: New file.
20952 * m4/file-type.m4: New file.
20955 * m4/fileblocks.m4: New file.
20958 * m4/filemode.m4: New file.
20961 * m4/isdir.m4: New file.
20964 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
20965 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
20968 * m4/makepath.m4: New file.
20971 * m4/modechange.m4: New file.
20974 * m4/mountlist.m4: New file.
20975 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
20978 Module path-concat.
20979 * m4/path-concat.m4: New file.
20982 * m4/pathmax.m4: New file.
20985 * m4/same.m4: New file.
20988 * m4/save-cwd.m4: New file.
20991 * m4/savedir.m4: New file.
20994 * m4/xgetcwd.m4: New file.
20995 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
20998 * m4/xreadlink.m4: New file.
21001 * m4/safe-read.m4: New file.
21004 * m4/safe-write.m4: New file.
21007 * m4/closeout.m4: New file.
21009 Module stdio-safer.
21010 * m4/stdio-safer.m4: New file.
21013 * m4/getpass.m4: New file.
21016 * m4/getugroups.m4: New file.
21018 Module group-member.
21019 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21020 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21023 * m4/idcache.m4: New file.
21026 * m4/userspec.m4: New file.
21029 * m4/clock_time.m4: New file.
21030 * m4/gettime.m4: New file.
21033 * m4/settime.m4: New file.
21036 * m4/posixtm.m4: New file.
21038 Module gethostname.
21039 * m4/gethostname.m4: New file.
21042 * m4/canon-host.m4: New file.
21045 * m4/codeset.m4: New file, from gettext-0.11.5.
21046 * m4/gettext.m4: New file, from gettext-0.11.5.
21047 * m4/glibc21.m4: New file, from gettext-0.11.5.
21048 * m4/iconv.m4: New file, from gettext-0.11.5.
21049 * m4/intdiv0.m4: New file, from gettext-0.11.5.
21050 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21051 * m4/inttypes.m4: New file, from gettext-0.11.5.
21052 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21053 * m4/isc-posix.m4: New file, from gettext-0.11.5.
21054 * m4/lcmessage.m4: New file, from gettext-0.11.5.
21055 * m4/lib-ld.m4: New file, from gettext-0.11.5.
21056 * m4/lib-link.m4: New file, from gettext-0.11.5.
21057 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21058 * m4/progtest.m4: New file, from gettext-0.11.5.
21059 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21060 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21061 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21063 Module localcharset.
21064 * m4/localcharset.m4: New file.
21066 Module hard-locale.
21067 * m4/hard-locale.m4: New file.
21070 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21072 * m4/mbrtowc.m4: Add comment.
21075 * m4/memcasecmp.m4: New file.
21078 * m4/memcoll.m4: New file.
21081 * m4/unicodeio.m4: New file.
21084 * m4/rpmatch.m4: New file.
21087 * m4/yesno.m4: New file.
21090 * m4/exitfail.m4: New file.
21093 * m4/c-stack.m4 (gl_C_STACK): New macro.
21094 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21097 * m4/error.m4 (gl_ERROR): New macro.
21098 (jm_PREREQ_ERROR): Use onceonly macros.
21101 * m4/fatal.m4: New file.
21104 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21105 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21107 Module getpagesize.
21108 * m4/getpagesize.m4: New file.
21110 Module getusershell.
21111 * m4/getusershell.m4: New file.
21114 * m4/physmem.m4: New file.
21117 * m4/posixver.m4: New file.
21120 * m4/quotearg.m4: New file.
21123 * m4/quote.m4: New file.
21126 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21129 * m4/sig2str.m4: New file.
21132 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21134 * m4/intmax_t.m4: New file.
21135 * m4/d-type.m4: Indentation.
21136 * m4/jm-macros.m4: Update.
21137 * m4/prereq.m4 (jm_PREREQ): Update.
21138 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21139 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21140 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21141 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21142 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21143 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21144 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21145 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21146 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21147 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21148 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21149 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21150 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21151 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21152 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21153 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21154 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21155 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21156 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21158 2002-12-24 Bruno Haible <bruno@clisp.org>
21160 * MODULES.txt: Update according to m4/ changes.
21163 * config.rpath: New file, from gettext-0.11.5.
21165 * modules/*: New module descriptions.
21166 * gnulib-tool: New file.
21167 * MODULES.html.sh: New file.
21169 2002-12-21 Karl Berry <karl@gnu.org>
21171 * doc/fdl.texi: update to version 1.2.
21173 2002-12-19 Karl Berry <karl@gnu.org>
21175 * config/config.guess: update from prep.
21177 2002-12-18 Bruno Haible <bruno@clisp.org>
21179 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21180 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21182 2002-12-17 Bruno Haible <bruno@clisp.org>
21184 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21185 stdlib.h, string.h.
21187 2002-12-17 Bruno Haible <bruno@clisp.org>
21189 * lib/canon-host.c (strdup): Remove unused declaration.
21191 * lib/fsusage.c: Include full_read.h.
21192 (get_fs_usage): Use full_read instead of safe_read.
21194 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21196 2002-12-12 Karl Berry <karl@gnu.org>
21198 * config/config.guess: update from prep.
21200 2002-12-11 Bruno Haible <bruno@clisp.org>
21202 * m4/setenv.m4: New file, from gettext-0.11.5.
21204 2002-12-11 Bruno Haible <bruno@clisp.org>
21206 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21208 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21211 2002-12-11 Bruno Haible <bruno@clisp.org>
21213 * setenv.c (alloca): Fall back to malloc.
21214 (freea): New macro.
21215 (setenv): Use freea() to free memory allocated with alloca().
21217 2002-11-13 Bruno Haible <bruno@clisp.org>
21219 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21220 function declarations.
21221 * unsetenv.c (unsetenv): Likewise.
21223 2002-03-04 Bruno Haible <bruno@clisp.org>
21225 Portability to AIX 4.3.3.
21226 * unsetenv.c: New file, extracted from setenv.c.
21227 * setenv.c: Move the unsetenv() function to unsetenv.c.
21229 2001-12-20 Bruno Haible <bruno@clisp.org>
21231 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21232 use malloc instead. For SunOS 4.
21234 2001-12-11 Bruno Haible <bruno@clisp.org>
21236 * setenv.c: Declare alloca.
21237 (compar_fn_t): New typedef.
21238 (KNOWN_VALUE, STORE_VALUE): Use it.
21240 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21243 2002-12-10 Paul Eggert <eggert@twinsun.com>
21245 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21246 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21247 Choose values that are less likely to collide with system fnmatch
21249 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21250 defined (e.g., a pure POSIX system).
21251 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21252 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21254 2002-12-06 Paul Eggert <eggert@twinsun.com>
21256 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21257 a pain in practice to deal with generated m4 files. This change
21258 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21260 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21261 and jm-glibc-io.m4, as they are no longer a special case.
21262 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21263 kludge and the auto-generation stuff. Check only whether the
21264 functions are declared, not whether they exist, since older hosts
21265 that don't declare the functions can't use the optimization anyway.
21267 2002-12-06 Jim Meyering <jim@meyering.net>
21269 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21271 Merge in changes from libc's misc/error.c, in preparation
21272 for the merge of gnulib's changes back into libc.
21274 * lib/error.c (_): Define only if not already defined.
21275 Move definition to follow all #include directives.
21276 Include unlocked-io.h only if !_LIBC.
21277 [_LIBC]: Include <libio/libioP.h>.
21278 [USE_IN_LIBIO]: Include <libio/iolibio.h>
21279 (fflush): Tweak definition to use INTUSE.
21282 2002-12-05 Paul Eggert <eggert@twinsun.com>
21284 * lib/alloca.c [defined emacs]: Include "lisp.h".
21285 (xalloc_die) [defined emacs]: New macro.
21286 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21287 [! defined emacs]: Include <xalloc.h>.
21288 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21289 (pointer): Typedef to POINTER_TYPE *.
21290 (malloc): Remove decl; we now always use xmalloc.
21291 (alloca): Use old-style definition, since Emacs needs this.
21292 Check for arithmetic overflow when computing combined size.
21294 2002-12-04 Paul Eggert <eggert@twinsun.com>
21296 Do not generate unlocked-io.h automatically, since it's easier to
21297 maintain it by hand.
21299 * lib/unlocked-io.h: New file, from GNU diffutils,
21300 but with proper copyright notice and attribution.
21301 * lib/gen-uio: Remove.
21302 * lib/Makefile.am: Add copyright notice.
21303 (libfetish_a_SOURCES): Add unlocked-io.h.
21304 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21305 (DISTCLEANFILES, io_functions): Remove macros.
21306 (EXTRA_DIST): Remove gen_uio.
21307 (unlocked-io.h): Remove rule.
21309 2002-12-04 Jim Meyering <jim@meyering.net>
21311 Reflect the fact that stat.c and lstat.c are no longer generated.
21312 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21313 (DISTCLEANFILES): Likewise.
21314 (EXTRA_DIST): Likewise.
21315 (all_local): Don't depend on stat.c or lstat.c.
21316 (stat.c, lstat.c): Remove rules.
21317 (EXTRA_DIST): Remove xstat.in.
21319 * lib/xstat.in: Remove file. Contents moved into stat.c.
21320 * lib/stat.c: New file. Contents mostly from xstat.in.
21321 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21322 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21324 * lib/safe-read.c: Rework so that it may serve to define safe_write,
21326 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21328 2002-12-03 Jim Meyering <jim@meyering.net>
21330 * lib/safe-read.c, safe-write.c: Change variable names and comments,
21331 but not semantics, to minimize the differences between these two files.
21332 (safe_read): Change comment to mention SAFE_READ_ERROR.
21334 * lib/safe-read.c (IS_EINTR): Define.
21335 (safe_read): Use IS_EINTR in place of in-function cpp directives.
21337 2002-12-02 Jim Meyering <jim@meyering.net>
21339 * lib/safe-read.c (EINTR): Define.
21340 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21341 (INT_MAX): Provide fallback.
21342 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21344 * lib/safe-read.h (SAFE_READ_ERROR): Define.
21346 2002-12-02 Bruno Haible <bruno@clisp.org>
21348 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21349 Define, taken from safe-read.c.
21350 (INT_MAX): Provide fallback.
21351 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21352 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21354 * lib/safe-read.c (EINTR): Remove definition.
21355 (safe_read): Don't use EINTR if it is absent.
21357 2002-12-01 Jim Meyering <jim@meyering.net>
21359 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21361 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21363 2002-11-27 Paul Eggert <eggert@twinsun.com>
21365 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21366 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21367 with `if (! (value < limit)) abort ();', for readability.
21369 2002-11-26 Karl Berry <karl@gnu.org>
21371 * lib/strdup.c: copy from libc again, with jim's ok.
21372 * lib/.cppi-disable: re-add strdup.c
21374 2002-11-25 Karl Berry <karl@gnu.org>
21376 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21377 instead of "strtol.c".
21379 2002-11-25 Karl Berry <karl@gnu.org>
21381 * config/install-sh: update from automake for variable quoting, $0 in
21384 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21385 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21388 2002-11-25 Jim Meyering <jim@meyering.net>
21390 * lib/mktime.c: Sync from libc, now that it has the latest fix.
21392 2002-11-24 Karl Berry <karl@gnu.org>
21394 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21395 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21397 2002-11-24 Jim Meyering <jim@meyering.net>
21399 Update from coreutils:
21401 * lib/mktime.c: Merge in changes from libc.
21403 Avoid a link-time failure on some Linux systems.
21404 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21406 (__mon_yday): Declare with the STATIC attribute.
21407 (__mktime_internal): Likewise.
21408 Based on a report from Greg Schafer.
21410 2002-11-23 Jim Meyering <jim@meyering.net>
21412 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21413 Use `unsigned', not `int', as type of index.
21415 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21417 * lib/fsusage.c: Remove unneeded parentheses around operands of
21420 2002-11-22 Paul Eggert <eggert@twinsun.com>
21422 * lib/quotearg.h: Allow multiple inclusion by surrounding with
21423 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
21424 so that we can be included first.
21425 (PARAMS): Remove; we now assume C89 or later. All uses removed.
21426 * lib/quotearg.c: Include quotearg.h immediately after config.h.
21427 No need to include stddef.h or sys/types.h any more.
21428 Surround local include files with "", not "<>".
21429 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21430 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21431 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21432 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21433 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21434 (ISPRINT): Remove; no longer needed now that we assume C89.
21436 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21439 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21440 quotearg_char): Use SIZE_MAX rather than
21441 (size_t) -1 when we are talking about "infinity".
21443 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21445 2002-11-22 Paul Eggert <eggert@twinsun.com>
21447 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21448 hint that one should use `if (! x) abort ();' rather than `assert
21449 (x);', and anyway it's one less thing to worry about configuring.
21450 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21451 hash_rehash, hash_insert): Use abort rather than assert.
21453 2002-11-22 Bruno Haible <bruno@clisp.org>
21455 * lib/safe-read.h: Assume C89. Add comments.
21456 (safe_read): Change return type to size_t.
21457 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21458 byte counts > SSIZE_MAX correctly.
21459 * lib/safe-write.h: New file.
21460 * lib/safe-write.c: New file.
21461 * lib/full-read.h: New file.
21462 * lib/full-read.c: New file.
21463 * lib/full-write.h: Assume C89. Add comments.
21464 * lib/full-write.c: Include safe-write.h.
21465 (full_write): Rewritten to use safe_write.
21466 Suggested by Jim Meyering and Paul Eggert.
21468 2002-11-21 Jim Meyering <jim@meyering.net>
21470 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21472 Merge in changes from the coreutils.
21474 2002-09-25 Paul Eggert <eggert@twinsun.com>
21475 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21477 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21478 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21479 int. Work more efficiently if X is the same width as uintmax_t.
21480 Do not compare X to -1, to avoid bogus compiler warning.
21481 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21482 Don't assume that f_frsize and f_bsize are the same type.
21484 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21485 warning on FreeBSD.
21487 * lib/makepath.c (make_path): Restore umask *before* creating the final
21489 (make_path): Minor reformatting.
21491 * lib/xmalloc.c: Adjust to work with new autoconf macros,
21492 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21493 HAVE_MALLOC/HAVE_REALLOC.
21495 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21496 dummy ones. At least on GNU/Linux systems, `auto' means something
21498 From Michael Stone.
21500 2002-11-21 Bruno Haible <bruno@clisp.org>
21502 Remove case insensitive option matching.
21503 * lib/argmatch.h (argcasematch): Remove declaration.
21504 (ARGCASEMATCH): Remove macro.
21505 (__xargmatch_internal): Remove case_sensitive argument.
21506 (XARGMATCH): Update.
21507 (XARGCASEMATCH): Remove macro.
21508 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21509 case_sensitive argument.
21510 (argcasematch): Remove function.
21511 (__xargmatch_internal): Remove case_sensitive argument.
21512 (main): Use XARGMATCH instead of XARGCASEMATCH.
21514 * lib/xmalloc.c: Change compile-time error message. Add comment about
21515 required autoconf version.
21517 2002-11-20 Paul Eggert <eggert@twinsun.com>
21519 Merge argmatch cleanups from Bison. Assume C89.
21521 * lib/argmatch.c: Include config.h here, not in argmatch.h.
21522 Include stdlib.h, for EXIT_FAILURE.
21523 Always include <string.h>, since we assume C89.
21524 (EXIT_FAILURE): Remove pre-C89 bug workaround.
21525 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21526 Include <stddef.h> instead, since it's all we need for size_t.
21527 (PARAMS): Remove. All uses removed.
21528 (ARRAY_CARDINALITY): Do not bother to #undef.
21529 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21530 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21531 Remove unnecessary parentheses.
21532 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21533 Insert necessary parentheses.
21534 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21535 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21537 2002-11-19 Bruno Haible <bruno@clisp.org>
21539 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21540 * lib/mbswidth.h: Include <stddef.h>, for size_t.
21542 * lib/mbswidth.h (PARAMS): Remove macro.
21543 (mbswidth, mbsnwidth): Use ANSI C function declarations.
21544 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21546 * lib/gcd.h (PARAMS): Remove macro.
21547 (gcd): Use ANSI C function declarations.
21548 * lib/gcd.c (gcd): Likewise.
21550 2002-11-15 Bruno Haible <bruno@clisp.org>
21552 * lib/strcspn.c: Include <stddef.h>.
21553 (strcspn): Use ANSI C function declaration. Change return type to
21555 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21556 (strpbrk): Use NULL.
21557 * lib/strpbrk.h (PARAMS): Remove macro.
21558 (strpbrk): Use ANSI C function declaration.
21559 * lib/strstr.c: Don't include <sys/types.h>.
21560 * lib/strstr.h (PARAMS): Remove macro.
21561 (strstr): Use ANSI C function declarations.
21563 2002-11-14 Karl Berry <karl@gnu.org>
21565 * config/mkinstalldirs: `do' on separate line, instead of
21568 2002-11-06 Bruno Haible <bruno@clisp.org>
21570 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21571 * lib/gcd.c (gcd): Likewise.
21573 2002-11-05 Bruno Haible <bruno@clisp.org>
21575 * lib/gcd.h: New file, from gettext-0.11.5.
21576 * lib/gcd.c: New file, from gettext-0.11.5.
21578 2002-11-05 Bruno Haible <bruno@clisp.org>
21580 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21581 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21582 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21583 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21585 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21587 * lib/makepath.c: Include gettext.h instead of <locale.h> and
21590 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21591 * lib/human.c: Include gettext.h instead of <libintl.h>.
21592 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21593 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21594 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21595 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21596 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21597 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21598 (textdomain): Remove definition.
21599 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21601 * lib/long-options.c: Remove include of <libintl.h> and definition of
21603 * lib/same.c: Remove include of <libintl.h> and definition of _.
21605 2002-11-04 Owen Taylor <otaylor@redhat.com>
21607 * lib/config.charset: A few additions for Solaris.
21609 2002-11-04 Bruno Haible <haible@clisp.cons.org>
21611 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21612 * lib/localcharset.c (locale_charset): Declare as extern "C".
21614 2002-11-04 Bruno Haible <haible@clisp.cons.org>
21616 * lib/config.charset: msdos in uk_UA uses CP1125.
21618 2002-11-04 Bruno Haible <bruno@clisp.org>
21620 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21621 * lib/strcase.h: New file, from GNU gettext-0.11.5.
21622 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21623 * lib/strstr.h: New file, from GNU gettext-0.11.5.
21624 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21626 2002-11-04 Bruno Haible <bruno@clisp.org>
21628 * lib/localcharset.c (locale_charset): Don't return an empty string.
21630 2002-11-04 Bruno Haible <bruno@clisp.org>
21632 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21635 2002-11-04 Bruno Haible <bruno@clisp.org>
21637 * lib/config.charset: Update for newest glibc. Add canonical names
21638 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21640 2002-11-04 Bruno Haible <bruno@clisp.org>
21642 * lib/config.charset: Add support for NetBSD.
21644 2002-11-04 Bruno Haible <bruno@clisp.org>
21646 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21648 2002-11-01 Bruno Haible <bruno@clisp.org>
21650 * configure.in: Add AC_CONFIG_AUX_DIR call.
21651 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21653 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21655 2002-09-28 Karl Berry <karl@gnu.org>
21657 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21658 installed automake until the next release, since changes have been
21661 2002-09-25 Karl Berry <karl@gnu.org>
21663 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21664 * lib/getopt*: copy from libc/posix.
21665 * lib/gettext.h: copy from gettext.
21666 * lib/.cppi-disable: add strdup.c, gettext.h.
21668 2002-09-25 Karl Berry <karl@gnu.org>
21670 * config/srclist.txt: enable gettext.h check.
21671 * config/config.{guess,sub}: update from prep.
21672 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
21673 from automake 1.6.3.
21676 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
21678 * regex.c (PATFETCH): Remove the translating fetch.
21679 (PATFETCH_RAW): Rename to PATFETCH.
21680 (set_image_of_range): New fun.
21681 (SET_RANGE_TABLE_WORK_AREA): Use it.
21682 (regex_compile): Don't translate the pattern chars so eagerly.
21683 Only do it when inserting an `exactn' bytecode or when handling
21685 (mutually_exclusive_p): Avoid empty statement.
21687 2002-07-06 Jim Meyering <meyering@lucent.com>
21689 * m4/README: Don't mention Makefile.am.in.
21690 Outline how I've tested changes to .m4 files. Yep, it's a pain.
21692 2002-07-01 Jim Meyering <meyering@lucent.com>
21694 * lib/c-stack.c: Include sys/time.h.
21695 From Volker Borchert.
21697 2002-06-26 Paul Eggert <eggert@twinsun.com>
21699 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
21701 2002-06-26 Paul Eggert <eggert@twinsun.com>
21703 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
21704 New macro. Use it uniformly instead of
21705 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
21706 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
21707 reported by Vin Shelton.
21709 2002-06-22 Paul Eggert <eggert@twinsun.com>
21711 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
21712 Do not assume SA_SIGINFO behavior.
21713 Bug reported by Jim Meyering on NetBSD 1.5.2.
21715 2002-06-22 Jim Meyering <meyering@lucent.com>
21717 * m4/c-stack.m4: New file, from diffutils-2.8.2.
21718 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
21720 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
21721 now that configure.ac uses AC_GNU_SOURCE.
21722 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
21723 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
21725 Update to latest tools. Suggestions from Paul Eggert.
21726 * m4/stdbool.m4: New file, from diffutils-2.8.2.
21727 * m4/gnu-source.m4: Update from diffutils-2.8.2.
21728 * m4/fnmatch.m4: Likewise.
21729 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
21730 to AC_HEADER_STDBOOL
21732 2002-06-22 Jim Meyering <meyering@lucent.com>
21734 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
21735 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
21737 2002-06-22 Jim Meyering <meyering@lucent.com>
21739 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
21741 * lib/exitfail.c, exitfail.h: Likewise.
21742 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
21744 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
21746 (EXTRA_DIST): Add fnmatch_loop.c.
21747 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
21749 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
21750 * lib/fnmatch.c: Update from diffutils-2.8.2.
21751 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
21752 * lib/fnmatch.h: Remove file.
21754 2002-06-21 Jim Meyering <meyering@lucent.com>
21756 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
21757 * m4/mbrtowc.m4: Likewise.
21759 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
21760 * m4/mbswidth.m4: Reflect name change:
21761 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
21762 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21764 * m4/lib-link.m4: Update from gettext-0.11.2.
21765 * m4/gettext.m4: Likewise.
21767 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
21768 From Alfred M. Szmidt.
21770 2002-06-18 Paul Eggert <eggert@twinsun.com>
21772 * lib/file-type.h: Report an error if neither S_ISREG nor
21773 S_IFREG is defined, instead of using a test specific to glibc
21774 2.2. This should be safe, since POSIX requires S_ISREG and
21775 Unix Version 7 had S_IFREG. We don't need to check for
21776 <sys/types.h> since we don't use any symbols that it defines.
21778 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
21780 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21781 $@-t, so that each temporary file name is unique and valid in the first
21782 8 characters, for operation under DOS.
21784 2002-06-15 Paul Eggert <eggert@twinsun.com>
21786 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21788 2002-06-15 Jim Meyering <meyering@lucent.com>
21790 Work even with DJGPP 2.03, which lacks support for symlinks.
21792 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21794 * lib/lchown.c (S_ISLNK): Likewise.
21796 2002-06-15 Jim Meyering <meyering@lucent.com>
21798 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21799 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21800 have been included before this file.
21802 2002-06-14 Jim Meyering <meyering@lucent.com>
21804 * lib/file-type.h: Use the version from diffutils-2.8.2.
21805 * lib/file-type.c: Likewise.
21807 2002-06-07 Jim Meyering <meyering@lucent.com>
21809 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21810 They're needed at least for NetBSD 1.5.2.
21811 ($statxfs_includes): Include those same headers.
21812 ($statxfs_includes): Include sys/vfs.h if available.
21813 ($statxfs_includes): Likewise for sys/statvfs.h.
21814 Check for the following members in both structs statfs and statvfs:
21815 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21817 2002-06-01 Jim Meyering <meyering@lucent.com>
21819 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21820 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21822 2002-05-28 Jim Meyering <meyering@lucent.com>
21824 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21825 Reported by Volker Borchert.
21827 2002-05-27 Jim Meyering <meyering@lucent.com>
21829 Fix a problem seen only on nonconforming systems whereby ls.c's
21830 use of localtime, and then of gettimeofday would cause trouble:
21831 the localtime call used to initialize rpl_gettimeofday's save
21832 mechanism would clobber ls's current local time information so
21833 that in any long listing the first file would always be listed
21834 with date 1970-01-01. Analysis by Volker Borchert.
21836 * lib/gettimeofday.c (localtime): Undefine.
21837 (rpl_localtime): New function.
21839 2002-05-27 Jim Meyering <meyering@lucent.com>
21841 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21844 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21845 use the replacement function; it wouldn't resolve at link time.
21846 Reported by Volker Borchert.
21848 2002-05-22 Jim Meyering <meyering@lucent.com>
21850 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21852 * lib/file-type.h: New file.
21853 * lib/file-type.c (file_type): New file/function. Extracted from
21856 2002-04-30 Jim Meyering <meyering@lucent.com>
21858 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21860 2002-04-29 Paul Eggert <eggert@twinsun.com>
21862 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
21864 2002-04-29 Paul Eggert <eggert@twinsun.com>
21866 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
21867 Do not check for alloca.h (no longer used) or stdbool.h (was never
21868 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
21870 2002-04-29 Paul Eggert <eggert@twinsun.com>
21872 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
21874 2002-04-29 Jim Meyering <meyering@lucent.com>
21876 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
21877 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
21878 Use AC_FUNC_STRNLEN here instead.
21880 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
21881 With autoconf-2.53a, it's part of AC_PROG_CC.
21883 2002-04-28 Paul Eggert <eggert@twinsun.com>
21885 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
21886 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
21888 2002-04-28 Paul Eggert <eggert@twinsun.com>
21890 * lib/sig2str.h, lib/sig2str.c: New files.
21891 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
21893 2002-04-28 Paul Eggert <eggert@twinsun.com>
21895 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
21896 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
21897 of 127, since 64 is the largest conceivable number for ancient
21899 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
21901 2002-04-28 Jim Meyering <meyering@lucent.com>
21903 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
21905 2002-04-24 Jim Meyering <meyering@lucent.com>
21907 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
21908 (jm_PREREQ): Use it.
21910 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
21911 mach/mach.h fcntl.h.
21912 Check for this function: setlocale.
21914 2002-04-24 Jim Meyering <meyering@lucent.com>
21916 * lib/gettext.h: New file, from Gettext.
21917 * lib/Makefile.am (INCLUDES): Remove -I../intl.
21918 (libfetish_a_SOURCES): Add gettext.h.
21920 2002-04-16 Jim Meyering <meyering@lucent.com>
21922 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
21923 ut_pid, ut_id, ut_exit.
21925 2002-04-16 Jim Meyering <meyering@lucent.com>
21927 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
21928 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
21929 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
21931 2002-04-12 Jim Meyering <meyering@lucent.com>
21933 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
21934 now-bogus check for f_type in sys/mount.h. Instead, just test for the
21935 existence of the getmntinfo function. Needed for Darwin 5.3.
21937 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
21938 This is necessary at least on Darwin 5.3.
21940 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
21941 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
21942 strnlen.o in the library, and that makes some versions of ranlib
21945 2002-04-12 Jim Meyering <meyering@lucent.com>
21947 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
21949 2002-04-09 Jim Meyering <meyering@lucent.com>
21951 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
21952 to be more precise. Rather than saying we're checking whether the
21953 function `works', say what we're testing.
21954 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
21955 Reported by Bruno Haible.
21957 2002-03-10 Jim Meyering <meyering@lucent.com>
21959 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
21960 Suggestion from Santiago Vila.
21962 2002-03-08 Jim Meyering <meyering@lucent.com>
21964 * lib/rename.c: Mention that this wrapper is needed also on
21965 mips-dec-ultrix4.4 systems.
21967 2002-03-02 Jim Meyering <meyering@lucent.com>
21969 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
21970 not HAVE_CLOCK_SETTIME.
21972 2002-02-27 Paul Eggert <eggert@twinsun.com>
21974 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
21975 Check for clock_settime.
21977 2002-02-27 Paul Eggert <eggert@twinsun.com>
21979 * lib/nanosleep.h: Rename to....
21980 * lib/timespec.h: New name for nanosleep.h. All uses changed.
21982 * lib/gettime.c: New file.
21983 * lib/settime.c: New file.
21984 * lib/stime.c: Remove.
21986 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
21987 timespec.h. Remove nanosleep.h.
21989 2002-02-25 Paul Eggert <eggert@twinsun.com>
21991 * m4/acl.m4: New file.
21992 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
21993 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
21995 2002-02-25 Paul Eggert <eggert@twinsun.com>
21997 * lib/acl.c, lib/acl.h: New files.
21998 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22000 2002-02-24 Jim Meyering <meyering@lucent.com>
22002 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22003 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22004 cause trouble. Reported by Nelson Beebe.
22006 2002-02-23 Paul Eggert <eggert@twinsun.com>
22008 * lib/path-concat.c (xpath_concat): Reorder code to pacify
22009 compilers that don't know that xalloc_die never returns.
22011 2002-02-20 Jim Meyering <meyering@lucent.com>
22013 * lib/getdate.c: Regenerate using bison-1.33.
22015 2002-02-17 Jim Meyering <meyering@lucent.com>
22017 * config/config.guess (main): Don't use `head -1'; it's no longer
22018 portable. Use `sed 1q' instead.
22020 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
22022 * m4/codeset.m4: Upgrade to gettext-0.11.
22023 * m4/gettext.m4: Upgrade to gettext-0.11.
22024 * m4/glibc21.m4: Upgrade to gettext-0.11.
22025 * m4/iconv.m4: Upgrade to gettext-0.11.
22026 * m4/isc-posix.m4: Upgrade to gettext-0.11.
22027 * m4/lcmessage.m4: Upgrade to gettext-0.11.
22028 * m4/lib-ld.m4: New file, from gettext-0.11.
22029 * m4/lib-link.m4: New file, from gettext-0.11.
22030 * m4/lib-prefix.m4: New file, from gettext-0.11.
22031 * m4/progtest.m4: Upgrade to gettext-0.11.
22033 2002-02-15 Paul Eggert <eggert@twinsun.com>
22035 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22036 (jm_PREREQ): Use it.
22038 2002-02-15 Paul Eggert <eggert@twinsun.com>
22040 * lib/posixver.c, lib/posixver.h: New files.
22041 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22043 2002-02-02 Paul Eggert <eggert@twinsun.com>
22044 Bruno Haible <bruno@clisp.org>
22046 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22047 (fwrite_success_callback): New declaration.
22048 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22049 print_unicode_char. Call failure callback instead of error.
22050 (fwrite_success_callback): New function.
22051 (exit_failure_callback): New function.
22052 (fallback_failure_callback): New function.
22053 (print_unicode_char): Call unicode_to_mb.
22055 2002-01-26 Jim Meyering <meyering@lucent.com>
22057 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22058 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22060 2002-01-26 Jim Meyering <meyering@lucent.com>
22062 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22064 2002-01-22 Paul Eggert <eggert@twinsun.com>
22066 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22068 2002-01-22 Jim Meyering <meyering@lucent.com>
22070 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22071 Otherwise, some versions of automake would omit the rule that makes
22072 Makefile from Makefile.in.
22074 2002-01-21 Paul Eggert <eggert@twinsun.com>
22076 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22077 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22078 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22079 (memcoll): Set errno to zero if there is no error.
22081 * lib/quotearg.c (quotearg_buffer_restyled):
22082 Fix bug with quoting buffers containing NUL when backslashing escapes.
22083 This bug was exposed by the other changes in this patch.
22084 (quotearg_n_options): New arg ARGSIZE.
22085 All callers changed.
22086 (quoting_options_from_style): New function.
22087 (quotearg_n_style): Use it.
22088 (quotearg_n_style_mem): New function.
22090 * lib/quotearg.h (quotearg_n_style_mem): New function.
22092 2002-01-19 Jim Meyering <meyering@lucent.com>
22094 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22095 Remove useless quotes: DF_PROG="df".
22096 * m4/strnlen.m4: New file.
22098 2002-01-16 Paul Eggert <eggert@twinsun.com>
22100 * lib/backupfile.c (ISDIGIT): Comment fix.
22101 * lib/getdate.y (ISDIGIT): Likewise.
22102 * lib/posixtm.c (ISDIGIT, year): Likewise.
22103 * lib/strverscmp.c (ISDIGIT): Likewise.
22104 * lib/userspec.c (ISDIGIT): Likewise.
22106 2002-01-16 Jim Meyering <meyering@lucent.com>
22108 * lib/getdate.y: Add three semicolons, each just before a closing
22109 brace. Bison (as of version 1.31) no longer papers over that mistake.
22111 2002-01-05 Jim Meyering <meyering@lucent.com>
22113 * lib/version-etc.c (version_etc_copyright): Update copyright year.
22115 2001-12-19 Paul Eggert <eggert@twinsun.com>
22117 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22118 not silently exit merely because the output buffer happens to
22119 have nothing pending.
22121 2001-12-18 Paul Eggert <eggert@twinsun.com>
22123 See the big note in ../ChangeLog.
22124 * lib/human.c (suffixes): Prefer K to k for 1024.
22125 (generate_suffix_backwards): New function.
22126 (human_readable_inexact): Use it.
22127 * lib/xstrtol.c (__xstrtol): If there is no number but there
22128 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
22129 Accept 'K' as well as 'k'.
22131 2001-12-15 Jim Meyering <meyering@lucent.com>
22133 * lib/regex.h (__restrict_arr): Update from libc.
22135 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22136 as `remote' if the name starts with `//'. Suggested by Michael Stone.
22139 2001-12-14 Jim Meyering <meyering@lucent.com>
22141 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22142 Suggestion from Bruno Haible.
22144 2001-12-10 Jim Meyering <meyering@lucent.com>
22146 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22147 xrealloc, Instead, include "xalloc.h".
22148 (initbuffer): Don't cast xmalloc return value to char*.
22149 (readline): Reword comment.
22150 Don't cast xrealloc return value to char*
22151 Return NULL, not 0.
22153 2001-12-09 Jim Meyering <meyering@lucent.com>
22155 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22156 about `signed and unsigned type in conditional expression'.
22157 * lib/posixtm.c (posix_time_parse): Likewise.
22159 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22161 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22162 to avoid a pedantic warning.
22164 * lib/getstr.c: Don't include assert.h.
22165 (getstr): Remove warning-evoking assertions.
22166 Return -1 if offset parameter is out of bounds.
22167 Change the type of a local from int to size_t.
22169 * lib/strftime.c (my_strftime_localtime_r): Include this function
22170 definition in the `#if ! HAVE_TM_GMTOFF' block.
22172 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22173 Include xalloc.h instead.
22175 2001-12-02 Jim Meyering <meyering@lucent.com>
22177 * lib/tempname.c: Don't declare getenv, thus reverting the change of
22178 2001-11-18. It's no longer necessary, now that stdlib.h is always
22181 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22182 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
22184 2001-11-30 Akim Demaille <akim@epita.fr>
22186 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22187 before being defined.
22189 2001-11-27 Paul Eggert <eggert@twinsun.com>
22191 * lib/quotearg.h (quotearg_n, quotearg_n_style):
22192 First arg is int, not unsigned.
22193 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22194 (SIZE_MAX, UINT_MAX): New macros.
22195 (quotearg_n_options): Abort if N is negative.
22196 Avoid overflow check on hosts where size_t is 64 bits and int
22197 is 32 bits, as overflow is impossible there.
22198 Fix off-by-one typo that caused unnecessary reallocation.
22200 2001-11-27 Jim Meyering <meyering@lucent.com>
22202 * lib/tempname.c: Merge with version from libc.
22203 * lib/regex.c: Likewise.
22205 * lib/tempname.c: Include stdlib.h unconditionally. On some old
22206 systems for which STDC_HEADERS is 0, it was not included, resulting in
22207 a warning about an integer-to-pointer conversion problem with getenv.
22208 Reported by Volker Borchert.
22210 2001-11-26 Jim Meyering <meyering@lucent.com>
22212 * lib/gtod.h: Remove file.
22213 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22214 * lib/gettimeofday.c: Don't include gtod.h.
22215 (GTOD_init): Remove function.
22216 (rpl_gettimeofday): Do its job here instead, rather than aborting.
22217 Suggestion from Volker Borchert.
22219 2001-11-23 Jim Meyering <meyering@lucent.com>
22221 * lib/hash.h (struct hash_table): Don't define here. Merely declare
22223 * lib/hash.c (struct hash_table): Define it here instead.
22225 2001-11-22 Jim Meyering <meyering@lucent.com>
22227 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22229 2001-11-20 Jim Meyering <meyering@lucent.com>
22231 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22232 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22234 2001-11-19 Jim Meyering <meyering@lucent.com>
22236 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22237 directory. Use "conftestXXXXXX" as the template.
22238 Suggestion from Paul Eggert.
22240 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22241 immediately, so the test doesn't mistakenly hit the max-open-files
22244 2001-11-18 Paul Eggert <eggert@twinsun.com>
22246 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22247 (TEMPORARIES): New macro.
22248 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
22249 removes an artificial limitation (e.g. HP-UX 10.20, where
22252 2001-11-18 Jim Meyering <meyering@lucent.com>
22254 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22256 2001-11-18 Jim Meyering <meyering@lucent.com>
22258 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22261 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22262 files will be created before anything else.
22264 2001-11-17 Paul Eggert <eggert@twinsun.com>
22266 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22267 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22269 2001-11-17 Jim Meyering <meyering@lucent.com>
22271 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22272 Prompted by a report from Bob Proulx.
22274 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22275 Instead, require UTILS_FUNC_MKSTEMP.
22277 2001-11-17 Jim Meyering <meyering@lucent.com>
22279 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22280 Now, that's done as part of AC_FUNC_STRTOD.
22282 2001-11-17 Jim Meyering <meyering@lucent.com>
22284 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22285 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22286 rather than group writable. Patch by Juan F. Codagnone.
22288 * lib/readtokens.c: Remove explicit declarations of xmalloc and
22289 xrealloc, Instead, include "xalloc.h".
22291 * lib/mountlist.c: Include unlocked-io.h after all system headers.
22292 Remove explicit declarations of xmalloc, xrealloc,
22293 and xstrdup. Instead, include "xalloc.h".
22295 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22297 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22299 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22301 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22302 Reported by Padraig Brady.
22304 * lib/mkstemp.c: #undef mkstemp.
22306 (rpl_mkstemp): Rename from mkstemp.
22309 2001-11-16 Jim Meyering <meyering@lucent.com>
22311 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22312 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22313 determine the amount of total physical memory, use pstat_getstatic.
22314 HPUX-11 doesn't define _SC_PHYS_PAGES.
22315 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22316 If sysconf couldn't be used to determine the amount of available
22317 physical memory, use both pstat_getstatic and pstat_getdynamic.
22318 Based on a patch from Bob Proulx.
22320 2001-11-10 Jim Meyering <meyering@lucent.com>
22322 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22323 (jm_PREREQ): Use it.
22325 2001-11-09 Jim Meyering <meyering@lucent.com>
22327 * m4/jm-macros.m4: Require autoconf-2.52f.
22328 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22329 Use these AC_-prefixed names, not the AM_-prefixed ones.
22331 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
22333 2001-11-05 Jim Meyering <meyering@lucent.com>
22335 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22337 2001-11-04 Jim Meyering <meyering@lucent.com>
22339 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22342 2001-11-03 Jim Meyering <meyering@lucent.com>
22344 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22347 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22348 know the name of the variable in the macro definition.
22350 2001-11-03 Jim Meyering <meyering@lucent.com>
22352 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22353 in argmatch_to_argument call.
22355 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22358 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22359 e.g., a fault due to an attempt to free a NULL pointer.
22361 2001-11-01 Jim Meyering <meyering@lucent.com>
22363 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22364 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22366 2001-11-01 Jim Meyering <meyering@lucent.com>
22368 * lib/dirfd.c, lib/dirfd.h: New files.
22369 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22371 * lib/hash.c (hash_print) [TESTING]: Clean up.
22373 2001-10-22 Paul Eggert <eggert@twinsun.com>
22375 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22376 to avoid a warning if -Wall.
22378 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
22381 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22382 (per RMS's instructions, this is now the canonical source)
22383 * lgpl/, gpl/: New directories.
22385 2001-10-21 Paul Eggert <eggert@twinsun.com>
22387 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22389 2001-10-21 Jim Meyering <meyering@lucent.com>
22391 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
22392 this code would end up calling gettext even in packages built
22393 with --disable-nls.
22394 * lib/getopt.c (_): Likewise.
22395 * lib/regex.c (_): Likewise.
22397 2001-10-20 Paul Eggert <eggert@twinsun.com>
22399 * m4/error.m4 (jm_PREREQ_ERROR):
22400 Do not invoke AC_CHECK_FUNCS with strerror_r, as
22401 AC_FUNC_STRERROR_R does that.
22402 Check for strerror declaration.
22404 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22405 are supposed to have them these days.
22406 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22407 Merge changes from latest Autoconf CVS.
22408 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22409 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22410 POSIX decided to standardize on the int flavor of strerror_r.
22412 2001-10-20 Paul Eggert <eggert@twinsun.com>
22414 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22415 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22416 Use strerror_r that is only a macro, even if it is not a function.
22417 (strerror): Check for HAVE_DECL_STRERROR before declaring.
22418 (private_strerror): Use prototypes, not old-style function definition.
22419 (print_errno_message): New function.
22420 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22421 char*-flavored one.
22422 (error_tail, error, error_at_line): Use it.
22424 2001-10-11 Jim Meyering <meyering@lucent.com>
22426 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22427 and quote_n (1, ... to avoid clobbering a buffer.
22429 2001-10-05 Jim Meyering <meyering@lucent.com>
22431 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22433 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22434 * lib/hash-pjw.h: New file.
22436 2001-09-30 Jim Meyering <meyering@lucent.com>
22438 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22439 `struct fsstat' has the `f_fstypename' member.
22440 Use that to define FS_TYPE, which is now used to make
22441 the getfsstat link test tighter.
22443 2001-09-30 Jim Meyering <meyering@lucent.com>
22445 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22446 Include <sys/ucred.h>, for Apple Darwin.
22447 Include sys/mount.h and sys/fs_types.h only if available.
22449 (read_filesystem_list): Use FS_TYPE.
22451 2001-09-29 Paul Eggert <eggert@twinsun.com>
22453 * lib/exclude.c (excluded_filename): 0 -> false, since it's
22456 2001-09-29 Jim Meyering <meyering@lucent.com>
22458 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22459 [one-argument getmntent function]): Include stdio.h before mntent.h.
22460 SunOS 4.1.x needs it for the declaration of `FILE'.
22461 Patch by Volker Borchert.
22463 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22464 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22465 sys/fs_types.h, and make the link-test for getfsstat guard #include
22466 directives with appropriate #if HAVE_*_H tests so that we can
22467 detect getfsstat on Apple Darwin1.3.7 systems.
22468 Reported by Nelson Beebe.
22469 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22471 2001-09-28 Paul Eggert <eggert@twinsun.com>
22473 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22474 #defines strtoimax. Also treat the other strto* functions
22477 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22478 Check for strtoul and strtoumax,
22479 as those declarations are made even in the signed case.
22480 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22481 Likewise, for strtol and strtoimax.
22483 2001-09-28 Paul Eggert <eggert@twinsun.com>
22485 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22486 #defines strtoimax. Also treat the other strto* functions
22489 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22490 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22491 (strtoimax, strtoumax): Do not declare if already defined as a macro.
22493 2001-09-26 Jim Meyering <meyering@lucent.com>
22495 Most macros in unlocked-io.h had the wrong number of arguments.
22496 * lib/gen-uio: New script.
22497 (USE_UNLOCKED_IO): Define to 1 if not already defined.
22498 * lib/unlocked-io.hin: Remove file.
22499 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22500 rather than trying to embed it here.
22501 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
22502 Reported by Padraig Brady.
22504 2001-09-25 Volker Borchert <bt@teknon.de>
22506 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22509 2001-09-24 Jim Meyering <meyering@lucent.com>
22511 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22513 2001-09-23 Jim Meyering <meyering@lucent.com>
22515 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22516 instead of the mere test for existence of mntent.h. The latter
22517 would get a false-positive on AIX 3.4 systems.
22518 In the outer getmntent if-block, don't die if neither of the getmntent
22519 tests succeeds. Instead, just fall through and continue with the
22522 2001-09-23 Jim Meyering <meyering@lucent.com>
22524 * lib/mountlist.c: Remove useless parentheses in #if directives.
22525 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22526 the deprecated MOUNTED symbol is no longer defined in mntent.h.
22528 2001-09-22 Jim Meyering <meyering@lucent.com>
22530 * m4/gettext.m4: New file. From gettext.
22531 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22532 * m4/progtest.m4: Likewise
22533 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22534 * m4/glibc21.m4: Likewise.
22536 * m4/libintl.m4: Remove. No longer used.
22538 2001-09-22 Jim Meyering <meyering@lucent.com>
22540 * lib/localcharset.c: Update from latest gettext.
22541 * lib/config.charset: Likewise.
22543 2001-09-20 Jim Meyering <meyering@lucent.com>
22545 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22547 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22550 2001-09-20 Jim Meyering <meyering@lucent.com>
22552 * lib/xstrtol.c (strtoimax): Guard declaration with
22553 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22554 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22555 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22556 (strtoumax): Likewise, for completeness (it wasn't necessary).
22558 2001-09-17 Paul Eggert <eggert@twinsun.com>
22560 * lib/strtoimax.c (HAVE_LONG_LONG):
22561 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22562 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22563 to work around bug in IBM C compiler.
22565 2001-09-17 Jim Meyering <meyering@lucent.com>
22567 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22568 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22569 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22570 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22571 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22572 whenever the right hand side need not be expanded by the shell.
22574 2001-09-16 Paul Eggert <eggert@twinsun.com>
22576 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22577 library. It's not correct, as some older glibcs are buggy.
22578 fnmatch wasn't fixed until glibc 2.2.
22580 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22581 special shell magic here.
22583 2001-09-16 Jim Meyering <meyering@lucent.com>
22585 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22586 * m4/jm-macros.m4: Require it.
22588 2001-09-16 Jim Meyering <meyering@lucent.com>
22590 * lib/mkdir.c: New file.
22592 2001-09-15 Jim Meyering <meyering@lucent.com>
22594 * m4/jm-macros.m4: Check for help2man.
22596 2001-09-11 Jim Meyering <meyering@lucent.com>
22598 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22599 The body, by Paul Eggert, was moved here from configure.in.
22600 * m4/jm-macros.m4: Require UTILS_HOST_OS.
22602 2001-09-04 Paul Eggert <eggert@twinsun.com>
22604 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22605 (jm_PREREQ): Use it.
22607 2001-09-04 Paul Eggert <eggert@twinsun.com>
22609 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
22610 Use ssize_t, not int, to store result of readlink.
22611 Check for ssize_t overflow as well as size_t overflow,
22612 as POSIX says the result of readlink is implementation-defined
22613 when ssize_t overflows.
22614 Remove unnecessary cast to char*.
22615 Use free+malloc instead of realloc, as the storage doesn't need
22616 to be preserved and it's clearer and can be more efficient that way.
22617 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22618 * lib/xreadlink.h (xreadlink): Update prototype.
22620 2001-09-04 Paul Eggert <eggert@twinsun.com>
22622 * lib/xgetcwd.c: Revert some of the previous change; intead,
22623 fix the HAVE_GETCWD_NULL code to behave more like the
22624 !HAVE_GETCWD_NULL code used to.
22626 Include "xalloc.h".
22627 (xgetcwd): Do not return NULL when memory is exhausted; instead,
22630 2001-09-03 Paul Eggert <eggert@twinsun.com>
22632 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22633 sys/param.h, as pathmax.h includes them.
22635 2001-09-03 Paul Eggert <eggert@twinsun.com>
22637 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22638 (jm_PREREQ_XGETCWD): New macro.
22640 * m4/getcwd.m4: New file.
22642 2001-09-03 Paul Eggert <eggert@twinsun.com>
22644 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22645 like the HAVE_GETCWD_NULL code.
22646 Include pathmax.h if not HAVE_GETCWD.
22647 Do not include xalloc.h.
22648 (INITIAL_BUFFER_SIZE): New symbol.
22649 Do not use xmalloc / xrealloc, since the caller is responsible for
22650 handling errors. Preserve errno around `free' during failure.
22651 Do not overrun buffer when using getwd.
22653 2001-09-03 Paul Eggert <eggert@twinsun.com>
22655 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22656 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22659 2001-09-03 Paul Eggert <eggert@twinsun.com>
22661 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22662 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
22663 spotted by Jim Meyering.
22665 2001-09-03 Jim Meyering <meyering@lucent.com>
22667 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
22670 2001-09-02 Jim Meyering <meyering@lucent.com>
22672 * lib/error.c: Update from GNU libc.
22674 2001-09-01 Jim Meyering <meyering@lucent.com>
22676 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
22679 2001-09-01 Jim Meyering <meyering@lucent.com>
22681 * lib/xreadlink.c: New file.
22682 * lib/xreadlink.h: New file.
22683 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
22686 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
22687 doesn't conflict with sparc Solaris 7's definition in
22688 /usr/include/sys/int_types.h.
22690 * lib/exclude.c: Use `""', not `<>' to #include non-system header
22692 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
22693 and strncasecmp as r-values. Unixware didn't have declarations.
22695 2001-08-31 Paul Eggert <eggert@twinsun.com>
22697 * lib/xstrtol.h: Add copyright notice.
22698 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
22699 LONGINT_INVALID_SUFFIX_CHAR.
22701 2001-08-31 Paul Eggert <eggert@twinsun.com>
22703 * lib/xstrtol.c (strtoimax): New decl.
22705 2001-08-31 Paul Eggert <eggert@twinsun.com>
22707 * lib/xgetcwd.c: Don't include pathmax.h.
22708 Include stdlib.h and unistd.h if available.
22710 (xmalloc, xstrdup, free): Remove decls.
22711 (xgetcwd): Don't assume sizes fit in unsigned.
22712 Check for overflow when computing sizes.
22713 Simplify reallocation code.
22715 2001-08-31 Paul Eggert <eggert@twinsun.com>
22717 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
22718 a directory's st_size can have an arbitrary value, so the old
22719 usage could waste an arbitrary amount of memory. All uses
22721 * lib/savedir.h: Update prototype.
22723 2001-08-31 Paul Eggert <eggert@twinsun.com>
22725 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
22727 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
22730 Also, make the following further changes to make this file's
22731 configuration more similar to that of strtol.c:
22732 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
22733 (strtoumax, uintmax_t, strtoull, strtol): Remove.
22734 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
22735 (strtoimax): Renamed from strtoumax. All uses of unsigned values
22736 changed to signed values.
22738 And make the following changes as well:
22739 Fix copyright notice, as 1999 was missing.
22740 (verify): New macro.
22741 (strtoimax): Check sizes at compile-time, not run-time.
22742 Prefer strtol to strtoll if both work.
22743 (main): Remove; it was not that useful and was a pain to maintain.
22745 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
22747 2001-08-31 Jim Meyering <meyering@lucent.com>
22749 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
22750 Use an initial, malloc'd, buffer of length 128 rather than
22751 a statically allocated one of length 1024.
22753 2001-08-30 Paul Eggert <eggert@twinsun.com>
22755 Simplify code, partly by assuming autoconf 2.52 semantics.
22757 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
22759 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
22760 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
22762 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
22763 Move AC_REQUIRE to next-to-top level, to avoid confusion.
22764 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
22765 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
22766 jm_AC_HEADER_INTTYPES_H.
22767 * m4/jm-macros.m4 (jm_MACROS): Likewise.
22769 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
22771 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22772 Quote first arg of AC_DEFUN.
22773 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
22774 since they are needed to parse the include file even if we need
22775 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
22776 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
22777 but with opposite signedness.
22779 2001-08-30 Paul Eggert <eggert@twinsun.com>
22781 Merge 'exclude' changes from tar 1.13.22.
22782 This fixes one or two unlikely storage allocation overflow bugs,
22783 but doesn't change user-visible behavior otherwise.
22785 2001-08-30 Paul Eggert <eggert@twinsun.com>
22787 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22788 (jm_PREREQ_EXCLUDE): New macro.
22790 2001-08-30 Paul Eggert <eggert@twinsun.com>
22792 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22795 2001-08-30 Paul Eggert <eggert@twinsun.com>
22797 * lib/hash.c: Remove '2001' from copyright notice.
22799 2001-08-30 Paul Eggert <eggert@twinsun.com>
22801 * lib/full-write.h: New file.
22802 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22803 * lib/full-write.c: Correct credits, as cccp.c no longer
22804 exists and anyway it was so heavily changed from the old cccp
22805 code as to be unrecognizable. Include full-write.h.
22806 (full_write) Return size_t, with short writes meaning failure.
22807 All callers changed. This fixes a bug with large buffers
22809 * lib/utime.c: Include full-write.h.
22811 2001-08-30 Paul Eggert <eggert@twinsun.com>
22813 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22814 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22815 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22816 Include if available.
22817 (<xalloc.h>): Include
22818 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22819 (verify): New macro. Use it to verify that EXCLUDE macros do not
22820 collide with FNM macros.
22821 (struct patopts): New struct.
22822 (struct exclude): Use it, as exclude patterns now come with options.
22823 (new_exclude): Support above changes.
22824 (new_exclude, add_exclude_file):
22825 Initial size must now be a power of two to simplify overflow checking.
22826 (free_exclude, fnmatch_no_wildcards): New function.
22827 (excluded_filename): No longer requires options arg, as the options
22828 are determined by add_exclude. Now returns bool, not int.
22829 (excluded_filename, add_exclude):
22830 Add support for the fancy new exclusion options.
22831 (add_exclude, add_exclude_file): Now takes int options arg.
22832 Check for arithmetic overflow when computing sizes.
22833 (add_exclude_file): xrealloc might modify errno, so don't
22834 realloc until after errno might be used.
22836 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22838 (free_exclude): New decl.
22839 (add_exclude, add_exclude_file): Now takes int options arg.
22840 (excluded_filename): No longer requires options arg, as the options
22841 are determined by add_exclude. Now returns bool, not int.
22843 2001-08-30 Paul Eggert <eggert@twinsun.com>
22845 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22847 2001-08-27 Jim Meyering <meyering@lucent.com>
22849 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22851 * lib/version-etc.c (N_): Remove definition.
22852 Revert most of last change.
22853 Instead, simply don't mark the `Copyright...' string for translation.
22854 Based on advice from Paul Eggert.
22856 * lib/strtoxmax.c: Tweak comment.
22858 2001-08-26 Jim Meyering <meyering@lucent.com>
22860 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
22862 * m4/xstrtoimax.m4: New file.
22863 * m4/xstrtoumax.m4: Add comments explaining why we
22864 AC_REPLACE_FUNCS(strtol).
22866 2001-08-26 Jim Meyering <meyering@lucent.com>
22868 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
22869 of copyright with `%s' so translators don't get an untranslated
22871 (COPYRIGHT_YEAR): Define.
22872 (version_etc): Use fprintf rather than fputs.
22873 Suggestion from Ulrich Drepper.
22875 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
22877 * lib/strtoll.c: New file, from GNU libc.
22878 * lib/xstrtoimax.c: New file.
22880 * lib/xstrtol.h: Add xstrtoimax.
22881 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
22882 * lib/strtoimax.c: New file. Likewise, but first define
22885 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
22887 * lib/strtoxmax.c: ... then renamed to this.
22889 2001-08-18 Paul Eggert <eggert@twinsun.com>
22891 * m4/inttypes.m4: Add AC_PREREQ(2.13).
22892 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
22893 (jm_AC_TYPE_INTMAX_T): New macro.
22894 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
22896 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
22898 * m4/longlong.m4: Renamed from ulonglong.m4.
22899 * m4/inttypes.m4: Renamed from inttypes_h.m4.
22900 * m4/uintmax_t.m4: Removed.
22902 2001-08-13 Paul Eggert <eggert@twinsun.com>
22904 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
22905 Port to Solaris 8, where 'sed' requires a space after the 'r'
22906 command, and where sh dislikes "$/". Clean up the spacing a bit.
22907 Redirect output to $tmp just once.
22909 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
22911 * lib/addext.c (<errno.h>): Include.
22912 (errno): Declare if not defined.
22913 (addext): Work correctly when pathconf returns -1 and leaves
22914 errno alone because there is no limit. Also, work even if
22915 pathconf returns a value greater than SIZE_MAX.
22917 2001-08-12 Jim Meyering <meyering@lucent.com>
22919 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
22920 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
22921 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
22922 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
22923 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
22924 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
22925 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
22926 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
22927 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
22928 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
22929 utime.m4, utimes.m4, xstrtoumax.m4:
22930 Quote the first argument in each use of AC_DEFUN.
22932 2001-08-12 Jim Meyering <meyering@lucent.com>
22934 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
22935 Simply `return getcwd (NULL, 0);'.
22936 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
22937 Use 1300 as initial value for length, not PATH_MAX.
22939 * lib/pathmax.h: Clean up cpp syntax.
22941 2001-08-12 Jim Meyering <meyering@lucent.com>
22943 * lib/gettimeofday.c: New file.
22944 * lib/gtod.h: New file.
22945 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
22947 2001-08-05 Jim Meyering <meyering@lucent.com>
22949 * m4/jm-macros.m4: Require autoconf-2.52.
22951 2001-08-04 Jim Meyering <meyering@lucent.com>
22953 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
22954 stmt, to get in sync with glibc.
22956 2001-08-03 Paul Eggert <eggert@twinsun.com>
22958 The following changes are from gettext 0.10.39 as maintained by
22961 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
22962 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
22963 with inverted sense. All uses changed.
22965 * lib/mbswidth.c: Don't include <limits.h>.
22966 Include <stdlib.h> and <string.h> unconditionally.
22967 (iswcntrl, mbsinit, ISCNTRL): New macros.
22968 (mbsnwidth): Use K&R style function declarations.
22969 Don't bother checking for MB_LEN_MAX == 1, since the compiler
22970 can optimize it when MB_CUR_MAX == 1.
22971 The width of control characters is zero, not 1.
22973 2001-08-03 Paul Eggert <eggert@twinsun.com>
22975 The following changes are from gettext 0.10.39 as maintained by
22976 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
22978 * m4/codeset.m4: Upgrade to serial AM1.
22979 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
22980 all uses changed. Quote first arg of AC_DEFUN.
22981 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
22983 * m4/iconv.m4: Upgrade to serial AM2.
22984 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
22985 Add --with-libconv-prefix.
22986 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
22987 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
22988 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
22989 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
22990 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
22992 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
22993 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
22994 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
22995 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
22996 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
22997 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
22998 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22999 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23000 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23002 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23005 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23006 not the default value.
23008 2001-06-25 Bruno Haible <haible@clisp.cons.org>
23009 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23010 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
23011 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23012 Also check for iswcntrl, used for wcwidth fallback.
23013 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23016 2001-08-03 Jim Meyering <meyering@lucent.com>
23018 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23019 as it was in the original. Reported by Paul Eggert.
23021 2001-07-16 Jim Meyering <meyering@lucent.com>
23023 * m4/gettimeofday.m4: New file.
23024 Prompted by a report from Bernhard Baehr.
23026 2001-07-15 Jim Meyering <meyering@lucent.com>
23028 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23029 stuff. Now it's in ../Makefile.cfg.
23031 2001-07-15 Jim Meyering <meyering@lucent.com>
23033 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23034 (BUILT_SOURCES): Add unlocked-io.h.
23035 (io_functions): Define.
23036 (unlocked-io.h): New rule.
23037 (DISTCLEANFILES): Add unlocked-io.h.
23038 (all-local): Depend on unlocked-io.h, to ensure it is created.
23040 * lib/unlocked-io.hin: New file
23042 * lib/regex.c: Update from glibc.
23044 2001-07-05 Jim Meyering <meyering@lucent.com>
23046 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23048 (libfetish_a_SOURCES): Put all .h files here instead.
23049 Remove a thus-exposed (better checks in automake) duplicate and
23050 two unnecessary .h files.
23052 2001-07-04 Jim Meyering <meyering@lucent.com>
23054 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
23055 that generates jm-glibc-io.m4 so that it doesn't trigger any make
23058 2001-07-02 Jim Meyering <meyering@lucent.com>
23060 The following changes were prompted by suggestions from Bruno Haible.
23062 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23064 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23065 definition of EXTRA_DIST.
23066 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23067 ensure that the generated file is created/updated whenever the list
23068 of $(unlocked_functions) is changed.
23069 (jm-glibc-io.m4): New rule.
23070 (unlocked-io.h): New rule -- currently unused.
23072 2001-06-24 Jim Meyering <meyering@lucent.com>
23074 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23075 unmatched right bracket, rather than kludging it with an extra,
23076 falsely-matching quote in a comment. Patch by Akim Demaille.
23078 2001-06-11 Jim Meyering <meyering@lucent.com>
23080 * lib/regex.c: Update from GNU libc.
23082 2001-05-27 Jim Meyering <meyering@lucent.com>
23084 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23085 Check for ut_type in struct utmp.
23087 2001-05-27 Jim Meyering <meyering@lucent.com>
23089 * lib/readutmp.h (UT_TYPE): Define.
23091 2001-05-24 Jim Meyering <meyering@lucent.com>
23093 * lib/argmatch.c: Include "quote.h".
23094 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
23095 quote function. Reported by Göran Uddeborg.
23097 2001-05-22 Jim Meyering <meyering@lucent.com>
23099 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23100 now that we use the package-supplied version unconditionally.
23101 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23103 2001-05-21 Jim Meyering <meyering@lucent.com>
23105 * m4/regex.m4: Change a couple backticks to single quotes to avoid
23106 shell syntax errors.
23108 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
23110 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23112 2001-05-20 Paul Eggert <eggert@twinsun.com>
23114 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23115 Don't bother to check library strftime, since
23116 we'll be using our own my_strftime function anyway.
23117 Define my_strftime instead of strftime.
23119 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
23121 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23122 which is not yet declared.
23124 2001-05-15 Jim Meyering <meyering@lucent.com>
23126 * m4/regex.m4: Use proper quoting so brackets appear in the test
23128 Reported by, and with help from, Bruno Haible.
23130 2001-05-13 Jim Meyering <meyering@lucent.com>
23132 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23135 2001-05-11 Paul Eggert <eggert@twinsun.com>
23137 dirname code cleanup. base_name now behaves more compatibly
23138 with POSIX basename when given file names that have trailing
23139 slashes, and similarly for dir_name. Add new primitives
23140 base_len and dir_len. Put the directory-name-related decls
23143 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23144 * lib/backupfile.c (base_name): Likewise.
23145 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23146 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23147 * lib/makepath.c (strip_trailing_slashes): Likewise.
23148 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23149 ISSLASH): Likewise.
23150 * lib/rename.c (strip_trailing_slashes): Likewise.
23151 * lib/same.c (base_name): Likewise.
23152 * lib/stripslash.c (ISSLASH): Likewise.
23154 * lib/addext.c: Include <dirname.h> after size_t is defined.
23155 * lib/backupfile.c: Likewise.
23157 * lib/addext.c (addext): Use base_len to trim redundant
23158 trailing slashes instead of doing it ourselves.
23159 But do not trim the last slash if it is not redundant.
23161 * lib/backupfile.c (find_backup_file_name,
23162 max_backup_version): Use base_len instead of rolling it ourselves.
23163 Handle the case of "" and (on DOS) "C:" correctly.
23165 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23166 needed. Include <string.h>, <dirname.h>.
23167 (base_name): Allow file names ending in slashes, other than names
23168 that are all slashes. In this case, return the basename followed
23169 by the slashes. This is more general, and can be used in places
23170 where the original base_name purposely had an assertion failure.
23171 (base_len): New function.
23173 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23174 Do not include <assert.h>; no longer needed.
23176 (memrchr): Remove decl.
23177 (dir_name_r): Remove.
23178 (dir_len): Renamed from dirlen. All callers changed.
23179 Rewrite in terms of base_name, for simplicity and consistency.
23180 (dir_name): Never return NULL. All callers changed.
23181 Do not include <stdlib.h> in test program; no longer needed.
23182 return 0; is fine for test program.
23184 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23186 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23188 * lib/path-concat.c (path_concat): Use base_len to compute
23189 base length, not strlen; this means we cannot rely on memcpy
23192 * lib/same.c (STREQ): Remove.
23193 (same_name): Handle the case where the basename ends in trailing '/'.
23195 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23196 a slash was stripped. Do not strip the last slash after a
23197 file system prefix.
23199 2001-05-11 Paul Eggert <eggert@twinsun.com>
23201 * lib/Makefile.am (libfetish_a_SOURCES):
23202 Add strftime.c, since we now compile it on all hosts.
23204 * lib/strftime.c (my_strftime):
23205 Define to nstrftime if emacs, but only if my_strftime is not defined.
23206 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23207 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23208 Add one more extra argument: a nanoseconds value.
23211 (my_strftime function): Add %N format.
23212 (emacs_strftimeu): Renamed from emacs_strftime,
23213 with extra ut argument.
23215 2001-05-09 Paul Eggert <eggert@twinsun.com>
23217 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23219 2001-04-21 Jim Meyering <meyering@lucent.com>
23221 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23224 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
23226 * m4/ftruncate.m4: Check for chsize.
23227 Link with ftruncate.o unconditionally if ftruncate is missing.
23228 This was required when cross-compiling to i586-mingw32msvc.
23230 2001-04-08 Jim Meyering <meyering@lucent.com>
23232 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23233 recomputed; that's necessary when the offset spans a DST transition.
23234 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
23236 2001-04-02 Jim Meyering <meyering@lucent.com>
23238 * lib/regex.h, regex.c: Update from GNU libc.
23240 2001-03-24 Jim Meyering <meyering@lucent.com>
23242 * m4/jm-macros.m4: Require autoconf-2.49d.
23244 2001-03-20 Bruno Haible <haible@clisp.cons.org>
23246 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23248 2001-03-19 Paul Eggert <eggert@twinsun.com>
23250 * lib/version-etc.c (version_etc_copyright): Update to 2001.
23252 2001-03-17 Jim Meyering <meyering@lucent.com>
23254 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23255 now that the version in autoconf is equivalent.
23256 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23258 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23259 Suggestion from Akim Demaille.
23261 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23262 (jm_PREREQ_TEMPNAME): New function.
23264 2001-03-16 Paul Eggert <eggert@twinsun.com>
23266 * lib/tempname.c (uint64_t): Define to uintmax_t if
23267 not defined, and if UINT64_MAX is not defined.
23268 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23269 Reported by John David Anglin.
23271 2001-03-15 Bruno Haible <haible@clisp.cons.org>
23273 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23274 resolve alias if codeset is empty.
23275 * lib/config.charset (BeOS): Use wildcard syntax.
23277 2001-03-13 Jim Meyering <meyering@lucent.com>
23279 * lib/path-concat.c (path_concat)
23280 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23281 concatenating e.g., `C:' and `foo'.
23284 2001-03-06 Bruno Haible <haible@clisp.cons.org>
23286 * lib/localcharset.c (locale_charset): Don't use
23287 setlocale(LC_CTYPE,NULL). Don't return NULL.
23288 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23290 2001-03-06 Bruno Haible <haible@clisp.cons.org>
23292 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23293 support for DOS/DJGPP.
23295 2001-03-01 Paul Eggert <eggert@twinsun.com>
23297 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23298 lacks mkstemp. Compile our own tempname.c if we compile our own
23299 mkstemp.c, as mkstemp relies on tempname.
23301 2001-03-01 Jim Meyering <meyering@lucent.com>
23303 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23304 AH_VERBATIM really does output its argument verbatim.
23306 2001-02-28 Paul Eggert <eggert@twinsun.com>
23308 * lib/Makefile.am (libfetish_a_SOURCES):
23309 Add dup-safer.c, fopen-safer.c.
23310 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23312 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23313 * lib/unistd-safer.h: New files.
23315 2001-02-25 Paul Eggert <eggert@twinsun.com>
23317 The mkstemp replacement is taken from glibc 2.2.2, with some
23318 portability fixes for use outside glibc, as follows:
23320 * lib/tempname.c (struct_stat64): New macro.
23321 (direxists, __gen_tempname): Use it.
23322 This avoids a portability problem with Solaris 8.
23324 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23325 (<stddef.h>, <stdint.h>, <string.h>):
23326 Include only if STDC_HEADERS || _LIBC.
23327 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23328 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23329 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23330 (__set_errno): Define this macro if <errno.h> doesn't.
23331 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23332 Define these macros if <stdio.h> doesn't.
23333 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23334 Define these macros if <sys/stat.h>
23335 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23336 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23337 __xstat64): Define if not _LIBC.
23338 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23339 (__gen_tempname): Invoke gettimeofday only if
23340 HAVE_GETTIMEOFDAY || _LIBC;
23341 otherwise, fall back on plain "time".
23342 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23344 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23346 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23348 2001-02-18 Paul Eggert <eggert@twinsun.com>
23350 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23352 2001-02-17 Paul Eggert <eggert@twinsun.com>
23354 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23355 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23356 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23357 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23359 2001-02-17 Paul Eggert <eggert@twinsun.com>
23361 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23362 Remove workaround macros for hosts that have mbrtowc but not
23363 mbstate_t, as we now insist on proper declarations for both
23364 before using mbrtowc.
23366 2001-02-17 Jim Meyering <meyering@lucent.com>
23368 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23369 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23370 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23373 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23374 rather than AC_CACHE_VAL.
23376 2001-02-17 Jim Meyering <meyering@lucent.com>
23378 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
23379 around included file name.
23381 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23383 * lib/strftime.c: Update from GNU libc (the only changes were to
23386 2001-02-17 Jim Meyering <meyering@lucent.com>
23388 * lib/regex.c: Update from libc.
23390 2001-02-17 Bruno Haible <haible@clisp.cons.org>
23392 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23395 2001-02-16 Paul Eggert <eggert@twinsun.com>
23397 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23398 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
23399 Reported by Mark Hounschell via Paul Eggert.
23401 2001-02-07 Jim Meyering <meyering@lucent.com>
23403 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23405 2001-02-05 Jim Meyering <meyering@lucent.com>
23407 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23408 it includes the patch required for `large file' support with at least
23409 HP-UX's 10.20 /bin/cc.
23411 2001-02-03 Jim Meyering <meyering@lucent.com>
23413 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23414 AS_IF, now that it works once again (mysteriously).
23415 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23417 2001-01-30 Jim Meyering <meyering@lucent.com>
23419 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23420 * m4/chown.m4: Rename conftestchown to conftest.chown.
23421 * m4/rename.m4: s/conftestdir/conftest.d1/ and
23422 s/conftestdir2/conftest.d2/.
23423 * m4/utimes.m4: s/conftestdata/conftest.data/
23424 Inspired by Pavel Roskin's change in autoconf.
23426 2001-01-30 Bruno Haible <haible@clisp.cons.org>
23428 * lib/config.charset: Update for FreeBSD 4.2.
23430 2001-01-27 Jim Meyering <meyering@lucent.com>
23432 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23434 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23436 2001-01-26 Jim Meyering <meyering@lucent.com>
23438 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23439 quotearg.c includes it.
23441 2001-01-26 Jim Meyering <meyering@lucent.com>
23443 * lib/quotearg.c: Include stddef.h.
23444 * lib/quote.c: Include stddef.h.
23445 Reported by Axel Kittenberger.
23447 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23448 line in double quotes so that it evokes a better diagnostic.
23449 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23450 Reported by Axel Kittenberger.
23452 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
23454 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23455 as if it was a `charset'.
23457 2001-01-21 Bruno Haible <haible@clisp.cons.org>
23459 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23462 2001-01-21 Bruno Haible <haible@clisp.cons.org>
23464 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23465 to avoid a warning. Add back 'const' to inptr.
23467 2001-01-20 Jim Meyering <meyering@lucent.com>
23469 Be sure that headers are checked before used in code compiled
23470 for the type checks.
23471 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23472 In place of that, invoke jm_CHECK_ALL_TYPES.
23473 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23474 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23475 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23476 The check for ssize_t was mistakenly run before the test for unistd.h.
23478 The configure-time check for stdbool.h was missing.
23479 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23480 (jm_PREREQ_HASH): New function.
23482 2001-01-17 Jim Meyering <meyering@lucent.com>
23484 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23485 for autoconf-2.49c.
23486 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23488 2001-01-16 Jim Meyering <meyering@lucent.com>
23490 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23493 2001-01-14 Jim Meyering <meyering@lucent.com>
23495 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23496 foo and bar. Create conftestdir/ in the script, not in the C code.
23497 Remove directories in the script, not in the C code.
23498 Remove conftestdir{,2} before trying to create the directory.
23499 Make the entire configure script fail if the mkdir fails.
23501 2001-01-14 Jim Meyering <meyering@lucent.com>
23503 * lib/rename.c: New file. From Volker Borchert.
23504 Include stdlib.h, string.h or strings.h, and xalloc.h.
23505 Use strip_trailing_slashes rather than open-coding it.
23507 2001-01-03 Paul Eggert <eggert@twinsun.com>
23509 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23511 2001-01-03 Jim Meyering <meyering@lucent.com>
23513 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23514 of local `inptr' to avoid warning with some system declarations of
23517 2001-01-02 Volker Borchert <bt@teknon.de>
23519 * m4/rename.m4: New file.
23520 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23522 2001-01-01 Jim Meyering <meyering@lucent.com>
23524 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23525 even on systems with utmpx.h. It's necessary for the declaration of
23526 utmp's ut_user member. Reported by Andreas Jaeger.
23528 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23529 available. They are required for the declarations of getgrgid and
23531 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23532 Reported by Andreas Jaeger.
23534 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
23536 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23537 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23538 so `make install' also works in VPATH builds.
23540 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
23542 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23543 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23544 can be used in subdirectories.
23546 2000-12-29 Paul Eggert <eggert@twinsun.com>
23548 * lib/modechange.c: Do not assume that mode_t uses the
23549 traditional octal encoding. E.g. "chmod 1 FOO" should set
23550 the other-execute bit of FOO even if S_IXOTH != 1.
23552 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23553 WOTH, XOTH, ALLM): New macros.
23554 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23555 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23557 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23558 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23560 No need to use uintmax_t; unsigned long is long enough.
23561 Don't bother to get suffix since we don't use it.
23563 2000-12-26 Jim Meyering <meyering@lucent.com>
23565 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23566 better with autoheader.
23568 2000-12-24 Jim Meyering <meyering@lucent.com>
23570 * lib/hash.c (is_prime): Return explicit boolean values.
23571 (hash_get_first): Return NULL to appease Irix5.6's 89.
23572 Reported by Nelson Beebe.
23574 2000-12-19 Bruno Haible <haible@clisp.cons.org>
23576 * lib/localcharset.c (locale_charset): Add support for Win32.
23578 2000-12-18 Paul Eggert <eggert@twinsun.com>
23580 * lib/physmem.h, lib/physmem.c: New files.
23582 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23583 (noinst_HEADERS): Add physmem.h.
23585 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23586 't' for compatibility with Solaris 8 sort.
23588 2000-12-18 Bruno Haible <haible@clisp.cons.org>
23590 * lib/config.charset: Add support for BeOS.
23592 2000-12-17 Jim Meyering <meyering@lucent.com>
23594 * m4/dos.m4 (jm_AC_DOS): New file and macro.
23595 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23597 2000-12-16 Jim Meyering <meyering@lucent.com>
23599 This bug had a serious impact on chown: `chown N:M FILE' (for integer
23600 N and M) would have treated it like `chown N:N FILE'.
23602 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23604 2000-12-16 Jim Meyering <meyering@lucent.com>
23606 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23607 SHELLS_FILE to a file name that's useful on djgpp systems.
23609 (ADDITIONAL_DEFAULT_SHELLS): Define.
23610 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23611 Based mostly on a patch from Prashant TR.
23613 2000-12-16 Bruno Haible <haible@clisp.cons.org>
23615 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23616 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23617 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23619 2000-12-08 Andreas Schwab <schwab@suse.de>
23621 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23622 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23624 2000-12-07 Jim Meyering <meyering@lucent.com>
23626 * lib/stripslash.c (ISSLASH): Define.
23627 (strip_trailing_slashes): Use ISSLASH rather than comparing against
23631 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23632 (dir_name_r): Declare this function as static.
23633 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23634 manifest itself on a name containing a mix of slashes and
23636 Make this function work with names starting with a DOS-style
23637 drive letter and colon prefix.
23638 (dir_name): Append `.' if necessary.
23639 Based mostly on patches from Prashant TR and Eli Zaretskii.
23641 * lib/dirname.h (dir_name_r): Remove prototype.
23643 2000-12-06 Paul Eggert <eggert@twinsun.com>
23645 * m4/off_t-format.m4: Remove this file.
23646 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23648 2000-12-06 Jim Meyering <meyering@lucent.com>
23650 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23651 replacement strtoull, we may well need the replacement strtoul, too.
23652 Check for declarations of strtoul and strtoull.
23653 Check for strtol. Mainly as a cue to cause automake to include
23654 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23655 Check for limits.h -- strtol.c needs it.
23657 2000-12-05 Jim Meyering <meyering@lucent.com>
23659 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23661 2000-12-04 Jim Meyering <meyering@lucent.com>
23663 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23664 Also include memory.h, stdlib.h, unistd.h if appropriate.
23665 Reported by Andreas Jaeger (conflicting declaration of malloc).
23667 2000-12-02 Jim Meyering <meyering@lucent.com>
23669 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
23670 * m4/jm-macros.m4 (jm_MACROS): require it.
23672 2000-12-02 Jim Meyering <meyering@lucent.com>
23674 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
23676 2000-12-01 Paul Eggert <eggert@twinsun.com>
23678 * lib/memrchr.c: Include <config.h> before any system include file.
23680 2000-11-30 Jim Meyering <meyering@lucent.com>
23682 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
23684 2000-11-30 Jim Meyering <meyering@lucent.com>
23686 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
23688 2000-11-29 Paul Eggert <eggert@twinsun.com>
23690 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
23692 2000-11-26 Jim Meyering <meyering@lucent.com>
23694 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
23696 2000-11-22 Paul Eggert <eggert@twinsun.com>
23698 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
23699 size of (size_t) -1; it's not portable.
23701 2000-11-17 Jim Meyering <meyering@lucent.com>
23703 * lib/strstr.c: Update from GNU libc.
23705 2000-11-17 Akim Demaille <akim@epita.fr>
23707 * lib/obstack.h: Formatting changes.
23708 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
23709 prevent type checking.
23710 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
23711 cast the value to (void *): assigning a `foo *' to a `void *'
23713 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23715 2000-11-16 Jim Meyering <meyering@lucent.com>
23717 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
23719 2000-11-11 Jim Meyering <meyering@lucent.com>
23721 * lib/error.c: Add a couple #includes, merging from GNU libc version.
23723 2000-11-10 Jim Meyering <meyering@lucent.com>
23725 * lib/obstack.h: Update from GNU libc.
23726 * lib/obstack.c: Likewise.
23728 2000-11-08 Bruno Haible <haible@clisp.cons.org>
23730 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
23732 2000-11-06 Paul Eggert <eggert@twinsun.com>
23734 * lib/getusershell.c (setusershell): Use rewind rather than
23735 fseek/fseeko, to avoid configuration hassles with fseeko.
23736 Don't bother opening SHELLS_FILE if shellstream is NULL;
23737 it's not necessary.
23739 2000-11-05 Jim Meyering <meyering@lucent.com>
23741 * lib/makepath.h (make_dir): Declare.
23742 * lib/makepath.c (make_dir): Remove `static' attribute.
23745 2000-11-04 Jim Meyering <meyering@lucent.com>
23747 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
23749 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
23751 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
23752 last one in a bucket, advance to the next bucket.
23754 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
23756 * lib/fnmatch.c: Do not comment out all the code if we are using
23757 the GNU C library, because in some cases we are replacing buggy
23758 code in the GNU C library itself.
23760 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
23762 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
23763 (regex_compile): Catch bogus \(\1\).
23765 2000-10-30 Paul Eggert <eggert@twinsun.com>
23767 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
23768 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
23769 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
23771 2000-10-30 Paul Eggert <eggert@twinsun.com>
23773 * lib/error.h, getline.h, modechange.h:
23774 Remove "2000" from Copyright line, as the file hasn't been
23775 changed this year other than in the copyright notice.
23777 * lib/xalloc.h: Add "2000" to Copyright line, as this file
23778 was changed this year.
23780 2000-10-29 Jim Meyering <meyering@lucent.com>
23782 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23784 * m4/ls-mntd-fs.m4: Likewise
23786 2000-10-29 Jim Meyering <meyering@lucent.com>
23788 * lib/xstat.in: Fix grammar in comment.
23790 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
23792 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23793 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23794 doesn't define __restrict_arr.
23796 2000-10-28 Jim Meyering <meyering@lucent.com>
23798 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23799 (jm_PREREQ_MEMCHR): New function.
23801 2000-10-28 Jim Meyering <meyering@lucent.com>
23803 * lib/memchr.c: Update from libc.
23804 Adjust for portability:
23805 [HAVE_STDLIB_H]: Include stdlib.h.
23806 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23807 Undef __memchr, too.
23808 [!weak_alias]: Define __memchr to memchr.
23810 * lib/regex.c: Update from libc.
23811 * lib/regex.h: Likewise.
23812 * lib/getopt1.c: Likewise.
23813 * lib/memcmp.c: Likewise.
23815 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23816 Avoid using fseek, when possible -- it's broken by design.
23817 Patch by Ulrich Drepper.
23819 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
23821 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23822 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23823 Giving in to popular pressure to shut up the compiler with casts.
23825 2000-10-26 Jim Meyering <meyering@lucent.com>
23827 * lib/strftime.c: Update from libc.
23829 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
23831 * regex.c: More `unsigned char' -> `re_char' changes.
23832 Also change several `int' into `re_wchar_t'.
23833 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23834 (PUSH_FAILURE_POINTER): Don't cast any more.
23835 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23836 We want GCC to complain, since this piece of code makes
23837 re_match non-reentrant, which *should* be fixed.
23838 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23839 (EXTEND_BUFFER): Use RETALLOC.
23840 (SET_LIST_BIT): Don't cast.
23841 (re_wchar_t): New type.
23842 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23843 that those two functions will always properly return.
23844 (IMMEDIATE_QUIT_CHECK): Cast to void.
23845 (analyse_first): Use recursion rather than an explicit stack.
23846 (re_compile_fastmap): Can't fail anymore.
23847 (re_search_2): Don't check re_compile_fastmap for failure.
23848 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23849 Now also sets the new value (passed in a new argument).
23850 (re_match_2_internal): Use it.
23851 Also, use a new var `reg' of type size_t when looping through regs
23852 rather than reuse the inappropriate `mcnt'.
23854 2000-10-25 Jim Meyering <meyering@lucent.com>
23856 * lib/obstack.c: Update from libc.
23858 2000-10-24 Kenichi Handa <handa@etl.go.jp>
23860 * regex.c (regex_compile): Change the way of handling a range from
23861 a char less than 256 to a char not less than 256.
23863 2000-10-24 Andrew Innes <andrewi@gnu.org>
23865 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
23867 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
23868 so that re_search functions only quit when callers expect them to.
23870 2000-10-23 Jim Meyering <meyering@lucent.com>
23872 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
23873 wrong. That set_locale call must not have any side effects.
23876 2000-10-22 Jim Meyering <meyering@lucent.com>
23878 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
23879 [CYCLIC]: Remove now-unused definition.
23881 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
23882 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
23883 Suggestion from Ulrich Drepper.
23885 2000-10-21 Jim Meyering <meyering@lucent.com>
23887 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
23888 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
23889 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
23891 2000-10-21 Jim Meyering <meyering@lucent.com>
23893 * lib/dirname.c (memrchr): Declare if necessary.
23894 (dir_name): Remove the restriction that there be no
23895 trailing slashes. Now, this code skips past them, effectively
23897 [TEST_DIRNAME] (main): New unit tests.
23899 * lib/memrchr.c: New file from GNU libc.
23900 Undef __memrchr, too.
23901 [!weak_alias]: Define __memrchr to memrchr.
23902 Guard weak_alias use with `#ifdef weak_alias'.
23904 2000-10-21 Jim Meyering <meyering@lucent.com>
23906 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
23907 (dir_name): Use dir_name_r.
23908 * lib/dirname.h (dir_name_r): Declare it.
23910 2000-10-17 Jim Meyering <meyering@lucent.com>
23912 * lib/quote.h (PARAMS): Define and use.
23913 Reported by Akim Demaille.
23915 * lib/getopt.c: Update from libc.
23917 2000-10-16 Jim Meyering <meyering@lucent.com>
23919 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
23923 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
23925 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
23927 2000-09-25 Jim Meyering <meyering@lucent.com>
23929 * lib/md5.h (rol): Define (from GnuPG).
23931 * lib/sha.c: Give credit (GnuPG) where due.
23932 (M): Use rol rather than open-coding it.
23933 Add a FIXME comment.
23935 2000-09-21 Jim Meyering <meyering@lucent.com>
23937 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
23938 Reported by Michael Stone.
23940 2000-09-20 Jim Meyering <meyering@lucent.com>
23942 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
23943 (noinst_HEADERS): Add sha.h.
23944 Based on code from Scott G. Miller and from GnuPG.
23946 2000-09-18 Jim Meyering <meyering@lucent.com>
23948 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
23949 LIBS. Otherwise, everyone ends up linking with -lelf for some
23951 Reported by Mike Stone.
23953 2000-09-15 Jim Meyering <meyering@lucent.com>
23955 * lib/regex.c: Update from libc.
23957 2000-09-10 Jim Meyering <meyering@lucent.com>
23959 * lib/getopt.c (_getopt_internal): Update from glibc.
23961 2000-09-09 Jim Meyering <meyering@lucent.com>
23963 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
23964 think it should be used as a general replacement for isascii.
23965 * lib/fnmatch.c: Likewise.
23966 * lib/mbswidth.c: Likewise
23967 * lib/regex.c: Likewise.
23970 * lib/userspec.c: Include sys/param.h and limits.h.
23972 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23973 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
23974 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
23975 UID, GID. Check range.
23977 2000-09-06 Jim Meyering <meyering@lucent.com>
23979 * lib/getopt.c (_getopt_internal): Update from glibc.
23981 2000-08-30 Jim Meyering <meyering@lucent.com>
23983 * lib/strftime.c: Merge in changes from GNU libc.
23985 2000-08-26 Jim Meyering <meyering@lucent.com>
23987 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
23988 * m4/fpending.m4: New file.
23990 2000-08-26 Jim Meyering <meyering@lucent.com>
23992 * lib/closeout.c: Include "__fpending.h".
23993 (close_stdout_status): Return right away if there's nothing to flush.
23995 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
23996 * lib/__fpending.c: New file.
23997 * lib/__fpending.h: New file.
23999 2000-08-20 Jim Meyering <meyering@lucent.com>
24001 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24002 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
24003 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
24005 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
24007 Improve fileutils installation on systems where running
24008 programs (like install) can't be unlinked.
24009 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24010 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24012 2000-08-07 Paul Eggert <eggert@twinsun.com>
24014 Standardize on "memory exhausted" instead of "Memory exhausted"
24015 or "virtual memory exhausted".
24016 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24017 "virtual memory exhausted".
24018 * lib/same.c (same_name): Invoke xalloc_die instead of printing
24020 * lib/userspec.c (parse_user_spec): Likewise.
24021 * lib/bumpalloc.h: comment fix
24022 * lib/same.c, userspec.c: Include xalloc.h.
24024 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24025 not char *const and pointing to a constant array.
24026 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24027 (xrealloc): Comment fix.
24029 * lib/userspec.c (parse_user_spec):
24030 Don't translate a message until just before returning,
24031 to avoid unnecessary translation.
24033 2000-08-07 Jim Meyering <meyering@lucent.com>
24035 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24036 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24037 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24038 getgroups.c, gethostname.c, getopt.h, group-member.c,
24039 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24040 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24041 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24042 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24043 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24044 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24045 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24046 yesno.c: Back out Copyright date changes for each file with no change
24047 this year. This eases coordination with other programs using the same
24048 source code modules. From Paul Eggert.
24050 2000-08-06 Paul Eggert <eggert@twinsun.com>
24052 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24053 not char, for compatibility with glibc 2.1.3 strftime.c.
24055 2000-08-03 Greg McGary <greg@mcgary.org>
24057 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24058 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24059 (EXTEND_BUFFER): Use them.
24061 2000-08-01 Jim Meyering <meyering@lucent.com>
24063 * lib/dirname.c (ISSLASH): Define.
24064 (BACKSLASH_IS_PATH_SEPARATOR): Define.
24065 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24066 both `\' and `/' may be use as path separators.
24067 Based on a patch from Prashant TR.
24069 2000-07-31 Paul Eggert <eggert@twinsun.com>
24071 * lib/quotearg.c (quotearg_n_options): Don't make the initial
24072 slot vector a constant, since it might get modified.
24074 2000-07-31 Jim Meyering <meyering@lucent.com>
24076 * lib/xmalloc.c: Use `virtual memory exhausted', not
24077 `Memory exhausted'.
24078 * lib/obstack.c (print_and_abort): Likewise.
24080 2000-07-30 Paul Eggert <eggert@twinsun.com>
24082 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24083 buffer, so that the caller can always quote one small
24084 component of a "memory exhausted" message in slot 0.
24085 From a suggestion by Jim Meyering.
24087 2000-07-30 Jim Meyering <meyering@lucent.com>
24089 * lib/makepath.c (make_path): Quote the other instance, too.
24091 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24092 (STATIC_BUF_SIZE): Define.
24093 (quotearg_n_options): Use only statically allocated storage when
24094 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24095 than STATIC_BUF_SIZE.
24097 2000-07-29 Jim Meyering <meyering@lucent.com>
24099 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24100 * lib/dirname.c (dir_name): Likewise.
24102 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24105 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24106 (dir_name): Assert that there are no trailing slashes.
24108 2000-07-29 Bruno Haible <haible@clisp.cons.org>
24110 * lib/mbswidth.h (mbswidth): Add a flags argument.
24111 (mbswidth): New declaration.
24112 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24113 * lib/mbswidth.c (mbswidth): Add a flags argument.
24114 (mbsnwidth): New function.
24116 2000-07-24 Jim Meyering <meyering@lucent.com>
24118 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
24120 2000-07-23 Paul Eggert <eggert@twinsun.com>
24122 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24124 2000-07-23 Paul Eggert <eggert@twinsun.com>
24126 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24127 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24128 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24129 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24130 invoke multibyte primitives.
24132 2000-07-23 Paul Eggert <eggert@twinsun.com>
24135 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24136 so that mbstate_t is always defined.
24138 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24139 be 1 in at least one GCC installation, and this configuration
24140 error is likely to be common. Ignoring MB_LEN_MAX hurts
24141 performance on hosts that have mbrtowc but have only unibyte
24142 locales, but I assume these hosts are rare.
24144 2000-07-23 Paul Eggert <eggert@twinsun.com>
24146 * lib/mbswidth.c (_XOPEN_SOURCE):
24147 Don't define; this causes problems on Solaris 7.
24148 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24150 2000-07-23 Jim Meyering <meyering@lucent.com>
24152 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24153 too: getgrgid, getpwuid, getuid.
24155 2000-07-23 Jim Meyering <meyering@lucent.com>
24157 * lib/basename.c (base_name): Add an assertion.
24159 2000-07-23 Bruno Haible <haible@clisp.cons.org>
24161 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24162 shadow its mbsinit function.
24164 2000-07-17 Bruno Haible <haible@clisp.cons.org>
24166 * lib/mbswidth.h: New file.
24167 * lib/mbswidth.c: New file.
24168 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24169 (noinst_HEADERS): Add mbswidth.h.
24171 2000-07-17 Bruno Haible <haible@clisp.cons.org>
24173 * lib/config.charset: Add support for FreeBSD. Improve support for
24176 2000-07-16 Bruno Haible <haible@clisp.cons.org>
24178 * m4/mbswidth.m4: New file.
24179 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24181 2000-07-15 Jim Meyering <meyering@lucent.com>
24183 * lib/makepath.c: Include quote.h.
24184 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24185 corresponding argument in a `quote (...)' call.
24186 Give better diagnostics.
24188 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24189 (noinst_HEADERS): Add quote.h.
24191 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
24192 from tar's src/misc.c.
24193 * lib/quote.h: New file. Prototypes for same.
24195 2000-07-14 Paul Eggert <eggert@twinsun.com>
24197 From a suggestion by Bruno Haible.
24198 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24199 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24200 to decide whether to define the BeOS workaround macro;
24201 this adjusts to the change to AC_MBSTATE_T.
24203 2000-07-14 Jim Meyering <meyering@lucent.com>
24205 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24206 jm_AC_TYPE_UINTMAX_T.
24208 2000-07-13 Paul Eggert <eggert@twinsun.com>
24210 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24212 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24213 quotearg_buffer_restyled): Add support for
24214 clocale_quoting_style. Undo previous change to
24215 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24216 and "{RIGHT QUOTATION MARK}" msgids.
24218 2000-07-10 Paul Eggert <eggert@twinsun.com>
24220 From a suggestion by Bruno Haible.
24221 * m4/mbstate_t.m4 (AC_MBSTATE_T):
24222 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
24223 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24224 and mbstate_t, to a single-part test that simply defines mbstate_t.
24225 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24226 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24228 2000-07-10 Jim Meyering <meyering@lucent.com>
24230 * m4/strerror_r.m4: Mirror the correction made in autoconf.
24232 * m4/gnu-source.m4: Output to confdefs.h directly.
24233 Suggestion from Akim Demaille.
24235 2000-07-09 Paul Eggert <eggert@twinsun.com>
24237 The old behavior of quoting `like this' doesn't look good with
24238 newer, ISO-style fonts. See:
24239 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24241 Instead, quote "like this" by default. Let the translator
24242 tailor the locale-specific quoting behavior by providing
24243 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24245 * lib/quotearg.c (N_): New macro.
24246 (gettext_default): New function.
24247 (quotearg_buffer_restyled): Use
24248 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24249 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24251 2000-07-09 Jim Meyering <meyering@lucent.com>
24253 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24254 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
24256 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24257 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24259 2000-07-09 Jim Meyering <meyering@lucent.com>
24261 * lib/Most files: Update copyright dates to include 2000.
24263 2000-07-08 Jim Meyering <meyering@lucent.com>
24265 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24267 (xgethostname): Remove now-unnecessary #ifdef.
24268 Move declaration of `err' into loop where it's used.
24270 2000-07-05 Paul Eggert <eggert@twinsun.com>
24271 and Bruno Haible <haible@clisp.cons.org>
24273 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24274 only if the test for an object-type mbstate_t fails. This
24275 prevents us from mistakenly reporting that mbstate_t is a
24276 system object type after we "#define mbstate_t int" to work
24279 2000-07-05 Paul Eggert <eggert@twinsun.com>
24280 and Bruno Haible <haible@clisp.cons.org>
24282 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24284 2000-07-05 Bruno Haible <haible@clisp.cons.org>
24286 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24288 Include <ctype.h> for use of isalpha.
24290 2000-07-05 Bruno Haible <haible@clisp.cons.org>
24292 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24293 by allocating a larger buffer. Test the gethostname return value for
24294 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
24295 returns an error and ENAMETOOLONG isn't defined.
24297 2000-07-05 Bruno Haible <haible@clisp.cons.org>
24299 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24302 2000-07-04 Jim Meyering <meyering@lucent.com>
24304 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24305 of the deprecated AC_CHECKING.
24307 2000-07-04 Jim Meyering <meyering@lucent.com>
24309 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24310 Reported by Bruno Haible.
24312 2000-07-04 Jim Meyering <meyering@lucent.com>
24314 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24315 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
24318 2000-07-03 Paul Eggert <eggert@twinsun.com>
24320 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24321 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24323 2000-07-03 Paul Eggert <eggert@twinsun.com>
24324 and Bruno Haible <haible@clisp.cons.org>
24326 * lib/quotearg.c (mbrtowc):
24327 Assign to *pwc, and return 1 only if result is nonzero.
24328 (iswprint): Use ISPRINT when substituting our own mbrtowc.
24330 2000-07-03 Jim Meyering <meyering@lucent.com>
24332 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24334 2000-07-03 Jim Meyering <meyering@lucent.com>
24336 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24337 This is necessary to get a definition of e.g., UTMP_FILE on
24341 2000-07-02 Jim Meyering <meyering@lucent.com>
24343 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24345 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24346 AC_LIBOBJ(function_name).
24347 * m4/chown.m4: Likewise.
24348 * m4/fnmatch.m4: Likewise.
24349 * m4/ftruncate.m4: Likewise.
24350 * m4/getgroups.m4: Likewise.
24351 * m4/getline.m4: Likewise.
24352 * m4/group-member.m4: Likewise.
24353 * m4/jm-macros.m4: Likewise.
24354 * m4/lstat.m4: Likewise.
24355 * m4/malloc.m4: Likewise.
24356 * m4/memcmp.m4: Likewise.
24357 * m4/nanosleep.m4: Likewise.
24358 * m4/putenv.m4: Likewise.
24359 * m4/realloc.m4: Likewise.
24360 * m4/regex.m4: Likewise.
24361 * m4/stat.m4: Likewise.
24362 * m4/strftime.m4: Likewise.
24364 2000-07-02 Jim Meyering <meyering@lucent.com>
24366 * lib/quotearg.c (mbstate_t): Don't define here.
24368 2000-07-02 Jim Meyering <meyering@lucent.com>
24370 * lib/nanosleep.c (SIGCONT): Define if not already defined.
24372 2000-07-01 Jim Meyering <meyering@lucent.com>
24374 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24376 2000-07-01 Jim Meyering <meyering@lucent.com>
24378 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24381 2000-07-01 Bruno Haible <haible@clisp.cons.org>
24383 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24384 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24386 2000-07-01 Bruno Haible <haible@clisp.cons.org>
24388 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24389 per change in ../m4/ls-mntd-fs.m4.
24390 (read_filesystem_list): Ignore symbolic links.
24392 2000-06-29 Jim Meyering <meyering@lucent.com>
24394 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24395 for declaration of strcmp.
24397 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24399 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24400 Avoid warning by casting result to `char *' to remove `const'.
24402 2000-06-28 Jim Meyering <meyering@lucent.com>
24404 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
24405 included by quotearg.c, for which we perform this test. From
24408 2000-06-27 Bruno Haible <haible@clisp.cons.org>
24410 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24411 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24412 <utmpx.h> exists, put readutmp.o into LIBOBJS.
24414 2000-06-27 Bruno Haible <haible@clisp.cons.org>
24416 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24418 2000-06-26 Paul Eggert <eggert@twinsun.com>
24420 savedir now sets errno on failure and invokes xmalloc to get memory.
24421 Fix a couple of other minor bugs while we're at it.
24423 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24424 (NAMLEN): Remove macro.
24425 (malloc, realloc): Remove decls.
24426 (stpcpy): Likewise.
24427 ("xalloc.h"): Include.
24428 (NAME_SIZE_DEFAULT): New macro.
24429 (savedir): Use xmalloc / xrealloc to allocate memory.
24430 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24431 Skip "" directory entries.
24432 Use strlen to calculate directory entry length, since the old method
24433 is rarely used these days and isn't worth supporting.
24434 Don't use a pointer after freeing it.
24435 Check for integer overflow when calculating allocation size.
24436 Use memcpy to copy entries, instead of stpcpy.
24437 Set errno properly when returning NULL.
24438 Check for readdir error.
24440 2000-06-26 Jim Meyering <meyering@lucent.com>
24442 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24444 2000-06-25 Jim Meyering <meyering@lucent.com>
24446 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24447 Linux header bug when _XOPEN_SOURCE is defined to 500.
24449 2000-06-25 Bruno Haible <haible@clisp.cons.org>
24451 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24454 2000-06-25 Bruno Haible <haible@clisp.cons.org>
24456 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24458 Don't include <stdlib.h>. Don't declare malloc, realloc.
24460 2000-06-24 Jim Meyering <meyering@lucent.com>
24462 * m4/strerror_r.m4: Revive this file -- to try out an experimental
24463 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24464 for which strerror does return char*, but which lacks a conveniently
24465 accessible declaration of the function. If the compile-test says
24466 strerror_r doesn't work, then resort to a `run'-test that works on
24467 BeOS and segfaults on DEC Unix.
24469 2000-06-24 Jim Meyering <meyering@lucent.com>
24471 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24473 2000-06-23 Paul Eggert <eggert@twinsun.com>
24475 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24476 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
24478 2000-06-23 Paul Eggert <eggert@twinsun.com>
24480 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24481 (mbrtowc, mbstate_t): Define substitutes if
24482 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24483 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24484 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24486 2000-06-23 Jim Meyering <meyering@lucent.com>
24488 * m4/afs.m4: Add missing AC_MSG_RESULT.
24489 Reported by Bruno Haible.
24491 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24492 Suggestion from Bruno Haible.
24494 2000-06-23 Jim Meyering <meyering@lucent.com>
24496 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
24498 2000-06-21 Jim Meyering <meyering@lucent.com>
24500 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24502 2000-06-21 Jim Meyering <meyering@lucent.com>
24504 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24505 (noinst_HEADERS): Add getstr.h.
24507 * lib/getline.c (getstr): Move into a separate file.
24508 * lib/getstr.c (getstr): New file, extracted from getline.c, with
24509 the following changes: new parameter, delim2; both delim[12]
24510 parameters have type `int', not `char'. The latter would lose
24511 with 8-bit delimiters.
24512 * lib/getstr.h: New file.
24514 2000-06-21 Bruno Haible <haible@clisp.cons.org>
24516 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24517 than 1024, return a memory chunk of least possible size, instead
24518 of size PATH_MAX + 2. In the loop, increment the size proportionally.
24519 Use free/xmalloc instead of xrealloc to avoid copying for very long
24522 2000-06-21 Bruno Haible <haible@clisp.cons.org>
24524 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24527 2000-06-21 Bruno Haible <haible@clisp.cons.org>
24529 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24530 address, not strdup. Include <stdlib.h> and don't declare free().
24532 2000-06-19 Jim Meyering <meyering@lucent.com>
24534 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24536 2000-06-18 Jim Meyering <meyering@lucent.com>
24538 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24540 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24541 `checking whether...' message to be consistent with that of the
24544 2000-06-18 Jim Meyering <meyering@lucent.com>
24546 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24547 Besides, these days every porting target provides a mkdir function.
24549 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24550 needed. (this snippet comes from src/system.h).
24552 2000-06-16 Bruno Haible <haible@clisp.cons.org>
24554 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24556 2000-06-15 Paul Eggert <eggert@twinsun.com>
24558 * lib/human.c (adjust_value): New function.
24559 (human_readable_inexact): Apply rounding style even when
24560 printing approximate values.
24562 2000-06-14 Paul Eggert <eggert@twinsun.com>
24564 * lib/human.c (human_readable_inexact): Allow an input block
24565 size that is not a multiple of the output block size, and vice versa.
24566 Reported by Piergiorgio Sartor.
24568 2000-06-14 Paul Eggert <eggert@twinsun.com>
24570 * lib/getdate.y (get_date): Apply relative times after time
24571 zone indicator, not before. Reported by Todd A. Jacobs.
24573 2000-06-13 Jim Meyering <meyering@lucent.com>
24575 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24577 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24579 2000-06-12 Paul Eggert <eggert@twinsun.com>
24581 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24583 2000-06-12 Jim Meyering <meyering@lucent.com>
24585 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24586 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24588 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24589 the optional argument, `lib'.
24591 2000-06-08 Jim Meyering <meyering@lucent.com>
24593 * m4/largefile.m4: Remove file (now that it's part of autoconf).
24595 2000-06-04 Paul Eggert <eggert@twinsun.com>
24597 Rewrite largefile configuration so that we don't need to run
24598 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
24599 AC_CANONICAL_HOST in configure.in -- jmm]
24601 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24602 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24603 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24604 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24605 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24607 Instead of inspecting the output of getconf, try to compile the
24608 test program without and with the macro definition.
24609 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24610 for getconf. Instead, check for the needed flags by compiling
24613 2000-06-04 Paul Eggert <eggert@twinsun.com>
24615 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24617 2000-06-04 Jim Meyering <meyering@lucent.com>
24619 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24620 SunOS 4.1.4 for which gid_t is an unsigned type.
24622 2000-06-03 Jim Meyering <meyering@lucent.com>
24624 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24625 now that autoconf requires that.
24627 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24628 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24629 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24631 2000-06-03 Jim Meyering <meyering@lucent.com>
24633 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24635 2000-06-03 Bruno Haible <haible@clisp.cons.org>
24637 * m4/glibc21.m4: New file.
24638 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24640 2000-06-03 Bruno Haible <haible@clisp.cons.org>
24642 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24643 newer, don't install charset.alias.
24644 * lib/config.charset: Change the Linux/glibc rules so they become empty
24645 on glibc-2.1 or newer.
24647 2000-06-02 Jim Meyering <meyering@lucent.com>
24649 * lib/mountlist.c: Back out last change. Instead, do this...
24650 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24651 me_dummy member using the same `ignore'-testing code.
24652 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24656 2000-05-29 Jim Meyering <meyering@lucent.com>
24658 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24659 mounts with the `ignore' attribute. Based on a patch from
24662 2000-05-28 Jim Meyering <meyering@lucent.com>
24664 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24665 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24666 * m4/stat.m4: Likewise.
24667 * m4/lstat.m4: Likewise.
24668 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
24670 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
24671 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
24673 2000-05-26 Jim Meyering <meyering@lucent.com>
24675 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
24677 2000-05-24 Jim Meyering <meyering@lucent.com>
24679 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
24680 autoconf requires that.
24681 * m4/lib-check.m4: Likewise.
24682 * m4/jm-macros.m4: Likewise.
24683 * m4/strftime.m4: Likewise.
24685 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
24686 AC_CHECK_DECLS, now that autoconf requires that.
24688 2000-05-22 Jim Meyering <meyering@lucent.com>
24690 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24691 * m4/lstat.m4: Likewise.
24693 2000-05-22 Jim Meyering <meyering@lucent.com>
24695 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
24697 2000-05-20 Jim Meyering <meyering@lucent.com>
24699 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
24700 (jm_PREREQ): Use it.
24702 2000-05-18 Jim Meyering <meyering@lucent.com>
24704 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
24705 back, too, since it may have been modified by allocate_entry.
24706 (hash_delete): Rewrite to use neither the assignment operator
24707 nor the comma operator in an if-expression.
24709 2000-05-15 Paul Eggert <eggert@twinsun.com>
24712 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
24713 Remove; no longer needed.
24714 "quotearg.h": Add include.
24715 (file_name): Do not bother to explicitly initialize to NULL; it's less
24716 efficient on some hosts.
24717 (close_stdout_status): Remove test as to whether stdout was already
24718 closed; it breaks for the case "echo x | sort >&-".
24719 Quote file name colons.
24720 Do not assume that _("write error") lacks format strings.
24722 2000-05-15 Jim Meyering <meyering@lucent.com>
24724 * lib/version-etc.c (version_etc_copyright): Update the copyright
24725 string used in all --version output.
24727 2000-05-14 Jim Meyering <meyering@lucent.com>
24729 * lib/closeout.c (close_stdout_set_file_name): New function.
24730 (close_stdout_status): Use new file-scoped global.
24731 Return right away if fstat says the stdout file descriptor is invalid.
24732 * lib/closeout.h (close_stdout_set_file_name): Declare.
24734 2000-05-10 Jim Meyering <meyering@lucent.com>
24736 * lib/closeout.c [default_exit_status]: New file-scoped variable.
24737 (close_stdout_set_status): New function.
24738 * lib/closeout.h (close_stdout_set_status): Declare.
24740 2000-05-09 Jim Meyering <meyering@lucent.com>
24742 * m4/gettext.m4: Rename this...
24743 * m4/libintl.m4: ...to this.
24745 2000-05-08 Jim Meyering <meyering@lucent.com>
24747 * lib/long-options.c: Don't include closeout.h.
24748 (parse_long_options): Don't call close_stdout for --version.
24750 2000-05-06 Paul Eggert <eggert@twinsun.com>
24752 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
24753 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
24754 2.1.3 bug. This avoids a clash when files like regex.c define
24757 2000-05-06 Jim Meyering <meyering@lucent.com>
24759 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
24760 (AC_REPLACE_FUNCS): Add strnlen.
24762 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
24763 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
24765 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
24766 AC_SEARCH_LIBS call for nanosleep.
24767 (LIB_NANOSLEEP): Set and AC_SUBST.
24769 2000-05-06 Jim Meyering <meyering@lucent.com>
24771 * lib/strnlen.c: Undefine __strnlen and strnlen.
24772 [!weak_alias]: Define __strnlen to strnlen.
24774 * lib/atexit.c: New file, from libiberty.
24776 2000-05-06 Jim Meyering <meyering@lucent.com>
24778 * lib/closeout.c (close_stdout_status): Also check for errors on the
24781 2000-05-05 Jim Meyering <meyering@lucent.com>
24783 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24784 AC_SEARCH_LIBS call for clock_gettime.
24785 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24787 * m4/search-libs.m4: Update from autoconf.
24789 su doesn't work on Solaris 2.6.
24790 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24791 <shadow.h>. Reported by Dragos Harabor.
24793 2000-05-05 Bruno Haible <haible@clisp.cons.org>
24795 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24796 memcpy instead of xmalloc, xrealloc, path_concat.
24797 (locale_charset): Treat empty environment variables as absent.
24798 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24800 2000-05-04 Jim Meyering <meyering@lucent.com>
24802 * lib/getopt.c: Update from glibc.
24803 * lib/obstack.c: Likewise.
24804 * lib/obstack.h: Likewise.
24805 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
24808 * lib/regex.h: Likewise.
24809 * lib/strndup.c: Likewise.
24810 * lib/strnlen.c: New file, from glibc.
24812 2000-05-03 Jim Meyering <meyering@lucent.com>
24814 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24816 2000-05-02 Paul Eggert <eggert@twinsun.com>
24818 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24819 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
24820 compile-time test, rather than inspecting host and OS, to
24821 decide whether to define _LARGEFILE_SOURCE.
24823 2000-05-01 Jim Meyering <meyering@lucent.com>
24825 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24827 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24828 Based on a patch from Bruno Haible.
24830 2000-05-01 Jim Meyering <meyering@lucent.com>
24832 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24834 2000-04-29 Jim Meyering <meyering@lucent.com>
24836 * lib/path-concat.c: Declare strdup only if it's not defined.
24837 * lib/canon-host.c: Likewise.
24839 2000-04-28 Jim Meyering <meyering@lucent.com>
24841 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24842 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
24843 is included first, then limits.h is included by locale.h by libintl.h.
24844 From John David Anglin.
24846 2000-04-25 Jim Meyering <meyering@lucent.com>
24848 * lib/makepath.c (S_IRWXUGO): Define.
24849 (make_path): Always perform explicit chmod if MODE specifies any
24850 of the `special' permission bits. Prompted by a bug report against
24851 install from Mate Wierdl and Joost van Baal.
24853 2000-04-18 Jim Meyering <meyering@lucent.com>
24855 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24856 (jm_PREREQ): Use it.
24858 2000-04-18 Jim Meyering <meyering@lucent.com>
24860 * lib/README: New file.
24862 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
24863 getpagesize. For BeOS. Based on a patch from Bruno Haible.
24865 2000-04-17 Jim Meyering <meyering@lucent.com>
24868 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
24869 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
24870 Suggestion from Akim Demaille.
24872 2000-04-17 Jim Meyering <meyering@lucent.com>
24874 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
24875 the definition of it to rpl_strftime also defined-away the system's
24878 2000-04-15 Jim Meyering <meyering@lucent.com>
24880 Use `C' to denote so-called `contiguous' files, the same way
24882 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
24883 (ftypelet): Use S_ISCTG.
24884 From Michael Deutschmann.
24886 2000-04-14 Jim Meyering <meyering@lucent.com>
24888 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
24889 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
24892 2000-04-14 Jim Meyering <meyering@lucent.com>
24894 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
24896 2000-04-13 Jim Meyering <meyering@lucent.com>
24898 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
24899 AH_VERBATIM to insert required #ifndef into config.h.in.
24900 Suggestion from Akim Demaille.
24902 2000-04-12 Jim Meyering <meyering@lucent.com>
24904 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
24905 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
24906 Christian Krackowizer.
24908 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
24909 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
24910 (AC_SYS_LARGEFILE): Require.
24911 (AM_C_PROTOTYPES): Require.
24913 2000-04-08 Jim Meyering <meyering@lucent.com>
24915 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
24916 names don't conflict. Reported by Eli Zaretskii.
24918 2000-04-07 Jim Meyering <meyering@lucent.com>
24920 * lib/putenv.c: Move inclusion of errno.h so it follows that of
24921 sys/types.h, to work around system header problems on AIX 3.2.5.
24924 2000-04-07 Bruno Haible <haible@clisp.cons.org>
24926 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
24927 bug. Deal with the different error behavior of Irix iconv.
24929 2000-04-05 Paul Eggert <eggert@twinsun.com>
24931 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
24932 IRIX if the installer said otherwise.
24934 2000-04-05 Jim Meyering <meyering@lucent.com>
24936 Portability tweaks required for ultrix4.3.
24937 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
24938 (jm_CHECK_DECLS): Add getutent to the list of functions.
24939 (_jm_DECL_HEADERS): Add utmpx.h.
24940 From John David Anglin.
24942 * m4/strftime.m4: Back out the 2000-04-02 change.
24943 Instead of that change, simply undefine putenv in the test program.
24945 2000-04-05 Jim Meyering <meyering@lucent.com>
24947 Portability tweaks required for ultrix4.3.
24948 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
24950 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
24951 * lib/canon-host.c: Declare strdup.
24952 * lib/path-concat.c: Likewise.
24953 From John David Anglin.
24955 2000-04-04 Jim Meyering <meyering@lucent.com>
24957 Be more DOS 8.3-friendly.
24958 * lib/ref-add.sin: Renamed from ref-add.sed.in.
24959 * lib/ref-del.sin: Renamed from ref-del.sed.in.
24960 * lib/Makefile.am: Reflect renaming.
24961 Reported by Eli Zaretskii.
24963 Use a temporary file name that won't clash with `charset.alias'
24964 in the DOS 8.3 name space.
24965 * lib/Makefile.am (charset_tmp): Define.
24966 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
24967 (uninstall-local): Likewise.
24968 Reported by Eli Zaretskii.
24970 2000-04-03 Jim Meyering <meyering@lucent.com>
24972 * m4/gettext.m4: Fix typo in comment.
24974 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
24975 textutils/configure.in). Suggestion from Paul Eggert.
24976 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
24978 2000-04-02 Paul Eggert <eggert@twinsun.com>
24980 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
24981 variable in the shell rather than using putenv, which isn't
24982 portable. This avoids the configure-time inter-test dependency
24983 on the potentially-renamed putenv function.
24985 2000-03-30 Paul Eggert <eggert@twinsun.com>
24987 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
24988 before checking struct stat.st_blksize, so that
24989 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
24991 2000-03-29 Paul Eggert <eggert@twinsun.com>
24993 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
24994 since strftime.c uses HAVE_STRFTIME to decide whether to use
24995 the underlying strftime.
24997 2000-03-29 Paul Eggert <eggert@twinsun.com>
24999 * lib/time/strftime.c (my_strftime): Make sure we call the system
25000 strftime, not ourselves, when invoking the underlying strftime.
25002 2000-03-24 Jim Meyering <meyering@lucent.com>
25004 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25005 (charset_alias): Define.
25006 (install-exec-local): Factor out common code.
25007 (uninstall-local): Split lines longer than 80.
25008 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25009 (SUFFIXES): Define.
25010 (.sed.in.sed): New rule. Don't redirect directly to $@.
25011 (CLEANFILES): Add ref-add.sed and ref-del.sed.
25013 2000-03-19 Bruno Haible <haible@clisp.cons.org>
25015 * lib/config.charset: Output a line containing "Packages using this
25017 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25018 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25019 ref-del.sed): New rules.
25021 2000-03-17 Jim Meyering <meyering@lucent.com>
25023 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25024 Otherwise, include <strings.h>
25026 2000-03-17 Bruno Haible <haible@clisp.cons.org>
25028 * lib/unicodeio.c (utf8_wctomb): New function.
25029 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25030 format instead of in UCS-4 with platform dependent endianness.
25032 2000-03-10 Jim Meyering <meyering@lucent.com>
25034 * m4/lib-check.m4: Look for getspnam in -lgen, too.
25035 From Marco Franzen.
25037 2000-03-07 Paul Eggert <eggert@twinsun.com>
25039 * lib/savedir.c (savedir): Work even if directory size is
25040 negative; this can happen with some screwy NFS configurations.
25042 2000-03-06 Jim Meyering <meyering@lucent.com>
25044 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25045 if it's NULL (because we ran out of memory). From Bruno Haible.
25047 2000-03-05 Jim Meyering <meyering@lucent.com>
25049 * lib/localcharset.c ("path-concat.h"): Include.
25050 (get_charset_aliases): Use path_concat instead of ANSI string
25053 * lib/unicodeio.h (PARAMS): Define.
25054 Use it to guard prototype.
25056 2000-03-04 Jim Meyering <meyering@lucent.com>
25058 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25059 for lib/localcharset.c.
25061 2000-03-04 Jim Meyering <meyering@lucent.com>
25063 * lib/Makefile.am (install-exec-local): Create $(libdir) before
25064 installing into it.
25065 (uninstall-local): Uncomment this rule so `make distcheck' works
25068 * lib/unicodeio.c (<errno.h>): Include it.
25069 (errno): Declare if not defined.
25071 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25073 * lib/config.charset: New version, incorporating remarks from a linux
25074 i18n mailing list. From Bruno Haible.
25076 2000-03-04 Bruno Haible <haible@clisp.cons.org>
25078 * m4/codeset.m4: New file.
25079 * m4/iconv.m4: New file.
25080 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25082 2000-03-03 Jim Meyering <meyering@lucent.com>
25084 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25086 2000-03-02 Jim Meyering <meyering@lucent.com>
25088 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25089 the messages come out on separate lines.
25091 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25092 rather than jm_CHECK_DECLARATIONS.
25093 * m4/decl.m4: Remove now-unused file.
25095 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25098 2000-03-02 Jim Meyering <meyering@lucent.com>
25100 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25102 2000-03-01 Jim Meyering <meyering@lucent.com>
25104 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25105 * lib/unicodeio.c: Likewise.
25107 2000-03-01 Bruno Haible <haible@clisp.cons.org>
25109 * lib/config.charset: New file.
25110 * lib/localcharset.c: New file.
25111 * lib/unicodeio.h, lib/unicodeio.c: New files.
25112 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25113 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25114 (noinst_HEADERS): Add unicodeio.h.
25115 (all-local, install-exec-local, charset.alias): New targets.
25117 2000-02-28 Paul Eggert <eggert@twinsun.com>
25119 * lib/quotearg.c (ALERT_CHAR): New macro.
25120 (quotearg_buffer_restyled): Use it.
25122 2000-02-27 Jim Meyering <meyering@lucent.com>
25124 * m4/check-decl.m4: Add getenv to the list.
25126 2000-02-27 Jim Meyering <meyering@lucent.com>
25128 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25129 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25131 * lib/backupfile.c: Guard inclusion of stdlib.h with
25132 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25133 Declare malloc if needed.
25135 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25136 `#ifndef HAVE_DECL..'
25137 now that autoconf always defines the HAVE_DECL_ symbols.
25138 * lib/human.c: Likewise.
25139 * lib/same.c: Likewise.
25140 * lib/strtoumax.c: Likewise.
25142 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25143 declaration check was not run.
25144 * lib/hash.c: Likewise.
25145 * lib/human.c: Likewise.
25146 * lib/same.c: Likewise.
25147 * lib/strtoumax.c: Likewise.
25149 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25150 `.', then first look up the entire `.'-containing string as a login
25153 2000-02-23 Jim Meyering <meyering@lucent.com>
25155 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25156 in place of my hack.
25158 2000-02-18 Paul Eggert <eggert@twinsun.com>
25160 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25161 (textint): New typedef.
25162 (parser_control): Member year changed from int to textint.
25164 (YYSTYPE): Removed; replaced by %union with int and textint members.
25165 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25166 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25167 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25168 (tSNUMBER, tUNUMBER): Now of type <textintval>.
25169 (date, number, to_year): Use width of number in digits, not its value,
25170 to determine whether it's a 2-digit year, or a 2-digit time.
25171 (yylex): Store number of digits of numeric tokens.
25172 Reported by John Kendall.
25174 (parser_control): Changed from struct parser_control to typedef (for
25175 consistency). All uses changed.
25177 (tID): Removed; not used.
25178 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25180 2000-02-14 Paul Eggert <eggert@twinsun.com>
25182 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25183 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25185 2000-02-12 Jim Meyering <meyering@lucent.com>
25187 * lib/userspec.c (ISDIGIT): Define it.
25188 (isdigit): Remove definition.
25189 (is_number): Use ISDIGIT, not isdigit.
25190 <libintl.h>: Include.
25191 (_ and N_): Define.
25192 (parse_user_spec): Mark translatable strings.
25194 2000-02-10 Jim Meyering <meyering@lucent.com>
25196 With these changes, nanosleep.[ch] are finally enough like the other
25197 lib/* replacement files to compile on a few more losing systems.
25199 * lib/nanosleep.h: Don't include config.h.
25200 Remove prototype from declaration of nanosleep.
25201 (PARAMS): Remove now-unneeded definition.
25202 * lib/nanosleep.c: #undef nanosleep.
25203 (rpl_nanosleep): Rename from nanosleep.
25205 2000-02-10 Jim Meyering <meyering@lucent.com>
25207 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25208 gnu_nanosleep to rpl_nanosleep.
25210 2000-02-09 Jim Meyering <meyering@lucent.com>
25212 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25213 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
25215 2000-02-08 Akim Demaille <akim@epita.fr>
25217 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25218 `[' and `]' and remove uses of `changequote'.
25219 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25220 (AC_SYS_LARGEFILE): Likewise.
25221 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25222 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25224 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25225 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25226 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25227 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25229 2000-02-05 Jim Meyering <meyering@lucent.com>
25231 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25232 Remove explicit use of AC_HEADER_TIME. It is required by
25233 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
25234 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25235 in autoconf whereby the expansion of the latter ended up preceding
25236 the expansion of its prerequisite, AC_HEADER_TIME.
25237 Reported by Volker Borchert.
25239 2000-02-03 Jim Meyering <meyering@lucent.com>
25241 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25243 2000-02-03 Jim Meyering <meyering@lucent.com>
25245 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25246 rather than with `#if HAVE_UTMPNAME'.
25248 2000-02-02 Jim Meyering <meyering@lucent.com>
25250 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25251 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25252 Reported by Eli Zaretskii.
25254 2000-02-01 Jim Meyering <meyering@lucent.com>
25256 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
25258 2000-01-31 Jim Meyering <meyering@lucent.com>
25260 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25261 functions. Add the time.h and sys/time.h headers along with the
25262 AC_REQUIRE'ment of AC_HEADER_TIME.
25264 2000-01-31 Jim Meyering <meyering@lucent.com>
25266 * lib/nanosleep.h (nanosleep): Guard declaration with
25267 `#if ! HAVE_DECL_NANOSLEEP'.
25268 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25269 the declaration in that vendor's sys/timers.h.
25270 Reported by Christian Krackowizer.
25272 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25273 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25274 (ISPRINT): Likewise.
25275 Reported by Tom Tromey.
25277 2000-01-30 Jim Meyering <meyering@lucent.com>
25279 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25281 * m4/prereq.m4 (utmp_includes): Define.
25282 Check for ut_user and ut_name members in both struct utmpx
25285 2000-01-30 Jim Meyering <meyering@lucent.com>
25287 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25288 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
25289 header files where only utmpx.ut_user is declared.
25291 * lib/readutmp.h (UT_USER): Define.
25293 2000-01-29 Jim Meyering <meyering@lucent.com>
25295 * m4/lib-check.m4: New file containing library-related checks from
25296 fileutils and sh-utils (textutils had none).
25298 2000-01-28 Jim Meyering <meyering@lucent.com>
25300 * m4/perl.m4: Change format of warning message to look more like that
25301 from the missing script. Suggestion from François Pinard.
25303 2000-01-25 Jim Meyering <meyering@lucent.com>
25305 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25306 well as time.h in the compile check.
25307 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25308 Fix typo in cross-compiling case: s/yes/no/.
25310 2000-01-23 Jim Meyering <meyering@lucent.com>
25312 * m4/jm-macros.m4: Move df-related tests here from
25313 fileutils/configure.in
25315 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25316 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25318 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
25319 s/space/ac_fsusage_space/.
25320 (jm_FILE_SYSTEM_USAGE): Take two parameters.
25322 * m4/ftruncate.m4: New file (derived from part of
25323 fileutils/configure.in).
25324 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25325 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25327 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25328 AC_SUBST these here, rather than just in sh-util/configure.in, so
25329 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25331 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25332 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25333 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25334 (AC_SUBST(POW_LIBM)): Likewise.
25335 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25337 2000-01-23 Jim Meyering <meyering@lucent.com>
25339 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25342 2000-01-22 Jim Meyering <meyering@lucent.com>
25344 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25346 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25348 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25350 (AC_CHECK_HEADERS): Likewise for sh-utils.
25351 (AC_CHECK_HEADERS): Likewise for textutils.
25352 Merge the three lists of headers.
25354 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
25355 from fileutils' configure.in.
25357 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25358 code. Moved tests into their own function (_jm_DECL_HEADERS) in
25361 * m4/check-decl.m4: Use #if rather than #ifdef.
25362 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25363 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25364 (_jm_DECL_HEADERS): Define new function.
25365 (jm_CHECK_DECLARATIONS): Require it.
25367 2000-01-22 Jim Meyering <meyering@lucent.com>
25369 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25370 [! HAVE_DECL_STRTOULL]: Declare strtoull.
25371 Required for some AIX systems. Reported by Christian Krackowizer.
25372 [TESTING] (main): New function.
25374 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
25375 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25378 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25381 * lib/strverscmp.c (ISDIGIT): Define.
25382 (strverscmp): Use ISDIGIT, not isdigit.
25384 2000-01-19 Jim Meyering <meyering@lucent.com>
25386 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25387 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
25388 defines `struct timespec' in <sys/time.h>
25390 * m4/c-bs-a.m4: Remove uses of changequote altogether.
25391 Thanks to Akim for explaining.
25393 2000-01-17 Paul Eggert <eggert@twinsun.com>
25395 * lib/nanosleep.c (nanosleep):
25396 Don't use SA_INTERRUPT to decide whether to call sigaction, as
25397 POSIX.1 doesn't require SA_INTERRUPT and some systems
25398 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
25399 it's been part of POSIX.1 since day 1 (in 1988).
25401 2000-01-17 Jim Meyering <meyering@lucent.com>
25403 * lib/interlock: Remove unused file. Reported by François Pinard.
25405 2000-01-16 Paul Eggert <eggert@twinsun.com>
25407 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25408 alert, backslash, formfeed, and vertical tab unnecessarily in
25409 shell quoting style.
25411 2000-01-16 Jim Meyering <meyering@lucent.com>
25413 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25414 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25415 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25416 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25418 2000-01-16 Jim Meyering <meyering@lucent.com>
25420 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25421 because the latter didn't work.
25423 2000-01-15 Jim Meyering <meyering@lucent.com>
25425 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25426 (AC_REPLACE_FUNCS): Add memcpy and memset.
25427 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25429 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25431 2000-01-12 Jim Meyering <meyering@lucent.com>
25433 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25434 (jm_PREREQ): Use it.
25435 (jm_PREREQ_READUTMP): New macro.
25436 (jm_PREREQ): Use it.
25438 2000-01-11 Paul Eggert <eggert@twinsun.com>
25440 Quote multibyte characters correctly.
25441 * m4/c-bs-a.m4: New file.
25442 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25443 (jm_PREREQ): Use it.
25445 2000-01-11 Paul Eggert <eggert@twinsun.com>
25447 * m4/uintmax_t.m4: Port to autoconf 2.13.
25449 2000-01-08 Jim Meyering <meyering@ascend.com>
25451 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25452 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25454 2000-01-04 Jim Meyering <meyering@ascend.com>
25456 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25457 jm_STRUCT_DIRENT_D_TYPE.
25458 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25459 jm_STRUCT_DIRENT_D_INO.
25460 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25462 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25464 * m4/utime.m4: Likewise.
25466 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25467 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25469 2000-01-03 Paul Eggert <eggert@twinsun.com>
25471 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25472 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25474 2000-01-02 Jim Meyering <meyering@ascend.com>
25476 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
25477 remember if this is necessary.
25479 1999-12-26 Jim Meyering <meyering@ascend.com>
25481 * m4/jm-macros.m4: Use it here.
25482 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25484 1999-12-23 Jim Meyering <meyering@ascend.com>
25486 * m4/jm-macros.m4: Check for clock_gettime (moved from
25487 fileutils/configure.in)
25488 Check for gettimeofday.
25490 1999-12-20 Jim Meyering <meyering@ascend.com>
25492 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25493 autoconf-2.14a-1999-12-20.
25495 1999-12-19 Jim Meyering <meyering@ascend.com>
25497 * m4/lstat-slash.m4: New file.
25498 * m4/jm-macros.m4: Use the new macro:
25499 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25501 1999-12-07 Jim Meyering <meyering@ascend.com>
25503 * m4/perl.m4: Require that File::Compare be available, too.
25504 Too many systems seem to lack it.
25506 * m4/strftime.m4: Add checks for most of the cpp macros tested in
25507 GNU's strftime.c. Prompted by a patch from Paul Eggert.
25509 1999-11-18 Paul Eggert <eggert@twinsun.com>
25511 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25512 problem with the QNX 4.25 shell, which doesn't propagate exit
25513 status of failed commands inside shell assignments.
25515 1999-11-17 Jim Meyering <meyering@ascend.com>
25517 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25519 1999-11-07 Jim Meyering <meyering@ascend.com>
25521 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25523 1999-11-06 Jim Meyering <meyering@ascend.com>
25525 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25526 * m4/jm-macros.m4 (jm_MACROS): Use it here.
25528 1999-11-05 Jim Meyering <meyering@ascend.com>
25530 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25531 configure.in of textutils, fileutils, and sh-utils into this one
25532 (shared between those packages) file.
25533 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25534 AC_STRUCT_ST_BLKSIZE.
25536 1999-11-03 Jim Meyering <meyering@ascend.com>
25538 * m4/ssize_t.m4: Remove file. No longer needed since the new version
25539 of AC_CHECK_TYPE checks includes unistd.h.
25540 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25541 Suggestion from Akim Demaille.
25543 1999-10-30 Jim Meyering <meyering@ascend.com>
25545 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
25547 * m4/ls-mntd-fs.m4: Likewise.
25548 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
25549 * m4/jm-winsz1.m4: Likewise.
25551 * m4/const.m4: Remove file, since the fix made it into the experimental
25552 version of autoconf.
25553 * m4/mktime.m4: Likewise.
25555 * m4/check-type.m4: Remove file, now that the latest version of
25556 AC_CHECK_TYPE takes a third arg to specify additional #includes.
25558 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25559 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25562 1999-10-04 Jim Meyering <meyering@ascend.com>
25564 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25566 1999-09-22 Paul Eggert <eggert@twinsun.com>
25568 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25569 2.95.1 bug with HP-UX 10.20.
25571 1999-09-17 Jim Meyering <meyering@ascend.com>
25573 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25574 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25575 due to missing strdup (against sh-utils-2.0).
25577 1999-08-29 Jim Meyering <meyering@ascend.com>
25579 * m4/jm-macros.m4: Require jm_BISON.
25580 * m4/bison.m4: New file.
25582 1999-08-17 Paul Eggert <eggert@twinsun.com>
25584 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25585 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25587 1999-08-05 Jim Meyering <meyering@ascend.com>
25589 * m4/getline.m4: Rename test file from conftestdata to conftest.data
25590 to avoid conflicts with `conftest' on 8+3 filesystems.
25591 Suggestion from Eli Zaretskii.
25593 1999-08-04 Jim Meyering <meyering@ascend.com>
25595 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25596 fileutils and sh-utils (textutils's getline test was inadequate).
25597 (AM_FUNC_GETLINE): Run this test.
25598 (AC_CHECK_FUNCS): Check for getdelim.
25599 Reported by Bob Proulx.
25601 1999-08-02 Jim Meyering <meyering@ascend.com>
25603 * m4/jm-macros.m4: Add a comment.
25605 1999-08-01 Paul Eggert <eggert@twinsun.com>
25607 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25608 <inttypes.h> defines strtoumax as a macro (and not as a
25611 1999-08-01 Paul Eggert <eggert@twinsun.com>
25613 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25614 that we can shift, multiply and divide unsigned long long
25615 values; Ultrix cc can't do it.
25617 1999-08-01 Paul Eggert <eggert@twinsun.com>
25619 * m4/mktime.m4: New file, which is a preview of what should appear
25620 in the next public autoconf release.
25622 1999-08-01 Paul Eggert <eggert@twinsun.com>
25624 * m4/lfs.m4: Remove this file.
25625 * m4/largefile.m4: New file. It contains the old contents of
25626 lfs.m4, except that all names with prefix AC_LFS have been
25627 changed to use the prefix AC_SYS_LARGEFILE instead, to be
25628 compatible with future autoconf versions. Also, some minor m4
25629 quoting problems have been fixed.
25631 1999-08-01 Paul Eggert <eggert@twinsun.com>
25633 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25634 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25635 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25636 and simplify the shell code.
25638 1999-08-01 Jim Meyering <meyering@ascend.com>
25640 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25643 1999-07-20 Jim Meyering <meyering@ascend.com>
25645 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25647 1999-07-15 Jim Meyering <meyering@ascend.com>
25649 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25651 1999-05-22 Jim Meyering <meyering@ascend.com>
25653 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25655 1999-05-20 Jim Meyering <meyering@ascend.com>
25657 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25658 Add a colon after each `then' in case $4 is empty.
25660 1999-05-16 Jim Meyering <meyering@ascend.com>
25662 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25664 1999-05-10 Jim Meyering <meyering@ascend.com>
25666 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
25668 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
25671 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
25673 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
25675 1999-05-04 Paul Eggert <eggert@twinsun.com>
25677 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
25678 not CPPFLAGS, so that linking works correctly in IRIX.
25680 1999-04-30 Paul Eggert <eggert@twinsun.com>
25682 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
25684 1999-04-20 Paul Eggert <eggert@twinsun.com>
25686 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
25687 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
25688 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
25689 jm_AC_TYPE_UNSIGNED_LONG_LONG.
25690 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
25692 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
25694 1999-04-20 Jim Meyering <meyering@ascend.com>
25696 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
25697 AC_REPLACE xstroull if necessary. From Paul Eggert.
25698 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
25700 1999-04-18 Jim Meyering <meyering@ascend.com>
25702 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
25703 * m4/jm-macros.m4: Use it.
25705 1999-04-06 Jim Meyering <meyering@ascend.com>
25707 * m4/strftime.m4: Remove test for %f.
25709 1999-03-29 Jim Meyering <meyering@ascend.com>
25711 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
25712 superset of the AC_TYPE_* checks in the textutils, fileutils,
25713 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
25716 1999-03-28 Jim Meyering <meyering@ascend.com>
25718 * m4/jm-macros.m4: Define GNU_PACKAGE here.
25719 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
25720 replaced e.g., in the *.sh files of the sh-utils.
25722 1999-03-20 Jim Meyering <meyering@ascend.com>
25724 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
25725 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
25726 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
25728 1999-03-19 Jim Meyering <meyering@ascend.com>
25730 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
25732 1999-03-12 Jim Meyering <meyering@ascend.com>
25734 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
25736 1999-03-07 Jim Meyering <meyering@ascend.com>
25738 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
25741 1999-02-17 Jim Meyering <meyering@ascend.com>
25743 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
25744 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
25746 1999-02-07 Jim Meyering <meyering@ascend.com>
25748 * m4/group-member.m4: New file -- extracted from sh-utils'
25751 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
25752 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
25754 1999-02-06 Jim Meyering <meyering@ascend.com>
25756 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
25757 * m4/fnmatch.m4: Likewise.
25758 * m4/getgroups.m4: Likewise.
25759 * m4/lstat.m4: Likewise.
25760 * m4/malloc.m4: Likewise.
25761 * m4/putenv.m4: Likewise.
25762 * m4/realloc.m4: Likewise.
25763 * m4/regex.m4: Likewise.
25764 * m4/stat.m4: Likewise.
25765 * m4/strftime.m4: Likewise.
25766 Suggestion from Alain Magloire.
25768 * m4/chown.m4: Use `.$ac_objext', not `.o'.
25769 * m4/fnmatch.m4: Likewise.
25770 * m4/getgroups.m4: Likewise.
25771 * m4/getline.m4: Likewise.
25772 * m4/lstat.m4: Likewise.
25773 * m4/malloc.m4: Likewise.
25774 * m4/memcmp.m4: Likewise.
25775 * m4/putenv.m4: Likewise.
25776 * m4/realloc.m4: Likewise.
25777 * m4/regex.m4: Likewise.
25778 * m4/stat.m4: Likewise.
25779 * m4/strftime.m4: Likewise.
25780 Suggestion from Alain Magloire.
25782 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25785 * m4/regex.m4: Add a run-time Test for proper operation of
25786 re_compile_pattern.
25788 1999-01-31 Jim Meyering <meyering@ascend.com>
25790 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25792 1999-01-30 Jim Meyering <meyering@ascend.com>
25794 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25796 * m4/jm-mktime.m4: Make this a wrapper around the official
25797 AM_FUNC_MKTIME rather than my private copy, now that the official one
25799 * m4/mktime.m4: Remove file.
25801 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25802 * m4/uptime.m4: Likewise.
25803 * m4/uintmax_t.m4: Likewise.
25805 1999-01-28 Jim Meyering <meyering@ascend.com>
25807 * m4/jm-macros.m4: Use jm_AFS.
25808 * m4/afs.m4: New file (from fileutils' configure.in).
25810 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25811 * m4/chown.m4: Likewise.
25812 * m4/d-ino.m4: Likewise.
25813 * m4/d-type.m4: Likewise.
25814 * m4/fnmatch.m4: Likewise.
25815 * m4/getgroups.m4: Likewise.
25816 * m4/gettext.m4: Likewise.
25817 * m4/jm-mktime.m4: Likewise.
25818 * m4/jm-winsz2.m4: Likewise.
25819 * m4/lcmessage.m4: Likewise.
25820 * m4/ls-mntd-fs.m4: Likewise.
25821 * m4/malloc.m4: Likewise.
25822 * m4/memcmp.m4: Likewise.
25823 * m4/putenv.m4: Likewise.
25824 * m4/realloc.m4: Likewise.
25825 * m4/st_mtim.m4: Likewise.
25826 * m4/strftime.m4: Likewise.
25828 1999-01-16 Jim Meyering <meyering@ascend.com>
25830 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25831 (ARGMATCH_DIE_DECL): Define.
25833 1999-01-12 Jim Meyering <meyering@ascend.com>
25835 * m4/Makefile.am.in: Rewrite to avoid using fmt.
25836 Reported by Lars Hecking.
25838 1999-01-10 Jim Meyering <meyering@ascend.com>
25840 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25842 * m4/inttypes_h.m4: Likewise.
25843 * m4/lstat.m4: Likewise.
25844 * m4/malloc.m4: Likewise.
25845 * m4/readdir.m4: Likewise.
25846 * m4/realloc.m4: Likewise.
25847 * m4/st_dm_mode.m4: Likewise.
25848 * m4/stat.m4: Likewise.
25849 * m4/utimbuf.m4: Likewise.
25850 * m4/utimes.m4: Likewise.
25852 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25853 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
25854 comments in config.h.in are meaningful.
25856 * m4/jm-macros.m4: Require autoconf-2.13 here.
25858 * m4/regex.m4: By default, don't use the included regex.c on systems
25859 with glibc 2. Suggestion from Uli Drepper.
25861 1999-01-02 Jim Meyering <meyering@ascend.com>
25863 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
25865 1998-12-18 Jim Meyering <meyering@ascend.com>
25867 * m4/Makefile.am.in (Makefile.am): Simplify rule.
25868 Based on a suggestion from Lars Hecking.
25870 1998-11-16 Paul Eggert <eggert@twinsun.com>
25872 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
25874 1998-11-16 Jim Meyering <meyering@ascend.com>
25876 * m4/lfs.m4: Double-quote the `uname...` expression.
25878 1998-11-14 Jim Meyering <meyering@ascend.com>
25880 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
25881 * m4/stat.m4: Likewise.
25883 1998-11-03 Jim Meyering <meyering@ascend.com>
25885 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
25886 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
25888 1998-10-18 Jim Meyering <meyering@ascend.com>
25890 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
25892 1998-10-17 Jim Meyering <meyering@ascend.com>
25894 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
25895 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
25896 calls for those previously hard-coded headers. Instead, take a new
25898 (jm_CHECK_DECLARATIONS): Reflect interface change.
25899 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
25900 (jm_CHECK_DECL_LOCALTIME_R): New macro.
25902 * m4/mktime.m4: Test for spring-forward gap before long-running test.
25904 1998-10-14 Jim Meyering <meyering@ascend.com>
25906 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
25907 instead of "TZ=America/Vancouver". From Paul Eggert.
25909 1998-10-11 Jim Meyering <meyering@ascend.com>
25911 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
25912 This adds a test for a recently added compatibility fix for mktime.c.
25913 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
25915 1998-09-27 Jim Meyering <meyering@ascend.com>
25917 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
25919 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
25920 ../configure.in, including a change from Gordon Matzigkeit to allow
25921 cross-compiling for the Hurd.
25923 * m4/glibc.m4: New file/macro to test for the GNU C Library
25924 versions 1 and 2. From Gordon Matzigkeit.
25927 1998-09-21 Jim Meyering <meyering@ascend.com>
25929 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
25931 1998-08-18 Paul Eggert <eggert@twinsun.com>
25933 Port nanosecond-resolution times to UnixWare 2.1.2 and
25934 pedantic Solaris 2.6.
25936 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
25938 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
25939 Generate name of ns member, instead of just 1 or undef.
25940 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
25942 1998-08-15 Jim Meyering <meyering@ascend.com>
25944 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
25945 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
25946 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
25947 instead of jm_TYPE_SSIZE_T.
25949 1998-08-12 Jim Meyering <meyering@ascend.com>
25951 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
25953 1998-08-02 Jim Meyering <meyering@ascend.com>
25955 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
25956 in acconfig.h manually.
25958 1998-07-31 Paul Eggert <eggert@twinsun.com>
25960 * m4/st_mtim.m4: New file.
25962 1998-07-28 Jim Meyering <meyering@ascend.com>
25964 * m4/utimes.m4: Undef stat.
25966 1998-07-25 Jim Meyering <meyering@ascend.com>
25968 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
25969 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
25971 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
25973 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
25974 uid and gid actually remain unchanged.
25976 1998-07-07 Jim Meyering <meyering@ascend.com>
25978 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
25980 1998-07-04 Jim Meyering <meyering@ascend.com>
25982 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
25983 to prove that this macro can be used in packages without regex.c.
25985 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
25987 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
25990 1998-07-03 Jim Meyering <meyering@ascend.com>
25992 * m4/gettext.m4: Add -lintl if it's found to be necessary.
25994 * m4/gettext.m4: New file -- from gettext-0.10.35.
25995 * m4/lcmessage.m4: Likewise.
25996 * m4/progtest.m4: Likewise.
25998 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
25999 * m4/jm-macros.m4: Require the new macro.
26001 1998-06-29 Jim Meyering <meyering@ascend.com>
26003 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
26004 for the definition of NGROUPS (used in a system header included
26007 1998-06-28 Jim Meyering <meyering@ascend.com>
26009 * m4/ls-mntd-fs.m4: New file.
26010 * m4/fstypename.m4: New file.
26012 * m4/jm-macros.m4: Require the new macro.
26013 * m4/jm-glibc-io.m4: New file.
26015 1998-05-19 Jim Meyering <meyering@ascend.com>
26017 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26018 * m4/lchown.m4: New file.
26020 * m4/Makefile.am.in: New file.
26021 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26023 1998-05-14 Jim Meyering <meyering@ascend.com>
26025 * m4/Makefile.am (EXTRA_DIST): Add them.
26026 * m4/jm-macros.m4: New file.
26027 * m4/utimbuf.m4: New file.
26029 1998-05-12 Jim Meyering <meyering@ascend.com>
26031 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26033 1998-05-11 Jim Meyering <meyering@ascend.com>
26035 * m4/isc-posix.m4: New file.
26037 1998-05-10 Jim Meyering <meyering@ascend.com>
26039 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26041 1998-05-09 Jim Meyering <meyering@ascend.com>
26043 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26044 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26047 * m4/ssize_t.m4: New file.
26048 * m4/mktime.m4: Remove file -- the new automake has this now.
26050 1998-04-26 Jim Meyering <meyering@ascend.com>
26052 * m4/assert.m4: New file.
26053 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26055 1998-04-05 Jim Meyering <meyering@ascend.com>
26057 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26058 (jm_PREREQ): Use it here.
26060 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
26062 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26065 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
26067 * m4/prereq.m4: New file.
26068 * m4/error.m4: New file.
26069 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26071 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
26073 * m4/getline.m4: Don't set am_cv_func_working_getline before the
26074 cache-check for the same variable -- that defeated the purpose of
26075 the test; the test program was never run. This was a problem only
26076 on systems with losing getline functions -- HP-UX 10.20 is one.
26077 Reported by Bjorn Helgaas.
26079 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
26081 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26083 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
26085 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26087 * m4/const.m4: New file. Use an initializer in this declaration
26088 typedef int charset[2]; const charset x;
26089 Reported by Bob Glickstein.
26091 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
26093 * m4/chown.m4: Fix reversed types on -1 args to chown.
26096 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
26098 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26099 Add lseek and memchr.
26101 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26102 T.E.Dickey <dickey@clark.net> said that some older preprocessors
26103 have a 20-character limit on names.
26105 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
26107 * m4/inttypes_h.m4: New file.
26108 * m4/uintmax_t.m4: New file.
26109 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26111 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26112 Free Software Foundation, Inc.
26113 Copying and distribution of this file, with or without modification,
26114 are permitted provided the copyright notice and this notice are preserved.