1 2007-01-16 Bruno Haible <bruno@clisp.org>
3 * modules/csharpexec-script: New, created from...
4 * modules/csharpexec: ... this.
6 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
8 * modules/javaexec-script: New, created from...
9 * modules/javaexec: ... this.
11 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13 * modules/poll (Dependencies): Add sys_select.
15 2007-01-15 Jim Meyering <jim@meyering.net>
17 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
18 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
19 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
20 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
22 2007-01-15 Bruno Haible <bruno@clisp.org>
24 * modules/striconveh: New file.
25 * lib/striconveh.h: New file.
26 * lib/striconveh.c: New file.
27 * MODULES.html.sh (Internationalization functions): Add striconveh.
29 * modules/striconveh-tests: New file.
30 * tests/test-striconveh.c: New file.
32 2007-01-15 Bruno Haible <bruno@clisp.org>
34 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
35 not from GNU libiconv or GNU libc.
37 2007-01-15 Bruno Haible <bruno@clisp.org>
39 * doc/gnulib-intro.texi (Copyright): Explain the different license
40 terms for module descriptions, autoconf macros, tests, documentation.
42 2007-01-14 Bruno Haible <bruno@clisp.org>
44 * modules/striconv-tests: New file.
45 * tests/test-striconv.c: New file.
47 2007-01-14 Bruno Haible <bruno@clisp.org>
49 * modules/iconv-tests: New file.
50 * tests/test-iconv.c: New file.
52 2007-01-14 Bruno Haible <bruno@clisp.org>
54 * gnulib-tool (func_get_license): For test modules, use the license of
57 2007-01-14 Bruno Haible <bruno@clisp.org>
59 * modules/iconv (Include): Clarify that <iconv.h> can only be included
60 if iconv is found to exist.
62 2007-01-14 Bruno Haible <bruno@clisp.org>
64 * modules/c-ctype-tests: New file.
65 * tests/test-c-ctype.c: New file.
67 2007-01-14 Bruno Haible <bruno@clisp.org>
69 * modules/binary-io-tests: New file.
70 * tests/test-binary-io.sh: New file.
71 * tests/test-binary-io.c: New file.
73 2007-01-14 Bruno Haible <bruno@clisp.org>
75 * modules/array-oset-tests: New file.
76 * tests/test-array_oset.c: New file.
78 2007-01-14 Bruno Haible <bruno@clisp.org>
80 * modules/array-list-tests: New file.
81 * tests/test-array_list.c: New file.
83 2007-01-14 Bruno Haible <bruno@clisp.org>
85 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
87 Reported by Simon Josefsson in
88 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
90 2007-01-14 Bruno Haible <bruno@clisp.org>
92 * modules/allocsa-tests: New file.
93 * tests/test-allocsa.c: New file.
95 2007-01-14 Bruno Haible <bruno@clisp.org>
97 * modules/fchdir (Depends-on): Add absolute-header.
98 * modules/unistd (Depends-on): Likewise.
100 2006-12-30 Bruno Haible <bruno@clisp.org>
102 * modules/fchdir: New file.
103 * modules/unistd (Files): Add lib/unistd_.h.
104 (Makefile.am): Generate unistd.h from unistd_.h.
105 * lib/fchdir.c: New file.
106 * lib/dirent_.h: New file.
107 * lib/unistd_.h: New file.
108 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109 * m4/fchdir.m4: New file.
110 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
111 (gl_HEADER_UNISTD): Invoke it.
112 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
114 * lib/backupfile.c (opendir, closedir): Undefine.
115 * lib/chown.c (open, close): Undefine.
116 * lib/clean-temp.c (open, close): Undefine.
117 * lib/copy-file.c (open, close): Undefine.
118 * lib/execute.c (open, close): Undefine.
119 * lib/fsusage.c (open, close): Undefine.
120 * lib/gc-gnulib.c (open, close): Undefine.
121 * lib/getcwd.c (opendir, closedir): Undefine.
122 * lib/glob.c (opendir, closedir): Undefine.
123 * lib/javacomp.c (open, close): Undefine.
124 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
125 * lib/openat-proc.c (open, close): Undefine.
126 * lib/pagealign_alloc.c (open, close): Undefine.
127 * lib/pipe.c (open, close): Undefine.
128 * lib/progreloc.c (open, close): Undefine.
129 * lib/savedir.c (opendir, closedir): Undefine.
130 * lib/utime.c (open, close): Undefine.
131 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
133 2007-01-10 Bruno Haible <bruno@clisp.org>
135 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
137 2007-01-12 Eric Blake <ebb9@byu.net>
139 Provide a robust <wchar.h>. Further simplifications are now
140 possible in other modules, but not included here.
141 * modules/wchar: New module.
142 * m4/wchar.m4: New file.
143 * lib/wchar_.h: Likewise.
144 * modules/mbchar (Depends-on): Depend on wchar, as the first use
146 * MODULES.html.sh (Extended multibyte and wide character utilities):
149 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
151 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
152 to a reasonable default for memory allocation.
153 (xreadlink): Don't allocate a huge buffer, to work around a buggy
154 file system that reports garbage st_size values for symlinks.
155 Problem reported by Liyang Hu.
157 2007-01-11 Simon Josefsson <simon@josefsson.org>
159 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
160 Emacs .#* auto-save files).
162 2007-01-11 Bruno Haible <bruno@clisp.org>
164 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
167 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
169 Use @...@ consistently in lib/wctype_.h.
170 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
171 on it being set to 1 or 0.
172 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
173 go back to AC_SUBSTing it.
174 * modules/wctype (Makefile.am): Undo previous change.
176 2007-01-10 Eric Blake <ebb9@byu.net>
178 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
179 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
180 * modules/wctype (Makefile.am): Likewise.
181 Reported by Chris McGuire.
183 2007-01-10 Jim Meyering <jim@meyering.net>
185 fts.c: a small readability/maintainability improvement
186 * lib/fts.c (fts_read): Make this code slightly more readable and
187 maintainable by hoisting the "sp->fts_cur = p" assignments to
188 immediately follow the statements that set P. Derived from
189 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
191 2007-01-10 Eric Blake <ebb9@byu.net>
193 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
194 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
195 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
196 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
197 Reported by Chris McGuire.
199 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
201 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
204 2007-01-09 Bruno Haible <bruno@clisp.org>
206 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
207 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
209 (func_module): Use them.
211 2007-01-09 Bruno Haible <bruno@clisp.org>
213 * modules/unistr/base: New file.
214 * lib/unistr.h: New file.
216 * modules/unistr/u8-to-u16: New file.
217 * lib/unistr/u8-to-u16.c: New file.
219 * modules/unistr/u8-to-u32: New file.
220 * lib/unistr/u8-to-u32.c: New file.
222 * modules/unistr/u16-to-u8: New file.
223 * lib/unistr/u16-to-u8.c: New file.
225 * modules/unistr/u16-to-u32: New file.
226 * lib/unistr/u16-to-u32.c: New file.
228 * modules/unistr/u32-to-u8: New file.
229 * lib/unistr/u32-to-u8.c: New file.
231 * modules/unistr/u32-to-u16: New file.
232 * lib/unistr/u32-to-u16.c: New file.
234 * modules/unistr/u8-check: New file.
235 * modules/unistr/u16-check: New file.
236 * modules/unistr/u32-check: New file.
237 * lib/unistr/u8-check.c: New file.
238 * lib/unistr/u16-check.c: New file.
239 * lib/unistr/u32-check.c: New file.
241 * modules/unistr/u8-chr: New file.
242 * modules/unistr/u16-chr: New file.
243 * modules/unistr/u32-chr: New file.
244 * lib/unistr/u8-chr.c: New file.
245 * lib/unistr/u16-chr.c: New file.
246 * lib/unistr/u32-chr.c: New file.
248 * modules/unistr/u8-cmp: New file.
249 * modules/unistr/u16-cmp: New file.
250 * modules/unistr/u32-cmp: New file.
251 * lib/unistr/u8-cmp.c: New file.
252 * lib/unistr/u16-cmp.c: New file.
253 * lib/unistr/u32-cmp.c: New file.
255 * modules/unistr/u8-cpy: New file.
256 * modules/unistr/u16-cpy: New file.
257 * modules/unistr/u32-cpy: New file.
258 * lib/unistr/u8-cpy.c: New file.
259 * lib/unistr/u16-cpy.c: New file.
260 * lib/unistr/u32-cpy.c: New file.
261 * lib/unistr/u-cpy.h: New file.
263 * modules/unistr/u8-cpy-alloc: New file.
264 * modules/unistr/u16-cpy-alloc: New file.
265 * modules/unistr/u32-cpy-alloc: New file.
266 * lib/unistr/u8-cpy-alloc.c: New file.
267 * lib/unistr/u16-cpy-alloc.c: New file.
268 * lib/unistr/u32-cpy-alloc.c: New file.
269 * lib/unistr/u-cpy-alloc.h: New file.
271 * modules/unistr/u8-endswith: New file.
272 * modules/unistr/u16-endswith: New file.
273 * modules/unistr/u32-endswith: New file.
274 * lib/unistr/u8-endswith.c: New file.
275 * lib/unistr/u16-endswith.c: New file.
276 * lib/unistr/u32-endswith.c: New file.
277 * lib/unistr/u-endswith.h: New file.
279 * modules/unistr/u8-mblen: New file.
280 * modules/unistr/u16-mblen: New file.
281 * modules/unistr/u32-mblen: New file.
282 * lib/unistr/u8-mblen.c: New file.
283 * lib/unistr/u16-mblen.c: New file.
284 * lib/unistr/u32-mblen.c: New file.
286 * modules/unistr/u8-mbtouc: New file.
287 * modules/unistr/u16-mbtouc: New file.
288 * modules/unistr/u32-mbtouc: New file.
289 * lib/unistr/u8-mbtouc.c: New file.
290 * lib/unistr/u16-mbtouc.c: New file.
291 * lib/unistr/u32-mbtouc.c: New file.
293 * modules/unistr/u8-mbtouc-safe: New file.
294 * modules/unistr/u16-mbtouc-safe: New file.
295 * modules/unistr/u32-mbtouc-safe: New file.
296 * lib/unistr/u8-mbtouc-safe.c: New file.
297 * lib/unistr/u16-mbtouc-safe.c: New file.
298 * lib/unistr/u32-mbtouc-safe.c: New file.
300 * modules/unistr/u8-move: New file.
301 * modules/unistr/u16-move: New file.
302 * modules/unistr/u32-move: New file.
303 * lib/unistr/u8-move.c: New file.
304 * lib/unistr/u16-move.c: New file.
305 * lib/unistr/u32-move.c: New file.
306 * lib/unistr/u-move.h: New file.
308 * modules/unistr/u8-next: New file.
309 * modules/unistr/u16-next: New file.
310 * modules/unistr/u32-next: New file.
311 * lib/unistr/u8-next.c: New file.
312 * lib/unistr/u16-next.c: New file.
313 * lib/unistr/u32-next.c: New file.
315 * modules/unistr/u8-prev: New file.
316 * modules/unistr/u16-prev: New file.
317 * modules/unistr/u32-prev: New file.
318 * lib/unistr/u8-prev.c: New file.
319 * lib/unistr/u16-prev.c: New file.
320 * lib/unistr/u32-prev.c: New file.
322 * modules/unistr/u8-set: New file.
323 * modules/unistr/u16-set: New file.
324 * modules/unistr/u32-set: New file.
325 * lib/unistr/u8-set.c: New file.
326 * lib/unistr/u16-set.c: New file.
327 * lib/unistr/u32-set.c: New file.
328 * lib/unistr/u-set.h: New file.
330 * modules/unistr/u8-startswith: New file.
331 * modules/unistr/u16-startswith: New file.
332 * modules/unistr/u32-startswith: New file.
333 * lib/unistr/u8-startswith.c: New file.
334 * lib/unistr/u16-startswith.c: New file.
335 * lib/unistr/u32-startswith.c: New file.
336 * lib/unistr/u-startswith.h: New file.
338 * modules/unistr/u8-stpcpy: New file.
339 * modules/unistr/u16-stpcpy: New file.
340 * modules/unistr/u32-stpcpy: New file.
341 * lib/unistr/u8-stpcpy.c: New file.
342 * lib/unistr/u16-stpcpy.c: New file.
343 * lib/unistr/u32-stpcpy.c: New file.
344 * lib/unistr/u-stpcpy.h: New file.
346 * modules/unistr/u8-stpncpy: New file.
347 * modules/unistr/u16-stpncpy: New file.
348 * modules/unistr/u32-stpncpy: New file.
349 * lib/unistr/u8-stpncpy.c: New file.
350 * lib/unistr/u16-stpncpy.c: New file.
351 * lib/unistr/u32-stpncpy.c: New file.
352 * lib/unistr/u-stpncpy.h: New file.
354 * modules/unistr/u8-strcat: New file.
355 * modules/unistr/u16-strcat: New file.
356 * modules/unistr/u32-strcat: New file.
357 * lib/unistr/u8-strcat.c: New file.
358 * lib/unistr/u16-strcat.c: New file.
359 * lib/unistr/u32-strcat.c: New file.
360 * lib/unistr/u-strcat.h: New file.
362 * modules/unistr/u8-strchr: New file.
363 * modules/unistr/u16-strchr: New file.
364 * modules/unistr/u32-strchr: New file.
365 * lib/unistr/u8-strchr.c: New file.
366 * lib/unistr/u16-strchr.c: New file.
367 * lib/unistr/u32-strchr.c: New file.
369 * modules/unistr/u8-strcmp: New file.
370 * modules/unistr/u16-strcmp: New file.
371 * modules/unistr/u32-strcmp: New file.
372 * lib/unistr/u8-strcmp.c: New file.
373 * lib/unistr/u16-strcmp.c: New file.
374 * lib/unistr/u32-strcmp.c: New file.
376 * modules/unistr/u8-strcpy: New file.
377 * modules/unistr/u16-strcpy: New file.
378 * modules/unistr/u32-strcpy: New file.
379 * lib/unistr/u8-strcpy.c: New file.
380 * lib/unistr/u16-strcpy.c: New file.
381 * lib/unistr/u32-strcpy.c: New file.
382 * lib/unistr/u-strcpy.h: New file.
384 * modules/unistr/u8-strcspn: New file.
385 * modules/unistr/u16-strcspn: New file.
386 * modules/unistr/u32-strcspn: New file.
387 * lib/unistr/u8-strcspn.c: New file.
388 * lib/unistr/u16-strcspn.c: New file.
389 * lib/unistr/u32-strcspn.c: New file.
390 * lib/unistr/u-strcspn.h: New file.
392 * modules/unistr/u8-strdup: New file.
393 * modules/unistr/u16-strdup: New file.
394 * modules/unistr/u32-strdup: New file.
395 * lib/unistr/u8-strdup.c: New file.
396 * lib/unistr/u16-strdup.c: New file.
397 * lib/unistr/u32-strdup.c: New file.
398 * lib/unistr/u-strdup.h: New file.
400 * modules/unistr/u8-strlen: New file.
401 * modules/unistr/u16-strlen: New file.
402 * modules/unistr/u32-strlen: New file.
403 * lib/unistr/u8-strlen.c: New file.
404 * lib/unistr/u16-strlen.c: New file.
405 * lib/unistr/u32-strlen.c: New file.
406 * lib/unistr/u-strlen.h: New file.
408 * modules/unistr/u8-strmblen: New file.
409 * modules/unistr/u16-strmblen: New file.
410 * modules/unistr/u32-strmblen: New file.
411 * lib/unistr/u8-strmblen.c: New file.
412 * lib/unistr/u16-strmblen.c: New file.
413 * lib/unistr/u32-strmblen.c: New file.
415 * modules/unistr/u8-strmbtouc: New file.
416 * modules/unistr/u16-strmbtouc: New file.
417 * modules/unistr/u32-strmbtouc: New file.
418 * lib/unistr/u8-strmbtouc.c: New file.
419 * lib/unistr/u16-strmbtouc.c: New file.
420 * lib/unistr/u32-strmbtouc.c: New file.
422 * modules/unistr/u8-strncat: New file.
423 * modules/unistr/u16-strncat: New file.
424 * modules/unistr/u32-strncat: New file.
425 * lib/unistr/u8-strncat.c: New file.
426 * lib/unistr/u16-strncat.c: New file.
427 * lib/unistr/u32-strncat.c: New file.
428 * lib/unistr/u-strncat.h: New file.
430 * modules/unistr/u8-strncmp: New file.
431 * modules/unistr/u16-strncmp: New file.
432 * modules/unistr/u32-strncmp: New file.
433 * lib/unistr/u8-strncmp.c: New file.
434 * lib/unistr/u16-strncmp.c: New file.
435 * lib/unistr/u32-strncmp.c: New file.
437 * modules/unistr/u8-strncpy: New file.
438 * modules/unistr/u16-strncpy: New file.
439 * modules/unistr/u32-strncpy: New file.
440 * lib/unistr/u8-strncpy.c: New file.
441 * lib/unistr/u16-strncpy.c: New file.
442 * lib/unistr/u32-strncpy.c: New file.
443 * lib/unistr/u-strncpy.h: New file.
445 * modules/unistr/u8-strnlen: New file.
446 * modules/unistr/u16-strnlen: New file.
447 * modules/unistr/u32-strnlen: New file.
448 * lib/unistr/u8-strnlen.c: New file.
449 * lib/unistr/u16-strnlen.c: New file.
450 * lib/unistr/u32-strnlen.c: New file.
451 * lib/unistr/u-strnlen.h: New file.
453 * modules/unistr/u8-strpbrk: New file.
454 * modules/unistr/u16-strpbrk: New file.
455 * modules/unistr/u32-strpbrk: New file.
456 * lib/unistr/u8-strpbrk.c: New file.
457 * lib/unistr/u16-strpbrk.c: New file.
458 * lib/unistr/u32-strpbrk.c: New file.
459 * lib/unistr/u-strpbrk.h: New file.
461 * modules/unistr/u8-strrchr: New file.
462 * modules/unistr/u16-strrchr: New file.
463 * modules/unistr/u32-strrchr: New file.
464 * lib/unistr/u8-strrchr.c: New file.
465 * lib/unistr/u16-strrchr.c: New file.
466 * lib/unistr/u32-strrchr.c: New file.
468 * modules/unistr/u8-strspn: New file.
469 * modules/unistr/u16-strspn: New file.
470 * modules/unistr/u32-strspn: New file.
471 * lib/unistr/u8-strspn.c: New file.
472 * lib/unistr/u16-strspn.c: New file.
473 * lib/unistr/u32-strspn.c: New file.
474 * lib/unistr/u-strspn.h: New file.
476 * modules/unistr/u8-strstr: New file.
477 * modules/unistr/u16-strstr: New file.
478 * modules/unistr/u32-strstr: New file.
479 * lib/unistr/u8-strstr.c: New file.
480 * lib/unistr/u16-strstr.c: New file.
481 * lib/unistr/u32-strstr.c: New file.
482 * lib/unistr/u-strstr.h: New file.
484 * modules/unistr/u8-strtok: New file.
485 * modules/unistr/u16-strtok: New file.
486 * modules/unistr/u32-strtok: New file.
487 * lib/unistr/u8-strtok.c: New file.
488 * lib/unistr/u16-strtok.c: New file.
489 * lib/unistr/u32-strtok.c: New file.
490 * lib/unistr/u-strtok.h: New file.
492 * modules/unistr/u8-uctomb: New file.
493 * modules/unistr/u16-uctomb: New file.
494 * modules/unistr/u32-uctomb: New file.
495 * lib/unistr/u8-uctomb.c: New file.
496 * lib/unistr/u16-uctomb.c: New file.
497 * lib/unistr/u32-uctomb.c: New file.
499 * MODULES.html.sh (Unicode string functions): Add the new modules.
501 2007-01-08 Bruno Haible <bruno@clisp.org>
503 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
504 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
507 2007-01-08 Karl Berry <karl@gnu.org>
509 * doc/error.texi: mention that main() fns must set program_name
510 when progname is used.
512 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
514 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
515 WCTYPE_H is empty, for the benefit of builds from non-distclean
516 directories. Problem reported by Eric Blake in
517 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
519 2007-01-08 Bruno Haible <bruno@clisp.org>
521 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
522 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
523 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
524 PROVIDE_CANONICALIZE_FILENAME_MODE.
525 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
527 2007-01-08 Bruno Haible <bruno@clisp.org>
529 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
530 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
531 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
532 * lib/fts.c: Likewise.
533 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
535 2006-12-25 Bruno Haible <bruno@clisp.org>
537 * modules/utf8-ucs4-safe: New file.
538 * lib/utf8-ucs4-safe.h: New file.
539 * lib/unistr/utf8-ucs4-safe.c: New file.
541 * modules/utf16-ucs4-safe: New file.
542 * lib/utf16-ucs4-safe.h: New file.
543 * lib/unistr/utf16-ucs4-safe.c: New file.
545 * MODULES.html.sh (Unicode string functions): Add the new modules.
547 2007-01-08 Bruno Haible <bruno@clisp.org>
549 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
550 (Depends-on): Add unitypes.
551 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
552 (u8_mbtouc_aux): Move out to separate file.
553 (u8_mbtouc): Use ucs4_t, uint8_t types.
554 * lib/unistr/utf8-ucs4.c: New file.
556 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
557 (Depends-on): Add unitypes.
558 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
559 (u16_mbtouc_aux): Move out to separate file.
560 (u16_mbtouc): Use ucs4_t, uint16_t types.
561 * lib/unistr/utf16-ucs4.c: New file.
563 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
564 (Depends-on): Add unitypes.
565 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
566 (u8_uctomb_aux): Move out to separate file.
567 (u8_uctomb): Use ucs4_t, uint8_t types.
568 * lib/unistr/ucs4-utf8.c: New file.
570 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
571 (Depends-on): Add unitypes.
572 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
573 (u16_uctomb_aux): Move out to separate file.
574 (u16_uctomb): Use ucs4_t, uint16_t types.
575 * lib/unistr/ucs4-utf16.c: New file.
577 2006-12-25 Bruno Haible <bruno@clisp.org>
579 * modules/unitypes: New file.
580 * lib/unitypes.h: New file.
581 * MODULES.html.sh (func_all_modules): New section "Unicode string
582 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
583 this section. Add unitypes.
585 2007-01-08 Bruno Haible <bruno@clisp.org>
587 Avoid variable names that conflict with those from libtool.
588 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
589 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
590 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
591 library_names_spec to acl_library_names_spec, hardcode_* to
593 Reported by Ralf Wildenhues.
595 2007-01-08 Bruno Haible <bruno@clisp.org>
597 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
599 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
601 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
602 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
604 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
606 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
607 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
608 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
609 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
611 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
613 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
614 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
616 * lib/gc-libgcrypt.c: Likewise.
617 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
618 * modules/gc-arctwo (configure.ac): Likewise.
619 * modules/gc-des (configure.ac): Likewise.
620 * modules/gc-hmac-md5 (configure.ac): Likewise.
621 * modules/gc-hmac-sha1 (configure.ac): Likewise.
622 * modules/gc-md2 (configure.ac): Likewise.
623 * modules/gc-md4 (configure.ac): Likewise.
624 * modules/gc-md5 (configure.ac): Likewise.
625 * modules/gc-random (configure.ac): Likewise.
626 * modules/gc-rijndael (configure.ac): Likewise.
627 * modules/gc-sha1 (configure.ac): Likewise.
629 2007-01-08 Bruno Haible <bruno@clisp.org>
631 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
633 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
635 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
637 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
638 * modules/fcntl-safer (configure.ac): Likewise.
639 * modules/fopen-safer (configure.ac): Likewise.
640 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
641 GNULIB_FWRITEERROR macro definition.
643 2007-01-08 Bruno Haible <bruno@clisp.org>
645 * m4/gnulib-common.m4: New file.
646 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
647 (func_get_filelist): Add m4/gnulib-common.m4.
649 2007-01-08 Bruno Haible <bruno@clisp.org>
651 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
654 2007-01-08 Jim Meyering <jim@meyering.net>
656 Use a more robust test for a "can't happen" condition.
657 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
658 narrowed the st_size value. Presuming the "can't happen" condition
659 is true, that narrowing could conceivably convert an invalid st_size
660 value into a valid one. Instead, use a change based on Matthew
661 Woehlke's original patch.
663 Slight readability improvement: use an assert-like macro
664 in place of literal "abort ()" uses.
665 * lib/fts.c (fts_assert): Define.
666 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
667 Use this macro instead of a bare 'abort'.
669 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
671 Don't worry about using IRIX 5.3's wctype.h broken definitions;
672 simply work around them.
673 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
674 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
675 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
676 Don't bother to define as macros, since the standard doesn't require it.
677 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
678 longer worry about IRIX 5.3.
679 (HAVE_WCTYPE_CTMP_BUG): Remove.
681 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
683 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
684 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
685 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
686 Problems reported by Georg Schwarz for IRIX 5.3.
688 * gnulib-tool (autoconf_minversion): Take the maximum version number
689 found, not the minimum. Problem reported by James Youngman.
691 2007-01-03 Karl Berry <karl@gnu.org>
693 * doc/error.texi: new file, explaining interaction with progname.
694 * doc/gnulib.texi: include it. Update copyright.
696 2007-01-03 Simon Josefsson <simon@josefsson.org>
698 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
699 AC_CANONICAL_HOST, to improve autobuild outputs.
701 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
702 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
704 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
705 sockets, server sockets, and other file descriptors. Count errors
706 to compute the return value. Reorder the code a bit to be easier
707 to follow. Don't set event bits that were not requested (except
708 POLLERR and POLLHUP).
710 2007-01-01 Bruno Haible <bruno@clisp.org>
712 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
714 2007-01-03 Jim Meyering <jim@meyering.net>
716 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
718 2007-01-02 Bruno Haible <bruno@clisp.org>
720 * modules/settime (Include): Require timespec.h.
721 * modules/nanosleep (Include): Likewise.
723 2007-01-01 Bruno Haible <bruno@clisp.org>
725 * gnulib-tool (func_emit_copyright_notice): Bump year.
726 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
728 2007-01-01 Bruno Haible <bruno@clisp.org>
730 Improve support for OpenBSD.
731 * build-aux/config.rpath (libname_spec): Export.
732 (library_names_spec): New variable. Export.
733 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
734 library_names_spec from the config.rpath output. Locate shared library
735 through the name pattern in library_names_spec.
737 2007-01-01 Eric Blake <ebb9@byu.net>
739 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
741 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
743 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
744 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
745 assume the C locale, and avoid an "eval" that could cause trouble.
746 Problem with SORT reported by Bob Proulx.
748 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
749 Define. Trivial patch from Henning Nielsen Lund, originally
750 sent to bug-grep@gnu.org today.
752 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
754 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
755 struct stat. Problem reported by Henning Nielsen Lund.
756 * lib/acl.c: Include acl.h first, to check interface. Don't
757 bother to include sys/types.h and sys/stat.h again.
759 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
761 Import the following change from libc; problem reported by
764 2005-10-13 Ulrich Drepper <drepper@redhat.com>
767 * lib/argp.h: Remove __NTH for __argp_usage inline function.
769 2006-12-28 Jim Meyering <jim@meyering.net>
771 * build-aux/announce-gen: Do not assume that the package
772 builds any of tar.gz, tar.bz2, and .xdelta files.
773 Suggestion from Simon Josefsson.
775 2006-12-28 Simon Josefsson <simon@josefsson.org>
777 * modules/announce-gen: New file.
779 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
781 * lib/mbchar.h: Just include <wctype.h>; the wctype module
782 handles its gotchas now.
783 * lib/mbswidth.c: Likewise.
784 * lib/wcwidth.h: Likewise.
785 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
786 and iswcntrl; the wctype module does this stuff now.
787 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
788 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
789 * modules/mbchar (Depends-on): Add wctype.
790 * modules/mbswidth (Depends-on): Likewise.
791 * modules/wcwidth (Depends-on): Likewise.
793 2006-12-27 Eric Blake <ebb9@byu.net>
795 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
796 module uses more than what <wctype.h> is required to provide.
798 2006-12-26 Eric Blake <ebb9@byu.net>
800 * gnulib-tool (sed_extract_prog): Avoid space-tab.
802 2006-12-26 Eric Blake <ebb9@byu.net>
804 * modules/absolute-header: New module.
805 * modules/fcntl (Depends-on): Depend on it.
806 * modules/inttypes (Depends-on): Likewise.
807 * modules/stdint (Depends-on): Likewise.
808 * modules/sys_stat (Depends-on): Likewise.
809 * modules/wctype (Depends-on): Likewise.
810 * MODULES.html.sh (Support for building libraries and
811 executables): Document it.
813 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
815 * gnulib-tool (SED): Remove, undoing previous change.
816 The problem was that it broke coreutils on Solaris, because
817 "sed --posix" leaked into a makefile.
818 (sed): New alias, if 'alias' and GNU sed.
820 2006-12-24 Jim Meyering <jim@meyering.net>
822 Work around an fchownat bug in glibc-2.4:
823 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
824 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
825 in spite of the -P option.
826 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
828 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
829 * modules/openat (Files): Add lib/fchownat.c.
830 * lib/openat.c (fchownat): Don't define here. Move to...
831 * lib/fchownat.c: ...this new file.
833 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
835 Fix bug reported by Bruno Haible in
836 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
837 where quotearg.c didn't compile on Mac OS X 10.2 because it
838 lacks <wchar.h> and wint_t.
839 * lib/wctype_.h (__wctype_wint_t): New type.
840 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
841 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
842 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
843 Arg is now of type __wctype_wint_t, not wint_t.
844 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
845 substitute HAVE_WINT_T.
846 * modules/wctype (Files): Add m4/wint_t.m4.
847 (wctype.h): Substitute HAVE_WINT_T.
849 2006-12-23 Bruno Haible <bruno@clisp.org>
851 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
853 2006-12-23 Bruno Haible <bruno@clisp.org>
855 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
857 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
860 2006-12-22 Bruno Haible <bruno@clisp.org>
862 * lib/copy-file.c: Include acl.h.
863 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
864 Close the file descriptors only after being done with copy_acl.
865 * modules/copy-file (Depends-on): Add acl.
867 2006-12-22 Bruno Haible <bruno@clisp.org>
869 * gnulib-tool (SED): New variable.
870 Use $SED instead of sed everywhere.
872 2006-12-22 Bruno Haible <bruno@clisp.org>
874 * modules/no-c++: New file.
875 * m4/no-c++.m4: New file.
876 * MODULES.html.sh (Support for building libraries and executables):
879 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
881 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
882 Include <limits.h>, and use its INT_MAX to rewrite the
883 j loop so that it does not overflow 'int'. Problem reported by
885 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
886 Play it safe by shifting left by 1 rather than multiplying by 2,
887 as GCC is less likely to optimize this away when the value
888 is signed (when it assumes overflow leads to undefined behavior).
889 Also, don't assume time_t uses two's complement.
891 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
893 * MODULES.html.sh: New module wctype.
894 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
895 * lib/fnmatch.c: Don't bother to include <wchar.h> before
896 <wctype.h>, since the new wctype module should fix this.
897 * lib/quotearg.c: Include <wctype.h> unconditionally, since
898 the wctype module should arrange for it.
899 * lib/regex_internal.h: Likewise.
900 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
901 since the wctype module should handle this now.
902 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
903 * modules/fnmatch (Depends-on): Add wctype.
904 * modules/quotearg (Depends-on): Likewise.
905 * modules/regex (Depends-on): Likewise.
907 2006-12-19 Bruno Haible <bruno@clisp.org>
909 * lib/strdup.h [C++]: Wrap definitions in extern "C".
910 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
912 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
914 * modules/savewd (Depends-on): Fix dependency on fcntl.
916 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
918 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
919 conforms to C99, rather than relying on the user's environment
922 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
923 and Eric Blake <ebb9@byu.net>
925 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
926 This is more consistent with the other defines here.
927 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
928 Port to z/OS. Problem reported by Paul Gilmartin.
929 Change local vars to use gl_ prefix rather than ac_.
930 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
932 * modules/double-slash-root: New module.
933 * modules/dirname (Files): Remove m4/double-slash-root.m4.
934 (Depends-on): Add double-slash-root.
935 * MODULES.html.sh (File system functions): Mention new module.
937 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
939 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
940 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
941 This is for the benefit of gzip, which doesn't do i18n.
943 2006-12-12 Jim Meyering <jim@meyering.net>
945 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
946 Reported by Andreas Schwab <schwab@suse.de>.
948 2006-12-12 Bruno Haible <bruno@clisp.org>
951 2006-09-05 Bruno Haible <bruno@clisp.org>
952 * lib/iconvme.c (iconv_string): No need to save and restore errno when
953 iconv_alloc succeeded.
954 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
955 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
956 test for " && dest " at the end - dest is always != NULL there. Call
957 iconv with 4xNULL arguments initially, to reset the state. Call iconv
958 with 2xNULL arguments, also to flush the state storage. Handle the
959 IRIX iconv behaviour. Realloc the final result, to throw away unused
962 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
964 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
965 and fchmodat unconditionally, since glibc 2.4 has them.
966 Problem reported by Arkadiusz Miskiewicz.
968 2006-12-10 Bruno Haible <bruno@clisp.org>
970 * gnulib-tool (func_import): Show the include files only for those
971 modules that are copied and specified.
972 Reported by Karl Berry.
974 2006-12-08 Jim Meyering <jim@meyering.net>
976 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
977 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
979 * build-aux/announce-gen: Add two new options, both optional:
980 --bootstrap-tools=TOOL_LIST
981 a comma-separated list of tools, e.g.,
982 autoconf,automake,bison,gnulib
983 --gnulib-snapshot-date=DATE
984 if gnulib is in the bootstrap tool list,
985 then report this as the snapshot date.
986 If not specified, use the current date/time.
987 If you specify a date here, be sure it's UTC.
989 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
991 * tests/test-argp-2.sh: Fix test to match actual output.
992 (func_compare): Fix sed script to be portable.
994 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
996 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
997 workaround for this case. It is not autoconfigured now; offhand
998 it's hard to see how to autoconfigure it.
1000 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
1002 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1003 a directory that is about to be chowned. Such a directory's
1004 initial file permissions should permit the owner only and this
1005 should not be changed until after the chown, since the group and
1006 other bits would be incorrect if they granted permission before
1009 Fix porting problem for iswctype reported by Georg Schwarz in:
1010 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1011 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1012 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1013 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1014 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1016 2006-12-03 Jim Meyering <jim@meyering.net>
1018 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1019 p->fts_statp may not yet be defined.
1020 (fts_read): Instead, set it in the caller, once p->fts_statp is
1021 sure to be defined, and corresponds to a top-level directory.
1022 This bug made du -x fail. Here's the coreutils test case:
1023 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1024 Reported by Mike Frysinger.
1026 2006-12-01 Jim Meyering <jim@meyering.net>
1028 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1029 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1030 Reported by Simon Josefsson.
1032 2006-11-30 Jim Meyering <jim@meyering.net>
1034 * m4/warning.m4: Use the all-permissive copyright notice
1035 recommended by RMS (rather than LGPL).
1036 * m4/vararrays.m4: Likewise.
1037 * m4/flexmember.m4: Likewise.
1039 2006-11-29 Bruno Haible <bruno@clisp.org>
1041 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1042 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1044 Reported by Simon Josefsson <simon@josefsson.org>.
1046 2006-11-28 James Youngman <jay@gnu.org>
1048 * README: Advise users that they might find the bug-gnulib@gnu.org
1049 and autotools-announce@gnu.org mailing lists useful.
1051 2006-11-28 Bruno Haible <bruno@clisp.org>
1053 * m4/ptrdiff_max.m4: Remove file.
1055 2006-11-21 Bruno Haible <bruno@clisp.org>
1057 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1059 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1060 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1062 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1063 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1065 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1067 2006-11-28 Jim Meyering <jim@meyering.net>
1069 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1070 warning from "gcc -Wshadow" about shadowing the builtin.
1072 2006-11-27 Bruno Haible <bruno@clisp.org>
1074 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1076 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1078 2006-11-27 Bruno Haible <bruno@clisp.org>
1079 Paul Eggert <eggert@cs.ucla.edu>
1081 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
1083 2006-11-26 Bruno Haible <bruno@clisp.org>
1085 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1088 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
1089 Bruno Haible <bruno@clisp.org>
1091 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
1092 if compiling with "gcc -ansi".
1094 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
1096 Fix some incompatibilities with gcc -ansi -pedantic.
1097 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
1098 if compiling pedantically with GCC, unless it's C99 or later.
1099 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
1100 it mishandles gcc -ansi -pedantic as well.
1101 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
1103 * lib/regexec.c (check_node_accept_bytes): Don't use auto
1104 initializers for struct if -pedantic, unless it's C99 or later.
1106 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
1108 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
1109 Don't close an fd more than once. Identical atimes indicate
1110 success, not failure.
1112 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
1114 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
1116 2006-11-23 Jim Meyering <jim@meyering.net>
1118 * build-aux/announce-gen: New file. From coreutils.
1120 2006-11-22 Jim Meyering <jim@meyering.net>
1122 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
1123 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
1124 (fts_read): Use a temporary to narrow the overused st_size member
1125 before using it in a switch statement. Reported by Matthew Woehlke.
1127 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
1128 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
1130 2006-11-20 Bruno Haible <bruno@clisp.org>
1132 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
1133 changequote instead of pairs of brackets.
1134 Reported by Andreas Schwab <schwab@suse.de>.
1136 2006-11-21 Jim Meyering <jim@meyering.net>
1138 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
1139 so as to remain compatible with older compilers.
1140 Patch from Michael Deutschmann.
1142 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
1144 * MODULES.html.sh (File system functions): Add openat.
1146 * lib/openat.h (rpl_fstatat): New macro, if
1147 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
1148 (fstatat): Define to rpl_fstatat under the same conditions,
1149 unless COMPILING_FSTATAT.
1150 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
1151 seems to have the bug.
1152 * lib/fstatat.c: New file.
1153 * modules/openat (Files): Add it.
1155 2006-11-20 Bruno Haible <bruno@clisp.org>
1157 * Makefile: New file.
1159 2006-11-20 Jim Meyering <jim@meyering.net>
1161 The beginnings of syntax-related checks for gnulib.
1162 * lib/Makefile: New file.
1163 * lib/t-idcache: New script. Ensure that the two halves of
1164 idcache.c stay in sync.
1166 * lib/idcache.c: Adjust comments in user- and group- portions to
1167 be more accurate, and to be consistent with one another.
1169 2006-11-20 Jim Meyering <jim@meyering.net>
1171 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
1172 continue using the flexible array member (thus, this module performs
1173 half as many malloc calls), with the addition that...
1174 (getgroup, getuser): Consistently record a non-match via an empty
1175 "name" string, and map an empty string match to a NULL return value.
1176 * modules/idcache (Depends-on): Re-add flexmember.
1178 * lib/idcache.c (getuser): Remove all uses of the register keyword.
1179 (getuidbyname, getgroup, getgidbyname): Likewise.
1181 Use cleaner syntax: NULL rather than 0.
1182 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
1184 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
1186 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
1187 It mishandled the case where the group was missing.
1188 Problem reported by Greg Schafer.
1189 * modules/idcache: Likewise.
1191 2006-11-18 Jim Meyering <jim@meyering.net>
1193 * check-module (%exempt_header): Add exception for some
1194 conditionally-included headers.
1196 * modules/i-ring (Depends-on): Add verify.
1197 (License): Change to LGPL.
1199 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
1201 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
1202 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
1203 and inttostr.h. Use snprintf rather than uinttostr, so that
1204 LGPLed code doesn't depend on GPLed.
1206 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
1208 * modules/inline (License): Change from GPL to LGPL.
1210 2006-11-17 Jim Meyering <jim@meyering.net>
1212 * modules/d-type (License): Switch to LGPL.
1214 2006-11-15 Bruno Haible <bruno@clisp.org>
1216 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
1218 2006-11-15 Eric Blake <ebb9@byu.net>
1220 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
1221 the module dependency.
1223 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1224 Bruno Haible <bruno@clisp.org>
1226 * gnulib-tool (func_create_testdir): Add license consistency check.
1228 2006-11-15 Eric Blake <ebb9@byu.net>
1230 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
1231 random "(cached)" in configure output.
1233 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1235 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
1236 test for conforming inttypes.h is both announced and cached.
1238 * MODULES.html.sh (seen_modules, seen_files): New variables.
1239 (func_module): Rewrite to use a few less gnulib-tool and sed
1240 invocations. Avoid a couple of quadratic algorithms for ...
1241 (missed_modules, missed_files): ... these, with ...
1242 (func_append, func_tmpdir): ... these new functions, from
1243 gnulib-tool. Analogously, install traps for cleanup.
1245 * tests/test-gc.c (main): Remove unused variables.
1246 * tests/test-read-file.c: Include stdlib.h, for 'free'.
1248 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
1250 * modules/inttostr (License): Change to LGPL.
1252 2006-11-14 Eric Blake <ebb9@byu.net>
1254 * modules/tempname (License): Change to LGPL.
1256 2006-11-14 Eric Blake <ebb9@byu.net>
1258 * doc/functions.texi (Function Portability): *printf functions on
1259 Cygwin now understand all POSIX size specifiers.
1261 2006-11-14 Bruno Haible <bruno@clisp.org>
1263 * modules/c-ctype (License): Change to LGPL.
1265 2006-11-12 Bruno Haible <bruno@clisp.org>
1267 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1268 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
1269 for GNOME libraries, for which the include files are installed in
1270 subdirectories of $prefix/include.
1272 2006-11-12 Bruno Haible <bruno@clisp.org>
1274 * m4/lib-link.m4: Require at least autoconf-2.54.
1275 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
1276 name to underscores for the --with option.
1278 2006-11-13 Bruno Haible <bruno@clisp.org>
1280 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
1281 the tests directory.
1282 Reported by Ralf Wildenhues.
1284 2006-11-13 Bruno Haible <bruno@clisp.org>
1286 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
1287 (func_emit_initmacro_end): Undo the override here.
1288 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
1289 Works around the famous automake error in coreutils.
1291 2006-11-13 Eric Blake <ebb9@byu.net>
1293 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
1294 element, not its node.
1296 2006-11-12 Bruno Haible <bruno@clisp.org>
1298 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
1299 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
1301 2006-11-12 Bruno Haible <bruno@clisp.org>
1303 * gnulib-tool: New option --local-symlink.
1304 (func_usage): Document it.
1305 (lsymbolic): New variable.
1306 (func_import, func_create_testdir): If --symlink was not specified,
1307 test whether --local-symlink was specified and the file comes from
1308 the local_gnulib_dir.
1310 2006-11-12 Bruno Haible <bruno@clisp.org>
1312 * gnulib-tool (func_ln): New function.
1313 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
1315 2006-11-12 Bruno Haible <bruno@clisp.org>
1317 Finish support for source files in subdirectories.
1318 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
1319 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
1321 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
1323 2006-11-12 Bruno Haible <bruno@clisp.org>
1325 * gnulib-tool (func_get_automake_snippet): Synthesize also an
1326 EXTRA_lib_SOURCES augmentation.
1327 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
1329 2006-11-12 Jim Meyering <jim@meyering.net>
1331 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
1332 file descriptors. This also averts a failure on systems with
1333 native openat support when a traversed directory lacks "x" access.
1334 * lib/fts_.h: Include "i-ring.h"
1335 (struct FTS) [fts_fd_ring]: New member.
1336 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
1337 (FCHDIR): Add parentheses.
1338 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
1339 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
1340 When descending, rather than simply closing the previous
1341 fts_cwd_fd value, push that file descriptor onto the ring.
1342 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
1343 (fts_open): Initialize the new fd_ring member.
1344 (fts_close): Clear the ring.
1345 (fts_safe_changedir): When possible, use our new fd_ring to skip
1346 the diropen and fstat and dev/ino comparison that would normally
1347 accompany a virtual `chdir ("..")'.
1349 * modules/fts (Depends-on): Add i-ring.
1350 * modules/i-ring: New module.
1351 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
1352 * m4/i-ring.m4: New file.
1354 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1356 * gnulib-tool (func_create_testdir): Fix replacement of
1357 `build-aux' in configure.ac. Run autotools in gltests
1359 (func_create_testdir, func_create_megatestdir, test): There is
1360 no need for '--force' in most autotool invocations in a new
1361 tree. Actually fail the whole test if any of the tools, or the
1362 configure or make stages fail.
1365 * build-aux/gnupload: Revert last change. Add pointer to upload
1366 instructions of the GNU Maintenance Instructions.
1367 Suggestion by Karl Berry.
1369 2006-11-10 Jim Meyering <jim@meyering.net>
1371 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
1373 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
1375 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
1376 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
1377 (bind_textdomain_codeset) [! ENABLE_NLS]:
1378 Evaluate all the arguments. That way, callers get compatible behavior
1379 if the arguments have side effects. Also, it avoids some GCC
1380 diagnostics in some cases; Joel E. Denny reported problems when Bison
1381 was configured with --enable-gcc-warnigs.
1383 2006-11-10 Jim Meyering <jim@meyering.net>
1385 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
1386 relevant options in CFLAGS (like -O, -fno-inline) are taken into
1389 2006-11-10 Jim Meyering <jim@meyering.net>
1391 * modules/inline: New file/module.
1392 * modules/xalloc (Files): Remove m4/inline.m4.
1393 (Depends-on): Add inline, instead.
1394 * modules/oset: Likewise.
1395 * modules/list: Likewise.
1397 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
1399 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
1400 Problem reported by Matthew Woehlke.
1402 2006-11-09 Bruno Haible <bruno@clisp.org>
1404 * lib/tempname.c (gen_tempname): Remove variant that invokes
1406 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
1409 2006-11-08 Bruno Haible <bruno@clisp.org>
1411 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
1412 to 'yes' instead of 'cross-compiling'.
1414 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
1416 * lib/quotearg.h (quotearg_free): New decl.
1417 * lib/quotearg.c (quotearg_free): New function.
1418 (slot0, nslots, slotvec0, slotvec):
1419 Now file-scope so that quotearg_free can get at them.
1421 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1424 * build-aux/gnupload: Add missing 'gnu' to example URL.
1425 Report by Karl Berry.
1427 2006-11-08 Bruno Haible <bruno@clisp.org>
1429 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
1430 Suggested by Paul Eggert.
1432 2006-11-08 Jim Meyering <jim@meyering.net>
1434 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
1435 It's already included if !_LIBC.
1436 (fts_safe_changedir): Add a comment.
1438 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
1440 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
1441 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
1444 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
1445 definitions up, to avoid colliding with change below.
1446 (static_inline) [HAVE_INLINE]: New macro.
1447 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1448 Provide extern decls when !HAVE_INLINE. Do not define unless
1449 static_inline is defined, either by us or by xmalloc.c. Use
1450 static_inline rather than static inline.
1451 (XCALLOC): Optimize sizeof(T) = 1 case.
1452 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
1454 2006-11-07 Bruno Haible <bruno@clisp.org>
1456 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
1457 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
1459 * modules/xalloc (Files): Add m4/inline.m4.
1461 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1464 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
1465 (Miscellanous Notes): ...from this.
1467 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
1469 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1470 Mention that offsetof should be used instead of sizeof.
1473 2006-11-07 Bruno Haible <bruno@clisp.org>
1475 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
1477 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
1479 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
1480 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
1481 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
1482 (gl_tree_add_before, gl_tree_add_after):
1483 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
1484 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
1485 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
1486 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
1487 (gl_linked_add_after, gl_linked_add_at): Likewise.
1488 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
1489 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
1490 (gl_tree_add_before, gl_tree_add_after): Likewise.
1491 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
1492 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
1493 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
1495 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1497 * lib/gl_oset.h: Use C comment style, not C++ comment style.
1499 2006-11-06 Bruno Haible <bruno@clisp.org>
1501 * m4/inline.m4: New file.
1502 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
1503 * modules/list (Files): Add m4/inline.m4.
1504 * modules/oset (Files): Likewise.
1506 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
1508 * lib/idcache.c: Include <stddef.h>, for offsetof.
1509 (struct userid.name): Change from char * to a flexible array member.
1511 * modules/idcache (Depends-on): Add flexmember.
1513 * MODULES.html.sh (Core language properties): New module flexmember.
1514 * modules/flexmember, m4/flexmember.m4: New files.
1516 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
1517 inline functions that are identical with the old xnmalloc_inline,
1518 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
1519 that we can avoid some unnecessary integer multiplications and
1520 divisions in the common case where the element size is known at
1522 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
1524 (xnboundedmalloc): Remove.
1525 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
1526 arguments, for consistency with rest of this header.
1527 (xcharalloc): Rewrite using XNMALLOC.
1528 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
1529 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
1530 versions have been moved to lib/xalloc.h and renamed to be the
1531 non-*_inline versions.
1532 (xmalloc, xrealloc): Implement without reference to the xnmalloc
1533 and xnrealloc functions, since those functions are now inline and
1535 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
1536 renaming described above.
1537 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
1538 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
1539 captures the dependency in AC_C_INLINE.
1541 New module canonicalize-lgpl, proposed by Charles Wilson in
1542 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
1543 with a few small changes afterwards.
1544 * MODULES.html.sh (File system functions): New module
1546 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
1547 and canonicalize_file_name.
1548 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
1549 * modules/canonicalize-lgpl: New files.
1551 2006-11-05 Bruno Haible <bruno@clisp.org>
1553 * gnulib-tool (func_import, func_create_testdir): Create directories
1554 also for files in subdirectories of lib/.
1556 2006-11-05 Bruno Haible <bruno@clisp.org>
1558 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
1561 2006-11-03 Bruno Haible <bruno@clisp.org>
1563 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
1564 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
1565 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
1566 (xnboundedmalloc): New inline function.
1567 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
1568 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
1570 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
1572 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
1573 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
1574 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
1576 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1577 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
1579 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
1580 gl_tree_add_after): Use XMALLOC instead of xmalloc.
1581 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
1583 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
1584 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
1585 gl_tree_add_after): Use XMALLOC instead of xmalloc.
1586 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
1587 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
1588 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
1589 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
1591 2006-11-03 Bruno Haible <bruno@clisp.org>
1593 * lib/c-ctype.h [C++]: Define functions without name mangling.
1594 * lib/fwriteerror.h [C++]: Likewise.
1595 * lib/gcd.h [C++]: Likewise.
1596 * lib/linebreak.h [C++]: Likewise.
1598 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
1600 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
1601 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
1602 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
1603 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1604 Check for functions and headers just once.
1605 Check for declaration of canonicalize_file_name.
1606 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
1608 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
1610 * gnulib-tool (func_import): Fix typo in actioncmd.
1612 2006-11-02 Bruno Haible <bruno@clisp.org>
1614 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
1615 newline sequence in the Makefile.am snippet as a space, like "make"
1617 Reported by Roger Persson <perrog@gmail.com>.
1619 2006-11-01 Bruno Haible <bruno@clisp.org>
1621 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
1622 already declared in <string.h>.
1623 * lib/strcase.h (strncasecmp): Don't declare it if yes.
1625 2006-11-01 Bruno Haible <bruno@clisp.org>
1627 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
1628 * lib/strcase.h: Include <string.h>.
1629 (strcasecmp): Define to rpl_strcasecmp here.
1631 2006-11-01 Bruno Haible <bruno@clisp.org>
1633 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
1635 2006-11-01 Eric Blake <ebb9@byu.net>
1637 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
1639 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
1641 2006-10-29 Bruno Haible <bruno@clisp.org>
1643 Make it compile in C++ mode.
1644 * lib/full-write.c (full_rw): Add a cast.
1646 2006-11-01 Bruno Haible <bruno@clisp.org>
1648 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
1650 Reported by Roger Persson <perrog@gmail.com>.
1652 2006-11-01 Eric Blake <ebb9@byu.net>
1654 * lib/getopt_.h: Fix comments.
1656 2006-10-31 Eric Blake <ebb9@byu.net>
1658 * modules/tmpdir (Depends-on): Add sys_stat.
1659 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
1660 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
1661 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
1662 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
1665 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
1667 Avoid some C++ diagnostics reported by Bruno Haible.
1668 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
1670 (quotearg_alloc): Use xcharalloc rather than xmalloc.
1671 (struct slotvec): Move to top level.
1672 (quotearg_n_options): Rewrite to avoid xmalloc.
1673 * lib/xalloc.h (xcharalloc): New function.
1674 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
1675 [defined __cplusplus]: Add function template that provides result
1676 type propagation. This part of the change is from Bruno Haible.
1678 2006-10-29 Bruno Haible <bruno@clisp.org>
1680 Make it compile in C++ mode.
1681 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
1682 * lib/strnlen1.c (strnlen1): Cast memchr result.
1683 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
1684 * lib/clean-temp.c (string_equals, string_hash): Add casts.
1685 (create_temp_dir): Rename local variable 'template'.
1686 (compile_csharp_using_sscli): Add cast.
1687 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
1688 * lib/findprog.c (find_in_path): Likewise.
1689 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
1690 * lib/wait-process.c (register_slave_subprocess): Likewise.
1692 2006-10-22 Bruno Haible <bruno@clisp.org>
1694 * modules/tsearch: New file.
1695 * lib/tsearch.h: New file.
1696 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
1697 * m4/tsearch.m4: New file.
1698 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
1700 2006-10-29 Eric Blake <ebb9@byu.net>
1702 * lib/arcfour.c: Assume config.h.
1703 * lib/arctwo.c: Likewise.
1704 * lib/base64.c: Likewise.
1705 * lib/check-version.c: Likewise.
1706 * lib/crc.c: Likewise.
1707 * lib/des.c: Likewise.
1708 * lib/gc-gnulib.c: Likewise.
1709 * lib/gc-libgcrypt.c: Likewise.
1710 * lib/gc-pbkdf2-sha1.c: Likewise.
1711 * lib/getaddrinfo.c: Likewise.
1712 * lib/getdelim.c: Likewise.
1713 * lib/getline.c: Likewise.
1714 * lib/hmac-md5.c: Likewise.
1715 * lib/hmac-sha1.c: Likewise.
1716 * lib/iconvme.c: Likewise.
1717 * lib/md2.c: Likewise.
1718 * lib/md4.c: Likewise.
1719 * lib/memxor.c: Likewise.
1720 * lib/read-file.c: Likewise.
1721 * lib/readline.c: Likewise.
1722 * lib/rijndael-alg-fst.c: Likewise.
1723 * lib/rijndael-api-fst.c: Likewise.
1724 * lib/xgetdomainname.c: Likewise.
1726 2006-10-28 Eric Blake <ebb9@byu.net>
1728 * lib/xstrndup.c: Assume config.h.
1730 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
1732 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
1733 stat-macros.h is now for our own macros, whereas stat_h is for
1734 macros in the <sys/stat.h> name space.
1735 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
1736 (STAT_MACROS_H): Remove.
1737 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
1738 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
1739 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
1740 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
1741 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
1742 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
1743 Move these macros to ...
1744 * lib/stat_.h: here. Don't include stat-macros.h.
1745 * lib/canonicalize.c: Don't include stat-macros.h.
1746 * lib/chown.c: Likewise.
1747 * lib/euidaccess.c: Likewise.
1748 * lib/file-type.c: Likewise.
1749 * lib/filemode.c: Likewise.
1750 * lib/glob.c: Likewise.
1751 * lib/isapipe.c: Likewise.
1752 * lib/lchown.c: Likewise.
1753 * lib/lstat.c: Likewise.
1754 * lib/mkdir-p.c: Likewise.
1755 * lib/rmdir.c: Likewise.
1756 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
1757 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
1758 unless mkdir isn't declared, to speed up 'configure'.
1759 Always create sys/stat.h, since it's unlikely any real sys/stat.h
1760 would define all the S_* symbols.
1761 * modules/canonicalize (Depends-on):
1762 Depend on sys_stat, not stat-macros.
1763 * modules/chown: Likewise.
1764 * modules/euidaccess: Likewise.
1765 * modules/filemode: Likewise.
1766 * modules/file-type: Likewise.
1767 * modules/glob: Likewise.
1768 * modules/isapipe: Likewise.
1769 * modules/lchown: Likewise.
1770 * modules/lstat: Likewise.
1771 * modules/mkancesdirs: Likewise.
1772 * modules/rmdir: Likewise.
1773 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
1774 * modules/modechange: Likewise.
1775 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
1776 (configure.ac): Remove gl_STAT_MACROS.
1777 * modules/sys_stat (Depends-on): Remove stat-macros.
1779 2006-10-27 Bruno Haible <bruno@clisp.org>
1781 * m4/signed.m4: Remove file.
1782 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
1784 * modules/vasnprintf (Files): Remove m4/signed.m4.
1786 2006-10-27 Bruno Haible <bruno@clisp.org>
1788 Update to GNU gettext 0.16.
1789 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
1790 m4/inttypes-h.m4, m4/signed.m4.
1791 * m4/gettext.m4: Update to GNU gettext 0.16.
1792 * m4/intl.m4: New file, from GNU gettext.
1793 * m4/intldir.m4: New file, from GNU gettext.
1794 * config/srclist.txt: Update
1796 2006-10-27 Eric Blake <ebb9@byu.net>
1798 * MODULES.html.sh: Document tempname.
1799 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
1801 (Files): Move lib/tempname.c...
1802 * modules/tempname: ...to this new module.
1803 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
1804 (gl_PREREQ_TEMPNAME): Move...
1805 * m4/tempname.m4: ...to this new file.
1806 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
1807 * modules/sys_stat (Depends-on): Add stat-macros.
1808 * lib/stat_.h (includes): Pick up stat macros.
1809 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
1810 if stat macros are broken.
1811 * lib/tempname.c (includes): No need to include "stat-macros.h".
1812 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
1813 (direxists, __path_search) [!_LIBC]: Don't compile these in
1814 gnulib; the tmpdir module covers that.
1815 * lib/tempname.h: New file.
1817 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
1819 * COPYING: Explain how gnulib-tool converts licence headers.
1820 Almost all wording by Eric Blake.
1822 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
1824 * lib/mbchar.h (is_basic_table): Make read-only.
1825 * lib/mbchar.c (is_basic_table): Likewise.
1826 Reported by John Darrington.
1828 2006-10-25 Bruno Haible <bruno@clisp.org>
1830 * lib/progname.h (set_program_name): Undefine before defining.
1832 2006-10-25 Bruno Haible <bruno@clisp.org>
1834 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
1835 false for non-gcc C++ compilers.
1836 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1838 2006-10-24 Bruno Haible <bruno@clisp.org>
1840 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
1841 iconv implementations like Irix iconv.
1843 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
1845 * modules/vararrays: New file.
1846 * m4/vararrays.m4: New file, taken from diffutils.
1847 * MODULES.html.sh: New module vararrays.
1849 2006-10-24 Karl Berry <karl@gnu.org>
1851 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
1852 Don't call GNU Unix.
1854 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1856 * users.txt: Add Libtool.
1860 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
1862 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
1863 to gnulib's policy of including config.h unconditionally.
1865 2006-10-24 Bruno Haible <bruno@clisp.org>
1867 * modules/wcwidth (Files): Add m4/wint_t.m4.
1868 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
1869 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
1871 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
1873 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
1874 to pacify GCC with some -W flags enabled. Problem reported by
1877 2006-10-24 Jim Meyering <jim@meyering.net>
1879 * MODULES.html.sh: Remove uinttostr. It's not a module.
1880 Reported by Karl Berry.
1882 2006-10-23 Bruno Haible <bruno@clisp.org>
1884 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
1886 2006-10-24 Bruno Haible <bruno@clisp.org>
1888 * lib/gl_list.h: Use C comment style, not C++ comment style.
1890 2006-10-23 Eric Blake <ebb9@byu.net>
1892 * lib/getaddrinfo.c (includes): Add missing include.
1894 2006-10-23 Bruno Haible <bruno@clisp.org>
1895 Paul Eggert <eggert@cs.ucla.edu>
1897 Ability to rename obstack_free.
1898 * lib/obstack.h (__obstack_free): New macro. Declare instead of
1900 (obstack_free): Invoke the __obstack_free macro.
1901 * lib/obstack.c (obstack_free): Use __obstack_free macro.
1903 2006-10-23 Bruno Haible <bruno@clisp.org>
1904 Paul Eggert <eggert@cs.ucla.edu>
1906 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
1907 __argc, __argv from the declaration. (They are defined as macros on
1910 2006-10-22 Bruno Haible <bruno@clisp.org>
1912 * doc/gnulib-intro.texi: New file.
1913 * doc/gnulib.texi: Include it.
1915 2006-10-21 Bruno Haible <bruno@clisp.org>
1917 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
1918 "Introduction", "Miscellanous Notes", "Particular Modules".
1920 2006-10-21 Bruno Haible <bruno@clisp.org>
1922 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1923 Change mostlyclean-local rule to avoid sh syntax error from bash
1924 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
1926 2006-10-23 Jim Meyering <jim@meyering.net>
1928 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
1929 in place of snprintf.
1931 * modules/inttostr (Files): Add lib/uinttostr.c.
1932 * lib/uinttostr.c (inttostr): New file/function.
1933 * lib/inttostr.h (uinttostr): Declare.
1934 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
1935 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
1937 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
1939 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
1941 * lib/canonicalize.c (ELOOP): Define if not already defined.
1942 Problem reported by Bruno Haible in
1943 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
1945 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
1947 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
1948 Problem reported by Perry Smith and Ville Laurikari.
1950 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
1953 2006-10-19 Bruno Haible <bruno@clisp.org>
1955 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
1958 2006-10-19 Bruno Haible <bruno@clisp.org>
1960 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
1963 2006-10-19 Bruno Haible <bruno@clisp.org>
1965 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
1967 2006-10-19 Bruno Haible <bruno@clisp.org>
1969 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
1972 2006-10-19 Bruno Haible <bruno@clisp.org>
1974 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
1977 2006-10-19 Bruno Haible <bruno@clisp.org>
1979 * gnulib-tool (func_create_testdir): Don't include ftruncate and
1980 mountlist by default.
1982 2006-10-16 Bruno Haible <bruno@clisp.org>
1984 * lib/c-strstr.c: Include c-strstr.h.
1986 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
1988 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
1991 2006-10-18 Bruno Haible <bruno@clisp.org>
1993 * lib/lock.h [C++]: Wrap definitions in extern "C".
1995 2006-10-18 Bruno Haible <bruno@clisp.org>
1997 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2000 2006-10-18 Bruno Haible <bruno@clisp.org>
2002 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2004 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
2006 * lib/xstrtol.h: Include gettext.h.
2007 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2008 Problem reported by Eric Blake.
2009 * modules/xstrtol (Depends-on): Add gettext-h.
2011 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
2013 * lib/strftime.c (advance): New macro.
2014 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
2015 incomplete type, so you can't add 0 to it. Problem and patch
2016 reported by Eelco Dolstra for dietlibc.
2018 2006-10-18 Jim Meyering <jim@meyering.net>
2020 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2021 type for a local, and rename it: s/up/user_proc/.
2023 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
2025 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2026 READ_UTMP_USER_PROCESS.
2027 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2029 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
2031 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2032 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2034 2006-10-17 Eric Blake <ebb9@byu.net>
2036 * lib/sigprocmask.c (sigprocmask): Fix typo.
2038 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2040 * modules/clean-temp (Makefile.am): Don't add to make output...
2041 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2044 2006-10-17 Bruno Haible <bruno@clisp.org>
2046 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2047 differently if DEFAULT_TEXT_DOMAIN is set.
2049 2006-10-16 Bruno Haible <bruno@clisp.org>
2051 * lib/clean-temp.c: Include fwriteerror.h.
2053 2006-10-16 Bruno Haible <bruno@clisp.org>
2055 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2057 2006-10-16 Bruno Haible <bruno@clisp.org>
2059 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2060 * lib/sigprocmask.h: Include <sys/types.h>.
2061 (sigset_t): Use the system's definition if present.
2063 2006-10-17 Eric Blake <ebb9@byu.net>
2065 * lib/xvasprintf.c (includes): Assume config.h.
2066 * lib/xasprintf.c (includes): Likewise.
2068 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
2070 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2071 at least as wide as intmax_t.
2073 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
2075 (Imported from Automake.)
2076 * build-aux/gnupload: Update to version 1.1 of directive file.
2078 2006-10-16 Eric Blake <ebb9@byu.net>
2080 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2081 match Automake 1.10a.
2083 2006-10-14 Bruno Haible <bruno@clisp.org>
2085 * modules/sigprocmask: New file.
2086 * lib/sigprocmask.h: New file.
2087 * lib/sigprocmask.c: New file.
2088 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
2089 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
2090 request sigprocmask.o.
2091 (gl_PREREQ_SIGPROCMASK): New macro.
2092 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
2093 (Depends-on): Add sigprocmask.
2094 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
2095 gt_SIGNALBLOCKING. Test for 'raise' only once.
2096 * lib/fatal-signal.c: Include sigprocmask.h.
2097 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
2098 unblock_fatal_signals): Define always.
2099 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2102 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
2105 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
2106 which incorrectly sets the mode of an existing destination
2107 directory. In some cases the unpatched install-sh could do the
2108 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
2109 system. We hope this is rare in practice, but it's clearly worth
2110 fixing. Problem reported by Alex Unleashed in
2111 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
2112 Also, don't bother to check for -m bugs unless we're using -m;
2113 suggested by Stepan Kasal.
2115 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2118 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
2119 `-c' flag, so they appear at the same position as in %FASTDEP%
2120 mode in depend2.am. Fixes build failure for FreeBSD's c89,
2121 which ignores unknown options only after the first non-option.
2122 Bug report against M4 by Nelson H. F. Beebe.
2124 2006-10-13 Jim Meyering <jim@meyering.net>
2126 Fix a bug in yesterday's change.
2127 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
2128 p->fts_statp->st_dev would be used uninitialized.
2129 Ensures that we always call fts_stat on the very first entry.
2130 Miklos Szeredi reported that find -xdev stopped working.
2132 2006-10-12 Bruno Haible <bruno@clisp.org>
2134 * gnulib-tool (func_get_automake_snippet): Append an automatically
2135 computed EXTRA_DIST augmentation.
2136 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
2137 * modules/alloca-opt (Makefile.am): Likewise.
2138 * modules/allocsa (Makefile.am): Likewise.
2139 * modules/arcfour (Makefile.am): Likewise.
2140 * modules/arctwo (Makefile.am): Likewise.
2141 * modules/argmatch (Makefile.am): Likewise.
2142 * modules/argz (Makefile.am): Likewise.
2143 * modules/atexit (Makefile.am): Likewise.
2144 * modules/backupfile (Makefile.am): Likewise.
2145 * modules/byteswap (Makefile.am): Likewise.
2146 * modules/c-strtod (Makefile.am): Likewise.
2147 * modules/c-strtold (Makefile.am): Likewise.
2148 * modules/calloc (Makefile.am): Likewise.
2149 * modules/canon-host (Makefile.am): Likewise.
2150 * modules/canonicalize (Makefile.am): Likewise.
2151 * modules/chdir-long (Makefile.am): Likewise.
2152 * modules/chdir-safer (Makefile.am): Likewise.
2153 * modules/check-version (Makefile.am): Likewise.
2154 * modules/chown (Makefile.am): Likewise.
2155 * modules/cloexec (Makefile.am): Likewise.
2156 * modules/close-stream (Makefile.am): Likewise.
2157 * modules/closeout (Makefile.am): Likewise.
2158 * modules/crc (Makefile.am): Likewise.
2159 * modules/csharpexec (Makefile.am): Likewise.
2160 * modules/cycle-check (Makefile.am): Likewise.
2161 * modules/des (Makefile.am): Likewise.
2162 * modules/dev-ino (Makefile.am): Likewise.
2163 * modules/dirfd (Makefile.am): Likewise.
2164 * modules/dirname (Makefile.am): Likewise.
2165 * modules/dup2 (Makefile.am): Likewise.
2166 * modules/eealloc (Makefile.am): Likewise.
2167 * modules/error (Makefile.am): Likewise.
2168 * modules/euidaccess (Makefile.am): Likewise.
2169 * modules/exclude (Makefile.am): Likewise.
2170 * modules/exitfail (Makefile.am): Likewise.
2171 * modules/fcntl-safer (Makefile.am): Likewise.
2172 * modules/fcntl (Makefile.am): Likewise.
2173 * modules/file-type (Makefile.am): Likewise.
2174 * modules/fileblocks (Makefile.am): Likewise.
2175 * modules/filemode (Makefile.am): Likewise.
2176 * modules/filenamecat (Makefile.am): Likewise.
2177 * modules/fnmatch (Makefile.am): Likewise.
2178 * modules/fopen-safer (Makefile.am): Likewise.
2179 * modules/fpending (Makefile.am): Likewise.
2180 * modules/fprintftime (Makefile.am): Likewise.
2181 * modules/free (Makefile.am): Likewise.
2182 * modules/fsusage (Makefile.am): Likewise.
2183 * modules/ftruncate (Makefile.am): Likewise.
2184 * modules/fts (Makefile.am): Likewise.
2185 * modules/gc-arcfour (Makefile.am): Likewise.
2186 * modules/gc-des (Makefile.am): Likewise.
2187 * modules/gc-hmac-md5 (Makefile.am): Likewise.
2188 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
2189 * modules/gc-md4 (Makefile.am): Likewise.
2190 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2191 * modules/gc-sha1 (Makefile.am): Likewise.
2192 * modules/gc (Makefile.am): Likewise.
2193 * modules/getaddrinfo (Makefile.am): Likewise.
2194 * modules/getcwd (Makefile.am): Likewise.
2195 * modules/getdelim (Makefile.am): Likewise.
2196 * modules/getdomainname (Makefile.am): Likewise.
2197 * modules/getgroups (Makefile.am): Likewise.
2198 * modules/gethostname (Makefile.am): Likewise.
2199 * modules/gethrxtime (Makefile.am): Likewise.
2200 * modules/getline (Makefile.am): Likewise.
2201 * modules/getloadavg (Makefile.am): Likewise.
2202 * modules/getlogin_r (Makefile.am): Likewise.
2203 * modules/getndelim2 (Makefile.am): Likewise.
2204 * modules/getopt (Makefile.am): Likewise.
2205 * modules/getpagesize (Makefile.am): Likewise.
2206 * modules/getpass-gnu (Makefile.am): Likewise.
2207 * modules/getpass (Makefile.am): Likewise.
2208 * modules/getsubopt (Makefile.am): Likewise.
2209 * modules/gettime (Makefile.am): Likewise.
2210 * modules/gettimeofday (Makefile.am): Likewise.
2211 * modules/getugroups (Makefile.am): Likewise.
2212 * modules/getusershell (Makefile.am): Likewise.
2213 * modules/glob (Makefile.am): Likewise.
2214 * modules/group-member (Makefile.am): Likewise.
2215 * modules/hard-locale (Makefile.am): Likewise.
2216 * modules/hash (Makefile.am): Likewise.
2217 * modules/hmac-md5 (Makefile.am): Likewise.
2218 * modules/hmac-sha1 (Makefile.am): Likewise.
2219 * modules/human (Makefile.am): Likewise.
2220 * modules/idcache (Makefile.am): Likewise.
2221 * modules/imaxabs (Makefile.am): Likewise.
2222 * modules/imaxdiv (Makefile.am): Likewise.
2223 * modules/inet_ntop (Makefile.am): Likewise.
2224 * modules/inet_pton (Makefile.am): Likewise.
2225 * modules/intprops (Makefile.am): Likewise.
2226 * modules/inttostr (Makefile.am): Likewise.
2227 * modules/inttypes (Makefile.am): Likewise.
2228 * modules/isapipe (Makefile.am): Likewise.
2229 * modules/javaversion (Makefile.am): Likewise.
2230 * modules/lchmod (Makefile.am): Likewise.
2231 * modules/lchown (Makefile.am): Likewise.
2232 * modules/localcharset (Makefile.am): Likewise.
2233 * modules/long-options (Makefile.am): Likewise.
2234 * modules/lstat (Makefile.am): Likewise.
2235 * modules/malloc (Makefile.am): Likewise.
2236 * modules/mathl (Makefile.am): Likewise.
2237 * modules/mbchar (Makefile.am): Likewise.
2238 * modules/md2 (Makefile.am): Likewise.
2239 * modules/md4 (Makefile.am): Likewise.
2240 * modules/md5 (Makefile.am): Likewise.
2241 * modules/memcasecmp (Makefile.am): Likewise.
2242 * modules/memchr (Makefile.am): Likewise.
2243 * modules/memcmp (Makefile.am): Likewise.
2244 * modules/memcoll (Makefile.am): Likewise.
2245 * modules/memcpy (Makefile.am): Likewise.
2246 * modules/memmem (Makefile.am): Likewise.
2247 * modules/memmove (Makefile.am): Likewise.
2248 * modules/mempcpy (Makefile.am): Likewise.
2249 * modules/memrchr (Makefile.am): Likewise.
2250 * modules/memset (Makefile.am): Likewise.
2251 * modules/memxor (Makefile.am): Likewise.
2252 * modules/mkancesdirs (Makefile.am): Likewise.
2253 * modules/mkdir-p (Makefile.am): Likewise.
2254 * modules/mkdir (Makefile.am): Likewise.
2255 * modules/mkdtemp (Makefile.am): Likewise.
2256 * modules/mkstemp (Makefile.am): Likewise.
2257 * modules/mktime (Makefile.am): Likewise.
2258 * modules/modechange (Makefile.am): Likewise.
2259 * modules/mountlist (Makefile.am): Likewise.
2260 * modules/nanosleep (Makefile.am): Likewise.
2261 * modules/obstack (Makefile.am): Likewise.
2262 * modules/openat (Makefile.am): Likewise.
2263 * modules/pagealign_alloc (Makefile.am): Likewise.
2264 * modules/pathmax (Makefile.am): Likewise.
2265 * modules/physmem (Makefile.am): Likewise.
2266 * modules/poll (Makefile.am): Likewise.
2267 * modules/posixtm (Makefile.am): Likewise.
2268 * modules/posixver (Makefile.am): Likewise.
2269 * modules/putenv (Makefile.am): Likewise.
2270 * modules/quote (Makefile.am): Likewise.
2271 * modules/quotearg (Makefile.am): Likewise.
2272 * modules/raise (Makefile.am): Likewise.
2273 * modules/read-file (Makefile.am): Likewise.
2274 * modules/readline (Makefile.am): Likewise.
2275 * modules/readlink (Makefile.am): Likewise.
2276 * modules/readtokens (Makefile.am): Likewise.
2277 * modules/readutmp (Makefile.am): Likewise.
2278 * modules/realloc (Makefile.am): Likewise.
2279 * modules/regex (Makefile.am): Likewise.
2280 * modules/rename-dest-slash (Makefile.am): Likewise.
2281 * modules/rename (Makefile.am): Likewise.
2282 * modules/rijndael (Makefile.am): Likewise.
2283 * modules/rmdir (Makefile.am): Likewise.
2284 * modules/rpmatch (Makefile.am): Likewise.
2285 * modules/safe-read (Makefile.am): Likewise.
2286 * modules/safe-write (Makefile.am): Likewise.
2287 * modules/same-inode (Makefile.am): Likewise.
2288 * modules/same (Makefile.am): Likewise.
2289 * modules/save-cwd (Makefile.am): Likewise.
2290 * modules/savedir (Makefile.am): Likewise.
2291 * modules/setenv (Makefile.am): Likewise.
2292 * modules/settime (Makefile.am): Likewise.
2293 * modules/sha1 (Makefile.am): Likewise.
2294 * modules/sig2str (Makefile.am): Likewise.
2295 * modules/snprintf (Makefile.am): Likewise.
2296 * modules/stat-macros (Makefile.am): Likewise.
2297 * modules/stat-time (Makefile.am): Likewise.
2298 * modules/stdbool (Makefile.am): Likewise.
2299 * modules/stdint (Makefile.am): Likewise.
2300 * modules/stdlib-safer (Makefile.am): Likewise.
2301 * modules/stpcpy (Makefile.am): Likewise.
2302 * modules/stpncpy (Makefile.am): Likewise.
2303 * modules/strcase (Makefile.am): Likewise.
2304 * modules/strcasestr (Makefile.am): Likewise.
2305 * modules/strchrnul (Makefile.am): Likewise.
2306 * modules/strcspn (Makefile.am): Likewise.
2307 * modules/strdup (Makefile.am): Likewise.
2308 * modules/strerror (Makefile.am): Likewise.
2309 * modules/strftime (Makefile.am): Likewise.
2310 * modules/strndup (Makefile.am): Likewise.
2311 * modules/strnlen (Makefile.am): Likewise.
2312 * modules/strpbrk (Makefile.am): Likewise.
2313 * modules/strsep (Makefile.am): Likewise.
2314 * modules/strstr (Makefile.am): Likewise.
2315 * modules/strtod (Makefile.am): Likewise.
2316 * modules/strtoimax (Makefile.am): Likewise.
2317 * modules/strtok_r (Makefile.am): Likewise.
2318 * modules/strtol (Makefile.am): Likewise.
2319 * modules/strtoll (Makefile.am): Likewise.
2320 * modules/strtoul (Makefile.am): Likewise.
2321 * modules/strtoull (Makefile.am): Likewise.
2322 * modules/strtoumax (Makefile.am): Likewise.
2323 * modules/strverscmp (Makefile.am): Likewise.
2324 * modules/sys_socket (Makefile.am): Likewise.
2325 * modules/sys_stat (Makefile.am): Likewise.
2326 * modules/sysexits (Makefile.am): Likewise.
2327 * modules/time_r (Makefile.am): Likewise.
2328 * modules/timegm (Makefile.am): Likewise.
2329 * modules/timespec (Makefile.am): Likewise.
2330 * modules/tmpfile-safer (Makefile.am): Likewise.
2331 * modules/trim (Makefile.am): Likewise.
2332 * modules/unistd-safer (Makefile.am): Likewise.
2333 * modules/unlinkdir (Makefile.am): Likewise.
2334 * modules/unlocked-io (Makefile.am): Likewise.
2335 * modules/userspec (Makefile.am): Likewise.
2336 * modules/utime (Makefile.am): Likewise.
2337 * modules/utimecmp (Makefile.am): Likewise.
2338 * modules/utimens (Makefile.am): Likewise.
2339 * modules/vasnprintf (Makefile.am): Likewise.
2340 * modules/vasprintf (Makefile.am): Likewise.
2341 * modules/vsnprintf (Makefile.am): Likewise.
2342 * modules/xalloc (Makefile.am): Likewise.
2343 * modules/xgetcwd (Makefile.am): Likewise.
2344 * modules/xnanosleep (Makefile.am): Likewise.
2345 * modules/xreadlink (Makefile.am): Likewise.
2346 * modules/xstrtod (Makefile.am): Likewise.
2347 * modules/xstrtol (Makefile.am): Likewise.
2348 * modules/xstrtold (Makefile.am): Likewise.
2349 * modules/yesno (Makefile.am): Likewise.
2350 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
2352 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
2354 * modules/error (Makefile.am): Distribute files through
2355 EXTRA_DIST, not lib_SOURCES.
2357 2006-10-12 Eric Blake <ebb9@byu.net>
2359 * modules/error (Makefile.am): Distribute files in /lib.
2360 * modules/obstack (Makefile.am): Likewise.
2362 2006-10-12 Bruno Haible <bruno@clisp.org>
2364 * modules/acl (Makefile.am): Distribute all files in lib/ through
2366 * modules/arcfour (Makefile.am): Likewise.
2367 * modules/arctwo (Makefile.am): Likewise.
2368 * modules/argmatch (Makefile.am): Likewise.
2369 * modules/argz (Makefile.am): Likewise.
2370 * modules/atexit (Makefile.am): Likewise.
2371 * modules/backupfile (Makefile.am): Likewise.
2372 * modules/c-strtod (Makefile.am): Likewise.
2373 * modules/c-strtold (Makefile.am): Likewise.
2374 * modules/calloc (Makefile.am): Likewise.
2375 * modules/canon-host (Makefile.am): Likewise.
2376 * modules/canonicalize (Makefile.am): Likewise.
2377 * modules/chdir-long (Makefile.am): Likewise.
2378 * modules/chdir-safer (Makefile.am): Likewise.
2379 * modules/check-version (Makefile.am): Likewise.
2380 * modules/chown (Makefile.am): Likewise.
2381 * modules/cloexec (Makefile.am): Likewise.
2382 * modules/close-stream (Makefile.am): Likewise.
2383 * modules/closeout (Makefile.am): Likewise.
2384 * modules/crc (Makefile.am): Likewise.
2385 * modules/cycle-check (Makefile.am): Likewise.
2386 * modules/des (Makefile.am): Likewise.
2387 * modules/dirfd (Makefile.am): Likewise.
2388 * modules/dirname (Makefile.am): Likewise.
2389 * modules/dup2 (Makefile.am): Likewise.
2390 * modules/euidaccess (Makefile.am): Likewise.
2391 * modules/exclude (Makefile.am): Likewise.
2392 * modules/exitfail (Makefile.am): Likewise.
2393 * modules/fcntl-safer (Makefile.am): Likewise.
2394 * modules/file-type (Makefile.am): Likewise.
2395 * modules/fileblocks (Makefile.am): Likewise.
2396 * modules/filemode (Makefile.am): Likewise.
2397 * modules/filenamecat (Makefile.am): Likewise.
2398 * modules/fnmatch (Makefile.am): Likewise.
2399 * modules/fopen-safer (Makefile.am): Likewise.
2400 * modules/fpending (Makefile.am): Likewise.
2401 * modules/fprintftime (Makefile.am): Likewise.
2402 * modules/free (Makefile.am): Likewise.
2403 * modules/fsusage (Makefile.am): Likewise.
2404 * modules/ftruncate (Makefile.am): Likewise.
2405 * modules/fts (Makefile.am): Likewise.
2406 * modules/gc (Makefile.am): Likewise.
2407 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
2408 * modules/getaddrinfo (Makefile.am): Likewise.
2409 * modules/getcwd (Makefile.am): Likewise.
2410 * modules/getdelim (Makefile.am): Likewise.
2411 * modules/getdomainname (Makefile.am): Likewise.
2412 * modules/getgroups (Makefile.am): Likewise.
2413 * modules/gethostname (Makefile.am): Likewise.
2414 * modules/gethrxtime (Makefile.am): Likewise.
2415 * modules/getline (Makefile.am): Likewise.
2416 * modules/getloadavg (Makefile.am): Likewise.
2417 * modules/getlogin_r (Makefile.am): Likewise.
2418 * modules/getopt (Makefile.am): Likewise.
2419 * modules/getpass (Makefile.am): Likewise.
2420 * modules/getpass-gnu (Makefile.am): Likewise.
2421 * modules/getsubopt (Makefile.am): Likewise.
2422 * modules/gettime (Makefile.am): Likewise.
2423 * modules/gettimeofday (Makefile.am): Likewise.
2424 * modules/getugroups (Makefile.am): Likewise.
2425 * modules/getusershell (Makefile.am): Likewise.
2426 * modules/glob (Makefile.am): Likewise.
2427 * modules/group-member (Makefile.am): Likewise.
2428 * modules/hard-locale (Makefile.am): Likewise.
2429 * modules/hash (Makefile.am): Likewise.
2430 * modules/hmac-md5 (Makefile.am): Likewise.
2431 * modules/hmac-sha1 (Makefile.am): Likewise.
2432 * modules/human (Makefile.am): Likewise.
2433 * modules/idcache (Makefile.am): Likewise.
2434 * modules/imaxabs (Makefile.am): Likewise.
2435 * modules/imaxdiv (Makefile.am): Likewise.
2436 * modules/inet_ntop (Makefile.am): Likewise.
2437 * modules/inet_pton (Makefile.am): Likewise.
2438 * modules/inttostr (Makefile.am): Likewise.
2439 * modules/isapipe (Makefile.am): Likewise.
2440 * modules/lchown (Makefile.am): Likewise.
2441 * modules/long-options (Makefile.am): Likewise.
2442 * modules/lstat (Makefile.am): Likewise.
2443 * modules/malloc (Makefile.am): Likewise.
2444 * modules/mathl (Makefile.am): Likewise.
2445 * modules/mbchar (Makefile.am): Likewise.
2446 * modules/md2 (Makefile.am): Likewise.
2447 * modules/md4 (Makefile.am): Likewise.
2448 * modules/md5 (Makefile.am): Likewise.
2449 * modules/memcasecmp (Makefile.am): Likewise.
2450 * modules/memchr (Makefile.am): Likewise.
2451 * modules/memcmp (Makefile.am): Likewise.
2452 * modules/memcoll (Makefile.am): Likewise.
2453 * modules/memcpy (Makefile.am): Likewise.
2454 * modules/memmem (Makefile.am): Likewise.
2455 * modules/memmove (Makefile.am): Likewise.
2456 * modules/mempcpy (Makefile.am): Likewise.
2457 * modules/memrchr (Makefile.am): Likewise.
2458 * modules/memset (Makefile.am): Likewise.
2459 * modules/memxor (Makefile.am): Likewise.
2460 * modules/mkancesdirs (Makefile.am): Likewise.
2461 * modules/mkdir (Makefile.am): Likewise.
2462 * modules/mkdir-p (Makefile.am): Likewise.
2463 * modules/mkdtemp (Makefile.am): Likewise.
2464 * modules/mkstemp (Makefile.am): Likewise.
2465 * modules/mktime (Makefile.am): Likewise.
2466 * modules/modechange (Makefile.am): Likewise.
2467 * modules/mountlist (Makefile.am): Likewise.
2468 * modules/nanosleep (Makefile.am): Likewise.
2469 * modules/openat (Makefile.am): Likewise.
2470 * modules/pagealign_alloc (Makefile.am): Likewise.
2471 * modules/physmem (Makefile.am): Likewise.
2472 * modules/poll (Makefile.am): Likewise.
2473 * modules/posixtm (Makefile.am): Likewise.
2474 * modules/posixver (Makefile.am): Likewise.
2475 * modules/putenv (Makefile.am): Likewise.
2476 * modules/quote (Makefile.am): Likewise.
2477 * modules/quotearg (Makefile.am): Likewise.
2478 * modules/raise (Makefile.am): Likewise.
2479 * modules/read-file (Makefile.am): Likewise.
2480 * modules/readline (Makefile.am): Likewise.
2481 * modules/readlink (Makefile.am): Likewise.
2482 * modules/readtokens (Makefile.am): Likewise.
2483 * modules/readutmp (Makefile.am): Likewise.
2484 * modules/realloc (Makefile.am): Likewise.
2485 * modules/regex (Makefile.am): Likewise.
2486 * modules/rename (Makefile.am): Likewise.
2487 * modules/rename-dest-slash (Makefile.am): Likewise.
2488 * modules/rijndael (Makefile.am): Likewise.
2489 * modules/rmdir (Makefile.am): Likewise.
2490 * modules/rpmatch (Makefile.am): Likewise.
2491 * modules/safe-read (Makefile.am): Likewise.
2492 * modules/safe-write (Makefile.am): Likewise.
2493 * modules/same (Makefile.am): Likewise.
2494 * modules/save-cwd (Makefile.am): Likewise.
2495 * modules/savedir (Makefile.am): Likewise.
2496 * modules/setenv (Makefile.am): Likewise.
2497 * modules/settime (Makefile.am): Likewise.
2498 * modules/sha1 (Makefile.am): Likewise.
2499 * modules/sig2str (Makefile.am): Likewise.
2500 * modules/snprintf (Makefile.am): Likewise.
2501 * modules/stdlib-safer (Makefile.am): Likewise.
2502 * modules/stpcpy (Makefile.am): Likewise.
2503 * modules/stpncpy (Makefile.am): Likewise.
2504 * modules/strcase (Makefile.am): Likewise.
2505 * modules/strcasestr (Makefile.am): Likewise.
2506 * modules/strchrnul (Makefile.am): Likewise.
2507 * modules/strcspn (Makefile.am): Likewise.
2508 * modules/strdup (Makefile.am): Likewise.
2509 * modules/strerror (Makefile.am): Likewise.
2510 * modules/strftime (Makefile.am): Likewise.
2511 * modules/strndup (Makefile.am): Likewise.
2512 * modules/strnlen (Makefile.am): Likewise.
2513 * modules/strpbrk (Makefile.am): Likewise.
2514 * modules/strsep (Makefile.am): Likewise.
2515 * modules/strstr (Makefile.am): Likewise.
2516 * modules/strtod (Makefile.am): Likewise.
2517 * modules/strtoimax (Makefile.am): Likewise.
2518 * modules/strtok_r (Makefile.am): Likewise.
2519 * modules/strtol (Makefile.am): Likewise.
2520 * modules/strtoll (Makefile.am): Likewise.
2521 * modules/strtoul (Makefile.am): Likewise.
2522 * modules/strtoull (Makefile.am): Likewise.
2523 * modules/strtoumax (Makefile.am): Likewise.
2524 * modules/strverscmp (Makefile.am): Likewise.
2525 * modules/time_r (Makefile.am): Likewise.
2526 * modules/timegm (Makefile.am): Likewise.
2527 * modules/tmpfile-safer (Makefile.am): Likewise.
2528 * modules/unistd-safer (Makefile.am): Likewise.
2529 * modules/unlinkdir (Makefile.am): Likewise.
2530 * modules/userspec (Makefile.am): Likewise.
2531 * modules/utime (Makefile.am): Likewise.
2532 * modules/utimecmp (Makefile.am): Likewise.
2533 * modules/utimens (Makefile.am): Likewise.
2534 * modules/vasnprintf (Makefile.am): Likewise.
2535 * modules/vasprintf (Makefile.am): Likewise.
2536 * modules/vsnprintf (Makefile.am): Likewise.
2537 * modules/xalloc (Makefile.am): Likewise.
2538 * modules/xgetcwd (Makefile.am): Likewise.
2539 * modules/xnanosleep (Makefile.am): Likewise.
2540 * modules/xreadlink (Makefile.am): Likewise.
2541 * modules/xstrtod (Makefile.am): Likewise.
2542 * modules/xstrtol (Makefile.am): Likewise.
2543 * modules/xstrtold (Makefile.am): Likewise.
2544 * modules/yesno (Makefile.am): Likewise.
2546 2006-10-12 Jim Meyering <jim@meyering.net>
2548 * m4/getloadavg.m4: Revert the change below.
2550 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
2551 lib/getloadavg.c using "ls -L", not "test -f". The latter would
2552 fail with a symlink, which is what coreutils' ./bootstrap now
2555 2006-10-12 Bruno Haible <bruno@clisp.org>
2557 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
2559 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
2560 MSVC and mingw explicitly.
2562 2006-10-11 Simon Josefsson <jas@extundo.com>
2563 Bruno Haible <bruno@clisp.org>
2565 Add support for multiple gnulib-tool invocations in the scope of a
2566 single configure.ac file.
2567 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
2568 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
2569 with the same contents as the _LIBADD variable.
2570 (func_emit_initmacro_start, func_emit_initmacro_end,
2571 func_emit_initmacro_done): New functions.
2572 (func_import, func_create_testdir): Invoke them. Allow the identifiers
2573 gl_LIBOBJS and gl_LTLIBOBJS.
2575 2006-10-11 Bruno Haible <bruno@clisp.org>
2577 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
2578 (func_create_testdir): Don't create po/Makefile.am, don't invoke
2579 autoreconf. Instead, invoke autopoint explicitly but move back the
2580 *.m4 files from gnulib.
2582 2006-10-11 Bruno Haible <bruno@clisp.org>
2584 * gnulib-tool (func_usage): Make module names after --create-testdir
2586 (func_create_testdir): If no module was specified, use nearly all
2589 2006-10-12 Jim Meyering <jim@meyering.net>
2591 Big performance improvement for fts-based tools that use FTS_NOSTAT.
2592 Avoid spurious inode-mismatch problems on non-POSIX file systems.
2593 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
2594 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
2595 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
2596 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
2597 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
2598 (fts_set_stat_required): New function.
2599 (fts_open): Defer the calls to fts_stat, if possible or requested.
2600 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
2601 into fts_stat itself.
2602 (fts_read): Perform any required (deferred) fts_stat call.
2603 (fts_build): Likewise, for the directory we're about to open and read.
2604 In the readdir loop, carefully decide whether each entry will require
2605 an eventual call to fts_stat, using dirent.d_type info if available.
2606 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
2607 a command line argument into this function. Update all callers.
2608 Map a return value of FTS_DOT to FTS_D for a command line argument.
2609 * modules/fts (Depends-on): Add d-type. Alphabetize.
2610 Thanks to Miklos Szeredi for his tenacity and for the initial
2611 bug report about "find" failing on a FUSE-based file system.
2613 * lib/fts.c (fts_open): Use consistent indentation.
2615 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
2617 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
2618 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
2619 reported by Jim Meyering. All uses of cache variables renamed
2620 to match Autoconf's.
2621 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
2624 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2625 Fix misspelling in diagnostic.
2627 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
2629 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
2630 defined. Problem reported by Matthew Woehlke.
2632 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
2633 Add support for Tandem NonStop R series.
2634 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
2637 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
2638 (has_trailing_slash): Omit size arg; all callers changed.
2639 Omit 'inline', since it doesn't help performance and we'd
2640 need to configure it.
2641 Don't count //, ///, etc. as having a trailing slash.
2642 As a side effect, this removes a C99ism reported by Matthew Woehlke.
2643 (rpl_rename_dest_slash): On failure, use rename's errno rather
2644 than (in some cases) an incorrect or junk errno.
2645 Simplify code by removing need to compute length; this does
2646 cause it to make two passes instead of one over the file name,
2649 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
2650 change, since Autoconf's version may no longer be appropriate now
2651 that we are using CVS Autoconf's version. Add support for Tandem.
2653 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
2654 Bruno Haible <bruno@clisp.org>
2656 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
2657 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
2658 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
2659 gl_AC_TYPE_LONG_LONG.
2661 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
2662 instead of HAVE_LONG_LONG.
2663 * lib/printf-args.c (printf_fetchargs): Likewise.
2664 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
2665 * lib/vasnprintf.c (VASNPRINTF): Likewise.
2666 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
2667 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
2668 gl_AC_TYPE_LONG_LONG.
2670 2006-10-11 Bruno Haible <bruno@clisp.org>
2672 * m4/longlong.m4: Add comments.
2673 * m4/ulonglong.m4: Likewise.
2675 2006-10-10 Bruno Haible <bruno@clisp.org>
2677 Make it possible to #define stpcpy, strdup to aliases.
2678 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
2679 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
2681 2006-10-10 Bruno Haible <bruno@clisp.org>
2683 Make it possible to #define gcd to an alias.
2684 * lib/gcd.c: Include config.h.
2686 2006-10-10 Bruno Haible <bruno@clisp.org>
2688 Make it possible to #define c_isascii to an alias.
2689 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
2690 defined. Undefine the macros before defining them, to avoid gcc
2692 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
2693 define NO_C_CTYPE_MACROS early.
2695 2006-10-10 Bruno Haible <bruno@clisp.org>
2697 Make it possible to #define set_program_name to an alias.
2698 * lib/progname.c: Don't undefine set_program_name; instead, undefine
2699 ENABLE_RELOCATABLE early.
2701 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
2703 Port to Tandem NSK OSS, which has 64-bit signed int but at most
2704 32-bit unsigned int. Problem reported by Matthew Woehlke in:
2705 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
2706 More generally, don't assume that 64-bit signed int is available
2707 if unsigned int is, and vice versa.
2708 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
2709 unsigned symbols, not on their signed counterparts.
2710 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
2711 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
2712 (UINT64_C, UINTMAX_C):
2714 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
2715 unsigned counterparts.
2716 (Have_long_long, Unsigned): New macros.
2717 (Int): Renamed from INT.
2718 (strtoimax): Use the new macros.
2719 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
2720 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
2721 * modules/inttypes (inttypes.h): Substitute
2722 HAVE_UNSIGNED_LONG_LONG_INT.
2723 * modules/stdint (stdint.h): Likewise.
2724 (Files): Add m4/ulonglong.m4.
2726 2006-10-10 Bruno Haible <bruno@clisp.org>
2728 Fix a gcc -Wshadow warning.
2729 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
2731 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
2732 gl_linked_indexof_from_to): Likewise.
2733 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
2735 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
2737 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
2738 Reported by Eric Blake.
2740 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
2742 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
2743 for NetBSD. Problem reported by Bruno Haible.
2745 2006-10-09 Jim Meyering <jim@meyering.net>
2747 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
2748 Patch from Bruno Haible.
2750 2006-10-09 Jim Meyering <jim@meyering.net>
2752 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
2753 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
2754 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
2756 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
2758 Don't include <config.h> twice; this doesn't work in some cases,
2759 e.g., when config.h has "#define intmax_t long long int" and
2760 we include <config.h>, <inttypes.h>, <config.h> in that order.
2761 Problem reported by Matthew Woehlke in:
2762 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
2763 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
2764 * lib/fts-cycle.c: Don't include config.h.
2765 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
2766 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
2767 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
2768 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
2770 * lib/xstrtoumax.c: Likewise.
2771 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
2772 __strtol and the like, so that this module is more like its siblings.
2773 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
2774 Remove; no longer needed now that we assume gnulib inttypes.h.
2776 2006-10-08 Bruno Haible <bruno@clisp.org>
2778 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
2781 2006-10-07 Jim Meyering <jim@meyering.net>
2783 * modules/inttypes (inttypes.h): Revert what seems to have been
2784 an inadvertent part of today's change: use "|", not "/" in the
2785 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
2787 2006-10-07 Bruno Haible <bruno@clisp.org>
2789 * modules/sublist: New file.
2791 2006-10-07 Bruno Haible <bruno@clisp.org>
2793 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
2794 * modules/argz (argz.h): Likewise.
2795 * modules/arpa_inet (arpa/inet.h): Likewise.
2796 * modules/byteswap (byteswap.h): Likewise.
2797 * modules/configmake (configmake.h): Likewise.
2798 * modules/fcntl (fcntl.h): Likewise.
2799 * modules/fnmatch (fnmatch.h): Likewise.
2800 * modules/getopt (getopt.h): Likewise.
2801 * modules/glob (glob.h): Likewise.
2802 * modules/inttypes (inttypes.h): Likewise.
2803 * modules/netinet_in (netinet/in.h): Likewise.
2804 * modules/poll (poll.h): Likewise.
2805 * modules/stdbool (stdbool.h): Likewise.
2806 * modules/stdint (stdint.h): Likewise.
2807 * modules/sys_select (sys/select.h): Likewise.
2808 * modules/sys_socket (sys/socket.h): Likewise.
2809 * modules/sys_stat (sys/stat.h): Likewise.
2810 * modules/sysexits (sysexits.h): Likewise.
2811 * modules/unistd (unistd.h): Likewise.
2812 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2813 Add a "DO NOT EDIT" comment to the generated file.
2814 (func_import): Likewise for gnulib-comp.m4.
2816 2006-10-07 Bruno Haible <bruno@clisp.org>
2818 * lib/gl_sublist.h: New file.
2819 * lib/gl_sublist.c: New file.
2821 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
2823 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
2824 name (relative to the original working directory) and the file
2825 name component (relative to the temporary working directory). All
2827 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
2828 * lib/mkdir-p.c (make_dir_parents): Likewise.
2829 * lib/mkdir-p.h (make_dir_parents): Likewise.
2831 2006-10-06 Eric Blake <ebb9@byu.net>
2833 Define several macros for use by the clean-temp module.
2834 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
2835 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
2836 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
2838 * lib/clean-temp.h (close_stream_temp): New declaration.
2839 * lib/clean-temp.c (includes): Pull in headers according to what
2840 other modules are in use.
2841 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
2843 2006-10-06 Bruno Haible <bruno@clisp.org>
2845 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
2846 instead of fopen, fwriteerror.
2848 2006-10-06 Bruno Haible <bruno@clisp.org>
2850 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
2851 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
2853 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
2854 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
2855 Return an error indicator.
2856 Suggested by Eric Blake.
2858 2006-10-06 Bruno Haible <bruno@clisp.org>
2860 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
2861 Reported by Eric Blake.
2863 2006-10-06 Bruno Haible <bruno@clisp.org>
2865 * modules/closeout (Description): Mention stderr too.
2867 2006-10-06 Bruno Haible <bruno@clisp.org>
2868 and Paul Eggert <eggert@cs.ucla.edu>
2870 * lib/closeout.c (close_stdout): Also close stderr.
2871 * lib/closeout.h: Update comment.
2873 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
2875 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
2876 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
2877 * lib/dirchownmod.c: Include lchown.h.
2878 * lib/lchown.c: Don't include files that lchown.h now includes.
2879 Don't declare chown, since lchown.h now does that.
2880 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
2881 (lchown): Define to rpl_chown if lchown is declared but
2882 does not exist. Declare using a prototype if lchown is not
2883 declared. Add a copyright notice.
2884 * lib/mkstemp.h: Include <unistd.h>.
2885 * lib/openat.c: Include lchown.h.
2887 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
2888 we now test for that separately.
2889 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
2890 rather than O_NOFOLLOW, when testing whether it's possible to
2891 avoid a race condition reliably.
2892 * lib/savewd.c (savewd_chdir): Likewise.
2894 Remove macros that are no longer needed now that stdint.h is
2896 * lib/fsusage.c (UINTMAX_MAX): Remove.
2897 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
2898 * lib/utimecmp.c (SIZE_MAX): Remove.
2900 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
2902 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
2903 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
2906 2006-10-05 Bruno Haible <bruno@clisp.org>
2908 * lib/gl_list.h (gl_sortedlist_search_from_to,
2909 gl_sortedlist_indexof_from_to): New declarations.
2910 (gl_list_implementation): New fields sortedlist_search_from_to,
2911 sortedlist_indexof_from_to.
2912 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
2914 * lib/gl_list.c (gl_sortedlist_search_from_to,
2915 gl_sortedlist_indexof_from_to): New functions.
2916 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
2918 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
2919 (gl_array_sortedlist_search_from_to): New function.
2920 (gl_array_list_implementation): Update.
2921 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
2923 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
2924 (gl_carray_sortedlist_search_from_to): New function.
2925 (gl_carray_list_implementation): Update.
2926 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
2927 gl_linked_sortedlist_indexof_from_to): New functions.
2928 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2929 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2930 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
2931 gl_tree_sortedlist_indexof_from_to): New functions.
2932 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2933 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2935 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2936 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
2939 2006-10-05 Bruno Haible <bruno@clisp.org>
2941 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
2942 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
2943 (struct gl_list_implementation): Add fields search_from_to,
2944 indexof_from_to. Remove fields search, indexof.
2945 (gl_list_search): Use the search_from_to method.
2946 (gl_list_search_from, gl_list_search_from_to): New functions.
2947 (gl_list_indexof): Use the indexof_from_to method.
2948 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2949 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
2950 (gl_list_search_from, gl_list_search_from_to): New functions.
2951 (gl_list_indexof): Use the indexof_from_to method.
2952 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
2953 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
2954 gl_array_indexof. Add start_index, end_index arguments.
2955 (gl_array_search_from_to): Renamed from gl_array_search. Add
2956 start_index, end_index arguments.
2957 (gl_array_remove, gl_array_list_implementation): Update.
2958 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
2959 gl_carray_indexof. Add start_index, end_index arguments.
2960 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
2961 start_index, end_index arguments.
2962 (gl_carray_remove, gl_carray_list_implementation): Update.
2963 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
2964 gl_linked_search. Add start_index, end_index arguments.
2965 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
2966 start_index, end_index arguments.
2967 (gl_linked_remove): Update.
2968 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
2969 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
2970 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
2972 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
2973 gl_tree_search. Add start_index, end_index arguments.
2974 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2975 start_index, end_index arguments.
2976 (gl_tree_remove): Update.
2977 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
2978 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
2979 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
2981 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
2982 gl_tree_search. Add start_index, end_index arguments.
2983 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
2984 start_index, end_index arguments.
2985 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
2987 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
2989 2006-10-05 Bruno Haible <bruno@clisp.org>
2991 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
2993 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2994 fwriteerror_temp): New declarations.
2995 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
2996 (descriptors): New variable.
2997 (cleanup): First, close the descriptors.
2998 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
2999 fclose_temp, fwriteerror_temp): New functions.
3001 2006-10-04 Jim Meyering <jim@meyering.net>
3003 * lib/fts.c (fts_open): Tiny comment change.
3005 2006-10-04 Bruno Haible <bruno@clisp.org>
3007 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3008 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3010 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3011 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3013 (gl_LOCK): Require gl_LOCK_BODY.
3015 2006-10-04 Bruno Haible <bruno@clisp.org>
3017 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3018 (gl_oset_search_atleast): New declaration.
3019 (struct gl_oset_implementation): Add field 'search_atleast'.
3020 (gl_oset_search_atleast): New inline function.
3021 * lib/gl_oset.c (gl_oset_search_atleast): New function.
3022 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3023 (gl_array_oset_implementation): Update.
3024 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3025 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3026 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3028 2006-10-04 Bruno Haible <bruno@clisp.org>
3030 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3032 2006-10-03 Bruno Haible <bruno@clisp.org>
3034 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3035 from gl_avltreehash_list_implementation.
3037 2006-10-03 Bruno Haible <bruno@clisp.org>
3039 * lib/gl_oset.c (gl_oset_add): Fix return type.
3041 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
3043 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3045 2006-10-02 Eric Blake <ebb9@byu.net>
3047 * modules/strnlen (Depends-on): Add extensions.
3049 2006-10-02 Eric Blake <ebb9@byu.net>
3051 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3052 definition in 2.60+.
3054 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
3056 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3059 2006-10-02 Bruno Haible <bruno@clisp.org>
3061 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3062 to the AUTOMAKE_OPTIONS.
3063 Reported by Jim Meyering.
3065 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
3067 Work around bug in Solaris 10 /proc file system:
3068 /proc/self/fd/NNN/.. isn't the parent directory of
3069 the directory whose file descriptor is NNN. This needs to
3070 be worked around at run time, not compile time, since a
3071 program might be built on Solaris 8, where things work, and
3073 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
3074 to use the following interface instead:
3075 (OPENAT_BUFFER_SIZE): New macro.
3076 (openat_proc_name): New function.
3077 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3078 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3080 * lib/openat-proc.c: New file.
3081 * modules/openat (Files): Add lib/openat-proc.c.
3082 (Depends-on): Add same-inode, stdbool.
3083 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
3085 2006-09-29 Bruno Haible <bruno@clisp.org>
3087 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
3088 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
3089 argument. Set stdout_closed before testing for ferror, not after.
3090 (fwriteerror, fwriteerror_no_ebadf): New functions.
3092 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3094 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
3096 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
3098 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
3099 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
3101 2006-09-28 Jim Meyering <jim@meyering.net>
3103 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
3106 2006-09-28 Bruno Haible <bruno@clisp.org>
3108 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
3109 * modules/linkedhash-list (Depends-on): Likewise.
3110 * modules/rbtreehash-list (Depends-on): Likewise.
3112 2006-09-28 Bruno Haible <bruno@clisp.org>
3114 * lib/strndup.h: Simplify the redefinition of strndup.
3115 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
3116 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
3118 2006-09-28 Bruno Haible <bruno@clisp.org>
3120 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
3121 * lib/gl_linkedhash_list.c: Likewise.
3122 * lib/gl_rbtreehash_list.c: Likewise.
3124 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
3126 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
3129 * lib/__fpending.h: Don't include <stdio_ext.h> unless
3130 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
3131 it causes <stdio_ext.h> to cause a compile-time error.
3132 Problem reported by Nelson H. F. Beebe.
3133 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
3134 of HAVE_DECL___PENDING.
3136 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
3137 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
3140 2006-09-27 Jim Meyering <jim@meyering.net>
3142 This file could end up with a definition for a function
3143 named __strndup, rather than rpl_strndup on a system with
3144 incomplete weak_alias support.
3145 * lib/strndup.c (strndup): Rename from __strndup.
3146 Remove #defines that used to map __strndup to strndup.
3147 Don't use K&R prototypes.
3148 Remove LIBC-related code, since this file is not sync'd with glibc.
3149 * lib/strndup.h: Revamp, accordingly.
3150 * m4/strndup.m4: Modernize.
3152 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
3154 * modules/savewd (Depends-on): Add 'raise'.
3155 * lib/savewd.c: Include <signal.h>, for 'raise'.
3157 2006-09-26 Jim Meyering <jim@meyering.net>
3159 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
3160 when we detect Darwin 8.7.0's acl_get_file bug.
3161 Rearrange to perform the new (below) run-test while $LIBS
3162 contains any acl-related library. Set USE_ACL at the end.
3163 (gl_ACL_GET_FILE): New function.
3165 2006-09-26 Eric Blake <ebb9@byu.net>
3167 * lib/verror.c: Include <config.h> unconditionally.
3169 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
3171 * modules/clock-time (Maintainer): Add self.
3172 * modules/getlogin_r (Depends-on): Add extensions.
3174 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3176 * modules/clock-time: New module.
3177 * modules/nanosleep (Depends-on): Add clock-time.
3178 * modules/gethrxtime (Depends-on): Likewise.
3179 * modules/gettime (Depends-on): Likewise.
3180 * modules/settime (Depends-on): Likewise.
3182 * modules/fts-lgpl: Depend on openat.
3183 * modules/mkancesdirs: Depend on savewd.
3184 * modules/mkdir-p: Likewise.
3186 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3188 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
3190 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
3191 `gl_have_arbitrary_file_name_length_limit' to
3192 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
3193 actually works between configure runs.
3195 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3196 Bruno Haible <bruno@clisp.org>
3198 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
3200 2006-09-25 Jim Meyering <jim@meyering.net>
3202 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
3203 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
3205 2006-09-25 Eric Blake <ebb9@byu.net>
3207 * gnulib-tool (func_import, func_create_testdir): Fix typos in
3208 exec's in 2006-09-18 patch when shuffling fds.
3210 2006-09-25 Bruno Haible <bruno@clisp.org>
3212 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
3213 Reported by Jim Meyering.
3215 2006-09-24 Jim Meyering <jim@meyering.net>
3217 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
3218 compare a pointer against a literal "0". That caused failures with
3219 at least HP-UX's hpcc.
3221 2006-09-22 Simon Josefsson <jas@extundo.com>
3225 * modules/gc-hmac-sha1:
3226 * modules/gc-hmac-md5:
3228 * modules/gc-arcfour: Distribute more files.
3230 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3232 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
3233 (gl_linked_iterator_from_to): Initialize struct completely.
3234 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
3235 (gl_tree_iterator_from_to): Likewise
3236 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
3237 * lib/gl_array_list.c [lint] (gl_array_iterator)
3238 (gl_array_iterator_from_to): Likewise.
3239 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
3240 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
3241 (gl_carray_iterator_from_to): Likewise.
3243 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
3244 * lib/md4.c (md4_process_block): Remove unused variable.
3245 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
3246 parentheses for clarity.
3248 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3250 * modules/bison-i18n (Depends-on): Add gettext.
3252 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3254 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
3255 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
3256 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
3257 also add missing comma that caused broken test.
3258 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
3259 stdlib.h, for `abort'.
3260 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
3262 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
3263 include unistd.h if present, for `rmdir'.
3264 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
3266 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
3267 in the process include standard headers for prototypes.
3268 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
3269 gets declared on GNU/Linux.
3270 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
3271 unistd.h, for `rmdir'.
3272 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
3274 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
3276 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
3278 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
3280 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3282 * gnulib-tool (func_version): Create output all at once. This
3283 may help avoid triggering unnecessary SIGPIPEs, and at any
3284 rate it doesn't hurt.
3286 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3287 Bruno Haible <bruno@clisp.org>
3289 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
3290 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3291 * m4/signed.m4 (bh_C_SIGNED): Likewise.
3293 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
3294 (gl_FUNC_VASPRINTF): Invoke it.
3296 2006-09-22 Bruno Haible <bruno@clisp.org>
3298 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
3299 getloadavg.c as first argument.
3301 2006-09-22 Bruno Haible <bruno@clisp.org>
3303 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
3304 at the beginning of the gl_INIT macro.
3305 * modules/getloadavg (configure.ac): Pass $gl_source_base to
3308 2006-09-22 Bruno Haible <bruno@clisp.org>
3310 * gnulib-tool (func_create_megatestdir): Don't include the config-h
3312 Suggested by Ralf Wildenhues.
3314 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
3316 Import this patch from libc:
3318 2006-09-06 Jakub Jelinek <jakub@redhat.com>
3320 * lib/regex_internal.c (re_string_reconstruct): Handle
3321 offset < pstr->valid_raw_len && pstr->offsets_needed case.
3322 Ensure no bytes read before raw_mbs array. Pass a saved copy of
3323 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
3324 re_string_context_at.
3326 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
3328 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
3329 gl_REGEX now does it for us.
3330 (gl_REGEX): Add test taken from
3331 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
3333 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
3334 Check that large offsets work. Modernize Autoconf usages.
3335 Prefer "yes" to mean a good thing rather than a bad.
3336 Don't put "#define mkstemp" in config.h, as this might interfere
3337 with standard system headers that "#define mkstemp mkstemp64".
3339 * modules/mkstemp (Depends-on): Add extensions, so that
3340 mkstemp is visible on some platforms.
3341 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
3342 (Include): Change to "mkstemp.h" from <stdlib.h>.
3343 (Files): Add mkstemp.h.
3345 * lib/mkstemp.h: New file, since some standard headers
3347 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
3348 Include "mkstemp.h".
3349 Make the _LIBC code resemble glibc original more,
3350 e.g., use K&R style.
3351 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
3352 (mkstemp): Remove, since mkstemp.h does this for us.
3353 * lib/stdlib--.h: Include mkstemp.h.
3355 Import this patch from libc:
3357 2006-04-07 Ulrich Drepper <drepper@redhat.com>
3359 * lib/tempname.c (__gen_tempname): Change attempts_min
3360 into a macro. Use preprocessor to decide how to initialize
3361 attempts [Coverity CID 67].
3363 2006-09-20 Bruno Haible <bruno@clisp.org>
3365 * lib/mkdtemp.c: Import from libc.
3366 2006-04-07 Ulrich Drepper <drepper@redhat.com>
3367 * sysdeps/posix/tempname.c (__gen_tempname): Change
3368 attempts_min into a macro. Use preprocessor to decide how to
3369 initialize attempts [Coverity CID 67].
3370 2001-11-27 Paul Eggert <eggert@twinsun.com>
3371 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
3372 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
3374 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3376 * gnulib-tool (func_exit): New function, to allow to pass the
3377 exit status portably through the trap. Use everywhere.
3378 (--help, --version): Signal a write error.
3379 (trap): catch SIGPIPE, for write errors.
3380 Exit at the end of the trap, with the correct exit status.
3382 2006-09-19 Karl Berry <karl@gnu.org>
3384 * doc/gnulib.texi: note about the license texinfo files.
3386 2006-09-19 Eric Blake <ebb9@byu.net>
3388 * gnulib-tool: Avoid space-tab.
3390 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
3392 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
3393 that prevented coreutils 6.1 from building. Problem reported
3394 by Petter Reinholdtsen.
3396 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
3398 * gnulib-tool (avoidlist): Fix typo that broke options like
3399 --avoid=lock that are used by coreutils bootstrap.
3401 2006-09-18 Mark D. Baushke <mdb@gnu.org>
3403 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
3404 more systematically.
3406 2006-09-18 Jim Meyering <jim@meyering.net>
3408 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
3410 2006-09-18 Bruno Haible <bruno@clisp.org>
3412 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
3414 2006-09-18 Bruno Haible <bruno@clisp.org>
3416 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
3417 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
3418 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
3419 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
3420 * m4/gettext.m4: Require autoconf >= 2.52.
3421 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
3422 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
3423 of gl_cv_header_inttypes_h.
3425 2006-09-18 Bruno Haible <bruno@clisp.org>
3427 * lib/javaversion.c: Include configmake.h.
3429 2006-09-18 Bruno Haible <bruno@clisp.org>
3431 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
3432 avoid that the while loops be executed in a subshell.
3434 2006-09-18 Bruno Haible <bruno@clisp.org>
3436 * MODULES.html.sh (func_module): Break long lines.
3437 Suggested by Bruce Korb <bkorb@gnu.org>.
3439 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3441 Speed up by a factor of 1.12.
3442 * gnulib-tool (nl): New variable.
3443 (func_import): Rewrite include directive extraction to only read each
3446 2006-09-17 Bruno Haible <bruno@clisp.org>
3448 * modules/javaversion (Makefile.am): Remove DEFS setting.
3449 (Depends-on): Add configmake, for PKGDATADIR definition.
3451 2006-09-17 Bruno Haible <bruno@clisp.org>
3453 * gnulib-tool (func_create_testdir): Rewrite all files at once.
3455 2006-09-17 Bruno Haible <bruno@clisp.org>
3457 * gnulib-tool (func_append): New function, stolen from libtool.m4.
3458 (func_modules_transitive_closure, func_modules_add_dummy,
3459 func_modules_to_filelist, func_import, func_create_testdir,
3460 func_create_megatestdir, ...): Use it wherever possible.
3461 Suggested by Ralf Wildenhues.
3463 2006-09-16 Karl Berry <karl@gnu.org>
3465 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
3466 to avoid sectioning errors.
3467 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
3468 [ifinfo]: blank line after @center-ed titles.
3469 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
3470 Spell FSF address consistently with others.
3471 (These changes approved by rms.)
3473 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3475 Speed up by a factor of 1.61.
3476 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
3477 already checked module names again.
3479 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3481 Speed up by a factor of 1.13.
3482 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
3483 for new_files, and the input to func_add_or_update.
3485 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3487 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
3488 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
3490 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
3492 * modules/mkancesdirs (Depends-on): Add fcntl.
3493 * modules/savewd: New file.
3494 * MODULES.html.sh (File system functions): Add savewd.
3496 * modules/configmake (Makefile.am): Add support for the
3497 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
3499 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
3501 * m4/savewd.m4: New file.
3503 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
3505 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
3506 (dirchownmod): New arg FD. All callers changed.
3507 Use FD rather than opening the directory ourself, as opening is
3508 now the caller's responsibility.
3509 * lib/dirchownmod.h: Likewise.
3510 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
3511 hosts that require <sys/types.h> before <sys/stat.h>. Include
3512 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
3514 (mkancesdirs): Return length of prefix of FILE that has already
3515 been made, or -2 if there is a child doing the work. Redo
3516 algorithm so that it is O(N) rather than O(N**2). Optimize away
3517 ".", and treat ".." specially since it might stray back into
3518 already-created areas. Use a subprocess if necessary. New arg
3519 WD; all users changed. MAKE_DIR function should now return 1
3520 if it creates a directory that is not readable. Return -2 if
3521 a child process is spun off.
3522 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
3523 Adjust signature to match code.
3524 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
3525 (make_dir_parents): Use a subprocess if necessary. New arg WD;
3527 * lib/savewd.c, lib/savewd.h: New files.
3529 2006-09-15 Jim Meyering <jim@meyering.net>
3531 * modules/rename-dest-slash: New module.
3532 * MODULES.html.sh (posix_compat): Add it here.
3534 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
3536 2006-09-15 Jim Meyering <jim@meyering.net>
3538 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
3541 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
3543 2006-09-15 Jim Meyering <jim@meyering.net>
3545 * lib/rename-dest-slash.c (has_trailing_slash): Use
3546 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
3547 (rpl_rename_dest_slash): Perform the cheaper trailing slash
3548 test before testing whether SRC is a directory.
3549 Suggestions from Bruno Haible.
3551 Avoid a warning about an unused variable.
3552 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
3553 into the #ifdef block where it's used.
3555 * lib/rename-dest-slash.c: New file.
3557 2006-09-14 Bruno Haible <bruno@clisp.org>
3559 * lib/allocsa.c: Include <config.h> unconditionally.
3560 * lib/asnprintf.c: Likewise.
3561 * lib/asprintf.c: Likewise.
3562 * lib/c-strcasecmp.c: Likewise.
3563 * lib/c-strcasestr.c: Likewise.
3564 * lib/c-strncasecmp.c: Likewise.
3565 * lib/c-strstr.c: Likewise.
3566 * lib/classpath.c: Likewise.
3567 * lib/clean-temp.c: Likewise.
3568 * lib/concatpath.c: Likewise.
3569 * lib/copy-file.c: Likewise.
3570 * lib/csharpcomp.c: Likewise.
3571 * lib/csharpexec.c: Likewise.
3572 * lib/execute.c: Likewise.
3573 * lib/fatal-signal.c: Likewise.
3574 * lib/findprog.c: Likewise.
3575 * lib/fwriteerror.c: Likewise.
3576 * lib/gl_array_list.c: Likewise.
3577 * lib/gl_array_oset.c: Likewise.
3578 * lib/gl_avltree_list.c: Likewise.
3579 * lib/gl_avltree_oset.c: Likewise.
3580 * lib/gl_avltreehash_list.c: Likewise.
3581 * lib/gl_carray_list.c: Likewise.
3582 * lib/gl_linked_list.c: Likewise.
3583 * lib/gl_linkedhash_list.c: Likewise.
3584 * lib/gl_list.c: Likewise.
3585 * lib/gl_oset.c: Likewise.
3586 * lib/gl_rbtree_list.c: Likewise.
3587 * lib/gl_rbtree_oset.c: Likewise.
3588 * lib/gl_rbtreehash_list.c: Likewise.
3589 * lib/imaxabs.c: Likewise.
3590 * lib/imaxdiv.c: Likewise.
3591 * lib/javacomp.c: Likewise.
3592 * lib/javaexec.c: Likewise.
3593 * lib/javaversion.c: Likewise.
3594 * lib/linebreak.c: Likewise.
3595 * lib/localcharset.c: Likewise.
3596 * lib/lock.c: Likewise.
3597 * lib/mbchar.c: Likewise.
3598 * lib/mbswidth.c: Likewise.
3599 * lib/mkdtemp.c: Likewise.
3600 * lib/pipe.c: Likewise.
3601 * lib/printf-args.c: Likewise.
3602 * lib/printf-parse.c: Likewise.
3603 * lib/progname.c: Likewise.
3604 * lib/progreloc.c: Likewise.
3605 * lib/readlink.c: Likewise.
3606 * lib/sh-quote.c: Likewise.
3607 * lib/stpcpy.c: Likewise.
3608 * lib/stpncpy.c: Likewise.
3609 * lib/strcasecmp.c: Likewise.
3610 * lib/strcasestr.c: Likewise.
3611 * lib/strcspn.c: Likewise.
3612 * lib/striconv.c: Likewise.
3613 * lib/strncasecmp.c: Likewise.
3614 * lib/strnlen1.c: Likewise.
3615 * lib/strstr.c: Likewise.
3616 * lib/strtok_r.c: Likewise.
3617 * lib/tls.c: Likewise.
3618 * lib/tmpdir.c: Likewise.
3619 * lib/unicodeio.c: Likewise.
3620 * lib/unsetenv.c: Likewise.
3621 * lib/vasnprintf.c: Likewise.
3622 * lib/vasprintf.c: Likewise.
3623 * lib/wait-process.c: Likewise.
3624 * lib/xallocsa.c: Likewise.
3625 * lib/xsetenv.c: Likewise.
3626 * lib/xstriconv.c: Likewise.
3628 2006-09-13 Simon Josefsson <jas@extundo.com>
3630 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
3631 that internally, suggested by Ralf Wildenhues
3632 <Ralf.Wildenhues@gmx.de>.
3634 2006-09-13 Simon Josefsson <jas@extundo.com>
3636 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
3638 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3640 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
3642 * lib/_fpending.c: Include <config.h> unconditionally, since we no
3643 longer worry about uses that don't define HAVE_CONFIG_H.
3644 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
3645 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
3646 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
3647 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
3648 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
3649 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
3650 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
3651 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
3652 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
3653 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
3654 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
3655 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
3656 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
3657 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
3658 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
3659 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
3660 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
3661 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
3662 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
3663 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
3664 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
3665 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
3666 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
3667 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
3668 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
3669 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
3670 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
3671 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
3672 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
3673 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
3674 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
3675 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
3676 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
3677 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
3678 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
3679 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
3680 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
3681 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
3682 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
3683 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
3684 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
3687 2006-09-13 Eric Blake <ebb9@byu.net>
3689 * lib/getopt.c: Fix typo in last commit.
3691 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
3693 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
3696 2006-09-12 Jim Meyering <jim@meyering.net>
3698 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
3699 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
3700 Reported by Nelson H. F. Beebe.
3702 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
3704 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
3705 program_invocation_name and program_invocation_short_name are
3707 * lib/argp-namefrob.h: Move declarations of program_invocation_name
3708 and program_invocation_short_name to argp.h, so they are visible
3710 * lib/argp.h: Likewise
3712 2006-09-10 Bruno Haible <bruno@clisp.org>
3714 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
3715 m4/inttypes_h.m4, m4/uintmax_t.m4.
3717 2006-09-10 Bruno Haible <bruno@clisp.org>
3719 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
3720 gl_AC_TYPE_UINTMAX_T.
3722 2006-09-10 Bruno Haible <bruno@clisp.org>
3724 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
3726 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
3728 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
3729 convention. Text proposed by Bruno Haible.
3730 (struct argp_option): Document the use of N_() wrappers.
3732 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
3733 '\v', and translate the two parts separately, instead of feeding
3734 the whole string to gettext. This allows to exclude
3735 '\v' from the strings visible to the translator by writing doc
3736 strings as N_("..") "\v" N_("..").
3738 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
3740 * config/srclist.txt: Undo latest change; the bug was fixed.
3742 2006-09-09 Bruno Haible <bruno@clisp.org>
3744 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
3745 assignments if building a library without libtool.
3746 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
3747 in func_emit_lib_Makefile_am.
3748 (func_import): When building a static library libfoo.a, arrange to
3749 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
3750 (func_create_testdir): Likewise.
3751 * modules/gc (configure.ac, Makefile.am): If building statically,
3752 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
3753 * modules/iconvme (configure.ac, Makefile.am): Likewise.
3754 * modules/striconv (configure.ac, Makefile.am): Likewise.
3755 Based on a suggestion by Ralf Wildenhues.
3757 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
3759 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
3760 Check for unistd.h too, since Autoconf doesn't assume POSIX.
3763 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
3764 Add year_2050_test to catch glibc bug 2821
3765 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3767 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
3768 Prefer #ifdef to #if.
3770 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
3771 Return from 'main' instead of calling 'exit'.
3773 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
3775 * lib/mktime.c (guess_time_tm): Fix bug where mktime
3776 returned the maximum time_t value rather than (time_t) -1.
3777 Problem originally reported by William Bardwell
3778 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
3780 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3782 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
3785 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
3787 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
3790 2006-09-08 Jim Meyering <jim@meyering.net>
3792 Don't make generated files read-only. That would bother too many
3793 people. However, do retain the ability to work when targets are
3794 read-only: remove the destination and temporary files before writing
3795 them (when generated via sed or echo), or by using the -f option for
3796 both cp and mv commands. Suggestion to use -f from Paul Eggert.
3797 * modules/alloca-opt, modules/argz, modules/arpa_inet:
3798 * modules/byteswap, modules/configmake, modules/fcntl:
3799 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3800 * modules/localcharset, modules/netinet_in, modules/poll:
3801 * modules/stdbool, modules/stdint, modules/sys_select:
3802 * modules/sys_socket, modules/sys_stat, modules/sysexits:
3804 2006-09-08 Jim Meyering <jim@meyering.net>
3806 Avoid new build failure on FreeBSD 6.0.
3807 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
3808 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
3809 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
3811 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3813 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
3815 2006-09-07 Jim Meyering <jim@meyering.net>
3817 Fix global typo in last change: use chmod u-w, not chmod u-x.
3818 Spotted by Paul Eggert and Bruce Korb.
3819 * modules/alloca-opt, modules/argz, modules/arpa_inet:
3820 * modules/byteswap, modules/configmake, modules/fcntl:
3821 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
3822 * modules/localcharset, modules/netinet_in, modules/poll:
3823 * modules/stdbool, modules/stdint, modules/sys_select:
3824 * modules/sys_socket, modules/sys_stat, modules/sysexits:
3826 2006-09-06 Jim Meyering <jim@meyering.net>
3828 Make generated files be read-only.
3829 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
3830 Ensure that each generated file is now read-only.
3831 * modules/argz: Likewise.
3832 * modules/arpa_inet: Likewise.
3833 * modules/byteswap: Likewise.
3834 * modules/configmake: Likewise.
3835 * modules/fcntl: Likewise.
3836 * modules/fnmatch: Likewise.
3837 * modules/getopt: Likewise.
3838 * modules/glob: Likewise.
3839 * modules/inttypes: Likewise.
3840 * modules/netinet_in: Likewise.
3841 * modules/poll: Likewise.
3842 * modules/stdbool: Likewise.
3843 * modules/stdint: Likewise.
3844 * modules/sys_select: Likewise.
3845 * modules/sys_socket: Likewise.
3846 * modules/sys_stat: Likewise.
3847 * modules/sysexits: Likewise.
3848 * modules/localcharset: Same as above, but continue using temporary
3849 file named "t-$@" (why different?) rather than the "$@-t" used
3852 * modules/sysexits (Makefile.am): Replace literal occurrences
3853 of "sysexit.h" more readable, and more consistent, "$@".
3855 2006-09-06 Bruno Haible <bruno@clisp.org>
3857 * modules/striconv: New file.
3858 * modules/xstriconv: New file.
3859 * MODULES.html.sh (Internationalization functions): Add striconv,
3862 2006-09-06 Bruno Haible <bruno@clisp.org>
3864 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
3865 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
3866 not using libtool correctly.
3868 2006-09-06 Bruno Haible <bruno@clisp.org>
3870 * lib/striconv.h: New file.
3871 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
3873 * lib/xstriconv.h: New file.
3874 * lib/xstriconv.c: New file.
3876 2006-09-06 Bruno Haible <bruno@clisp.org>
3878 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3881 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3883 * lib/argz_.h: Sync from Libtool.
3885 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
3886 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3888 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
3890 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
3892 * modules/trim: New file.
3894 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
3896 * lib/trim.h: New file.
3897 * lib/trim.c: New file.
3899 2006-09-05 Bruno Haible <bruno@clisp.org>
3901 * MODULES.html.sh (String handling): Add trim.
3903 2006-09-04 Karl Berry <karl@gnu.org>
3905 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
3908 2006-09-03 Bruno Haible <bruno@clisp.org>
3910 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
3913 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
3915 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
3916 not gl_GETLOADAVG. Omit unneeded semicolons.
3917 Problems reported by Ralf Wildenhues in
3918 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3919 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
3920 at the end, which is the usual gnulib style.
3922 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
3923 of doing all the work ourselves.
3924 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
3925 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
3927 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
3929 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
3930 Problem reported by Ralf Wildenhues in
3931 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
3933 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
3934 HAVE_STRUCT_STATFS_F_FSTYPENAME.
3936 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
3938 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
3939 yesterday's patch by changing test -n to test -z.
3941 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
3943 * modules/getloadavg (Files): Add m4/getloadavg.m4.
3944 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
3945 the former is now obsolescent.
3947 * modules/chdir-long (Depends-on): Add fcntl.
3949 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
3951 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
3952 obsolescent, and programs should use gnulib instead.
3953 * m4/getloadavg.m4: New file, with contents taken from Autoconf
3954 but with prefixes changed.
3956 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
3958 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
3959 or stdbool.h, because they might not exist while configuring.
3961 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
3962 Don't include unistd.h or limits.h; not needed, since chdir-long.h
3964 (O_DIRECTORY): Remove.
3966 2006-08-31 Eric Blake <ebb9@byu.net>
3968 * gnulib-tool: Don't let emacs change spaces to TAB.
3970 2006-08-31 Bruno Haible <bruno@clisp.org>
3972 * gnulib-tool: When calling func_import more than once, do it in a
3974 Reported by Eric Blake <ebb9@byu.net>.
3976 2006-08-31 Bruno Haible <bruno@clisp.org>
3978 * gnulib-tool (nl): Remove variable.
3979 (sed_transform_lib_file): Use more robust test for config-h module.
3980 (func_import): Fix typo in 2006-08-25 patch.
3982 2006-08-31 Bruno Haible <bruno@clisp.org>
3984 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
3985 specified, augment Makefile.am variables instead of assigning them.
3987 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
3989 Work around a bug in both the Linux and SunOS 64-bit kernels:
3990 nanosleep mishandles sleeps for longer than 2**31 seconds.
3991 Problem reported by Frank v Waveren in
3992 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
3993 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
3994 Check for nanosleep bug.
3995 (LIB_NANOSLEEP): Append clock_gettime library if needed.
3997 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
3999 Work around a bug in both the Linux and SunOS 64-bit kernels:
4000 nanosleep mishandles sleeps for longer than 2**31 seconds.
4001 Problem reported by Frank v Waveren in
4002 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4003 * lib/nanosleep.c (BILLION): New constant.
4004 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4005 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4008 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
4010 * modules/nanosleep (Depends-on): Add gettime.
4012 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
4013 and Simon Josefsson <jas@extundo.com>
4014 and Oskar Liljeblad <oskar@osk.mine.nu>
4016 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4017 * gnulib-tool (func_import): New license type 'unmodifiable license
4019 * modules/fdl: Use it. Longer description.
4020 * module/gpl, module/lgpl: New files.
4022 2006-08-30 Jim Meyering <jim@meyering.net>
4024 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4025 shadowing the parameter.
4027 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4031 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4033 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4034 sharing with gnulib. Report by Eric Blake.
4036 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4038 * modules/isapipe: New file.
4039 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4041 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4043 * modules/configmake (Makefile.am): Add a comment, and omit
4044 the CONFIGMAKE_ prefix from generated macro names. Suggested
4047 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4049 * m4/isapipe.m4: New file.
4051 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
4053 * lib/isapipe.c, lib/isapipe.h: New files.
4055 2006-08-29 Jim Meyering <jim@meyering.net>
4057 * modules/configmake (Makefile.am): Make configmake.h depend on
4058 Makefile. Otherwise, a stale configmake.h could hang around.
4060 2006-08-29 Eric Blake <ebb9@byu.net>
4062 * lib/error.c (error_at_line, print_errno_message): Match libc, after
4063 resolution of upstream bug 3044.
4065 2006-08-29 Bruno Haible <bruno@clisp.org>
4067 * modules/localcharset (Depends-on): Add configmake.
4068 (Makefile.am): Remove setting of LIBDIR through DEFS.
4070 2006-08-29 Bruno Haible <bruno@clisp.org>
4072 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4075 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4077 * modules/fcntl: New file.
4078 * modules/chdir-safer (Depends-on): Add fcntl.
4079 * modules/fts: Likewise.
4080 * modules/mkdir-p: Likewise.
4082 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
4083 This undoes the most recent change, since we're now addressing the
4084 problem in a different way.
4086 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
4087 into output, since the output might be called Makefile.am even
4088 if $makefile_name is something different.
4089 (func_import): Use $makefile_am rather than
4090 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
4093 * modules/inttypes (Files): Add m4/inttypes-h.m4.
4095 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4097 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
4098 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
4099 recent change to stdint.m4, since we're now addressing the problem in a
4102 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4104 * m4/fcntl_h.m4: New file.
4106 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
4108 * lib/fcntl_.h: New file.
4109 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
4111 * lib/dirchownmod.c: Likewise.
4112 * lib/fts.c: Likewise.
4114 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
4115 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
4116 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
4117 just before including <inttypes.h>, to avoid circular inclusion.
4119 2006-08-28 Jim Meyering <jim@meyering.net>
4121 * doc/visibility.texi: Actually read and correct the grammar of the
4122 sentence affected by yesterday's change.
4124 2006-08-28 Eric Blake <ebb9@byu.net>
4126 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
4129 2006-08-28 Eric Blake <ebb9@byu.net>
4131 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
4133 2006-08-28 Eric Blake <ebb9@byu.net>
4135 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
4137 2006-08-28 Bruno Haible <bruno@clisp.org>
4139 * modules/c-strstr: New file, from GNU gettext.
4140 * MODULES.html.sh (String handling): Add c-strstr.
4142 2006-08-28 Bruno Haible <bruno@clisp.org>
4144 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
4146 Reported by Eric Blake.
4148 2006-08-28 Bruno Haible <bruno@clisp.org>
4150 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
4151 (VASNPRINTF): Return a string of length > INT_MAX without failing.
4152 * lib/vasprintf.c: Include errno.h, limits.h.
4153 (EOVERFLOW): New fallback definition.
4154 (vasprintf): Test here whether the string length is > INT_MAX.
4155 * lib/vsnprintf.c: Include errno.h, limits.h.
4156 (EOVERFLOW): New fallback definition.
4157 (vsnprintf): Fix bug when generated string was too long for the buffer.
4158 Test here whether the string length is > INT_MAX.
4160 2006-08-28 Bruno Haible <bruno@clisp.org>
4162 * lib/inttypes_.h (SCNX*): Remove definitions.
4163 Reported by Eric Blake.
4165 2006-08-28 Bruno Haible <bruno@clisp.org>
4167 * lib/c-strstr.h: New file, from GNU gettext.
4168 * lib/c-strstr.c: New file, from GNU gettext.
4170 2006-08-28 Bruno Haible <bruno@clisp.org>
4172 * gnulib-tool: Reorder some statements.
4174 2006-08-28 Bruno Haible <bruno@clisp.org>
4176 * gnulib-tool: New option --makefile-name.
4177 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
4179 (func_import): Write $makefile_name to the cache file, and read it from
4180 there unless explicitly specified. Use $makefile_name as file name
4181 instead of Makefile.am. Adjust the recommendations accordingly.
4183 2006-08-28 Bruno Haible <bruno@clisp.org>
4185 * gnulib-tool (func_verify_module): Check against misapplying patch.
4187 2006-08-28 Bruno Haible <bruno@clisp.org>
4189 * gnulib-tool (func_relativize, func_relconcat): New functions.
4190 Give an error if --local-dir is given with --update.
4191 Remove trailing slashes from $local_gnulib_dir.
4192 (func_import): Store the relativized $local_gnulib_dir in
4193 gnulib-cache.m4, and read it from there if not specified explicitly.
4195 2006-08-28 Bruno Haible <bruno@clisp.org>
4197 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
4198 is the current directory. Respect also $local_gnulib_dir.
4200 2006-08-28 Bruno Haible <bruno@clisp.org>
4201 Simon Josefsson <jas@extundo.com>
4204 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
4206 2006-08-27 Jim Meyering <jim@meyering.net>
4208 * doc/visibility.texi: Remove duplicate word: "pointer".
4210 2006-08-26 Bruno Haible <bruno@clisp.org>
4212 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
4213 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
4214 (Makefile.am): Create inttypes.h from inttypes_.h.
4215 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
4217 * modules/imaxabs: New file.
4219 * modules/imaxdiv: New file.
4221 2006-08-26 Bruno Haible <bruno@clisp.org>
4223 * m4/inttypes.m4: New file.
4224 * m4/_inttypes_h.m4: Remove file.
4225 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
4227 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
4229 * m4/imaxabs.m4: New file.
4231 * m4/imaxdiv.m4: New file.
4233 2006-08-26 Bruno Haible <bruno@clisp.org>
4235 * lib/inttypes_.h: New file.
4236 * lib/inttypes.h: Remove file.
4237 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
4239 * lib/imaxabs.c: New file.
4241 * lib/imaxdiv.c: New file.
4243 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
4245 New config-h module, so that "make" output needn't be cluttered
4247 * MODULES.html.sh (Support for building libraries and executables):
4249 * modules/config-h: New file.
4250 * gnulib-tool (nl, sed_transform_lib_file): New vars.
4251 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
4252 the config-h module is used.
4254 New configmake module, so that "make" output needn't be cluttered
4255 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
4256 * MODULES.html.sh (Support for building libraries and executables):
4258 * modules/configmake: New file.
4260 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
4262 * m4/config-h.m4: New file.
4264 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
4266 * config/srclist.txt: Add elisp-comp.
4268 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
4270 * MODULES.html.sh (Support for building libraries and executables):
4272 * build-aux/elisp-comp: New file.
4273 * modules/elisp-comp: New file.
4275 2006-08-24 Bruno Haible <bruno@clisp.org>
4277 * gnulib-tool (func_create_testdir): Use non-default values of
4278 sourcebase and m4base.
4280 2006-08-24 Bruno Haible <bruno@clisp.org>
4282 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
4285 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
4287 * modules/openat (Depends-on): Add lchown.
4289 2006-08-23 Bruno Haible <bruno@clisp.org>
4291 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
4292 of gl_LOCK_EARLY instead of gl_LOCK.
4294 2006-08-23 Bruno Haible <bruno@clisp.org>
4296 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
4298 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
4300 2006-08-23 Bruno Haible <bruno@clisp.org>
4302 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
4305 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
4306 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
4307 (gl_LOCK): New macro.
4309 2006-08-22 Simon Josefsson <jas@extundo.com>
4311 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
4314 2006-08-22 Simon Josefsson <jas@extundo.com>
4316 * MODULES.html.sh: Add "Support for maintaining and release
4319 * build-aux/gnupload: New file, from coreutils.
4321 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
4323 Avoid the need for AC_LIBSOURCES in m4 macros.
4324 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
4325 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
4326 * modules/check-version (EXTRA_DIST): Add check-version.h.
4327 * modules/crc (EXTRA_DIST): Add crc.h.
4328 * modules/des (EXTRA_DIST): Add des.h.
4329 * modules/gc (EXTRA_DIST): Add gc.h.
4330 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
4331 * modules/getline (EXTRA_DIST): Add getline.h.
4332 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
4333 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
4334 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
4335 * modules/md2 (EXTRA_DIST): Add md2.h.
4336 * modules/md4 (EXTRA_DIST): Add md4.h.
4337 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
4338 * modules/read-file (EXTRA_DIST): Add read-file.h.
4339 * modules/readline (EXTRA_DIST): Add readline.h.
4340 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
4343 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
4345 * m4/rijndael.m4 (gl_ARCFOUR):
4346 * m4/arctwo.m4 (gl_ARCTWO):
4347 * m4/check-version.m4 (gl_CHECK_VERSION):
4348 * m4/crc.m4 (gl_CRC):
4349 * m4/des.m4 (gl_DES):
4350 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
4352 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
4353 * m4/getline.m4 (gl_FUNC_GETLINE):
4354 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
4355 * m4/hmac-md5.m4 (gl_HMAC_MD5):
4356 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
4357 * m4/md2.m4 (gl_MD2):
4358 * m4/md4.m4 (gl_MD4):
4359 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
4360 * m4/read-file.m4 (gl_FUNC_READ_FILE):
4361 * m4/readline.m4 (gl_FUNC_READLINE):
4362 * m4/rijndael.m4 (gl_RIJNDAEL):
4363 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
4364 to get the necessary .h files and whatnot.
4366 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
4368 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
4369 gnulib rather than the other way around.
4370 * config/srclistvars.sh (COREUTILS): Remove.
4372 2006-08-22 Jim Meyering <jim@meyering.net>
4374 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
4376 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
4378 2006-08-22 Eric Blake <ebb9@byu.net>
4380 * modules/regexprops-generic: New file.
4381 * MODULES.html.sh (Support for building documentation): List it.
4383 2006-08-22 Eric Blake <ebb9@byu.net>
4385 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
4386 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
4387 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4388 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
4390 2006-08-22 Bruno Haible <bruno@clisp.org>
4392 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
4393 and lib_LTLIBRARIES like the other lib_* variables.
4395 2006-08-22 Bruno Haible <bruno@clisp.org>
4397 * build-aux/x-to-1.in: New file, from GNU gettext.
4399 2006-08-22 Bruno Haible <bruno@clisp.org>
4401 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
4404 2006-08-22 Bruno Haible <bruno@clisp.org>
4406 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
4409 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
4412 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
4414 Problem reported by Bruno Haible.
4416 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
4418 Avoid the need for AC_LIBSOURCES in m4 macros.
4419 * modules/acl (EXTRA_DIST): Add acl.h.
4420 * modules/argmatch (Files): Add m4/argmatch.m4.
4421 (configure.ac): Add gl_ARGMATCH.
4422 (EXTRA_DIST): Renamed from lib_SOURCES, for
4423 consistency with the other modules. Remove argmatch.c.
4424 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
4425 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
4426 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
4427 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
4428 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
4429 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
4430 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
4431 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
4432 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
4433 * modules/closeout (EXTRA_DIST): Add closeout.h.
4434 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
4435 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
4436 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
4437 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
4438 dirname.h; remove basename.c and stripslash.c.
4439 * modules/exclude (EXTRA_DIST): Add exclude.h.
4440 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
4441 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
4442 * modules/file-type (EXTRA_DIST): Add file-type.h.
4443 * modules/filemode (EXTRA_DIST): Add filemode.h.
4444 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
4445 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
4446 * modules/fpending (EXTRA_DIST): Add __fpending.h.
4447 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
4448 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
4449 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
4450 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
4451 * modules/getdate (EXTRA_DIST): Add getdate.c.
4452 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
4453 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
4454 * modules/getpass (EXTRA_DIST): Add getpass.h.
4455 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
4456 * modules/group-member (EXTRA_DIST): Add group-member.h.
4457 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
4458 * modules/hash (EXTRA_DIST): Add hash.h.
4459 * modules/human (EXTRA_DIST): Add human.h.
4460 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
4461 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
4462 * modules/lchown (EXTRA_DIST): Add lchown.h.
4463 * modules/long-options (EXTRA_DIST): Add long-options.h.
4464 * modules/lstat (EXTRA_DIST): Add lstat.h.
4465 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
4466 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
4467 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
4468 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
4469 * modules/memxor (EXTRA_DIST): Add memxor.h.
4470 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
4471 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
4472 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
4473 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
4474 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
4475 * modules/physmem (EXTRA_DIST): Add physmem.h.
4476 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
4477 * modules/posixver (EXTRA_DIST): Add posixver.h.
4478 * modules/quote (EXTRA_DIST): Add quote.h.
4479 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
4480 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
4481 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
4482 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
4483 regex_internal.h regexec.c.
4484 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
4485 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
4486 * modules/same (EXTRA_DIST): Add same.h.
4487 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
4488 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
4489 * modules/savedir (EXTRA_DIST): Add savedir.h.
4490 * modules/sha1 (EXTRA_DIST): Add sha1.h.
4491 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
4492 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
4493 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
4494 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
4495 * modules/strdup (EXTRA_DIST): Add strdup.h.
4496 * modules/strftime (EXTRA_DIST): Add strftime.h.
4497 * modules/strndup (EXTRA_DIST): Add strndup.h.
4498 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
4499 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
4500 * modules/time_r (EXTRA_DIST): Add time_r.h.
4501 * modules/timespec (EXTRA_DIST): Add timespec.h.
4502 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
4503 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
4504 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
4505 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
4506 * modules/userspec (EXTRA_DIST): Add userspec.h.
4507 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
4508 * modules/utimens (EXTRA_DIST): Add utimens.h.
4509 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
4510 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
4511 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
4512 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
4513 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
4514 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
4515 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
4516 * modules/yesno (EXTRA_DIST): Add yesno.h.
4518 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
4520 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
4522 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
4523 * m4/dev-ino.m4, same-inode.m4: Remove.
4525 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
4526 * m4/acl.m4 (AC_FUNC_ACL):
4527 * m4/backupfile.m4 (gl_BACKUPFILE):
4528 * m4/c-strtod.m4 (gl_C99_STRTOLD):
4529 * m4/canon-host.m4 (gl_CANON_HOST):
4530 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
4531 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
4532 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
4533 * m4/cloexec.m4 (gl_CLOEXEC):
4534 * m4/close-stream.m4 (gl_CLOSE_STREAM):
4535 * m4/closeout.m4 (gl_CLOSEOUT):
4536 * m4/dirfd.m4 (gl_FUNC_DIRFD):
4537 * m4/dirname.m4 (gl_DIRNAME):
4538 * m4/exclude.m4 (gl_EXCLUDE):
4539 * m4/exitfail.m4 (gl_EXITFAIL):
4540 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
4541 * m4/file-type.m4 (gl_FILE_TYPE):
4542 * m4/filemode.m4 (gl_FILEMODE):
4543 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
4544 * m4/fpending.m4 (gl_FUNC_FPENDING):
4545 * m4/fprintftime.m4 (gl_FPRINTFTIME):
4546 * m4/fts.m4 (gl_FUNC_FTS):
4547 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
4548 * m4/getdate.m4 (gl_GETDATE):
4549 * m4/gethrxtime.m4 (gl_GETHRXTIME):
4550 * m4/getpagesize.m4 (gl_GETPAGESIZE):
4551 * m4/getpass.m4 (gl_FUNC_GETPASS):
4552 * m4/gettime.m4 (gl_GETTIME):
4553 * m4/getugroups.m4 (gl_GETUGROUPS):
4554 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
4555 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
4556 * m4/hard-locale.m4 (gl_HARD_LOCALE):
4557 * m4/hash.m4 (gl_HASH):
4558 * m4/idcache.m4 (gl_IDCACHE):
4559 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
4560 * m4/lchown.m4 (gl_FUNC_LCHOWN):
4561 * m4/long-options.m4 (gl_LONG_OPTIONS):
4562 * m4/lstat.m4 (gl_FUNC_LSTAT):
4563 * m4/md5.m4 (gl_MD5):
4564 * m4/memcasecmp.m4 (gl_MEMCASECMP):
4565 * m4/memcoll.m4 (gl_MEMCOLL):
4566 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
4567 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
4568 * m4/memxor.m4 (gl_MEMXOR):
4569 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
4570 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
4571 * m4/modechange.m4 (gl_MODECHANGE):
4572 * m4/mountlist.m4 (gl_MOUNTLIST):
4573 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
4574 * m4/openat.m4 (gl_FUNC_OPENAT):
4575 * m4/pathmax.m4 (gl_PATHMAX):
4576 * m4/physmem.m4 (gl_PHYSMEM):
4577 * m4/posixtm.m4 (gl_POSIXTM):
4578 * m4/posixver.m4 (gl_POSIXVER):
4579 * m4/quote.m4 (gl_QUOTE):
4580 * m4/quotearg.m4 (gl_QUOTEARG):
4581 * m4/readtokens.m4 (gl_READTOKENS):
4582 * m4/readutmp.m4 (gl_READUTMP):
4583 * m4/regex.m4 (gl_REGEX):
4584 * m4/safe-read.m4 (gl_SAFE_READ):
4585 * m4/safe-write.m4 (gl_SAFE_WRITE):
4586 * m4/same.m4 (gl_SAME):
4587 * m4/save-cwd.m4 (gl_SAVE_CWD):
4588 * m4/savedir.m4 (gl_SAVEDIR):
4589 * m4/settime.m4 (gl_SETTIME):
4590 * m4/sha1.m4 (gl_SHA1):
4591 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
4592 * m4/stat-macros.m4 (gl_STAT_MACROS):
4593 * m4/stat-time.m4 (gl_STAT_TIME):
4594 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
4595 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
4596 * m4/strdup.m4 (gl_FUNC_STRDUP):
4597 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
4598 * m4/strndup.m4 (gl_FUNC_STRNDUP):
4599 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
4600 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
4601 * m4/time_r.m4 (gl_TIME_R):
4602 * m4/timespec.m4 (gl_TIMESPEC):
4603 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
4604 * m4/unlinkdir.m4 (gl_UNLINKDIR):
4605 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
4606 * m4/userspec.m4 (gl_USERSPEC):
4607 * m4/utimecmp.m4 (gl_UTIMECMP):
4608 * m4/utimens.m4 (gl_UTIMENS):
4609 * m4/xalloc.m4 (gl_XALLOC):
4610 * m4/xgetcwd.m4 (gl_XGETCWD):
4611 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
4612 * m4/xreadlink.m4 (gl_XREADLINK):
4613 * m4/xstrtod.m4 (gl_XSTRTOD):
4614 * m4/yesno.m4 (gl_YESNO):
4615 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
4616 to get the necessary .h files and whatnot.
4618 2006-08-21 Mark D. Baushke <mdb@gnu.org>
4619 Bruno Haible <bruno@clisp.org>
4621 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
4622 /bin/sh understanding of '!' conditional negation.
4624 2006-08-21 Jim Meyering <jim@meyering.net>
4626 * modules/openat (Depends-on): Really alphabetize.
4628 * modules/acl (Depends-on): Add error and quote.
4630 * check-module (find_included_lib_files): Add at-func.c to the
4631 ok-to-include-more-than-once white list.
4633 * modules/openat (Depends-on): Add lstat. Alphabetize.
4635 2006-08-21 Bruno Haible <bruno@clisp.org>
4637 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4638 Emit a pkgdata_DATA variable only if some snippets add contents to it.
4639 Reported by Martin Lambers <marlam@marlam.de>.
4641 2006-08-21 Bruno Haible <bruno@clisp.org>
4643 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
4644 specify an installation location, don't emit a noinst_LIBRARIES or
4645 noinst_LTLIBRARIES assignment.
4647 2006-08-21 Bruno Haible <bruno@clisp.org>
4650 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
4651 BeOS has mbrtowc() but no <wctype.h>.
4653 2006-08-21 Bruno Haible <bruno@clisp.org>
4656 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
4659 2006-08-21 Bruno Haible <bruno@clisp.org>
4662 * lib/mbchar.h: Include <wctype.h> only if it exists.
4664 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
4666 Remove files that are no longer needed by their respective modules.
4667 * m4/obstack.m4: Remove.
4668 * m4/strerror_r.m4: Remove.
4669 * m4/uint32_t.m4: Remove.
4670 * m4/uintptr_t.m4: Remove.
4671 * m4/ullong_max.m4: Remove.
4672 * m4/xstrtoimax.m4: Remove.
4673 * m4/xstrtoumax.m4: Remove.
4675 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
4676 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
4677 dependencies now capture this.
4679 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
4680 Do not use AC_LIBSOURCES, since gnulib modules now do this.
4681 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
4682 * m4/human.m4 (gl_HUMAN): Likewise.
4683 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
4684 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
4686 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
4688 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
4689 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
4691 * m4/human.m4 (gl_HUMAN): Likewise.
4692 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
4693 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
4694 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4695 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4696 * m4/xstrtol (gl_XSTRTOL): Likewise.
4698 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
4699 AC_TYPE_LONG_LONG_INT.
4700 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
4701 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
4702 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
4703 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
4705 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
4708 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
4709 (gl_PREREQ_XSTRTOUL): Remove.
4711 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
4713 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
4716 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
4718 Add and change modules to make it easier for coreutils to use
4720 * modules/backupfile (Files): Remove m4/d-ino.m4.
4721 (Depends-on): Add d-ino.
4722 * modules/cycle-check (Depends-on): Add stdint.
4723 (lib_SOURCES): Add cycle-check.h.
4724 * modules/d-ino: New module.
4725 * modules/d-type: New module.
4726 * modules/error (Files): Remove m4/strerror_r.m4.
4727 * modules/filemode (Files): Add m4/st_dm_mode.m4.
4728 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4729 m4/inttypes_h.m4, m4/uintmax_t.m4.
4730 (Depends-on): Add stdint.
4731 (lib_SOURCES): Add fsusage.h.
4732 * modules/getcwd (Files): Remove d-ino.m4.
4733 (Depends-on): Add d-ino.
4734 * modules/getndelim2 (Depends-on): Add stdint.
4735 * modules/glob (Files): Remove m4/d-type.m4.
4736 (Depends-on): Add d-type.
4737 * modules/host-os: New module.
4738 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4739 m4/inttypes_h.m4, m4/uintmax_t.m4.
4740 * Depends-on: Add stdint.
4741 (lib_SOURCES): Add human.h.
4742 * modules/inttostr (Files): Remove m4/intmax_t.m4,
4743 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
4744 m4/uintmax_t.m4, m4/ulonglong.m4.
4745 (Depends-on): Add stdint.
4746 (EXTRA_DIST): Add inttostr.h.
4747 * modules/lchmod: New module.
4748 * modules/link-follow: New module.
4749 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
4750 (Depends-on): Add lchmod.
4751 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
4752 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
4753 (Depends-on): Add stdint.
4754 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
4755 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
4756 (Depends-on): Add stdint.
4757 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
4758 * modules/perl: New module.
4759 * modules/regex (Depends-on): Add stdint.
4760 * modules/rmdir-errno: New module.
4761 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4763 (Depends-on): Add stdint.
4764 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
4766 (Depends-on): Add stdint.
4767 * modules/unlink-busy: New module.
4768 * modules/utimecmp (Depends-on): Add stdint.
4769 * modules/uptime: New module.
4770 * modules/winsz-ioctl: New module.
4771 * modules/winsz-termios: New module.
4772 * modules/xnanosleep (Depends-on): Add nanosleep.
4773 * modules/ullong_max: Remove.
4774 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
4775 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
4776 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
4777 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
4778 (Depends-on): Add inttypes.
4779 (lib_SOURCES): Add xstrtol.h.
4780 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
4781 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
4782 * MODULES.html.sh: Move 'assert' into the assert section.
4783 Move 'dummy' into the linking section.
4785 Add section for compatibility checks for POSIX:2001 functions,
4786 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
4787 winsz-ioctl, and winsz-termios into it.
4789 Add top-level Misc section and put host-os, perl, and uptime
4792 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
4794 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
4795 now assume the stdint module. Do not include inttypes.h.
4796 * lib/fsusage.h: Likewise.
4797 * lib/getndelim2.c: Likewise.
4798 * lib/human.h: Likewise.
4799 * lib/inttostr.h: Likewise.
4800 * lib/obstack.c: Likewise.
4801 * lib/regex_internal.h: Likewise.
4802 * lib/tempname.c: Likewise.
4803 * lib/utimecmp.c: Likewise.
4804 * lib/xstrtol.h: Likewise.
4806 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
4808 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
4809 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
4810 * lib/xtime.h: Likewise.
4812 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
4814 * modules/openat (Files): Add lib/fchmodat.c.
4815 Fixes problem reported by Jay Youngman.
4817 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
4819 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
4820 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
4822 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
4823 Bruno Haible <bruno@clisp.org>
4825 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
4826 and is a script that invokes bison. Tighten the code. Add comments.
4828 2006-08-18 Jim Meyering <jim@meyering.net>
4830 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
4831 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
4832 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
4833 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
4835 2006-08-18 Bruno Haible <bruno@clisp.org>
4837 * modules/bison-i18n: New file.
4838 * MODULES.html.sh (Internationalization functions): Add it.
4840 2006-08-18 Bruno Haible <bruno@clisp.org>
4842 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
4843 sys/statvfs.h. When getmntinfo was found, check its declaration and
4844 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
4846 2006-08-18 Bruno Haible <bruno@clisp.org>
4848 * m4/bison-i18n.m4: New file, from bison.
4850 2006-08-18 Bruno Haible <bruno@clisp.org>
4852 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
4853 (ME_DUMMY): Treat "kernfs" as a dummy.
4854 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
4856 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
4858 Update from coreutils.
4860 2006-08-15 Jim Meyering <jim@meyering.net>
4862 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
4864 2006-01-17 Jim Meyering <jim@meyering.net>
4866 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
4868 2006-01-11 Jim Meyering <jim@meyering.net>
4870 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
4871 Check for the lchmod function.
4873 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
4875 Update from coreutils.
4877 * lib/__fpending.h: Add copyright notice.
4878 * lib/fprintftime.h: Likewise.
4879 * lib/savedir.c: Use (C) in copyright notice.
4880 * lib/savedir.h: Likewise.
4882 2006-08-15 Jim Meyering <jim@meyering.net>
4884 * lib/at-func.c: New file, with the logic of all emulated at-functions.
4885 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
4886 in support of the EXPECTED_ERRNO macro.
4887 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
4888 definitions. Instead, define the appropriate symbols and include
4890 * lib/mkdirat.c (mkdirat): Likewise.
4891 * lib/fchmodat.c (fchmodat): Likewise.
4892 (ENOSYS): Remove definition.
4893 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
4894 it. Don't include "unistd--.h" -- it wasn't ever used.
4896 2006-01-17 Jim Meyering <jim@meyering.net>
4898 Rewrite fts.c not to change the current working directory,
4899 by using openat, fstatat, fdopendir, etc..
4901 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
4902 (HAVE_OPENAT_SUPPORT): Define.
4903 [_LIBC] (fchdir): Don't undef or define; no longer used.
4904 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
4905 Now, this `function' always succeeds, and consumes its file descriptor
4906 parameter -- so callers must not close such FDs. Update callers.
4907 (diropen_fd, opendirat, cwd_advance_fd): New functions.
4908 (diropen): Add parameter, SP. Adjust all callers.
4909 Implement using diropen_fd, rather than open.
4910 (fts_open): Initialize new member, fts_cwd_fd.
4911 Remove fts_rft-setting code.
4912 (fts_close): Close fts_cwd_fd, if necessary.
4913 (__opendir2): Define in terms of opendir or opendirat,
4914 depending on whether the FST_NOCHDIR flag is set.
4915 (fts_build): Since fts_safe_changedir consumes its FD, and since
4916 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
4917 and close the dup'd file descriptor upon failure.
4918 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
4919 (fts_safe_changedir): Tweak semantics to reflect that this function
4920 now calls cwd_advance_fd and hence consumes its FD argument.
4921 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
4922 [struct FTS] (fts_rft): Remove now-unused member.
4923 [struct FTS] (fts_cycle.state): Improve comment.
4925 * lib/openat.c (openat_needs_fchdir): New function.
4926 * lib/openat.h (openat_needs_fchdir): Declare it.
4928 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
4930 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
4931 Problem and fix reported by Pádraig Brady in
4932 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
4934 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
4936 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
4938 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
4940 * lib/memcoll.c (memcoll): Optimize for the common case where the
4941 arguments are bytewise equal.
4943 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
4945 * doc/regexprops-generic.texi: Add a copyright notice.
4947 2006-08-15 Bruno Haible <bruno@clisp.org>
4949 * modules/tmpdir (License): Change to LGPL.
4951 2006-08-15 Bruno Haible <bruno@clisp.org>
4953 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
4956 2006-08-14 Simon Josefsson <jas@extundo.com>
4958 * config/srclist.txt: Add gnupload.
4960 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
4962 Change copyright notice from LGPL 2 to GPL 2, since that's the
4963 standard form used in the gnulib repository.
4964 * tests/test-lock.c: Likewise.
4965 * tests/test-stdint.c: Likewise.
4966 * tests/test-tls.c: Likewise.
4968 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
4969 prelude-manager. User shorter URLs for GNU projects, without '?'.
4970 Add copyright notice.
4972 * check-module: Add copyright notice. Output a copyright
4973 notice if "--version" is specified.
4974 * modules/COPYING: New file.
4975 * tests/test-getaddrinfo.c: Add copyright notice.
4976 * tests/test-verify.c: Likewise.
4978 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
4980 Change copyright notice from LGPL 2 to GPL 2, since that's the
4981 standard form used in the gnulib repository.
4982 * lib/lock.c: LGPL -> GPL.
4983 * lib/lock.h: Likewise.
4984 * lib/strnlen1.c: Likewise.
4985 * lib/strnlen1.h: Likewise.
4986 * lib/tls.c: Likewise.
4987 * lib/tls.h: Likewise.
4988 * lib/tmpdir.c: Likewise.
4990 * lib/TODO: Remove; this belongs only in coreutils.
4992 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
4994 Add copyright notices to long-enough files that lack them, since
4995 otherwise the files aren't clearly free. Use the same notice that
4996 getdate.texi already uses.
4997 * doc/alloca-opt.texi: Add copyright notice.
4998 * doc/alloca.texi: Likewise.
4999 * doc/ctime.texi: Likewise.
5000 * doc/functions.texi: Likewise.
5001 * doc/gcd.texi: Likewise.
5002 * doc/gnulib-tool.texi: Likewise.
5003 * doc/inet_ntoa.texi: Likewise.
5004 * doc/visibility.texi: Likewise.
5006 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5007 * doc/quote.texi: Add copyright notice.
5009 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5010 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
5011 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
5012 Mention SunOS 5.11. Mention that everything before SunOS 5.7
5013 is now obsolete, and give a pointer to the Sun list.
5014 Add copyright notice.
5016 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
5018 * config/srclistvars.sh: Add copyright notice.
5020 2006-08-14 Eric Blake <ebb9@byu.net>
5022 Import the following change from libc:
5024 2006-08-12 Ulrich Drepper <drepper@redhat.com>
5027 * lib/misc/error.c: Add space between program name and message if file
5030 2006-08-12 Karl Berry <karl@gnu.org>
5032 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5033 remove, these originate in gnulib now.
5035 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5037 * doc/Makefile (standards.info standards.html standards.dvi):
5038 Also depend on make-stds.texi.
5040 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
5042 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5043 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
5045 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5046 in wchar_t. Problem reported by Eric Blake.
5048 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5049 LEN is smaller than SIZE. Suggested by Bruno Haible.
5050 Also, help the compiler to keep LEN in a register.
5052 2006-08-11 Eric Blake <ebb9@byu.net>
5054 * users.txt: Sort. Add tar.
5056 2006-08-11 Bruno Haible <bruno@clisp.org>
5058 * users.txt: New file.
5060 2006-08-11 Bruno Haible <bruno@clisp.org>
5062 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5063 before <wchar.h>. Needed for OSF/1 and BSD/OS.
5065 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
5067 * modules/snprintf (Depends-on): Remove minmax.
5068 (Maintainer): Add self and Bruno.
5070 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
5072 * lib/.cppi-disable: Add snprintf.h, socket_.h.
5073 * lib/snprintf.c: Include <errno.h> and <limits.h>.
5074 (EOVERFLOW): Define if the system does not.
5075 Do not include "minmax.h"; it wasn't used.
5076 (snprintf): Don't assume size_t promotes to an unsigned type.
5077 Fix bug when generated string was too long for the buffer: the
5078 buffer's contents are supposed to be the initial prefix of the
5079 output. Don't assume vasnprintf returns EOVERFLOW if the size
5080 exceeds INT_MAX; do the check ourselves.
5082 Import the following changes from libc:
5084 2006-06-02 Jakub Jelinek <jakub@redhat.com>
5086 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
5087 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
5088 set wc to the byte which couldn't be converted.
5089 (re_string_reconstruct): Don't clear valid_raw_len before calling
5090 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
5091 tip_context using re_string_context_at.
5093 2006-05-02 Ulrich Drepper <drepper@redhat.com>
5095 * lib/posix/regex.h: g++ still cannot handled [restrict].
5097 2006-04-21 Ulrich Drepper <drepper@redhat.com>
5099 * lib/posix/regex.h: Remove special handling for VMS.
5101 2006-08-10 Jim Meyering <jim@meyering.net>
5103 * modules/same-inode: New module.
5104 * modules/dev-ino: New module.
5105 * modules/cycle-check: Depend on these modules, rather than simply
5106 including their .h files.
5107 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
5108 required via m4/cycle-check.m4.
5109 * modules/same: Depend on new same-inode module, rather than
5110 including same-inode.h.
5111 * modules/chdir-safer: New file.
5113 * modules/chown (Depends-on): Add stat-macros.
5115 2006-08-10 Jim Meyering <jim@meyering.net>
5117 * m4/cycle-check.m4: New file.
5118 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
5119 * m4/dev-ino.m4, m4/same-inode.m4: New files.
5121 2006-08-10 Eric Blake <ebb9@byu.net>
5123 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
5124 in from original proposal.
5126 2006-08-10 Eric Blake <ebb9@byu.net>
5127 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5129 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
5132 2006-08-10 Bruno Haible <bruno@clisp.org>
5134 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
5137 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
5139 Sync from coreutils.
5141 2006-07-19 Mike Frysinger <vapier@gentoo.org>
5143 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
5144 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
5146 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
5148 * modules/restrict: Remove; no longer needed now that we assume
5149 Autoconf 2.59 or later.
5150 * MODULES.html.sh: Remove 'restrict'.
5151 * modules/argp (Depends-on): Remove 'restrict'.
5152 * modules/base64 (Depends-on): Likewise.
5153 * modules/gc (Depends-on): Likewise.
5154 * modules/getaddrinfo (Depends-on): Likewise.
5155 * modules/glob (Depends-on): Likewise.
5156 * modules/inet_ntop (Depends-on): Likewise.
5157 * modules/inet_pton (Depends-on): Likewise.
5158 * modules/memxor (Depends-on): Likewise.
5159 * modules/regex (Depends-on): Likewise.
5160 * modules/strtok_r (Depends-on): Likewise.
5161 * modules/time_r (Depends-on): Likewise.
5163 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
5165 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
5166 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
5167 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
5168 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
5169 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5170 * m4/memxor.m4 (gl_MEMXOR): Likewise.
5171 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
5172 gl_C_RESTRICT replaced by AC_C_RESTRICT.
5174 Merge from coreutils.
5175 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
5176 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
5177 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5178 * m4/time_r.m4 (gl_TIME_R): Likewise.
5180 2006-08-09 Karl Berry <karl@gnu.org>
5182 * config/srclist.txt: no more gettext-tools, per Bruno.
5184 2006-08-08 Eric Blake <ebb9@byu.net>
5186 * modules/verror: New module.
5187 * MODULES.html.sh: Document it.
5189 2006-08-08 Eric Blake <ebb9@byu.net>
5191 * lib/verror.h, lib/verror.c: New files.
5193 2006-08-08 Eric Blake <ebb9@byu.net>
5195 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
5196 verror_at_line output complies with GNU Coding Standards even when
5199 2006-08-07 Bruno Haible <bruno@clisp.org>
5201 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
5203 Reported by Ralf Wildenhues.
5205 2006-08-07 Bruno Haible <bruno@clisp.org>
5207 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
5208 in an AC_DEFUN. Needed so that the autoconf snippets can use
5211 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5213 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5214 Initialize pkgdata_DATA.
5215 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
5218 2006-08-06 Eric Blake <ebb9@byu.net>
5220 * lib/error.h: Fold in some upstream changes from glibc.
5221 * lib/error.c: Likewise.
5223 2006-08-04 Bruno Haible <bruno@clisp.org>
5225 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5226 Make the mostlyclean-local rule depend on mostlyclean-generic.
5227 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
5229 2006-07-31 Bruno Haible <bruno@clisp.org>
5231 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
5232 <stdlib.h>, <string.h>.
5234 2006-07-30 Bruno Haible <bruno@clisp.org>
5236 * modules/readlink (License): Change to LGPL.
5238 2006-07-30 Bruno Haible <bruno@clisp.org>
5240 * modules/javaversion (Makefile.am): Distribute javaversion.java and
5241 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
5242 set PKGDATADIR to point to it.
5244 2006-07-30 Bruno Haible <bruno@clisp.org>
5246 * modules/csharpexec (configure.ac): Comment out macro invocation.
5247 * modules/javaexec (configure.ac): Likewise.
5248 * modules/javacomp-script (configure.ac): Likewise.
5250 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
5252 2006-07-30 Bruno Haible <bruno@clisp.org>
5254 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
5257 2006-07-30 Bruno Haible <bruno@clisp.org>
5259 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
5261 2006-07-30 Bruno Haible <bruno@clisp.org>
5263 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5264 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
5267 2006-07-29 Bruno Haible <bruno@clisp.org>
5269 Make it possible for gnulib-tool to work with locally modified or
5270 augmented gnulib repositories.
5271 * gnulib-tool (func_usage): Document --local-dir option.
5272 (local_gnulib_dir): New variable.
5273 Handle --local-dir option.
5274 (func_lookup_file): New function.
5275 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
5276 (func_get_description, func_get_filelist, func_get_description,
5277 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
5278 func_get_automake_snippet, func_get_include_directive,
5279 func_get_license, func_get_maintainer): Use func_lookup_file.
5280 (func_import, func_create_testdir): Use func_lookup_file.
5282 2006-07-29 Bruno Haible <bruno@clisp.org>
5284 * modules/setenv (Depends-on): Add unistd.
5286 2006-07-29 Bruno Haible <bruno@clisp.org>
5288 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
5290 2006-07-29 Bruno Haible <bruno@clisp.org>
5292 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
5294 2006-07-29 Bruno Haible <bruno@clisp.org>
5296 * gnulib-tool (import, update): If there is no Makefile.am, look at
5297 aclocal.m4, instead of bailing out.
5299 2006-07-29 Bruno Haible <bruno@clisp.org>
5301 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
5302 Categorize the options by when they are useful.
5304 2006-07-29 Bruno Haible <bruno@clisp.org>
5306 * gnulib-tool (func_usage): Document option --no-libtool.
5307 Handle option --no-libtool.
5308 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
5309 for changed semantics of $libtool variable.
5310 (func_import): Likewise. If libtool is not used, show this through
5311 an option --no-libtool.
5312 (func_create_testdir): Update.
5314 2006-07-29 Bruno Haible <bruno@clisp.org>
5316 * gnulib-tool (func_import): Extend error message about missing
5319 2006-07-29 Bruno Haible <bruno@clisp.org>
5321 * gnulib-tool (func_import): Don't create the $docbase directory if
5322 there is no file to store there.
5324 2006-07-29 Bruno Haible <bruno@clisp.org>
5326 * gnulib-tool (autoconf_minversion): If a --dir option is given and
5327 relevant, look for configure.ac there, not in the current directory.
5328 Also use a simple search for AC_PREREQ, not "autoconf --trace".
5330 2006-07-29 Bruno Haible <bruno@clisp.org>
5332 * gnulib-tool (SORT): New variable.
5333 (func_usage): Undocument --assume-autoconf option.
5334 Remove --assume-autoconf option handling.
5335 (autoconf_minversion): Determine from the contents of configure.ac.
5336 (func_import): Remove autoconf_minversion handling.
5337 Suggested by Eric Blake.
5339 2006-07-29 Bruno Haible <bruno@clisp.org>
5341 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
5343 2006-07-29 Bruno Haible <bruno@clisp.org>
5345 * config/srclist.txt (*setenv.[ch]): Remove rules.
5347 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5349 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
5351 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5353 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
5356 2006-07-28 Simon Josefsson <jas@extundo.com>
5358 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
5359 * modules/inet_pton (Depends-on): Likewise.
5361 2006-07-28 Simon Josefsson <jas@extundo.com>
5363 * m4/netinet_in_h.m4: New file.
5365 2006-07-28 Simon Josefsson <jas@extundo.com>
5367 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
5370 2006-07-28 Simon Josefsson <jas@extundo.com>
5372 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
5375 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
5377 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
5378 setgid on directories only if they set these bits.
5379 * lib/modechange.h: Remove obsolete comment about masks.
5381 2006-07-28 Eric Blake <ebb9@byu.net>
5383 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
5386 2006-07-28 Bruno Haible <bruno@clisp.org>
5388 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
5390 2006-07-28 Bruno Haible <bruno@clisp.org>
5392 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
5394 2006-07-28 Bruno Haible <bruno@clisp.org>
5396 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5397 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5399 Avoids link error on FreeBSD 4.x.
5400 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5402 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
5404 * lib/mbswidth.c (iswcntrl): Likewise.
5406 2006-07-27 Bruno Haible <bruno@clisp.org>
5408 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
5411 2006-07-27 Bruno Haible <bruno@clisp.org>
5413 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
5414 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
5417 2006-07-26 Eric Blake <ebb9@byu.net>
5419 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
5421 2006-07-26 Eric Blake <ebb9@byu.net>
5423 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
5424 like mingw that lack mkstemp.
5425 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
5426 avoid compilation warning on mingw.
5428 2006-07-26 Bruno Haible <bruno@clisp.org>
5430 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
5431 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
5432 INT_FAST*_MIN, INTPTR_MIN.
5434 2006-07-25 Bruno Haible <bruno@clisp.org>
5436 * modules/version-etc (Depends-on): Add stdarg.
5438 2006-07-25 Bruno Haible <bruno@clisp.org>
5440 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
5443 2006-07-25 Bruno Haible <bruno@clisp.org>
5445 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
5446 defined in <stdarg.h> or config.h.
5448 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
5450 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
5451 (gl_STDIO_SAFER): Remove.
5453 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
5455 * MODULES.html.sh (File stream based Input/Output):
5456 Add fopen-safer, tmpfile-safer; remove stdio-safer.
5457 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
5458 * modules/fopen-safer, modules/tmpfile-safer: New files.
5459 * modules/stdio-safer: Remove.
5461 2006-07-24 Bruno Haible <bruno@clisp.org>
5463 * modules/tmpdir: New file.
5464 * MODULES.html.sh (File system functions): Add it.
5466 2006-07-24 Bruno Haible <bruno@clisp.org>
5468 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
5469 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
5471 2006-07-24 Bruno Haible <bruno@clisp.org>
5473 * modules/clean-temp: New file.
5475 2006-07-24 Bruno Haible <bruno@clisp.org>
5477 * m4/tmpdir.m4: New file, from GNU gettext.
5479 2006-07-24 Bruno Haible <bruno@clisp.org>
5481 * lib/tmpdir.h: New file, from GNU gettext.
5482 * lib/tmpdir.c: New file, from GNU gettext.
5484 2006-07-24 Bruno Haible <bruno@clisp.org>
5486 * lib/clean-temp.h: New file, from GNU gettext.
5487 * lib/clean-temp.c: New file, from GNU gettext.
5489 2006-07-23 Eric Blake <ebb9@byu.net>
5491 * modules/stdio-safer (Files): Add tmpfile-safer.c.
5492 (Depends-on): Add binary-io.
5494 2006-07-23 Eric Blake <ebb9@byu.net>
5496 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
5498 2006-07-23 Eric Blake <ebb9@byu.net>
5500 * lib/tmpfile-safer.c: New file.
5501 * lib/stdio-safer.h (fopen_safer): Add prototype.
5502 * lib/stdio--.h (tmpfile): Make safer.
5504 2006-07-23 Bruno Haible <bruno@clisp.org>
5506 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
5507 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
5508 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
5509 gl_linked_remove_at): Use it.
5511 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5512 and Simon Josefsson <jas@extundo.com>
5514 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
5516 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
5518 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
5520 * modules/close-stream: New file.
5521 * modules/closeout (Description): Make it clear that it exits
5522 with a diagnostic on error.
5523 (Depends-on): Add close-stream. Remove fpending, stdbool.
5524 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
5526 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
5528 * m4/close-stream.m4: New file.
5530 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
5532 * lib/close-stream.c, lib/close-stream.h: New files.
5534 2006-07-22 Bruno Haible <bruno@clisp.org>
5536 Merge from GNU gettext 0.15.
5538 2006-05-01 Bruno Haible <bruno@clisp.org>
5540 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
5542 2006-07-22 Bruno Haible <bruno@clisp.org>
5544 * modules/javaversion: New file.
5545 * MODULES.html.sh (Java): Add javaversion.
5547 2006-03-12 Bruno Haible <bruno@clisp.org>
5549 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
5551 2005-12-04 Bruno Haible <bruno@clisp.org>
5553 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
5556 2006-06-21 Bruno Haible <bruno@clisp.org>
5558 Avoid warnings from recent versions of mcs.
5559 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
5560 -o, -L, -r any more. Use options documented since mcs-1.0
5561 instead. Similarly for -g.
5563 2005-12-04 Bruno Haible <bruno@clisp.org>
5565 * build-aux/csharpcomp.sh.in: Suffix for resources is
5566 .resources, not .resource.
5568 2005-07-09 Bruno Haible <bruno@clisp.org>
5570 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
5572 Reported by Mark Junker <mjscod@gmx.de>.
5574 2006-07-22 Bruno Haible <bruno@clisp.org>
5576 * modules/gettext: Upgrade to gettext-0.15.
5577 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
5579 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
5581 2006-07-22 Bruno Haible <bruno@clisp.org>
5583 Merge from GNU gettext 0.15.
5585 2006-03-25 Bruno Haible <bruno@clisp.org>
5587 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
5589 2006-07-21 Bruno Haible <bruno@clisp.org>
5591 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
5594 2006-05-09 Bruno Haible <bruno@clisp.org>
5596 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
5597 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
5598 for the conftestver execution.
5600 2006-05-01 Bruno Haible <bruno@clisp.org>
5602 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
5603 optional target-version argument. Verify that the compiler
5604 groks source of the specified source-version, or add -source
5605 option as necessary. Verify that the compiler produces
5606 bytecode in the specified target-version, or add -target and
5607 -source options as necessary. Make the result of the test
5608 available as variable CONF_JAVAC. Also log error output in
5611 2006-03-11 Bruno Haible <bruno@clisp.org>
5613 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
5615 2006-05-09 Bruno Haible <bruno@clisp.org>
5617 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
5618 CLASSPATH_SEPARATOR to a semicolon.
5620 2006-03-12 Bruno Haible <bruno@clisp.org>
5622 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
5623 available as variable CONF_JAVA, for subsequent autoconf
5624 tests. Also log error output in config.log.
5626 2006-07-19 Bruno Haible <bruno@clisp.org>
5628 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
5629 that getline works on glibc2 systems. Needed to avoid trouble
5631 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
5633 2005-12-04 Bruno Haible <bruno@clisp.org>
5635 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
5636 launcher (untested).
5638 2005-12-04 Bruno Haible <bruno@clisp.org>
5640 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
5642 2006-07-22 Bruno Haible <bruno@clisp.org>
5644 * gettext.m4: Update from GNU gettext-0.15.
5647 * inttypes-pri.m4: Likewise.
5648 * inttypes-h.m4: Renamed from inttypes.m4.
5649 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
5651 2006-07-22 Bruno Haible <bruno@clisp.org>
5653 Merge from GNU gettext 0.15.
5655 2005-07-05 Bruno Haible <bruno@clisp.org>
5657 * printf-args.c (printf_fetchargs): Work around broken
5658 definition of wint_t on mingw.
5660 2005-02-12 Bruno Haible <bruno@clisp.org>
5662 * xallocsa.h: Add extern "C" for C++.
5664 2006-05-17 Bruno Haible <bruno@clisp.org>
5667 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
5669 2006-04-30 Bruno Haible <bruno@clisp.org>
5671 * progreloc.c: Include <mach-o/dyld.h> if available.
5672 (find_executable): Use _NSGetExecutablePath when possible.
5674 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
5676 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
5679 2005-12-29 Bruno Haible <bruno@clisp.org>
5681 * progreloc.c (set_program_name_and_installdir): Fix
5684 2005-12-04 Bruno Haible <bruno@clisp.org>
5687 * progreloc.c: Include <windows.h> also on Cygwin.
5688 (find_executable): Add support for Cygwin.
5689 (set_program_name_and_installdir): Handle also platforms with
5692 2006-07-11 Bruno Haible <bruno@clisp.org>
5694 * javacomp.c: Fix a comment.
5695 Reported by Jim Meyering.
5697 2006-04-30 Bruno Haible <bruno@clisp.org>
5699 * javacomp.h (compile_java_class): Add source_version,
5700 target_version arguments.
5701 * javacomp.c: Rewritten to choose only a compiler that
5702 respects the specified source_version and target_version.
5704 2006-06-27 Bruno Haible <bruno@clisp.org>
5706 Assume correct S_ISDIR macro.
5707 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
5709 2006-07-22 Bruno Haible <bruno@clisp.org>
5711 * javaversion.h: New file, from GNU gettext.
5712 * javaversion.c: New file, from GNU gettext.
5713 * javaversion.java: New file, from GNU gettext.
5714 * javaversion.class: New file, from GNU gettext.
5716 2006-05-17 Bruno Haible <bruno@clisp.org>
5719 * javaexec.c (execute_java_class): Test for jview program
5722 2006-04-09 Bruno Haible <bruno@clisp.org>
5724 * fatal-signal.c: Don't include string.h.
5725 (at_fatal_signal): Use a copying loop instead of memcpy.
5727 2005-12-04 Bruno Haible <bruno@clisp.org>
5729 * csharpexec.c: Add support for 'clix' launcher (untested).
5730 (execute_csharp_using_sscli): New function.
5731 (execute_csharp_program): Call it.
5733 2006-06-21 Bruno Haible <bruno@clisp.org>
5735 Avoid warnings from recent versions of mcs.
5736 * csharpcomp.c (compile_csharp_using_mono): Don't use options
5737 -o, -L, -r any more. Use options documented since mcs-1.0
5738 instead. Similarly for -g.
5740 2005-07-09 Bruno Haible <bruno@clisp.org>
5742 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
5744 Reported by Mark Junker <mjscod@gmx.de>.
5746 2006-06-17 Bruno Haible <bruno@clisp.org>
5748 * config.charset: Update for NetBSD 3.0.
5750 2006-05-17 Bruno Haible <bruno@clisp.org>
5753 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
5755 2006-05-16 Bruno Haible <bruno@clisp.org>
5757 * localcharset.c [CYGWIN]: Include <windows.h>.
5758 (get_charset_aliases): For Cygwin, return the same CPxxx
5759 aliases list as under WIN32.
5760 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
5761 the environment variables. Fall back to GetACP().
5763 2006-04-05 Bruno Haible <bruno@clisp.org>
5765 * config.charset: Update Juan Manuel Guerrero's address.
5767 2005-02-12 Bruno Haible <bruno@clisp.org>
5769 * allocsa.h: Add extern "C" for C++.
5771 2005-02-10 Bruno Haible <bruno@clisp.org>
5773 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
5774 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
5776 2006-07-22 Bruno Haible <bruno@clisp.org>
5778 * gettext.h: Update to GNU gettext-0.15.
5780 2006-07-22 Bruno Haible <bruno@clisp.org>
5782 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
5783 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
5784 lib-prefix.m4, longdouble.m4, ssize_t.m4.
5786 2006-07-21 Eric Blake <ebb9@byu.net>
5788 * modules/stdlib-safer: New file.
5789 * MODULES.html.sh (File stream based Input/Output): Add
5792 2006-07-21 Eric Blake <ebb9@byu.net>
5794 * lib/stdlib-safer.h: New file from coreutils, required by
5797 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
5799 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
5801 2006-07-20 Bruno Haible <bruno@clisp.org>
5803 * gnulib-tool: Recognize new option --assume-autoconf.
5804 (autoconf_minversion): New variable.
5805 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
5807 2006-07-20 Bruno Haible <bruno@clisp.org>
5809 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
5811 2006-07-19 Derek R. Price <derek@ximbiot.com>
5813 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
5814 Reindent and repaginate.
5816 2006-07-19 Derek Price <derek@ximbiot.com>
5818 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
5821 2006-07-17 Bruno Haible <bruno@clisp.org>
5823 * modules/list: New file.
5824 * modules/array-list: New file.
5825 * modules/carray-list, modules/carray-list-tests: New files.
5826 * modules/linked-list, modules/linked-list-tests: New files.
5827 * modules/avltree-list, modules/avltree-list-tests: New files.
5828 * modules/rbtree-list, modules/rbtree-list-tests: New files.
5829 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
5830 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
5831 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
5832 * modules/oset: New file.
5833 * modules/array-oset: New file.
5834 * modules/avltree-oset, modules/avltree-oset-tests: New files.
5835 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
5836 * tests/test-carray_list.c: New file.
5837 * tests/test-linked_list.c: New file.
5838 * tests/test-avltree_list.c: New file.
5839 * tests/test-rbtree_list.c: New file.
5840 * tests/test-linkedhash_list.c: New file.
5841 * tests/test-avltreehash_list.c: New file.
5842 * tests/test-rbtreehash_list.c: New file.
5843 * tests/test-avltree_oset.c: New file.
5844 * tests/test-rbtree_oset.c: New file.
5845 * MODULES.html.sh (Container data structures): New section.
5847 2006-07-17 Bruno Haible <bruno@clisp.org>
5849 * m4/gl_list.m4: New file.
5851 2006-07-17 Bruno Haible <bruno@clisp.org>
5853 * lib/gl_list.h: New file.
5854 * lib/gl_list.c: New file.
5855 * lib/gl_array_list.h: New file.
5856 * lib/gl_array_list.c: New file.
5857 * lib/gl_carray_list.h: New file.
5858 * lib/gl_carray_list.c: New file.
5859 * lib/gl_linked_list.h: New file.
5860 * lib/gl_linked_list.c: New file.
5861 * lib/gl_anylinked_list1.h: New file.
5862 * lib/gl_anylinked_list2.h: New file.
5863 * lib/gl_avltree_list.h: New file.
5864 * lib/gl_avltree_list.c: New file.
5865 * lib/gl_anyavltree_list1.h: New file.
5866 * lib/gl_anyavltree_list2.h: New file.
5867 * lib/gl_rbtree_list.h: New file.
5868 * lib/gl_rbtree_list.c: New file.
5869 * lib/gl_anyrbtree_list1.h: New file.
5870 * lib/gl_anyrbtree_list2.h: New file.
5871 * lib/gl_anytree_list1.h: New file.
5872 * lib/gl_anytree_list2.h: New file.
5873 * lib/gl_linkedhash_list.h: New file.
5874 * lib/gl_linkedhash_list.c: New file.
5875 * lib/gl_anyhash_list1.h: New file.
5876 * lib/gl_anyhash_list2.h: New file.
5877 * lib/gl_avltreehash_list.h: New file.
5878 * lib/gl_avltreehash_list.c: New file.
5879 * lib/gl_rbtreehash_list.h: New file.
5880 * lib/gl_rbtreehash_list.c: New file.
5881 * lib/gl_anytreehash_list1.h: New file.
5882 * lib/gl_anytreehash_list2.h: New file.
5884 * lib/gl_oset.h: New file.
5885 * lib/gl_oset.c: New file.
5886 * lib/gl_array_oset.h: New file.
5887 * lib/gl_array_oset.c: New file.
5888 * lib/gl_avltree_oset.h: New file.
5889 * lib/gl_avltree_oset.c: New file.
5890 * lib/gl_rbtree_oset.h: New file.
5891 * lib/gl_rbtree_oset.c: New file.
5892 * lib/gl_anytree_oset.h: New file.
5894 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
5896 * m4/mkancesdirs.m4: New file.
5897 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
5898 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
5899 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
5902 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
5904 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
5905 * lib/mkancesdirs.h: New files.
5906 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
5907 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
5908 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
5909 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
5910 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
5911 callers changed. Revamp internals significantly, by not
5912 attempting to create directories that are temporarily more
5913 permissive than the final results. Do not attempt to use
5914 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
5915 This removes some race conditions, fixes some bugs, and simplifies
5916 things. Use new dirchownmod function to do owner and mode changes.
5917 * lib/mkdir-p.h: Likewise.
5918 * lib/modechange.c (octal_to_mode): New function.
5919 (struct mode_change): New member mentioned.
5920 (make_node_op_equals): New arg mentioned. All callers changed.
5921 (mode_compile): Keep track of which mode bits the user has explicitly
5923 (mode_adjust): New arg DIR, so that we implement the X op correctly.
5924 New arg PMODE_BITS, to keep track of which mode bits the user
5925 mentioned; it treats S_ISUID and S_ISGID speciall.
5926 All callers changed.
5927 * lib/modechange.h: Likewise.
5929 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
5931 * MODULES.html.sh: Add mkancestors.
5932 * modules/mkancesdirs: New module.
5933 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
5934 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
5935 The chdir-safer and afs files are now orphans; I'll remove them
5936 unless someone speaks up.
5937 Add lib/dirchownmod.c, lib/dirchownmod.h.
5938 (Depends-on): Remove alloca, chown, save-cwd, dirname.
5939 Add lchown, mkancesdirs.
5940 (Maintainer): Add self.
5942 2006-07-15 Karl Berry <karl@gnu.org>
5944 * gnulib-tool: help message wording/arrangement.
5946 2006-07-14 Simon Josefsson <jas@extundo.com>
5948 * doc/gnulib.texi (Libtool and Windows): New section.
5950 2006-07-12 Simon Josefsson <jas@extundo.com>
5952 * modules/gendocs (License): Fix license, approved by Karl.
5954 2006-07-12 Eric Blake <ebb9@byu.net>
5956 * MODULES.html.sh: Add gendocs.
5958 2006-07-11 Eric Blake <ebb9@byu.net>
5960 * modules/fdl: New module, to install doc/fdl.texi.
5961 * MODULES.html.sh: Add new section for documentation modules.
5962 * gnulib-tool: Avoid space-tab.
5963 (--doc-base): New option, to manage files from doc.
5965 2006-07-11 Eric Blake <ebb9@byu.net>
5967 * m4/absolute-header.m4: Fix comments to match recent change.
5969 2006-07-11 Eric Blake <ebb9@byu.net>
5971 * gnulib-tool: List --doc-base before --tests-base.
5973 2006-07-11 Derek R. Price <derek@ximbiot.com>
5975 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
5977 2006-07-11 Bruno Haible <bruno@clisp.org>
5979 * README: Mention where to put documentation.
5981 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5983 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
5985 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
5987 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
5990 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
5992 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
5993 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
5994 "no/such/file/stdint.h" when there is no such file, so that
5995 the resulting C code can be parsed by dodgy compilers.
5996 Problems reported by Bob Proulx.
5998 2006-07-10 Derek R. Price <derek@ximbiot.com>
6000 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6001 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
6002 macros into the GNU _D_EXACT_NAMLEN.
6003 * lib/savedir.c: Likewise.
6004 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6006 2006-07-10 Derek R. Price <derek@ximbiot.com>
6007 and Paul Eggert <eggert@cs.ucla.edu>
6009 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6011 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
6012 macros into the GNU _D_EXACT_NAMLEN.
6014 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
6016 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6017 around the absolute name, to work around a problem with the HP-UX
6018 11.23 native C compiler, reported by Bob Proulx.
6020 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
6022 * doc/maintain.texi, make-stds.texi: Sync from
6023 <http://savannah.gnu.org/projects/gnustandards>.
6025 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
6027 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6029 2006-07-09 Jim Meyering <jim@meyering.net>
6031 * m4/glob.m4: Remove a doubled word in a comment.
6033 2006-07-09 Jim Meyering <jim@meyering.net>
6035 * lib/argp-pv.c: Remove a doubled word in a comment.
6036 * lib/check-version.c (check_version): Likewise.
6037 * lib/javacomp.c (compile_java_class): Likewise.
6039 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
6041 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6042 for the benefit of people using Autoconf 2.60. If you want to
6043 support older Autoconf versions you can copy m4/onceonly_2_57.m4
6044 (or m4/onceonly.m4, if pre-2.57) manually.
6046 2006-07-08 Jim Meyering <jim@meyering.net>
6048 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6050 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6051 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6054 2006-07-08 Jim Meyering <jim@meyering.net>
6056 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6058 2006-07-07 Simon Josefsson <jas@extundo.com>
6060 * tests/test-crc.c: Change expected crc value, the test vector
6061 were probably computed using the old broken crc.c?
6063 2006-07-06 Simon Josefsson <jas@extundo.com>
6065 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6066 now the canonical place for the M4 file).
6068 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6069 from the sys_socket dependency now.
6071 * modules/inet_pton (Files): Ditto.
6073 * modules/inet_ntop (Files): Ditto.
6075 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
6077 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6078 not gl_PREREQ_GETUSERSHELL.
6080 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6082 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
6083 with only one argument, for Autoconf 2.60.
6084 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
6085 expand to nothing, so add a shell command to avoid syntax error.
6086 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6088 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6090 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
6092 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
6094 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
6095 no longer needed. Check for isblank decl.
6096 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
6097 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
6100 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
6102 * lib/getloadavg.c: Use __VMS, not VMS.
6103 * lib/getopt.c: Likewise.
6104 * lib/getpagesize.h: Likewise.
6105 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
6106 and probably does not work.
6108 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
6110 * lib/.cppi-disable: Add wcwidth.
6111 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
6112 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
6113 (ISGRAPH): Remove. All uses changed to isgraph.
6114 (FOLD) [!defined _LIBC]: Remove special case.
6115 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
6116 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
6118 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
6121 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
6123 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
6124 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
6125 brackets. Other minor changes to suppress some compiler
6128 2006-07-06 Derek R. Price <derek@ximbiot.com>
6129 and Paul Eggert <eggert@cs.ucla.edu>
6131 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
6132 of invoking obsolescent AC_HEADER_DIRENT macro.
6133 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6134 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6135 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6136 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
6137 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
6138 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6139 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
6140 * m4/readdir.m4: Remove; no longer needed.
6142 2006-07-06 Derek R. Price <derek@ximbiot.com>
6143 and Paul Eggert <eggert@cs.ucla.edu>
6145 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
6146 Don't worry about this obsolete case any more.
6147 (HAVE_DIR): Remove. All uses removed; we now assume you can read
6149 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
6150 worry about this obsolete case any more.
6151 * lib/fts.c: Likewise.
6152 * lib/getcwd.c: Likewise.
6153 * lib/glob.h: Likewise.
6154 * lib/savedir.c: Likewise.
6156 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
6158 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
6159 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
6160 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
6163 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6164 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6165 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
6167 * m4/getdate.m4 (gl_GETDATE): Likewise.
6168 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6169 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6170 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6171 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6172 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
6173 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6174 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
6177 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
6179 * lib/memcasecmp.c: Include <limits.h>.
6180 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
6181 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
6182 Don't assume isdigit succeeds only on '0' through '9'.
6184 2006-07-05 Eric Blake <ebb9@byu.net>
6186 * modules/getaddrinfo (Depends-on): Add snprintf.
6188 2006-07-05 Eric Blake <ebb9@byu.net>
6190 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
6191 to avoid 'header present but could not be compiled' on cygwin.
6193 2006-07-05 Eric Blake <ebb9@byu.net>
6195 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
6196 missing from netdb.h.
6197 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
6199 2006-07-05 Derek R. Price <derek@ximbiot.com>
6201 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
6203 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
6204 * m4/getdate.m4 (gl_GETDATE): Likewise.
6205 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
6206 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
6207 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6208 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
6209 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
6211 2006-07-05 Derek R. Price <derek@ximbiot.com>
6213 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
6214 All uses of is_space replaced by isspace.
6215 * lib/exit.h: Don't talk about STDC_HEADERS.
6216 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
6217 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
6218 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
6219 replaced by isprint etc.
6220 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
6221 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
6222 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
6223 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
6224 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
6225 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
6227 2006-07-05 Bruno Haible <bruno@clisp.org>
6229 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
6230 the function exists, before testing against AIX.
6231 Reported by Martin Lambers <marlam@marlam.de>.
6233 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
6235 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
6236 From Mark D. Baushke.
6238 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
6240 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
6241 to the absolute name, not just one, to bypass Sun C 5.8's
6242 "warning: #include of /usr/include/... may be non-portable".
6244 2006-07-04 Eric Blake <ebb9@byu.net>
6246 * modules/dirname-tests: New test module.
6247 * tests/test-dirname.c: New file, replacing dirname.c
6248 TEST_DIRNAME section that was recently deleted.
6250 2006-07-04 Bruno Haible <bruno@clisp.org>
6252 Assume ANSI C header files and <ctype.h> functions.
6253 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
6254 (mbsnwidth): Use isprint, iscntrl instead.
6256 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
6258 Merge from coreutils.
6259 * MODULES.html.sh: Add xstrtold.
6260 * modules/xstrtold: New file.
6261 * modules/cycle-check (Files): Add lib/same-inode.h.
6262 * modules/dirname (Files): Add m4/double-slash-root.m4.
6263 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
6264 * modules/mkdir-p (Files): Add lib/same-inode.h.
6265 * modules/same (Files): Add lib/same-inode.h.
6267 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
6269 * m4/absolute-header.m4: Renamed from full-header-path.m4.
6270 This is to keep the terminology clean; POSIX talks about
6271 "absolute pathnames", not "full pathnames", but the GNU
6272 Coding Standards say to use "path" for something else;
6273 so use "absolute" to keep both sides happy.
6274 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
6275 Set gl_absolute_header, not gl_full_header_path.
6276 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
6277 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
6280 Merge from coreutils.
6282 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
6284 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
6285 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
6286 want to require the building of c-strtod.o.
6287 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
6289 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
6291 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
6293 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
6294 --as-needed option if available. Problem reported by Albert Chin in
6295 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
6296 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
6297 cc merely issues a bunch of annoying warnings for --as-needed
6298 (this problem was reported by Bob Proulx). Also, try linking with
6299 -lm to detect a bug in binutils 2.16 (this problem was reported
6300 by Ralf Wildenhues).
6302 2006-06-18 Jim Meyering <jim@meyering.net>
6304 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
6305 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
6307 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
6308 also check for glibc-2.4's abort-inducing bug.
6310 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
6311 Low-probability clean-up should be to use rmdir to get rid of
6312 the just-created directory, not unlink.
6314 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
6315 configure fail, and request a bug report to inform us about it.
6316 Add a comment that, barring reports to the contrary, in 2007 we'll
6317 assume ftruncate is universally available.
6319 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
6321 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
6323 2006-03-12 Jim Meyering <jim@meyering.net>
6325 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
6326 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
6327 * m4/same.m4 (gl_SAME): Likewise.
6328 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
6330 2006-03-11 Eric Blake <ebb9@byu.net>
6332 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
6333 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
6334 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
6335 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
6337 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
6339 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
6340 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
6341 reported by Mark D. Baushke, one in
6342 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
6344 Merge from coreutils.
6346 * lib/.cppi-disable: Add stdint_.h.
6347 * lib/.cvsignore: Add stdint.h.
6349 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
6351 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
6352 both double and long double versions.
6353 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
6354 * lib/xstrtold.c: New file.
6355 * lib/xstrtod.h (xstrtold): New decl.
6357 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
6359 * lib/filemode.c (setst): Remove.
6360 (strmode): Rewrite to avoid setst. This makes the code shorter,
6361 (arguably) clearer, and the generated code is a bit smaller on my
6362 Debian GNU/Linux stable x86 host.
6364 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
6366 * lib/filemode.c: Include "filemode.h" first, to test the interface.
6367 Assume that filemode.h includes sys/types.h and sys/stat.h.
6368 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
6369 (ftypelet): Reorder to put common cases first, for efficiency.
6370 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
6372 (strmode): Renamed from mode_string, and now stores 12 bytes instead
6373 of 10, for compatibility with FreeBSD. All callers changed.
6374 (filemodestring): Now stores 12 bytes instead of 10, and sets file
6375 types that can't be deduced solely from st_mode. First arg is now a
6377 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
6378 (strmode): Renamed from mode_string.
6379 (filemodestring): New decl.
6380 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
6381 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
6383 (S_ISPORT, S_ISWHT): New macros, if not already defined.
6385 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
6387 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
6388 fsusage.h now does that. Include fsusage.h first, to test interface.
6389 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
6390 at most one method (the old code could have generated decls that
6391 didn't conform to C89, not that this was ever exercised).
6392 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
6394 2006-03-19 Jim Meyering <jim@meyering.net>
6396 Work even in a chroot where d_ino values for entries in "/"
6397 don't match the stat.st_ino values for the same names.
6398 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
6399 number, iterate through all entries again, using lstat instead.
6400 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
6401 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
6403 * lib/getcwd.c (__getcwd): Clarify a comment.
6404 Use memcpy in place of a call to strcpy.
6406 2006-03-12 Jim Meyering <jim@meyering.net>
6408 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
6409 matches that of the current directory (which we're about to chdir ".."
6410 out of), then save the dev-ino of the parent, instead.
6412 * lib/same-inode.h (SAME_INODE): New file/macro.
6413 * lib/chdir-safer.c (SAME_INODE): Remove definition.
6414 Include "same-inode.h", instead.
6415 * lib/same.c: Likewise.
6416 * lib/cycle-check.h: Include "same-inode.h".
6417 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
6418 * lib/cycle-check.c (SAME_INODE): Remove definition.
6419 * lib/root-dev-ino.h: Include "same-inode.h".
6421 2006-03-11 Eric Blake <ebb9@byu.net>
6423 * lib/same.c (same_name): s/base_name/last_component/
6424 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
6425 * lib/filenamecat.c (file_name_concat): Likewise.
6427 2006-03-11 Eric Blake <ebb9@byu.net>,
6428 Paul Eggert <eggert@cs.ucla.edu>
6430 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
6431 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
6433 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
6434 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
6435 (last_component): New method.
6436 * lib/dirname.c (dir_len): Determine when drive letters need a
6437 subsequent slash. Preserve // when it is special.
6438 (dir_name): Don't append dot when drive letter is absolute.
6439 [TEST_DIRNAME]: Move into a full-blown gnulib test.
6440 * lib/basename.c (base_name): New semantics - malloc the result.
6441 Preserve // when it is special. Preserve relative files that look
6443 (base_len): Preserve // when it is special.
6444 (last_component): New method, similar to old base_name semantics.
6445 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
6446 base_name. Strip redundant slashes from ///.
6448 2006-07-03 Jim Meyering <jim@meyering.net>
6450 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
6451 macro is used before the first cycle_check call.
6453 2006-07-03 Eric Blake <ebb9@byu.net>
6455 * modules/dirname (Depends-on): Add xstrndup.
6457 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
6459 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
6460 test cases, so that config.log is a bit easier to follow.
6462 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
6464 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
6465 both are 64 bits, since this seems to be the tradition, and this
6466 prevents gcc -Wformat from warning about usages with PRIuMAX. If
6467 we ever run into a host that prefers long long to long in this
6468 case, we'll need another configure-time test. Problem reported by
6471 2006-07-02 Eric Blake <ebb9@byu.net>
6473 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
6475 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
6477 * modules/inttypes (Depends-on): No longer depends on stdint.
6478 * modules/stdint (Description): Say more about assumptions.
6479 Say that the fast types might differ. Say macros are used.
6480 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
6481 (Makefile.am): Revise list of substituted symbols to match
6483 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
6484 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
6485 * tests/test-stdint.c (verify_same_types)
6486 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
6487 the code conforms to C99/C89.
6488 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
6489 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
6491 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
6493 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
6494 but fix a bug, by requiring at least 64 bits.
6495 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6496 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
6497 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
6498 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
6500 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
6501 changes. Make 2.59 a prerequisite. Check and substitute for
6502 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
6503 inttypes.h. Do not use special include files; just use the
6504 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
6505 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
6506 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
6507 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
6508 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
6509 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
6510 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
6511 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
6512 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
6513 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
6514 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
6515 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
6516 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
6517 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
6518 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
6519 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
6520 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
6521 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
6522 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
6523 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
6524 WINT_MAX. Check for C99 conformance more strictly, by detecting
6525 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
6526 not check for things that C99 does not require, e.g., int8_t. If
6527 a test isn't needed unless <stdint.h> isn't working, and is
6528 unlikely to be needed for any other reason, then don't do it
6529 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
6530 size_t, since we assume C89 freestanding at least. Do not check
6531 for sig_atomic_t, wchar_t, or wint_t, since the code now does
6532 the right thing even if the types are not defined. Instead use:
6533 (gl_STDINT_TYPE_PROPERTIES): New macro.
6534 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
6535 testing whether <sys/types.h> clashes, as Autoconf does this for
6536 us now. All uses removed.
6537 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
6538 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
6539 (gl_CHECK_TYPE_SAME):
6540 Remove; no longer needed.
6541 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
6542 exists, since we'll return 0 anyway in that case.
6543 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
6545 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
6547 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
6548 possible collision with system files.
6549 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
6550 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
6551 WCHAR_MIN and WCHAR_MAX in this case.
6552 (<stddef.h>): Do not include; no longer needed.
6553 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
6554 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
6555 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
6556 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
6557 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
6558 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
6559 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
6560 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
6561 !defined(__c99))]: Include in this case too, since it's harmless
6563 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
6565 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
6566 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
6567 (_STDINT_MIN, _STDINT_MAX): New macros.
6568 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
6569 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
6570 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
6571 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
6572 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
6573 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
6574 macros, not typedefs; this simplifies things quite a bit.
6575 Use long int for all types narrower than int64_t.
6576 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
6577 Define in terms of long long int or int64_t or long int,
6578 not int64_t or int32_t. This saves some compile-time testing.
6579 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
6580 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
6581 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
6582 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
6583 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
6584 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
6585 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
6586 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
6587 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
6588 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
6589 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6590 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6591 undef any previous version and define our own version, for
6592 simplicity and consistency with the new macros for types.
6593 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
6594 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
6595 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
6596 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
6597 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
6598 @WINT_T_SUFFIX@ to keep things simple here.
6599 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
6600 Simplify by assuming typical 8/16/32/64 host, since we're
6601 already doing that elsewhere anyway.
6602 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
6603 and assume long long int is 64 bits if available. This
6604 speeds up 'configure'.
6606 2006-07-01 Eric Blake <ebb9@byu.net>
6608 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
6609 Reported by Andreas Buening.
6611 2006-07-01 Eric Blake <ebb9@byu.net>
6613 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
6615 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
6617 * lib/getaddrinfo.c: fixed typo
6619 2006-06-29 Jim Meyering <jim@meyering.net>
6621 * modules/strftime (Maintainer): Add my name, since with the
6622 FPRINTFTIME changes strftime.c has forked from glibc.
6624 2006-06-29 Eric Blake <ebb9@byu.net>
6626 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
6628 2006-06-29 Eric Blake <ebb9@byu.net>
6630 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
6632 2006-06-29 Eric Blake <ebb9@byu.net>
6634 * lib/stat_.h: New file.
6636 2006-06-29 Eric Blake <ebb9@byu.net>
6638 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
6639 unused static function.
6641 2006-06-29 Eric Blake <ebb9@byu.net>
6643 * doc/functions.texi (Function Portability): Document missing lstat
6646 2006-06-29 Eric Blake <ebb9@byu.net>
6648 * MODULES.html.sh: Add sys_stat.
6649 * modules/sys_stat: New module.
6650 * modules/mkstemp (Depends-on): Add sys_stat.
6652 2006-06-29 Derek R. Price <derek@ximbiot.com>
6654 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
6656 2006-06-29 Derek R. Price <derek@ximbiot.com>
6658 * m4/c-bs-a.m4: Removed.
6660 2006-06-29 Derek R. Price <derek@ximbiot.com>
6662 * lib/strftime.c: Assume strftime() exists.
6664 2006-06-29 Derek Price <derek@ximbiot.com>
6666 * modules/c-bs-a: Removed - \a is C89.
6667 * MODULES.html.sh: Remove c-bs-a.
6669 2006-06-29 Bruno Haible <bruno@clisp.org>
6671 * modules/wcwidth (License): Change to LGPL.
6673 2006-06-28 Simon Josefsson <jas@extundo.com>
6675 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
6678 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
6681 2006-06-28 Simon Josefsson <jas@extundo.com>
6683 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
6685 2006-06-28 Simon Josefsson <jas@extundo.com>
6687 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
6688 functions there. It will succeed on Windows XP, but on Windows
6689 2000 and (presumably) earlier, it will fail, and use the internal
6691 (use_win32_p): New function.
6692 (getaddrinfo): Use strtoul on servname, to support numeric ports.
6693 Support AI_NUMERICSERV to disable getservbyname.
6694 (getnameinfo): New function, only supports
6695 NI_NUMERICHOST|NI_NUMERICSERV for now.
6697 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
6698 only have some of them. Add AI_NUMERICSERV. Add prototype for
6701 2006-06-28 Eric Blake <ebb9@byu.net>
6703 * modules/wcwidth: New file.
6704 * modules/mbchar (Depends-on): Add wcwidth.
6705 * modules/mbswidth (Depends-on): Add wcwidth.
6706 * MODULES.html.sh: Add wcwidth.
6708 2006-06-28 Eric Blake <ebb9@byu.net>
6710 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
6711 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
6713 2006-06-28 Eric Blake <ebb9@byu.net>
6715 * lib/xvasprintf.h: Fix comments.
6717 2006-06-28 Eric Blake <ebb9@byu.net>
6719 * lib/mbchar.h (wcwidth): Include wcwidth.h.
6720 * lib/mbswidth.c (wcwidth): Move from here...
6721 * lib/wcwidth.h: ...to this new file.
6723 2006-06-28 Derek R. Price <derek@ximbiot.com>
6725 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
6727 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
6729 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
6731 2006-06-28 Derek R. Price <derek@ximbiot.com>
6733 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
6734 Autoconf 2.60 says this stuff was obsolete.
6736 2006-06-28 Bruno Haible <bruno@clisp.org>
6738 * modules/wcwidth (Files): Add m4/wchar_t.m4.
6740 2006-06-28 Bruno Haible <bruno@clisp.org>
6742 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
6745 2006-06-28 Bruno Haible <bruno@clisp.org>
6747 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
6748 declaration for wcwidth.
6749 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
6751 2006-06-28 Bruno Haible <bruno@clisp.org>
6753 * lib/mkdtemp.c [MINGW]: Include <io.h>.
6754 (mkdir): Define using _mkdir.
6756 2006-06-28 Bruno Haible <bruno@clisp.org>
6758 * lib/getaddrinfo.h: Fix POSIX URL.
6759 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
6761 (use_win32_p): Make static.
6762 (getaddrinfo): Reject service name if it is empty or does not consist
6763 solely of decimal digits, or if its value is > 65535.
6764 (getnameinfo): Remove useless casts.
6766 2006-06-27 Simon Josefsson <jas@extundo.com>
6768 * modules/sys_select: New file, suggested by Bruno Haible, Paul
6769 Eggert and Martin Lambers.
6771 2006-06-27 Simon Josefsson <jas@extundo.com>
6773 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
6774 Eggert and Martin Lambers.
6776 2006-06-27 Bruno Haible <bruno@clisp.org>
6778 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
6779 result to 0, not to empty.
6780 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
6782 2006-06-27 Bruno Haible <bruno@clisp.org>
6784 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
6786 2006-06-26 Simon Josefsson <jas@extundo.com>
6788 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
6791 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
6793 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
6794 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
6795 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
6797 2006-06-26 Mark D. Baushke <mdb@gnu.org>
6799 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
6801 2006-06-26 Bruno Haible <bruno@clisp.org>
6803 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
6805 2006-06-26 Bruno Haible <bruno@clisp.org>
6807 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
6809 2006-06-26 Bruno Haible <bruno@clisp.org>
6811 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
6812 SGI C compiler in pre-C99 mode.
6813 Suggested by Mark D. Baushke and Larry Jones.
6815 2006-06-26 Bruno Haible <bruno@clisp.org>
6817 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
6819 Reported by Mark D. Baushke and Larry Jones.
6821 2006-06-26 Bruno Haible <bruno@clisp.org>
6823 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
6825 Suggested by Mark D. Baushke and Larry Jones.
6827 2006-06-23 Simon Josefsson <jas@extundo.com>
6828 Bruno Haible <bruno@clisp.org>
6830 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
6831 Emit mostlyclean-local rule.
6832 (func_emit_tests_Makefile_am): Likewise.
6833 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
6835 2006-06-23 Mark D. Baushke <mdb@gnu.org>
6837 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
6839 2006-06-23 Bruno Haible <bruno@clisp.org>
6841 * tests/test-stdint.c: Update to match ISO C 99 Technical
6844 2006-06-23 Bruno Haible <bruno@clisp.org>
6846 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
6848 2006-06-23 Bruno Haible <bruno@clisp.org>
6850 * lib/stdint_.h: Treat IRIX like OpenBSD.
6852 2006-06-23 Bruno Haible <bruno@clisp.org>
6854 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
6855 ISO C 99 Technical Corrigendum 1.
6857 2006-06-22 Simon Josefsson <jas@extundo.com>
6859 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
6862 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
6864 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
6865 needed. Some compiler complained about some of them. Problem reported
6867 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
6869 2006-06-21 Simon Josefsson <jas@extundo.com>
6871 * tests/test-getaddrinfo.c: New file.
6873 * modules/getaddrinfo-tests: New file.
6875 * MODULES.html.sh: Add inet_pton.
6877 * modules/inet_pton: New file.
6879 2006-06-21 Simon Josefsson <jas@extundo.com>
6881 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
6882 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
6883 of using the (limited) gnulib implementation on Windows XP.
6885 * m4/inet_pton.m4: New file.
6887 2006-06-21 Simon Josefsson <jas@extundo.com>
6889 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
6892 * lib/socket_.h: Don't define WINVER.
6894 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
6895 slightly modified to work in gnulib.
6897 2006-06-21 Simon Josefsson <jas@extundo.com>
6899 * doc/gnulib.texi (Windows sockets): Add.
6901 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
6903 * lib/read-file.c (fread_file): Start with buffer allocation of
6904 0 bytes rather than 1 byte; this simplifies the code.
6905 Don't invoke feof; it's not needed. Refactor to avoid duplicate
6906 code to free buffer and save/restore errno.
6907 (internal_read_file): Remove unused local.
6909 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
6911 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
6912 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
6913 Problem reported by Denis Excoffier in
6914 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
6916 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
6918 * modules/sys_socket, modules/socklen: Include sys/types since
6919 FreeBSD 4.x's sys/socket.h needs it.
6921 2006-06-19 Simon Josefsson <jas@extundo.com>
6923 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
6925 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
6927 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
6929 2006-06-19 Bruno Haible <bruno@clisp.org>
6931 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
6932 and FULL_PATH_INTTYPES_H in angle brackets.
6933 Reported by Mark D. Baushke <mdb@gnu.org>.
6935 2006-06-17 Eric Blake <ebb9@byu.net>
6937 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
6940 2006-06-17 Bruno Haible <bruno@clisp.org>
6942 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
6945 2006-06-17 Bruno Haible <bruno@clisp.org>
6947 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
6948 whether errno is declared. Assume <errno.h> declares errno.
6950 2006-06-17 Bruno Haible <bruno@clisp.org>
6952 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
6954 2006-06-17 Bruno Haible <bruno@clisp.org>
6956 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
6957 problem on Solaris 2.5.1.
6959 2006-06-16 Eric Blake <ebb9@byu.net>
6961 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
6962 * lib/unicodeio.c [!defined errno]: Likewise.
6963 * lib/strtol.c [!defined errno]: Likewise.
6964 * lib/strtod.c [!defined errno]: Likewise.
6966 2006-06-15 Eric Blake <ebb9@byu.net>
6968 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
6970 2006-06-15 Eric Blake <ebb9@byu.net>
6972 * config/srclist.txt (ssize_t.m4): Lose sync.
6974 2006-06-15 Bruno Haible <bruno@clisp.org>
6976 * modules/stdint (Files): Include m4/full-header-path.m4,
6977 m4/size_max.m4, m4/wchar_t.m4.
6978 (Makefile.am): Many more substitutions.
6979 * modules/stdint-tests: New file.
6980 * tests/test-stdint.c: New file.
6982 2006-06-15 Bruno Haible <bruno@clisp.org>
6984 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
6985 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
6986 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
6987 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
6988 gl_CHECK_TYPE_SAME): New macros.
6990 2006-06-15 Bruno Haible <bruno@clisp.org>
6992 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
6994 2006-06-15 Bruno Haible <bruno@clisp.org>
6996 * lib/stdint_.h: Rewritten to be fully auto-configured.
6997 Fixes bug on HP-UX/IA64.
6999 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
7001 * lib/getdate.y (__attribute__): Don't define if already defined.
7002 Problem reported by Larry Jones.
7003 * lib/utimens.c (__attribute__): Likewise.
7005 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
7007 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7008 reported by Andreas Schwab.
7010 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7011 Bruno Haible <bruno@clisp.org>
7013 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7014 check for the declaration of strnlen and a run test that exposes the
7015 AIX 5.1 strnlen bug. In the failure case, #define strndup to
7018 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7019 Bruno Haible <bruno@clisp.org>
7021 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7023 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7025 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7026 compile test, for Tru64 4.0D.
7028 2006-05-28 Karl Berry <karl@gnu.org>
7030 * config/srclist.txt (printf-args.c): lose sync.
7032 2006-05-26 Martin Lambers <marlam@marlam.de>
7034 * lib/getpass.c: Updates the test for the native W32 API, and adds
7035 missing includes, thus fixing compilation warnings.
7037 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
7039 * lib/exclude.c (exclude_fnmatch): New function.
7040 (excluded_file_name): Call exclude_fnmatch.
7041 * lib/exclude.h (excluded_file_name): New prototype
7043 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
7045 * lib/tempname.c (small_open, large_open): New macros.
7046 (__open, __open64) [!_LIBC]: Remove.
7047 (__gen_tempname): Use small_open and large_open instead of __open
7048 and __open64. This fixes a portability bug on HP-UX 11.11i
7049 reported by Simon Wing-Tang in
7050 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7052 2006-05-24 Bruno Haible <bruno@clisp.org>
7054 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7055 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7056 Reported by Thorsten Maerz <torte@netztorte.de> via
7057 Aaron Stone <aaron@serendipity.cx>.
7059 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7061 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7062 gl_ rather than jm_. Link, don't run, so that cross-compiles are
7063 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
7064 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7065 not really conditional on the cache.
7066 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7068 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
7070 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7071 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7072 (my_usleep): Don't mishandle maximum value.
7074 2006-05-19 Jim Meyering <jim@meyering.net>
7076 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
7078 2006-05-17 Bruno Haible <bruno@clisp.org>
7081 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
7083 2006-05-17 Bruno Haible <bruno@clisp.org>
7085 * lib/stdint_.h: Fix recognition of Cygwin.
7087 2006-05-15 Bruno Haible <bruno@clisp.org>
7089 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
7090 on libtool patch by Ralf Wildenhues.
7092 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
7094 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
7095 test for C99 conformance; (bool) 0.5 is an integer constant
7096 expression, but (bool) -0.5 is not. Problem reported by Fedor
7097 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
7099 2006-05-11 Simon Josefsson <jas@extundo.com>
7101 * m4/xvasprintf.m4: Fix obvious typo.
7103 2006-05-11 Jim Meyering <jim@meyering.net>
7105 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
7108 2006-05-10 Simon Josefsson <jas@extundo.com>
7110 * lib/md4.c: Typo fix, update copyright years.
7111 (K1, K2): Don't use L because it turn computations into 64-bit on
7114 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
7116 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
7117 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
7118 unwanted sign propagation, e.g., on hosts with 64-bit int.
7119 There still are some problems with reeelly weird theoretical hosts
7120 (e.g., 33-bit int) but it's not worth worrying about now.
7121 * lib/sha1.c (rol): Likewise.
7122 (K1, K2, K3, K4): Remove unnecessary L suffix.
7124 2006-05-10 Bruno Haible <bruno@clisp.org>
7126 * lib/des.c: Cast to avoid warnings.
7128 2006-05-09 Bruno Haible <bruno@clisp.org>
7130 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
7131 (Depends-on): Depend also on xsize, stdarg.
7132 (configure.ac): Add gl_XVASPRINTF.
7134 2006-05-09 Bruno Haible <bruno@clisp.org>
7136 * m4/xvasprintf.m4: New file.
7138 2006-05-09 Bruno Haible <bruno@clisp.org>
7140 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
7141 (EOVERFLOW): Define fallback value.
7142 (xstrcat): New function.
7143 (xvasprintf): Recognize the special case of a string concatenation.
7145 2006-05-08 Eric Blake <ebb9@byu.net>
7147 * gnulib-tool (func_version): Base copyright year on CVS date.
7148 (func_emit_copyright_notice): New function.
7149 (func_emit_lib_Makefile_am): Use it.
7150 (func_emit_tests_Makefile_am): Likewise.
7151 (func_import): Likewise.
7153 2006-05-08 Bruno Haible <bruno@clisp.org>
7155 * modules/stdarg: New file.
7156 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
7158 2006-05-08 Bruno Haible <bruno@clisp.org>
7160 * m4/stdarg.m4: New file, from GNU gettext.
7162 2006-05-08 Bruno Haible <bruno@clisp.org>
7164 * config/srclist.txt (build-aux/config.rpath): different from latest
7167 2006-05-08 Bruno Haible <bruno@clisp.org>
7169 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
7171 2006-05-05 Jim Meyering <jim@meyering.net>
7173 * m4/warning.m4: New file, derived from bison's file by the same name.
7175 2006-05-03 Bruno Haible <bruno@clisp.org>
7177 * lib/stdint_.h: Shorter URL.
7178 * lib/inttypes.h: Likewise.
7180 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7182 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
7184 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7186 * lib/verify.h: Document the internals better. Most of this change
7187 was written by Bruno Haible.
7189 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
7191 * doc/verify.texi: New file, partly based on a proposal by
7194 2006-05-02 Bruno Haible <bruno@clisp.org>
7196 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
7198 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
7200 2006-04-29 Bruno Haible <bruno@clisp.org>
7202 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
7203 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
7205 2006-04-29 Bruno Haible <bruno@clisp.org>
7207 * gnulib-tool: Make --update option actually work.
7209 2006-04-29 Bruno Haible <bruno@clisp.org>
7211 * doc/gcd.texi: New file.
7212 * doc/gnulib.texi: Include it.
7214 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
7216 * lib/getdate.y (get_date): When adding relative date, start with the
7217 initial time, not with the result of the first mktime call.
7219 2006-04-25 Bruno Haible <bruno@clisp.org>
7221 * gnulib-tool (func_import): Output the include directives in three
7222 blocks, sorted separately.
7223 Reported by Ben Pfaff <blp@cs.stanford.edu>.
7225 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
7227 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
7228 to define main with arguments, for C++. Reported by Eric Blake.
7229 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7230 Prefer 'int main ()' to 'int main (void)', for C++.
7231 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7232 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
7233 for 'main', for C99 and C++.
7235 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
7237 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
7238 Don't assume that exit status -1 is valid.
7239 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7240 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7241 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7242 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
7243 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
7244 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
7245 not AC_TRY_RUN. Use return, not exit. Don't assume that
7246 functions can be used without declaring them, or that you can
7247 exit with status -1.
7248 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7250 2006-04-24 Karl Berry <karl@gnu.org>
7252 * config/srclist.txt (longdouble.m4): sync lost.
7254 2006-04-24 Eric Blake <ebb9@byu.net>
7256 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
7258 2006-04-24 Bruno Haible <bruno@clisp.org>
7260 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
7261 poll() implementation in AIX.
7262 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7264 2006-04-24 Bruno Haible <bruno@clisp.org>
7266 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
7267 assigned exactly once.
7269 2006-04-23 Claudio Fontana <claudio@gnu.org>
7270 Bruno Haible <bruno@clisp.org>
7272 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
7273 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
7276 2006-04-23 Bruno Haible <bruno@clisp.org>
7278 * modules/copy-file: Depend on unistd.
7279 * modules/execute: Likewise.
7280 * modules/fatal-signal: Likewise.
7281 * modules/findprog: Likewise.
7282 * modules/mkdtemp : Likewise.
7283 * modules/pipe: Likewise.
7284 * modules/wait-process: Likewise.
7286 2006-04-23 Bruno Haible <bruno@clisp.org>
7288 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
7289 condition was already detected.
7290 Reported by Ben Pfaff <blp@cs.stanford.edu>.
7292 2006-04-23 Bruno Haible <bruno@clisp.org>
7294 * lib/copy-file.c: Include <unistd.h> unconditionally.
7295 * lib/execute.c: Likewise.
7296 * lib/fatal-signal.c: Likewise.
7297 * lib/findprog.c: Likewise.
7298 * lib/mkdtemp.c: Likewise.
7299 * lib/pipe.h: Likewise.
7300 * lib/pipe.c: Likewise.
7301 * lib/wait-process.h: Likewise.
7303 2006-04-23 Bruno Haible <bruno@clisp.org>
7305 * gnulib-tool (func_usage): Fix --import description. Document
7307 (func_import): Create temporary file in a temporary directory, if
7308 --dry-run is specified. Silence errors from 'grep' when there are no
7310 (func_create_testdir): Silence errors from 'grep' when there are no
7312 Reported by Karl Berry <karl@freefriends.org>.
7314 2006-04-20 Bruno Haible <bruno@clisp.org>
7316 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
7317 one argument, so that the code will be portable to Autoconf 2.60.
7318 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
7319 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7320 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
7322 2006-04-19 Derek Price <derek@ximbiot.com>
7323 Eric Blake <ebb9@byu.net>
7325 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
7326 rather than "/full/path.h". Update comment to match. Shorten &
7327 generalize m4_translit call via AS_TR_CPP.
7329 2006-04-19 Derek Price <derek@ximbiot.com>
7330 Eric Blake <ebb9@byu.net>
7332 * lib/inttypes.h: Correct grammar in comment.
7334 2006-04-18 Derek Price <derek@ximbiot.com>
7335 Paul Eggert <eggert@cs.ucla.edu>
7337 * modules/inttypes: New file.
7338 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
7340 2006-04-18 Derek Price <derek@ximbiot.com>
7341 Paul Eggert <eggert@cs.ucla.edu>
7343 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
7346 2006-04-18 Derek Price <derek@ximbiot.com>
7347 Paul Eggert <eggert@cs.ucla.edu>
7349 * lib/inttypes.h: New file.
7350 * lib/strtoimax.c: Assume <inttypes.h>.
7352 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
7354 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
7355 isn't mounted. Problem reported by Kir Kolyshkin.
7357 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
7359 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
7360 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
7362 * lib/regex.h (RE_DUP_MAX): Update comment to match current
7365 2006-04-12 Eric Blake <ebb9@byu.net>
7367 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
7368 is now done automatically by the corresponding Autoconf macro.
7370 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
7372 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
7375 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
7377 Merge regex changes from libc, removing some of our
7378 POSIX-conformance changes that were rejected and redoing them in a
7381 * lib/regcomp.c (re_compile_internal, init_dfa):
7382 Length arg is now size_t, not Idx. All uses changed.
7383 (peek_token): Forward decl now says internal_function.
7384 (__re_error_msgid, __re_error_msgid_idx):
7385 Now static rather than extern with attribute_hidden.
7386 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
7387 For some reason libc prefers K&R style defns for external functions.
7388 (regerror) [!defined _LIBC]: Likewise.
7389 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
7390 (seek_collating_symbol_entry, lookup_collation_sequence_value):
7391 (build_range_exp, build_collating_symbol):
7393 (re_compile_fastmap): Use '\0' to memset, not 0.
7394 (utf8_sb_map): Make the calculations more obvious.
7395 (init_dfa, parse_bracket_exp, build_charclass_op):
7396 Call calloc and cast result, as glibc does.
7397 (init_word_char, fetch_token, peek_token, peek_token_bracket):
7398 (build_range_exp, build_collating_symbol):
7399 Now internal functions.
7401 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
7403 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
7404 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
7405 Don't depend on VMS; depend on __VMS instead, for POSIX
7406 namespace cleanness.
7407 (regoff_t): Define to ssize_t, not long int.
7409 Remove the REG_ macros named below. Instead, make the old names
7410 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
7412 (REG_BACKSLASH_ESCAPE_IN_LISTS):
7413 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
7414 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
7415 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
7416 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
7417 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
7418 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
7419 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
7420 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
7421 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
7422 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
7423 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
7424 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
7425 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
7426 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
7427 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
7428 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
7430 Remove. All uses replaced by the old RE_* names.
7431 (RE_BACKSLASH_ESCAPE_IN_LISTS):
7432 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
7433 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
7434 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
7435 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
7436 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
7437 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
7438 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
7439 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
7440 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
7441 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
7442 Don't bother having these macros be independent of each others'
7443 values, since they no longer exist in the POSIX name space.
7445 Rename the following member names back to their old names,
7446 unless !__USE_GNU_REGEX. All uses changed back.
7447 (buffer): Renamed from re_buffer.
7448 (allocated): Renamed from re_allocated.
7449 (used): Renamed from re_used.
7450 (syntax): Renamed from re_syntax.
7451 (fastmap): Renamed from re_fastmap.
7452 (translate): Renamed from re_translate.
7453 (can_be_null): Renamed from re_can_be_null.
7454 (regs_allocated): Renamed from re_regs_allocated.
7455 (fastmap_accurate): Renamed from re_fastmap_accurate.
7456 (no_sub): Renamed from re_no_sub.
7457 (not_bol): Renamed from re_not_bol.
7458 (not_eol): Renamed from re_not_eol.
7459 (newline_anchor): Renamed from re_newline_anchor.
7460 (num_regs): Renamed from rm_num_regs.
7461 (start): Renamed from rm_start.
7462 (end): Renamed from rm_end.
7464 (free_state): Move up a bit.
7466 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
7467 #define to be empty.
7468 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
7469 when that is what is intended.
7470 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
7471 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
7473 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
7474 All uses changed back to re_malloc, etc. It's now the caller's
7475 responsibility to check for overflow; all callers changed.
7476 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
7477 (re_x2nrealloc): Remove.
7478 (free_state): Remove decl.
7480 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
7481 (re_set_registers, re_exec):
7484 2006-01-31 Roland McGrath <roland@redhat.com>
7486 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
7487 Reported by Mike Frysinger <vapier@gentoo.org>.
7489 2006-01-15 Andreas Jaeger <aj@suse.de>
7492 * lib/regex_internal.c (re_string_reconstruct): Adjust for
7493 build_wcs_upper_buffer change.
7494 (build_wcs_upper_buffer): Change return type.
7496 2005-12-10 Ulrich Drepper <drepper@redhat.com>
7498 * lib/regex_internal.h: Include <stdint.h> if available.
7500 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
7502 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
7504 2005-10-14 Ulrich Drepper <drepper@redhat.com>
7506 * lib/regcomp.c: Adjust for changed secondary hash function.
7508 2005-09-30 Ulrich Drepper <drepper@redhat.com>
7510 * lib/regex.h: Pretty printing.
7511 Clean up namespace a bit.
7513 2005-09-30 Jakub Jelinek <jakub@redhat.com>
7515 * lib/regexec.c (update_cur_sifted_state, check_arrival,
7516 check_arrival_add_next_nodes): Avoid using uninitialized variable.
7518 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7519 Ulrich Drepper <drepper@redhat.com>
7522 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
7524 (bitset_word_t): Renamed from bitset_word. All uses changed.
7526 2005-09-22 Ulrich Drepper <drepper@redhat.com>
7529 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
7530 * lib/regcomp.c: Remove unnecessary uses of
7531 unsigned RE_TRANSLATE_TYPE.
7532 * lib/regex_internal.h: Likewise.
7533 * lib/regex_internal.c: Likewise.
7534 * lib/regexec.c: Likewise.
7535 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
7537 2005-09-07 Ulrich Drepper <drepper@redhat.com>
7539 * lib/regexec.c (find_recover_state): Remove unnecessary
7541 (transit_state_bkref): Make DFA a const pointer.
7542 (get_subexp): Likewise.
7543 (check_arrival): Likewise.
7544 (update_cur_sifted_state): Likewise.
7545 (re_search_internal): Likewise.
7546 (prune_impossible_nodes): Likewise.
7547 (acquire_init_state_context): Likewise.
7548 (proceed_next_node): Likewise.
7549 (set_regs): Likewise.
7550 (free_fail_stack_return): Likewise.
7551 (check_arrival_expand_ecl): Mark DFA parameter as const.
7552 (check_arrival_expand_ecl_sub): Likewise.
7553 (check_subexp_limits): Likewise.
7554 (sub_epsilon_src_nodes): Likewise.
7555 (add_epsilon_src_nodes): Likewise.
7556 (merge_state_array): Likewise.
7557 (update_regs): Likewise.
7558 (build_trtable): Likewise.
7559 (sift_states_backward): Mark MCTX parameter as const.
7560 (build_sifted_states): Likewise.
7561 (update_cur_sifted_state): Likewise.
7562 (sift_states_mkref): Likewise.
7563 (check_arrival_expand_ecl): Mark eclosure as const.
7564 (check_dst_limits_calc_pos_1): Likewise.
7565 * lib/regex_internal.h (re_match_context_t): Make dfa a const
7568 2005-09-06 Ulrich Drepper <drepper@redhat.com>
7570 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
7571 (transit_state_sb): Likewise.
7572 (transit_state_mb): Likewise.
7573 (sift_states_iter_mb): Likewise.
7574 (check_arrival_add_next_nodes): Likewise.
7575 (check_node_accept_bytes): Change first parameter to pointer-to-const.
7576 [_LIBC] (re_search_2_stub): Use mempcpy.
7578 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
7579 mbrtowc for very simple UTF-8 case.
7581 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
7583 (re_acquire_state_context): Likewise.
7584 * lib/regex_internal.h: Adjust prototypes.
7586 * lib/regex.c: Prevent using C++ compilers.
7588 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
7589 (re_acquire_state_context): Likewise.
7591 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
7593 * modules/regex (Depends-on): Add ssize_t.
7595 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
7597 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
7600 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
7602 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
7604 2006-03-29 Mark D. Baushke <mdb@gnu.org>
7605 Bruno Haible <bruno@clisp.org>
7607 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
7608 <sys/types.h> and <inttypes.h>.
7610 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7612 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
7613 `__error_t_defined', so argp.h will not typedef the former.
7615 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
7617 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
7618 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
7619 glibc names. Even if glibc is changed to conform to POSIX, the
7620 traditional names will be available anyway, since regex depends on
7621 the extensions module. Also, fix a longstanding typo in the
7622 implementation of Spencer ERE test #75 from grep 2.3. Problems
7623 reported by Emanuele Giaquinta. Also, change sense of cached
7624 variable, so that the message makes sense.
7626 2006-03-24 Simon Josefsson <jas@extundo.com>
7628 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
7629 including some doc fixes.
7630 (base64_encode_alloc): Fix +1 bug on allocation failures.
7632 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7634 * lib/base64.c (base64_encode): Do not read past end of array with
7635 unsanitized input on systems with CHAR_BIT > 8.
7637 2006-03-24 Eric Blake <ebb9@byu.net>
7639 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
7641 2006-03-22 Karl Berry <karl@gnu.org>
7643 * config/srclist.txt (*setenv.[ch]): get from coreutils.
7644 * config/srclistvars.sh (COREUTILS): new var.
7646 2006-03-17 Jim Meyering <jim@meyering.net>
7648 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
7649 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
7651 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
7653 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
7654 no longer needs it. Instead, check that regoff_t is as least
7655 as wide as ptrdiff_t.
7657 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
7658 so that our regex.h stays compatible with the installed regex.
7659 This is helpful for installers who configure --without-included-regex.
7660 Problem reported by Emanuele Giaquinta.
7662 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
7664 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
7665 Typedef to long int, not to off_, as POSIX will likely change
7668 2006-03-15 Eric Blake <ebb9@byu.net>
7670 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
7672 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
7674 * lib/argp-help.c (validate_uparams): Fix typo
7675 * lib/argp-parse.c (argp_default_options): Consistently begin help
7676 messages with a lowercase letter.
7678 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
7680 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
7681 overrun buffers and shouldn't be used (much as gets shouldn't be
7683 * lib/time_r.c (asctime_r, ctime_r): Likewise.
7685 2006-03-08 Simon Josefsson <jas@extundo.com>
7687 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
7688 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7690 2006-03-08 Simon Josefsson <jas@extundo.com>
7692 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
7693 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7695 2006-03-08 Simon Josefsson <jas@extundo.com>
7697 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
7698 signal that configure disabled the device.
7700 2006-03-08 Simon Josefsson <jas@extundo.com>
7702 * build-aux/maint.mk: Fix refresh-po, to handle no translated
7705 2006-03-07 Simon Josefsson <jas@extundo.com>
7707 * modules/getopt (Depends-on): Add unistd.
7709 * modules/unistd: New file.
7711 2006-03-07 Simon Josefsson <jas@extundo.com>
7713 * modules/gc-random: New file.
7715 2006-03-07 Simon Josefsson <jas@extundo.com>
7717 * m4/unistd_h.m4: New file.
7719 2006-03-07 Simon Josefsson <jas@extundo.com>
7721 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
7722 test to be side-effect free by storing the result in the cache
7723 variable gl_cv_lib_readline, and moving the assignment of
7724 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
7725 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7727 2006-03-07 Simon Josefsson <jas@extundo.com>
7729 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
7730 error on missing devices (the functions will return an error).
7732 * m4/gc.m4: Move random stuff to gc-random.m4
7734 2006-03-07 Simon Josefsson <jas@extundo.com>
7736 * lib/unistd_.h: New file.
7738 2006-03-07 Simon Josefsson <jas@extundo.com>
7740 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
7742 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
7744 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
7745 Problem reported by Juan Manuel Guerrero.
7747 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
7749 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
7751 * lib/getlogin_r.c: Likewise.
7752 * lib/getlogin_r.h: Likewise.
7753 * lib/glob.c: Likewise.
7754 * lib/pagealign_alloc.c: Likewise.
7755 * lib/unistd_.h: Remove; no longer needed.
7757 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
7759 * MODULES.html.sh (Support for systems lacking POSIX:2001):
7761 * modules/c-stack (Depends-on): Add unistd.
7762 * modules/getlogin_r: Likewise.
7763 * modules/glob: Likewise.
7764 * modules/pagealign_alloc: Likewise.
7765 * modules/unistd (Files): Remove lib/unistd_.h.
7766 (EXTRA_DIST): Remove.
7767 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
7769 (MOSTLYCLEANFILES): Remove unistd.h-t.
7771 2006-03-03 Simon Josefsson <jas@extundo.com>
7773 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
7775 2006-03-03 Simon Josefsson <jas@extundo.com>
7777 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
7780 2006-03-03 Simon Josefsson <jas@extundo.com>
7782 * build-aux/maint.mk: Add indent target.
7784 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
7786 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
7787 our replacement poll.h in any case, to avoid a differing
7788 declaration from a system header. Seen on AIX.
7790 2006-03-01 Simon Josefsson <jas@extundo.com>
7792 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
7795 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
7797 * modules/gettime (Depends-on): Add extensions module.
7798 * modules/nanosleep (Depends-on): Likewise.
7799 * modules/settime (Depends-on): Likewise.
7801 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
7803 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
7804 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
7806 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7807 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
7809 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
7810 not "==". Reported by Ralf Wildenhues.
7812 2006-03-01 Karl Berry <karl@gnu.org>
7814 * doc/Copyright/request-*: new files, synced from gnuorg.
7816 2006-03-01 Karl Berry <karl@gnu.org>
7818 * config/srclist.txt (Copyright/*): new entries.
7820 2006-02-28 Simon Josefsson <jas@extundo.com>
7822 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
7824 2006-02-27 Simon Josefsson <jas@extundo.com>
7826 * lib/base64.h: Indent #define's. From Jim Meyering
7829 2006-02-27 Jim Meyering <jim@meyering.net>
7831 Revert the change of 2006-02-24, so these files can continue
7832 to be sync'd from gettext.
7833 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
7836 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
7838 * modules/intprops: New file.
7839 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
7841 * modules/getloadavg (Files): Remove lib/intprops.h.
7842 (Depends-on): Add intprops.
7843 * modules/human: Likewise.
7844 * modules/inttostr: Likewise.
7845 * modules/openat: Likewise.
7846 * modules/sig2str: Likewise.
7847 * modules/userspec: Likewise.
7848 * modules/utimecmp: Likewise.
7849 * modules/xnanosleep: Likewise.
7850 * modules/xstrtol: Likewise.
7852 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
7854 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
7855 * modules/lock-tests (TESTS): Use $(EXEEXT).
7856 * modules/tls-tests: Likewise.
7857 * modules/argp-tests: Likewise.
7858 (check_PROGRAMS): New var, replacing...
7859 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
7861 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7863 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
7866 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
7868 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
7870 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7872 Sync from coreutils.
7873 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
7876 2006-02-22 Jim Meyering <jim@meyering.net>
7878 Sync from coreutils.
7879 * m4/chdir-safer.m4: New file.
7881 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
7883 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
7884 AT_FDCWD exceeds INT_MAX.
7885 * lib/openat.h (AT_FDCWD): Likewise.
7887 2006-02-17 Eric Blake <address@hidden>
7889 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
7891 2006-02-16 Simon Josefsson <jas@extundo.com>
7893 * modules/getaddrinfo (Depends-on): Add sys_socket.
7895 2006-02-15 Simon Josefsson <jas@extundo.com>
7897 * build-aux/maint.mk: Add dsyntax-check rule.
7899 2006-02-15 Eric Blake <ebb9@byu.net>
7901 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
7902 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
7903 'present but cannot compile' warnings on cygwin.
7904 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
7905 use ws2tcpip.h if sys/socket.h works.
7906 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
7907 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
7909 2006-02-14 Simon Josefsson <jas@extundo.com>
7911 * modules/maintainer-makefile (Files): Rename.
7913 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
7914 and (the local) Makefile.cfg to maint-cfg.mk.
7916 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
7919 * modules/maintainer-makefile: New module.
7921 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
7922 severaly stripped to make it possible to build it up from scratch
7923 with reliable tests.
7925 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
7926 fixes to permit overriding the default actions when configure and
7927 makefile are not available.
7929 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
7931 Sync from coreutils.
7932 * modules/lstat (Depends-on): Don't depend on xalloc.
7933 (License): Change from GPL to LGPL, since this is now simply a
7934 replacement for a libc function.
7936 2006-02-14 Jim Meyering <jim@meyering.net>
7938 Sync from coreutils.
7940 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
7941 failure on deficient systems, and simplify gnulib lgpl dependencies.
7942 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
7943 xmalloc/lstat combination. Based on a patch from Bruno Haible.
7945 * lib/xalloc-die.c: Remove unused definition of N_.
7947 2006-02-14 Jim Meyering <jim@meyering.net>
7949 Sync from coreutils.
7950 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
7951 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
7952 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
7953 double-quote uses of that variable, to accommodate the rare case in
7954 which getmntent is available in none of the libraries checked. This
7955 happens at least on FreeBSD 5.0.
7957 2006-02-13 Simon Josefsson <jas@extundo.com>
7959 * gnulib-tool (Usage): Fix --import, from
7960 karl@freefriends.org (Karl Berry).
7962 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
7964 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
7966 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
7968 * lib/argp-namefrob.h: Restore changes accidentally lost during the
7969 "autoupdate" on 2005-12-12.
7971 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
7973 * modules/closeout (Depends-on): Remove atexit.
7975 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
7977 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
7978 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
7980 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
7982 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
7983 __EXTENSIONS__ if this causes compilation to fail. Problem
7984 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
7985 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
7987 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
7989 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
7990 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
7991 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
7994 2006-01-26 Simon Josefsson <jas@extundo.com>
7996 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
7997 prototype is visible on mingw32.
7999 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8002 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8005 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
8007 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
8008 attempt to open for write; this always fails, at least on POSIX
8009 hosts. This reinstates the 2006-01-09 change, which was
8010 inadvertently removed.
8012 2006-01-26 Bruno Haible <bruno@clisp.org>
8014 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8015 Reported by Paul Eggert.
8017 2006-01-26 Bruno Haible <bruno@clisp.org>
8018 Paul Eggert <eggert@cs.ucla.edu>
8020 * lib/stdbool_.h (_Bool)
8021 [(! (defined __cplusplus || defined __BEOS__)
8022 && !defined __GNUC__
8023 && !(defined __HP_cc || defined __xlc__
8024 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8025 || defined __sgi))]:
8026 #define to signed char in these cases too; this simplifies
8027 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8028 etc., separately) and makes it more conservative.
8030 2006-01-25 Simon Josefsson <jas@extundo.com>
8032 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8033 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
8034 ws2tcpip.h with WINVER=0x0501. All for mingw32.
8036 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
8038 * lib/argp-namefrob.h: Bugfix. Remove stray #
8040 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
8042 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8043 so that we test the test.
8044 Check for yet another HP-UX cc bug involving *bool |= bool.
8046 2006-01-25 Karl Berry <karl@gnu.org>
8048 * config/srclist.txt (vasnprintf.c): sync lost.
8050 2006-01-25 Jim Meyering <jim@meyering.net>
8052 Sync from the stable (b5) branch of coreutils:
8054 * lib/fts.c (fts_children): Don't let close() clobber errno from
8057 * lib/fts.c (fts_stat): When following a symlink-to-directory,
8058 don't necessarily interpret stat-fails+lstat-succeeds as indicating
8059 a dangling symlink. That can also happen at least for ELOOP.
8060 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8061 FYI, this bug predates the inclusion of fts.c in coreutils.
8063 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8064 in their own block, so pre-c99 compilers don't object.
8066 Avoid the double-free (first in fts_read, second in fts_close) that
8067 would occur when an `active' directory is made inaccessible (e.g.,
8068 via chmod a-x) during a traversal.
8069 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8070 before returning. Reproduce this failure by
8071 mkdir -p a/b; cd a; chmod a-x . b
8072 Reported by Stavros Passas.
8074 2006-01-25 Jim Meyering <jim@meyering.net>
8076 * lib/fileblocks.c: Remove more useless parentheses.
8077 * lib/readutmp.h: Likewise.
8079 2006-01-25 Bruno Haible <bruno@clisp.org>
8081 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
8083 Reported by Paul Eggert.
8085 2006-01-25 Bruno Haible <bruno@clisp.org>
8087 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
8088 rid of a trap command. For Solaris sh.
8089 Reported by Mark D. Baushke <mdb@gnu.org>.
8091 2006-01-24 Simon Josefsson <jas@extundo.com>
8093 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
8096 2006-01-24 Karl Berry <karl@gnu.org>
8098 * config/srclist.txt (argp-namefrob.h): sync lost.
8100 2006-01-24 Jim Meyering <jim@meyering.net>
8102 * modules/openat (Files): Add lib/intprops.h.
8103 From Mark D. Baushke.
8105 2006-01-24 Jim Meyering <jim@meyering.net>
8107 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
8108 Reported by Mark D. Baushke.
8110 2006-01-24 Jim Meyering <jim@meyering.net>
8112 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
8114 2006-01-24 Bruno Haible <bruno@clisp.org>
8116 * modules/strnlen (Maintainer): Change from glibc to all.
8118 2006-01-24 Bruno Haible <bruno@clisp.org>
8120 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
8121 Patch by Paul Eggert.
8123 2006-01-24 Bruno Haible <bruno@clisp.org>
8125 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
8127 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
8130 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
8131 'signed char' to avoid problems with the built-in _Bool type.
8132 Reported by Paul Eggert on 2005-11-26.
8134 2006-01-24 Bruno Haible <bruno@clisp.org>
8136 * gnulib-tool (func_import): Avoid constructing complicated sed
8137 expressions inside backquote.
8138 Report and solution by Mark D. Baushke <mdb@gnu.org>.
8140 2006-01-23 Ulrich Drepper <drepper@redhat.com>
8142 These changes imported from libc.
8143 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
8144 test and two separate function calls.
8145 * lib/strndup.c (__strndup): Add libc_hidden_def.
8147 2006-01-23 Simon Josefsson <jas@extundo.com>
8149 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
8150 Remove the test_*_SOURCES variable: automake infers it by default.
8151 * modules/tls-tests: Likewise.
8153 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8155 Work around porting bugs reported by Dieter in
8156 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
8157 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
8158 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
8159 Include "getopt.h" first, to check interface.
8160 (getenv): Declare only if defined HAVE_DECL_GETENV &&
8162 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
8163 (__strndup): Revert to K&R-style function dfns, the glibc style.
8164 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
8165 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
8166 Include strnlen.h first, to get prototype properly.
8167 (strnlen): Renamed from __strnlen.
8170 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8172 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
8174 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
8176 * config/srclist.txt: Adjust to reflect glibc reorganization.
8177 This affects only comments.
8179 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8181 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
8182 Reported by Bruce Korb <bkorb@gnu.org>.
8184 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
8186 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
8187 to pacify gcc -Wswitch-default.
8189 2006-01-22 Bruno Haible <bruno@clisp.org>
8191 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
8192 temporary buffer for sprintf, take into account the precision also
8193 for 'd', 'i', 'u', 'o', 'x', 'X'.
8195 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
8197 * modules/argp-tests: New module
8198 * tests/test-argp.c: New file
8199 * tests/test-argp-2.sh: New file
8201 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
8203 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
8204 (__argp_base_name): Removed
8205 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
8207 (__argp_base_name): Provide macro definition or extern declaration
8208 depending on the configuration
8210 2006-01-20 Simon Josefsson <jas@extundo.com>
8212 * modules/inet_ntop (Depends-on): Depend on sys_socket.
8214 2006-01-20 Simon Josefsson <jas@extundo.com>
8216 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
8218 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
8220 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
8221 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
8222 Suggested by Bruno Haible.
8224 2006-01-20 Karl Berry <karl@gnu.org>
8226 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
8227 until changes propagate, I guess.
8229 2006-01-19 Simon Josefsson <jas@extundo.com>
8231 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
8233 2006-01-19 Simon Josefsson <jas@extundo.com>
8235 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
8237 2006-01-19 Simon Josefsson <jas@extundo.com>
8239 * gnulib-tool: Set check_PROGRAMS.
8241 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
8242 modules/des-tests, modules/gc-arcfour-tests,
8243 modules/gc-arctwo-tests, modules/gc-des-tests,
8244 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
8245 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
8246 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
8247 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
8248 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
8249 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
8250 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
8253 2006-01-18 Simon Josefsson <jas@extundo.com>
8255 * modules/socklen (Depends-on): Depend on sys_socket.
8257 2006-01-18 Simon Josefsson <jas@extundo.com>
8259 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
8260 modules/des-tests, modules/gc-arcfour-tests,
8261 modules/gc-arctwo-tests, modules/gc-des-tests,
8262 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
8263 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
8264 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
8265 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
8266 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
8267 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
8268 $(EXEEXT) to automake TESTS variable, for mingw32.
8270 2006-01-17 Simon Josefsson <jas@extundo.com>
8272 * modules/socklen (Include): Need sys/socket.h.
8274 2006-01-17 Bruno Haible <bruno@clisp.org>
8276 * modules/ssize_t (Include): Add <sys/types.h>.
8278 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
8280 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
8281 it's not portable and it doesn't work with cross-compiles.
8282 Problem reported by Bruno Haible. Fix missing-$ typo in
8283 'test "gl_cv_ignore_unused_libraries" ...' that prevented
8284 -zignore from being used with Sun's C compiler.
8286 2006-01-12 Simon Josefsson <jas@extundo.com>
8288 * lib/base64.c: Fix warning, reported by Bruno Haible
8289 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
8291 2006-01-12 Bruno Haible <bruno@clisp.org>
8293 * modules/ldd: New file.
8294 * build-aux/ldd.sh.in: New file.
8295 * MODULES.html.sh (Support for building libraries and executables): Add
8298 2006-01-12 Bruno Haible <bruno@clisp.org>
8300 * m4/ldd.m4: New file.
8302 2006-01-12 Bruno Haible <bruno@clisp.org>
8304 * gnulib-tool (func_import, func_create_testdir): Don't go into an
8305 endless loop while replacing $auxdir with build-aux.
8307 2006-01-11 Simon Josefsson <jas@extundo.com>
8309 * lib/stdint_.h (SIZE_MAX): Add missing (.
8311 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
8313 Sync from coreutils.
8314 * lib/md5.c: Fix commentary typos.
8315 (alignof, UNALIGNED_P): No need for a GCC-specific version.
8316 * lib/md5.h (__attribute__): Remove; unused.
8317 * lib/sha1.c: Fix commentary to match md5 better.
8318 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
8319 so that we don't need to worry about alignment. All uses changed.
8320 This merges the 2005-10-28 md5 change into sha1.
8322 2006-01-11 Jim Meyering <jim@meyering.net>
8324 Sync from coreutils.
8325 * lib/md5.c (OP): Fix spacing.
8327 2006-01-11 Bruno Haible <bruno@clisp.org>
8329 Ensure automatic ordering between gl_LOCK and gl_ARGP.
8330 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
8331 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
8333 2006-01-11 Bruno Haible <bruno@clisp.org>
8335 Ensure automatic ordering between gl_LOCK and gl_ARGP.
8336 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
8337 the "early" section as well.
8339 2006-01-11 Bruno Haible <bruno@clisp.org>
8341 Avoid "ar: no archive members specified" error on MacOS X.
8342 * gnulib-tool (func_modules_add_dummy): New function.
8343 (func_import, func_create_testdir): Invoke it.
8345 2006-01-11 Bruno Haible <bruno@clisp.org>
8347 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
8348 with $auxdir in AC_CONFIG_FILES statements.
8350 2006-01-11 Bruno Haible <bruno@clisp.org>
8352 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8353 Initialize also noinst_HEADERS to empty.
8355 2006-01-11 Bruno Haible <bruno@clisp.org>
8357 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
8359 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
8362 2006-01-11 Bruno Haible <bruno@clisp.org>
8364 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
8365 overridable by the user.
8366 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8368 2006-01-10 Simon Josefsson <jas@extundo.com>
8370 * modules/sys_socket: New file.
8372 2006-01-10 Simon Josefsson <jas@extundo.com>
8374 * m4/sys_socket_h.m4: New file.
8376 2006-01-10 Simon Josefsson <jas@extundo.com>
8378 * lib/socket_.h: New file.
8380 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
8382 * modules/readutmp (Maintainer): Add myself.
8384 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
8386 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
8387 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
8388 People who are still concerned with buggy memcmp implementations
8389 can invoke gl_FUNC_MEMCMP themselves.
8391 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
8393 * lib/regex_internal.h (BITSET_WORD_BITS):
8394 Work around a bug in 64-bit PGC (before version 6.1-2), where the
8395 preprocessor mishandles large unsigned values as if they were signed.
8396 Problem reported by Claudio Fontana in
8397 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
8399 2006-01-10 Jim Meyering <jim@meyering.net>
8401 Avoid the double-free (first in fts_read, second in fts_close) that
8402 would occur when an `active' directory is made inaccessible (e.g.,
8403 via chmod a-x) during a traversal.
8404 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8405 before returning. Reproduce this failure by
8406 mkdir -p a/b; cd a; chmod a-x . b
8407 Reported by Stavros Passas.
8409 Sync from coreutils.
8410 * lib/sha1.c: Tweak grammar in a comment.
8412 2006-01-10 Jim Meyering <jim@meyering.net>
8414 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
8415 Patch by Joerg Sonnenberger.
8417 2006-01-10 Bruno Haible <bruno@clisp.org>
8419 * modules/readutmp: Depend on module free.
8420 * modules/strtok_r: Depend on module restrict.
8422 2006-01-10 Bruno Haible <bruno@clisp.org>
8424 * modules/gettext (configure.ac): Add an invocation of
8425 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
8427 2006-01-10 Bruno Haible <bruno@clisp.org>
8429 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
8430 Reported by Werner Lemberg <wl@gnu.org>.
8432 2006-01-10 Bruno Haible <bruno@clisp.org>
8434 * lib/localcharset.c: Update from GNU gettext.
8436 2006-01-10 Bruno Haible <bruno@clisp.org>
8438 * lib/argp.h (__const): Remove macro. Use const instead.
8439 * lib/argp-fmtstream.h (__const): Likewise.
8440 * lib/glob_.h (__const): Remove macro.
8441 * lib/glob-libc.h: Use const instead of __const.
8443 2006-01-10 Bruno Haible <bruno@clisp.org>
8445 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
8447 Needed to avoid an automake error regarding the 'gettext' module.
8449 2006-01-09 Simon Josefsson <jas@extundo.com>
8451 * modules/inet_ntop (Depends-on): Add restrict.
8453 2006-01-09 Simon Josefsson <jas@extundo.com>
8455 * modules/gc-rijndael-tests (License): Put under LGPL.
8457 * modules/gc-des-tests (License): Likewise.
8459 * modules/gc-arcfour-tests (License): Likewise.
8461 * modules/gc-arctwo-tests (License): Likewise.
8463 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
8465 * modules/gc-hmac-sha1-tests (Files): Likewise.
8467 * modules/gc-hmac-md5-tests (License): Likewise.
8469 * modules/gc-sha1-tests (License): Likewise.
8471 * modules/gc-md5-tests (License): Likewise.
8473 * modules/gc-md4-tests (License): Likewise.
8475 * modules/gc-md2-tests (License): Likewise.
8477 * modules/gc-tests (License): Likewise.
8479 * modules/des-tests (License): Likewise.
8481 * modules/md4-tests (License): Likewise.
8483 * modules/md2-tests (License): Likewise.
8485 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
8487 Sync from coreutils:
8489 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
8490 * modules/lib-ignore: New file.
8491 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
8492 chdir-safer.m4, lchmod.m4.
8493 * modules/openat: Add mkdirat.c, openat-priv.h.
8495 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
8497 Sync from coreutils.
8498 * m4/lib-ignore.m4: New file.
8499 * m4/lchmod.m4: New file.
8501 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
8503 Sync from coreutils.
8504 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
8505 for write access: POSIX says that must fail.
8506 * lib/fts.c (diropen): Likewise.
8507 * lib/save-cwd.c (save_cwd): Likewise.
8508 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
8509 well, for minor improvements on hosts that lack O_DIRECTORY.
8510 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
8511 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
8512 Fall back on chown if open failed with EACCES.
8514 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
8515 Report an error at compile-time if only a 1-second nominal clock
8516 resolution is found.
8518 * lib/lchmod.h: New file.
8519 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
8520 (make_dir_parents): Use lchown rather than chown, and
8521 lchmod rather than chmod.
8523 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
8524 dummies too. Problem with "none" reported by Bob Proulx. Problem with
8525 "proc" reported by n0dalus.
8527 * lib/mountlist.c: Include <limits.h>.
8528 (dev_from_mount_options)
8529 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
8530 New function. It no longer assumes "dev=" has the System V meaning
8531 on Linux (since it doesn't). It also parses "dev=" more carefully.
8532 (read_file_system_list)
8533 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
8534 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
8537 * lib/posixtm.h (PDS_PRE_2000): New macro.
8538 * lib/posixtm.c (year): Arg is now syntax_bits rather than
8539 allow_century. All usages changed. Reject dates outside the range
8540 1969-1999 if PDS_PRE_2000 is used.
8542 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
8544 Sync from coreutils.
8545 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
8546 (Time of day items): Mention the possibility of leap seconds.
8547 Problem reported by Dr. David Alan Gilbert.
8549 2006-01-09 Jim Meyering <jim@meyering.net>
8551 Sync from coreutils.
8553 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
8555 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
8557 * lib/modechange.c (mode_compile): Reject an invalid mode string
8558 that starts with an octal digit. From Andreas Gruenbacher.
8560 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
8561 and dup to open_safer and dup_safer, respectively.
8562 (openat_permissive): Fix typo in comment.
8564 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
8565 "gettext.h"; either no longer needed or are guaranteed by openat.h.
8566 (_): Remove; no longer needed.
8567 (openat): Renamed from rpl_openat; no need for rpl_openat
8568 since openat.h renames openat for us.
8569 Replace most of the body with a call to openat_permissive,
8570 to avoid duplicate code.
8571 Port to (probably hypothetical) environments were mode_t is
8573 (openat_permissive): Require mode arg, so that we can check
8574 types better. Put it just after flags. Change cwd failure
8575 indicator from pointer-to-bool to pointer-to-errno-value.
8576 All callers changed.
8577 Invoke openat_save_fail and/or openat_restore_fail if
8578 cwd_errno is null, so that openat can call us.
8579 (openat_permissive, fdopendir, fstatat, unlinkat):
8580 Simplify errno handling to avoid some duplicate code,
8581 as it's OK to set errno on success.
8582 * lib/openat.h: Revamp code so that function macros depend on
8583 __OPENAT_PREFIX only, not also on AT_FDCWD.
8584 (openat_ro): Remove. Caller changed to use openat_permissive.
8585 (openat_permissive): Now a macro, if not a function.
8586 (openat_restore_fail, openat_save_fail): Now always functions,
8587 since mkdirat needs them even if __OPENAT_PREFIX is defined.
8589 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
8591 * lib/mkdirat.c: Include openat-priv.h.
8592 Remove definitions of macros defined therein.
8593 * lib/openat.c: Likewise.
8595 * lib/mkdirat.c (mkdirat): New file and function.
8596 * lib/openat.h (mkdirat): Declare.
8598 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
8600 * lib/openat.h (openat_permissive): Declare.
8601 (openat_ro): Define.
8603 * lib/openat.c (EXPECTED_ERRNO): New macro.
8604 (openat_permissive): New function -- used in remove.c rewrite.
8605 (all functions): Set errno just before returning, only if there
8606 was an actual failure.
8607 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
8609 Emulate openat-family functions using Linux's procfs, if possible.
8610 Idea and some code based on Ulrich Drepper's glibc changes.
8612 * lib/openat.c: (BUILD_PROC_NAME): New macro.
8613 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
8614 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
8615 before falling back on save_cwd and restore_cwd.
8616 (fdopendir, fstatat, unlinkat): Likewise.
8618 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
8619 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
8621 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
8622 as second argument to va_arg. Otherwise, some versions of gcc
8623 warn that `if this code is reached, the program will abort'.
8625 2006-01-09 Jim Meyering <jim@meyering.net>
8627 Sync from coreutils.
8628 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
8629 Require openat-priv.h.
8631 2006-01-09 Bruno Haible <bruno@clisp.org>
8633 * modules/strnlen (Include): Use strnlen.h.
8635 2006-01-09 Bruno Haible <bruno@clisp.org>
8637 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
8639 2006-01-09 Bruno Haible <bruno@clisp.org>
8641 * lib/sysexit_.h (EX_OK): New macro.
8642 Suggested by Martin Lambers <marlam@marlam.de>.
8644 2006-01-09 Bruno Haible <bruno@clisp.org>
8646 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
8647 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
8649 2006-01-09 Bruno Haible <bruno@clisp.org>
8651 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
8654 2006-01-09 Bruno Haible <bruno@clisp.org>
8656 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
8657 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
8658 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
8659 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
8661 2006-01-09 Bruno Haible <bruno@clisp.org>
8663 * build-aux/javacomp.sh.in: New file, moved from lib/.
8664 * modules/javacomp-script (Files): Update.
8665 (configure.ac): Add AC_CONFIG_FILES invocation.
8666 (EXTRA_DIST): Remove variable.
8668 * build-aux/javaexec.sh.in: New file, moved from lib/.
8669 * modules/javaexec (Files): Update.
8670 (configure.ac): Add AC_CONFIG_FILES invocation.
8671 (EXTRA_DIST): Remove javaexec.sh.in.
8673 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
8674 * modules/csharpcomp-script (Files): Update.
8675 (configure.ac): Add AC_CONFIG_FILES invocation.
8676 (EXTRA_DIST): Remove variable.
8678 * build-aux/csharpexec.sh.in: New file, moved from lib/.
8679 * modules/csharpexec (Files): Update.
8680 (configure.ac): Add AC_CONFIG_FILES invocation.
8681 (EXTRA_DIST): Remove csharpexec.sh.in.
8683 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
8685 Sync from coreutils.
8687 Add POSIX ACL support
8688 * lib/acl.h (copy_acl, set_acl): Add declarations.
8689 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
8690 systems other than Linux.
8691 (chmod_or_fchmod): New function: use fchmod when possible,
8692 and chmod otherwise.
8693 (file_has_acl): Add a POSIX ACL implementation, with a
8694 Linux-specific subcase.
8695 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
8696 S_ISVTX from one file to another. Fall back to fchmod/chmod when
8697 acls are unsupported.
8698 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
8699 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
8702 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
8704 Sync from coreutils.
8705 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
8707 2006-01-07 Bruno Haible <bruno@clisp.org>
8709 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
8712 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
8714 * lib/strftime.c (tzname): Don't declare if it is already #defined.
8715 Problem reported for Mingw by Mark Junker.
8717 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
8719 * README: Gnulib normally doesn't generate a tarball.
8721 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
8723 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
8724 long int, not int, for nanosecond counts, so that people who are
8725 used to POSIX struct timespec won't be surprised. Reported by Jim
8728 2005-12-28 Bruno Haible <bruno@clisp.org>
8730 * build-aux/config.rpath: Update from GNU gettext.
8732 2005-12-16 Jim Meyering <jim@meyering.net>
8734 * modules/fprintftime: New module.
8735 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
8737 2005-12-16 Jim Meyering <jim@meyering.net>
8739 * m4/fprintftime.m4: New file.
8741 2005-12-16 Jim Meyering <jim@meyering.net>
8743 * lib/fprintftime.c, lib/fprintftime.h: New files.
8745 2005-12-15 Simon Josefsson <jas@extundo.com>
8747 * modules/socklen (configure.ac): Fix M4 macro name, to align with
8750 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
8752 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
8753 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
8755 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
8757 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
8758 * lib/argp-help.c (fill_in_uparams): Check if the constructed
8759 struct uparams is valid. Fall back to the default values if it is
8762 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
8764 * modules/argp (Files): Add argp-pin.c
8765 (Depends-on): dirname
8766 (lib_SOURCES): Add argp-pin.c
8768 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
8770 * m4/argp.m4: Check if program_invocation_name and
8771 program_invocation_short_name are declared and define appropriate
8772 macros if they are not.
8774 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
8776 * lib/argp-help.c (__argp_base_name): New function
8777 (__argp_short_program_name): Rewrite using __argp_base_name
8778 * lib/argp-namefrob.h: Define program_invocation_name and
8779 program_invocation_short_name if requested
8780 (__argp_base_name): Add prototype
8781 * lib/argp-parse.c (argp_def): Use gettext wrappers
8782 (argp_default_parser): Use __argp_base_name
8783 * lib/argp-pin.c: New file. Defines program_invocation_name and
8784 program_invocation_short_name on systems that lack them.
8786 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
8788 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
8789 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8790 porting problem reported by Georg Schwarz in
8791 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8793 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
8795 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
8796 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
8797 porting problem reported by Georg Schwarz in
8798 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
8800 2005-12-05 Bruno Haible <bruno@clisp.org>
8802 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
8803 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
8804 Reported by Mark Junker <mjscod@gmx.de>.
8806 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
8808 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
8809 Use implementation from Albert Chin, with some
8810 comments/corrections by Stepan Kasal and myself.
8812 2005-12-02 Bruno Haible <bruno@clisp.org>
8814 * gnulib-tool (func_import): Accept GPLed build tool modules when
8816 * modules/csharpcomp-script: New file.
8817 * modules/csharpcomp: Depend on it.
8818 * modules/javacomp-script: New file.
8819 * modules/javacomp: Depend on it.
8820 Suggested by Simon Josefsson.
8822 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
8824 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
8825 statement, to work around an HP-UX 10.20 compiler bug reported by
8828 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
8830 * modules/savedir (Depends-on): Add openat.
8832 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
8834 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
8835 (uintmax_t) [defined uintmax_t]: Do not declare.
8836 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
8837 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
8838 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
8839 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
8840 sake of portability to weird hosts that C allows (though we don't
8841 know of any practical examples).
8843 * lib/savedir.h (fdsavedir): New decl.
8844 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
8845 contains most of the former guts of savedir.
8846 (savedir): Use savedirstream.
8849 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
8851 * modules/obstack (Files): Add m4/ulonglong.m4.
8852 Problem reported by Davide Angelocola.
8854 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
8856 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
8857 coreutils no longer futzes with rounding modes.
8859 2005-11-14 Jim Meyering <jim@meyering.net>
8861 * lib/mkstemp-safer.c: Include <config.h>, required for possible
8862 replacement of mkstemp.
8864 2005-11-10 Simon Josefsson <jas@extundo.com>
8866 * lib/readline.c: Remove EOL.
8868 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
8870 * modules/gethrxtime (Depends-on): Add gettime.
8872 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
8874 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
8875 or gettimeofday; no longer needed.
8877 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
8879 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
8881 (gethrxtime) [! (HAVE_NANOUPTIME
8882 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
8883 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
8884 our own approximation.
8886 2005-11-08 Eric Blake <ebb9@byu.net>
8888 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8890 2005-11-08 Eric Blake <ebb9@byu.net>
8892 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
8894 2005-11-04 Bruno Haible <bruno@clisp.org>
8896 * gnulib-tool: Implement --update mode.
8898 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
8900 Fix porting problem reported by Theodoros V. Kalamatianos.
8901 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
8902 Don't assume that futimes failing means we must fail.
8904 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
8906 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
8907 variables to suggest the intended function of the PATH_MAX check.
8909 2005-10-30 Kean Johnston <jkj@sco.com>
8911 Trivial changes to support SCO systems.
8912 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
8914 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
8915 where __ptr is null when no I/O is pending.
8917 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
8919 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
8920 leave errno alone. Problem reported by Dmitry V. Levin.
8922 2005-10-28 Simon Josefsson <jas@extundo.com>
8924 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
8927 * tests/test-gc-md2.c, tests/test-md2.c: New files.
8929 * modules/md2, modules/md2-tests: New files.
8931 2005-10-28 Simon Josefsson <jas@extundo.com>
8933 * m4/inet_ntop.m4: More tests.
8935 * m4/gc-md2.m4, md2.m4: New file.
8937 2005-10-28 Simon Josefsson <jas@extundo.com>
8939 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
8940 "restrict" keywords, as per POSIX. Protect the function
8941 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
8942 Don't use K&R prototypes. Check the sprintf return values.
8943 Re-define EAFNOSUPPORT if not present. Indent.
8945 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
8946 suggested by Bruno Haible <bruno@clisp.org>.
8948 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
8950 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
8952 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
8955 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
8957 * lib/md2.h, lib/md2.c: New files.
8959 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
8961 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
8962 errno alone. Problem reported by Frederic Jolliton.
8964 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
8966 * modules/verify (License): Change from GPL to LGPL. This is a
8967 tiny module and there are apparently near-equivalents that are
8968 under the BSD license.
8970 2005-10-24 Simon Josefsson <jas@extundo.com>
8972 * modules/sha1: Relicense to LGPL.
8974 2005-10-24 Simon Josefsson <jas@extundo.com>
8976 * lib/md4.h: Shrink buffer size, now that we changed the type.
8978 2005-10-23 Simon Josefsson <jas@extundo.com>
8980 * gnulib-tool (func_import): Fix --tests-base.
8982 2005-10-22 Simon Josefsson <jas@extundo.com>
8984 * modules/arcfour (Depends-on): Need stdint.
8986 2005-10-22 Simon Josefsson <jas@extundo.com>
8988 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
8989 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
8991 2005-10-22 Simon Josefsson <jas@extundo.com>
8993 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
8994 suggested by Bruno Haible <bruno@clisp.org>.
8996 2005-10-22 Simon Josefsson <jas@extundo.com>
8998 * lib/crc.h: Include stddef.h, for size_t.
9000 2005-10-22 Simon Josefsson <jas@extundo.com>
9002 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9003 arcfour_context struct (simplify test vector testing in GNU
9006 2005-10-21 Simon Josefsson <jas@extundo.com>
9008 * modules/des, modules/des-tests: New files.
9010 * modules/gc-des, modules/gc-des-tests: New files.
9012 * tests/test-des.c, tests/test-gc-des.c: New file.
9014 2005-10-21 Simon Josefsson <jas@extundo.com>
9016 * modules/arctwo, modules/arctwo-tests: New files.
9018 * tests/test-arctwo.c: New file.
9020 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9022 * tests/test-gc-arctwo.c: New file.
9024 2005-10-21 Simon Josefsson <jas@extundo.com>
9026 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9027 Bruno Haible <bruno@clisp.org>.
9029 * m4/gc-des.m4: New file.
9031 2005-10-21 Simon Josefsson <jas@extundo.com>
9033 * m4/arctwo.m4: New file.
9035 * m4/gc-arctwo.m4: New file.
9037 2005-10-21 Simon Josefsson <jas@extundo.com>
9039 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9042 2005-10-21 Simon Josefsson <jas@extundo.com>
9044 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9047 * lib/hmac-sha1.c (hmac_sha1): Likewise.
9049 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9050 Bruno Haible <bruno@clisp.org>.
9052 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9055 2005-10-21 Simon Josefsson <jas@extundo.com>
9057 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9059 2005-10-21 Simon Josefsson <jas@extundo.com>
9061 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9063 2005-10-21 Simon Josefsson <jas@extundo.com>
9065 * lib/des.h, lib/des.c: New files.
9067 * lib/gc-gnulib.c: Support DES.c
9069 2005-10-21 Simon Josefsson <jas@extundo.com>
9071 * lib/arctwo.h, lib/arctwo.c: New files.
9073 * lib/gc-gnulib.c: Support ARCTWO.
9075 2005-10-21 Simon Josefsson <jas@extundo.com>
9077 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9078 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9080 2005-10-21 Simon Josefsson <jas@extundo.com>
9082 * gnulib-tool (func_import, func_create_testdir): Define automake
9083 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
9084 Makefile.am snippet),
9085 suggested by Bruno Haible <bruno@clisp.org>.
9087 * modules/gc (Makefile.am): Use it.
9089 2005-10-21 Bruno Haible <bruno@clisp.org>
9091 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
9094 2005-10-19 Simon Josefsson <jas@extundo.com>
9096 * tests/test-gc-rijndael.c: New file.
9098 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
9100 2005-10-19 Simon Josefsson <jas@extundo.com>
9102 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
9105 2005-10-19 Simon Josefsson <jas@extundo.com>
9107 * tests/test-gc-arcfour.c: New file.
9109 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
9111 2005-10-19 Simon Josefsson <jas@extundo.com>
9113 * modules/gc-md4, modules/gc-md4-tests: New file.
9115 * tests/test-gc-md4.c: New file.
9117 2005-10-19 Simon Josefsson <jas@extundo.com>
9119 * m4/gc-md4.m4: New file.
9121 2005-10-19 Simon Josefsson <jas@extundo.com>
9123 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
9124 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
9127 2005-10-19 Simon Josefsson <jas@extundo.com>
9129 * m4/gc-arcfour.m4: New file.
9131 * m4/gc-rijndael.m4: New file.
9133 2005-10-19 Simon Josefsson <jas@extundo.com>
9135 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
9137 2005-10-19 Simon Josefsson <jas@extundo.com>
9139 * lib/gc-gnulib.c: Support ARCFOUR.
9141 2005-10-19 Simon Josefsson <jas@extundo.com>
9143 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
9146 * lib/gc.h: Add ECB enum type.
9148 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
9150 2005-10-18 Simon Josefsson <jas@extundo.com>
9152 * tests/test-md5.c: New file.
9154 * modules/md5-tests: New file.
9156 2005-10-18 Simon Josefsson <jas@extundo.com>
9158 * tests/test-md4.c: New file.
9160 * modules/md4, modules/md4-tests: New files.
9162 2005-10-18 Simon Josefsson <jas@extundo.com>
9164 * m4/md4.m4: New file.
9166 2005-10-18 Simon Josefsson <jas@extundo.com>
9168 * lib/md4.h, lib/md4.c: New files, based on md5.?.
9170 2005-10-17 Stepan Kasal <kasal@ucw.cz>
9172 * gnulib-tool (func_create_testdir): Omit the second check whether
9173 BUILT_SOURCES in nonempty.
9175 2005-10-17 Simon Josefsson <jas@extundo.com>
9177 * tests/test-rijndael.c: New file.
9179 2005-10-17 Simon Josefsson <jas@extundo.com>
9181 * modules/sha1: Depend on stdint instead of md5.
9183 * modules/md5: Depend on stdint, remove uint32_t.
9185 2005-10-17 Simon Josefsson <jas@extundo.com>
9187 * modules/gc-sha1-tests: New file.
9189 * tests/test-gc-sha1.c: New file.
9191 2005-10-17 Simon Josefsson <jas@extundo.com>
9193 * m4/md5.m4: Remove call to uint32_t.m4.
9195 2005-10-17 Simon Josefsson <jas@extundo.com>
9197 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
9199 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
9202 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
9204 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
9206 2005-10-17 Simon Josefsson <jas@extundo.com>
9208 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
9210 2005-10-17 Simon Josefsson <jas@extundo.com>
9212 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
9214 2005-10-17 Simon Josefsson <jas@extundo.com>
9216 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
9218 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
9220 2005-10-17 Bruno Haible <bruno@clisp.org>
9222 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
9223 that it can also be used in a test.
9225 2005-10-16 Bruno Haible <bruno@clisp.org>
9227 * gnulib-tool (func_emit_tests_Makefile_am): Also define
9228 TESTS_ENVIRONMENT, so that individual tests can augment it.
9230 * gnulib-tool (func_create_testdir): Use an intermediate target for
9231 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
9232 macros, like $(ALLOCA_H), which cannot be passed through the command
9235 2005-10-15 Simon Josefsson <jas@extundo.com>
9237 * modules/rijndael-tests: New file.
9239 * modules/rijndael: New file.
9241 2005-10-15 Simon Josefsson <jas@extundo.com>
9243 * m4/rijndael.m4: New file.
9245 2005-10-15 Simon Josefsson <jas@extundo.com>
9247 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
9249 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
9251 2005-10-14 Simon Josefsson <jas@extundo.com>
9253 * tests/test-arcfour.c: New file.
9255 * modules/arcfour, modules/arcfour-tests: New files.
9257 2005-10-14 Simon Josefsson <jas@extundo.com>
9259 * m4/arcfour.m4: New file.
9261 2005-10-14 Simon Josefsson <jas@extundo.com>
9263 * lib/arcfour.h, lib/arcfour.c: New files.
9265 2005-10-14 Roland McGrath <roland@redhat.com>
9267 Import from libc. [BZ #1331]
9268 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
9270 Reported by Matej Vela <vela@debian.org>.
9272 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
9274 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
9275 include <wchar.h>; no longer needed.
9277 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
9279 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
9281 2005-10-14 Jakub Jelinek <jakub@redhat.com>
9282 and Ulrich Drepper <drepper@redhat.com>
9285 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
9286 instead of inline stream orientation test and two separate
9287 function calls. Pay no attention to USE_IN_LIBIO.
9289 2005-10-13 Simon Josefsson <jas@extundo.com>
9291 * modules/gc-hmac-md5-tests: New file.
9293 * tests/test-gc-hmac-sha1.c: New file.
9295 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
9297 * modules/gc-hmac-md5-tests: New file.
9299 * tests/test-gc-md5.c: New file.
9301 * modules/gc-md5-tests: New file.
9303 2005-10-13 Simon Josefsson <jas@extundo.com>
9305 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
9306 Move memory allocation outside of loop.
9308 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
9310 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
9311 intermediate directory is in a read-only file system. Problem
9312 reported by Eric Blake.
9314 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
9316 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
9318 2005-10-12 Simon Josefsson <jas@extundo.com>
9320 * tests/test-hmac-sha1.c: New file.
9322 * modules/hmac-sha1-tests: New file.
9324 * modules/hmac-sha1: New file.
9326 2005-10-12 Simon Josefsson <jas@extundo.com>
9328 * modules/gc-sha1: New file.
9330 2005-10-12 Simon Josefsson <jas@extundo.com>
9332 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
9334 * tests/test-gc-pbkdf2-sha1.c: New file.
9336 2005-10-12 Simon Josefsson <jas@extundo.com>
9338 * modules/gc-md5, modules/gc-hmac-md5: New files.
9340 * modules/gc (Files): Remove md5, memxor and hmac files.
9342 2005-10-12 Simon Josefsson <jas@extundo.com>
9344 * m4/gc-pbkdf2-sha1.m4: New file.
9346 * m4/gc-hmac-sha1.m4: New file.
9348 * m4/gc-sha1: New file.
9350 * m4/hmac-sha1.m4: New file.
9352 2005-10-12 Simon Josefsson <jas@extundo.com>
9354 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
9356 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
9358 2005-10-12 Simon Josefsson <jas@extundo.com>
9360 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
9361 suggested by Bruno Haible <bruno@clisp.org>.
9363 2005-10-12 Simon Josefsson <jas@extundo.com>
9365 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
9367 2005-10-12 Simon Josefsson <jas@extundo.com>
9369 * lib/gc-pbkdf2-sha1.c: New file.
9371 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
9373 2005-10-12 Simon Josefsson <jas@extundo.com>
9375 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
9377 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
9379 2005-10-12 Simon Josefsson <jas@extundo.com>
9381 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
9382 GC_USE_HMAC_MD5, respectively.
9384 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
9387 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
9389 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
9391 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
9393 2005-10-12 Bruno Haible <bruno@clisp.org>
9395 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
9396 Reported by Stepan Kasal <kasal@ucw.cz>.
9398 2005-10-11 Simon Josefsson <jas@extundo.com>
9400 * tests/test-crc.c: New file.
9402 * modules/crc, modules/crc-tests: New files.
9404 2005-10-11 Simon Josefsson <jas@extundo.com>
9406 * m4/crc.m4: New file.
9408 2005-10-11 Simon Josefsson <jas@extundo.com>
9410 * lib/gc.h: Add gc_hash and gc_hash_buffer.
9412 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
9414 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
9416 2005-10-11 Simon Josefsson <jas@extundo.com>
9418 * lib/crc.h, lib/crc.c: New files.
9420 * lib/gc.h (gc_hash_buffer): Add doc.
9422 2005-10-11 Bruno Haible <bruno@clisp.org>
9424 * modules/c-strcasestr: New file.
9425 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
9427 2005-10-11 Bruno Haible <bruno@clisp.org>
9429 * modules/c-strcase: New file.
9430 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
9432 2005-10-11 Bruno Haible <bruno@clisp.org>
9434 * lib/strcasecmp.c: Include limits.h.
9435 (strcasecmp): Avoid integer overflow on exotic platforms.
9436 * lib/strncasecmp.c: Include limits.h.
9437 (strncasecmp): Avoid integer overflow on exotic platforms.
9438 Reported by Paul Eggert.
9440 2005-10-11 Bruno Haible <bruno@clisp.org>
9442 * lib/c-strcasestr.h: New file, from GNU gettext.
9443 * lib/c-strcasestr.c: New file, from GNU gettext.
9445 2005-10-11 Bruno Haible <bruno@clisp.org>
9447 * lib/c-strcase.h: New file, from GNU gettext.
9448 * lib/c-strcasecmp.c: New file, from GNU gettext.
9449 * lib/c-strncasecmp.c: New file, from GNU gettext.
9451 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
9453 * modules/mempcpy (License): GPL -> LGPL.
9454 * modules/strchrnul (License): Likewise.
9455 * modules/sysexits (License): Likewise.
9457 2005-10-08 Simon Josefsson <jas@extundo.com>
9459 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
9461 2005-10-07 Simon Josefsson <jas@extundo.com>
9463 * m4/memxor.m4: Remove gl_C_RESTRICT call.
9465 2005-10-06 Simon Josefsson <jas@extundo.com>
9467 * tests/test-hmac-md5.c: New file.
9469 * modules/hmac-md5-tests: New file.
9471 * modules/hmac-md5: New file.
9473 2005-10-06 Simon Josefsson <jas@extundo.com>
9475 * m4/hmac-md5.m4: New file.
9477 * m4/memxor.m4: Require gl_C_RESTRICT.
9479 2005-10-06 Simon Josefsson <jas@extundo.com>
9481 * lib/memxor.c (memxor): Avoid casts and warnings.
9483 2005-10-06 Simon Josefsson <jas@extundo.com>
9485 * lib/hmac-md5.c: New file.
9487 * lib/hmac.h: New file.
9489 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
9491 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
9492 promotes to int, not unsigned int, to catch the AIX 5.3
9495 2005-10-05 Simon Josefsson <jas@extundo.com>
9497 * modules/memxor: New file.
9499 * modules/iconv (Files): Move config.rpath to havelib, it is used
9502 * modules/havelib (Files): Add config.rpath.
9504 2005-10-05 Simon Josefsson <jas@extundo.com>
9506 * m4/memxor.m4: New file.
9508 2005-10-05 Simon Josefsson <jas@extundo.com>
9510 * lib/memxor.c (memxor): Fix compiler error.
9512 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
9513 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
9515 * lib/memxor.h, lib/memxor.c: New files.
9517 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
9518 we assume all systems have it, suggested by Jim Meyering
9519 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
9520 any systems lack sys/socket.h; mingw32 is known to lack it, but we
9521 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
9524 2005-10-05 Simon Josefsson <jas@extundo.com>
9526 * config/srclist.txt: Add glibc bug 1423 for md5.h.
9528 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
9530 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
9531 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
9532 needed, since the source code now assumes these .h files.
9534 2005-10-05 Derek Price <derek@ximbiot.com>
9536 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
9538 2005-10-05 Bruno Haible <bruno@clisp.org>
9540 * modules/stdint (License): Change to LGPL.
9542 2005-10-04 Simon Josefsson <jas@extundo.com>
9544 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
9545 D. Baushke" <mdb@gnu.org>.
9547 2005-10-04 Bruno Haible <bruno@clisp.org>
9549 * lib/verify.h (verify_true): Provide alternative definition for C++.
9551 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
9553 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
9554 (SSIZE_MAX): New macro, if not already defined.
9555 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
9558 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
9560 Sync from coreutils.
9561 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
9562 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
9563 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
9564 ULLONG_MAX doesn't work with 2.7.2.1.
9566 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
9568 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
9571 * modules/exclude (Depends-on): Depend on verify.
9572 * modules/strtoimax (Depends-on): Likewise.
9573 * modules/utimecmp (Depends-on): Likewise.
9575 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
9577 * lib/exclude.c: Include verify.h.
9578 (verify): Remove. All callers changed to use verify.h's version.
9579 * lib/strtoimax.c: Likewise.
9580 * lib/utimecmp.c: Likewis.e
9582 Sync from coreutils.
9583 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
9584 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
9585 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
9586 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
9587 bother returning ENOSYS if settimeofday or stime fails; just let
9588 them return whatever errno they want to return.
9589 * lib/utimens.c: Include unistd.h, for dup2.
9590 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
9591 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
9593 2005-10-02 Jim Meyering <jim@meyering.net>
9595 Sync from coreutils.
9596 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
9597 from glibc-2.2.5 that fails for read-only files.
9599 2005-10-02 Jim Meyering <jim@meyering.net>
9601 Sync from coreutils.
9602 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
9603 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
9604 `#if HAVE_CONFIG_H'.
9605 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
9606 Remove AT_FDCWD test.
9607 Do not consume the fd unless successful.
9608 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
9609 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
9610 block, so that we don't even try to compile it if settimeofday is
9611 available. This works around a compilation failure on OSF1 V5.1,
9612 due to stime requiring a `long int*' while tv_sec is `int'.
9614 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
9616 Sync from coreutils.
9617 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
9618 against `yes', rather than just testing for nonempty.
9620 2005-10-01 Simon Josefsson <jas@extundo.com>
9622 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
9625 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
9626 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
9627 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
9628 freeaddrinfo and gai_strerror are declared by the POSIX headers.
9629 Check if struct addrinfo is declared.
9631 2005-10-01 Simon Josefsson <jas@extundo.com>
9633 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
9634 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
9635 AI_* and EAI_* definitions. Protect function declarations.
9637 2005-10-01 Jim Meyering <jim@meyering.net>
9639 Sync from coreutils.
9641 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
9642 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
9643 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
9644 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9645 in the inet and nsl libraries. Required on Solaris 5.7.
9647 2005-10-01 Jim Meyering <jim@meyering.net>
9649 Sync from coreutils.
9650 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
9651 in the inet and nsl libraries. Required on Solaris 5.7.
9653 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
9655 * lib/getdelim.c (getdelim): Remove unused variables.
9657 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
9659 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
9660 so that the code works even with ancient cpp. Portability problem
9661 with GCC 2.7.2.1 reported by Thomas M.Ott.
9663 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
9665 * modules/regex (Depends-on): Add strcase.
9667 * modules/gethostname (Licence): Change from GPL to LGPL, since
9668 gethostname.c is a trivial implementation of a standard library
9670 * modules/poll (License): Change from GPL to LGPL, since it's
9671 derived from LGPL code.
9673 2005-09-27 Jim Meyering <jim@meyering.net>
9675 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
9678 * lib/intprops.h (signed_type_or_expr__): Define.
9679 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
9682 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
9684 * lib/verify.h (verify_expr): Remove, replacing with:
9685 (verify_true): New macro that returns true instead of void.
9686 (verify_type__): Remove.
9687 (verify): Use verify_true rather than verify_type__.
9689 2005-09-26 Bruno Haible <bruno@clisp.org>
9691 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
9693 (lib_SOURCES): Remove mbchar.c.
9694 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
9695 (Files): Add m4/mbrtowc.m4.
9696 * modules/mbiter: Likewise.
9697 * modules/mbuiter: Likewise.
9699 2005-09-26 Bruno Haible <bruno@clisp.org>
9701 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
9702 compile mbchar.c if they are not both present.
9703 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
9704 * m4/mbiter.m4 (gl_MBITER): Likewise.
9705 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
9706 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
9707 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
9709 2005-09-25 Jim Meyering <jim@meyering.net>
9711 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
9712 also uses socklen_t.
9714 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
9716 * lib/utimens.c (ENOSYS): Define if not already defined.
9717 (futimens): Support having a null PATH if the file descriptor
9720 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
9722 (__attribute): Define to empty unless GCC 3.1 or later.
9723 This works around a core dump on OpenBSD 3.4, which has GCC
9724 2.95.3, which dumps core when given __attribute__(()). It also
9725 simplifies other tests, since we really don't want to bother with
9726 worrying about which ancient version of GCC supported what.
9727 Original problem reported by Yoann Vandoorselaere, with part of
9728 the fix suggested by Derek Price.
9730 2005-09-24 Jim Meyering <jim@meyering.net>
9732 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
9733 so we can once again use a positive bitfield width of 1 -- now we
9734 don't have to explain why we were using a bitfield width of 2.
9736 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
9738 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
9739 and similarly for the other external symbols. Problem reported
9742 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
9743 bug reported by Jim Meyering.
9745 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
9746 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
9747 not needed, since socklen is a prerequisite module.
9749 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
9751 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
9752 Problem reported by Eric Blake.
9753 (getaddrinfo): Initialize se so that it's not garbage.
9754 Redo internal storage allocation so that it doesn't make unportable
9755 assumptions about alignment.
9758 * lib/utimens.c (futimens): Use futimesat if available.
9759 Prefer it to futimes since it doesn't have the futimes bug.
9761 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
9762 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
9763 Instead, declare a function that returns a pointer to an array,
9764 and use verify_type__ to declare the size of the array.
9765 Problem and germ of a solution reported by Bruno Haible.
9766 (verify_type__): Use 2, not 1, for bitfield size, to avoid
9767 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
9769 2005-09-23 Jim Meyering <jim@meyering.net>
9771 Sync from coreutils.
9772 Correct build failure (socklen_t not defined) on at least
9773 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
9774 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
9776 2005-09-23 Jim Meyering <jim@meyering.net>
9778 * modules/getaddrinfo (Depends-on): Add socklen.
9780 2005-09-23 Bruno Haible <bruno@clisp.org>
9782 * tests/test-verify.c: New file.
9784 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
9786 Sync from coreutils.
9788 * modules/argmatch (Depends-on): Add verify.
9789 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
9791 * modules/save-cwd (Depends-on): Likewise.
9793 * modules/openat (Files): Add lib/openat-die.c.
9794 (Depends-on): Remove error, exitfail.
9797 * modules/verify: New file.
9798 * MODULES.html.sh (Diagnostics <assert.h>): New section,
9799 with "verify" module.
9801 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
9803 Sync from coreutils.
9805 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
9806 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
9807 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
9808 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
9809 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
9810 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
9811 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
9812 Don't bother checking for string.h, stdlib.h, unistd.h.
9813 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
9814 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
9816 * m4/jm-macros.m4 (gl_MACROS): Likewise.
9817 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
9819 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
9820 (gl_GETDATE): Use it.
9822 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
9824 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
9826 Sync from coreutils.
9828 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
9830 * lib/argmatch.h: Include verify.h
9831 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
9832 (ARGMATCH_ASSERT): Remove; unused.
9833 * lib/canonicalize.c: Assume STDC_HEADERS.
9834 * lib/exclude.c: Include "strcase.h".
9835 * lib/regex_internal.h [!defined _LIBC]: Likewise.
9836 * lib/getusershell.c: Include stdio--.h rather than stdio.h
9838 (getusershell): Call fopen, not fopen_safer.
9839 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
9840 Do not include unistd-safer.h.
9841 (save_cwd): Don't call fd_safer; no longer needed
9842 now that we include fcntl--.h.
9844 * lib/getdate.y (relative_time): New type.
9845 (RELATIVE_TIME_0): New constant.
9846 (parser_control): Use relative_time instead of doing it ourselves.
9847 (%union): Add new relative_time rel member.
9848 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
9850 (relunit, relunit_snumber): Now of type rel.
9851 (zone, rel, relunit, get_date): Adjust to above changes.
9853 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
9854 Do not include unistd-safer.h.
9855 (getloadavg): Don't call fd_safer; no longer needed
9856 now that we include fcntl--.h.
9858 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
9859 (make_dir_parents): Treat ENOSYS like EEXIST.
9861 Improve quality of diagnostics on restore_cwd failure.
9862 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
9863 (make_dir_parents): Last arg is now int * (for errno), not bool *.
9864 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
9865 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
9866 each time through the loop. Do not diagnose restore_cwd failure;
9867 that is the caller's job (and perhaps the caller does not care).
9869 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
9870 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
9871 If the file already exists but is not a directory, don't bother
9872 to try to make its parents.
9873 Close potential file descriptor leak if we can't chdir("/") (!).
9874 Don't always return true if chdir($PWD) fails; return true only
9875 if the requested action was done successfully (except for the
9877 Don't log final directory unless we actually made it.
9878 Refactor to avoid duplicate code to fix up permissions.
9879 Don't attempt to fix up parent permissions if chdir($PWD) fails.
9881 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
9882 to make it a bit faster and (I hope) clearer.
9883 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
9884 Fix bug in formats like %2N.
9886 * lib/verify.h: New file.
9888 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
9890 Sync from coreutils.
9891 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
9893 2005-09-22 Jim Meyering <jim@meyering.net>
9895 Sync from coreutils.
9897 * m4/lstat.m4 (gl_FUNC_LSTAT):
9898 Use AC_LIBSOURCES to require lstat.c and lstat.h.
9899 Remove obsolete comment.
9900 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
9901 * m4/xstrtod.m4: Likewise.
9903 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
9905 2005-09-22 Jim Meyering <jim@meyering.net>
9907 Sync from coreutils.
9909 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
9911 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
9912 the .tm_year member, since otherwise gcc-4.0 would now warn about
9913 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
9915 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
9916 order to avoid an unsuppressible warning from gcc on 64-bit systems.
9918 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
9919 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
9920 when run in a time zone for which daylight savings time is in effect
9921 for the starting date.
9923 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
9924 stop us from restricting permissions of just-created absolute-named
9926 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
9927 to restore initial working directory.
9928 * lib/mkdir-p.c (make_dir_parents): New parameter:
9929 different_working_dir, to tell caller if/when we change the working
9930 directory and are unable to return to the initial one.
9931 * lib/mkdir-p.h (make_dir_parents): Update prototype.
9932 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
9933 `return false'. This fixes a bug introduced on 2004-07-30.
9935 * lib/openat.c (fdopendir): Be sure to close the supplied
9936 file descriptor before returning. This makes our replacement
9937 implementation a little closer to Solaris's, where fdopendir
9938 ties the file descriptor to the returned DIR* pointer.
9939 * lib/openat.c (unlinkat): New function.
9940 * lib/openat.h (unlinkat): Add prototype.
9941 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
9942 (openat_restore_fail): Rename from openat_restore_die.
9943 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
9945 Provide an alternative to exiting immediately upon save_cwd or
9946 restore_cwd failure. Now, an application can arrange e.g.,
9947 to perform a longjump in that case.
9948 * lib/openat.c: Include dirname.h.
9949 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
9950 (rpl_openat, fdopendir, fstatat): Call openat_save_die
9951 and openat_restore_die rather than calling error directly.
9952 Don't include "error.h" or "exitfail.h"; they're no longer needed.
9954 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
9955 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
9958 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
9959 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
9960 int utc, int nanoseconds);
9962 date should not have to allocate a megabyte of virtual memory to
9963 handle a format argument like +%1048575T. When implemented with
9964 strftime, it must allocate such a buffer, use strftime to fill it
9965 in, print it, then free it.
9966 With fprintftime, it simply prints everything and exits.
9967 With no need for memory allocation, that's one fewer way to fail.
9968 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
9969 optional field width, not before, so we accept %9:z, not %:9z.
9970 (my_strftime): Be sure to use L_('x') for literals.
9972 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
9973 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
9974 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
9975 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
9976 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
9977 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
9978 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
9979 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
9980 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
9981 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
9982 * lib/xgethostname.c, lib/xreadlink.c:
9983 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
9985 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
9986 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
9987 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
9988 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9989 and don't include <sys/file.h>).
9991 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
9993 Sync from coreutils.
9995 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
9996 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
9997 [!LDAV_DONE]: Avoid unused variable warning.
9999 2005-09-21 Bruno Haible <bruno@clisp.org>
10001 * lib/unicodeio.h (unicode_to_mb): New declaration.
10003 2005-09-20 Derek Price <derek@ximbiot.com>
10005 * lib/getaddrinfo.c: Don't include <netdb.h> included from
10008 2005-09-20 Bruno Haible <bruno@clisp.org>
10010 * gnulib-tool: Remove trailing slashes from the values specified for
10011 --source-base, --m4-base, --tests-base, --aux-dir.
10012 Suggested by Simon Josefsson <jas@extundo.com>.
10014 2005-09-20 Bruno Haible <bruno@clisp.org>
10016 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10017 func_modules_to_filelist, func_import, func_create_testdir): Make all
10018 sorting results locale-independent, so that gnulib-cache.m4 doesn't
10019 change when gnulib-tool is invoked in a different locale.
10021 2005-09-19 Simon Josefsson <jas@extundo.com>
10023 * m4/socklen.m4: Fix typo.
10025 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10027 Use a consistent style for including <config.h>.
10028 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10029 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10030 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10031 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10032 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10033 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10034 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10035 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10036 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10037 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10038 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10039 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10040 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10041 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10042 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10043 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10044 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10045 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10046 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10047 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10048 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10049 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10050 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10051 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10052 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10053 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10054 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10055 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10056 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10057 lib/xstrtoumax.c, lib/yesno.c:
10058 Standardize inclusion of config.h.
10059 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10060 lib/inttostr.h: Removed inclusion of config.h from header files.
10061 * lib/inttostr.c: Adjusted in-tree users.
10062 * lib/timespec.h: Remove superfluous warning to include config.h.
10063 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10064 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10065 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10066 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10067 config.h with HAVE_CONFIG_H.
10069 2005-09-19 Jim Meyering <jim@meyering.net>
10071 * modules/pathmax (License): Change to LGPL.
10073 2005-09-19 Derek Price <derek@ximbiot.com>
10075 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10077 2005-09-19 Bruno Haible <bruno@clisp.org>
10079 * gnulib-tool (import): Provide default for --tests-base.
10081 2005-09-19 Bruno Haible <bruno@clisp.org>
10083 * doc/quote.texi: New file, extracted from gnulib.texi.
10084 * doc/ctime.texi: New file, extracted from gnulib.texi.
10085 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
10086 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
10087 * doc/gnulib.texi: Include them.
10089 2005-09-18 Bruno Haible <bruno@clisp.org>
10092 * gnulib-tool (func_readlink): New function.
10093 (func_ln_if_changed): Use it.
10095 2005-09-18 Bruno Haible <bruno@clisp.org>
10097 * gnulib-tool: Support --with-tests also with --import.
10098 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
10099 (func_import): Use variables $testsbase and $inctests. Emit a
10100 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
10101 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
10102 SUBDIRS += $testsdir.
10103 (func_create_testdir): Update.
10105 2005-09-18 Bruno Haible <bruno@clisp.org>
10107 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
10108 instead of $dry_run.
10109 (func_cp_if_changed, func_mv_if_changed): Remove functions.
10110 (func_ln_if_changed): Don't handle dry-run here.
10111 (func_import): In dry-run mode, detect more precisely which actions
10112 would be performed, and don't use "...ing" verbs.
10114 2005-09-18 Bruno Haible <bruno@clisp.org>
10116 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
10117 (func_import): Use join on two temporary files instead of three nested
10118 loops, in order to determine which files are new or old.
10120 2005-09-18 Bruno Haible <bruno@clisp.org>
10122 * gnulib-tool (func_import): Comment out code that spits out the
10123 new files with --dry-run.
10125 2005-09-18 Bruno Haible <bruno@clisp.org>
10127 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
10129 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
10131 * lib/stat-time.h: New file.
10132 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
10133 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
10134 in a different way.
10135 (timespec_cmp): New function.
10136 * lib/utimecmp.c: Include stat-time.h.
10137 (SYSCALL_RESOLUTION): Depend on whether various struct stat
10138 members exist, not on the obsolescent ST_MTIM_NSEC.
10139 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
10141 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
10143 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
10145 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
10147 * MODULES.html.sh (File system functions): Add stat-time.
10148 * modules/stat-time: New file.
10149 * modules/timespec (Files): Remove m4/st_mtim.m4; this
10150 is now done in a different way, by the stat-time module.
10151 * modules/utimecmp (Depends-on): Add stat-time.
10153 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
10155 * m4/st_mtim.m4: Remove. Superseded by...
10156 * m4/stat-time.m4: New file.
10157 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
10158 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
10160 2005-09-15 Derek Price <derek@ximbiot.com>
10162 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
10164 2005-09-15 Derek Price <derek@ximbiot.com>
10166 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
10167 * lib/regex_internal.c: Ditto, using this...
10168 (__GNUC_PREREQ): ...new macro.
10169 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
10171 (__GNUC_PREREQ): ...this new macro.
10173 * lib/strstr.h: Include string.h. Define strstr as a macro here.
10175 2005-09-15 Derek Price <derek@ximbiot.com>
10176 Paul Eggert <eggert@cs.ucla.edu>
10178 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
10179 changes, consolidating in...
10180 * lib/regex_internal.h: ...this file.
10182 2005-09-13 Jim Meyering <jim@meyering.net>
10184 * lib/canon-host.c: Filter through gnu indent and reword comments
10186 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
10188 2005-09-13 Derek Price <derek@ximbiot.com>
10190 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
10192 Reported by Jim Meyering <jim@meyering.net>.
10194 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10196 * lib/base64.c: Typo.
10197 (base64_encode): Put b64str in initialized data section.
10199 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
10201 Merge glibc and coreutils changes into gnulib, plus a few
10203 * lib/md5.c: Use #error rather than a string.
10204 (CYCLIC): New macro, from glibc source. Use it instead of rol.
10205 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
10206 (__attribute__): Define to empty for non recent-GCC.
10207 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
10208 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
10209 Renamed from their non-__ counterparts, with new macros replacing
10210 them if not _LIBC. Add __THROW attribute.
10212 (struct md5_ctx): Align buffer if using GCC.
10213 * lib/sha1.h (struct sha1_ctx): Likewise.
10214 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
10215 The old name was backwards.
10216 (NOTSWAP): Remove; not used.
10217 (rol): New macro, moved here from md5.h.
10218 (sha1_process_block): Remove a FIXME that doesn't make sense.
10220 2005-09-12 Derek Price <derek@ximbiot.com>
10222 Return usable errors from canon-host.
10223 * lib/canon-host.h: New file.
10224 * lib/canon-host.c (canon_host): Wrap...
10225 (canon_host_r): ...this new function, which now relies exclusively on
10227 (ch_strerror): New function.
10228 (last_cherror): New global.
10229 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
10231 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
10233 (freeaddrinfo): Free ai->ai_canonname when set.
10235 2005-09-12 Derek Price <derek@ximbiot.com>
10237 Make canon-host require getaddrinfo.
10238 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
10239 AC_LIBSOURCE canon-host.h. Call...
10240 (gl_PREREQ_CANON_HOST): ...this new function, which requires
10242 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
10244 2005-09-12 Derek Price <derek@ximbiot.com>
10246 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
10248 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
10250 2005-09-12 Derek Price <derek@ximbiot.com>
10252 * lib/gai_strerror.c: Include config.h when available. Include
10253 getaddrinfo.h before other headers to test interface.
10254 Reported by Larry Jones <lawrence.jones@ugs.com>.
10256 2005-09-12 Derek Price <derek@ximbiot.com>
10257 Paul Eggert <eggert@cs.ucla.edu>
10259 * modules/glob (Files): Add glob-libc.h.
10261 2005-09-12 Derek Price <derek@ximbiot.com>
10262 Paul Eggert <eggert@cs.ucla.edu>
10264 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
10265 glob_.h, glob-libc.h.
10266 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
10268 2005-09-12 Derek Price <derek@ximbiot.com>
10269 Paul Eggert <eggert@cs.ucla.edu>
10271 * lib/glob-libc.h: Renamed from glob_.h. The new version is
10272 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
10273 protecting things that should be done only in gnulib contexts.
10274 * lib/glob_.h: New file, containing only the glob things needed for
10276 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
10277 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
10278 (glob, globfree, glob_pattern_p): Now defined simply in terms of
10279 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
10280 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
10281 and to respect the namespace rules better.
10283 2005-09-08 Simon Josefsson <jas@extundo.com>
10285 * modules/socklen: New file.
10287 2005-09-08 Simon Josefsson <jas@extundo.com>
10289 * m4/socklen.m4: New file.
10291 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
10293 * modules/utimens (Files): Add m4/utimbuf.m4, since
10294 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
10295 Reported by Sergey Poznyakoff.
10297 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
10299 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
10300 definitions, since that's the preferred style in glibc.
10301 Fix a minor spacing issue, and update copyright notice to match
10304 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
10306 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
10308 2005-09-06 Simon Josefsson <jas@extundo.com>
10310 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
10311 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
10313 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
10315 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
10318 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
10320 * config/srclist.txt: Add glibc bug 1302.
10322 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
10324 Change bitset word type from unsigned int to unsigned long int,
10325 as this has better performance on typical 64-bit hosts.
10326 Port bitset code to hosts with unusual word sizes.
10327 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
10328 (build_collating_symbol):
10329 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
10330 argument is a bitset. This is merely a style issue, but it makes
10331 it clearer that an entire array is expected.
10332 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
10333 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
10334 Port to the case where bitset_word is not the same as unsigned int.
10335 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
10336 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
10338 * lib/regexec.c (check_dst_limits_calc_pos_1,
10339 check_subexp_matching_top):
10340 (build_trtable, group_nodes_into_DFAstates):
10342 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
10343 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
10344 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
10345 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
10346 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
10347 * lib/regcomp.c (optimize_subexps, lower_subexp):
10348 Work even if bitset_word has holes in its bitwise representation.
10349 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
10350 * lib/regexec.c (check_dst_limits_calc_pos_1,
10351 check_subexp_matching_top):
10353 * lib/regex_internal.c (re_string_reconstruct):
10354 Don't assume UCHAR_MAX == 255.
10355 * lib/regex_internal.h (bitset_set_all): Likewise.
10356 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
10358 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
10359 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
10361 (BITSET_WORD_MAX): New macro.
10362 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
10363 (bitset_set_all, bitset_copy): Now inline functions, not macros.
10364 (bitset_empty, bitset_copy):
10365 Prefer sizeof (bitset) to multiplying it out ourselves.
10366 (bitset_not_merge): Remove; unused.
10367 (bitset_contain): Return bool, not unsigned int with one bit on.
10368 All callers changed.
10369 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
10370 alignment than re_node_set; do this by defining a new internal
10371 type struct dests_alloc and using it to allocate memory.
10373 2005-09-05 Bruno Haible <bruno@clisp.org>
10375 * gnulib-tool (func_import): Fix comparison in handling of symbolic
10378 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
10380 * modules/size_max (Makefile.am): Add size_max.h
10382 2005-09-04 Derek Price <derek@ximbiot.com>
10384 * gnulib-tool (func_import): Fix reversed $symbolic logic.
10386 2005-09-03 Simon Josefsson <jas@extundo.com>
10388 * gnulib-tool: Fix typo.
10390 2005-09-03 Simon Josefsson <jas@extundo.com>
10392 * config/srclist.txt: Add glibc bug 1293.
10394 2005-09-03 Derek Price <derek@ximbiot.com>
10396 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
10397 From Larry Jones <lawrence.jones@ugs.com>.
10399 2005-09-02 Simon Josefsson <jas@extundo.com>
10401 * modules/socklen: New file.
10403 2005-09-02 Simon Josefsson <jas@extundo.com>
10405 * modules/havelib: New module.
10407 * modules/gettext, modules/iconv, modules/lock, modules/readline:
10410 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
10412 Check for arithmetic overflow when calculating sizes, to prevent
10413 some buffer-overflow issues. These patches are conservative, in the
10414 sense that when I couldn't determine whether an overflow was possible,
10415 I inserted a run-time check.
10416 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
10418 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
10419 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
10420 (re_xnrealloc, re_x2nrealloc): New inline functions.
10421 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
10422 parse_bracket_exp):
10423 (build_equiv_class, build_charclass): Check for arithmetic overflow
10424 in size expression calculations.
10425 * lib/regex_internal.c (re_string_realloc_buffers):
10426 (build_wcs_upper_buffer, re_node_set_add_intersect):
10427 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
10428 (re_dfa_add_node, register_state): Likewise.
10429 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
10430 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
10431 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
10432 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
10434 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
10436 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
10437 m4/ulonglong.m4. Problem reported by Martin Lambers.
10439 2005-09-02 Bruno Haible <bruno@clisp.org>
10441 Support for lib vs. lib64 distinction on biarch platforms.
10442 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
10443 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
10444 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
10446 2005-09-02 Bruno Haible <bruno@clisp.org>
10448 * gnulib-tool (import): In the other first-use case, provide defaults
10451 2005-09-02 Bruno Haible <bruno@clisp.org>
10453 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
10454 patches not yet found in the latest gettext release.
10456 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
10458 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
10459 to avoid a collision with bits/local_lim.h in glibc.
10460 All uses changed. Problem reported by Dmitry V. Levin in
10461 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
10463 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
10464 bugs in int versus size_t comparisons.
10465 (re_string_context_at): Fix bug where the code assumed that
10468 Use bool where appropriate.
10469 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
10470 All callers changed.
10471 (calc_eclosure_iter): Likewise, for ROOT arg.
10472 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
10473 (build_charclass_op): Likewise, for NON_MATCH arg.
10474 * lib/regex_internal.c (re_string_allocate, re_string_construct):
10475 (re_string_construct_common): Likewise, for ICASE arg.
10476 * lib/regexec.c (re_search_2_stub, re_search_stub):
10477 Likewise, for RET_LEN arg.
10478 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
10479 (set_regs): Likewise, for FL_BACKTRACK arg.
10480 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
10481 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
10482 (calc_eclosure_iter, parse_bracket_exp):
10483 Use bool for internal variables that are booleans.
10484 * lib/regexec.c (re_search_internal, check_matching,
10485 proceed_next_node):
10486 (set_regs, build_sifted_states, sift_states_bkref):
10487 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
10488 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
10489 (find_collation_sequence_value):
10491 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
10492 (re_node_set_compare):
10493 Return bool, not int. All callers changed.
10494 * lib/regexec.c (check_halt_node_context, check_dst_limits):
10495 (build_trtable, check_node_accept): Likewise.
10496 * lib/regex_internal.h: Include stdbool.h.
10498 Fix bugs uncovered when converting to bool.
10499 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
10500 failure instead of charging ahead blindly.
10501 * lib/regex_internal.c (register_state): Likewise.
10502 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
10503 for freeing internal storage.
10504 (group_nodes_into_DFA_states): Use unsigned int, not int, for
10505 bitset pieces used as boolean, to avoid undefined behavior
10506 on hosts that do int overflow checking.
10508 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
10510 * config/srclist.txt: Add glibc bugs 1285-1287.
10512 2005-09-01 Jim Meyering <jim@meyering.net>
10514 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
10515 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
10516 Require gl_STAT_MACROS, too.
10518 2005-09-01 Bruno Haible <bruno@clisp.org>
10520 * gnulib-tool (import): In the first-use case, provide defaults.
10522 2005-09-01 Bruno Haible <bruno@clisp.org>
10524 * gnulib-tool (func_import): Remove the .tmp files.
10526 2005-09-01 Bruno Haible <bruno@clisp.org>
10528 * gnulib-tool (func_import): Fix handling of symbolic links.
10530 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
10532 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
10533 old glibc regex code mishandles strings longer than 2**31 bytes.
10534 This patch fixes this when the regex code is used in gnulib
10535 (i.e., outside glibc).
10537 This patch should not affect the use of the regex code inside
10538 glibc. No doubt this problem also needs to be handled for glibc
10539 as well, but the result will be an incompatible change to the
10540 glibc ABI, and the old ABI will have to be supported too. That
10541 can be the the subject for another patch.
10543 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
10544 governing whether the rest of this patch is active. By default,
10545 the macro is disabled and the patch has no effect.
10546 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
10547 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
10548 (struct re_pattern_buffer, re_search, re_search_2, re_match):
10549 (re_match_2, re_set_registers): Use the new types.
10550 * lib/regex_internal.h (Idx, re_hashval_t): New types.
10551 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
10553 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
10554 (re_string_context_at, bin_tree_t, re_dfastate_t):
10555 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
10556 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
10557 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
10558 (re_string_char_size_at, re_string_wchar_at):
10559 (re_string_elem_size_at):
10560 Use the new types and macros to port to 64-bit hosts.
10561 Use unsigned types for internal values, so that the code
10562 mostly works even for arrays larger than SSIZE_MAX.
10563 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
10564 (search_duplicated_node, calc_eclosure_iter, fetch_number):
10565 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
10566 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
10567 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
10568 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
10569 (calc_inveclosure, parse_dup_op, build_range_exp):
10570 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
10571 (fetch_number, create_token_tree, mark_opt_subexp):
10573 * lib/regex_internal.c (re_string_construct_common,
10574 create_ci_newstate):
10575 (create_cd_newstate, re_string_allocate, re_string_construct):
10576 (re_string_realloc_buffers, build_wcs_upper_buffer):
10577 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
10578 (re_string_reconstruct, re_string_peek_byte_case):
10579 (re_string_fetch_byte_case, re_string_context_at):
10580 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
10581 (re_node_set_init_copy, re_node_set_add_intersect):
10582 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10583 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10584 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
10585 (re_acquire_state, re_acquire_state_context, register_state):
10587 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
10588 search_cur_bkref_entry):
10589 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
10590 (re_search_internal, re_search_2_stub, re_search_stub)
10591 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
10592 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
10593 (update_cur_sifted_state, check_dst_limits):
10594 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10595 (check_subexp_limits, sift_states_bkref, merge_state_array):
10596 (check_subexp_matching_top, get_subexp, get_subexp_sub):
10597 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
10598 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
10599 (expand_bkref_cache, check_node_accept_bytes):
10600 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
10601 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
10602 (acquire_init_state_context, check_halt_node_context):
10603 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
10604 (sift_states_backward, clean_state_log_if_needed):
10605 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
10606 (find_recover_state, transit_state_sb, transit_state_mb):
10607 (transit_state_bkref, build_trtable, match_ctx_clean):
10609 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
10610 to work around an assumption that REG_MISSING is negative.
10612 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
10613 (seek_collating_symbol_entry) [defined _LIBC]:
10614 (lookup_collation_sequence_value) [defined _LIBC]:
10615 (build_range_exp, build_collating_symbol) [defined _LIBC]:
10616 Use prototypes rather than old-style function definitions.
10617 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
10618 (transit_state_sb) [0]:
10619 (find_collation_sequence_value) [defined _LIBC]: Likewise.
10621 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
10624 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
10625 (optimize_subexps, lower_subexp):
10626 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
10627 since the signed shift might overflow. Use 1u<<31 instead.
10628 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
10630 * lib/regexec.c (check_dst_limits_calc_pos_1,
10631 check_subexp_matching_top): Likewise.
10633 * lib/regcomp.c (optimize_subexps, lower_subexp):
10634 Use CHAR_BIT rather than 8, for clarity.
10635 * lib/regexec.c (check_dst_limits_calc_pos_1):
10636 (check_subexp_matching_top): Likewise.
10637 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
10638 have to worry about portability issues when shifting it left.
10639 Remove no-longer-needed test for table_size > 0.
10640 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
10641 in a word, as the resulting behavior is undefined.
10642 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
10643 in one case, a <= should have been an <, and in another case the
10644 whole test was missing.
10645 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
10646 the standard name CHAR_BIT.
10647 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
10648 this is not true on one's complement and signed-magnitude hosts.
10650 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
10652 (struct re_dfa_t): Remove unused member states_alloc.
10653 * lib/regcomp.c (init_dfa): Don't initialize unused members.
10655 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
10657 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
10658 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
10659 and large-file glibc and in 32-bit large-file Solaris.
10661 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
10663 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
10664 lengths fit in regoff_t; this isn't true if regoff_t is the same
10666 * lib/regex.c (re_search_internal): 5th arg is LAST_START
10667 (= START + RANGE) instead of RANGE. This avoids overflow
10668 problems when regoff_t is the same width as size_t.
10669 All callers changed.
10670 (re_search_2_stub): Check for overflow when adding the
10671 sizes of the two strings.
10672 (re_search_stub): Check for overflow when adding START
10673 to RANGE; if it occurs, substitute the extreme value.
10675 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
10677 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
10679 2005-08-31 Jim Meyering <jim@meyering.net>
10681 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
10682 a pointer-to-const.
10683 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
10684 (register_state): Likewise.
10685 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
10686 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
10687 (group_nodes_into_DFAstates): Likewise.
10689 2005-08-31 Jim Meyering <jim@meyering.net>
10691 * check-module: Add a FIXME comment.
10693 2005-08-31 Eric Blake <ebb9@byu.net>
10695 * modules/unistd-safer (Files): Add unistd--.h.
10696 * modules/stdio-safer (Files): Add stdio--.h.
10698 2005-08-31 Derek Price <derek@ximbiot.com>
10700 * lib/getdelim.c (getdelim): Return EOF on EOF.
10701 Reported by Larry Jones <lawrence.jones@ugs.com>.
10703 2005-08-31 Bruno Haible <bruno@clisp.org>
10705 Avoid unnecessary diffs in the generated lib/Makefile.am.
10706 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
10707 the generated files.
10708 (func_import): Don't set cmd.
10710 2005-08-31 Bruno Haible <bruno@clisp.org>
10712 * lib/strstr.c: Include <stddef.h>, for NULL.
10713 * lib/strcasestr.c: Likewise.
10714 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10716 2005-08-31 Bruno Haible <bruno@clisp.org>
10718 * gnulib-tool: New option --macro-prefix.
10719 (func_import): Use macro_prefix.
10720 (import): Handle option --macro-prefix.
10722 2005-08-31 Bruno Haible <bruno@clisp.org>
10724 * gnulib-tool (import): Rename most ac_* variables to cached_*.
10725 Also use new variables cached_lgpl, cached_libtool.
10727 2005-08-31 Bruno Haible <bruno@clisp.org>
10729 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
10730 always instantiating them.
10732 2005-08-31 Bruno Haible <bruno@clisp.org>
10734 * gnulib-tool (func_import): Read the previous cached settings
10735 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
10736 earlier added by gnulib but are now dropped. Warn when a gnulib file
10737 overwrites a non-gnulib file.
10739 2005-08-31 Bruno Haible <bruno@clisp.org>
10741 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
10742 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
10743 projects that don't keep autogenerated files in CVS. Put into
10744 actioncmd only the specified modules, not the transitive closure.
10746 2005-08-31 Bruno Haible <bruno@clisp.org>
10748 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
10749 Create directories that shall be filled.
10750 (import): Don't look for gl_* macros in configure.ac. Recurse across
10751 all directories containing a gnulib-cache.m4 files, if meaningful.
10753 2005-08-31 Bruno Haible <bruno@clisp.org>
10755 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
10756 (import): Set seen_libtool when we see gl_LIBTOOL.
10758 2005-08-31 Bruno Haible <bruno@clisp.org>
10760 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
10761 declaration macro definitions from generated gnulib.m4.
10763 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
10765 * lib/iconvme.h: Add prototype for iconv_alloc.
10767 2005-08-29 Simon Josefsson <jas@extundo.com>
10769 * lib/iconvme.c: Fix errno.
10771 2005-08-29 Bruno Haible <bruno@clisp.org>
10773 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
10774 that it works when the directory contains spaces.
10776 2005-08-29 Bruno Haible <bruno@clisp.org>
10778 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
10780 2005-08-29 Bruno Haible <bruno@clisp.org>
10782 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
10785 2005-08-29 Bruno Haible <bruno@clisp.org>
10786 and Stepan Kasal <kasal@ucw.cz>
10788 * check-module: If more parameters are given, check each of them
10789 separately; add more exceptions, as noted by Jim Meyering.
10790 (check_module): New procedure.
10791 (%exempt_header): Now contains all exceptions.
10793 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
10795 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
10797 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
10799 * lib/iconvme.c: Split iconv_string into iconv_alloc.
10801 2005-08-28 Bruno Haible <bruno@clisp.org>
10803 * m4/gnulib-tool.m4: New file.
10805 2005-08-27 Jim Meyering <jim@meyering.net>
10807 * modules/unistd-safer (Files): Add pipe-safer.c.
10808 * modules/fcntl-safer (Files): Add creat-safer.c.
10810 2005-08-27 Jim Meyering <jim@meyering.net>
10812 * m4/stdlib-safer.m4: New file. From coreutils.
10813 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
10814 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
10815 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
10816 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
10817 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
10819 2005-08-27 Jim Meyering <jim@meyering.net>
10821 * lib/fopen-safer.c: Merge minor changes from coreutils.
10822 * lib/dup-safer.c: Likewise.
10823 * lib/fd-safer.c: Likewise.
10825 Merge from coreutils.
10826 * lib/stdio--.h: New file.
10827 * lib/stdlib--.h: New file.
10828 * lib/mkstemp-safer.c: New file.
10830 GNU tar needs these.
10831 * lib/pipe-safer.c: New file.
10832 * lib/creat-safer.c: New file.
10833 * lib/fcntl--.h (creat): Define to creat_safer.
10834 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
10835 * lib/unistd--.h (pipe): Define to pipe_safer.
10836 * lib/unistd-safer.h: Declare pipe_safer.
10838 2005-08-26 Simon Josefsson <jas@extundo.com>
10840 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
10841 Haible <bruno@clisp.org>.
10843 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
10845 * lib/regex_internal.h: Remove all references to
10846 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
10848 (bitset_not, bitset_merge, bitset_not_merge):
10849 (bitset_mask, re_string_allocate, re_string_construct):
10850 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
10851 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
10852 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
10853 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
10854 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
10855 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
10856 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
10857 (re_acquire_state_context):
10858 Remove unnecessary forward decls.
10859 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
10860 Put __attribute at function definition,
10861 now that the function decl has been removed.
10862 * lib/regex_internal.c (re_string_peek_byte_case):
10863 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
10866 2005-08-25 Stepan Kasal <kasal@ucw.cz>
10868 * m4/regex.m4: Add AC_PREREQ(2.50).
10869 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
10871 2005-08-25 Simon Josefsson <jas@extundo.com>
10873 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
10876 2005-08-25 Simon Josefsson <jas@extundo.com>
10878 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
10879 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
10880 GLIBC specific code.
10882 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
10884 Make regex safe for g++. This fixes one real bug (an "err"
10885 that should have been "*err"). g++ problem reported by
10887 * lib/regex_internal.h (re_calloc): New macro, consistent with
10888 re_malloc etc. All callers of calloc changed to use re_calloc.
10889 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
10890 not int. All callers changed.
10891 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
10892 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
10893 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
10894 (find_recover_state): Change "err" to "*err"; this fixes what
10895 appears to be a real bug.
10896 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
10899 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
10901 * modules/regex (Depends-on): Add malloc, since the code
10902 assumes that !malloc(0) means failure.
10904 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
10906 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
10908 alloca modernization/simplification for regex.
10909 * lib/regex.c: Remove portability cruft for alloca. This no longer
10910 needs to be at the start of the file, and can be moved into
10911 regex_internal.h and simplified.
10912 * lib/regex_internal.h: Include <alloca.h>.
10913 (__libc_use_alloca) [!defined _LIBC]: New macro.
10914 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
10915 now works outside glibc.
10917 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
10919 * config/srclist.txt: Add glibc bugs 1241, 1245.
10921 2005-08-25 Jim Meyering <jim@meyering.net>
10923 * lib/open-safer.c: Include <config.h>.
10924 Otherwise, we'd lose LARGEFILE support in any file using
10927 2005-08-25 Bruno Haible <bruno@clisp.org>
10929 * m4/minmax.m4: Require autoconf 2.52.
10930 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
10931 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
10932 alternatives of translit over the alphabet.
10933 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
10935 2005-08-24 Simon Josefsson <jas@extundo.com>
10937 * tests/test-getpass.c: New file.
10939 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
10941 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
10942 for GNU regex features.
10944 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
10946 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
10947 * lib/regex.h (regerror): Likewise.
10949 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
10950 requires this. (The code never needed it.)
10952 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
10953 All uses of recently-renamed identifiers changed to use the new,
10954 POSIX-compliant names. The code will build and run just fine
10955 without these changes, but it's better to eat our own dog food
10956 and use the standard-conforming names.
10958 * lib/regex.h: Fix a multitude of POSIX name space violations.
10959 These changes have an effect only for programs that define
10960 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
10961 do not change anything for programs compiled in the normal way.
10962 Also, there is no effect on the ABI.
10964 (_REGEX_SOURCE): New macro.
10965 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
10966 defined and _GNU_SOURCE is not; this fixes a name space violation.
10968 Rename the following macros to obey POSIX requirements.
10969 The old names are still visible as macros if _REGEX_SOURCE is defined.
10970 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
10971 RE_BACKSLASH_ESCAPE_IN_LISTS.
10972 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
10973 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
10974 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
10975 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
10976 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
10977 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
10978 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
10979 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
10980 (REG_INTERVALS): renamed from RE_INTERVALS.
10981 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
10982 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
10983 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
10984 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
10985 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
10986 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
10987 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
10988 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
10989 RE_UNMATCHED_RIGHT_PAREN_ORD.
10990 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
10991 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
10992 (REG_DEBUG): renamed from RE_DEBUG.
10993 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
10994 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
10995 unusual, since we can't clash with the POSIX REG_ICASE.
10996 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
10997 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
10998 (REG_NO_SUB): renamed from RE_NO_SUB.
10999 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11000 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11001 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11002 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11003 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11004 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11005 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11006 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11007 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11008 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11009 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11010 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11011 RE_SYNTAX_POSIX_MINIMAL_BASIC.
11012 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11013 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11014 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11015 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
11016 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11017 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11018 (REG_FIXED): Renamed from REGS_FIXED.
11019 (REG_NREGS): Renamed from RE_NREGS.
11021 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11022 of other REG_* macros, since POSIX says the user is allowed to
11023 #undef these macros selectively.
11025 (reg_errcode_t): Update comment stating what other tables need
11028 Rename the following enum values to obey POSIX requirements.
11029 The old names are still visible as macros.
11030 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
11031 is not defined, since GNU is supposed to be a superset of POSIX as
11032 much as possible, and since we want reg_errcode_t to be a signed
11033 type for implementation consistency.
11034 (_REG_NOERROR): Renamed from REG_NOERROR.
11035 (_REG_NOMATCH): Renamed from REG_NOMATCH.
11036 (_REG_BADPAT): Renamed from REG_BADPAT.
11037 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11038 (_REG_ECTYPE): Renamed from REG_ECTYPE.
11039 (_REG_EESCAPE): Renamed from REG_EESCAPE.
11040 (_REG_ESUBREG): Renamed from REG_ESUBREG.
11041 (_REG_EBRACK): Renamed from REG_EBRACK.
11042 (_REG_EPAREN): Renamed from REG_EPAREN.
11043 (_REG_EBRACE): Renamed from REG_EBRACE.
11044 (_REG_BADBR): Renamed from REG_BADBR.
11045 (_REG_ERANGE): Renamed from REG_ERANGE.
11046 (_REG_ESPACE): Renamed from REG_ESPACE.
11047 (_REG_BADRPT): Renamed from REG_BADRPT.
11048 (_REG_EEND): Renamed from REG_EEND.
11049 (_REG_ESIZE): Renamed from REG_ESIZE.
11050 (_REG_ERPAREN): Renamed from REG_ERPAREN.
11051 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11052 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11053 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11054 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11056 (_REG_RE_NAME, _REG_RM_NAME): New macros.
11057 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
11058 changed. But support the old name if the new one is not defined
11059 and if _REGEX_SOURCE.
11061 Change the following member names in struct re_pattern_buffer.
11062 The old names are still supported if !_REGEX_SOURCE.
11063 The new names are always supported, regardless of _REGEX_SOURCE.
11064 (re_buffer): Renamed from buffer.
11065 (re_allocated): Renamed from allocated.
11066 (re_used): Renamed from used.
11067 (re_syntax): Renamed from syntax.
11068 (re_fastmap): Renamed from fastmap.
11069 (re_translate): Renamed from translate.
11070 (re_can_be_null): Renamed from can_be_null.
11071 (re_regs_allocated): Renamed from regs_allocated.
11072 (re_fastmap_accurate): Renamed from fastmap_accurate.
11073 (re_no_sub): Renamed from no_sub.
11074 (re_not_bol): Renamed from not_bol.
11075 (re_not_eol): Renamed from not_eol.
11076 (re_newline_anchor): Renamed from newline_anchor.
11078 Change the following member names in struct re_registers.
11079 The old names are still supported if !_REGEX_SOURCE.
11080 The new names are always supported, regardless of _REGEX_SOURCE.
11081 (rm_num_regs): Renamed from num_regs.
11082 (rm_start): Renamed from start.
11083 (rm_end): Renamed from end.
11085 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
11086 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
11087 Prepend __ to parameter names.
11089 Undo yesterday's changes.
11091 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
11093 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
11094 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
11097 2005-08-24 Jim Meyering <jim@meyering.net>
11099 Sync from coreutils.
11100 * m4/fcntl-safer.m4: New file.
11102 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
11103 and object files for this module.
11105 2005-08-24 Jim Meyering <jim@meyering.net>
11107 Sync from coreutils.
11108 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
11110 2005-08-24 Jim Meyering <jim@meyering.net>
11112 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
11113 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
11115 2005-08-24 Jim Meyering <jim@meyering.net>
11117 * modules/fcntl-safer: New module.
11118 * modules/fts (Depends-on): Add fcntl-safer.
11119 * MODULES.html.sh (File descriptor based Input/Output):
11122 2005-08-24 Bruno Haible <bruno@clisp.org>
11124 Support for unit test modules.
11125 * modules/README: Mention tests modules.
11126 * modules/TEMPLATE-TESTS: New file.
11127 * gnulib-tool: New options --extract-tests-module, --with-tests and
11128 --tests-base (unused for the moment).
11129 (testsbase, inctests): New variables.
11130 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
11131 (func_verify_module): Exclude TEMPLATE-TESTS.
11132 (func_verify_nontests_module, func_verify_tests_module): New functions.
11133 (func_get_dependencies): Add implicit dependency for tests modules.
11134 (func_get_tests_module): New function.
11135 (func_modules_transitive_closure): When --with-tests was specified,
11136 include the unit tests as well, unless explicitly avoided.
11137 (func_emit_lib_Makefile_am): Ignore the tests modules here.
11138 (func_emit_tests_Makefile_am): New function.
11139 (func_create_testdir): When --with-tests was specified, emit a
11141 * MODULES.html.sh (Future developments): Update.
11143 2005-08-24 Bruno Haible <bruno@clisp.org>
11145 * modules/tls-tests: New file.
11146 * tests/test-tls.c: New file, from GNU gettext.
11148 2005-08-24 Bruno Haible <bruno@clisp.org>
11150 * modules/lock-tests: New file.
11151 * tests/test-lock.c: New file, from GNU gettext.
11153 2005-08-24 Bruno Haible <bruno@clisp.org>
11155 * lib/lock.h: Add multiple inclusion guard.
11156 * lib/tls.h: Add multiple inclusion guard.
11158 2005-08-24 Bruno Haible <bruno@clisp.org>
11160 * gnulib-tool: Add support for the --aux-dir option to
11161 --create-testdir, --create-megatestdir, --test, --megatest.
11162 (func_create_testdir, func_create_megatestdir): Optionally emit a
11163 AC_CONFIG_AUX_DIR directive.
11164 (create-testdir, create-megatestdir, test, megatest): Provide a
11165 default value for $auxdir.
11167 2005-08-24 Bruno Haible <bruno@clisp.org>
11169 * gnulib-tool (import): Use compound statement instead of subshell
11172 2005-08-24 Bruno Haible <bruno@clisp.org>
11174 * gnulib-tool (import): Change --aux-dir default to "build-aux".
11176 2005-08-24 Bruno Haible <bruno@clisp.org>
11178 * gnulib-tool (func_version): Update.
11180 2005-08-24 Bruno Haible <bruno@clisp.org>
11182 * gnulib-tool (func_import, func_create_testdir,
11183 func_create_megatestdir): Quote all autoconf macro arguments.
11185 2005-08-24 Bruno Haible <bruno@clisp.org>
11187 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
11188 option --force, because --force causes the aclocal.m4 of each
11189 subdirectory to be newer than the corresponding config.h.in.
11191 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
11193 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
11194 All contents moved to gl_REGEX.
11195 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
11196 assume that it does.
11198 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
11200 * lib/regex.h (REG_NOSYS)
11201 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
11202 Define, since POSIX requires it as of 2001.
11204 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
11205 New private symbol, used to keep the enum signed in all cases.
11206 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
11208 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
11210 * lib/regex_internal.c (re_string_skip_chars, register_state):
11212 Remove forward decls; no longer needed now that we use prototypes.
11213 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
11214 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
11215 (clean_state_log_if_needed): Likewise.
11217 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
11219 * config/srclist.txt: Add glibc bugs 1231-1233.
11221 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
11223 Fix problems reported by Sam Steingold in
11224 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
11225 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
11226 assumed that reg_errcode_t is a signed type, which is not
11227 necessarily true if _XOPEN_SOURCE is not defined.
11228 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
11229 since some compilers warn about it otherwise.
11231 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
11233 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
11234 (init_word_char, create_initial_state, duplicate_node_closure):
11235 (fetch_token, peek_token_bracket, build_range_exp):
11236 (build_collating_symbol): Remove forward decls; no longer needed
11237 now that we use prototypes.
11240 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
11241 (re_compile_fastmap_iter, regcomp, regerror, regfree):
11242 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
11243 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
11244 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
11245 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
11246 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
11247 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
11248 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
11249 (build_range_exp, build_collating_symbol, parse_bracket_exp):
11250 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
11251 (build_charclass, build_charclass_op, fetch_number, create_tree):
11252 (create_token_tree, mark_opt_subexp, duplicate_tree):
11253 Use prototypes rather than old-style definitions.
11255 * lib/regex_internal.c:
11256 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
11257 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
11258 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11259 (re_string_reconstruct, re_string_peek_byte_case):
11260 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
11261 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11262 (re_node_set_init_copy, re_node_set_add_intersect):
11263 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11264 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11265 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11266 (re_acquire_state, re_acquire_state_context, register_state):
11267 (create_ci_newstate, create_cd_newstate, free_state):
11269 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
11271 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
11272 (re_search_internal, prune_impossible_nodes):
11273 (acquire_init_state_context, check_matching, static):
11274 (check_halt_node_context, check_halt_state_context, proceed_next_node):
11275 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
11276 (update_regs, sift_states_backward, build_sifted_states):
11277 (clean_state_log_if_needed, merge_state_array):
11278 (update_cur_sifted_state, add_epsilon_src_nodes):
11279 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
11280 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
11281 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
11282 (find_recover_state, check_subexp_matching_top, transit_state_mb):
11283 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
11284 (check_arrival, check_arrival_add_next_nodes):
11285 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11286 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11287 (check_node_accept_bytes, check_node_accept, extend_buffers):
11288 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
11289 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
11293 * lib/regex_internal.h:
11294 (re_string_allocate, re_string_construct, re_string_reconstruct):
11295 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
11296 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
11297 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
11298 (re_string_context_at, re_string_peek_byte_case):
11299 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
11300 is defined, since we now use prototypes always.
11302 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
11303 C89 or better. All uses removed.
11305 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
11307 * config/srclist.txt: Add glibc bugs 1220-1227.
11309 2005-08-20 Jim Meyering <jim@meyering.net>
11311 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
11312 of unused local, dfa.
11314 2005-08-20 Bruno Haible <bruno@clisp.org>
11316 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
11318 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
11320 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
11321 (re_node_set_insert_last, re_dfa_add_node):
11322 Rename local variables to avoid GCC shadowing warnings.
11324 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
11326 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
11327 [defined lint]: Suppress bogus uninitialized-variable warnings.
11329 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
11330 and let the caller return REG_ESPACE if out of space. This
11331 removes an uninitialied-variable warning with GCC 4.0.1, and also
11332 avoids taking the address of a local variable. All callers
11335 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
11337 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
11338 $LIBCSRC/posix/regexec.c.
11339 Add glibc bug 1217 for regcomp.c.
11341 2005-08-19 Jim Meyering <jim@meyering.net>
11343 * lib/regexec.c (proceed_next_node): Redo local variables to
11344 avoid GCC shadowing warnings.
11346 2005-08-18 Bruno Haible <bruno@clisp.org>
11348 * lib/strstr.c (strstr): Fix return value in multibyte case.
11349 * lib/strcasestr.c (strcasestr): Likewise.
11351 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
11353 * lib/regex.h: Remove useless space-before-tab. From coreutils.
11355 2005-08-17 Jim Meyering <jim@meyering.net>
11357 Make the %s format (seconds since the epoch) work for a negative
11358 number and when used with a zero-padded field width, e.g. %015s.
11360 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
11361 label so that it precedes the code to set `digits'. Otherwise,
11362 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
11363 print `00-22'. Now, it prints `-0022', as it should.
11365 2005-08-17 Bruno Haible <bruno@clisp.org>
11367 * modules/strstr (Files): Add m4/mbrtowc.m4.
11368 (Depends-on): Add mbuiter.
11370 2005-08-17 Bruno Haible <bruno@clisp.org>
11372 * modules/strcasestr: New file.
11373 * MODULES.html.sh (String handling, based on ANSI C 89): Add
11376 2005-08-17 Bruno Haible <bruno@clisp.org>
11378 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
11380 2005-08-17 Bruno Haible <bruno@clisp.org>
11382 * modules/mbuiter: New file.
11383 * MODULES.html.sh (Extended multibyte and wide character utilities):
11386 2005-08-17 Bruno Haible <bruno@clisp.org>
11388 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
11389 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
11391 2005-08-17 Bruno Haible <bruno@clisp.org>
11393 * m4/strcasestr.m4: New file.
11395 2005-08-17 Bruno Haible <bruno@clisp.org>
11397 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
11398 * lib/strstr.c: Completely rewritten, with multibyte locale support.
11400 2005-08-17 Bruno Haible <bruno@clisp.org>
11402 * lib/strcasestr.h: New file.
11403 * lib/strcasestr.c: New file.
11405 2005-08-17 Bruno Haible <bruno@clisp.org>
11407 * lib/strcasecmp.c: Use mbuiter.h.
11409 2005-08-17 Bruno Haible <bruno@clisp.org>
11411 * lib/mbuiter.h: New file.
11413 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
11415 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
11416 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
11417 and gl_GETOPT are both invoked via different paths (as happens
11418 with GNU tar CVS because it uses both argp and getopt), the former
11421 2005-08-16 Bruno Haible <bruno@clisp.org>
11423 * modules/tls: New file.
11424 * MODULES.html.sh (Multithreading): Add tls.
11426 2005-08-16 Bruno Haible <bruno@clisp.org>
11428 * modules/strnlen1: New file.
11429 * MODULES.html.sh (String handling): Add strnlen1.
11431 2005-08-16 Bruno Haible <bruno@clisp.org>
11433 * modules/strcase (Files): Add m4/mbrtowc.m4.
11434 (Depends-on): Add strnlen1, mbchar.
11436 2005-08-16 Bruno Haible <bruno@clisp.org>
11438 * modules/mbiter: New file.
11439 * MODULES.html.sh (Extended multibyte and wide character utilities):
11442 2005-08-16 Bruno Haible <bruno@clisp.org>
11444 * modules/mbfile: New file.
11445 * MODULES.html.sh (Extended multibyte and wide character utilities):
11448 2005-08-16 Bruno Haible <bruno@clisp.org>
11450 * modules/mbchar: New file.
11451 * MODULES.html.sh (Extended multibyte and wide character utilities):
11454 2005-08-16 Bruno Haible <bruno@clisp.org>
11456 * m4/tls.m4: New file, from GNU gettext.
11458 2005-08-16 Bruno Haible <bruno@clisp.org>
11460 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
11462 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
11464 2005-08-16 Bruno Haible <bruno@clisp.org>
11466 * m4/mbiter.m4: New file.
11468 2005-08-16 Bruno Haible <bruno@clisp.org>
11470 * m4/mbfile.m4: New file.
11472 2005-08-16 Bruno Haible <bruno@clisp.org>
11474 * m4/mbchar.m4: New file.
11476 2005-08-16 Bruno Haible <bruno@clisp.org>
11478 * lib/tls.h: New file, from GNU gettext.
11479 * lib/tls.c: New file, from GNU gettext.
11481 2005-08-16 Bruno Haible <bruno@clisp.org>
11483 * lib/strnlen1.h: New file.
11484 * lib/strnlen1.c: New file.
11486 2005-08-16 Bruno Haible <bruno@clisp.org>
11488 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
11489 (mbi_init): Update.
11490 (mbi_avail, mbi_advance): Let the iteration end before the terminating
11491 NUL byte, not after it.
11493 2005-08-16 Bruno Haible <bruno@clisp.org>
11495 * lib/strcase.h (strcasecmp): Add note in comments.
11496 * lib/strncasecmp.c: Use code from strcasecmp.c.
11497 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
11498 (strcasecmp): Work correctly in multibyte locales.
11500 2005-08-16 Bruno Haible <bruno@clisp.org>
11502 * lib/mbiter.h: New file.
11504 2005-08-16 Bruno Haible <bruno@clisp.org>
11506 * lib/mbfile.h: New file.
11508 2005-08-16 Bruno Haible <bruno@clisp.org>
11510 * lib/mbchar.h: New file.
11511 * lib/mbchar.c: New file.
11513 2005-08-16 Bruno Haible <bruno@clisp.org>
11515 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
11516 the valid ones. Makes the comparison operations transitive:
11517 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
11518 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
11520 2005-08-15 Simon Josefsson <jas@extundo.com>
11522 * modules/ssize_t (License): Change to 'unlimited'.
11524 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
11526 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
11528 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
11529 Add comments for each pending glibc patch.
11531 2005-08-15 Bruno Haible <bruno@clisp.org>
11533 * lib/regex.h (__restrict_arr): Don't define to __restrict if
11534 __cplusplus is defined.
11536 2005-08-14 Jim Meyering <jim@meyering.net>
11538 Sync from coreutils.
11540 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
11541 Use the hash-table-based cycle-detection code not just when
11542 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
11543 Reported by James Youngman in
11544 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
11545 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
11546 FTS_TIGHT_CYCLE_CHECK.
11547 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
11548 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
11550 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
11551 * lib/fts.c (fd_safer): Remove decl.
11552 Include fcntl--.h rather than unistd-safer.h
11553 (fts_safe_changedir): Don't call fd_safer; no longer needed
11554 now that we include fcntl--.h.
11556 2005-08-12 Simon Josefsson <jas@extundo.com>
11558 * modules/getndelim2: Use ssize_t module.
11559 * modules/getnline: Likewise.
11560 * modules/safe-read: Likewise.
11561 * modules/xreadlink: Likewise.
11563 * modules/ssize_t: New file.
11565 2005-08-12 Simon Josefsson <jas@extundo.com>
11567 * m4/readline.m4: Look for termcap, curses or ncurses if required.
11569 2005-08-12 Simon Josefsson <jas@extundo.com>
11571 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11574 2005-08-12 Simon Josefsson <jas@extundo.com>
11576 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
11577 readline, getdelim and check_version.
11578 (Support for systems lacking ISO C 99: Sizes of integer types):
11581 2005-08-12 Bruno Haible <bruno@clisp.org>
11583 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
11585 2005-08-11 Simon Josefsson <jas@extundo.com>
11587 * modules/readline: New file.
11589 * modules/strnlen (Files): Add strnlen.h.
11591 2005-08-11 Simon Josefsson <jas@extundo.com>
11593 * m4/readline.m4: New file.
11595 2005-08-11 Simon Josefsson <jas@extundo.com>
11597 * lib/readline.h, readline.c: New file.
11599 2005-08-11 Simon Josefsson <jas@extundo.com>
11601 * doc/gnulib.texi (Initial import, Finishing touches): Mention
11604 2005-08-11 Bruno Haible <bruno@clisp.org>
11606 * lib/strnlen.h (strnlen): Change parameter name to match comment.
11608 2005-08-10 Stepan Kasal <kasal@ucw.cz>
11610 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
11612 2005-08-10 Simon Josefsson <jas@extundo.com>
11614 * tests/test-iconvme.c: New file.
11616 2005-08-10 Simon Josefsson <jas@extundo.com>
11618 * m4/strnlen.m4: New file.
11620 * m4/strndup.m4: Don't check for strnlen declaration, done in
11623 2005-08-10 Simon Josefsson <jas@extundo.com>
11625 * lib/strndup.c: Use strnlen.h.
11627 * lib/strnlen.h: New file.
11629 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
11633 2005-08-02 Simon Josefsson <jas@extundo.com>
11635 * modules/readline: New file.
11637 2005-08-02 Simon Josefsson <jas@extundo.com>
11639 * modules/getdelim: New file.
11641 * modules/getline: Rewrite, don't use getndelim2.
11643 2005-08-02 Simon Josefsson <jas@extundo.com>
11645 * m4/getline.m4: Separate out getdelim stuff into separate module.
11647 * m4/getdelim.m4: New file.
11649 2005-08-02 Simon Josefsson <jas@extundo.com>
11651 * lib/getline.h, getline.c: Rewrite.
11653 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
11655 2005-07-31 Bruno Haible <bruno@clisp.org>
11657 * lib/lock.h (gl_lock_initializer): New macro.
11658 (gl_lock_define_initialized): Use it.
11659 (gl_rwlock_initializer): New macro.
11660 (gl_rwlock_define_initialized): Use it.
11661 (gl_recursive_lock_initializer): New macro.
11662 (gl_recursive_lock_define_initialized): Use it.
11664 2005-07-30 Karl Berry <karl@gnu.org>
11666 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
11667 Report from Ben Pfaff, regarding getopt.
11669 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
11671 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
11673 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
11674 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
11675 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
11676 (gl_GETOPT): Use the new macros. Most of the implementation
11677 is moved to the new macros. This is for programs like Emacs
11678 that don't want all the functionality of gl_GETOPT.
11680 2005-07-26 Bruno Haible <bruno@clisp.org>
11682 * m4/lock.m4: Update from GNU gettext.
11684 2005-07-26 Bruno Haible <bruno@clisp.org>
11686 * lib/lock.h: Update from GNU gettext.
11687 * lib/lock.c: Update from GNU gettext.
11689 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
11691 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
11692 obsolescent AC_TRY_RUN. Include the default includes files, for
11695 2005-07-24 Bruno Haible <bruno@clisp.org>
11697 * modules/visibility: New file.
11698 * MODULES.html.sh (Misc): Add visibility.
11700 2005-07-24 Bruno Haible <bruno@clisp.org>
11702 * m4/visibility.m4: New file.
11704 2005-07-24 Bruno Haible <bruno@clisp.org>
11706 * doc/visibility.texi: New file.
11708 2005-07-22 Bruno Haible <bruno@clisp.org>
11710 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
11711 $(ALLOCA_H), redundant through BUILT_SOURCES.
11712 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
11713 redundant through BUILT_SOURCES.
11714 * modules/byteswap (Makefile.am): Remove explicit dependency on
11715 $(BYTESWAP_H), redundant through BUILT_SOURCES.
11716 * modules/fnmatch (Makefile.am): Remove explicit dependency on
11717 $(FNMATCH_H), redundant through BUILT_SOURCES.
11718 * modules/getopt (Makefile.am): Remove explicit dependency on
11719 $(GETOPT_H), redundant through BUILT_SOURCES.
11720 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
11721 redundant through BUILT_SOURCES.
11722 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
11723 redundant through BUILT_SOURCES.
11724 * modules/stdbool (Makefile.am): Remove explicit dependency on
11725 $(STDBOOL_H), redundant through BUILT_SOURCES.
11726 * modules/stdint (Makefile.am): Remove explicit dependency on
11727 $(STDINT_H), redundant through BUILT_SOURCES.
11728 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
11729 Remove explicit dependency on $(SYSEXITS_H).
11730 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
11732 2005-07-18 Simon Josefsson <jas@extundo.com>
11734 * lib/check-version.c (check_version): Accept identical versions too.
11736 2005-07-18 Bruno Haible <bruno@clisp.org>
11738 * modules/lock: New file.
11739 * MODULES.html.sh (Multithreading): New section.
11741 2005-07-18 Bruno Haible <bruno@clisp.org>
11743 * m4/lock.m4: New file, from GNU gettext.
11745 2005-07-18 Bruno Haible <bruno@clisp.org>
11747 * lib/lock.h: New file, from GNU gettext.
11748 * lib/lock.c: New file, from GNU gettext.
11750 2005-07-18 Bruno Haible <bruno@clisp.org>
11752 * lib/lock.h (gl_once_t): New type.
11753 (gl_once_define, gl_once): New macros.
11754 * lib/lock.c (fresh_once): New variable.
11755 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
11758 2005-07-16 Simon Josefsson <jas@extundo.com>
11760 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
11761 workaround, suggested by Bruno.
11763 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
11765 * modules/xalloc (Depends-on): Add xalloc-die.
11766 * modules/xvasprintf (Depends-on): Add xalloc-die.
11768 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
11770 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
11771 with a minor change.
11773 2005-07-15 Bruno Haible <bruno@clisp.org>
11775 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
11776 When using lib/poll.c, define poll as rpl_poll.
11778 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
11780 * modules/argp (Depends-on): Remove unlocked-io.
11782 2005-07-14 Derek Price <derek@ximbiot.com>
11784 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
11785 for glob symlink bug.
11787 2005-07-14 Bruno Haible <bruno@clisp.org>
11789 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
11790 Instead, test for *_unlocked function declarations directly.
11792 2005-07-11 Simon Josefsson <jas@extundo.com>
11794 * modules/size_max: New file.
11796 * modules/xsize: Depend on size_max module for size_max.m4.
11798 2005-07-11 Simon Josefsson <jas@extundo.com>
11800 * lib/size_max.h: New file.
11802 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
11804 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
11805 copyright symbol and the year.
11806 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
11807 (version_etc_va): Use parameterized copyright notice.
11808 Reword to conform to the current GNU coding standards.
11810 2005-07-11 Karl Berry <karl@gnu.org>
11812 * doc/gnulib.texi (Quoting): new node.
11813 (Initial import): more info, from Patrice.
11815 2005-07-11 Bruno Haible <bruno@clisp.org>
11817 * gnulib-tool (func_usage): Document option --avoid.
11818 (Command line options): Handle --avoid.
11819 (func_acceptable): New function.
11820 (func_modules_transitive_closure): Use it.
11822 2005-07-11 Bruno Haible <bruno@clisp.org>
11824 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
11825 Reported by Jim Meyering.
11827 2005-07-10 Bruno Haible <bruno@clisp.org>
11829 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
11830 Needed when size_t is smaller than 'unsigned int'.
11831 Reported by Paul Eggert.
11833 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
11835 * modules/argp (Depends-on): Add unlocked-io
11837 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
11839 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
11842 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
11844 * config/srclist.txt: Comment out regcomp.c, since we have a porting
11847 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
11848 and Paul Eggert <eggert@cs.ucla.edu>
11850 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
11851 in wint_t, not wchar_t. Remove now-unnecessary cast.
11853 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
11855 * modules/regex (Files): Add lib/regex_internal.c,
11856 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
11857 (Depends-on): Add extensions.
11858 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
11860 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
11862 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
11864 * m4/same.m4 (gl_SAME): Likewise.
11865 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
11867 * m4/regex.m4: Adjust to new libc regex implementation.
11868 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
11869 all the .c and .h parts of (the new) regex.
11870 Quote the m4 stuff better.
11871 Check for RE_ICASE bug of old gnulib.
11872 Check for REG_STARTEND of recent libc.
11873 Rename local variables from jm_* to gl_*.
11874 Quote operand of "test -f".
11875 Say "recent enough" version of libc, not "version 2".
11876 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
11877 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
11878 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
11879 Remove check for btowc, isascii.
11880 Require AM_LANGINFO_CODESET.
11882 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
11884 * lib/regex.c, regex.h: Sync from libc.
11885 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
11887 New files, synced from libc, except that regex_internal.h
11888 currently has a small porting fix.
11890 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
11892 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
11893 regex_internal.c, regexec.c.
11894 Add regex_internal.h too, but as a comment, since the libc version
11895 is currently broken in gnulib mode.
11897 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
11899 Support programs like Emacs that use gnulib but not gettext.
11900 * MODULES.html.sh (Internationalization functions): Add gettext-h.
11901 * modules/gettext-h: New file.
11902 * modules/gettext (Files): Remove lib/gettext.h.
11903 (Depends-on): Add gettext-h.
11904 (Makefile.am): Remove lib_SOURCES.
11905 * modules/argmatch, modules/c-stack, modules/closeout:
11906 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
11907 * modules/execute, modules/file-type, modules/getaddrinfo:
11908 * modules/getopt, modules/human, modules/javacomp:
11909 * modules/javaexec, modules/mkdir-p, modules/obstack:
11910 * modules/openat, modules/pagealign_alloc, modules/pipe:
11911 * modules/quotearg, modules/regex, modules/rpmatch:
11912 * modules/unicodeio, modules/userspec, modules/version-etc:
11913 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
11915 Depend on gettext-h, not gettext.
11917 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
11919 * gnulib-tool (func_import): Add support for 'public domain' license.
11920 * modules/alloca, modules/atexit, modules/memmove:
11921 Now public domain, not GPL.
11922 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
11923 * modules/realloc, modules/strerror, modules/strtod:
11926 2005-07-05 Bruno Haible <bruno@clisp.org>
11928 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
11929 autoconf CVS. Needed for mingw.
11931 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
11933 Remove the dependency of the strftime module on the tzset module.
11934 * modules/strftime (Depends-on): Remove dependency on tzset.
11936 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
11938 Remove the dependency of the strftime module on the tzset module.
11939 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
11940 gl_FUNC_TZSET_CLOBBER.
11942 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
11944 Remove the dependency of the strftime module on the tzset module.
11945 * lib/strftime.c (my_strftime)
11946 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
11947 Copy the input structure, to work around some of the bug with
11948 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
11949 Solaris releases, you should also use the tzset module, but we won't
11950 require it as a dependency any more since we don't want LGPLed code
11951 to depend on GPLed code.
11953 2005-07-02 Jim Meyering <jim@meyering.net>
11955 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
11956 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
11957 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
11958 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
11960 2005-07-02 Jim Meyering <jim@meyering.net>
11962 * lib/backupfile.c (backup_args): Change a `0' to NULL.
11964 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
11966 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
11967 declares only 'struct timespec;' (!).
11969 2005-07-01 Jim Meyering <jim@meyering.net>
11971 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
11972 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
11973 * lib/save-cwd.c, tempname.c:
11974 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11975 and don't include <sys/file.h>).
11977 2005-06-29 Jim Meyering <jim@meyering.net>
11979 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
11980 type name. Use the variable name instead.
11981 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11984 2005-06-28 Simon Josefsson <jas@extundo.com>
11986 * modules/check-version (Files): Add check-version.m4.
11988 2005-06-28 Simon Josefsson <jas@extundo.com>
11990 * m4/check-version.m4: New file, suggested by Jim Meyering
11991 <jim@meyering.net>.
11993 2005-06-28 Simon Josefsson <jas@extundo.com>
11995 * lib/check-version.h, lib/check-version.c: New files.
11997 2005-06-28 Simon Josefsson <jas@extundo.com>
11999 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
12000 collision with global variable. Better indentation. Don't
12001 increment buffer pointer beyond buffer end. Based on comments
12002 from Paul Eggert <eggert@cs.ucla.edu>.
12004 * lib/base64.h: Indent.
12006 2005-06-28 Simon Josefsson <jas@extundo.com>
12008 * doc/gnulib.texi (Library version handling): New section.
12010 2005-06-28 Jim Meyering <jim@meyering.net>
12012 * check-module (find_included_lib_files): Hard-code another
12013 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12014 but modules/fts-lgpl (correctly) does not list those files.
12016 * modules/canonicalize (Files): Add lib/pathmax.h.
12018 2005-06-25 Simon Josefsson <jas@extundo.com>
12020 * modules/check-version: New file.
12022 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
12024 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12025 initializer of struct addrinfo, as an indication that we don't
12026 care how many members the structure has.
12028 2005-06-24 Derek Price <derek@ximbiot.com>
12029 and Bruno Haible <bruno@clisp.org>
12031 Remove stat module & update lstat.
12032 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12033 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12034 * m4/stat.m4: Remove this file.
12036 2005-06-24 Derek Price <derek@ximbiot.com>
12037 and Bruno Haible <bruno@clisp.org>
12039 Remove stat module & update lstat.
12040 * lib/stat.c: Remove this file...
12041 (slash_aware_lstat): ...moving this content and its support...
12042 * lib/lstat.c (rpl_lstat): ...into here.
12043 * lib/lstat.h: New file.
12045 2005-06-24 Derek Price <derek@ximbiot.com>
12046 and Bruno Haible <bruno@clisp.org>
12048 Remove stat module & update lstat.
12049 * config/srclist.txt (libc sources): Remove stat.
12051 2005-06-24 Derek Price <derek@ximbiot.com>
12052 and Bruno Haible <bruno@clisp.org>
12054 Remove stat module & update lstat.
12055 * MODULES.html.sh (stat): Remove.
12056 * MODULES.html: Regenerated.
12057 * modules/lstat (Description): Correct function name.
12058 (Files): Add "lstat.h".
12059 (Depends-on): Remove stat, add xalloc, stat-macros.
12060 * modules/stat: Remove this file.
12061 (Include): Add "lstat.h", remove <sys/stat.h>.
12063 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
12065 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
12066 (ranged_convert): Don't save conversion in a temporary struct.
12067 This causes a warning with GCC 4.0.0, and anyway in the typical
12068 case it's not worth the extra 100 bytes or so of code.
12069 (ranged_convert, __mktime_internal): When calling a function via a
12070 pointer P, use P () rather than (*P) (), as we now assume C89 or
12073 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
12075 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12076 "who -r" failed to give output. Problem reported by Tim Waugh.
12078 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12079 (xcalloc): Use it to avoid needless tests.
12080 Problem reported by Jim Meyering.
12082 2005-06-20 Derek Price <derek@ximbiot.com>
12084 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
12085 unnecessary for Autoconfs > 2.59c.
12087 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12089 * lib/argp.h (__option_is_short): Check upper limit of
12090 __key. Isprint() requires its argument to have the value
12091 of an unsigned char or EOF.
12093 2005-06-16 Jim Meyering <jim@meyering.net>
12095 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
12096 when either N or S is zero.
12098 2005-06-16 Derek Price <derek@ximbiot.com>
12100 * m4/bison.m4: Declare YACC & YFLAGS precious.
12102 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
12104 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
12105 multibyte string or pattern, fall back on unibyte matching.
12106 Problem reported by James Youngman.
12108 2005-06-08 Bruno Haible <bruno@clisp.org>
12110 * modules/csharpcomp: New file.
12111 * MODULES.html.sh (C#): Add csharpcomp.
12113 2005-06-08 Bruno Haible <bruno@clisp.org>
12115 * m4/csharpcomp.m4: New file, from GNU gettext.
12117 2005-06-08 Bruno Haible <bruno@clisp.org>
12119 * lib/csharpcomp.h: New file, from GNU gettext.
12120 * lib/csharpcomp.c: New file, from GNU gettext.
12121 * lib/csharpcomp.sh.in: New file, from GNU gettext.
12123 2005-06-08 Bruno Haible <bruno@clisp.org>
12125 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
12128 2005-06-07 Derek Price <derek@ximbiot.com>
12131 * lib/glob_.h: Indent nested #ifdef.
12133 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12135 Sync from coreutils.
12136 Use "file name" when talking about file names, instead of "filename"
12137 or "path", as per the GNU coding standards.
12138 * lib/mkdir-p.c: Renamed from makepath.c.
12139 (make_dir_parents): Renamed from make_path. All callers changed.
12140 * lib/mkdir-p.h: Likewise. All includers changed.
12141 * lib/filenamecat.c: Renamed from path-concat.c.
12142 (file_name_concat): Renamed from path_concat. All callers changed.
12143 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
12144 * lib/filenamecat.h: Likewise. All includers changed.
12145 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
12146 in comments or local variable names.
12147 * lib/basename.c: Likewise.
12148 * lib/canonicalize.c, canonicalize.h: Likewise.
12149 * lib/dirname.c, dirname.h: Likewise.
12150 * lib/euidaccess.c: Likewise.
12151 * lib/exclude.c: Likewise
12152 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
12153 * lib/fsusage.c, fsuage.h: Likewise.
12154 * lib/fts.c, fts_.h: Likewise.
12155 * lib/getcwd.c: Likewise.
12156 * lib/getloadavg.c: Likewise.
12157 * lib/mkstemp.c: Likewise.
12158 * lib/mountlist.c, mountlist.h: Likewise.
12159 * lib/openat.c, openat.h: Likewise.
12160 * lib/readlink-stub.c: Likewise.
12161 * lib/readutmp.c, readutmp.h: Likewise.
12162 * lib/rename.c: Likewise.
12163 * lib/rmdir.c: Likewise.
12164 * lib/same.c: Likewise.
12165 * lib/savedir.c: Likewise.
12166 * lib/stripslash.c: Likewise.
12167 * lib/tempname.c: Likewise.
12168 * lib/xreadlink.c: Likewise.
12169 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
12171 * lib/exclude.h: Likewise.
12173 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
12174 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12175 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
12176 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12177 * lib/pathmax.h: Include <limits.h> unconditionally, since other
12178 files have been getting away with it for years (MORE/BSD 4.3
12180 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
12181 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
12183 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
12184 Define to 256, not 255, as per modern POSIX.
12186 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12188 Sync from coreutils.
12189 Use "file name" when talking about file names, instead of "filename"
12190 or "path", as per the GNU coding standards.
12191 * MODULES.html.sh: mkdir-p renamed from makepath.
12192 filenamecat renamed from path-concat.
12193 * modules/filenamecat: Renamed from modules/path-concat.
12194 (Files): filenamecat.h and filenamecat.c renamed from
12195 path-concat.h and path-concat.c.
12196 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
12197 (Include): filenamecat.h, not path-concat.h.
12198 * modules/mkdir-p: Renamed from modules/makepath.
12199 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
12201 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
12202 (Include): mkdir-p.h, not makepath.h.
12204 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
12206 Sync from coreutils.
12207 * m4/mkdir-p.m4: Renamed from makepath.m4.
12208 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
12209 Rename files from makepath.c to mkdir-p.c, and from
12210 makepath.h to mkdir-p.h.
12211 * m4/filenamecat.m4: Renamed from path-concat.m4.
12212 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
12213 Rename files from path-concat.c to filenamecat.c,
12214 and from path-concat.h to filenamecat.h.
12215 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
12216 "file name" in local variables or comments.
12217 * m4/rename.m4: Likewise.
12219 2005-06-01 Bruno Haible <bruno@clisp.org>
12221 * modules/csharpexec: New file.
12222 * MODULES.html.sh (C#): New section.
12224 2005-06-01 Bruno Haible <bruno@clisp.org>
12226 * m4/csharp.m4: New file, from GNU gettext.
12227 * m4/csharpexec.m4: New file, from GNU gettext.
12229 2005-06-01 Bruno Haible <bruno@clisp.org>
12231 * lib/csharpexec.h: New file, from GNU gettext.
12232 * lib/csharpexec.c: New file, from GNU gettext.
12233 * lib/csharpexec.sh.in: New file, from GNU gettext.
12235 2005-05-31 Derek Price <derek@ximbiot.com>
12236 Paul Eggert <eggert@cs.ucla.edu>
12239 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
12241 2005-05-31 Derek Price <derek@ximbiot.com>
12242 Paul Eggert <eggert@cs.ucla.edu>
12245 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
12247 2005-05-29 Derek Price <derek@ximbiot.com>
12249 * config/srclist.txt (glob_.h, glob.c): Add these files.
12251 2005-05-29 Derek Price <derek@ximbiot.com>
12253 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
12254 * modules/glob: New file.
12255 * modules/getlogin_r: Add link to POSIX spec in description.
12257 2005-05-29 Derek Price <derek@ximbiot.com>
12258 Paul Eggert <eggert@cs.ucla.edu>
12260 * m4/glob.m4: New file.
12262 2005-05-29 Derek Price <derek@ximbiot.com>
12263 Paul Eggert <eggert@cs.ucla.edu>
12265 * lib/glob_.h, lib/glob.c: New files.
12267 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
12269 * modules/fts (Files): Remove m4/inttypes-pri.m4.
12270 * modules/fts-lgpl (Depends-on): Remove gettext.
12272 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
12274 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
12275 and don't require gt_INTTYPES_PRI.
12277 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
12279 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
12281 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
12282 the configuration hassle isn't worth it.
12283 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
12284 (LONGEST_MODIFIER, PRIuMAX): Remove.
12286 2005-05-27 Bruno Haible <bruno@clisp.org>
12288 * lib/getlogin_r.h: Remove second include of <stddef.h>.
12290 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
12292 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
12293 _POSIX_PTHREAD_SEMANTICS for Solaris.
12295 2005-05-25 Derek Price <derek@ximbiot.com>
12297 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
12299 2005-05-25 Derek Price <derek@ximbiot.com>
12300 Paul Eggert <eggert@cs.ucla.edu>
12302 * modules/getlogin_r, m4/getlogin_r.m4: New files.
12303 * lib/getlogin_r.c, getlogin_r.h: New files.
12305 2005-05-25 Bruno Haible <bruno@clisp.org>
12306 Derek Price <derek@ximbiot.com>
12308 * lib/getlogin_r.h: Simplify API documentation.
12310 2005-05-23 Derek Price <derek@ximbiot.com>
12312 * modules/minmax (Files): Add m4/minmax.m4.
12313 (configure.ac): Add gl_MINMAX.
12315 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
12317 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
12318 so that unistd-safer.h (GPL'ed code) need not be included.
12320 2005-05-22 Bruno Haible <bruno@clisp.org>
12322 * m4/minmax.m4: New file.
12323 Based on a patch by Derek Price <derek@ximbiot.com>.
12325 2005-05-22 Bruno Haible <bruno@clisp.org>
12327 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
12328 (INT64_MIN): Fix definition.
12329 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
12331 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
12332 NEED_SIGNED_INT_TYPES.
12334 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
12335 HAVE_SYSTEM_INTTYPES.
12337 2005-05-22 Bruno Haible <bruno@clisp.org>
12339 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
12340 Also include <sys/param.h> if it defines MIN, MAX.
12341 Based on a patch by Derek Price <derek@ximbiot.com>.
12343 2005-05-21 Jim Meyering <jim@meyering.net>
12345 * modules/fts (Files): Add m4/inttypes-pri.m4.
12346 (Depends-on): Add lstat and remove gettext. Alphabetize.
12348 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
12351 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
12352 (setup_dir, free_dir): New functions.
12353 (enter_dir, leave_dir): Define trivial
12354 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
12355 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
12356 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
12357 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
12358 Move to fts-cycle.c.
12359 (fts_open): Use setup_dir.
12360 (fts_close): Use free_dir.
12361 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
12362 This adds a label and some gotos, but the alternatives were messier.
12363 Check for memory allocation failure when entering a dir.
12364 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
12365 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
12366 (FTS): New member fts_cycle, that is a union that contains the
12367 old active_dir_ht and cycle_state. All uses changed to mention
12368 fts_cycle.ht and fts_cycle.state.
12369 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
12370 fts.c, with the following changes:
12371 (setup_dir, free_dir): New functions.
12372 (enter_dir): Now returns bool. Return true if successful, false
12373 if memory exhausted. All callers changed.
12374 Do not bother partly cleaning up on
12375 memory allocation failure; that is free_dir's job.
12376 However, free ad if hash_insert fails, to avoid memory leak.
12377 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
12378 fts->fts_options to see which union member to use.
12380 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
12382 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
12383 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
12385 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
12387 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
12389 2005-05-20 Jim Meyering <jim@meyering.net>
12391 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
12392 Now a macro, to pacify GCC.
12394 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
12396 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
12399 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
12401 * lib/chown.c (rpl_chown): Return -1 on failure.
12403 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
12405 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
12406 Don't check for stddef.h.
12407 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
12408 don't use its results.
12409 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
12410 since we include them unconditionally. Don't require
12411 AM_STDBOOL_H, since stdbool is a prerequisite.
12412 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
12413 since we assume C89 or better.
12414 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
12415 as we don't use their results.
12416 Don't check for fchdir, memmove, memset, strrchr, as we use
12417 them unconditionally.
12418 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
12419 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
12421 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
12423 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
12424 Include <stddef.h> unconditionally, since we assume C89 now.
12425 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
12426 * lib/fts.c: Include fts_.h first, to check interface.
12427 Do not include intprops.h; no longer needed.
12428 Include cycle-check.h and hash.h, since fts_.h no longer does.
12429 Remove unnecessary casts of closedir to void.
12430 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
12431 decide whether to decrement nlinks.
12432 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
12433 (FTS): Use struct hash_table * instead of Hash_table, so that
12434 we no longer need to include hash.h here.
12436 2005-05-18 Jim Meyering <jim@meyering.net>
12438 * modules/dirfd (License): Change to LGPL. Most of the code
12439 is already in the public domain.
12441 2005-05-18 Jim Meyering <jim@meyering.net>
12443 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
12444 Reported by Yoann Vandoorselaere.
12446 2005-05-17 Jim Meyering <jim@meyering.net>
12448 * m4/fts.m4: New file, from coreutils.
12450 2005-05-17 Jim Meyering <jim@meyering.net>
12452 * lib/fts.c, lib/fts_.h: New files, from coreutils.
12454 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
12456 Sync from coreutils.
12457 * m4/unlinkdir.m4: New file.
12459 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
12461 Sync from coreutils.
12462 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
12463 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
12464 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
12465 White space changes only.
12466 * lib/makepath.c (make_path): Port to hosts where leading "//" is
12468 * lib/yesno.c: Include getline.h, not ctype.h.
12469 (yesno): Don't remove leading white space; POSIX doesn't allow it.
12470 Use getline to remove arbitrary restriction on response length.
12472 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
12474 * config/srclist-update: Spell out "Street" in FSF postal
12475 mail address; this is the style the FSF seems to prefer.
12477 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
12478 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
12479 this updates FSF postal mail address.
12481 Sync from coreutils.
12482 * modules/unlinkdir: New file.
12483 * modules/yesno (Depends-on): Add getline.
12484 * MODULES.html.sh (File system functions): Add unlinkdir.
12486 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
12488 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
12490 Change the initial comment to refer to GPL, not LGPL.
12491 gnulib-tool will change it to LGPL as needed.
12493 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
12494 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
12495 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
12496 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
12497 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
12498 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
12499 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
12500 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
12501 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
12502 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
12503 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
12504 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
12505 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
12506 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
12507 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
12508 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
12509 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
12510 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
12511 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
12512 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
12513 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
12514 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
12515 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
12516 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
12517 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
12518 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
12519 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
12520 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
12521 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
12522 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
12523 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
12524 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
12525 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
12526 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
12527 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
12528 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
12529 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
12530 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
12531 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
12532 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
12533 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
12534 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
12535 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
12536 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
12537 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
12538 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
12539 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
12540 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
12541 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
12542 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
12543 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
12544 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
12545 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
12546 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
12547 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
12548 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
12549 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
12550 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
12551 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
12552 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
12553 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
12554 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
12555 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
12556 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
12557 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
12558 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
12559 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
12560 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
12561 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
12562 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
12563 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
12564 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
12565 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
12566 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
12567 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
12568 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
12569 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
12570 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
12571 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
12572 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
12573 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
12574 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
12575 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
12576 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
12577 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
12578 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
12579 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
12580 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
12581 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
12582 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
12583 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
12584 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
12585 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
12586 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
12587 lib/yesno.c, lib/yesno.h:
12588 Update FSF postal mail address.
12590 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
12592 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
12593 tests/test-memmem.c, tests/test-stpncpy.c:
12594 Update FSF postal mail address.
12596 2005-05-13 Bruno Haible <bruno@clisp.org>
12598 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
12599 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
12600 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
12601 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
12602 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
12603 Add support for 64-bit integers in the MSVC compiler.
12605 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12607 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
12609 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
12611 * gnulib-tool (func_import): Sort and uniquify recommended includes.
12613 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
12615 * doc/getdate.texi (General date syntax): Don't say that date
12616 date --iso-8601=ns generates acceptable dates; it doesn't yet.
12617 Problem reported by Nic Ferrier.
12619 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12621 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
12622 specified in ai_socktype. Fix invalid ai_protocol
12623 check. ai_protocol is usually set to 0 or depending on
12624 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
12625 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
12626 ai_socktype / ai_protocol in the returned addrinfo structure.
12628 2005-05-10 Simon Josefsson <jas@extundo.com>
12630 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
12631 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12633 2005-05-10 Karl Berry <karl@gnu.org>
12635 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
12636 (from http://www.gnu.org/licenses).
12637 * doc/COPYING.LIB: also rename to COPYING.LESSER.
12638 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
12641 2005-05-10 Karl Berry <karl@gnu.org>
12643 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
12644 (COPYING.DOC): remove.
12646 * config/srclist-update: new FSF address.
12648 2005-05-10 Derek Price <derek@ximbiot.com>
12650 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
12653 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12654 Bruno Haible <bruno@clisp.org>
12656 * modules/inet_ntop: New file.
12657 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12660 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12661 Bruno Haible <bruno@clisp.org>
12663 * m4/inet_ntop.m4: New file.
12665 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12666 Bruno Haible <bruno@clisp.org>
12668 * lib/inet_ntop.h: New file.
12669 * lib/inet_ntop.c: New file, from glibc with modifications.
12671 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
12673 * modules/time_r (License): Change to LGPL.
12674 * modules/extensions (License): Change to LGPL. Actually,
12675 the license is more permissive than that, but currently gnulib-tool
12676 doesn't know how to handle more-permissive licenses.
12678 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
12679 Problem reported by Dave Love.
12681 2005-05-08 Jim Meyering <jim@meyering.net>
12683 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
12686 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
12688 * modules/argmatch (Depends-on): Add stdbool.
12689 * modules/backupfile (Depends-on): Likewise.
12690 * modules/chdir-long (Depends-on): Likewise.
12691 * modules/closeout (Depends-on): Likewise.
12692 * modules/cycle-check (Depends-on): Likewise.
12693 * modules/dirname (Depends-on): Likewise.
12694 * modules/fnmatch (Depends-on): Likewise.
12695 * modules/fsusage (Depends-on): Likewise.
12696 * modules/fwriteerror (Depends-on): Likewise.
12697 * modules/getcwd (Depends-on): Likewise.
12698 * modules/getloadavg (Depends-on): Likewise.
12699 * modules/hard-locale (Depends-on): Likewise.
12700 * modules/makepath (Depends-on): Likewise.
12701 * modules/mountlist (Depends-on): Likewise.
12702 * modules/nanosleep (Depends-on): Likewise.
12703 * modules/posixtm (Depends-on): Likewise.
12704 * modules/quotearg (Depends-on): Likewise.
12705 * modules/readtokens (Depends-on): Likewise.
12706 * modules/readtokens0 (Depends-on): Likewise.
12707 * modules/readutmp (Depends-on): Likewise.
12708 * modules/save-cwd (Depends-on): Likewise.
12709 * modules/strftime (Depends-on): Likewise.
12710 * modules/userspec (Depends-on): Likewise.
12711 * modules/utimecmp (Depends-on): Likewise.
12712 * modules/xgetcwd (Depends-on): Likewise.
12713 * modules/xnanosleep (Depends-on): Likewise.
12714 * modules/xstrtod (Depends-on): Likewise.
12715 * modules/yesno (Depends-on): Likewise.
12717 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
12719 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
12722 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
12724 Merge from coreutils. Among other things,
12725 add bulletproofing for cases where stdin, stdout, or stderr are closed.
12726 * lib/fd-safer.c: New file.
12727 * lib/fcntl-safer.h, open-safer.c: Remove.
12728 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
12729 * lib/dup-safer.c: Include unistd-safer.h first.
12730 Don't include errno.h.
12731 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
12732 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
12733 * lib/file-type.c: Rely on file-type.h change.
12734 * lib/getloadavg.c: Include unistd-safer.h.
12735 (getloadavg): Use safer open.
12736 * lib/getusershell.c: Include "stdio-safer.h".
12737 (getusershell): Use safer fopen.
12738 * lib/long-options.c (long_options): Use NULL rather than 0.
12739 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
12741 * lib/modechange.c: Likewise.
12742 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
12743 (MODE_DONE): New constant.
12744 (struct mode_change): Remove 'next' member.
12745 (make_node_op_equals): New function; like the old one of the
12746 same name, except it allocates an array.
12747 (mode_compile, mode_create_from_ref): Use it.
12748 (mode_compile): Allocate result as an array, not a linked list.
12749 Parse octal string ourself, so that we catch mistakes like "+0".
12750 (mode_adjust): Arg is an array, not a linked list.
12751 * lib/modechange.c: Include stat-macros.h, xalloc.h.
12752 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
12753 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
12754 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
12755 Remove. This is now stat-macros.h's job.
12756 (talloc): Remove. All callers replaced by xalloc, so that
12757 our invokers don't have to worry about reporting memory failures.
12758 (make_node_op_equals): Remove.
12759 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12761 (struct mode_change): Moved here from modechange.h.
12762 (mode_append_entry): Remove.
12763 (mode_compile): Remove MASKED_OPS arg, since it encouraged
12764 apps to have incorrect behavior. Use simpler algorithm for head
12765 and tail. Don't futz with umask; that's now the job of mode_adjust.
12766 Detect more invalid usages rather than having somewhat-random behavior.
12767 Don't insert an "a=" action, as that leads to incorrect behavior.
12768 (mode_compile, mode_create_from_ref): Return NULL on error instead
12769 of an enum, since now there's only one way to have an error. All
12771 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
12772 at the correct time. Simplify calculation of "+u" and its ilk.
12773 Don't mishandle "+X".
12774 (mode_free): Remove "register" and localize decls.
12775 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
12776 (struct mode_change): Move to modechange.c; callers don't
12777 need to see this stuff.
12778 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
12779 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
12780 (mode_change, mode_adjust): Reflect the new signatures noted above.
12781 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
12782 that might redefine system include files.
12783 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
12784 (my_usleep): Use NULL rather than (void *) 0.
12785 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
12786 Use siginterrupt to specify that system calls should be interrupted.
12787 (rpl_nanosleep): Move initialization of suspended closer to call of
12789 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
12790 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
12791 (desirable_utmp_entry): New function.
12792 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
12793 using x2nrealloc, to simplify logic.
12794 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
12795 size calculation. Do not assume utmp file is a regular file.
12796 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
12797 (READ_UTMP_CHECK_PIDS): New constant.
12798 * lib/save-cwd.c: Include unistd-safer.h.
12799 (save_cwd): Use fd_safer.
12800 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
12801 [!_LIBC] Include "stat-macros.h" instead.
12802 * lib/unistd-safer.h (fd_safer): New decl.
12804 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
12806 * modules/getloadavg (Depends-on): Add unistd-safer.
12807 * modules/getusershell (Depends-on): Add stdio-safer.
12808 * modules/lstat (Depends-on): Remove xalloc.
12809 * modules/mkstemp (Depends-on): Add stat-macros.
12810 * modules/modechange (Depends-on): Remove xstrtol.
12811 Add stat-macros, xalloc.
12812 * modules/save-cwd (Depends-on): Add unistd-safer.
12813 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
12814 * modules/unistd-safer (Files): Add lib/fd-safer.c
12815 (Makefile.am): Remove lib_SOURCES.
12817 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
12818 Remove fcntl-safer; unistd-safer supersedes it.
12820 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
12822 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
12824 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
12825 (gl_PREREQ_CHOWN): Remove.
12826 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
12827 it. Don't require AC_HEADER_STAT.
12828 (gl_PREREQ_LSTAT): Remove.
12829 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
12830 Don't require AC_HEADER_STAT.
12831 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
12832 (gl_PREREQ_RMDIR): Remove.
12833 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
12834 mention stat-macros.h or AC_HEADER_STAT, since we'll make
12835 the stat-macros module a prerequisite.
12836 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
12837 * m4/filemode.m4 (gl_FILEMODE): Likewise.
12838 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
12839 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
12840 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
12842 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
12843 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
12845 * m4/fcntl-safer.m4: Remove.
12846 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
12847 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
12848 Invoke gl_PREREQ_FD_SAFER.
12849 (gl_PREREQ_FD_SAFER): New macro.
12850 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
12851 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
12852 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
12853 Remove duplicate call to AC_LIBOBJ(readutmp).
12854 (gl_PREREQ_READUTMP): Remove. All uses inlined.
12856 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
12857 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
12859 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
12861 * MODULES.html.sh (Misc): Add byteswap.
12863 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
12865 * modules/getcwd (Depends-on): Add extensions.
12866 * modules/openat (Depends-on): Likewise.
12868 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
12870 * modules/byteswap: New file.
12872 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
12874 * m4/byteswap.m4: New file.
12876 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
12878 * lib/byteswap_.h: New file.
12880 2005-04-25 Karl Berry <karl@gnu.org>
12882 * m4/gettext.m4: Update from GNU gettext 0.14.4.
12884 2005-04-25 Albert Chin <china@thewrittenword.com>
12886 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
12889 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
12891 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
12892 (func_ln_if_changed) Remove forcibly for no error message
12893 in case file does not exist.
12895 2005-04-19 Simon Josefsson <jas@extundo.com>
12897 * gnulib-tool (Options): Make --symlink mean --symbolic.
12899 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
12901 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
12903 2005-04-16 Simon Josefsson <jas@extundo.com>
12905 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
12907 2005-04-15 Simon Josefsson <jas@extundo.com>
12909 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
12911 2005-04-15 Simon Josefsson <jas@extundo.com>
12913 * gnulib-tool: Rename --symlink to --symbolic.
12915 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
12917 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
12918 symbolic links to files instead of copying/moving. Add --aux-dir,
12919 specifying directory relative --dir where auxiliary build tools
12922 2005-04-14 Bruno Haible <bruno@clisp.org>
12924 * modules/allocsa (License): Change to LGPL.
12925 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
12927 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
12929 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
12930 that "UTC +1 second" continues to work. Problem reported
12931 by Dmitry V. Levin.
12932 (relunit_snumber): New rule.
12935 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
12937 * lib/getdate.y (universal_time_zone_table): New constant.
12938 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
12939 universal_time_zone_table.
12940 (lookup_zone): Prefer universal_time_zone_table to
12941 local_time_zone_table, so that "GMT" time stamps are allowed in
12942 London during the summer. Problem reported by Ian Abbott.
12944 2005-04-12 Jim Meyering <jim@meyering.net>
12946 * lib/human.c (humblock): Set *options even when returning due to
12947 xstrtoumax conversion failure. Thanks to a used-uninitialized
12948 warning from gcc-4.
12950 2005-04-09 Jim Meyering <jim@meyering.net>
12952 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
12953 -Wuninitialized: initialize tm0.tm_year.
12955 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
12957 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
12958 count, since there's no maximum. All uses changed.
12959 Add member dsts_seen.
12960 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
12962 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
12963 Use pc_rels_seen to decide whther a date is absolute.
12965 * lib/getdate.y (number): Don't overwrite year.
12966 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
12969 2005-04-02 Simon Josefsson <jas@extundo.com>
12971 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
12972 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
12974 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
12976 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
12977 where no absolute path name can be longer than PATH_MAX.
12979 2005-03-27 Jim Meyering <jim@meyering.net>
12981 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
12983 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
12985 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
12986 "one's complement" -> "ones' complement" in comment, as per Knuth.
12987 "value of type" -> "type or expression" in comment.
12988 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
12990 2005-03-26 Jim Meyering <jim@meyering.net>
12993 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
12994 Correct typos: s/or/of/.
12996 2005-03-26 Jim Meyering <jim@meyering.net>
12998 * modules/check-include-files: Move to ../ and rename to...
12999 * check-module: ...this.
13001 2005-03-25 Jim Meyering <jim@meyering.net>
13003 * modules/xvasprintf (Files): Add xalloc.h.
13005 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
13007 * modules/gettext (Files): config/config.rpath ->
13008 build-aux/config.rpath
13009 * modules/iconv (Files): Likewise.
13010 Problem reported by Oskar Liljeblad.
13012 2005-03-23 Jim Meyering <jim@meyering.net>
13014 * modules/check-include-files: New script to check for
13015 missing dependencies, multiple includes, etc.
13017 * modules/c-strtold (Depends-on): Add xalloc.
13018 * modules/c-strtod (Depends-on): Add xalloc.
13019 * modules/hash (Depends-on): Add xalloc.
13020 (Files): Remove lib/xalloc.h.
13022 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13023 * modules/userspec (Files): Add lib/inttostr.h.
13025 2005-03-23 Jim Meyering <jim@meyering.net>
13027 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13029 2005-03-22 Jim Meyering <jim@meyering.net>
13031 * modules/stat-macros: New module.
13032 * modules/canonicalize, modules/euidaccess, modules/file-type,
13033 * modules/filemode, modules/lchown, modules/makepath,
13034 * modules/rmdir, modules/stat: Depend on new stat-macros module
13035 rather than listing lib/stat-macros.h manually.
13036 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13038 2005-03-22 Jim Meyering <jim@meyering.net>
13040 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13042 2005-03-22 Bruno Haible <bruno@clisp.org>
13044 * config/srclist.txt: Replace target directory 'config' with
13046 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13047 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13050 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
13052 * modules/chdir-long (Depends-on): Add mempcpy.
13054 * modules/acl, modules/backupfile, modules/c-strtod,
13055 modules/c-strtold, modules/canon-host, modules/canonicalize,
13056 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13057 modules/exclude, modules/exitfail, modules/file-type,
13058 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13059 modules/getdate, modules/getline, modules/getpagesize,
13060 modules/getpass, modules/getugroups, modules/group-member,
13061 modules/hard-locale, modules/hash, modules/human, modules/idcache,
13062 modules/inttostr, modules/long-options, modules/makepath,
13063 modules/md5, modules/memcasecmp, modules/memcoll,
13064 modules/modechange, modules/mountlist, modules/path-concat,
13065 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13066 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13067 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13068 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13069 modules/strftime, modules/strndup, modules/strverscmp,
13070 modules/timespec, modules/unlocked-io, modules/userspec,
13071 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13073 Remove lib_SOURCES line from Makefile.am section, as this is now
13074 done automatically by the corresponding Autoconf macro.
13076 2005-03-21 Jim Meyering <jim@meyering.net>
13078 Changes imported from coreutils.
13080 * lib/cycle-check.c: Don't include xalloc.h.
13082 * lib/path-concat.c: Don't include assert.h.
13083 (path_concat): Remove assertion that would have triggered
13084 for ABASE starting with more than one slash.
13085 Reported by Andreas Schwab.
13087 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
13088 properly when ABASE is an absolute file name.
13089 Correct the description of this function.
13090 Include <assert.h>.
13091 Add an assertion and a test driver.
13092 This fixes a bug introduced on 2004-07-02.
13093 Andreas Schwab reported the resulting failure of cp --parents:
13094 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
13096 2005-03-21 Jim Meyering <jim@meyering.net>
13098 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
13099 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
13101 2005-03-21 Jim Meyering <jim@meyering.net>
13102 and Paul Eggert <eggert@cs.ucla.edu>
13104 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
13105 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
13106 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
13107 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
13108 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
13109 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
13110 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
13111 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
13112 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
13113 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
13114 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
13115 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
13116 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
13117 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
13118 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
13119 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
13120 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
13123 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
13125 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
13126 (which shouldn't happen), generate nothing instead of returning 0
13127 immediately, so that nstrftime (NULL, ...) doesn't return 0.
13129 2005-03-16 Bruno Haible <bruno@clisp.org>
13131 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
13132 HAVE_LONGLONG_64BIT.
13134 2005-03-16 Bruno Haible <bruno@clisp.org>
13136 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
13137 HAVE_LONGLONG_64BIT.
13139 2005-03-16 Bruno Haible <bruno@clisp.org>
13141 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
13142 HAVE_LONGLONG_64BIT.
13144 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
13146 * lib/strftime.c (my_strftime): Prepend space to format so that we can
13147 reliably distinguish strftime failure from empty output on POSIX
13150 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
13152 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
13153 (iconv_string): Don't guess a size-zero buffer, as that might cause
13154 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
13155 result would be 'too large', where 'too large' is (heuristically)
13156 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
13157 overflow concerns. This will prevent some unwanted malloc failures
13158 when the inputs are very large.
13160 2005-03-15 Karl Berry <karl@gnu.org>
13162 * config/srclist.txt (config.rpath): from gettext.
13163 * config/config.rpath: update.
13165 2005-03-15 Bruno Haible <bruno@clisp.org>
13167 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
13170 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
13173 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
13176 2005-03-14 Simon Josefsson <jas@extundo.com>
13178 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
13181 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
13183 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
13184 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
13186 * lib/strtol.c: Likewise.
13188 2005-03-14 Jim Meyering <jim@meyering.net>
13190 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
13191 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
13192 to be nonzero so that we (and caller) can detect the difference
13193 between a valid zero-length expansion and an error return, even
13194 when the underlying strftime fails before writing anything into
13197 2005-03-14 Bruno Haible <bruno@clisp.org>
13199 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
13200 Update from GNU gettext 0.14.3.
13202 2005-03-10 Jim Meyering <jim@meyering.net>
13204 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
13206 2005-03-10 Jim Meyering <jim@meyering.net>
13208 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
13209 so that this module works on systems without fchdir.
13211 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
13213 Factor int-properties macros into a single file, except for
13214 glibc-related files.
13215 * lib/intprops.h: New file.
13216 * lib/getloadavg.c: Include it instead of limits.h.
13217 (INT_STRLEN_BOUND): Remove.
13218 * lib/human.c: Include intprops.h.
13219 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
13220 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
13222 * lib/inttostr.h: Include intprops.h instead of limits.h.
13223 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
13224 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
13225 for consistency with intprops.h.
13226 (time_t_is_integer, twos_complement_arithmetic): Use them.
13227 * lib/sig2str.h: Include <signal.h>, intprops.h.
13228 (INT_STRLEN_BOUND): Remove.
13229 * lib/strftime.c (TYPE_SIGNED): Remove.
13230 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
13231 * lib/strtol.c: Adjust comments to match intprops.h.
13232 * lib/userspec.c: Include intprops.h.
13233 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
13234 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
13235 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
13236 instead of rolling our own expressions.
13237 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
13239 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
13241 (my_strftime): Do not mishandle years close to INT_MAX, by doing
13242 the right thing even if adding 1900 would overflow. Similarly
13243 for tm_mon + 1 and tm_yday + 1.
13244 Make %Y always equivalent to %C%y, and similarly for %G and %g.
13245 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
13246 (DO_SIGNED_NUMBER): New macro.
13247 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
13249 2005-03-07 Bruno Haible <bruno@clisp.org>
13251 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
13253 2005-03-07 Bruno Haible <bruno@clisp.org>
13255 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
13257 2005-03-04 Derek R. Price <derek@ximbiot.com>
13259 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
13260 (func_import): Only replace files via --import when they have actually
13263 2005-03-03 Derek R. Price <derek@ximbiot.com>
13265 * m4/mmap-anon.m4: New file.
13266 * m4/pagealign_alloc.m4: New file.
13268 2005-03-03 Derek R. Price <derek@ximbiot.com>
13269 Bruno Haible <bruno@clisp.org>
13271 * modules/pagealign_alloc: New file.
13272 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
13274 2005-03-03 Derek R. Price <derek@ximbiot.com>
13275 Bruno Haible <bruno@clisp.org>
13277 * lib/pagealign_alloc.h: New file.
13278 * lib/pagealign_alloc.c: New file.
13280 2005-03-03 Bruno Haible <bruno@clisp.org>
13282 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
13283 Use an all-permissive copyright notice, recommended by RMS.
13285 2005-03-02 Bruno Haible <bruno@clisp.org>
13287 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
13288 of AIX, the replacement has to be done only after <string.h> is
13289 included, therefore not in config.h. stpncpy.h does the replacement,
13290 and stpncpy.c uses it.
13292 2005-03-02 Bruno Haible <bruno@clisp.org>
13294 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
13297 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
13299 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
13300 The workaround isn't strictly needed for POSIX conformance, and
13301 it's too much of a pain to configure and maintain. We'll ask
13302 people to fix their kernels instead.
13303 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
13304 (NANOSLEEP_BUG_WORKAROUND): Remove.
13305 (xnanosleep): Remove the workaround.
13307 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
13309 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
13310 Reported by Derek Price.
13311 (Include): Add "timespec.h".
13313 * modules/xnanosleep (Depends-on): Remove gethrxtime.
13315 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
13317 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
13318 to detect nanosleep bug.
13320 2005-03-01 Bruno Haible <bruno@clisp.org>
13322 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
13324 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
13326 * modules/gethrxtime: New file.
13327 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
13328 (Depends-on): Add gethrxtime.
13329 (configure.ac): Add gl_XNANOSLEEP.
13330 (Makefile.am): Remove lib_SOURCES line.
13332 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
13334 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
13335 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
13337 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
13339 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
13340 * lib/timespec.h (gettime): Return void, since it always
13341 succeeds now. All uses changed.
13342 * lib/gettime.c (gettime) Likewise.
13343 [HAVE_NANOTIME]: Prefer nanotime.
13344 Assume gettimeofday succeeds, as POSIX requires.
13345 Assime time () succeeds, since other code already does.
13346 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
13347 (timespec_subtract): Remove.
13348 (NANOSLEEP_BUG_WORKAROUND): New constant.
13349 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
13350 things considerably. Use it only on GNU/Linux hosts, since the
13351 workaround shouldn't be needed elsewhere.
13353 2005-02-24 Bruno Haible <bruno@clisp.org>
13355 * modules/gettext (Files): Add m4/glibc2.m4.
13357 2005-02-24 Bruno Haible <bruno@clisp.org>
13359 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
13360 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
13362 Update from GNU gettext 0.14.2.
13363 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
13365 2005-02-24 Bruno Haible <bruno@clisp.org>
13367 * lib/localcharset.c: Update from GNU gettext 0.14.2.
13368 * lib/config.charset: Update from GNU gettext 0.14.2.
13370 2005-02-24 Bruno Haible <bruno@clisp.org>
13372 * lib/gettext.h: Update from GNU gettext 0.14.2.
13374 2005-02-23 Simon Josefsson <jas@extundo.com>
13376 * m4/iconvme.m4: New file.
13378 2005-02-23 Jim Meyering <jim@meyering.net>
13380 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
13382 Thanks to Bruno Haible for catching it.
13384 2005-02-22 Simon Josefsson <jas@extundo.com>
13386 * modules/iconvme: New file.
13388 * MODULES.html.sh: Add iconvme.
13390 2005-02-22 Simon Josefsson <jas@extundo.com>
13392 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
13394 2005-02-22 Simon Josefsson <jas@extundo.com>
13396 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
13398 2005-02-22 Jim Meyering <jim@meyering.net>
13400 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
13403 2005-02-20 Neil Conway <neilc@samurai.com>
13405 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
13406 returned by OSX/Darwin if the specified buffer is not large
13407 enough for the hostname.
13409 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13411 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
13412 pass it to _help, otherwise the latter coredumps trying to
13413 dereference state.root_argp.
13415 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
13417 * modules/chdir-long (Depends-on): Add memrchr.
13418 * modules/memrchr (Files): Add lib/memrchr.h.
13419 (Include): "memrchr.h".
13421 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
13423 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
13425 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
13427 * lib/memrchr.h: New file.
13428 * lib/chdir-long.c: Include it.
13429 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
13430 Don't bother including stddef.h.
13432 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
13434 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
13436 Include <sys/types.h>, for dev_t.
13437 (ME_DUMMY, ME_REMOTE): Move from here....
13438 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
13439 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
13441 Include mountlist.h first, to test the interface.
13443 2005-01-29 Bruno Haible <bruno@clisp.org>
13445 * lib/progname.c (program_name): Initialize.
13446 Needed when linking statically on MacOS X.
13448 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
13450 Sync from coreutils.
13451 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
13452 (Depends-on): Add c-strtod.
13453 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
13455 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
13457 Sync from coreutils.
13458 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
13460 Remove files that are specific to coreutils.
13461 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
13463 2005-01-28 Bruno Haible <bruno@clisp.org>
13465 * modules/javacomp: New file.
13466 * MODULES.html.sh (Java): Add javacomp.
13468 2005-01-28 Bruno Haible <bruno@clisp.org>
13470 * m4/javacomp.m4: New file, from GNU gettext.
13472 2005-01-28 Bruno Haible <bruno@clisp.org>
13474 * lib/javacomp.sh.in: New file, from GNU gettext.
13475 * lib/javacomp.h: New file, from GNU gettext.
13476 * lib/javacomp.c: New file, from GNU gettext.
13478 2005-01-26 Simon Josefsson <jas@extundo.com>
13480 * lib/gai_strerror.c: Use GPL in header.
13482 2005-01-26 Bruno Haible <bruno@clisp.org>
13484 * modules/javaexec: New file.
13485 * MODULES.html.sh (Java): Add javaexec.
13487 2005-01-26 Bruno Haible <bruno@clisp.org>
13489 * m4/javaexec.m4: New file, from GNU gettext.
13491 2005-01-26 Bruno Haible <bruno@clisp.org>
13493 * lib/javaexec.sh.in: New file, from GNU gettext.
13494 * lib/javaexec.h: New file, from GNU gettext.
13495 * lib/javaexec.c: New file, from GNU gettext.
13497 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13499 * modules/lchown (Depends-on): Remove lchown.h
13501 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13503 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
13504 must be defined if the header file was not found, in order
13505 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
13507 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13509 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
13510 initializers for struct pentry_state.
13511 (__argp_error): Check return value of __asprintf
13512 (__argp_failure): Translate error message
13514 * lib/argp-parse.c: Removed braces around the expansion of N_()
13516 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
13518 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
13519 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
13520 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
13521 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
13522 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
13523 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
13524 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
13525 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
13526 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
13527 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
13528 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
13529 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
13530 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
13531 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
13532 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
13533 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
13534 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
13535 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
13536 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
13537 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
13538 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
13539 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
13540 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
13541 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
13542 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
13543 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
13544 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
13545 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
13546 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
13547 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
13548 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
13549 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
13550 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
13551 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
13552 xstrtol.m4, xstrtoumax.m4, yesno.m4:
13553 Use an all-permissive copyright notice, recommended by RMS.
13555 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
13557 * modules/chdir-long (Depends-on): Remove mempcpy.
13559 2005-01-21 Jim Meyering <jim@meyering.net>
13561 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
13562 same value as for Solaris 9.
13564 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
13565 component length. This included changing the parameter to be
13566 of type `char *' rather than `char const *'.
13567 * lib/chdir-long.h (chdir_long): Update prototype.
13569 * lib/openat.c (fdopendir, fstatat): New functions.
13570 * lib/openat.h: Include headers required for use of DIR and struct
13572 [AT_SYMLINK_NOFOLLOW]: Define.
13573 (fdopendir, fstatat): Add prototypes.
13575 2005-01-21 Bruno Haible <bruno@clisp.org>
13577 * modules/classpath: New file.
13578 * MODULES.html.sh (Java): Add classpath.
13580 2005-01-21 Bruno Haible <bruno@clisp.org>
13582 * lib/classpath.h: New file, from GNU gettext.
13583 * lib/classpath.c: New file, from GNU gettext.
13585 2005-01-20 Simon Josefsson <jas@extundo.com>
13587 * modules/version-etc-fsf: New file.
13589 2005-01-20 Simon Josefsson <jas@extundo.com>
13591 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
13592 * lib/version-etc.c: Remove version_etc_copyright.
13593 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
13594 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
13596 2005-01-20 Simon Josefsson <jas@extundo.com>
13598 * lib/base64.h (isbase64): Add.
13600 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
13601 using a unsigned prototype, don't inline.
13602 (base64_decode): Use it.
13604 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
13606 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
13609 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
13611 * lib/save-cwd.c (save_cwd): Remove code to support the case
13612 where fchdir is missing or flaky.
13614 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
13616 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
13618 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
13620 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
13621 AC_LIBSOURCES now does this.
13622 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
13623 with new ullong_max module.
13625 2005-01-19 Bruno Haible <bruno@clisp.org>
13627 * modules/sh-quote: New file.
13628 * MODULES.html.sh (Executing programs): Add sh-quote.
13630 2005-01-19 Bruno Haible <bruno@clisp.org>
13632 * lib/sh-quote.h: New file, from GNU gettext.
13633 * lib/sh-quote.c: New file, from GNU gettext.
13635 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
13637 Merge from coreutils.
13638 * m4/ullong_max.m4: New file.
13639 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
13640 (gl_MACROS): Assume localeconv exists.
13642 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
13644 Merge changes from coreutils, as described below in several
13645 changelogs dated today.
13647 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
13648 (O_DIRECTORY): Remove; not needed here, since "." must be
13649 a directory. All uses removed.
13650 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
13651 universal on Suns, and we also need to test for IRIX.
13652 Revamp code to use 'if' rather than '#if'.
13653 Avoid unnecessary comparison of cwd->desc to 0.
13655 * lib/utimens.c (futimens): Robustify the previous patch, by checking
13656 for known valid error numbers rather than observed invalid ones.
13658 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
13660 * modules/ullong_max: New file.
13662 * modules/chdir-long, modules/openat: New files.
13663 * modules/save-cwd (Depends-on): Depend on chdir-long.
13664 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
13666 2005-01-18 Jim Meyering <jim@meyering.net>
13668 Merge from coreutils.
13669 * m4/chdir-long.m4, m4/openat.m4: New files.
13670 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
13671 save-cwd.h. Add AC_LIBOBJ for save-cwd.
13672 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
13673 is sane and DOES follow symlinks. Besides, testing 20 different
13674 systems found no broken chown implementations.
13675 Prompted by a change in rsync's copy of this macro.
13676 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
13678 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
13680 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
13681 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
13682 NULL-means-set-to-current-time semantics.
13683 Remove temporary file immediately, rather than waiting
13684 for configure's at-exit trap code to do it.
13686 2005-01-18 Jim Meyering <jim@meyering.net>
13688 * lib/version-etc.c (version_etc_copyright): Update copyright date.
13690 * lib/utimens.c (futimens): Account for the fact that futimes
13691 can also fail with errno == ENOSYS or errno == ENOENT.
13692 Patch from Dmitry V. Levin.
13694 Change the name of the robust chdir function from chdir to chdir_long.
13695 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
13696 (restore_cwd): Use chdir_long, not chdir.
13697 * lib/chdir-long.c: Renamed from chdir.c.
13698 * lib/chdir-long.h: Renamed from chdir.h.
13699 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
13702 2005-01-18 Bruno Haible <bruno@clisp.org>
13704 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
13705 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
13706 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
13707 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
13708 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
13709 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
13710 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
13711 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
13712 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
13713 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
13714 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
13715 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
13716 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
13717 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
13718 Use an all-permissive copyright notice, recommended by RMS.
13720 2005-01-18 Bob Proulx <bob@proulx.com>
13722 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
13723 simplify offsetof() macro construct to avoid compile failure with
13724 native HP-UX 11.0 ANSI C compiler.
13726 2005-01-17 Bruno Haible <bruno@clisp.org>
13728 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
13729 redundant because stpncpy.m4 takes care of it.
13731 2005-01-17 Bruno Haible <bruno@clisp.org>
13733 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
13735 2005-01-17 Bruno Haible <bruno@clisp.org>
13737 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
13740 2005-01-17 Bruno Haible <bruno@clisp.org>
13742 * lib/fwriteerror.h (fwriteerror): Change specification to include
13744 * lib/fwriteerror.c: Include <stdbool.h>.
13745 (fwriteerror): At the end, close the file stream. Record whether
13746 stdout was already closed.
13748 2005-01-17 Bruno Haible <bruno@clisp.org>
13750 * lib/execute.c (environ): Declare if needed.
13751 * lib/pipe.c (environ): Likewise.
13752 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
13754 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13756 * modules/argp: Depend on vsnprintf
13758 2005-01-10 Jim Meyering <jim@meyering.net>
13760 * modules/closeout (Depends-on): Add atexit.
13762 2005-01-06 Bruno Haible <bruno@clisp.org>
13764 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
13766 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
13768 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
13769 definitions to be after all include files, to avoid collisions.
13770 Problem reported by Bob Proulx.
13772 2005-01-04 Jim Meyering <jim@meyering.net>
13774 Changes imported from coreutils.
13775 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
13776 as the mkstemp template, use a temporary directory and an
13777 8.3-friendly template to avoid trouble on systems like DJGPP.
13778 Reported by Juan M. Guerrero via Stepan Kasal.
13779 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
13780 close. Remove the temporary directory right away, rather than waiting
13781 for configure's at-exit trap code to do it.
13782 Suggestion from Stepan Kasal.
13784 2005-01-01 Simon Josefsson <jas@extundo.com>
13786 * gnulib-tool: Print #include directives when --import'ing.
13788 2004-12-28 Simon Josefsson <jas@extundo.com>
13790 * tests/test-base64.c: Include required header files. Remove
13793 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
13795 * modules/error (Depends-on): Remove gettext.
13797 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
13799 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
13800 not needed. This removes a dependency on the gettext module.
13801 [defined _LIBC]: Do not include <libintl.h>; not needed.
13803 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
13805 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
13806 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
13808 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
13810 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
13813 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
13815 * modules/getdate (Depends-on): Remove alloca-opt.
13817 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
13819 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
13821 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
13823 * lib/argp-parse.c: Include <stddef.h>.
13824 (alignof, alignto): New macros.
13825 (parser_init): Don't assume that void * is aligned sufficiently
13828 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
13829 need to extend the stack.
13830 (YYINITDEPTH): New macro, so that the initial stack isn't overly
13833 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
13835 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
13837 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
13839 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
13840 (2004-10-24) change. Apparently this was a false alarm.
13842 * modules/getdate: Depend on alloca-opt, not alloca.
13844 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
13846 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
13847 Remove now-obsolete comment about AIX.
13848 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
13849 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
13850 (YYMAXDEPTH): New macro.
13852 2004-12-18 Simon Josefsson <jas@extundo.com>
13854 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
13856 2004-12-18 Bruno Haible <bruno@clisp.org>
13858 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
13860 2004-12-18 Bruno Haible <bruno@clisp.org>
13862 * lib/fatal-signal.c (fatal_signals): Make non-const.
13863 (init_fatal_signals): New function.
13864 (uninstall_handlers, install_handlers): Ignore signals that were set to
13866 (at_fatal_signal): Call init_fatal_signals.
13867 (init_fatal_signal_set): Likewise. Ignore signals that were set to
13869 Reported by Paul Eggert.
13871 2004-12-18 Bruno Haible <bruno@clisp.org>
13873 * doc/alloca.texi: New file.
13874 * doc/alloca-opt.texi: New file.
13876 2004-12-17 Jim Meyering <jim@meyering.net>
13878 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
13879 Otherwise, install-sh could exit with improper exit status when
13880 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
13882 2004-12-16 Simon Josefsson <jas@extundo.com>
13884 * tests/test-base64.c: Add license.
13886 2004-12-15 Stepan Kasal <address@hidden>
13888 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
13890 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
13892 * modules/getcwd (Files): Add m4/d-ino.m4.
13893 Suggested by Mark D. Baushke.
13895 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
13897 * lib/getdate.y (textint): New member "negative".
13898 (time_zone_hhmm): New function.
13899 Expect 14 shift-reduce conflicts, not 13.
13900 (o_colon_minutes): New rule.
13901 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
13902 (yylex): Set the "negative" member of signed numbers.
13904 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
13906 * doc/getdate.texi (Time of day items, Time zone items):
13907 Describe new formats +00:00, UTC+00:00.
13909 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
13911 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
13912 spurious "-l"s. Problem reported by Stepan Kasal.
13914 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
13916 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
13917 in Autoconf 2.59. Problem reported by Mark D. Baushke.
13919 2004-12-04 Simon Josefsson <jas@extundo.com>
13921 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
13922 Vandoorselaere <yoann@prelude-ids.org>.
13924 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
13926 Changes imported from coreutils.
13927 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
13929 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
13931 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
13933 Changes imported from coreutils.
13934 * lib/hard-locale.c: Assume <locale.h> exists.
13935 Include "strdup.h".
13936 (GLIBC_VERSION): New macro.
13937 (hard_locale): Assume setlocale exists.
13938 Rewrite to avoid #ifdef.
13939 Use strdup rather than malloc + strcpy.
13940 * lib/human.c: Assume <locale.h> exists.
13941 (human_readable): Assume localeconv exists.
13943 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
13945 * modules/hard-locale (Depends-on): Add strdup.
13947 2004-12-01 Jakub Jelinek <jakub@redhat.com>
13949 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
13950 convert T2, not T. (Imported from libc.)
13952 2004-11-30 Simon Josefsson <jas@extundo.com>
13954 * modules/restrict (License): Change to LGPL.
13956 2004-11-30 Simon Josefsson <jas@extundo.com>
13958 * m4/restrict.m4: Add copyright and copying conditions.
13960 2004-11-30 Simon Josefsson <jas@extundo.com>
13962 * m4/base64.m4: New file.
13964 2004-11-30 Simon Josefsson <jas@extundo.com>
13966 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
13969 * tests/test-base64.c: New file.
13971 * modules/base64: New file.
13973 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
13975 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13976 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
13978 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
13980 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
13982 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
13983 (__getcwd.c): Don't restore errno; glibc doesn't.
13984 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
13985 first, falling back to our code only if its results look suspicious.
13986 Ensure that the resulting buffer is only as large as necessary.
13988 * lib/readutmp.c: Include readutmp.h first.
13989 Include <errno.h>, since readutmp.h no longer does that.
13990 * lib/readutmp.h: Don't include <errno.h>,
13991 <sys/param.h>, <time.h>; not needed to establish interface.
13992 (errno): Remove decl.
13993 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
13994 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
13995 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
13997 2004-11-28 Simon Josefsson <jas@extundo.com>
13999 * lib/base64.h, base64.c: New file.
14001 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
14003 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14005 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
14007 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14008 (Depends-on): Remove pathmax, same. Add mempcpy.
14009 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14010 (Makefile.am): Append getcwd.h to lib_SOURCES.
14011 (Include): Add getcwd.h.
14012 (Maintainer): Change from Jim Meyering to "all, glibc",
14013 since getdate now uses intended-for-glibc code.
14014 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14015 (Depends-on): Depend on getcwd. Do not depend on pathmax.
14017 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
14019 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14020 HP's ANSI C compiler.
14021 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14022 Declaring int functions causes warnings on some modern systems and
14023 shouldn't be needed to compile on ancient ones.
14024 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14027 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14028 with the following changes.
14029 (__set_errno): Parenthesize properly.
14030 Include <stdbool.h>.
14031 (MIN, MAX, MATCHING_INO): New macros.
14032 (__getcwd): Define with prototype, not K&R form.
14033 Use heuristics to allocate default buffer on stack if possible.
14034 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14035 behavior, and to avoid the PATH_MAX limit when computing
14037 Use MATCHING_INO to compare inode number to file.
14038 Check for arithmetic overflow in size calculations.
14039 Fix bug in reallocation of dot array that caused getcwd to fail
14040 on directories nested deeper than 75.
14041 Be more careful about saving errno on error.
14042 Do not use realloc; use only free+malloc, as this is a bit
14043 more flexible and avoids a needless copy operation.
14044 Do not inspect st_dev and st_ino for symbolic links; POSIX
14045 doesn't specify the latter.
14046 Check for closedir errors.
14047 Avoid needless casts.
14048 Use "#ifdef weak_alias" around weak_alias, to be like other
14050 The following changes to getcwd.c have effect only when used in
14051 gnulib; they have no effect inside glibc proper.
14052 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14053 as alloca isn't used.
14054 (alloca, __alloca): Likewise.
14055 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14056 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14057 unconditionally, as gnulib assumes C89 or better.
14058 Do not include <sys/param.h>.
14059 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14060 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14062 (NULL) [!defined NULL]: Remove; we assume C89 or better.
14063 Include <dirent.h> in a way that is compatible with modern Autoconf.
14064 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14065 New macros, if not already defined.
14066 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14067 Use "_LIBC", not "defined _LIBC", for consistency.
14068 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14070 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14071 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
14072 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14073 credit only to Jim Meyering and adjust the copyright dates.
14074 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14075 <stdlib.h>, <unistd.h>, "pathmax.h".
14076 Instead, include "xgetcwd.h" (first) and "getcwd.h".
14077 (INITIAL_BUFFER_SIZE): Remove.
14078 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14080 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
14082 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
14083 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
14084 Use the _ONCE methods, for efficiency.
14085 Check for fcntl.h. In test program, include <errno.h>
14086 and <fcntl.h> if available. Remove old K&R cruft from
14087 test program. Check for common errors in GNU/Linux,
14088 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
14089 don't do AC_LIBOBJ, as that's getcwd.m4's job.
14090 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
14091 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
14093 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
14094 accommodate new getcwd.c.
14095 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
14096 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
14097 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
14098 that's all we need now.
14100 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14102 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
14103 argp-parse.c depends on getopt internals, that means we should
14104 always use our getopt, to be on the safe side.
14105 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
14106 order not to spoil the result of an eventual previous invocation
14107 of gl_GETOPT_SUBSTITUTE.
14109 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14111 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
14112 redefinition warnings. To avoid them, include the defines
14113 in `#if !defined __need_getopt ... #endif'. The only place
14114 where __getopt_argv_const is used is in definitions
14115 of getopt_long and getopt_long_only below, which are as well
14116 protected by `#ifndef __need_getopt'.
14117 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
14118 __need_getopt after including <stdio.h> and <unistd.h> These
14119 headers might have defined it.
14121 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
14123 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
14125 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
14127 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
14128 (futimens): New function, which uses futimes if available.
14129 (futimens, utimens): Support timespec==NULL, with same semantics
14130 as utime and utimens.
14131 * lib/utimens.h (futimens): New decl.
14133 2004-11-23 Jim Meyering <jim@meyering.net>
14135 * lib/getopt_.h: Remove trailing blanks.
14137 2004-11-23 Jim Meyering <jim@meyering.net>
14139 * lib/__fpending.c: Add comment.
14141 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
14143 * modules/canonicalize (Depends-on): Add xreadlink.
14144 Problem reported by James Youngman.
14146 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
14148 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
14150 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
14151 optopt): Use them instead of invoking ## directly; otherwise, the
14152 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
14154 2004-11-19 Bruno Haible <bruno@clisp.org>
14156 * lib/strtok_r.c: Move comments from here...
14157 * lib/strtok_r.h: ... to here.
14159 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
14161 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
14162 implementations that mishandle size_t overflow.
14164 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
14166 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
14167 might fail. Problem reported by Yoann Vandoorselaere.
14168 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
14169 implementations that mishandle size_t overflow.
14171 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14173 * modules/canon-host (Depends-on): Add strdup.
14175 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14177 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
14179 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14181 * lib/canon-host.c: Include "strdup.h".
14182 (canon_host): Use getaddrinfo if available, so that IPv6 works.
14183 Use strdup instead of malloc/strcpy to duplicate strings.
14185 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
14186 (human_space_before_unit): New constant.
14187 * lib/human.c (human_readable): Support it.
14189 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
14190 (xgetcwd): Set errno correctly when failing.
14191 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
14192 the failure is actually due to a PATH_MAX problem.
14194 Further getopt changes to make it more likely that glibc will
14195 buy the changes back.
14196 * lib/getopt.c (POSIXLY_CORRECT): New constant.
14197 (getopt): Use it, so to preserve glibc semantic
14198 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
14199 when compiling for libc.
14200 * lib/getopt_.h (__getopt_argv_const): Bring it back.
14201 (getopt_long, getopt_long_only): Use it.
14203 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14204 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
14205 (getopt): Argv is now char * const *, as per standard.
14206 (_getopt_internal_r, _getopt_internal): Argv is now char **,
14207 not char *__getopt_argv_const *.
14208 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14209 _getopt_long_only_r): Likewise.
14210 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
14211 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14212 _getopt_long_r, _getopt_long_only_r): Likewise.
14213 * lib/getopt_.h (__getopt_argv_const): Remove.
14214 (getopt): Argv is now char * const *, as per standard.
14216 * lib/getdate.y (tORDINAL): New token.
14217 (day, relunit): Allow it for relative times.
14218 (relative_time_table): Use tORDINAL for ordinals.
14220 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
14222 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
14223 Document that "second" isn't allowed as an ordinal number.
14225 2004-11-16 Jim Meyering <jim@meyering.net>
14227 * modules/closeout (Depends-on): Add fpending.
14229 2004-11-15 Jim Meyering <jim@meyering.net>
14231 * lib/closeout.c: Include "__fpending.h" once again.
14232 Include <stdbool.h>.
14233 (close_stdout): Don't fail just because stdout was closed initially,
14234 since some programs don't write to stdout in the normal course of
14235 operation (other than --version and --help), and we don't want this
14236 function to make e.g. `touch file >&-' fail.
14237 But do fail if it was closed and someone has tried to write to it.
14238 E.g., `printf foo >&-' must fail.
14240 2004-11-13 Jim Meyering <jim@meyering.net>
14242 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
14244 2004-11-12 Simon Josefsson <jas@extundo.com>
14246 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
14247 small doc fix is still pending.
14249 2004-11-11 Simon Josefsson <jas@extundo.com>
14251 * modules/strtok_r: New file.
14253 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14256 2004-11-11 Simon Josefsson <jas@extundo.com>
14258 * m4/strtok_r.m4: New file.
14260 * m4/getopt.m4: Replace opterr.
14262 2004-11-11 Simon Josefsson <jas@extundo.com>
14264 * lib/strtok_r.h, strtok_r.c: New file.
14266 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
14268 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
14269 of replacing opterr, getopt, etc. This should handle the
14270 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
14272 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
14274 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
14275 we can stop lying to compilers about the constness of argv when we
14276 are compiled outside glibc.
14277 (getopt, getopt_long, getopt_long_only): Use it.
14278 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
14279 _getopt_internal, getopt): Likewise.
14280 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
14281 _getopt_long_only_r): Likewise.
14282 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
14283 _getopt_long_r, _getopt_long_only_r): Likewise.
14285 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
14286 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
14287 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
14288 the other external symbols.
14289 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
14290 declaration, since the above renaming now works around collisions.
14292 2004-11-11 Jim Meyering <jim@meyering.net>
14294 * lib/linebreak.c: Remove trailing blanks.
14295 * lib/alloca_.h: Likewise.
14296 * lib/acosl.c: Likewise.
14297 * lib/euidaccess.c: Likewise.
14298 * lib/allocsa.h: Likewise.
14300 2004-11-10 Simon Josefsson <jas@extundo.com>
14302 * m4/getaddrinfo.m4: New file.
14304 2004-11-10 Simon Josefsson <jas@extundo.com>
14306 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
14308 2004-11-10 Simon Josefsson <jas@extundo.com>
14310 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14313 * modules/getaddrinfo: New file.
14315 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
14317 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
14319 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
14321 * lib/mktime.c (SHR): New macro, which is a portable
14322 substitute for >> that should work even on Crays.
14323 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
14324 Problem reported by Mark D. Baushke in
14325 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
14326 * lib/getdate.y (SHR): Likewise.
14328 * lib/strftime.c (SHR): Likewise.
14330 * lib/quotearg.c (struct quoting_options): Use unsigned int for
14331 quote_these_too, so that right shifts are well defined. All uses
14334 2004-11-10 Jim Meyering <jim@meyering.net>
14336 Ensure that no close failure goes unreported.
14337 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
14338 return early when it seems there's nothing to flush.
14339 Don't include __fpending.h.
14341 2004-11-10 Jim Meyering <jim@meyering.net>
14343 * modules/closeout (Depends-on): Remove fpending.
14345 2004-11-10 Jim Meyering <jim@meyering.net>
14347 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
14349 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
14351 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
14353 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
14354 and AC_REQUIRE when possible, to avoid duplicate checks.
14355 Check for <wchar.h>.
14357 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
14359 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
14361 2004-11-09 Bruno Haible <bruno@clisp.org>
14363 * m4/sockpfaf.m4: New file.
14365 2004-11-05 Bruno Haible <bruno@clisp.org>
14367 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
14368 Reported by Mark D. Baushke <mdb@cvshome.org>.
14370 2004-11-04 Bruno Haible <bruno@clisp.org>
14372 2004-09-11 Bruno Haible <bruno@clisp.org>
14373 * allocsa.valgrind: New file.
14374 2004-02-06 Bruno Haible <bruno@clisp.org>
14375 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
14376 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
14377 Reported by Christopher Seip <chris.seip@hp.com>.
14379 2004-11-04 Bruno Haible <bruno@clisp.org>
14381 * modules/allocsa (Files): Add lib/allocsa.valgrind.
14382 (Makefile.am): Distribute it.
14384 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
14386 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
14387 with errno == ERANGE if the buffer is too small.
14388 Problem reported by Mark D. Baushke.
14390 2004-11-03 Albert Chin <china@thewrittenword.com>
14391 Paul Eggert <eggert@cs.ucla.edu>
14393 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
14394 equivalent, substitute $ac_type for equivalent type rather than
14395 blindly using uint32_t *always* which won't work if uint32_t is not
14396 available. Define _UINT32_T to work around typedef of uint32_t if
14397 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
14400 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
14402 * m4/jm-macros.m4: Sync from coreutils.
14403 (gl_MACROS): Check for mbrlen, for pathchk.
14404 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
14406 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
14408 * lib/xreadlink.c (MAXSIZE): New macro.
14409 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
14410 size does not exceed MAXSIZE. Avoid cast.
14411 As suggested by Mark D. Baushke in
14412 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
14413 if readlink fails with buffer size just under MAXSIZE, try again
14416 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
14418 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
14420 2004-11-02 Derek R. Price <derek@ximbiot.com>
14421 and Paul Eggert <eggert@cs.ucla.edu>
14423 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
14424 (get_date): Overparenthesize to avoid GCC warning.
14426 2004-11-02 Bruno Haible <bruno@clisp.org>
14428 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
14431 2004-11-02 Bruno Haible <bruno@clisp.org>
14433 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
14434 function returns void.
14436 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
14438 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
14439 fflush_unlocked, flockfile, funlockfile, funlockfile,
14440 fputs_unlocked, putc_unlocked.
14442 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
14444 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
14445 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
14448 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
14450 * modules/getdate (Files): Add doc/getdate.texi.
14451 (Depends-on): Add setenv, xalloc.
14453 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
14455 * lib/getdate.y: Add support for TZ="foo" within a date string.
14456 Fix some bugs near time_t boundaries. Reject dates with
14457 out-of-range components, e.g., "Sept 31".
14458 Include <stdlib.h>, "setenv.h", "xalloc.h".
14459 (ISDIGIT_LOCALE): Remove; unused.
14460 Note that the TZ and time functions used here are not reentrant.
14461 (mktime_ok, get_tz): New functions.
14462 (TZBUFSIZE): New constant.
14463 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
14464 This requires that we sometimes generate our own TZ="XXX..." setting.
14466 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
14468 * doc/getdate.texi: New file, from coreutils with modifications for
14469 the new TZ parsing.
14471 2004-10-27 Derek R. Price <derek@ximbiot.com>
14473 * lib/mktime.c (not_equal_tm): Remove redundant check.
14475 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
14477 * modules/regex (lib_SOURCES): Add regex.c.
14478 Reported by James Youngman in
14479 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
14481 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
14483 * lib/getdate.y: Use Bison 1.875 features, and some minor
14484 code cleanups. This change does not affect semantics.
14485 Don't include <stdlib.h>; no longer needed.
14486 Don't include unlocked-io.h; only the "#if TEST" code uses
14487 stdio, and performance isn't crucial there.
14488 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
14489 Bison 1.875 features as described below.
14490 All uses of "PC." replaced by "pc->".
14491 (YYSTYPE): Add a forward declaration.
14492 (yylex, yyerror): Use full prototypes in forward decls.
14493 Use "%pure-parser" rather than obsolescent "%pure_parser".
14494 Use %parse-param and %lex-param instead of obsolescent
14495 YYPARSE_PARAM and YYLEX_PARAM.
14496 (meridian_table, month_and_day_table, time_units_table,
14497 relative_time_table, time_zone_table, military_table,
14498 lookup_zone, lookup_word, get_date):
14499 Use NULL instead of 0 where appropriate.
14500 (to_hour): Avoid abort (), to avoid a dependency on
14502 (yyerror, yylex): Now accepts parser_control * arg.
14503 (main) [TEST]: Use '\0' rather than 0 for char.
14505 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
14507 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
14509 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
14511 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
14512 It's now the caller's responsibility to handle the case where
14513 !HAVE_GETPAGESIZE && !defined getpagesize.
14515 * lib/mktime.c (leapyear): Arg is long int, not int.
14517 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
14519 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
14521 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
14523 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
14524 missing. Problem reported by James Youngman.
14526 2004-10-16 Simon Josefsson <jas@extundo.com>
14528 * gnulib-tool: Fix comments. Fix parse problem.
14529 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
14531 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
14533 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
14534 implementation of getopt_long. Problem reported by Alexander Taler in:
14535 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
14537 2004-10-15 Bruno Haible <bruno@clisp.org>
14539 * gnulib-tool: Untabify. Initialize supplied_libname.
14540 (func_usage): More homogenous output.
14541 (func_modules_transitive_closure, func_modules_to_filelist,
14542 func_emit_lib_Makefile_am): New functions.
14543 (func_import): New function, extracted from big case statement. Use
14544 func_get_license, func_modules_transitive_closure,
14545 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
14546 opt_lgpl. Don't use test -a, as it's not portable.
14547 (func_create_testdir): Use func_modules_transitive_closure,
14548 func_modules_to_filelist, func_emit_lib_Makefile_am.
14550 2004-10-15 Bruno Haible <bruno@clisp.org>
14552 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
14554 2004-10-15 Bruno Haible <bruno@clisp.org>
14556 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
14557 the portions belonging to each module.
14558 Suggested by Derek Robert Price <derek@ximbiot.com>.
14560 2004-10-12 Simon Josefsson <jas@extundo.com>
14562 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
14563 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
14566 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
14568 * modules/vsnprintf: New file.
14570 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
14572 * m4/vsnprintf.m4: New file.
14574 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
14576 * lib/vsnprintf.h: New file.
14577 * lib/vsnprintf.c: New file.
14579 2004-10-11 Bruno Haible <bruno@clisp.org>
14581 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
14584 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
14586 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
14588 2004-10-07 Bruno Haible <bruno@clisp.org>
14590 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
14591 fits into the provided buffer.
14593 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
14595 * lib/diacrit.c, diacrit.h: Add GPL notice.
14597 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
14599 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
14600 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
14601 This avoids a potential constant-folding bug.
14603 2004-10-05 Bruno Haible <bruno@clisp.org>
14605 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
14606 for the declaration of strsep.
14608 2004-10-05 Bruno Haible <bruno@clisp.org>
14610 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
14612 2004-10-04 Simon Josefsson <jas@extundo.com>
14614 * modules/memmem: New file.
14615 * tests/test-memmem.c: New file.
14616 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
14618 2004-10-04 Simon Josefsson <jas@extundo.com>
14620 * m4/memmem.m4: New file.
14622 2004-10-04 Simon Josefsson <jas@extundo.com>
14624 * lib/memmem.h: New file.
14625 * lib/memmem.c: New file, taken from glibc.
14627 2004-10-04 Simon Josefsson <jas@extundo.com>
14629 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
14630 '#ifdef USE_UNLOCKED_IO'.
14632 2004-10-04 Simon Josefsson <jas@extundo.com>
14634 * config/srclist.txt: Add memmem from glibc.
14636 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
14638 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
14640 * modules/argmatch, modules/argp, modules/closeout, modules/error,
14641 modules/exclude, modules/getdate, modules/getline,
14642 modules/getndelim2, modules/getpass, modules/getpass-gnu,
14643 modules/getusershell, modules/linebuffer, modules/md5,
14644 modules/mountlist, modules/posixtm, modules/readtokens,
14645 modules/readutmp, modules/regex, modules/sha1,
14646 modules/version-etc, modules/yesno:
14647 Remove dependency on unlocked-io.
14649 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
14651 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
14653 * m4/unlocked-io.m4: Add copyright notice.
14654 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
14656 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
14658 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
14659 * lib/xmalloc.c (xmemdup): Likewise.
14660 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
14661 XFREE): Remove these long-obsolescent macros.
14662 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
14663 * lib/xstrdup.c: Remove.
14665 * lib/regex.c (re_comp): Cast gettext return value to char *,
14666 Problem reported by Martin Neitzel via Mark D. Baushke.
14668 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
14670 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
14671 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
14672 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
14673 regex.c, sha1.c, version-etc.c, yesno.c:
14674 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
14675 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
14676 the includer's responsibility.
14678 Sync from coreutils.
14680 * lib/modechange.c (mode_compile): Don't decrement a pointer that
14681 points to the start of a string, as the C Standard says the
14682 resulting behavior is undefined.
14684 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
14685 simple -> simple_backups, numbered_existing ->
14686 numbered_existing_backups, numbered -> numbered_backups
14687 to avoid shadowing problems. All uses changed.
14688 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
14689 * lib/backupfile.c (check_extension, numbered_backup):
14690 Rename locals to avoid shadowing 'basename'.
14691 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
14694 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
14695 * lib/.cvsignore: Add getopt.h.
14697 2004-10-04 Bruno Haible <bruno@clisp.org>
14699 * modules/README: New file.
14700 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
14703 2004-10-02 Jim Meyering <jim@meyering.net>
14705 * lib/dirfd.h, getpagesize.h: Add copyright notice.
14707 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
14709 * modules/strsep: New file.
14711 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
14713 * m4/strsep.m4: New file.
14715 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
14717 * lib/strsep.h: New file.
14718 * lib/strsep.c: New file.
14720 2004-10-01 Simon Josefsson <jas@extundo.com>
14722 * lib/snprintf.c (snprintf): Handle size==0.
14724 2004-10-01 Simon Josefsson <jas@extundo.com>
14725 Bruno Haible <bruno@clisp.org>
14727 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
14728 (snprintf): Declare 'args'.
14730 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
14732 * lib/snprintf.c: Remove comments as to why each header is needed.
14734 2004-10-01 Bruno Haible <bruno@clisp.org>
14736 * MODULES.html.sh: Add strsep.
14738 2004-09-30 Simon Josefsson <jas@extundo.com>
14740 * modules/snprintf: New file.
14742 2004-09-30 Simon Josefsson <jas@extundo.com>
14744 * m4/snprintf.m4: New file.
14746 2004-09-30 Simon Josefsson <jas@extundo.com>
14748 * lib/snprintf.h, lib/snprintf.c: New files.
14750 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14752 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
14753 (hol_entry_help): Never translate an empty string.
14754 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
14755 * lib/argp.h (OPTION_NO_TRANS): New option.
14757 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
14759 * modules/argp (Maintainer): Replace Simon Josefsson
14760 by Sergey Poznyakoff.
14762 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
14764 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
14765 changes merged back into glibc.
14767 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
14769 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
14771 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
14773 * lib/xvasprintf.c: Include xalloc.h.
14774 (xvasprintf): Use xalloc_die, not xmalloc_die.
14776 2004-09-29 Bruno Haible <bruno@clisp.org>
14778 * modules/alloca-opt: New file, derived from modules/alloca.
14779 * modules/allocsa: Depend on alloca-opt instead of alloca.
14780 * modules/setenv: Likewise.
14781 * modules/vasnprintf: Likewise.
14782 * MODULES.html.sh: Add alloca-opt.
14784 2004-09-28 Simon Josefsson <jas@extundo.com>
14786 * gnulib-tool: New parameter --lgpl, to asseert that modules are
14787 LGPL, and to replace license template from GPL to LGPL.
14789 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
14791 * modules/dummy: Change license to LGPL.
14793 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
14795 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
14797 2004-09-24 Simon Josefsson <jas@extundo.com>
14799 * modules/minmax (License): Change from GPL to LGPL.
14801 2004-09-23 Simon Josefsson <jas@extundo.com>
14803 * gnulib-tool (--import): Typo.
14805 2004-09-23 Simon Josefsson <jas@extundo.com>
14807 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
14809 2004-09-22 Bruno Haible <bruno@clisp.org>
14811 * modules/*: Add 'License' field.
14812 * gnulib-tool: Accept --extract-license option.
14813 (func_get_license): New function.
14815 2004-09-21 Bruno Haible <bruno@clisp.org>
14817 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
14818 Reported by Simon Josefsson.
14820 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
14822 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
14823 gl_AC_TYPE_LONG_LONG.
14825 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
14827 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
14829 2004-09-18 Simon Josefsson <jas@extundo.com>
14830 and Paul Eggert <eggert@cs.ucla.edu>
14832 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
14833 calls with autoreconf. Define GL_LIB.
14835 2004-09-14 Karl Berry <karl@gnu.org>
14837 * config/srclist.txt: unsync setenv.c, sigh.
14839 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
14841 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
14842 Problem reported by Bruno Haible in:
14843 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
14845 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
14847 * config/srclist.txt: Comment out argp-pvh.c.
14849 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
14851 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
14852 in case some system header has #define'd it. Problem reported by
14853 Soeren D. Schulze in
14854 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
14856 2004-09-09 Karl Berry <karl@gnu.org>
14858 * regex.[ch]: delete from the root. These were supposed to be
14859 synced with emacs cvs, but this has not happened for about
14860 a year, and anyway nothing else uses emacs regex.[ch].
14861 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
14862 lib/regex[.ch] is untouched.
14864 2004-09-09 Bruno Haible <bruno@clisp.org>
14866 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
14868 2004-09-09 Bruno Haible <bruno@clisp.org>
14870 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
14872 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
14874 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
14876 * modules/xvasprintf: New file.
14877 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
14879 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
14881 * lib/xvasprintf.h: New file.
14882 * lib/xvasprintf.c: New file.
14883 * lib/xasprintf.c: New file.
14885 2004-09-08 Bruno Haible <bruno@clisp.org>
14887 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
14889 2004-09-08 Bruno Haible <bruno@clisp.org>
14891 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
14892 length is > INT_MAX.
14893 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
14896 2004-09-08 Bruno Haible <bruno@clisp.org>
14898 * lib/stdint_.h: New file, taken from GNU clisp.
14900 2004-09-08 Bruno Haible <bruno@clisp.org>
14901 Oskar Liljeblad <oskar@osk.mine.nu>
14903 * modules/stdint: New file.
14904 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
14906 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
14908 Import from coreutils.
14909 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
14910 strings on unbounded length. alloca's performance benefits aren't
14911 that important here.
14912 (V_STRDUP): Remove.
14913 (parse_with_separator): New function, with most of the internals
14914 of the old parse_user_spec. Allow user to omit both user and group,
14915 for compatibility with FreeBSD.
14916 Clone only the user name, not the entire spec.
14917 Do not set *uid, *gid unless entirely successful.
14918 Avoid memory leak in some failing cases.
14919 Fix regression for USER.GROUP reported by Dmitry V. Levin in
14920 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
14921 (parse_user_spec): Rewrite to use parse_with_separator.
14923 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
14925 * modules/userspec: Don't depend on alloca.
14927 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
14929 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
14931 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
14933 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
14934 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
14935 utimecmp, utimens, xnanosleep. Rename sha to sha1.
14937 2004-08-16 Simon Josefsson <jas@extundo.com>
14939 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
14940 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
14941 Add --dry-run for --import.
14942 Let user provided command line parameters override configure.ac
14945 2004-08-12 Simon Josefsson <jas@extundo.com>
14947 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
14948 as discussed with Paul Eggert in threads rooted at
14949 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
14951 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
14952 Before, the test was empty, and relied on ELIDE_CODE in source
14954 (gl_PREREQ_GETOPT): New macro.
14955 (gl_GETOPT): Use them.
14957 2004-08-12 Simon Josefsson <jas@extundo.com>
14959 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
14960 * lib/getopt_.h: Renamed from getopt.h.
14962 2004-08-12 Simon Josefsson <jas@extundo.com>
14964 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
14965 Change default library name from libfoo to libgnu.
14966 Now, if you have a configure.ac that says:
14969 gl_MODULES(error getopt etcetera)
14971 you can import all you need by running:
14972 ../gnulib/gnulib-tool --import
14974 * modules/getopt (Files): Rename getopt.h to getopt_.h.
14975 (Makefile.am): Rewrite, use logic from argz.
14976 (Include): Use <getopt.h> instead of "getopt.h".
14978 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
14980 * modules/argp (Files): Add m4/unlocked-io.m4.
14981 (Depends-on): Add extensions.
14983 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
14985 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
14986 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
14987 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
14988 Check for program_invocation_name, program_invocation_short_name,
14989 flockfile, funlockfile, features.h, _getopt_long_only_r.
14991 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
14993 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
14994 its complicated substitute.
14995 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
14996 and program_invocation_name.
14997 (__argp_basename) [!_LIBC]: Remove; the only use was
14998 replaced by its body.
14999 (__argp_short_program_name): Change condition from
15000 !defined __argp_short_program_name to
15001 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15002 to match argp-namefrob.h.
15003 (__argp_failure): Don't assume strerror_r returns char *.
15004 * lib/argp-parse.c (N_): Define unconditionally.
15005 (argp_default_options): Fill out initializers with 0 to avoid
15008 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
15010 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15013 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
15015 Merge from coreutils.
15017 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15019 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15020 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15022 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
15024 Merge from coreutils.
15026 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15027 wmemchr or wmemcpy. Problem reported by Robert Dahlem
15028 for Reliant Unix 5.43.
15030 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15031 (union fooround): Use uintmax_t, not long int.
15032 The rest is a merge from libc:
15033 [defined _LIBC]: Include <shlib-compat.h>.
15034 (_obstack) [defined _LIBC]: Remove after 2.3.4.
15036 * lib/settime.c (settime): Recode to avoid warning with
15039 * lib/strverscmp.c: Convert to UTF-8.
15041 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
15043 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15046 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15048 * modules/xalloc-die: New file.
15049 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15051 * modules/md5 (Files): Add m4/uint32_t.m4.
15052 * modules/sha1: Renamed from modules/sha.
15054 Rename lib/sha.h to lib/sha1.h.
15055 Rename lib/sha.c to lib/sha1.c.
15056 Rename m4/sha.m4 to m4/sha1.m4.
15057 (lib_SOURCES): Likewise.
15058 (configure.ac): Rename gl_SHA to gl_SHA1.
15059 (Include): sha.h -> sha1.h.
15061 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15063 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15064 * m4/sha1.m4: Renamed from sha.m4.
15065 (gl_SHA1): Renamed from gl_SHA. All uses changed.
15067 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
15069 * lib/obstack.h (obstack_empty_p):
15070 Don't assume that chunk->contents is suitably aligned.
15071 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15072 Likewise. Problem reported by Benno in
15073 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15075 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15076 readable. This could be improved further but it'd take some work.
15078 2004-08-08 Simon Josefsson <jas@extundo.com>
15080 * modules/xgethostname (Depends-on): Remove exit and error (not
15083 * modules/getpass-gnu: Add getpass.h.
15084 (Depends-on): Add stdbool.
15085 * modules/getpass: Add getpass.h.
15087 2004-08-08 Simon Josefsson <jas@extundo.com>
15089 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
15090 Check getpass declaration.
15092 2004-08-08 Simon Josefsson <jas@extundo.com>
15094 * lib/xgethostname.c: Don't include error.h (not used).
15096 * lib/getpass.h: Add.
15097 * lib/getpass.c: Include getpass.h first.
15099 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
15101 * lib/xalloc-die.c: New file.
15102 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
15104 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
15105 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
15107 (_, N_, xalloc_die): Move to xalloc-die.c.
15108 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
15109 so that we needn't mess with xalloc_msg_memory_exhausted.
15111 * lib/sha1.h: Renamed from sha.h.
15112 (SHA1_H): Renamed from _SHA_H.
15113 (sha1_ctx): Renamed from sha_ctx.
15114 (sha1_init_ctx): Renamed from sha_init_ctx.
15115 (sha1_process_block): Renamed from sha_process_block.
15116 (sha1_process_bytes): Renamed from sha_process_bytes.
15117 (sha1_finish_ctx): Renamed from sha_finish_ctx.
15118 (sha1_read_ctx): Renamed from sha_read_ctx.
15119 (sha1_stream): Renamed from sha_stream.
15120 (sha1_buffer): Renamed from sha_buffer.
15121 * lib/sha1.c: Likewise; renamed from sha.c.
15122 Do not include <sys/types.h>.
15123 Include <stddef.h> rather than <stdlib.h>.
15125 2004-08-08 Bruno Haible <bruno@clisp.org>
15127 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
15128 FILESYSTEM_PREFIX_LEN.
15129 * lib/progreloc.c: Likewise.
15130 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
15132 2004-08-06 Simon Josefsson <jas@extundo.com>
15134 * modules/progname (Depends-on): Don't depend on stdbool.
15136 2004-08-06 Simon Josefsson <jas@extundo.com>
15138 * modules/getsubopt: New file.
15139 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15142 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
15144 More merge from coreutils.
15146 * m4/utimens.m4, m4/utimecmp.m4: New files.
15147 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
15148 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
15149 prereq.m4, sha.m4: Import changes from coreutils.
15151 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
15153 More merge from coreutils.
15154 * modules/raise, modules/readtokens0, modules/utimens:
15155 * modules/utimecmp, module/xnanosleep: New files.
15156 * modules/strftime: Add lib/strftime.h.
15157 Change include from <time.h> to "strftime.h".
15158 * modules/yesno: Add lib/yesno.h.
15159 * modules/backupfile: Remove lib/addext.c.
15160 * modules/euidaccess: Add stat-macros.h.
15161 * modules/canonicalize, modules/euidaccess,
15162 modules/filemode, modules/lchown, modules/makepath,
15163 modules/rmdir, modules/stat: Likewise.
15165 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
15168 * lib/argp-help.c (make_hol, hol_append): Don't assume that
15169 SIZE_MAX is a valid preprocessor constant.
15170 (__argp_basename): Change from "#ifndef _LIBC"
15171 to "#ifndef __argp_short_program_name", so that
15172 we don't compile these functions for tar.
15174 More merges from coreutils.
15175 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
15176 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
15177 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
15178 * lib/addext.c: Remove; no longer needed.
15179 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
15180 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
15181 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
15182 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
15183 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
15184 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
15185 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
15186 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
15187 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
15188 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
15189 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
15190 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
15191 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
15192 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
15193 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
15194 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
15195 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
15196 Import changes from coreutils.
15198 2004-08-05 Simon Josefsson <jas@extundo.com>
15200 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
15202 2004-08-05 Simon Josefsson <jas@extundo.com>
15204 * m4/getsubopt.m4: New file.
15206 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
15208 Merge from coreutils.
15210 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
15211 * m4/getcwd-path-max.m4: New files.
15213 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
15214 FILESYSTEM_PREFIX_LEN ->
15215 FILE_SYSTEM_PREFIX_LEN.
15216 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
15217 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
15218 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
15219 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
15221 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
15222 prerequisite modules now handle the DOS stuff.
15223 Don't check for unistd.h.
15225 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
15227 Merge from coreutils.
15229 * lib/.gdb-history: Remove; this doesn't belong here.
15231 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
15232 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
15233 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
15234 * lib/getcwd.c: New files.
15236 * lib/dirname.h: Include <stdbool.h>.
15237 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
15238 for consistency with POSIX terminology. All uses changed.
15239 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
15240 (strip_trailing_slashes): Use bool for booleans.
15241 * lib/stripslash.c (strip_trailing_slashes): Likewise.
15243 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
15244 sometimes returns a positive errno value even when it succeeds.
15245 (print_errno_message) [!LIBC]: Fall back on strerror if
15246 __strerror_r fails.
15248 * lib/path-concat.c (mempcpy): Don't define if a system header defines
15249 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
15250 (longest_relative_suffix): New function.
15251 (path_concat): Use it. Assume first argument is not NULL.
15252 Port to DOS. Omit redundant separators.
15253 Report an error instead of returning NULL.
15254 Use mempcpy instead of memcpy.
15255 (xpath_concat): Remove: not declared or used.
15257 * lib/same.h: Include <stdbool.h>
15258 (same_name): Return bool, not int.
15259 * lib/same.c (same_name): Likewise.
15260 (errno): Don't declare; we assume C89 or better now.
15262 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
15263 if not already defined.
15265 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
15266 * lib/dup-safer.c (errno): Likewise.
15268 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
15270 Merge from coreutils.
15271 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
15272 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
15273 * modules/path-concat: Don't depend on strdup.
15275 2004-08-03 Simon Josefsson <jas@extundo.com>
15277 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
15278 * lib/progname.h: Don't include stdbool.h.
15280 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
15282 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
15283 * MODULES.html.sh (func_all_modules): Remove fatal.
15285 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
15287 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
15289 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
15291 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
15294 2004-08-02 Simon Josefsson <jas@extundo.com>
15296 * lib/getsubopt.h: New file, with comments from Bruno Haible.
15297 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
15298 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
15300 2004-08-01 Simon Josefsson <jas@extundo.com>
15302 * lib/xgetdomainname.c: Include stdlib.h, for free().
15304 2004-07-19 Bruno Haible <bruno@clisp.org>
15306 * MODULES.html.sh (func_all_modules): Add dummy.
15308 2004-07-16 Simon Josefsson <jas@extundo.com>
15310 * modules/dummy: New file.
15312 2004-07-16 Simon Josefsson <jas@extundo.com>
15314 * lib/dummy.c: New file.
15316 2004-07-16 Bruno Haible <bruno@clisp.org>
15318 * lib/backupfile.h: Add extern "C" for C++.
15319 * lib/closeout.h: Likewise.
15320 * lib/copy-file.h: Likewise.
15321 * lib/findprog.h: Likewise.
15322 * lib/full-write.h: Likewise.
15323 * lib/pathname.h: Likewise.
15324 * lib/progname.h: Likewise.
15325 * lib/stpcpy.h: Likewise.
15326 * lib/stpncpy.h: Likewise.
15327 * lib/strcase.h: Likewise.
15328 * lib/strstr.h: Likewise.
15329 * lib/xalloc.h: Likewise.
15331 * lib/mbswidth.h: Add extern "C" for C++.
15332 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
15334 2004-07-13 Robert Millan <robertmh@gnu.org>
15336 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
15338 2004-07-09 Simon Josefsson <jas@extundo.com>
15340 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
15341 failed without this.)
15343 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
15345 * modules/chown (Files): Add lib/fchown-stub.c, since
15346 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
15348 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
15350 * lib/fchown-stub.c: New file.
15352 2004-06-24 Jim Meyering <jim@meyering.net>
15354 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
15356 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
15358 * modules/argz: Omit "#include".
15360 * MODULES.html.sh (func_all_modules): Add calloc, to match
15361 2004-06-01 addition of calloc module.
15363 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
15365 * m4/argz.m4: New file, which is autoupdated from libtool.
15367 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
15369 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
15372 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
15374 * config/srclist-update: Don't insist on "USA." before the
15375 close-comment, as libtool omits the period and puts the */ on a
15377 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
15378 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
15380 2004-06-22 Gary V. Vaughan <gary@gnu.org>
15382 * modules/argz: New file.
15383 * MODULES.html.sh (func_all_modules): Add argz.
15385 2004-06-12 Jim Meyering <jim@meyering.net>
15386 and Paul Eggert <eggert@cs.ucla.edu>
15388 * modules/hash (Files): Add lib/xalloc.h.
15389 * modules/pipe (Depends-on): Add wait-process.
15390 * modules/stat (Depends-on): Add xalloc.
15391 * modules/userspec (Files): Add lib/userspec.h.
15394 Upgrade from gettext-0.13.
15395 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
15396 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
15397 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
15399 2004-06-10 Jim Meyering <jim@meyering.net>
15401 * lib/calloc.c: New file.
15403 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
15405 * lib/getdate.y (yylex): Allow space between sign and number.
15406 Problem reported by Dan Jacobson.
15408 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
15410 Merge from coreutils CVS.
15412 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
15413 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
15414 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
15415 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
15416 xstrtol.m4: Fix copyright date and/or serial number.
15418 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
15419 See if we need an fchown replacement.
15420 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
15421 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
15422 and use the replacement function if we detect either defect.
15424 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
15427 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
15428 and Jim Meyering <jim@meyering.net>
15430 Merge from coreutils CVS.
15432 * lib/stat-macros.h: New file, with contents from file-type.h
15433 and coreutils' system.h.
15434 * lib/file-type.c: Include "stat-macros.h".
15435 * lib/file-type.h (file_type): Move all macro definitions to new file,
15438 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
15439 Wrap old code with this conditional.
15440 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
15441 function that does not dereference symlinks.
15442 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
15444 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
15445 dependency problems.
15446 (xreadlink): Accept new arg SIZE, for efficiency.
15447 All decls and uses changed.
15448 * lib/xreadlink.h: Include <stddef.h>, for size_t.
15450 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
15451 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
15453 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
15456 2004-06-01 Jim Meyering <jim@meyering.net>
15458 * m4/calloc.m4: New file.
15460 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
15462 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
15463 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
15464 Also, fix a typo in a diagnostic.
15466 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
15468 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
15469 or AC_FUNC_REALLOC.
15471 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
15473 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
15474 macros to be defined.
15475 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
15476 the allocator returns NULL because the requested size is zero.
15478 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
15480 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
15481 var. Add comment explaining why libc still defines it. This
15482 merges the following patch from glibc:
15483 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
15485 2004-05-20 Andreas Schwab <schwab@suse.de>
15487 * m4/free.m4: Replace free if it not known to work, not the other
15490 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
15492 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
15493 present in glibc since revision 1.1 of this file.
15494 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
15495 obstack_alignment_mask, obstack_alloc, obstack_base,
15496 obstack_blank, obstack_blank_fast, obstack_chunk_size,
15497 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
15498 obstack_grow0, obstack_init, obstack_int_grow,
15499 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
15500 obstack_next_free, obstack_object_size, obstack_ptr_grow,
15501 obstack_ptr_grow_fast, obstack_room): Remove declarations of
15502 nonexistent functions.
15504 2004-05-18 Karl Berry <karl@gnu.org>
15506 * config/srclist.txt: break link for vasnprintf.c.
15508 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
15510 Port obstack to the AS/400, where pointers are 16 bytes wide and
15511 you cannot cast an integer to a valid pointer. This patch is
15512 currently waiting to be integrated into glibc; see
15513 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
15515 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
15516 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
15517 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
15518 (struct obstack): temp member is now a union of a pointer and
15519 an integer, instead of an integer. All integer uses changed.
15520 This does not affect the physical layout of struct obstack,
15521 except on hosts (like the AS/400) where the size or alignment of
15522 void * is greater than that of ptrdiff_t.
15523 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
15524 __STDC__)]: Store temporary in pointer member of union, not
15526 * lib/obstack.c: Include <stddef.h>, for offsetof.
15527 (struct fooalign): Remove; it doesn't need a name.
15528 (union fooround): Change double to long double, and add void *.
15529 (DEFAULT_ALIGNMENT): Use offsetof to compute.
15530 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
15531 not a macro. Hence the values are always int; so remove all
15532 casts-to-int in uses.
15534 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
15536 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
15537 we can get this patch merged into glibc.
15539 2004-05-17 Derek R. Price <derek@ximbiot.com>
15540 Paul Eggert <eggert@cs.ucla.edu>
15542 * m4/argp: Depend on alloca.
15544 2004-05-17 Derek R. Price <derek@ximbiot.com>
15545 Paul Eggert <eggert@cs.ucla.edu>
15547 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
15550 2004-05-17 Bruno Haible <bruno@clisp.org>
15552 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
15553 precision that consists of a '.' followed by an empty digit string.
15554 Patch by Tor Lillqvist <tml@iki.fi>.
15556 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
15558 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
15559 for backward compatibility with older code. We need our own
15560 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
15561 it under some other name, and our alloca.h will define it.
15563 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
15564 Derek Price <derek@ximbiot.com>
15566 * lib/alloca.c: Include <alloca.h>, to get our interface.
15567 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
15568 include <alloca.h> first. Use C89 prototype for alloca; this
15569 requires including <stddef.h> for size_t. Use extern "C" if C++.
15570 Use #elif for simplicity, since we can assume C89 now.
15571 Don't try to source the system alloca.h since it will not be found
15572 and to prevent recursively including its replacement.
15573 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
15574 * lib/regex.c: Likewise.
15576 2004-05-16 Derek Price <derek@ximbiot.com>
15577 Paul Eggert <eggert@cs.ucla.edu>
15579 getline cleanup. This changes the getndelim2 API: both order of
15580 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
15583 * lib/getline.c: Don't include stddef.h or stdio.h, since our
15584 interface does that.
15585 (getline): Always use getdelim, so that we don't have two
15586 copies of this code.
15587 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
15589 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
15590 (GETNDELIM2_MAXIMUM): New macro.
15591 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
15592 instead of the old practice of delim2==0. All callers changed.
15593 Return -1 on overflow, instead of returning junk.
15594 Do not set *linesize unless allocation succeeds.
15595 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
15596 that we include sys/types.h.
15597 * lib/getnline.h: Likewise.
15598 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
15599 (getndelim2): Reorder arguments.
15600 * lib/getnline.c (getnline, getndelim):
15601 Don't discard the NMAX argument.
15602 (getnline): Invoke getndelim, to avoid code duplication.
15603 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
15604 of (size_t) -1 by callers of the getnline family.
15606 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
15608 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
15609 Check for gettimeofday.
15610 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
15611 Check for settimeofday, stime.
15613 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
15615 * lib/nanosleep.c (suspended): Change its type from int to
15616 sig_atomic_t volatile.
15617 (first_call): Make it private to rpl_nanosleep, and have it
15618 be zero initially as that's a bit faster.
15619 (my_usleep): Round up fractional times instead of truncating them,
15620 as this is the usual meaning for 'sleep'.
15622 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
15624 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
15625 (ENOSYS): Define if not defined.
15626 (settime): Fall back on stime if it exists and settimeofday fails.
15627 But don't bother with fallbacks if a method fails with errno == EPERM.
15629 2004-05-11 Jim Meyering <jim@meyering.net>
15631 Prior to this change, the save_cwd caller required read access to the
15632 current directory on most systems (ones with the fchdir function).
15634 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
15635 fails, try write-only, and finally, resort to using xgetcwd.
15637 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
15639 * lib/obstack.c, obstack.h: Import changes from libc.
15641 2004-04-28 Bruno Haible <bruno@clisp.org>
15643 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
15644 also implicitly appends .exe to executables.
15645 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
15646 accepts Windows pathnames.
15647 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15648 Treat Cygwin like Windows, since it now accepts Windows pathnames.
15649 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
15650 Treat Cygwin like Windows, since it now accepts Windows pathnames.
15651 Reported by Derek Robert Price <derek@ximbiot.com>.
15653 2004-04-21 Karl Berry <karl@gnu.org>
15655 * config/srclist.txt (localcharset.c): break sync.
15657 2004-04-20 Paul Eggert <eggert@twinsun.com>
15659 * m4/host-os.m4: Add a copyright notice.
15661 2004-04-20 Jim Meyering <jim@meyering.net>
15663 Change UTILS_ to gl_ in AC_DEFINE'd names.
15664 Change utils_- and jm_-prefixed variables, too.
15665 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
15666 UTILS_FUNC_MKDIR_TRAILING_SLASH.
15667 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
15669 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
15670 Don't emit trailing blanks.
15671 Also rename jm_-prefixed variables to have gl_ prefix.
15673 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
15674 Also rename jm_-prefixed variables to have gl_ prefix.
15676 * m4/jm-macros.m4: Reflect the renamings.
15677 * m4/prereq.m4: Likewise.
15679 2004-04-20 Jim Meyering <jim@meyering.net>
15681 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
15684 2004-04-20 Jim Meyering <jim@meyering.net>
15685 Bruno Haible <bruno@clisp.org>
15687 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
15688 memory when realloc fails.
15690 2004-04-19 Jim Meyering <jim@meyering.net>
15692 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
15693 now that readutmp.c may call `free (0)'.
15695 2004-04-19 Bruno Haible <bruno@clisp.org>
15697 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
15698 * m4/inttypes_h.m4: Likewise.
15699 * m4/stdint_h.m4: Likewise.
15700 * m4/intmax_t.m4: Likewise.
15701 * m4/uintmax_t.m4: Likewise.
15703 2004-04-18 Jim Meyering <jim@meyering.net>
15705 * m4/prereq.m4: Don't forbid jm_ prefix.
15707 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
15708 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
15709 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
15710 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
15711 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
15712 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
15713 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
15714 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
15715 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
15716 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
15717 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
15718 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
15719 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
15720 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
15721 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
15722 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
15723 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
15724 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
15725 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
15727 2004-04-18 Jim Meyering <jim@meyering.net>
15729 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
15730 failure, don't leak memory and do call END_UTMP_ENT.
15732 2004-04-16 Jim Meyering <jim@meyering.net>
15734 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
15735 coreutils' stat program.
15736 (gl_PREREQ): Don't require jm_PREREQ_STAT.
15738 2004-04-11 Paul Eggert <eggert@twinsun.com>
15740 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
15742 (CHAR_BIT): Remove, since we assume C89.
15743 Include <stdint.h> if available, as per current Autoconf CVS advice.
15745 2004-03-31 Jim Meyering <jim@meyering.net>
15747 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
15748 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
15749 * m4/xalloc.m4: Likewise.
15751 2004-03-30 Paul Eggert <eggert@twinsun.com>
15753 Merge from coreutils.
15755 * m4/inttostr.m4: New file.
15756 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
15757 Require AM_STDBOOL_H and gl_TIMESPEC instead.
15758 Require gl_CLOCK_TIME.
15759 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
15761 2004-03-30 Paul Eggert <eggert@twinsun.com>
15763 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
15764 not bool, to be more consistent with Unix conventions.
15765 Suggested by Bruno Haible.
15767 Merge from coreutils.
15769 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
15770 * lib/umaxtostr.c: New files.
15772 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
15773 the usual <time.h> dance.
15774 (get_date): Change signature to support fractional time stamps.
15775 All callers changed.
15776 * lib/getdate.y: Include "getdate.h" first, as we can now
15777 assume C89 and don't need to worry about 'const'.
15778 Similarly, include "unlocked-io.h" near start, not in middle.
15779 Include <limits.h>.
15780 (textint.value): Use long int rather than int.
15781 (textint.digits): Use size_t rather than int.
15782 (BILLION, LOG10_BILLION): New constants.
15783 (parser_control): New member rel_ns. Members day_ordinal,
15784 time_zone, month, day, hour, minutes, rel_year, rel_month,
15785 rel_day, rel_hour, rel_minutes, rel_seconds
15786 are now long int, not int. Member seconds is now struct timespec,
15787 not int. New member timespec_seen. Members dates_seen, days_seen,
15788 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
15790 (%union.intval): Now long int, not int.
15791 New member timespec.
15792 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
15793 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
15794 (spec): Now is a timespec or an item list.
15795 (timespec, items): New nonterminals.
15796 (time, rel, relunit, number, get_date):
15797 Add support for fractional seconds.
15798 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
15799 (gmtime, localtime, mktime): Remove decls; not needed with C89.
15800 (to_hour): First arg is now long int, not int.
15801 (to_year): Returns long int, not int.
15802 Don't treat year -70 like 70.
15803 (tm_diff): Returns long int, not int.
15804 (lookup_word): Use bool instead of int when appropriate.
15805 (yylex): Use size_t for count, not int.
15806 Detect overflow when parsing large integer constants.
15807 Add support for fractions.
15808 (get_date): Make pointers 'const' if possible.
15809 Use more-portable code to detect integer overflow.
15810 (main) [TEST]: Adjust to above changes. Test for localtime failure.
15811 Don't use ctime; it's not reliable if the year has >4 digits.
15813 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
15814 This is for compatibility with BSD.
15816 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
15817 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
15818 From coreutils' system.h.
15820 * lib/userspec.c: Don't include "posixver.h".
15821 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
15822 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
15823 compatible extension. Simplify code by removing a boolean int
15824 that was always nonzero if a string was nonnull.
15826 2004-03-30 Jim Meyering <jim@meyering.net>
15828 Merge from coreutils.
15830 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
15831 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
15832 on some systems one must include <grp.h> before it.
15833 Reported by Christian Krackowizer.
15835 2004-03-30 Jim Meyering <jim@meyering.net>
15837 Merge from coreutils.
15839 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
15841 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
15842 an empty input stream.
15844 * lib/readtokens.c: Include <stdbool.h>.
15845 (readtoken): Use `size_t' rather than int/long.
15846 All callers adjusted.
15847 Use `bool' rather than `int' where appropriate.
15848 Use memset rather than an explicit loop.
15849 Use x2nrealloc rather than xrealloc.
15850 Allow the use of `\0' as a delimiter.
15851 (readtokens): Likewise.
15852 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
15854 2004-03-30 Jim Meyering <jim@meyering.net>
15856 * m4/realloc.m4: Remove file, since now it does no more than
15857 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
15858 the `configure.ac' section of module/realloc.
15859 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
15861 2004-03-30 Bruno Haible <bruno@clisp.org>
15863 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
15866 2004-03-29 Paul Eggert <eggert@twinsun.com>
15868 Merge changes to getloadavg.c from coreutils and Emacs.
15870 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
15871 Define to an expression, not to the empty string.
15872 Include cloexec.h and xalloc.h.
15873 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
15874 Use set_cloexec_flag rather than rolling our own.
15875 * lib/cloexec.c, lib/cloexec.h: New files.
15877 2004-03-29 Paul Eggert <eggert@twinsun.com>
15879 * m4/cloexec.m4: New file.
15881 2004-03-18 Paul Eggert <eggert@twinsun.com>
15883 * lib/getopt.h: Sync with libc CVS.
15885 2004-03-18 Paul Eggert <eggert@twinsun.com>
15886 Bruno Haible <bruno@clisp.org>
15888 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
15891 2004-03-18 Paul Eggert <eggert@twinsun.com>
15892 Bruno Haible <bruno@clisp.org>
15894 * lib/mbswidth.h: Include <wchar.h> only if
15895 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
15897 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
15899 2004-03-09 Paul Eggert <eggert@twinsun.com>
15901 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
15902 Sync with libc CVS.
15903 * lib/getopt_int.h: New file, also synced from libc.
15905 2004-03-09 Paul Eggert <eggert@twinsun.com>
15907 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
15908 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
15909 Bring back getopt.c, getopt.h, getopt1.c.
15911 2004-03-07 Paul Eggert <eggert@twinsun.com>
15913 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
15914 All uses changed. Check for sa_sigaction member; this fixes
15915 a bug first reported by Jason Andrade in
15916 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15918 2004-03-07 Paul Eggert <eggert@twinsun.com>
15920 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
15921 '#if' expressions. Unlike the code it replaces, it does not
15922 depend on (defined _SC_PAGESIZE). However, it does depend on
15923 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
15924 first reported by Jason Andrade in
15925 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
15927 2004-02-25 Simon Josefsson <jas@extundo.com>
15929 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
15931 2004-02-25 Simon Josefsson <jas@extundo.com>
15933 * lib/strdup.h: New file.
15934 * lib/strdup.c: Include it.
15935 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
15936 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
15938 2004-02-23 Karl Berry <karl@gnu.org>
15940 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
15941 (from fencepost.gnu.org:/gd/gnuorg).
15943 2004-02-23 Karl Berry <karl@gnu.org>
15945 * config/srclistvars.sh (GNUORG) [karl]: redefine.
15946 * config/srclist.txt: add maintain/standards documents.
15948 2004-02-18 Bruno Haible <bruno@clisp.org>
15950 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
15951 Reported by Derek Robert Price <derek@ximbiot.com>.
15953 2004-02-16 Karl Berry <karl@gnu.org>
15955 * config/mkinstalldirs, install-sh: update from automake.
15957 2004-02-06 Karl Berry <karl@gnu.org>
15959 * m4/po.m4: update from gettext 0.14.1.
15961 2004-02-06 Karl Berry <karl@gnu.org>
15963 * lib/config.charset: update from gettext 0.14.1.
15965 2004-02-05 Paul Eggert <eggert@twinsun.com>
15967 Add comments and code, prompted by suggestions from Bruno Haible
15969 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
15970 describing the enum quoting_style values.
15971 * lib/quotearg.c (quotearg_alloc): New function.
15972 (quotearg_buffer_restyled): Treat lone { and } as special.
15973 Treat = as special. Work around bug with older shells
15974 that "see" a '\' that is really the 2nd byte of a multibyte char.
15975 Quote empty string with shell_quoting_style.
15977 2004-02-03 Bruno Haible <bruno@clisp.org>
15979 * m4/pipe.m4: New file, from GNU gettext.
15981 2004-02-03 Bruno Haible <bruno@clisp.org>
15983 * lib/pipe.h: New file, from GNU gettext.
15984 * lib/pipe.c: New file, from GNU gettext.
15986 2004-01-27 Bruno Haible <bruno@clisp.org>
15988 * m4/execute.m4: New file, from GNU gettext.
15990 2004-01-27 Bruno Haible <bruno@clisp.org>
15992 * lib/execute.h: New file, from GNU gettext.
15993 * lib/execute.c: New file, from GNU gettext.
15994 * lib/w32spawn.h: New file, from GNU gettext.
15996 2004-01-24 Paul Eggert <eggert@twinsun.com>
15998 Merge from diffutils.
16000 * lib/file-type.c (file_type): Add typed memory objects.
16001 * lib/file-type.h (S_TYPEISTMO): New macro.
16003 * lib/c-stack.h (c_stack_action): Remove argv argument.
16004 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
16005 (die): Don't calculate message unless segv_action returns.
16006 (get_stack_location, min_address_from_argv, max_address_from_argv,
16007 volatile stack_base, volatile_stack_size): Remove.
16008 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16009 that every segmentation violation is a stack overflow. (Ouch!)
16010 See Debian bug 136249 (still outstanding) for more info about why
16011 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16013 2004-01-24 Paul Eggert <eggert@twinsun.com>
16015 Exit-status fix from coreutils.
16017 Use exit_failure consistently in place of EXIT_FAILURE,
16018 so that program exit statuses are consistent on failure.
16020 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16021 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16022 * lib/argmatch.h: Comment fix to match the above.
16023 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16024 Now a macro referring to exit_failure, instead of a separate
16025 variable. Include "exitfail.h" to get it.
16026 * lib/xstrtol.h: Include "exitfail.h".
16027 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16029 * lib/long-options.c (parse_long_options): Use prototype
16030 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
16033 2004-01-21 Jim Meyering <jim@meyering.net>
16035 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16036 so as not to conflict with a different-sized __mktime_internal
16037 function in GNU libc.
16038 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16039 Problem building statically-linked `ls' reported by Michael Brunnbauer.
16041 2004-01-20 Karl Berry <karl@gnu.org>
16043 * config/config.guess: update from config.
16045 * config/srclistvars.sh: GNUWWWLICENSES for karl.
16047 2004-01-20 Bruno Haible <bruno@clisp.org>
16049 Safer stack allocation.
16050 * lib/setenv.c: Include allocsa.h.
16051 (alloca): Remove fallback definition.
16052 (freea): Remove macro.
16053 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16056 2004-01-20 Bruno Haible <bruno@clisp.org>
16058 * m4/eealloc.m4: New file, from GNU gettext.
16060 2004-01-20 Bruno Haible <bruno@clisp.org>
16062 * m4/allocsa.m4: New file, from GNU gettext.
16064 2004-01-20 Bruno Haible <bruno@clisp.org>
16066 * lib/xallocsa.h: New file, from GNU gettext.
16067 * lib/xallocsa.c: New file, from GNU gettext.
16069 2004-01-20 Bruno Haible <bruno@clisp.org>
16071 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16073 2004-01-20 Bruno Haible <bruno@clisp.org>
16075 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16076 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16079 2004-01-20 Bruno Haible <bruno@clisp.org>
16081 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
16084 2004-01-20 Bruno Haible <bruno@clisp.org>
16086 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
16088 2004-01-20 Bruno Haible <bruno@clisp.org>
16090 * lib/eealloc.h: New file.
16092 2004-01-20 Bruno Haible <bruno@clisp.org>
16094 * lib/binary-io.h: Avoid warnings on Cygwin.
16096 2004-01-20 Bruno Haible <bruno@clisp.org>
16098 * lib/allocsa.h: New file, from GNU gettext.
16099 * lib/allocsa.c: New file, from GNU gettext.
16101 2004-01-18 Karl Berry <karl@gnu.org>
16103 * doc/gpl.texi, doc/lgpl.texi: new files.
16105 2004-01-18 Karl Berry <karl@gnu.org>
16107 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
16108 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
16110 2004-01-15 Paul Eggert <eggert@twinsun.com>
16112 Merge from coreutils.
16114 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
16115 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
16116 (gl_DEFAULT_POSIX2_VERSION): Move
16117 the documentation from 'configure' into 'config.hin',
16118 so that 'configure --help' isn't burdened by it and
16119 we don't have to worry about its formatting there.
16120 Reword the documentation so that it's more succinct
16121 and can be run together into a single paragraph.
16122 * m4/same.m4 (gl_SAME): Check for pathconf.
16124 2004-01-15 Paul Eggert <eggert@twinsun.com>
16126 Merge from coreutils.
16128 * lib/posixver.c: Include posixver.h.
16130 * lib/same.c: Include <stdbool.h>, <limits.h>.
16131 (_POSIX_NAME_MAX): Define if not defined.
16133 (same_name): If file names are silently truncated, report
16134 that the file names are the same if they are the same after
16135 the silent truncation.
16137 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
16138 conversion function.
16139 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
16140 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
16143 2004-01-15 Jim Meyering <jim@meyering.net>
16145 Merge from coreutils.
16147 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
16148 if no library is required.
16149 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
16150 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
16151 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
16152 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
16153 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
16154 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
16155 value, $ac_cv_search_crypt, if it's "none required".
16156 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
16157 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
16158 not gl_FUNC_GETLOADAVG.
16159 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
16160 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
16162 2004-01-15 Jim Meyering <jim@meyering.net>
16164 Merge from coreutils.
16166 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
16167 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
16168 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
16170 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
16171 optional configure-time default.
16173 * lib/version-etc.c (version_etc_copyright): Update copyright date.
16175 * lib/xreadlink.c (xreadlink): Correct outdated comment.
16177 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
16179 Merge from coreutils.
16181 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
16182 value, $ac_cv_search_nanosleep, if it's "none required".
16184 2004-01-14 Paul Eggert <eggert@twinsun.com>
16186 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
16187 with like-named macro in fnmatch.c.
16188 (EXT): Use an internal constant instead.
16190 Merge fnmatch patches from glibc.
16191 * lib/fnmatch.c (mbsinit): Remove define.
16192 Add libc_hidden_ver (__fnmatch, fnmatch).
16193 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
16194 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
16196 2004-01-14 Karl Berry <karl@gnu.org>
16198 * config/install-sh: update from automake.
16200 2004-01-13 Karl Berry <karl@gnu.org>
16202 * config/install-sh: update from automake.
16204 2004-01-09 Karl Berry <karl@gnu.org>
16206 * config/install-sh: update from automake.
16208 2004-01-05 Karl Berry <karl@gnu.org>
16210 * config/config.{sub,guess}: update from config.
16212 2003-12-31 Karl Berry <karl@gnu.org>
16214 * config/depcomp: update from automake.
16216 2003-12-14 Karl Berry <karl@gnu.org>
16218 * lib/config.charset: update from gettext-runtime.
16220 2003-12-03 Paul Eggert <eggert@twinsun.com>
16222 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
16223 Bug reported by Alfred M. Szmidt.
16225 2003-12-03 Bruno Haible <bruno@clisp.org>
16227 * m4/gettext.m4: Upgrade from gettext-0.13.
16228 * m4/po.m4: Upgrade from gettext-0.13.
16229 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
16230 * m4/intmax.m4: New file, from gettext-0.13.
16231 * m4/printf-posix.m4: New file, from gettext-0.13.
16233 2003-11-29 Karl Berry <karl@gnu.org>
16235 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
16237 2003-11-25 Paul Eggert <eggert@twinsun.com>
16238 Bruno Haible <bruno@clisp.org>
16240 * lib/printf-parse.h: Don't include sys/types.h.
16241 (ARG_NONE): New macro.
16242 (char_directive): Change type of *arg_index fields to size_t.
16243 * lib/printf-parse.c: Don't include sys/types.h.
16244 (SSIZE_MAX): Remove macro.
16245 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
16246 Remove unnecessary overflow check.
16247 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
16250 2003-11-25 Bruno Haible <bruno@clisp.org>
16252 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
16254 2003-11-25 Bruno Haible <bruno@clisp.org>
16256 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
16259 2003-11-24 Paul Eggert <eggert@twinsun.com>
16261 * modules/alloca: Remove dependency on xalloc.
16263 2003-11-24 Paul Eggert <eggert@twinsun.com>
16265 * lib/alloca.c: Remove dependency on xalloc module.
16266 (xalloc_die): Remove.
16267 (memory_full) [!defined emacs]: New macro.
16268 [!defined emacs]: Don't include xalloc.h.
16269 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
16270 address arithmetic overflows. Change datatypes a bit to avoid
16273 2003-11-22 Jim Meyering <jim@meyering.net>
16275 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
16278 2003-11-21 Karl Berry <karl@gnu.org>
16280 * config/config.{sub,guess}: update from config.
16282 2003-11-18 Karl Berry <karl@gnu.org>
16284 * config/config.{sub,guess}: update from config.
16286 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
16288 2003-11-17 Paul Eggert <eggert@twinsun.com>
16290 * README: Mention that S+T cannot overflow if S is the size of
16291 an existing object and T is sufficiently small.
16293 2003-11-17 Jim Meyering <jim@meyering.net>
16295 On systems without utime and without a utimes function capable of
16296 dealing with a NULL struct utimbuf* argument, this utime replacement
16297 could -- in unusual circumstances -- leak a file descriptor.
16298 * lib/utime.c: Include <unistd.h> and <errno.h>.
16299 (utime_null): Be sure to close `fd' and to preserve errno.
16300 Reported by Geoff Collyer via Arnold Robbins.
16302 2003-11-17 Bruno Haible <bruno@clisp.org>
16304 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
16305 (Depends-on): Add xsize.
16307 2003-11-17 Bruno Haible <bruno@clisp.org>
16309 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
16311 2003-11-17 Bruno Haible <bruno@clisp.org>
16313 * lib/vasnprintf.c (alloca): Remove fallback definition.
16314 (freea): Remove definition.
16315 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
16316 Reported by Paul Eggert.
16318 2003-11-16 Paul Eggert <eggert@twinsun.com>
16319 Bruno Haible <bruno@clisp.org>
16321 Protect against address arithmetic overflow.
16322 * lib/printf-args.h: Include stddef.h.
16323 (arguments): Change type of field 'count' to size_t.
16324 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
16325 'unsigned int' where appropriate.
16326 * lib/printf-parse.h: Include sys/types.h.
16327 (char_directive): Change type of *arg_index fields to ssize_t.
16328 (char_directives): Change type of fields 'count', max_*_length to
16330 * lib/printf-parse.c: Include sys/types.h and xsize.h.
16331 (SSIZE_MAX): Define fallback value.
16332 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
16333 instead of 'int' where appropriate. Check a_allocated, d_allocated
16334 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
16335 * lib/vasnprintf.c: Include xsize.h.
16336 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
16337 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
16338 overflow. Avoid wraparound when converting a width or precision from
16341 2003-11-16 Bruno Haible <bruno@clisp.org>
16343 Update from GNU gettext.
16344 * lib/printf-parse.c: Generalize to it can be compiled for wide
16346 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
16347 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
16348 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
16349 SNPRINTF): New macros.
16350 Don't include <alloca.h> if the file is used inside libintl.
16351 (local_wcslen): New function, for Solaris 2.5.1.
16352 (VASNPRINTF): Use it instead of wcslen.
16354 2003-11-16 Bruno Haible <bruno@clisp.org>
16356 * lib/xsize.h (xmax): New function.
16357 (xsum, xsum3, xsum4): Declare as "pure" functions.
16359 2003-11-12 Paul Eggert <eggert@twinsun.com>
16361 * modules/xalloc (Files): Undo latest change, since xalloc.h
16362 no longer needs SIZE_MAX or PTRDIFF_MAX.
16364 2003-11-12 Paul Eggert <eggert@twinsun.com>
16366 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
16369 2003-11-12 Paul Eggert <eggert@twinsun.com>
16371 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
16372 "return", to pacify some unknown compiler. Problem reported
16373 by Joerg Schilling.
16375 2003-11-12 Paul Eggert <eggert@twinsun.com>
16377 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
16378 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
16379 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
16380 heuristic is just as accurate as far as we know, and it removes a
16381 dependency on size_max.m4 and ptrdiff_max.m4.
16383 2003-11-11 Bruno Haible <bruno@clisp.org>
16385 * modules/xsize (Files): Add m4/size_max.m4.
16386 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
16388 2003-11-11 Bruno Haible <bruno@clisp.org>
16390 * m4/size_max.m4: New file.
16391 * m4/ptrdiff_max.m4: New file.
16392 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
16393 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
16394 (gl_XALLOC): Invoke it.
16396 2003-11-11 Bruno Haible <bruno@clisp.org>
16398 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
16399 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
16402 2003-11-10 Paul Eggert <eggert@twinsun.com>
16404 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
16405 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
16406 rejected some allocations of exactly SIZE_MAX - 2 bytes.
16408 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
16409 not (size_t) -1, since it's defined here.
16411 2003-11-09 Karl Berry <karl@gnu.org>
16413 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
16415 2003-11-06 Paul Eggert <eggert@twinsun.com>
16417 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
16418 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
16419 Reject sizes of exactly SIZE_MAX bytes.
16420 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
16421 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
16423 2003-11-05 Bruno Haible <bruno@clisp.org>
16425 * lib/xsize.h: Include limits.h, to avoid a possible collision with
16426 SIZE_MAX defined in <limits.h> on Solaris.
16428 2003-11-04 Jim Meyering <jim@meyering.net>
16430 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
16431 variable names, rather than @VAR@.
16432 * modules/poll: Likewise.
16434 2003-11-04 Bruno Haible <bruno@clisp.org>
16436 * modules/xsize: New file.
16437 * modules/linebreak: Depend on xsize.
16438 * MODULES.html.sh (func_all_modules): Add xsize.
16440 2003-11-04 Bruno Haible <bruno@clisp.org>
16442 * m4/xsize.m4: New file.
16444 2003-11-04 Bruno Haible <bruno@clisp.org>
16446 * lib/xsize.h: New file.
16447 * lib/linebreak.c: Include xsize.h.
16448 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
16449 argument for overflow.
16450 Suggested by Paul Eggert.
16452 2003-11-03 Karl Berry <karl@gnu.org>
16454 * config/config.{guess,sub}: update from config.
16456 2003-11-03 Jim Meyering <jim@meyering.net>
16458 * modules/userspec (lib_SOURCES): Add userspec.h.
16459 (Include): Add "userspec.h".
16460 Improve description.
16462 2003-11-03 Jim Meyering <jim@meyering.net>
16464 * lib/userspec.c: Include "userspec.h".
16465 * lib/userspec.h: New file.
16467 2003-11-03 Bruno Haible <bruno@clisp.org>
16469 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
16471 2003-11-03 Bruno Haible <bruno@clisp.org>
16473 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
16474 available, to avoid (extremely rare) race condition.
16475 Suggested by Paul Eggert.
16477 2003-11-02 Karl Berry <karl@gnu.org>
16479 * config/srclist.txt (vasprintf.c): sync broken, sigh.
16481 2003-10-31 Paul Eggert <eggert@twinsun.com>
16483 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
16484 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
16485 (read_filesystem_list): Set and use me_type_malloced.
16486 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
16487 whatever the type happens to be), for brevity and consistency.
16488 Check for size calculation overflow on Alphas running OSF/1.
16490 2003-10-31 Jim Meyering <jim@meyering.net>
16492 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
16494 * lib/linebuffer.c: Include <string.h> for declaration of memset.
16496 2003-10-30 Paul Eggert <eggert@twinsun.com>
16497 Bruno Haible <bruno@clisp.org>
16499 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
16500 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
16502 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
16504 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
16505 netbsd*-gnu*. Suggested by Robert Millan.
16507 2003-10-29 Paul Eggert <eggert@twinsun.com>
16509 * modules/group-member: Depend on stdbool.
16511 2003-10-29 Paul Eggert <eggert@twinsun.com>
16513 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
16515 2003-10-29 Paul Eggert <eggert@twinsun.com>
16517 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
16518 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
16519 after the 'gnu' in these cases. This fixes some bugs in the
16520 previous change, and is based on suggestions by Robert Millan.
16522 2003-10-29 Paul Eggert <eggert@twinsun.com>
16524 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
16525 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
16527 * lib/quotearg.c (quotearg_n_options): Use it.
16528 * lib/group-member.c: Include <stdbool.h>.
16529 (free_group_info): Arg is now const *; don't free arg.
16530 (get_group_info): Now returns bool and accepts struct group_info *,
16531 rather than returning a malloc'ed struct group_info *.
16532 All uses changed. Check for overflow in internal size calculation.
16534 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
16535 rather than xmalloc/xrealloc.
16536 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
16537 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
16538 conformance bug: the old code used a pointer after freeing the
16539 storage that it addressed.
16540 * lib/hash.c (hash_initialize): Simplify the code by using
16541 xalloc_oversized rather than doing it by hand.
16542 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
16543 the buffer preserved. Use free and xmalloc instead.
16544 * lib/quotearg.c (quotearg_n_options): Likewise.
16545 Use a simpler test for size overflow. Don't use xalloc_oversized
16546 because unsigned int might be wider than size_t (!); this suggests
16547 that we should switch from unsigned int to size_t for slot numbers.
16549 2003-10-28 Paul Eggert <eggert@twinsun.com>
16551 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
16552 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
16553 NetBSD kernels. Requested by Richard Stallman.
16555 2003-10-27 Paul Eggert <eggert@twinsun.com>
16557 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
16558 to allocate the returned structure. Do not allocate a subarray,
16559 as x2nrealloc will do that.
16560 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
16561 instead of xnrealloc.
16562 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
16564 2003-10-27 Bruno Haible <bruno@clisp.org>
16566 * lib/stdbool_.h: Better support for BeOS.
16568 2003-10-26 Paul Eggert <eggert@twinsun.com>
16570 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
16573 2003-10-26 Paul Eggert <eggert@twinsun.com>
16575 * lib/xalloc.h (xalloc_oversized): New static inline function, for
16576 callers that want to do their own size-overflow checking. Include
16577 <stdbool.h>, since xalloc_oversized returns bool.
16578 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
16579 to use xalloc_oversized.
16581 Add two functions x2realloc, x2nrealloc, for programs that grow
16582 arrays dynamically by doubling their sizes.
16583 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
16584 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
16587 Port to C99 semantics for 'inline' of external functions.
16588 Bug reported by Bruno Haible.
16589 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
16590 with the old contents of xnmalloc.
16591 (xnmalloc, xmalloc): Use it.
16592 (xnrealloc_inline): New static inline function,
16593 with the old contents of xnrealloc.
16594 (xnrealloc, xrealloc): Use it.
16596 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
16599 2003-10-26 Karl Berry <karl@gnu.org>
16601 * config/srclist.txt (COPYING.DOC): no longer available from
16602 /gd/gnuorg; don't know where the ultimate source is.
16604 2003-10-25 Paul Eggert <eggert@twinsun.com>
16606 Fix several address-calculation bugs in the hash modules,
16607 plus some minor code cleanup.
16609 * lib/hash.h: Include <stdbool.h>, for bool.
16610 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
16611 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
16612 hash_get_n_entries, hash_get_max_bucket_length,
16613 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
16614 hash_rehash): Use size_t rather than unsigned.
16615 * lib/hash.c (struct hash_table, hash_get_n_buckets,
16616 hash_get_n_buckets_used, hash_get_n_entries,
16617 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
16618 hash_get_entries, hash_do_for_each, hash_string, is_prime,
16619 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
16621 (SIZE_MAX): Define if not defined.
16622 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
16623 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
16625 Use const * when possible.
16626 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
16627 (check_tuning): Fix bug: if tuning parameters were very close to
16628 0 or 1, rounding errors could have caused subscript violations.
16629 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
16630 (hash_initialize): Add 'fail:' label
16631 to free table and return NULL, and use it to simplify code.
16632 Use calloc rather than clearing the storage ourself.
16633 (hash_initialize, hash_rehash): Check for arithmetic overflow in
16634 buffer size calculations.
16635 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
16636 Include <stddef.h>, for size_t.
16637 * lib/hash-pjw.c (hash_pjw): Likewise.
16638 Switch to method described by Bruno Haible.
16639 Include <limits.h>, for CHAR_BIT.
16640 (SIZE_BITS): New macro.
16642 2003-10-23 Paul Eggert <eggert@twinsun.com>
16644 * m4/getline.m4 (AM_FUNC_GETLINE):
16645 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
16646 hosts. Problem reported by Derek Robert Price in
16647 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
16648 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
16649 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
16651 2003-10-21 Paul Eggert <eggert@twinsun.com>
16653 * lib/getndelim2.c (getndelim2): When size calculation overflows,
16654 ceiling the allocation at NMAX bytes rather than silently
16655 discarding input bytes before NMAX is reached. This makes
16656 a difference only if NMAX exceeds SIZE_MAX / 2.
16658 * lib/obstack.c: Merge from glibc.
16659 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
16660 Add libc_hidden_def (_obstack_newchunk).
16661 (_obstack_free) [! defined _LIBC]: Remove.
16662 [defined _LIBC]: Make a strong alias from obstack_free, rather than
16663 a clone of the function body.
16664 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
16665 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
16667 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
16669 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
16672 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
16673 (obstack_ptr_grow_fast, obstack_int_grow_fast):
16674 Don't use lvalue casts, as GCC plans to remove support for them
16675 in GCC 3.5. Reported by Joseph S. Myers. This bug
16676 was also present in the non-GCC version, indicating that this
16677 code had always been buggy and had never been widely used.
16678 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
16679 Use the fast variant of each macro, rather than copying the
16680 definiens of the fast variant; that way, we'll be more likely to
16681 catch future bugs in the fast variants.
16683 2003-10-20 Bruno Haible <bruno@clisp.org>
16685 * modules/wait-process: New file.
16686 * MODULES.html.sh (func_all_modules): Add wait-process.
16688 2003-10-20 Bruno Haible <bruno@clisp.org>
16690 * m4/wait-process.m4: New file.
16692 2003-10-20 Bruno Haible <bruno@clisp.org>
16694 * lib/wait-process.h: New file, from GNU gettext.
16695 * lib/wait-process.c: New file, from GNU gettext.
16697 2003-10-19 Jim Meyering <jim@meyering.net>
16699 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
16702 2003-10-18 Karl Berry <karl@gnu.org>
16704 * config/config.guess: update from config.
16706 2003-10-16 Paul Eggert <eggert@twinsun.com>
16708 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
16709 (getgroups): First arg is int, not size_t.
16710 Don't let 'free' mangle errno.
16712 2003-10-16 Paul Eggert <eggert@twinsun.com>
16714 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
16716 2003-10-16 Karl Berry <karl@gnu.org>
16718 * config/config.{guess,sub}: update from config.
16720 2003-10-16 Jim Meyering <jim@meyering.net>
16722 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
16725 2003-10-15 Paul Eggert <eggert@twinsun.com>
16727 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
16728 (SIZE_MAX): Remove.
16729 (new_exclude, add_exclude_file): Initial size no longer needs to
16731 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
16732 our own address arithmetic overflow checking.
16734 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
16735 (fnmatch): Do not alloca more than 2000 wide characters;
16736 instead, use malloc for large buffers.
16737 Check for address arithmetic overflow, and return -1
16738 with errno set to ENOMEM in that case.
16739 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
16740 (NEW_PATTERN): Do not alloca more than 8000 bytes;
16741 instead, return -1. Check for address arithmetic overflow.
16743 2003-10-14 Paul Eggert <eggert@twinsun.com>
16745 Handle invalid suffixes and overflow independently, so that
16746 callers can treat them independently as needed. Fix some bugs in
16747 suffix handling, e.g., "100k@" was not diagnosed as an invalid
16748 suffix for a human-readable blocksize. The major caller-visible
16749 change is the addition of a new
16750 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
16751 that both overflow and suffix chars were found.
16753 * lib/human.c (humblock): Don't check separately for invalid suffix
16754 char; that is xstrtoumax's job (now that its bug is fixed).
16755 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
16756 INTMAX_MAX]: New macros.
16757 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
16758 TYPE_MAXIMUM): New macros.
16759 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
16760 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
16761 if overflow occurs, as it's what __strtol does and it's more useful
16763 (__xstrtol): If __strtol reports some error other than ERANGE,
16764 reflect it to the caller as LONGINT_INVALID. If it reports
16765 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
16766 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
16767 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
16769 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
16770 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
16771 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
16772 [defined UINTMAX_MAX]: New macros.
16774 2003-10-14 Bruno Haible <bruno@clisp.org>
16776 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
16778 2003-10-14 Bruno Haible <bruno@clisp.org>
16780 * m4/sig_atomic_t: New file, from GNU gettext.
16781 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
16783 2003-10-14 Bruno Haible <bruno@clisp.org>
16785 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
16786 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
16787 Also use volatile where needed.
16789 2003-10-12 Paul Eggert <eggert@twinsun.com>
16791 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
16792 Change maintainer from Bruno Haible to 'all'.
16794 2003-10-12 Paul Eggert <eggert@twinsun.com>
16796 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
16798 2003-10-12 Paul Eggert <eggert@twinsun.com>
16800 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
16801 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
16802 and define in terms of the other primitives.
16803 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
16804 (SIZE_MAX): Define if not already defined.
16805 (array_size_overflow): New function.
16806 (xalloc_die): Abort instead of exiting if 'error' returns.
16807 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
16808 (xmalloc, xrealloc): Use them.
16809 (xcalloc): Check for address arithmetic overflow.
16810 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
16811 a bit faster than strcpy.
16813 2003-10-10 Simon Josefsson <jas@extundo.com>
16815 * modules/argp (Depends-on): Add restrict and strcase.
16817 2003-10-10 Simon Josefsson <jas@extundo.com>
16819 * m4/argp.m4: Add AC_C_INLINE.
16821 2003-10-08 Paul Eggert <eggert@twinsun.com>
16823 Merge getpass from libc, plus a few fixes.
16825 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
16826 Include <stdbool.h>.
16827 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
16828 __fsetlocking to empty.
16829 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
16830 do include <bits/libc-lock.h>.
16831 Do not include <fcntl.h>; not needed.
16832 [_LIBC]: Include <wchar.h>.
16833 (NOTCANCEL_MODE): New macro.
16834 (flockfile, funlockfile) [_LIBC]: New macros.
16835 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
16836 [!_LIBC]: New macros.
16837 (call_fclose): New function.
16838 (getpass): Use it. Save tty stream separately; this simplifies the
16839 code and makes it more reliable if stdin happens to equal stdout.
16840 Invoke __fsetlocking on tty.
16841 Handle thread cancellation if needed.
16842 Namespace cleanup (use __tcgetattr, __getline).
16843 Use bool for Booleans.
16844 [USE_IN_LIBIO]: Handle wide streams.
16845 [!_LIBC]: Unconditionally do the fseek, since we don't know what
16846 stream might go where.
16848 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
16849 doesn't have to include <stdio.h> before us.
16850 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
16851 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
16852 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
16853 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
16854 if not declared, so that we can use getpass.c code from libc without
16856 (flockfile, ftrylockfile, funlockfile): New macros.
16858 2003-10-08 Paul Eggert <eggert@twinsun.com>
16860 * modules/getpass: Depend on stdbool.
16862 2003-10-08 Paul Eggert <eggert@twinsun.com>
16864 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
16866 2003-10-07 Karl Berry <karl@gnu.org>
16868 * config/config.{guess,sub}: update from config.
16870 2003-10-06 Jim Meyering <jim@meyering.net>
16871 Bruno Haible <bruno@clisp.org>
16873 This lets translators provide better translations for the
16874 "Written by ..." part of --version output.
16875 * lib/version-etc.h: Include stdarg.h.
16876 (version_etc_copyright): Declare as readonly.
16877 (version_etc): Make this function variadic with a NULL-terminated list
16878 of author name strings.
16879 (version_etc_va): New declaration.
16880 * lib/version-etc.c: Include stdarg.h, stdlib.h.
16881 (version_etc_copyright): Declare as readonly.
16882 (version_etc_va): New function. Provide a different translatable string
16883 for each possible number of authors < 10. Abbreviate when there are 10
16885 (version_etc): Make this function variadic. Call version_etc_va.
16886 Suggestion from Gary V. Vaughan.
16888 * lib/long-options.h (parse_long_options): Change prototype: the
16889 authors string is moved to the end and becomes variadic.
16890 * lib/long-options.c: Include stdarg.h.
16891 (parse_long_options): Make this function variadic, too.
16892 Call version_etc_va, not version_etc.
16894 2003-10-06 Bruno Haible <bruno@clisp.org>
16896 * modules/version-etc-2: Remove file.
16897 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
16899 2003-10-06 Bruno Haible <bruno@clisp.org>
16901 * modules/fatal-signal: New file.
16902 * MODULES.html.sh (func_all_modules): Add fatal-signal.
16904 2003-10-06 Bruno Haible <bruno@clisp.org>
16906 * m4/fatal-signal.m4: New file.
16907 * m4/signalblocking.m4: New file, from GNU gettext.
16909 2003-10-06 Bruno Haible <bruno@clisp.org>
16911 * lib/version-etc-2.h: Remove file.
16912 * lib/version-etc-2.c: Remove file.
16914 2003-10-06 Bruno Haible <bruno@clisp.org>
16916 * lib/fatal-signal.h: New file, from GNU gettext.
16917 * lib/fatal-signal.c: New file, from GNU gettext.
16919 2003-10-05 Paul Eggert <eggert@twinsun.com>
16921 * README: Rework advice for preventing empty .o files.
16922 Don't recommend ELIDE constructs. Recommend <stddef.h>,
16925 2003-10-04 Karl Berry <karl@gnu.org>
16927 * lib/argp*: update from libc.
16929 2003-10-04 Karl Berry <karl@gnu.org>
16931 * config/config.{guess,sub}: update from config.
16933 2003-10-02 Bruno Haible <bruno@clisp.org>
16935 * modules/lchown (Include): Add lchown.h.
16936 * modules/time_r (Include): Use "..." syntax.
16937 * modules/xgetdomainname (Include): Add xgetdomainname.h.
16939 2003-10-01 Simon Josefsson <jas@extundo.com>
16941 * MODULES.html.sh (func_all_modules): Move gethostname from section
16942 'based on' to section 'lacking' POSIX:2001.
16944 2003-10-01 Larry Jones <lawrence.jones@eds.com>
16946 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
16947 to output mode on the same stream.
16949 2003-09-29 Paul Eggert <eggert@twinsun.com>
16951 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
16952 Fix arg typo in previous patch.
16954 2003-09-28 Jim Meyering <jim@meyering.net>
16956 * lib/error.c: Correct cpp indentation.
16958 2003-09-27 Paul Eggert <eggert@twinsun.com>
16960 * modules/free: New file.
16962 2003-09-27 Paul Eggert <eggert@twinsun.com>
16964 * m4/free.m4: New file.
16966 2003-09-27 Paul Eggert <eggert@twinsun.com>
16968 * lib/minmax.h (MIN, MAX)
16969 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
16970 Omit the special code that used __typeof__, since we worry that
16971 it could be more trouble than it's worth. See:
16972 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
16973 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
16975 * lib/free.c: New file.
16977 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
16979 Trivial fixes to Makefile.am parts of module listings.
16980 * modules/strstr: Append strstr.h to lib_SOURCES.
16981 * modules/strcase: Likewise, for strcase.h.
16983 2003-09-27 Karl Berry <karl@gnu.org>
16985 * config/mkinstalldirs: update from automake.
16987 2003-09-26 Paul Eggert <eggert@twinsun.com>
16989 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
16990 (error_tail): Do not loop, reallocating temporary buffer, since
16991 the output cannot contain more wide characters than the input
16992 contains bytes, the size must be big enough already. This avoids
16993 one potential size overflow calculation. Check for size overflow
16994 when calculating temporary buffer size. Free temporary buffer
16995 when done, if it was allocated with malloc; this plugs a memory
16996 leak. Remove casts from void * to pointers, that are no longer
16997 needed now that we're assuming C89 or better.
16999 Merge error changes from glibc.
17001 * lib/error.c, error.h: Update copyright notice header to match glibc.
17002 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17003 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17004 Disable cancellation while printing error.
17005 * lib/error.h: Prepend __ to parameter names.
17007 2003-09-26 Jim Meyering <jim@meyering.net>
17009 * lib/error.c (error_tail): Move some declarations
17010 into inner scope where the local variables are used.
17012 2003-09-26 Bruno Haible <bruno@clisp.org>
17014 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17016 Don't define stpncpy through config.h; it's now done through stpncpy.h.
17018 2003-09-26 Bruno Haible <bruno@clisp.org>
17020 * lib/stpncpy.h (gnu_stpncpy): New declaration.
17021 (stpncpy): Define as alias for gnu_stpncpy.
17022 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17024 2003-09-25 Simon Josefsson <jas@extundo.com>
17026 * lib/xgetdomainname.h: New file.
17027 * lib/xgetdomainname.c: New file.
17029 2003-09-25 Simon Josefsson <jas@extundo.com>
17030 Bruno Haible <bruno@clisp.org>
17032 * modules/getdomainname: New file.
17033 * modules/xgetdomainname: New file.
17034 * MODULES.html.sh (func_all_modules): Add getdomainname,
17037 2003-09-25 Simon Josefsson <jas@extundo.com>
17038 Bruno Haible <bruno@clisp.org>
17040 * m4/getdomainname.m4: New file.
17042 2003-09-25 Simon Josefsson <jas@extundo.com>
17043 Bruno Haible <bruno@clisp.org>
17045 * lib/getdomainname.h: New file.
17046 * lib/getdomainname.c: New file.
17048 2003-09-25 Karl Berry <karl@gnu.org>
17050 * lib/argp-fmtstream.c, argp-help.c: update from libc.
17052 2003-09-25 Karl Berry <karl@gnu.org>
17054 * config/install-sh: update from automake.
17056 2003-09-25 Bruno Haible <bruno@clisp.org>
17058 * modules/version-etc-2: New file, from modules/version-etc with
17060 * MODULES.html.sh (func_all_modules): Add version-etc-2.
17062 2003-09-25 Bruno Haible <bruno@clisp.org>
17064 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17065 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17067 2003-09-24 Simon Josefsson <jas@extundo.com>
17069 * modules/xgethostname: Add xgethostname.h.
17071 2003-09-24 Paul Eggert <eggert@twinsun.com>
17073 * lib/linebuffer.c (freebuffer): Don't free the argument, just
17074 the buffer associated with the argument. Bug reported by
17077 2003-09-24 Paul Eggert <eggert@twinsun.com>
17079 * README: Document assumptions that 'int' is at least 32 bits
17080 wide, that integer arithmetic is 2's complement without overflow,
17081 that there are no holes in integer values, that adding sizes of
17082 two nonoverlapping objects can't overflow, and that all-bits-zero
17083 yields scalar zero. Fix spelling and capitalization typos.
17085 2003-09-19 Karl Berry <karl@gnu.org>
17087 * lib/argp.h: update from libc.
17089 2003-09-17 Paul Eggert <eggert@twinsun.com>
17091 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
17092 to avoid spurious warnings like "AC_RUN_IFELSE was called before
17093 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
17095 2003-09-17 Paul Eggert <eggert@twinsun.com>
17097 * gnulib-tool: Use "test -h", not "test -L", for portability
17098 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
17099 (tags_regexp): Remove, since \| doesn't conform to POSIX.
17100 (sed_extract_prog): Issue s commands one-by-one, rather than
17101 using \| in one s command.
17103 2003-09-16 Paul Eggert <eggert@twinsun.com>
17105 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
17106 input error, instead of returning NULL the next time we are called
17107 (and therefore losing track of errno).
17109 2003-09-16 Bruno Haible <bruno@clisp.org>
17111 * gnulib-tool (func_create_testdir): Warn about duplicated
17114 2003-09-15 Paul Eggert <eggert@twinsun.com>
17116 * modules/argmatch, modules/fatal, modules/obstack,
17117 modules/xalloc, modules/xgethostname: Sort dependencies by
17118 importance, not alphabetically.
17120 2003-09-15 Paul Eggert <eggert@twinsun.com>
17122 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
17123 fails, so that the caller gets the proper errno.
17125 * lib/readutmp.c (read_utmp): Likewise.
17126 Check for fstat error. Close stream and free storage
17129 2003-09-14 Karl Berry <karl@gnu.org>
17131 * config/srclist.txt (strdup.c): disable for c89 changes.
17133 2003-09-14 Jim Meyering <jim@meyering.net>
17135 * lib/getloadavg.c: Correct cpp indentation.
17136 * lib/strdup.c: Likewise.
17137 * lib/vasnprintf.c: Likewise.
17139 2003-09-14 Bruno Haible <bruno@clisp.org>
17141 * modules/fwriteerror: New file.
17142 * MODULES.html.sh (func_all_modules): Add fwriteerror.
17144 2003-09-14 Bruno Haible <bruno@clisp.org>
17146 * lib/fwriteerror.h: New file.
17147 * lib/fwriteerror.c: New file.
17149 2003-09-12 Paul Eggert <eggert@twinsun.com>
17151 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
17152 modules/xgethostname, modules/xalloc: Depend on exit.
17154 2003-09-12 Paul Eggert <eggert@twinsun.com>
17156 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
17158 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
17159 and AC_MINIX, too, so that their extensions are available.
17161 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
17162 This macro has been superseded by gl_BACKUPFILE.
17164 More patches to assume C89 or better.
17166 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
17168 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
17170 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
17171 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
17172 Include <string.h>, <stdlib.h> unconditionally.
17173 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
17174 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
17175 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
17176 headers or for string.h.
17177 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
17180 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
17182 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
17183 * m4/userspec.m4 (gl_USERSPEC): Likewise.
17184 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
17185 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
17186 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
17187 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
17189 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
17190 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
17191 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
17193 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
17194 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
17195 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
17198 2003-09-12 Paul Eggert <eggert@twinsun.com>
17200 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
17201 * lib/obstack.c [!defined _LIBC]: Likewise.
17202 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
17203 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
17204 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
17206 More changes to assume C89 or better.
17208 * lib/error.c (error_tail): Assume vprintf.
17210 * lib/argmatch.c (getenv): Remove decl.
17211 * lib/progreloc.c (get_full_program_name): Define via prototype.
17212 * lib/setenv.c (clearenv): Likewise.
17213 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
17215 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
17216 (malloc, memcpy): Remove decls.
17217 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
17218 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
17219 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17220 (memcpy): Remove macro.
17221 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
17222 (__P): Remove. All uses removed.
17223 (PTR): Remove. All uses changed to void *.
17224 (CHAR_BIT, NULL): Remove.
17225 (spaces, zeros, memset_space, memset_zero)
17226 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
17228 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
17229 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
17230 Define with prototype.
17231 Remove now-unnecessary prototype decl.
17232 (extra_args_spec): Assume ANSI C. All uses changed.
17233 (extra_args_spec_iso): Remove.
17234 (my_strftime, emacs_strftimeu): Define via prototype.
17235 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
17237 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
17238 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
17239 (strtoul, strtol): Remove decls.
17240 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
17242 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
17243 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
17244 (LOCALE_PARAM_PROTO): New macro.
17245 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
17246 (INTERNAL (strtol), strtol): Define with a prototype.
17247 (PARAMS): Remove. All uses removed.
17248 * lib/tempname.c: Include <string.h> unconditionally.
17249 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
17250 * lib/xgethostname.c (main): Define with a prototype.
17251 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
17252 Include <stdlib.h> unconditionally.
17253 (calloc, malloc, realloc, free): Remove decls.
17254 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
17255 Include <stdlib.h> unconditionally. Sort include file names.
17257 (xstrtod): Define with a prototype.
17258 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
17259 (strtol, strtoul): Remove decls.
17261 2003-09-11 Paul Eggert <eggert@twinsun.com>
17263 More patches to assume C89 or better.
17264 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
17265 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
17266 string.h, memchr, STDC_HEADERS.
17268 2003-09-11 Paul Eggert <eggert@twinsun.com>
17270 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
17271 Include <stdlib.h>, <string.h> unconditionally.
17272 Remove now-unnecessary cast to char *.
17273 * lib/strnlen.c: Include <string.h> unconditionally.
17274 * lib/yesno.c (yesno): Define with a prototype.
17276 2003-09-11 Bruno Haible <bruno@clisp.org>
17278 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
17280 2003-09-10 Jim Meyering <jim@meyering.net>
17282 * lib/error.c: Correct indentation of cpp directives.
17284 2003-09-10 Bruno Haible <bruno@clisp.org>
17286 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
17287 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
17288 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
17289 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
17290 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
17291 <stdlib.h> and <string.h> checks.
17292 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
17293 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
17295 2003-09-10 Bruno Haible <bruno@clisp.org>
17297 * lib/strcspn.c: Include <string.h> unconditionally.
17298 * lib/strpbrk.c: Include <string.h> unconditionally.
17299 * lib/strstr.c: Include <string.h> unconditionally.
17300 * lib/unicodeio.c: Include <string.h> unconditionally.
17301 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
17302 * lib/unsetenv.c: Likewise.
17303 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
17304 * lib/yesno.c: Include <stdlib.h> unconditionally.
17305 (rpmatch): Add prototype.
17307 2003-09-09 Paul Eggert <eggert@twinsun.com>
17309 More patches to assume C89 or better.
17310 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
17311 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
17312 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
17314 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
17316 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
17318 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
17320 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
17321 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
17322 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
17324 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
17325 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
17327 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
17329 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
17330 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
17331 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
17332 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
17333 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
17334 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
17336 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
17337 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
17338 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
17339 C headers, or for string.h.
17340 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
17341 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
17342 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
17343 headers, memory.h, stdlib.h, string.h, strings.h.
17344 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
17345 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
17346 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
17348 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
17349 headers, memory.h, string.h.
17350 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
17351 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
17353 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
17355 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
17356 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
17357 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
17358 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
17359 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
17361 2003-09-09 Paul Eggert <eggert@twinsun.com>
17365 * lib/acosl.c (main): Use a prototype.
17366 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
17369 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
17371 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
17372 (getopt, etopt_long, getopt_long_only, _getopt_internal)
17373 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
17375 * lib/getopt.c (const): Remove macro.
17376 Include <string.h> unconditionally.
17377 (my_index): Remove; all uses changed to strchr.
17378 (strlen): Remove decl.
17379 (exchange): Remove forward decl; no longer needed.
17380 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
17381 Define with prototype.
17382 * lib/getopt1.c (const): Remove macro.
17383 (getopt_long, getopt_long_only, main): Define with prototype.
17385 * lib/getugroups.c: Include <string.h> unconditionally.
17387 * lib/getusershell.c: Include <stdlib.h> unconditionally.
17388 (getusershell, setusershell, endusershell, readname, main):
17389 Define with prototypes.
17391 * lib/group-member.c: Include group-member.h first.
17392 Include <stdlib.h> unconditionally.
17394 * lib/hard-locale.c: Include hard-locale.h first.
17395 Include <stdlib.h>, <string.h> unconditionally.
17397 * lib/hash.c (free, malloc): Remove decls.
17398 Include <stdlib.h> unconditionally.
17400 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
17401 (getenv): Do not declare.
17403 * lib/idcache.c: Include <string.h> unconditionally.
17405 * lib/long-options.c: Include long-options.h first, to test interface.
17406 Include <stdlib.h> unconditionally.
17408 * lib/makepath.c: Include makepath.h first, to test interface.
17409 Include <stdlib.h> and <string.h> unconditionally.
17411 * lib/linebuffer.c: Include <stdlib.h>.
17412 (free): Remove decl.
17414 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
17415 stddef.h. rpl_malloc returns void *, not char *.
17416 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
17419 * lib/md5.h: Include <limits.h> unconditionally.
17420 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
17421 (__P): Remove; all uses removed.
17422 * lib/md5.c: Include "md5.h" first.
17423 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
17424 md5_buffer, md5_process_bytes, md5_process_block):
17425 Define with prototypes.
17426 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
17427 * lib/sha.c: Include "sha.h" first.
17428 Include <stdlib.h>, <string.h> unconditionally.
17430 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
17431 * lib/memcmp.c (__ptr_t): Likewise.
17432 * lib/memrchr.c (__ptr_t): Likewise.
17433 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
17434 Include <string.h> unconditionally.
17435 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
17436 * lib/memchr.c: Include <stdlib.h> unconditionally.
17437 * lib/memchr.c (LONG_MAX): Remove.
17438 * lib/memrchr.c (LONG_MAX): Likewise.
17439 * lib/memchr.c (__memchr): Define via a prototype.
17440 * lib/memrchr.c (__memrchr): Likewise.
17441 * lib/memcmp.c (__P): Remove, and remove all uses.
17442 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
17443 Remove forward decls; no longer needed.
17444 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
17445 Use types required by C89 in prototype.
17447 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
17448 * lib/savedir.c: Likewise.
17449 * lib/mkdir.c (free): Remove decl.
17450 * lib/rmdir.c (rmdir): Define with a prototype.
17451 * lib/savedir.c: Include savedir.h first, to test interface.
17453 * lib/mktime.c (STDC_HEADERS): Remove.
17454 Include <stdlib.h>, <string.h> unconditionally.
17456 * lib/modechange.c: Include <stdlib.h> unconditionally.
17457 (malloc): Remove decl.
17459 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
17460 (free): Remove decl.
17462 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
17463 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
17464 (This type really should be intptr_t, but that's a C99ism.)
17465 (_obstack_memcpy): Remove: all uses changed to memcpy.
17466 Include <string.h> unconditionally.
17467 (struct obstack): Assume __STDC__ for types of members
17468 chunkfun, freefun, extra_arg.
17469 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
17470 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
17471 obstack_begin, obstack_specify_allocation,
17472 obstack_specify_allocation_with_arg, obstack_chunkfun,
17473 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
17474 Remove unprototyped decls and the macros that use them.
17475 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
17476 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
17477 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
17478 (defined __STDC__ && __STDC__)]:
17479 Remove nonprototyped code.
17480 Include <stdlib.h> unconditionally.
17481 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
17482 _obstack_allocated_p, _obstack_free, obstack_free,
17483 _obstack_memory_used, print_and_abort):
17484 Define using prototypes.
17485 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
17486 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
17487 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
17488 obstack_next_free, obstack_object_size, obstack_room) [0]:
17489 Remove unused, unprototyped code.
17491 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
17493 * lib/physmem.c (physmem_total, physmem_available, main): Define
17496 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
17497 (main): Define with a prototype.
17499 * lib/posixver.c (getenv): Remove decl.
17501 * lib/putenv.c (malloc): Returns void *, not char *.
17502 Include <string.h> unconditionally.
17503 (strchr, memcpy, NULL): Do not define.
17505 * lib/readtokens.c: Include readtokens.h first, to test interface.
17506 Include <stdlib.h>, <string.h> unconditionally.
17507 (init_tokenbuffer): Define with a prototype.
17509 * lib/regex.c (PARAMS): Remove. All uses removed.
17510 All uses of _RE_ARGS removed, too.
17511 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
17513 (bzero): Assume memset exists.
17514 (memcmp, memcpy, NULL): Remove.
17515 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
17516 char, or assignments to local vars of type signed char.
17517 (init_syntax_once, PREFIX(extract_number_and_incr),
17518 PREFIX(print_partial_compiled_pattern),
17519 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
17520 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
17521 PREFIX(regex_grow_registers), PREFIX(regex_compile),
17522 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
17523 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
17524 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
17525 wcs_compile_range, byte_compile_range, truncate_wchar,
17526 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
17527 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
17528 count_mbs_length, wcs_re_match_2_internal,
17529 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
17530 PREFIX(alt_match_null_string_p),
17531 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
17532 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
17533 regfree, PREFIX(extract_number)): Define with prototype. Remove
17534 now-unnecessary declaration, if any.
17535 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
17537 Remove now-unnecessary casts among pointer types.
17538 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
17540 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
17541 (free): Remove decl.
17543 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
17545 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
17546 (free): Remove decl.
17548 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
17549 * lib/xgetcwd.c: Likewise.
17551 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
17552 (free): Remove decl.
17554 * lib/strchrnul.c (strchrnul): Define with a prototype.
17555 Fix bug: c_in was not converted to char before searching.
17557 The following changes are not K&R related:
17559 * lib/group-member.h: Include <sys/types.h>, so that this file is
17561 * lib/makepath.h: Likewise.
17563 * lib/getusershell.c (readname, default_index, line_size, readname):
17564 Use size_t, not int, for sizes.
17565 (readname): If the size overflows, report an error instead of
17568 2003-09-09 Paul Eggert <eggert@twinsun.com>
17570 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
17573 2003-09-09 Paul Eggert <eggert@twinsun.com>
17575 * README: New section: portability guidelines.
17577 2003-09-09 Derek Robert Price <derek@ximbiot.com>
17579 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
17582 2003-09-09 Derek Robert Price <derek@ximbiot.com>
17584 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
17586 2003-09-08 Paul Eggert <eggert@twinsun.com>
17588 Assume C89 or better; remove K&R cruft.
17589 A few of these changes were first proposed by Derek Robert Price
17590 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
17592 * lib/addext.c: Include <string.h> unconditionally.
17593 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
17594 Don't declare getenv or malloc.
17596 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
17597 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
17599 (find_stack_direction, alloca): Use prototypes.
17601 * lib/atexit.c (atexit): Define using a prototype.
17603 * lib/basename.c, dirname.c, stripslash.c:
17604 Include <string.h> unconditionally.
17606 * lib/bcopy.c: Include <stddef.h>.
17607 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
17609 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
17611 * lib/error.h (error, error_at_line, error_print_progname)
17612 [! (defined (__STDC__) && __STDC__)]: Remove decls.
17613 * lib/error.c: Include error.h first, to check interface.
17614 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17615 (VA_START): Remove; all uses changeed to va_start.
17616 (exit, strerror): Remove decls.
17617 (error_print_progname): Prototype uncondionally.
17618 Don't include <errno.h>; no longer needed.
17619 (private_strerror): Remove.
17620 (error_tail): Always define.
17621 (error, error_at_line): Assume C89 or better; always use prototypes.
17622 * lib/fatal.c: Include "fatal.h" first, to test interface.
17623 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
17624 (VA_START): Remove; all uses changed to va_start.
17625 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
17627 (exit): Remove decl.
17628 (fatal): Prototype unconditionally. Assume va_start works.
17629 Abort at end, to pacify gcc.
17631 * lib/euidaccess.c (main): Define with a prototype.
17633 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
17635 * lib/exitfail.c: Include <stdlib.h> unconditionally.
17637 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
17639 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
17640 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
17641 (getenv): Remove decl.
17642 (fnmatch): Define using a prototype.
17643 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
17644 (FCT): Define using a prototype.
17646 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
17648 * lib/gethostname.c: Include <stddef.h>.
17649 (gethostname): Define with prototype. Length is size_t, not int.
17651 2003-09-08 Paul Eggert <eggert@twinsun.com>
17653 Assume C89 or better; remove K&R cruft.
17654 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
17655 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
17656 string.h, getenv, malloc.
17657 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
17659 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
17660 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
17661 do not check for strerror.
17662 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
17663 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
17664 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
17665 do not check for doprnt or vprintf.
17666 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
17667 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
17669 2003-09-08 Paul Eggert <eggert@twinsun.com>
17671 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
17672 getversion.c should have been removed then, but was accidentally
17675 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
17676 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
17678 2003-09-08 Karl Berry <karl@gnu.org>
17680 * config/config.sub, config.guess, srclistvars.sh: update from savannah
17681 config, forget about prep.
17683 * config/depcomp, missing: update from automake.
17685 2003-09-07 Paul Eggert <eggert@twinsun.com>
17687 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
17688 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17690 2003-09-07 Paul Eggert <eggert@twinsun.com>
17692 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
17693 copy_tm_result. Bug reported by Simon Josefsson in
17694 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
17696 2003-09-06 Paul Eggert <eggert@twinsun.com>
17698 * m4/time_r.m4: New file.
17699 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
17700 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
17701 is. Check for timegm declaration.
17702 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
17703 Do not check for gmtime_r.
17704 Replace mktime if __mktime_internal does not exist and if mktime
17705 hasn't been replaced already.
17707 2003-09-06 Paul Eggert <eggert@twinsun.com>
17709 * lib/time_r.c, lib/time_r.h: New files.
17711 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
17713 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
17714 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
17716 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
17718 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
17719 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
17720 Include <time_r.h>.
17722 * lib/timegm.c: Switch to glibc implementation, with the following
17724 [defined HAVE_CONFIG_H]: Include <config.h>.
17725 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
17726 (__mktime_internal) [!defined _LIBC]: New decl.
17727 (__gmtime_r) [!defined _LIBC]: New macro and function.
17728 (timegm): Use a prototype, since gnulib assumes C89.
17729 Do not bother declaring tmp to be const, as it's not really usefu.
17730 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
17731 (timegm): Declare only if HAVE_DECL_TIMEGM.
17733 2003-09-06 Paul Eggert <eggert@twinsun.com>
17735 * MODULES.html.sh (func_all_modules): Add time_r.
17736 * modules/time_r: New file.
17737 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
17738 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
17740 2003-09-03 Paul Eggert <eggert@twinsun.com>
17742 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
17743 Bug reported by Lute Kamstra in
17744 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
17746 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
17747 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
17748 course with correspondingly smaller numbers for tomorrow and
17749 yesterday. From Tadayoshi Funaba. Originally installed into
17750 sh-utils on 1999-08-07, but the patch got lost (I guess during the
17753 2003-08-31 Simon Josefsson <jas@extundo.com>
17755 * modules/timegm: New file.
17756 * MODULES.html.sh (func_all_modules): Add timegm.
17758 2003-08-31 Simon Josefsson <jas@extundo.com>
17760 * m4/timegm.m4: New file.
17762 2003-08-31 Simon Josefsson <jas@extundo.com>
17764 * lib/timegm.h: New file.
17765 * lib/timegm.c: New file. Based on
17766 wget-1.8.2/src/http.c:mktime_from_utc.
17768 2003-08-31 Karl Berry <karl@gnu.org>
17770 * lib/argp.h: update from libc.
17772 2003-08-28 Bruno Haible <bruno@clisp.org>
17774 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
17775 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
17776 followed by '#define fnmatch fnmatch_posix' gives an error.
17778 2003-08-28 Bruno Haible <bruno@clisp.org>
17780 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
17781 warning on QNX, which defines O_BINARY to 000000.
17783 2003-08-27 Jim Meyering <jim@meyering.net>
17785 * m4/mkstemp.m4: Require that the system mkstemp be able to create
17786 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
17787 would fail after 32. Reported by Danny Levinson. Details here:
17788 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
17790 2003-08-24 Bruno Haible <bruno@clisp.org>
17792 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
17793 MSVC7 <stdio.h> is included later.
17795 2003-08-22 Simon Josefsson <jas@extundo.com>
17797 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
17799 2003-08-20 Karl Berry <karl@gnu.org>
17801 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
17803 2003-08-20 Bruno Haible <bruno@clisp.org>
17805 * modules/progname: New file.
17806 * MODULES.html.sh (func_all_modules): Add progname.
17808 2003-08-20 Bruno Haible <bruno@clisp.org>
17810 * lib/progname.h: New file, from GNU gettext.
17811 * lib/progname.c: New file, from GNU gettext.
17812 * lib/progreloc.c: New file, from GNU gettext.
17814 2003-08-19 Jim Meyering <jim@meyering.net>
17816 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
17817 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
17819 2003-08-19 Bruno Haible <bruno@clisp.org>
17821 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
17824 2003-08-19 Bruno Haible <bruno@clisp.org>
17826 * lib/xstrdup.c: Assume <string.h> exists.
17828 2003-08-18 Paul Eggert <eggert@twinsun.com>
17830 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
17833 2003-08-18 Jim Meyering <jim@meyering.net>
17835 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
17836 * m4/lib-ld.m4: Likewise.
17838 2003-08-18 Jim Meyering <jim@meyering.net>
17840 * lib/setenv.h: Indent nested cpp directive.
17841 * lib/vasnprintf.c: Remove trailing blanks.
17843 2003-08-17 Simon Josefsson <jas@extundo.com>
17845 * modules/xstrndup: New file.
17846 * MODULES.html.sh (func_all_modules): Add xstrndup.
17848 2003-08-17 Simon Josefsson <jas@extundo.com>
17850 * modules/argp: Fix autoconf macro name. Add more dependencies.
17852 2003-08-17 Simon Josefsson <jas@extundo.com>
17854 * m4/xstrndup.m4: New file.
17856 2003-08-17 Simon Josefsson <jas@extundo.com>
17858 * m4/argp.m4: New file.
17860 2003-08-17 Simon Josefsson <jas@extundo.com>
17861 Bruno Haible <bruno@clisp.org>
17863 * lib/xstrndup.h: New file.
17864 * lib/xstrndup.c: New file.
17866 2003-08-17 Bruno Haible <bruno@clisp.org>
17868 * modules/strndup (Files, Include): Add lib/strndup.h.
17870 2003-08-17 Bruno Haible <bruno@clisp.org>
17872 * modules/euidaccess (Files): Add lib/euidaccess.h.
17874 2003-08-17 Bruno Haible <bruno@clisp.org>
17876 * lib/strndup.h: New file.
17878 2003-08-17 Bruno Haible <bruno@clisp.org>
17880 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
17881 like AC_GNU_SOURCE.
17882 * modules/extensions (configure.ac): Comment out the invocation of
17883 gl_USE_SYSTEM_EXTENSIONS.
17885 2003-08-16 Paul Eggert <eggert@twinsun.com>
17887 Merges from coreutils, etc.
17888 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
17889 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
17890 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
17892 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
17893 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
17895 2003-08-16 Paul Eggert <eggert@twinsun.com>
17897 Document merge from coreutils.
17898 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
17899 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
17900 * modules/utime: Add m4/utimes-null.m4.
17902 2003-08-16 Paul Eggert <eggert@twinsun.com>
17904 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
17905 space, undoing this 2003-08-12 change:
17906 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17908 2003-08-16 Paul Eggert <eggert@twinsun.com>
17910 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
17911 strtoul.c from libc, undoing this 2003-08-12 change:
17912 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
17914 2003-08-16 Jim Meyering <jim@meyering.net>
17916 Merges from coreutils.
17917 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
17918 prefix. Adjust cache variables similarly. Create 500 rather than
17919 just 300 files, to exercise bug on Darwin6.5, too.
17920 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
17922 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
17923 AM_SYS_POSIX_TERMIOS.
17924 Reported by mkc@mathdogs.com.
17925 Also change use of $am_cv_sys_posix_termios
17926 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
17927 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
17928 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
17929 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
17930 in /proc/mounts until it finds one with matching device number. This
17931 is unnecessary when the FILE argument *is* a mount point. No stat call
17932 is necessary in that case. So, disable the statvfs-testing code on
17933 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
17934 as RedHat bug# 84846.
17935 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17936 to 1MB, so as not to render systems with no stack size limit (e.g.,
17937 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
17938 Include <unistd.h>. On some systems,
17939 it is required for the definition of _SC_PAGESIZE.
17941 2003-08-16 Jim Meyering <jim@meyering.net>
17943 Merge from coreutils.
17944 * lib/xstrtoimax.c: #else #if -> #elif.
17945 * lib/xstrtoumax.c: Likewise.
17947 2003-08-16 Jim Meyering <jim@meyering.net>
17949 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
17950 * m4/utimes.m4: Removed.
17951 * m4/utimes-null.m4: Renamed from utimes.m4.
17953 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
17954 to 1MB, so as not to render systems with no stack size limit (e.g.,
17955 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
17956 Include <unistd.h>. On some systems,
17957 it is required for the definition of _SC_PAGESIZE.
17959 2003-08-16 Jim Meyering <jim@meyering.net>
17960 and Paul Eggert <eggert@cs.ucla.edu>
17962 Merges from coreutils, etc.
17964 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
17965 using the latest version from cvs. This avoids problems with #line
17966 directives using a vendor (Sun) compiler.
17967 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
17968 Don't set GETGROUPS_LIB here; now it's
17969 done via getgroups.m4's wrapper function.
17970 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
17971 rather than just in sh-util/configure.in, so that the
17972 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
17974 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
17975 AC_FUNC_GETLOADAVG where to find getloadavg.c.
17976 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
17977 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
17978 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
17979 Remove code that is now done by the newly-required macros.
17980 Append $(EXEEXT) to DF_PROG.
17981 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
17982 Do not invoke or require the following here,
17983 since prereq.m4 or some gnulib .m4 now does this for us:
17984 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
17985 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
17986 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
17987 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
17988 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
17989 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
17990 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
17992 Do not replace the following functions, as this is now the job
17993 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
17994 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
17995 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
17996 atexit getpass, strdup, getpagesize.
17998 Do not check for the following functions, as this is now the job
17999 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18000 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
18002 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18003 Check for sys/sysctl.h.
18004 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18005 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
18006 of checking for ssize_t ourselves.
18008 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18009 Require every macro that gnulib/modules/* suggests for us.
18010 (jm_PREREQ_ADDEXT): New macro.
18011 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18012 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18014 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18015 (gl_PHYSMEM): Use it.
18016 Also check for `table' function.
18017 Check for new headers and functions.
18018 Add check for sys/sysmp.h.
18019 With suggestions from Kaveh Ghazi.
18020 Ignore headers that are present but cannot be compiled. This
18021 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18024 2003-08-15 Paul Eggert <eggert@twinsun.com>
18026 Document merge from coreutils.
18027 * modules/userspec: Depend on posixver.
18028 * modules/strftime: Depend on tzset.
18030 2003-08-15 Paul Eggert <eggert@twinsun.com>
18032 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18033 rather than tab, after '#' in shell-script copyright notices.
18034 Suggested by Bruno Haible.
18036 2003-08-15 Paul Eggert <eggert@twinsun.com>
18038 * config/srclist-update: Use three spaces, rather than tab, after '#'
18039 in shell-script copyright notices. Suggested by Bruno Haible.
18040 Remove unnecessary parenthesization in regular expression.
18042 2003-08-15 Jim Meyering <jim@meyering.net>
18044 Merge from coreutils.
18045 * lib/xgethostname.c: Include <stdlib.h>.
18046 (xghostname): Don't exit for anything other than memory-related
18047 failure; just return NULL.
18048 * lib/userspec.c: Include "posixver.h".
18049 (parse_user_spec): Accept `.' as a separator only
18050 in pre-POSIX-200112 mode.
18051 * lib/strtoimax.c: Use #elif rather than #else #if.
18052 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18053 Remove function, now that we can rely on a working tzset function.
18054 [!_LIBC]: Ensure that the required autoconf test has been run.
18055 [!defined _NL_CURRENT && HAVE_STRFTIME]:
18056 Use underlying_strftime for %r.
18057 * lib/sha.c: Merge in some clean-up and optimization changes from
18059 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18060 Ensure that it is a multiple of 64.
18061 Rearrange loop exit tests so as to avoid performing an
18062 additional fread after encountering an error or EOF.
18063 * lib/realloc.c: Update copyright date.
18065 2003-08-15 Jim Meyering <jim@meyering.net>
18066 and Paul Eggert <eggert@twinsun.com>
18068 Merge from coreutils.
18069 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18070 member but strut utmpx does not. Needed for AIX 4.3.3.
18071 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18073 2003-08-15 Jim Meyering <jim@meyering.net>
18074 and Paul Eggert <eggert@cs.ucla.edu>
18076 Merges from coreutils, etc.
18077 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18078 Require gl_FUNC_TZSET_CLOBBER.
18079 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18080 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18083 2003-08-14 Paul Eggert <eggert@twinsun.com>
18085 Help the merge from coreutils.
18086 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
18087 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
18088 * m4/tzset.m4: Use it too.
18090 2003-08-14 Paul Eggert <eggert@twinsun.com>
18092 * modules/tzset: New file.
18094 2003-08-14 Jim Meyering <jim@meyering.net>
18096 Merges from coreutils.
18097 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
18098 variable names, rather than @FNMATCH_H@.
18099 * modules/alloca: Likewise for $(ALLOCA_H).
18101 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
18102 the three copies of the literal target, `fnmatch.h'.
18103 * modules/alloca (alloca.h): Likewise.
18105 2003-08-14 Jim Meyering <jim@meyering.net>
18107 Merge from coreutils.
18108 * m4/tzset.m4: New file.
18109 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
18110 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
18111 otherwise, AIX 5.1 systems would end up using the latter.
18112 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
18113 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
18114 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
18115 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
18117 2003-08-14 Jim Meyering <jim@meyering.net>
18119 Merge from coreutils.
18120 * lib/obstack.h: Whitespace changes.
18121 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
18122 and xcalloc return values.
18123 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
18124 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
18125 hang on OSF/1 5.1 for DIR on both local and remote file systems.
18126 Reported by (and fix confirmed by) Nelson H. F. Beebe.
18127 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
18129 Use mntctl's return value to drive the entry-processing loop, since
18130 we can't rely on the value of the vmt_length member in the last
18131 entry. On some systems doing so could result in exhausting
18132 virtual memory. Based in part on a patch from Mike Jetzer.
18134 2003-08-14 Jim Meyering <jim@meyering.net>
18135 and Paul Eggert <eggert@twinsun.com>
18137 Merges from coreutils, plus other fixes.
18138 * lib/physmem.c: Merge in portability changes from gcc/libiberty
18139 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
18140 for credits and details. Thanks to Kaveh Ghazi for helping
18141 to keep these files in sync.
18142 (ARRAY_SIZE): Define it.
18143 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
18144 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
18145 (memcasecmp): Don't assume size_t fits in unsigned int.
18146 Remove casts and duplicate code.
18147 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
18148 (memcpy): Remove definition.
18149 Merge in some clean-up and optimization changes from glibc.
18150 [BLOCKSIZE]: Move definition to top of file.
18151 Ensure that it is a multiple of 64.
18152 Rearrange loop exit tests so as to avoid performing an
18153 additional fread after encountering an error or EOF.
18154 * lib/md5.h (md5_uintptr): Define.
18155 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
18156 return to the initial working directory. Preserve errno
18158 * lib/idcache.c: Include "xalloc.h".
18159 (xmalloc, xrealloc): Remove decls.
18160 (getuser): Remove casts no longer required in C89.
18161 * lib/human.c: Include stdio.h, for sprintf.
18162 * lib/group-member.c: Include "xalloc.h".
18163 (xmalloc, xrealloc): Remove decls.
18164 (get_group_info): Remove casts no longer required in C89.
18165 * lib/getusershell.c (readname): Remove casts no longer required in
18167 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
18168 * lib/getline.c: Whitespace fix, from coreutils.
18170 2003-08-13 Paul Eggert <eggert@twinsun.com>
18172 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
18175 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18176 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18177 Undo previous (whitespace-only) change.
18179 2003-08-13 Paul Eggert <eggert@twinsun.com>
18181 * lib/exclude.c: Include <ctype.h>
18182 (IN_CTYPE_DOMAIN): New macro.
18183 (is_space): New fn.
18184 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
18187 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18188 Undo previous (whitespace-only) change.
18190 2003-08-13 Paul Eggert <eggert@twinsun.com>
18192 * config/srclist-update: Change update back to the old behavior,
18193 leaving whitespace alone. Use one 'sed' command rather than a
18195 (fixlicense): Now a variable, not a function.
18196 (remove_trailing_blanks): Remove.
18197 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
18198 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18199 Undo previous (whitespace-only) change.
18201 2003-08-12 Paul Eggert <eggert@twinsun.com>
18203 Merge from coreutils.
18204 * modules/euidaccess: Add lib_SOURCES, include for new
18207 2003-08-12 Paul Eggert <eggert@twinsun.com>
18209 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
18210 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
18211 Normalize leading white space and remove trailing white space.
18213 Merge from coreutils
18214 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
18216 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
18217 0.12.1. These files are now being upgraded automatically by
18218 ../config/srclist-update.
18220 2003-08-12 Paul Eggert <eggert@twinsun.com>
18222 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
18223 Normalize leading white space and remove trailing white space.
18224 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
18225 notice, as per ../config/srclist-update.
18227 Merge from coreutils.
18228 * lib/euidaccess.h: New file.
18229 * lib/euidaccess.c: Include it.
18230 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
18231 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
18232 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
18234 2003-08-12 Paul Eggert <eggert@twinsun.com>
18236 * config/srclist-update: Add copyright notice.
18237 (remove_id_lines, remove_trailing_blanks): New constants.
18238 (fixfile): Use them to normalize spacing a bit in copied files.
18239 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
18240 Normalize leading white space and remove trailing white space.
18242 * config/texinfo.tex: Sync with texinfo.
18244 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
18245 strtoul.c from libc, to merge coreutils whitespace changes.
18247 * config/srclist.txt: Get the following m4 files from gettext:
18248 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
18249 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
18250 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
18253 2003-08-12 Karl Berry <karl@gnu.org>
18255 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
18258 2003-08-11 Paul Eggert <eggert@twinsun.com>
18260 * modules/gnu-source, m4/gnu-source.m4:
18261 Remove; we're assuming Autoconf 2.54 or later now.
18262 Suggested by Bruno Haible.
18263 * MODULES.html.sh (func_all_modules): Remove gnu-source.
18265 2003-08-11 Bruno Haible <bruno@clisp.org>
18267 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
18269 2003-08-11 Bruno Haible <bruno@clisp.org>
18271 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
18272 (vasnprintf): Use it instead of wcslen.
18274 2003-08-11 Bruno Haible <bruno@clisp.org>
18276 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
18277 value to ensure that _Bool promotes to int. Use #define for _Bool when
18278 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
18280 2003-08-10 Karl Berry <karl@gnu.org>
18282 * lib/regex.h: update from libc (whitespace fix).
18284 2003-08-09 Paul Eggert <eggert@twinsun.com>
18286 Merge some files from coreutils. These changes were
18287 originally made by Jim Meyering.
18288 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
18289 many older Unixes require this.
18290 * lib/alloca.c (alloca): Remove cast to argument of free;
18291 no longer needed in C89.
18292 * lib/alloca_.h, regex.h: Fix white space to match
18293 what GNU indent does.
18295 2003-08-09 Paul Eggert <eggert@twinsun.com>
18297 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
18298 apparently Emacs's Unicode mode got confused before my 2003-08-05
18301 2003-08-08 Paul Eggert <eggert@twinsun.com>
18303 * m4/extensions.m4: New file.
18304 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
18305 Require gl_USE_SYSTEM_EXTENSIONS.
18306 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
18307 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
18309 2003-08-08 Paul Eggert <eggert@twinsun.com>
18311 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
18312 * modules/extensions, modules/gnu-source: New files.
18313 * modules/timespec, modules/unlocked-io: Depend on extensions.
18315 2003-08-07 Paul Eggert <eggert@twinsun.com>
18317 * modules/restrict: New file.
18318 * MODULES.html.sh (func_all_modules): Add restrict.
18319 * modules/regex: Depend on restrict.
18321 2003-08-07 Paul Eggert <eggert@twinsun.com>
18323 * m4/restrict.m4: New file.
18324 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
18326 2003-08-07 Bruno Haible <bruno@clisp.org>
18328 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
18329 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
18331 2003-08-07 Bruno Haible <bruno@clisp.org>
18333 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
18334 makes the module 'getndelim2' compatible with the module 'getline'.
18336 2003-08-05 Paul Eggert <eggert@twinsun.com>
18338 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
18339 byte with "\201" to avoid glitches when editing that source file
18340 with multi-gnome-terminal.
18342 2003-08-05 Paul Eggert <eggert@twinsun.com>
18344 * lib/bumpalloc.h: Remove.
18346 2003-08-05 Paul Eggert <eggert@twinsun.com>
18348 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
18349 * modules/bumpalloc: Remove.
18351 2003-08-04 Paul Eggert <eggert@twinsun.com>
18353 * lib/getloadavg.c: Change copyright notice and spacing to conform to
18356 Merge from coreutils.
18357 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
18359 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
18360 from Karl Berry, implemented by Jim Meyering.
18361 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
18362 from Dmitry V. Levin.
18363 Remove anachronistic cast of xrealloc.
18364 * lib/fnmatch_.h (__const): Remove. Use 'const'.
18365 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
18366 type. Otherwise, it wouldn't compile with at least /bin/cc on
18367 ymp-cray-unicos9.0.2.X.
18368 Combine two mostly-identical uses of alloca into one.
18369 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
18371 2003-08-04 Dave Love <d.love@dl.ac.uk>
18375 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
18376 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
18377 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
18378 obsolete NLIST_NAME_UNION.
18379 [__GNU__]: Undef BSD and FSCALE.
18380 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
18382 2003-08-03 Paul Eggert <eggert@twinsun.com>
18384 * lib/stdbool_.h (_Bool): Make it signed char, instead of
18385 an enum type, so that it's guaranteed to promote to int. See:
18386 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
18388 2003-08-03 Karl Berry <karl@gnu.org>
18390 * config/depcomp: update from automake.
18392 2003-07-31 Paul Eggert <eggert@twinsun.com>
18394 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
18395 (strerror): Don't assume that a printable int fits in 14 bytes.
18397 2003-07-31 Bruno Haible <bruno@clisp.org>
18399 * modules/getpass-gnu: New file.
18400 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
18402 2003-07-31 Bruno Haible <bruno@clisp.org>
18404 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
18406 2003-07-24 Karl Berry <karl@gnu.org>
18408 * config/missing: update from automake.
18410 2003-07-24 Derek Robert Price <derek@ximbiot.com>
18411 Bruno Haible <bruno@clisp.org>
18413 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
18414 * lib/getline.c (getline, getdelim): Likewise.
18415 Remove _GNU_SOURCE define; now it's defined in config.h through
18418 2003-07-23 Karl Berry <karl@gnu.org>
18420 * config/config.sub: update from prep.
18422 2003-07-22 Paul Eggert <eggert@twinsun.com>
18424 * modules/xalloc (Depends-on): Add exitfail.
18425 * modules/xmemcoll: Likewise.
18427 2003-07-22 Paul Eggert <eggert@twinsun.com>
18429 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
18430 over-parenthesization in macros.
18432 Sync with coreutils.
18434 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
18437 Use `exit_failure' for xalloc and xmemcoll instead of their own
18438 private exit-failure variables.
18439 * lib/xalloc.h (xalloc_exit_failure): Remove.
18440 * lib/xmalloc.c: Likewise. Include exitfail.h.
18441 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
18442 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
18443 * lib/xmemcoll.c: Likewise. Include exitfail.h.
18444 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
18446 2003-07-20 Jim Meyering <jim@meyering.net>
18448 * modules/closeout (Depends-on): Add exitfail.
18449 Suggestion from Bruno Haible.
18451 2003-07-19 Karl Berry <karl@gnu.org>
18453 * config/config.sub: update from prep.
18455 2003-07-18 Paul Eggert <eggert@twinsun.com>
18457 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
18459 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
18460 to test that it can stand by itself. Include "exitfail.h".
18461 Clients should set exit_failure instead.
18462 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
18464 2003-07-18 Bruno Haible <bruno@clisp.org>
18466 * modules/getndelim2: New file.
18467 * modules/getline: Share files with module getndelim2.
18468 * modules/getnline: Depend on getndelim2 instead of sharing files with
18469 it. Add getnline.c to lib_SOURCES.
18470 * MODULES.html.sh (func_all_modules): Add getndelim2.
18472 2003-07-18 Bruno Haible <bruno@clisp.org>
18474 * m4/getndelim2.m4: New file.
18475 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
18476 invoke gl_PREREQ_GETNDELIM2.
18477 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
18478 gl_PREREQ_GETNDELIM2.
18479 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
18482 2003-07-18 Bruno Haible <bruno@clisp.org>
18484 * lib/getndelim2.h: New file.
18485 * lib/getndelim2.c: Make into a module of its own. Include config.h,
18487 (getndelim2): Make non-static. Change return type to ssize_t.
18488 * lib/getline.h: Change argument names.
18489 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
18490 * lib/getnline.c: Include getndelim2.h.
18492 2003-07-18 Andreas Schwab <schwab@suse.de>
18494 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
18496 2003-07-17 Karl Berry <karl@gnu.org>
18498 * config/config.sub: update from prep.
18500 2003-07-17 Bruno Haible <bruno@clisp.org>
18502 * modules/getnline: New file.
18503 * modules/getline: Add lib/getndelim2.c to source file list.
18504 * MODULES.html.sh (func_all_modules): Add getnline.
18506 2003-07-17 Bruno Haible <bruno@clisp.org>
18508 * m4/getnline.m4: New file.
18510 2003-07-17 Bruno Haible <bruno@clisp.org>
18512 * m4/Makefile.am.in: Remove file.
18513 * m4/Makefile.am: Remove file.
18514 * m4/Makefile.in: Remove file.
18516 2003-07-17 Bruno Haible <bruno@clisp.org>
18518 * lib/getnline.h: New file.
18519 * lib/getnline.c: New file.
18520 * lib/getndelim2.c: New file, extracted from getline.c.
18521 (getndelim2): Renamed from getdelim2, with added nmax argument.
18522 * lib/getline.c: Include getndelim2.c.
18523 (getdelim2): Moved out to getndelim2.c.
18524 (getline, getdelim): Update.
18526 2003-07-17 Bruno Haible <bruno@clisp.org>
18528 * lib/Makefile.am: Remove file.
18529 * lib/Makefile.in: Remove file.
18531 2003-07-17 Bruno Haible <bruno@clisp.org>
18533 * configure.in: Remove file.
18534 * Makefile.in: Remove file.
18536 2003-07-17 Bruno Haible <bruno@clisp.org>
18538 * MODULES.html.sh: Put the </BODY> right before </HTML>.
18540 2003-07-16 Karl Berry <karl@gnu.org>
18542 * config/srclist-update: was running fixlicense twice, which caused
18543 texinfo.tex to be nullified for some reason. Simplify,
18544 $gplsrc is no longer needed as far as I can see?
18546 2003-07-16 Jim Meyering <jim@meyering.net>
18548 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
18550 2003-07-15 Paul Eggert <eggert@twinsun.com>
18552 * config/srclist.txt: Get the following files from gettext-runtime/intl
18553 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
18554 ref-del.sin. From Bruno Haible.
18555 * config/srclist-update (fixfile): Change grep pattern again, since the
18556 previous fix didn't work (there was another trailing $). Use
18557 '[$]' to escape the $s.
18559 2003-07-15 Karl Berry <karl@gnu.org>
18561 * lib/vasnprintf.c: update from gettext.
18563 2003-07-15 Karl Berry <karl@gnu.org>
18565 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
18566 gets expanded when surrounded by '$'.
18568 2003-07-15 Jim Meyering <jim@meyering.net>
18570 * modules/save-cwd: Don't depend on error. From Derek Price.
18572 2003-07-15 Jim Meyering <jim@meyering.net>
18574 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
18576 2003-07-14 Simon Josefsson <jas@extundo.com>
18578 * modules/mempcpy: New file.
18579 * MODULES.html.sh (func_all_modules): Add mempcpy.
18581 2003-07-14 Simon Josefsson <jas@extundo.com>
18583 * m4/mempcpy.m4: New file.
18585 2003-07-14 Simon Josefsson <jas@extundo.com>
18587 * lib/mempcpy.h: New file.
18588 * lib/mempcpy.c: New file.
18590 2003-07-14 Paul Eggert <eggert@twinsun.com>
18592 * modules/getdate, modules/posixtm: Depend on mktime.
18594 2003-07-14 Paul Eggert <eggert@twinsun.com>
18596 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
18597 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
18598 unicodeio.c, unicodeio.h, unlocked-io.h:
18599 Switch from LGPL to GPL.
18601 2003-07-14 Paul Eggert <eggert@twinsun.com>
18603 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
18604 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
18605 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
18606 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
18607 vasprintf.c, vasprintf.h: Regenerate. These files are now being
18608 updated automatically by ../config/srclist-update. This changes
18609 their license from LPGL to GPL.
18611 2003-07-14 Paul Eggert <eggert@twinsun.com>
18613 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
18614 assumed to refer to the root of the most recent stable gettext version.
18615 * config/srclistvars.sh: Add defaults for eggert.
18616 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
18617 Match "This program" as well as "The program". This is needed
18620 2003-07-14 Jim Meyering <jim@meyering.net>
18622 Don't emit diagnostics. Let callers do that.
18623 * lib/save-cwd.c: Don't include "error.h".
18624 (save_cwd): Don't call error. Ensure that errno is valid
18625 when returning nonzero.
18627 * lib/save-cwd.h (restore_cwd): Update prototype.
18628 * lib/save-cwd.c (restore_cwd): Remove two parameters.
18629 Simplify. Don't call error upon failure. Let callers do that.
18630 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
18631 when auditing is enabled. But don't bother updating the #if.
18633 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
18635 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
18636 it breaks C++ compilation.
18637 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
18639 2003-07-10 Simon Josefsson <jas@extundo.com>
18641 * modules/strchrnul (Makefile.am): Add strchrnul.h.
18643 2003-07-10 Jim Meyering <jim@meyering.net>
18645 * m4/clock_time.m4: Remove trailing blank.
18646 * m4/intmax_t.m4: Likewise.
18648 2003-07-10 Jim Meyering <jim@meyering.net>
18650 * lib/vasnprintf.c: Remove trailing blanks.
18651 Make cpp indentation consistent.
18653 2003-07-09 Paul Eggert <eggert@twinsun.com>
18655 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
18656 posixver.c, strftime.c, strnlen.c, strverscmp.c:
18657 Switch from LGPL to GPL.
18659 2003-07-09 Paul Eggert <eggert@twinsun.com>
18661 * config/srclist.txt: Sort sublists. Add
18662 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
18663 that differ from gnulib for one reason or another; we'd like this list
18664 to be smaller but for now let's document what we have.
18666 2003-07-08 Paul Eggert <eggert@twinsun.com>
18668 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
18669 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
18670 and sweeter "eval x=$x".
18671 * config/srclist.txt: Get lib/argp* from glibc.
18673 2003-07-07 Paul Eggert <eggert@twinsun.com>
18675 * lib/mktime.c: Fix some boundary cases and remove need for floating
18678 Issue a compile-time diagnostic if time_t is floating point, or if
18679 two's complement arithmetic is not in effect, or if arithmetic
18680 right shift does not propagate the sign. These assumptions were
18681 all in the original code but they weren't checked.
18683 (TIME_T_MIDPOINT, verify): New macros.
18684 (__isleap): Remove; it has integer overflow problems.
18685 (leapyear): New function, without those problems.
18686 (ydhms_tm_diff): Remove; splitting into two parts.
18687 (ydhms_diff): New function, containing the arithmetic part of
18688 the old ydhms_tm_diff function. Issue a compile-time
18689 diagnostic if we are not using C99 integer division.
18690 Avoid casts when possible.
18691 (guess_time_tm): New function, containing the checking part of
18692 the old ydhms_tm_diff function. Return the new value, rather than
18693 the difference between it and the old. Accept a new argument T
18694 so that *T specifies the old value. Check for overflow in the result.
18696 (__mktime_internal): Use a time_t offset, not a long int offset.
18697 This undoes the 2003-06-04 change, which is no longer needed now
18698 that we have better overflow checking.
18699 (localtime_offset): Likewise.
18701 (__mktime_internal): Avoid harmful overflow on hosts where time_t
18702 and long are 64-bit but int is only 32-bit.
18703 (ydhms_diff): Use long int to store year1 and yday1.
18704 Issue a compile-time diagnostic if long int is not wide enough.
18706 (__mktime_internal): Use long int to store adjusted year and yday.
18707 Use plain C rather than preprocessor commands, if that doesn't
18709 Check for overflow (and try to repair) after each probe
18710 rather than checking only at the very end. This avoids some bugs
18711 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
18712 does not equal GMT offset at maximum time).
18713 Use integer to check for overflow rather than floating point; this
18714 is more portable to non-IEEE hosts, and is a tad faster.
18715 When we detect that we are oscillating between two values,
18716 don't check whether tm_isdst has the requested value, since
18717 we already know the answer. When tm_isdst has the wrong value,
18718 use a different heuristic to find the right one, based on the
18719 extreme values actually observed in practice in tz2003a,
18720 rather than the (overly optimistic) "previous 3 calendar quarters".
18722 (not_equal_tm, print_tm, check_result): Use "const T" rather than
18723 "T const" to accommodate glibc style.
18724 (check_result): Use less-confusing report format. "long" -> "long int.
18726 Don't loop if the iteration overflows time_t.
18727 Allow a negative step in the iteration.
18729 2003-07-06 Karl Berry <karl@gnu.org>
18731 * config/depcomp: update from automake.
18732 * config/config.sub: update from prep.
18734 2003-07-03 Karl Berry <karl@gnu.org>
18736 * config/config.guess: update from prep.
18738 2003-07-01 Paul Eggert <eggert@twinsun.com>
18740 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
18741 xreadlink.c now includes it unconditionally.
18743 2003-07-01 Paul Eggert <eggert@twinsun.com>
18745 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
18746 having it depend on HAVE_SYS_TYPES_H.
18748 2003-07-01 Bruno Haible <bruno@clisp.org>
18750 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
18751 <sys/types.h> should be sufficient.
18752 Reported by Paul Eggert.
18754 2003-06-26 Karl Berry <karl@gnu.org>
18756 * config/depcomp: update from automake.
18758 2003-06-26 Bruno Haible <bruno@clisp.org>
18760 * modules/human: Depend on module stdbool.
18762 2003-06-25 Bruno Haible <bruno@clisp.org>
18764 * modules/readlink: New file.
18765 * modules/xreadlink: Depend on it.
18766 * MODULES.html.sh (func_all_modules): Add readlink.
18768 2003-06-25 Bruno Haible <bruno@clisp.org>
18770 * m4/readlink.m4: New file.
18772 2003-06-25 Bruno Haible <bruno@clisp.org>
18774 * lib/readlink.c: New file.
18776 2003-06-22 Karl Berry <karl@gnu.org>
18778 * config/srclist.txt: update mkinstalldirs from automake.
18779 * config/mkinstalldirs: update.
18781 2003-06-22 Bruno Haible <bruno@clisp.org>
18783 Portability to mingw32.
18784 * m4/ssize_t.m4: New file, from GNU gettext.
18785 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
18786 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
18788 2003-06-22 Bruno Haible <bruno@clisp.org>
18790 * modules/safe-read: Add m4/ssize_t.m4.
18791 * modules/xreadlink: Add m4/ssize_t.m4.
18793 2003-06-20 Bruno Haible <bruno@clisp.org>
18795 Assume C89, so PARAMS isn't needed.
18796 * lib/unicodeio.h (PARAMS): Remove.
18797 * lib/unicodeio.c: Don't use PARAMS.
18799 2003-06-18 Karl Berry <karl@gnu.org>
18801 * config/config.{guess,sub}: update from prep.
18803 2003-06-18 Jim Meyering <jim@meyering.net>
18805 Merge changes from coreutils.
18806 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
18807 Remove explicit declarations of xmalloc and realloc.
18809 (read_utmp): Remove anachronistic cast of xmalloc.
18811 2003-06-17 Paul Eggert <eggert@twinsun.com>
18813 Assume C89, so PARAMS isn't needed.
18814 * lib/backupfile.h (PARAMS): Remove. All uses removed.
18815 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
18816 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
18817 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
18818 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
18819 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
18820 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
18821 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
18822 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
18823 lib/xstrtod.h, lib/xstrtol.h: Likewise.
18824 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
18825 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
18826 no longer needed. Anyway, config.h should always be included before any
18829 2003-06-11 Simon Josefsson <jas@extundo.com>
18831 * modules/sysexits: New file.
18832 * MODULES.html.sh (func_all_modules): Add sysexits.
18834 2003-06-11 Simon Josefsson <jas@extundo.com>
18836 * lib/sysexit_.h: New file.
18838 2003-06-11 Derek Price <derek@ximbiot.com>
18840 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
18843 2003-06-11 Bruno Haible <bruno@clisp.org>
18845 * m4/sysexits.m4: New file.
18847 2003-06-10 Simon Josefsson <jas@extundo.com>
18849 * lib/argp.h: New file, from glibc.
18850 * lib/argp-ba.c: New file, from glibc.
18851 * lib/argp-eexst.c: New file, from glibc.
18852 * lib/argp-fmtstream.c: New file, from glibc.
18853 * lib/argp-fmtstream.h: New file, from glibc.
18854 * lib/argp-fs-xinl.c: New file, from glibc.
18855 * lib/argp-help.c: New file, from glibc.
18856 * lib/argp-namefrob.h: New file, from glibc.
18857 * lib/argp-parse.c: New file, from glibc.
18858 * lib/argp-pv.c: New file, from glibc.
18859 * lib/argp-pvh.c: New file, from glibc.
18860 * lib/argp-xinl.c: New file, from glibc.
18862 2003-06-10 Simon Josefsson <jas@extundo.com>
18864 * modules/strchrnul: New file.
18866 2003-06-10 Simon Josefsson <jas@extundo.com>
18868 * modules/argp: New file.
18870 2003-06-10 Simon Josefsson <jas@extundo.com>
18872 * m4/strchrnul.m4: New file.
18874 2003-06-10 Simon Josefsson <jas@extundo.com>
18876 * lib/strchrnul.h: New file.
18877 * lib/strchrnul.c: New file.
18879 2003-06-10 Bruno Haible <bruno@clisp.org>
18881 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
18883 2003-06-07 Karl Berry <karl@gnu.org>
18885 * config/config.{guess,sub}: update from prep.
18887 2003-06-07 Jim Meyering <jim@meyering.net>
18889 * modules/strtod: Use $(...) notation, not @...@ for
18890 AC_REPLACE'd variables.
18891 * modules/localcharset: Likewise.
18893 2003-06-07 Jim Meyering <jim@meyering.net>
18895 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
18896 in place of my name in the copyright comment.
18897 Remove definition and uses of __P.
18900 * lib/stat.c: Don't declare xmalloc explicitly.
18901 Instead, include "xalloc.h".
18902 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
18903 xrealloc, and xcalloc return values.
18904 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
18906 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
18908 2003-06-07 Bruno Haible <bruno@clisp.org>
18910 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
18911 avoid AC_CONFIG_LINKS.
18912 * modules/fnmatch (Makefile.am): Use explicit creation rule for
18913 fnmatch.h, to avoid AC_CONFIG_LINKS.
18914 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
18916 2003-06-07 Bruno Haible <bruno@clisp.org>
18918 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
18919 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
18920 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18922 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
18923 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
18926 2003-06-06 Jim Meyering <jim@meyering.net>
18928 Merge from coreutils.
18929 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
18930 Consolidate declarations and initializations of *_base* locals.
18932 Merge from coreutils.
18933 This avoids a core dump on systems without GNU putenv,
18934 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
18935 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
18936 (unsetenv): New static function, from GNU libc.
18937 (rpl_putenv): Use it.
18939 * lib/modechange.c: Remove trailing blanks.
18941 Merge from coreutils.
18942 * lib/fsusage.c: Remove declaration of statfs.
18943 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
18945 * lib/posixtm.c: Include <stdbool.h> unconditionally.
18947 2003-06-06 Jim Meyering <jim@meyering.net>
18949 * lib/stdbool_.h: Renamed from stdbool.h.in.
18951 2003-06-06 Jim Meyering <jim@meyering.net>
18952 Bruno Haible <bruno@clisp.org>
18954 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
18955 Adjust Makefile.am snippet not to redirect directly to target.
18956 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
18958 2003-06-05 Paul Eggert <eggert@twinsun.com>
18960 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
18961 mismatch, look in future quarters as well as past. This fixes a
18962 bug when processing fall-backwards gaps immediately after a long
18963 period of daylight-saving time.
18965 * lib/mktime.c: Assume freestanding C89 or better.
18966 (HAVE_LIMITS_H): Remove. Assume it's 1.
18967 (__P): Remove; not used.
18968 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
18969 (mktime, not_equal_tm, print_tm, check_result,
18970 main): Use prototypes. Use const * where appropriate.
18971 (main): Fix typo in testing code that uncovered by above changes.
18972 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
18974 2003-06-04 Paul Eggert <eggert@twinsun.com>
18976 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
18977 locale.h, localeconv. This merges changes from coreutils.
18979 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
18980 It can be removed after the next Autoconf is released.
18981 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
18984 2003-06-04 Paul Eggert <eggert@twinsun.com>
18986 * lib/mktime.c: Fix Debian bug 177940
18987 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
18988 (localtime_offset): Now long int, not time_t, because we want it
18989 to be guaranteed to be signed. All uses changed.
18990 (__mktime_internal): If overflow would occur when adding offset,
18993 Merge 'human' changes from coreutils. Rewrite to support
18994 locale-specific notations like thousands separators.
18995 * lib/human.c: Simplify authorship notice.
18996 Include human.h immediately after config.h.
18997 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
18998 <limits.h>: Do not include, since human.h does.
18999 (SIZE_MAX, UINTMAX_MAX): New macros.
19000 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19001 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19002 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19003 (power_letter): Renamed from suffixes.
19004 (generate_suffix_backwards): Remove.
19005 (adjust_value): Now takes int style (because of human.h changes)
19006 and long double value (for greater precision on some platforms).
19007 (group_number): New function.
19008 (human_readable): Use it. Use integer options, not enum.
19009 Put the options before the sizes in the arg list.
19010 Support all the new options.
19011 The old human_readable function has been removed;
19012 use inttostr.h instead.
19013 (human_readable, default_block_size, humblock):
19014 Use uintmax_t, not int, for block sizes.
19015 (human_readable_inexact, block_size_types): Remove.
19016 (block_size_opts): New constant.
19017 (human_options): Renamed from human_block_size, with new signature
19018 that allows block sizes up to UINTMAX_MAX. All callers changed.
19019 * lib/human.h: Add copyright and authorship notice.
19020 Include <limits.h> and <stdbool.h> unconditionally.
19021 (PARAMS): Remove. All uses removed.
19022 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19023 (enum human_inexact_style): Remove tag; now a nameless enum.
19024 (human_floor, human_ceiling, human_round_to_even): Now have
19025 values 2, 0, 1 rather than -1, 1, 0.
19026 (human_group_digits, human_suppress_point_zero, human_autoscale,
19027 human_base_1024, human_SI, human_B): New constants.
19028 (human_readable_inexact, human_block_size): Remove.
19029 (human_readable): Size args are now uintmax_t, not int.
19030 (human_options): New decl.
19032 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19033 unnecessary now that we assume C89 or better. This change
19034 imported from coreutils.
19036 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19037 arbitrarily. This is the same patch as 2003-05-28, but it got lost
19038 in the 2003-05-30 sync from glibc.
19040 .h files should stand alone, but we shouldn't include <sys/types.h>
19041 if we can get away with just <stddef.h>.
19043 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19044 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19045 rather than <sys/types.h>, as we merely need size_t.
19046 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19048 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19049 Include <stdio.h>, to get FILE.
19050 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19051 memcasecmp.h has included <stddef.h> and all we need is size_t.
19052 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19053 our interface, instead of including <sys/types.h>
19055 2003-06-04 Paul Eggert <eggert@twinsun.com>
19057 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19058 now, as glibc mktime is buggy on non-glibc systems.
19060 2003-06-03 Karl Berry <karl@gnu.org>
19062 * config/config.sub: update from prep.
19064 2003-06-02 Paul Eggert <eggert@twinsun.com>
19067 Fix some minor time-related bugs with POSIX time arguments.
19068 Some valid time stamps were being rejected (notably -1, and
19069 time stamps before 1900 on 64-bit hosts). And some invalid
19070 time stamps were being accepted, e.g. September 31.
19072 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19073 that we can return (time_t) -1 successfully.
19074 * lib/posixtm.c: Likewise.
19075 [HAVE_STDBOOL_H]: Include <stdbool.h>.
19076 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19077 (t): Remove static var.
19078 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19079 of static var. All uses changed.
19080 (year): Do not reject years before 1900; they can occur with
19082 (posix_time_parse): Do not check for out-of-range components;
19083 that is now the caller's responsibility, since our checks were
19084 only approximations.
19085 (posixtime): Use mktime to check for out-of-range components,
19086 since it knows them exactly.
19087 If mktime returns (time_t) -1, check whether an error actually occurred
19088 by invoking localtime on -1.
19089 (main) [TEST_POSIXTIME]: Check for input data errors, and report
19090 posixtime failures better.
19091 Improve the test data (in comments only).
19093 2003-06-02 Karl Berry <karl@gnu.org>
19095 * config/mkinstalldirs (version): new variable.
19096 (--version): new option.
19097 (usage): improve message.
19099 2003-05-30 Karl Berry <karl@gnu.org>
19101 * lib/mktime.c: update from libc.
19103 2003-05-30 Bruno Haible <bruno@clisp.org>
19105 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
19106 * config/config.rpath: Upgrade to gettext-0.12.1.
19108 2003-05-30 Bruno Haible <bruno@clisp.org>
19110 * m4/gettext.m4: Upgrade to gettext-0.12.1.
19111 * m4/nls.m4: New file, from gettext-0.12.1.
19112 * m4/po.m4: New file, from gettext-0.12.1.
19113 * m4/progtest.m4: Upgrade to gettext-0.12.1.
19115 2003-05-30 Bruno Haible <bruno@clisp.org>
19117 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
19118 * lib/localcharset.h: Likewise.
19119 * lib/localcharset.c: Likewise.
19121 2003-05-29 Karl Berry <karl@gnu.org>
19123 * config/config.rpath: update from gettext.
19125 2003-05-28 Paul Eggert <eggert@twinsun.com>
19127 Assume the headers required for C89 freestanding compilers.
19128 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
19129 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
19130 * m4/human.m4 (gl_HUMAN): Likewise.
19131 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
19132 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
19133 * m4/userspec.m4 (gl_USERSPEC): Likewise.
19134 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
19135 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19136 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
19138 2003-05-28 Paul Eggert <eggert@twinsun.com>
19140 Assume the headers required for C89 freestanding compilers.
19141 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
19142 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
19143 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
19144 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
19145 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
19146 define, since <limits.h> is guaranteed to do that.
19147 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
19148 * lib/exclude.c: Include <stdbool.h> unconditionally.
19149 * lib/tempname.c: Include <stddef.h> unconditionally.
19150 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
19151 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
19152 <stddef.h> does that.
19153 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
19154 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
19155 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
19157 * lib/xstrtol.c: Likewise.
19158 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
19159 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
19161 * lib/addext.c (addext): Use assignment rather than cast, to avoid
19162 warnings on some platforms.
19164 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19167 2003-05-26 Jim Meyering <jim@meyering.net>
19169 Merge in a change from coreutils:
19170 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
19171 that is guaranteed to be `no'. Use `no_such_member' to indicate
19172 that condition, rather than `-1' which is slightly misleading.
19173 Change the name of the cache variable to have the gl_ prefix.
19174 Prompted by a patch from Richard Dawe for DJGPP.
19176 2003-05-24 Karl Berry <karl@gnu.org>
19178 * config/config.guess: update from prep.
19180 2003-05-22 Karl Berry <karl@gnu.org>
19182 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
19184 2003-05-20 Karl Berry <karl@gnu.org>
19186 * config/config.guess: update from prep.
19188 2003-05-18 Karl Berry <karl@gnu.org>
19190 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
19191 might actually be set by the user.
19193 * config/depcomp, install-sh, mdate-sh: update from automake.
19195 2003-05-17 Bruno Haible <bruno@clisp.org>
19197 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
19198 invalid expansion for AC_EGREP_CPP.
19199 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19200 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19201 Suggested by Akim Demaille <akim@epita.fr> in
19202 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
19204 2003-05-12 Jim Meyering <jim@meyering.net>
19206 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
19207 the space-padded-by-default conversion specifiers, %e, %k, %l.
19209 2003-05-12 Bruno Haible <bruno@clisp.org>
19211 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
19212 the string is longer than 4 KB.
19214 2003-05-11 Karl Berry <karl@gnu.org>
19216 * config/config.{guess,sub}: update from prep.
19218 2003-05-09 Bruno Haible <bruno@clisp.org>
19220 * modules/error: Add m4/strerror_r.m4 to file list.
19222 2003-05-03 Bruno Haible <bruno@clisp.org>
19224 Upgrade to Unicode-4.0.
19225 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
19226 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
19227 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
19228 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
19229 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
19230 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
19231 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
19232 Change width of U+E0100..U+E01EF from 1 to 0.
19234 2003-04-25 Jim Meyering <jim@meyering.net>
19236 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
19237 of type size_t, not int.
19239 2003-04-25 Bruno Haible <bruno@clisp.org>
19241 * lib/copy-file.c: Include <stddef.h>, for size_t.
19243 2003-04-21 Paul Eggert <eggert@twinsun.com>
19245 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
19246 code which expansion is under static control. Patch imported from
19247 Akim Demaille's patch to Bison; see
19248 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
19250 2003-04-14 Bruno Haible <bruno@clisp.org>
19252 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
19254 2003-04-11 Jim Meyering <jim@meyering.net>
19256 Merge changes from Coreutils.
19258 2003-03-22 Jim Meyering <jim@meyering.net>
19260 * lib/strftime.c (widen): Cast alloca return value to proper type.
19262 2003-01-19 Ulrich Drepper <drepper@redhat.com>
19265 * lib/strftime.c (my_strftime): Handle very large width
19266 specifications for numeric values correctly. Improve checks for
19269 2003-01-19 Jim Meyering <jim@meyering.net>
19271 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
19273 (nl_get_alt_digit) [! defined my_strftime]: Define.
19274 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
19275 _nl_get_alt_digit and _nl_get_walt_digit.
19277 * lib/strftime.c (my_strftime): Merge in locale-related changes from
19278 libc. These changes have no effect outside of _LIBC.
19280 2003-04-10 Bruno Haible <bruno@clisp.org>
19282 * modules/findprog: New file.
19283 * MODULES.html.sh (func_all_modules): Add it.
19285 2003-04-10 Bruno Haible <bruno@clisp.org>
19287 * m4/findprog.m4: New file.
19288 * m4/eaccess.m4: New file.
19290 2003-04-10 Bruno Haible <bruno@clisp.org>
19292 * lib/findprog.h: New file, from GNU gettext.
19293 * lib/findprog.c: New file, from GNU gettext.
19295 2003-04-05 Jim Meyering <jim@meyering.net>
19297 Merge changes from Coreutils.
19299 * lib/exclude.h (PARAMS): Remove definition and uses.
19300 * lib/exclude.c: Remove uses of `PARAMS'.
19302 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
19303 Add test-cases for DOS filenames. Declare program_name.
19304 (main): Set up program_name. Patch by Rich Dawe.
19306 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19308 Use mntctl's return value to drive the entry-processing loop, since
19309 we can't rely on the value of the vmt_length member in the last
19310 entry. On some systems doing so could result in exhausting
19311 virtual memory. Based in part on a patch from Mike Jetzer.
19313 2003-04-04 Bruno Haible <bruno@clisp.org>
19315 * modules/linebreak: New file.
19316 * MODULES.html.sh (func_all_modules): Add it.
19318 2003-04-04 Bruno Haible <bruno@clisp.org>
19320 * m4/linebreak.m4: New file.
19322 2003-04-04 Bruno Haible <bruno@clisp.org>
19324 * lib/linebreak.h: New file, from GNU gettext.
19325 * lib/linebreak.c: New file, from GNU gettext with slight
19327 * lib/lbrkprop.h: New file, from GNU gettext.
19329 2003-04-03 Bruno Haible <bruno@clisp.org>
19331 * modules/utf8-ucs4: New file.
19332 * modules/utf16-ucs4: New file.
19333 * modules/ucs4-utf8: New file.
19334 * modules/ucs4-utf16: New file.
19335 * MODULES.html.sh (func_all_modules): Add them.
19337 2003-04-03 Bruno Haible <bruno@clisp.org>
19339 * m4/utf-ucs4.m4: New file.
19340 * m4/ucs4-utf.m4: New file.
19342 2003-04-03 Bruno Haible <bruno@clisp.org>
19344 * lib/utf8-ucs4.h: New file, from GNU gettext.
19345 * lib/utf16-ucs4.h: New file, from GNU gettext.
19346 * lib/ucs4-utf8.h: New file, from GNU gettext.
19347 * lib/ucs4-utf16.h: New file, from GNU gettext.
19349 2003-04-02 Bruno Haible <bruno@clisp.org>
19351 * modules/binary-io: New file.
19352 * MODULES.html.sh (func_all_modules): Add it.
19354 2003-04-02 Bruno Haible <bruno@clisp.org>
19356 * lib/binary-io.h: New file, from GNU gettext.
19358 2003-04-01 Bruno Haible <bruno@clisp.org>
19360 * modules/pathname: New file.
19361 * MODULES.html.sh (func_all_modules): Add it.
19363 2003-04-01 Bruno Haible <bruno@clisp.org>
19365 * lib/pathname.h: New file, from GNU gettext.
19366 * lib/concatpath.c: New file, from GNU gettext.
19368 2003-03-30 Bruno Haible <bruno@clisp.org>
19370 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
19372 2003-03-30 Bruno Haible <bruno@clisp.org>
19374 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
19375 function chown() doesn't exist.
19377 2003-03-28 Bruno Haible <bruno@clisp.org>
19379 * modules/copy-file: New file.
19380 * MODULES.html.sh (func_all_modules): Add it.
19382 2003-03-28 Bruno Haible <bruno@clisp.org>
19384 * m4/copy-file.m4: New file.
19386 2003-03-28 Bruno Haible <bruno@clisp.org>
19388 * lib/copy-file.h: New file, from GNU gettext.
19389 * lib/copy-file.c: New file, from GNU gettext.
19391 2003-03-18 Jim Meyering <jim@meyering.net>
19393 * lib/quote.c (quote_n): Fix typo in comment.
19395 2003-03-18 Bruno Haible <bruno@clisp.org>
19397 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
19399 * m4/onceonly_2_57.m4: Likewise.
19401 2003-03-17 Bruno Haible <bruno@clisp.org>
19403 * m4/onceonly.m4: Require autoconf 2.54 or newer.
19404 (m4_quote): Remove macro.
19405 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
19407 2003-03-14 Jim Meyering <jim@meyering.net>
19409 Merge changes from Coreutils.
19410 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
19411 to be const, in order to avoid warnings.
19412 (obstack_room): Likewise.
19413 (obstack_empty_p): Likewise.
19415 2003-03-14 Bruno Haible <bruno@clisp.org>
19417 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
19418 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
19420 2003-03-13 Paul Eggert <eggert@twinsun.com>
19422 Merge changes from Bison.
19423 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
19424 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
19425 when compiling Bison 1.875's `bitset bset = obstack_alloc
19426 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
19427 * lib/hash.c: Include <stdbool.h> unconditionally.
19429 2003-03-13 Paul Eggert <eggert@twinsun.com>
19431 * m4/onceonly.m4 (m4_quote): New macro.
19432 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
19433 Quote AC_FOREACH variable-expansions properly.
19435 2003-03-13 Paul Eggert <eggert@twinsun.com>
19437 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
19439 2003-03-09 Paul Eggert <eggert@twinsun.com>
19441 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
19442 Reported by Bruce Becker; see:
19443 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
19445 2003-03-03 Paul Eggert <eggert@twinsun.com>
19446 Bruno Haible <bruno@clisp.org>
19448 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
19449 Reported by John Hughes, see
19450 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
19452 2003-02-20 Bruno Haible <bruno@clisp.org>
19454 * MODULES.html.sh (func_all_modules): Add poll.
19456 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
19458 * modules/poll: New file.
19460 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
19462 * lib/poll_.h: New file.
19463 * lib/poll.c: New file.
19465 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
19467 * m4/poll.m4: New file.
19469 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
19471 * modules/mathl: New file.
19473 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
19475 * lib/mathl.h: New file.
19476 * lib/acosl.c: New file.
19477 * lib/asinl.c: New file.
19478 * lib/atanl.c: New file.
19479 * lib/ceill.c: New file.
19480 * lib/cosl.c: New file.
19481 * lib/expl.c: New file.
19482 * lib/floorl.c: New file.
19483 * lib/frexpl.c: New file.
19484 * lib/ldexpl.c: New file.
19485 * lib/logl.c: New file.
19486 * lib/sincosl.c: New file.
19487 * lib/sinl.c: New file.
19488 * lib/sqrtl.c: New file.
19489 * lib/tanl.c: New file.
19490 * lib/trigl.c: New file.
19491 * lib/trigl.h: New file.
19493 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
19495 * m4/mathl.m4: New file.
19497 2003-02-18 Bruno Haible <bruno@clisp.org>
19499 * MODULES.html.sh (func_all_modules): Add mathl.
19501 2003-02-17 Bruno Haible <bruno@clisp.org>
19503 * modules/mkdtemp: New module.
19504 * MODULES.html.sh (func_all_modules): Add it.
19506 2003-02-17 Bruno Haible <bruno@clisp.org>
19508 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
19510 2003-02-17 Bruno Haible <bruno@clisp.org>
19512 * lib/mkdtemp.h: New file, from GNU gettext.
19513 * lib/mkdtemp.c: New file, from GNU gettext.
19515 2003-02-02 Jim Meyering <jim@meyering.net>
19517 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
19520 2003-01-31 Bruno Haible <bruno@clisp.org>
19522 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
19524 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
19526 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
19528 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
19531 2003-01-31 Bruno Haible <bruno@clisp.org>
19533 * lib/rename.c: #undef rename before defining rpl_rename.
19534 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
19536 2003-01-30 Bruno Haible <bruno@clisp.org>
19538 * modules/vasnprintf, modules/vasprintf: New modules.
19539 * MODULES.html.sh (func_all_modules): Add them.
19541 2003-01-30 Bruno Haible <bruno@clisp.org>
19543 * m4/signed.m4: New file, from GNU gettext.
19544 * m4/longdouble.m4: New file, from GNU gettext.
19545 * m4/wchar_t.m4: New file, from GNU gettext.
19546 * m4/wint_t.m4: New file, from GNU gettext.
19547 * m4/vasnprintf.m4: New file.
19548 * m4/vasprintf.m4: New file.
19550 2003-01-30 Bruno Haible <bruno@clisp.org>
19552 * lib/printf-args.h: New file, from GNU gettext.
19553 * lib/printf-args.c: New file, from GNU gettext.
19554 * lib/printf-parse.h: New file, from GNU gettext.
19555 * lib/printf-parse.c: New file, from GNU gettext.
19556 * lib/vasnprintf.h: New file, from GNU gettext.
19557 * lib/vasnprintf.c: New file, from GNU gettext.
19558 * lib/asnprintf.c: New file, from GNU gettext.
19559 * lib/vasprintf.h: New file, from GNU gettext with modifications.
19560 * lib/vasprintf.c: New file, from GNU gettext.
19561 * lib/asprintf.c: New file, from GNU gettext.
19563 2003-01-29 Bruno Haible <bruno@clisp.org>
19565 * modules/stpncpy: New module.
19566 * MODULES.html.sh (func_all_modules): Add it.
19568 2003-01-29 Bruno Haible <bruno@clisp.org>
19570 * m4/stpncpy.m4: New file.
19572 2003-01-29 Bruno Haible <bruno@clisp.org>
19574 * lib/stpncpy.h: New file, from GNU gettext with modifications.
19575 * lib/stpncpy.c: New file, from GNU gettext with modifications.
19577 2003-01-28 Bruno Haible <bruno@clisp.org>
19579 * modules/c-ctype: New module.
19580 * MODULES.html.sh (func_all_modules): Add it.
19582 2003-01-28 Bruno Haible <bruno@clisp.org>
19584 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
19586 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
19589 2003-01-27 Bruno Haible <bruno@clisp.org>
19591 * modules/xsetenv: New module.
19592 * MODULES.html.sh (func_all_modules): Add it.
19594 2003-01-27 Bruno Haible <bruno@clisp.org>
19596 * lib/xsetenv.h: New file, from GNU gettext.
19597 * lib/xsetenv.c: New file, from GNU gettext.
19599 2003-01-23 Jim Meyering <jim@meyering.net>
19601 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
19602 from working on systems without dirfd (at least Irix and OSF1/Tru64).
19604 2003-01-23 Bruno Haible <bruno@clisp.org>
19606 * modules/minmax: New module.
19607 * MODULES.html.sh (func_all_modules): Add it.
19609 2003-01-23 Bruno Haible <bruno@clisp.org>
19611 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
19614 2003-01-22 Bruno Haible <bruno@clisp.org>
19616 * modules/exit: New module.
19617 * MODULES.html.sh (func_all_modules): Add it.
19619 2003-01-22 Bruno Haible <bruno@clisp.org>
19621 * lib/exit.h: New file, from GNU gettext.
19623 2003-01-19 Bruno Haible <bruno@clisp.org>
19625 * gnulib-tool: Recognize option --extract-maintainer.
19626 (func_get_maintainer): New function.
19627 * modules/*: Add Maintainer entry.
19629 2003-01-16 Jim Meyering <jim@meyering.net>
19631 * m4/regex.m4: The `regex' struct is both input and output.
19632 Initialize it before each use. Patch by Tim Waugh.
19634 2003-01-16 Bruno Haible <bruno@clisp.org>
19636 * MODULES.html.sh: Add a table of contents. Add the module name as
19637 leftmost column. Add hyperlinks.
19639 2003-01-15 Bruno Haible <bruno@clisp.org>
19641 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
19643 2003-01-15 Bruno Haible <bruno@clisp.org>
19645 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
19646 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
19649 2003-01-15 Bruno Haible <bruno@clisp.org>
19651 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
19653 2003-01-15 Bruno Haible <bruno@clisp.org>
19655 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
19656 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
19658 2003-01-14 Jim Meyering <jim@meyering.net>
19660 * lib/same.c (same_name): Tweak a comment.
19662 2003-01-14 Bruno Haible <bruno@clisp.org>
19664 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
19665 when a string comparison is sufficient.
19667 2003-01-14 Bruno Haible <bruno@clisp.org>
19669 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
19672 2003-01-14 Bruno Haible <bruno@clisp.org>
19674 * lib/hash-pjw.c: Add comment about low quality of this function.
19676 2003-01-13 Bruno Haible <bruno@clisp.org>
19678 * modules/stpcpy: Distribute lib/stpcpy.h.
19679 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
19681 2003-01-13 Bruno Haible <bruno@clisp.org>
19683 * modules/*: Add a description.
19684 * modules/strpbrk: Fix Makefile.am snippet.
19685 * modules/strtoimax: Fix dependencies.
19686 * modules/strtoumax: Likewise.
19688 2003-01-13 Bruno Haible <bruno@clisp.org>
19690 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
19691 * modules/alloca (Makefile.am): All object files depend on alloca.h.
19692 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
19694 2003-01-13 Bruno Haible <bruno@clisp.org>
19696 * gnulib-tool (func_create_testdir): Store config/* files in the main
19698 * config.rpath: Move to ...
19699 * config/config.rpath: ... here.
19700 * modules/gettext: Contains config/config.rpath, not config.rpath.
19701 * modules/iconv: Likewise.
19703 2003-01-12 Paul Eggert <eggert@twinsun.com>
19705 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19706 to avoid collisions with libcurses and libreadline.
19708 * m4/getstr.m4: Remove.
19709 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
19711 2003-01-12 Paul Eggert <eggert@twinsun.com>
19713 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19714 to avoid collisions with libcurses and libreadline.
19716 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
19717 * lib/getstr.h, getstr.c: Remove.
19718 * lib/getline.c: Include "getline.h", to check interface.
19719 Move body of old getstr.c here: this defines MIN_CHUNK and
19720 declares getdelim2, which is renamed from getstr.
19721 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
19723 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
19725 * lib/linebuffer.h: Likewise.
19726 (readline): Remove backward-compatibility macro.
19728 2003-01-12 Paul Eggert <eggert@twinsun.com>
19730 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
19731 to avoid collisions with libcurses and libreadline.
19733 * MODULES.html.sh: Remove getstr.
19734 * modules/getline: Depend on unlocked-io, not getstr.
19736 2003-01-12 Jim Meyering <jim@meyering.net>
19738 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
19740 2003-01-10 Bruno Haible <bruno@clisp.org>
19742 * modules/alloca: Change Makefile.am requirements. Simplify Include
19743 requirements. Add lib/alloca_.h to file list.
19745 2003-01-10 Bruno Haible <bruno@clisp.org>
19747 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
19749 2003-01-10 Bruno Haible <bruno@clisp.org>
19751 * lib/alloca_.h: New file.
19752 * lib/getdate.y: Unconditionally include alloca.h.
19753 * lib/makepath.c: Likewise.
19754 * lib/setenv.c: Likewise.
19755 * lib/userspec.c: Likewise.
19757 2003-01-09 Karl Berry <karl@gnu.org>
19759 * MODULES.html.sh: include `dirname $0` in PATH, to find
19762 2003-01-09 Bruno Haible <bruno@clisp.org>
19764 * modules/stdbool: Change configure.ac, Makefile.am requirements.
19765 Simplify Include requirements. Add lib/stdbool.h.in to file list.
19767 2003-01-09 Bruno Haible <bruno@clisp.org>
19769 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
19771 2003-01-09 Bruno Haible <bruno@clisp.org>
19773 * lib/stdbool.h.in: New file.
19775 2003-01-09 Bruno Haible <bruno@clisp.org>
19777 * gnulib-tool (func_all_modules): Ignore files ending in ~.
19778 * MODULES.html.sh: Likewise.
19780 2003-01-08 Jim Meyering <jim@meyering.net>
19782 * lib/full-write.c: Undefine and define-away `const' after inclusion
19783 of errno.h, not before. Suggestion from Bruno Haible.
19785 2003-01-08 Bruno Haible <bruno@clisp.org>
19787 * modules/full-read: Depend on full-write.
19789 2003-01-08 Bruno Haible <bruno@clisp.org>
19791 * lib/safe-read.c: Include specification header first, to ensure its
19793 * lib/full-write.c: Likewise.
19795 2003-01-07 Jim Meyering <jim@meyering.net>
19797 * lib/full-write.c: Rework so that it may serve to define full_read,
19799 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
19801 2003-01-07 Bruno Haible <bruno@clisp.org>
19803 * lib/strtoimax.c: Include <stdint.h> as an alternative to
19805 * lib/xstrtol.h: Likewise.
19806 * lib/xstrtoimax.c: Likewise.
19807 * lib/xstrtoumax.c: Likewise.
19808 * lib/human.h: Likewise.
19810 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
19811 on systems that have <inttypes.h> but not <stdint.h>.
19813 2003-01-07 Bruno Haible <bruno@clisp.org>
19815 * MODULES.html.sh: Add copyright notice.
19816 (missed_files): Omit CVS directory entries.
19817 (func_module): Make it work with sed-3.02.
19818 * MODULES.txt: Remove file.
19820 2003-01-06 Jim Meyering <jim@meyering.net>
19822 * lib/version-etc.c: Update year in translatable copyright string.
19824 2003-01-03 Karl Berry <karl@gnu.org>
19826 * config/config.{guess,sub}: update from prep.
19828 2003-01-02 Karl Berry <karl@gnu.org>
19830 * doc/COPYING.DOC: belatedly updated to 1.2.
19832 2003-01-01 Karl Berry <karl@gnu.org>
19834 * gnulib-tool (func_verify_module): report module name $module in
19835 error message, not $1.
19836 * gnulib-tool (create-testdir): don't complain if destdir couldn't
19837 be created, only if it doesn't exist.
19838 * gnulib-tool (last_checkin_date): don't expand the $Date here.
19840 2002-12-31 Paul Eggert <eggert@twinsun.com>
19842 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
19844 2002-12-31 Paul Eggert <eggert@twinsun.com>
19846 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
19847 memcmp if strcoll doesn't work.
19849 2002-12-31 Bruno Haible <bruno@clisp.org>
19851 * lib/utime.c (utime_null): No need to call ftruncate if the file was
19854 2002-12-31 Bruno Haible <bruno@clisp.org>
19856 * lib/memcoll.c (STRCOLL): New macro.
19859 2002-12-31 Bruno Haible <bruno@clisp.org>
19861 * lib/localcharset.h: New file.
19862 * lib/localcharset.c: Include it.
19863 * lib/unicodeio.c: Likewise.
19865 2002-12-31 Bruno Haible <bruno@clisp.org>
19867 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
19868 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
19870 2002-12-31 Bruno Haible <bruno@clisp.org>
19872 * lib/getline.h: Include <stddef.h>, for size_t.
19874 * lib/unicodeio.h: Include <stddef.h>, for size_t.
19875 * lib/unicodeio.c: Don't include <stddef.h>.
19877 2002-12-31 Bruno Haible <bruno@clisp.org>
19879 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
19882 2002-12-24 Karl Berry <karl@gnu.org>
19884 * config/config.guess: update from prep.
19886 2002-12-24 Bruno Haible <bruno@clisp.org>
19888 General infrasructure.
19889 * m4/README: Rewritten.
19890 * m4/onceonly.m4: New file.
19891 * m4/onceonly_2_57.m4: New file.
19894 * m4/atexit.m4: New file.
19897 * m4/strtod.m4: New file.
19900 * m4/strtol.m4: New file.
19903 * m4/strtoul.m4: New file.
19906 * m4/memchr.m4: New file.
19909 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
19910 (jm_FUNC_MEMCMP): Invoke it.
19913 * m4/memcpy.m4: New file.
19916 * m4/memmove.m4: New file.
19919 * m4/memset.m4: New file.
19922 * m4/strcspn.m4: New file.
19925 * m4/strpbrk.m4: New file.
19928 * m4/strstr.m4: New file.
19931 * m4/strerror.m4: New file.
19934 * m4/mktime.m4: Renamed from jm-mktime.m4.
19935 (gl_PREREQ_MKTIME): New macro.
19936 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
19939 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
19940 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
19941 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
19944 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
19945 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
19946 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
19949 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
19950 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
19951 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
19953 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
19956 * m4/xalloc.m4: New file.
19959 * m4/alloca.m4: New file.
19962 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19963 (jm_FUNC_PUTENV): Invoke it.
19966 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
19967 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
19968 when invoked twice.
19969 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
19973 * m4/memrchr.m4: New file.
19976 * m4/stpcpy.m4: New file.
19979 * m4/strcase.m4: New file.
19982 * m4/strdup.m4: New file.
19985 * m4/strnlen.m4: New file.
19988 * m4/strndup.m4: New file.
19991 * m4/xstrtod.m4: New file.
19994 * m4/xstrtol.m4: New file.
19997 * m4/getdate.m4: New file.
19999 Module unlocked-io.
20000 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20001 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20002 * m4/jm-glibc-io.m4n: Remove file.
20004 Module long-options.
20005 * m4/long-options.m4: New file.
20008 * m4/md5.m4: New file.
20011 * m4/sha.m4: New file.
20014 * m4/getstr.m4: New file.
20017 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20018 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20019 <sys/types.h>, for size_t. Use the function name gnu_getline, not
20020 simply getline. Infoke gl_PREREQ_GETLINE.
20023 * m4/obstack.m4: New file.
20026 * m4/hash.m4: New file.
20029 * m4/readtokens.m4: New file.
20032 * m4/strverscmp.m4: New file.
20035 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20039 * m4/strtoll.m4: New file.
20042 * m4/strtoull.m4: New file.
20045 * m4/strtoimax.m4: New file.
20048 * m4/strtoumax.m4: New file.
20051 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20052 jm_AC_PREREQ_XSTRTOIMAX.
20053 Moved the strtol prerequisites to strtol.m4.
20054 Moved the strtoll prerequisites to strtoll.m4.
20055 Moved the strtoimax prerequisites to strtoimax.m4.
20058 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20059 jm_AC_PREREQ_XSTRTOUMAX.
20060 Moved the strtoul prerequisites to strtoul.m4.
20061 Moved the strtoull prerequisites to strtoull.m4.
20062 Moved the strtoumax prerequisites to strtoumax.m4.
20065 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20066 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20069 * m4/dup2.m4: New file.
20072 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20073 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20076 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20077 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20079 Module gettimeofday.
20080 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20081 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
20082 gl_PREREQ_GETTIMEOFDAY.
20085 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
20086 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
20089 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
20090 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
20091 jm_AC_TYPE_UINTMAX_T.
20092 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
20095 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
20096 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
20099 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
20100 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
20103 * m4/timespec.m4 (gl_TIMESPEC): New macro.
20104 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
20105 * m4/st_mtim.m4: Indentation.
20108 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
20109 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
20110 gl_PREREQ_NANOSLEEP.
20113 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
20114 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
20115 (gl_REGEX): New macro.
20118 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
20119 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
20122 * m4/rmdir.m4: New file.
20125 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
20126 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
20127 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
20130 * m4/dirname.m4: New file.
20133 * m4/getopt.m4: New file.
20135 Module unistd-safer.
20136 * m4/unistd-safer.m4: New file.
20139 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
20141 (gl_PREREQ_FNMATCH_EXTRA): New macro.
20142 (gl_FUNC_FNMATCH_POSIX): New macro.
20143 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
20144 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
20148 * m4/exclude.m4: New file.
20151 * m4/human.m4: New file.
20157 * m4/backupfile.m4: New file.
20158 * m4/d-ino.m4: Indentation.
20161 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
20162 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
20163 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
20166 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
20170 * m4/euidaccess.m4: New file.
20173 * m4/file-type.m4: New file.
20176 * m4/fileblocks.m4: New file.
20179 * m4/filemode.m4: New file.
20182 * m4/isdir.m4: New file.
20185 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
20186 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
20189 * m4/makepath.m4: New file.
20192 * m4/modechange.m4: New file.
20195 * m4/mountlist.m4: New file.
20196 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
20199 Module path-concat.
20200 * m4/path-concat.m4: New file.
20203 * m4/pathmax.m4: New file.
20206 * m4/same.m4: New file.
20209 * m4/save-cwd.m4: New file.
20212 * m4/savedir.m4: New file.
20215 * m4/xgetcwd.m4: New file.
20216 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
20219 * m4/xreadlink.m4: New file.
20222 * m4/safe-read.m4: New file.
20225 * m4/safe-write.m4: New file.
20228 * m4/closeout.m4: New file.
20230 Module stdio-safer.
20231 * m4/stdio-safer.m4: New file.
20234 * m4/getpass.m4: New file.
20237 * m4/getugroups.m4: New file.
20239 Module group-member.
20240 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
20241 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
20244 * m4/idcache.m4: New file.
20247 * m4/userspec.m4: New file.
20250 * m4/clock_time.m4: New file.
20251 * m4/gettime.m4: New file.
20254 * m4/settime.m4: New file.
20257 * m4/posixtm.m4: New file.
20259 Module gethostname.
20260 * m4/gethostname.m4: New file.
20263 * m4/canon-host.m4: New file.
20266 * m4/codeset.m4: New file, from gettext-0.11.5.
20267 * m4/gettext.m4: New file, from gettext-0.11.5.
20268 * m4/glibc21.m4: New file, from gettext-0.11.5.
20269 * m4/iconv.m4: New file, from gettext-0.11.5.
20270 * m4/intdiv0.m4: New file, from gettext-0.11.5.
20271 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
20272 * m4/inttypes.m4: New file, from gettext-0.11.5.
20273 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
20274 * m4/isc-posix.m4: New file, from gettext-0.11.5.
20275 * m4/lcmessage.m4: New file, from gettext-0.11.5.
20276 * m4/lib-ld.m4: New file, from gettext-0.11.5.
20277 * m4/lib-link.m4: New file, from gettext-0.11.5.
20278 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
20279 * m4/progtest.m4: New file, from gettext-0.11.5.
20280 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
20281 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
20282 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
20284 Module localcharset.
20285 * m4/localcharset.m4: New file.
20287 Module hard-locale.
20288 * m4/hard-locale.m4: New file.
20291 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
20293 * m4/mbrtowc.m4: Add comment.
20296 * m4/memcasecmp.m4: New file.
20299 * m4/memcoll.m4: New file.
20302 * m4/unicodeio.m4: New file.
20305 * m4/rpmatch.m4: New file.
20308 * m4/yesno.m4: New file.
20311 * m4/exitfail.m4: New file.
20314 * m4/c-stack.m4 (gl_C_STACK): New macro.
20315 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
20318 * m4/error.m4 (gl_ERROR): New macro.
20319 (jm_PREREQ_ERROR): Use onceonly macros.
20322 * m4/fatal.m4: New file.
20325 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
20326 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
20328 Module getpagesize.
20329 * m4/getpagesize.m4: New file.
20331 Module getusershell.
20332 * m4/getusershell.m4: New file.
20335 * m4/physmem.m4: New file.
20338 * m4/posixver.m4: New file.
20341 * m4/quotearg.m4: New file.
20344 * m4/quote.m4: New file.
20347 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
20350 * m4/sig2str.m4: New file.
20353 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
20355 * m4/intmax_t.m4: New file.
20356 * m4/d-type.m4: Indentation.
20357 * m4/jm-macros.m4: Update.
20358 * m4/prereq.m4 (jm_PREREQ): Update.
20359 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
20360 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
20361 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
20362 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
20363 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
20364 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
20365 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
20366 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
20367 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
20368 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
20369 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
20370 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
20371 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
20372 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
20373 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
20374 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
20375 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
20376 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
20377 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
20379 2002-12-24 Bruno Haible <bruno@clisp.org>
20381 * MODULES.txt: Update according to m4/ changes.
20384 * config.rpath: New file, from gettext-0.11.5.
20386 * modules/*: New module descriptions.
20387 * gnulib-tool: New file.
20388 * MODULES.html.sh: New file.
20390 2002-12-21 Karl Berry <karl@gnu.org>
20392 * doc/fdl.texi: update to version 1.2.
20394 2002-12-19 Karl Berry <karl@gnu.org>
20396 * config/config.guess: update from prep.
20398 2002-12-18 Bruno Haible <bruno@clisp.org>
20400 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
20401 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
20403 2002-12-17 Bruno Haible <bruno@clisp.org>
20405 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
20406 stdlib.h, string.h.
20408 2002-12-17 Bruno Haible <bruno@clisp.org>
20410 * lib/canon-host.c (strdup): Remove unused declaration.
20412 * lib/fsusage.c: Include full_read.h.
20413 (get_fs_usage): Use full_read instead of safe_read.
20415 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
20417 2002-12-12 Karl Berry <karl@gnu.org>
20419 * config/config.guess: update from prep.
20421 2002-12-11 Bruno Haible <bruno@clisp.org>
20423 * m4/setenv.m4: New file, from gettext-0.11.5.
20425 2002-12-11 Bruno Haible <bruno@clisp.org>
20427 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
20429 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
20432 2002-12-11 Bruno Haible <bruno@clisp.org>
20434 * setenv.c (alloca): Fall back to malloc.
20435 (freea): New macro.
20436 (setenv): Use freea() to free memory allocated with alloca().
20438 2002-11-13 Bruno Haible <bruno@clisp.org>
20440 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
20441 function declarations.
20442 * unsetenv.c (unsetenv): Likewise.
20444 2002-03-04 Bruno Haible <bruno@clisp.org>
20446 Portability to AIX 4.3.3.
20447 * unsetenv.c: New file, extracted from setenv.c.
20448 * setenv.c: Move the unsetenv() function to unsetenv.c.
20450 2001-12-20 Bruno Haible <bruno@clisp.org>
20452 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
20453 use malloc instead. For SunOS 4.
20455 2001-12-11 Bruno Haible <bruno@clisp.org>
20457 * setenv.c: Declare alloca.
20458 (compar_fn_t): New typedef.
20459 (KNOWN_VALUE, STORE_VALUE): Use it.
20461 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
20464 2002-12-10 Paul Eggert <eggert@twinsun.com>
20466 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
20467 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
20468 Choose values that are less likely to collide with system fnmatch
20470 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
20471 defined (e.g., a pure POSIX system).
20472 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
20473 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
20475 2002-12-06 Paul Eggert <eggert@twinsun.com>
20477 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
20478 a pain in practice to deal with generated m4 files. This change
20479 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
20481 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
20482 and jm-glibc-io.m4, as they are no longer a special case.
20483 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
20484 kludge and the auto-generation stuff. Check only whether the
20485 functions are declared, not whether they exist, since older hosts
20486 that don't declare the functions can't use the optimization anyway.
20488 2002-12-06 Jim Meyering <jim@meyering.net>
20490 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
20492 Merge in changes from libc's misc/error.c, in preparation
20493 for the merge of gnulib's changes back into libc.
20495 * lib/error.c (_): Define only if not already defined.
20496 Move definition to follow all #include directives.
20497 Include unlocked-io.h only if !_LIBC.
20498 [_LIBC]: Include <libio/libioP.h>.
20499 [USE_IN_LIBIO]: Include <libio/iolibio.h>
20500 (fflush): Tweak definition to use INTUSE.
20503 2002-12-05 Paul Eggert <eggert@twinsun.com>
20505 * lib/alloca.c [defined emacs]: Include "lisp.h".
20506 (xalloc_die) [defined emacs]: New macro.
20507 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
20508 [! defined emacs]: Include <xalloc.h>.
20509 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
20510 (pointer): Typedef to POINTER_TYPE *.
20511 (malloc): Remove decl; we now always use xmalloc.
20512 (alloca): Use old-style definition, since Emacs needs this.
20513 Check for arithmetic overflow when computing combined size.
20515 2002-12-04 Paul Eggert <eggert@twinsun.com>
20517 Do not generate unlocked-io.h automatically, since it's easier to
20518 maintain it by hand.
20520 * lib/unlocked-io.h: New file, from GNU diffutils,
20521 but with proper copyright notice and attribution.
20522 * lib/gen-uio: Remove.
20523 * lib/Makefile.am: Add copyright notice.
20524 (libfetish_a_SOURCES): Add unlocked-io.h.
20525 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
20526 (DISTCLEANFILES, io_functions): Remove macros.
20527 (EXTRA_DIST): Remove gen_uio.
20528 (unlocked-io.h): Remove rule.
20530 2002-12-04 Jim Meyering <jim@meyering.net>
20532 Reflect the fact that stat.c and lstat.c are no longer generated.
20533 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
20534 (DISTCLEANFILES): Likewise.
20535 (EXTRA_DIST): Likewise.
20536 (all_local): Don't depend on stat.c or lstat.c.
20537 (stat.c, lstat.c): Remove rules.
20538 (EXTRA_DIST): Remove xstat.in.
20540 * lib/xstat.in: Remove file. Contents moved into stat.c.
20541 * lib/stat.c: New file. Contents mostly from xstat.in.
20542 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
20543 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
20545 * lib/safe-read.c: Rework so that it may serve to define safe_write,
20547 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
20549 2002-12-03 Jim Meyering <jim@meyering.net>
20551 * lib/safe-read.c, safe-write.c: Change variable names and comments,
20552 but not semantics, to minimize the differences between these two files.
20553 (safe_read): Change comment to mention SAFE_READ_ERROR.
20555 * lib/safe-read.c (IS_EINTR): Define.
20556 (safe_read): Use IS_EINTR in place of in-function cpp directives.
20558 2002-12-02 Jim Meyering <jim@meyering.net>
20560 * lib/safe-read.c (EINTR): Define.
20561 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20562 (INT_MAX): Provide fallback.
20563 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
20565 * lib/safe-read.h (SAFE_READ_ERROR): Define.
20567 2002-12-02 Bruno Haible <bruno@clisp.org>
20569 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
20570 Define, taken from safe-read.c.
20571 (INT_MAX): Provide fallback.
20572 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
20573 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
20575 * lib/safe-read.c (EINTR): Remove definition.
20576 (safe_read): Don't use EINTR if it is absent.
20578 2002-12-01 Jim Meyering <jim@meyering.net>
20580 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
20582 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
20584 2002-11-27 Paul Eggert <eggert@twinsun.com>
20586 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
20587 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
20588 with `if (! (value < limit)) abort ();', for readability.
20590 2002-11-26 Karl Berry <karl@gnu.org>
20592 * lib/strdup.c: copy from libc again, with jim's ok.
20593 * lib/.cppi-disable: re-add strdup.c
20595 2002-11-25 Karl Berry <karl@gnu.org>
20597 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
20598 instead of "strtol.c".
20600 2002-11-25 Karl Berry <karl@gnu.org>
20602 * config/install-sh: update from automake for variable quoting, $0 in
20605 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
20606 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
20609 2002-11-25 Jim Meyering <jim@meyering.net>
20611 * lib/mktime.c: Sync from libc, now that it has the latest fix.
20613 2002-11-24 Karl Berry <karl@gnu.org>
20615 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
20616 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
20618 2002-11-24 Jim Meyering <jim@meyering.net>
20620 Update from coreutils:
20622 * lib/mktime.c: Merge in changes from libc.
20624 Avoid a link-time failure on some Linux systems.
20625 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
20627 (__mon_yday): Declare with the STATIC attribute.
20628 (__mktime_internal): Likewise.
20629 Based on a report from Greg Schafer.
20631 2002-11-23 Jim Meyering <jim@meyering.net>
20633 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
20634 Use `unsigned', not `int', as type of index.
20636 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
20638 * lib/fsusage.c: Remove unneeded parentheses around operands of
20641 2002-11-22 Paul Eggert <eggert@twinsun.com>
20643 * lib/quotearg.h: Allow multiple inclusion by surrounding with
20644 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
20645 so that we can be included first.
20646 (PARAMS): Remove; we now assume C89 or later. All uses removed.
20647 * lib/quotearg.c: Include quotearg.h immediately after config.h.
20648 No need to include stddef.h or sys/types.h any more.
20649 Surround local include files with "", not "<>".
20650 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
20651 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
20652 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
20653 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
20654 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
20655 (ISPRINT): Remove; no longer needed now that we assume C89.
20657 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
20660 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
20661 quotearg_char): Use SIZE_MAX rather than
20662 (size_t) -1 when we are talking about "infinity".
20664 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
20666 2002-11-22 Paul Eggert <eggert@twinsun.com>
20668 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
20669 hint that one should use `if (! x) abort ();' rather than `assert
20670 (x);', and anyway it's one less thing to worry about configuring.
20671 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
20672 hash_rehash, hash_insert): Use abort rather than assert.
20674 2002-11-22 Bruno Haible <bruno@clisp.org>
20676 * lib/safe-read.h: Assume C89. Add comments.
20677 (safe_read): Change return type to size_t.
20678 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
20679 byte counts > SSIZE_MAX correctly.
20680 * lib/safe-write.h: New file.
20681 * lib/safe-write.c: New file.
20682 * lib/full-read.h: New file.
20683 * lib/full-read.c: New file.
20684 * lib/full-write.h: Assume C89. Add comments.
20685 * lib/full-write.c: Include safe-write.h.
20686 (full_write): Rewritten to use safe_write.
20687 Suggested by Jim Meyering and Paul Eggert.
20689 2002-11-21 Jim Meyering <jim@meyering.net>
20691 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
20693 Merge in changes from the coreutils.
20695 2002-09-25 Paul Eggert <eggert@twinsun.com>
20696 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
20698 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
20699 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
20700 int. Work more efficiently if X is the same width as uintmax_t.
20701 Do not compare X to -1, to avoid bogus compiler warning.
20702 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
20703 Don't assume that f_frsize and f_bsize are the same type.
20705 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
20706 warning on FreeBSD.
20708 * lib/makepath.c (make_path): Restore umask *before* creating the final
20710 (make_path): Minor reformatting.
20712 * lib/xmalloc.c: Adjust to work with new autoconf macros,
20713 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
20714 HAVE_MALLOC/HAVE_REALLOC.
20716 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
20717 dummy ones. At least on GNU/Linux systems, `auto' means something
20719 From Michael Stone.
20721 2002-11-21 Bruno Haible <bruno@clisp.org>
20723 Remove case insensitive option matching.
20724 * lib/argmatch.h (argcasematch): Remove declaration.
20725 (ARGCASEMATCH): Remove macro.
20726 (__xargmatch_internal): Remove case_sensitive argument.
20727 (XARGMATCH): Update.
20728 (XARGCASEMATCH): Remove macro.
20729 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
20730 case_sensitive argument.
20731 (argcasematch): Remove function.
20732 (__xargmatch_internal): Remove case_sensitive argument.
20733 (main): Use XARGMATCH instead of XARGCASEMATCH.
20735 * lib/xmalloc.c: Change compile-time error message. Add comment about
20736 required autoconf version.
20738 2002-11-20 Paul Eggert <eggert@twinsun.com>
20740 Merge argmatch cleanups from Bison. Assume C89.
20742 * lib/argmatch.c: Include config.h here, not in argmatch.h.
20743 Include stdlib.h, for EXIT_FAILURE.
20744 Always include <string.h>, since we assume C89.
20745 (EXIT_FAILURE): Remove pre-C89 bug workaround.
20746 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
20747 Include <stddef.h> instead, since it's all we need for size_t.
20748 (PARAMS): Remove. All uses removed.
20749 (ARRAY_CARDINALITY): Do not bother to #undef.
20750 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
20751 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20752 Remove unnecessary parentheses.
20753 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
20754 Insert necessary parentheses.
20755 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
20756 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
20758 2002-11-19 Bruno Haible <bruno@clisp.org>
20760 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
20761 * lib/mbswidth.h: Include <stddef.h>, for size_t.
20763 * lib/mbswidth.h (PARAMS): Remove macro.
20764 (mbswidth, mbsnwidth): Use ANSI C function declarations.
20765 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
20767 * lib/gcd.h (PARAMS): Remove macro.
20768 (gcd): Use ANSI C function declarations.
20769 * lib/gcd.c (gcd): Likewise.
20771 2002-11-15 Bruno Haible <bruno@clisp.org>
20773 * lib/strcspn.c: Include <stddef.h>.
20774 (strcspn): Use ANSI C function declaration. Change return type to
20776 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
20777 (strpbrk): Use NULL.
20778 * lib/strpbrk.h (PARAMS): Remove macro.
20779 (strpbrk): Use ANSI C function declaration.
20780 * lib/strstr.c: Don't include <sys/types.h>.
20781 * lib/strstr.h (PARAMS): Remove macro.
20782 (strstr): Use ANSI C function declarations.
20784 2002-11-14 Karl Berry <karl@gnu.org>
20786 * config/mkinstalldirs: `do' on separate line, instead of
20789 2002-11-06 Bruno Haible <bruno@clisp.org>
20791 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
20792 * lib/gcd.c (gcd): Likewise.
20794 2002-11-05 Bruno Haible <bruno@clisp.org>
20796 * lib/gcd.h: New file, from gettext-0.11.5.
20797 * lib/gcd.c: New file, from gettext-0.11.5.
20799 2002-11-05 Bruno Haible <bruno@clisp.org>
20801 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20802 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20803 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20804 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
20806 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
20808 * lib/makepath.c: Include gettext.h instead of <locale.h> and
20811 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
20812 * lib/human.c: Include gettext.h instead of <libintl.h>.
20813 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
20814 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
20815 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
20816 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
20817 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
20818 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
20819 (textdomain): Remove definition.
20820 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
20822 * lib/long-options.c: Remove include of <libintl.h> and definition of
20824 * lib/same.c: Remove include of <libintl.h> and definition of _.
20826 2002-11-04 Owen Taylor <otaylor@redhat.com>
20828 * lib/config.charset: A few additions for Solaris.
20830 2002-11-04 Bruno Haible <haible@clisp.cons.org>
20832 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
20833 * lib/localcharset.c (locale_charset): Declare as extern "C".
20835 2002-11-04 Bruno Haible <haible@clisp.cons.org>
20837 * lib/config.charset: msdos in uk_UA uses CP1125.
20839 2002-11-04 Bruno Haible <bruno@clisp.org>
20841 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
20842 * lib/strcase.h: New file, from GNU gettext-0.11.5.
20843 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
20844 * lib/strstr.h: New file, from GNU gettext-0.11.5.
20845 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
20847 2002-11-04 Bruno Haible <bruno@clisp.org>
20849 * lib/localcharset.c (locale_charset): Don't return an empty string.
20851 2002-11-04 Bruno Haible <bruno@clisp.org>
20853 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
20856 2002-11-04 Bruno Haible <bruno@clisp.org>
20858 * lib/config.charset: Update for newest glibc. Add canonical names
20859 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
20861 2002-11-04 Bruno Haible <bruno@clisp.org>
20863 * lib/config.charset: Add support for NetBSD.
20865 2002-11-04 Bruno Haible <bruno@clisp.org>
20867 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
20869 2002-11-01 Bruno Haible <bruno@clisp.org>
20871 * configure.in: Add AC_CONFIG_AUX_DIR call.
20872 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
20874 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
20876 2002-09-28 Karl Berry <karl@gnu.org>
20878 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
20879 installed automake until the next release, since changes have been
20882 2002-09-25 Karl Berry <karl@gnu.org>
20884 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
20885 * lib/getopt*: copy from libc/posix.
20886 * lib/gettext.h: copy from gettext.
20887 * lib/.cppi-disable: add strdup.c, gettext.h.
20889 2002-09-25 Karl Berry <karl@gnu.org>
20891 * config/srclist.txt: enable gettext.h check.
20892 * config/config.{guess,sub}: update from prep.
20893 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
20894 from automake 1.6.3.
20897 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
20899 * regex.c (PATFETCH): Remove the translating fetch.
20900 (PATFETCH_RAW): Rename to PATFETCH.
20901 (set_image_of_range): New fun.
20902 (SET_RANGE_TABLE_WORK_AREA): Use it.
20903 (regex_compile): Don't translate the pattern chars so eagerly.
20904 Only do it when inserting an `exactn' bytecode or when handling
20906 (mutually_exclusive_p): Avoid empty statement.
20908 2002-07-06 Jim Meyering <meyering@lucent.com>
20910 * m4/README: Don't mention Makefile.am.in.
20911 Outline how I've tested changes to .m4 files. Yep, it's a pain.
20913 2002-07-01 Jim Meyering <meyering@lucent.com>
20915 * lib/c-stack.c: Include sys/time.h.
20916 From Volker Borchert.
20918 2002-06-26 Paul Eggert <eggert@twinsun.com>
20920 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
20922 2002-06-26 Paul Eggert <eggert@twinsun.com>
20924 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
20925 New macro. Use it uniformly instead of
20926 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
20927 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
20928 reported by Vin Shelton.
20930 2002-06-22 Paul Eggert <eggert@twinsun.com>
20932 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
20933 Do not assume SA_SIGINFO behavior.
20934 Bug reported by Jim Meyering on NetBSD 1.5.2.
20936 2002-06-22 Jim Meyering <meyering@lucent.com>
20938 * m4/c-stack.m4: New file, from diffutils-2.8.2.
20939 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
20941 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
20942 now that configure.ac uses AC_GNU_SOURCE.
20943 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
20944 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
20946 Update to latest tools. Suggestions from Paul Eggert.
20947 * m4/stdbool.m4: New file, from diffutils-2.8.2.
20948 * m4/gnu-source.m4: Update from diffutils-2.8.2.
20949 * m4/fnmatch.m4: Likewise.
20950 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
20951 to AC_HEADER_STDBOOL
20953 2002-06-22 Jim Meyering <meyering@lucent.com>
20955 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
20956 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
20958 2002-06-22 Jim Meyering <meyering@lucent.com>
20960 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
20962 * lib/exitfail.c, exitfail.h: Likewise.
20963 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
20965 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
20967 (EXTRA_DIST): Add fnmatch_loop.c.
20968 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
20970 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
20971 * lib/fnmatch.c: Update from diffutils-2.8.2.
20972 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
20973 * lib/fnmatch.h: Remove file.
20975 2002-06-21 Jim Meyering <meyering@lucent.com>
20977 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
20978 * m4/mbrtowc.m4: Likewise.
20980 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
20981 * m4/mbswidth.m4: Reflect name change:
20982 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
20983 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
20985 * m4/lib-link.m4: Update from gettext-0.11.2.
20986 * m4/gettext.m4: Likewise.
20988 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
20989 From Alfred M. Szmidt.
20991 2002-06-18 Paul Eggert <eggert@twinsun.com>
20993 * lib/file-type.h: Report an error if neither S_ISREG nor
20994 S_IFREG is defined, instead of using a test specific to glibc
20995 2.2. This should be safe, since POSIX requires S_ISREG and
20996 Unix Version 7 had S_IFREG. We don't need to check for
20997 <sys/types.h> since we don't use any symbols that it defines.
20999 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
21001 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21002 $@-t, so that each temporary file name is unique and valid in the first
21003 8 characters, for operation under DOS.
21005 2002-06-15 Paul Eggert <eggert@twinsun.com>
21007 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21009 2002-06-15 Jim Meyering <meyering@lucent.com>
21011 Work even with DJGPP 2.03, which lacks support for symlinks.
21013 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21015 * lib/lchown.c (S_ISLNK): Likewise.
21017 2002-06-15 Jim Meyering <meyering@lucent.com>
21019 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21020 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21021 have been included before this file.
21023 2002-06-14 Jim Meyering <meyering@lucent.com>
21025 * lib/file-type.h: Use the version from diffutils-2.8.2.
21026 * lib/file-type.c: Likewise.
21028 2002-06-07 Jim Meyering <meyering@lucent.com>
21030 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21031 They're needed at least for NetBSD 1.5.2.
21032 ($statxfs_includes): Include those same headers.
21033 ($statxfs_includes): Include sys/vfs.h if available.
21034 ($statxfs_includes): Likewise for sys/statvfs.h.
21035 Check for the following members in both structs statfs and statvfs:
21036 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21038 2002-06-01 Jim Meyering <meyering@lucent.com>
21040 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21041 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21043 2002-05-28 Jim Meyering <meyering@lucent.com>
21045 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21046 Reported by Volker Borchert.
21048 2002-05-27 Jim Meyering <meyering@lucent.com>
21050 Fix a problem seen only on nonconforming systems whereby ls.c's
21051 use of localtime, and then of gettimeofday would cause trouble:
21052 the localtime call used to initialize rpl_gettimeofday's save
21053 mechanism would clobber ls's current local time information so
21054 that in any long listing the first file would always be listed
21055 with date 1970-01-01. Analysis by Volker Borchert.
21057 * lib/gettimeofday.c (localtime): Undefine.
21058 (rpl_localtime): New function.
21060 2002-05-27 Jim Meyering <meyering@lucent.com>
21062 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21065 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21066 use the replacement function; it wouldn't resolve at link time.
21067 Reported by Volker Borchert.
21069 2002-05-22 Jim Meyering <meyering@lucent.com>
21071 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21073 * lib/file-type.h: New file.
21074 * lib/file-type.c (file_type): New file/function. Extracted from
21077 2002-04-30 Jim Meyering <meyering@lucent.com>
21079 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21081 2002-04-29 Paul Eggert <eggert@twinsun.com>
21083 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
21085 2002-04-29 Paul Eggert <eggert@twinsun.com>
21087 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
21088 Do not check for alloca.h (no longer used) or stdbool.h (was never
21089 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
21091 2002-04-29 Paul Eggert <eggert@twinsun.com>
21093 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
21095 2002-04-29 Jim Meyering <meyering@lucent.com>
21097 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
21098 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
21099 Use AC_FUNC_STRNLEN here instead.
21101 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
21102 With autoconf-2.53a, it's part of AC_PROG_CC.
21104 2002-04-28 Paul Eggert <eggert@twinsun.com>
21106 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
21107 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
21109 2002-04-28 Paul Eggert <eggert@twinsun.com>
21111 * lib/sig2str.h, lib/sig2str.c: New files.
21112 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
21114 2002-04-28 Paul Eggert <eggert@twinsun.com>
21116 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
21117 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
21118 of 127, since 64 is the largest conceivable number for ancient
21120 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
21122 2002-04-28 Jim Meyering <meyering@lucent.com>
21124 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
21126 2002-04-24 Jim Meyering <meyering@lucent.com>
21128 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
21129 (jm_PREREQ): Use it.
21131 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
21132 mach/mach.h fcntl.h.
21133 Check for this function: setlocale.
21135 2002-04-24 Jim Meyering <meyering@lucent.com>
21137 * lib/gettext.h: New file, from Gettext.
21138 * lib/Makefile.am (INCLUDES): Remove -I../intl.
21139 (libfetish_a_SOURCES): Add gettext.h.
21141 2002-04-16 Jim Meyering <meyering@lucent.com>
21143 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
21144 ut_pid, ut_id, ut_exit.
21146 2002-04-16 Jim Meyering <meyering@lucent.com>
21148 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
21149 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
21150 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
21152 2002-04-12 Jim Meyering <meyering@lucent.com>
21154 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
21155 now-bogus check for f_type in sys/mount.h. Instead, just test for the
21156 existence of the getmntinfo function. Needed for Darwin 5.3.
21158 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
21159 This is necessary at least on Darwin 5.3.
21161 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
21162 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
21163 strnlen.o in the library, and that makes some versions of ranlib
21166 2002-04-12 Jim Meyering <meyering@lucent.com>
21168 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
21170 2002-04-09 Jim Meyering <meyering@lucent.com>
21172 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
21173 to be more precise. Rather than saying we're checking whether the
21174 function `works', say what we're testing.
21175 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
21176 Reported by Bruno Haible.
21178 2002-03-10 Jim Meyering <meyering@lucent.com>
21180 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
21181 Suggestion from Santiago Vila.
21183 2002-03-08 Jim Meyering <meyering@lucent.com>
21185 * lib/rename.c: Mention that this wrapper is needed also on
21186 mips-dec-ultrix4.4 systems.
21188 2002-03-02 Jim Meyering <meyering@lucent.com>
21190 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
21191 not HAVE_CLOCK_SETTIME.
21193 2002-02-27 Paul Eggert <eggert@twinsun.com>
21195 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
21196 Check for clock_settime.
21198 2002-02-27 Paul Eggert <eggert@twinsun.com>
21200 * lib/nanosleep.h: Rename to....
21201 * lib/timespec.h: New name for nanosleep.h. All uses changed.
21203 * lib/gettime.c: New file.
21204 * lib/settime.c: New file.
21205 * lib/stime.c: Remove.
21207 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
21208 timespec.h. Remove nanosleep.h.
21210 2002-02-25 Paul Eggert <eggert@twinsun.com>
21212 * m4/acl.m4: New file.
21213 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
21214 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
21216 2002-02-25 Paul Eggert <eggert@twinsun.com>
21218 * lib/acl.c, lib/acl.h: New files.
21219 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
21221 2002-02-24 Jim Meyering <meyering@lucent.com>
21223 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
21224 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
21225 cause trouble. Reported by Nelson Beebe.
21227 2002-02-23 Paul Eggert <eggert@twinsun.com>
21229 * lib/path-concat.c (xpath_concat): Reorder code to pacify
21230 compilers that don't know that xalloc_die never returns.
21232 2002-02-20 Jim Meyering <meyering@lucent.com>
21234 * lib/getdate.c: Regenerate using bison-1.33.
21236 2002-02-17 Jim Meyering <meyering@lucent.com>
21238 * config/config.guess (main): Don't use `head -1'; it's no longer
21239 portable. Use `sed 1q' instead.
21241 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
21243 * m4/codeset.m4: Upgrade to gettext-0.11.
21244 * m4/gettext.m4: Upgrade to gettext-0.11.
21245 * m4/glibc21.m4: Upgrade to gettext-0.11.
21246 * m4/iconv.m4: Upgrade to gettext-0.11.
21247 * m4/isc-posix.m4: Upgrade to gettext-0.11.
21248 * m4/lcmessage.m4: Upgrade to gettext-0.11.
21249 * m4/lib-ld.m4: New file, from gettext-0.11.
21250 * m4/lib-link.m4: New file, from gettext-0.11.
21251 * m4/lib-prefix.m4: New file, from gettext-0.11.
21252 * m4/progtest.m4: Upgrade to gettext-0.11.
21254 2002-02-15 Paul Eggert <eggert@twinsun.com>
21256 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
21257 (jm_PREREQ): Use it.
21259 2002-02-15 Paul Eggert <eggert@twinsun.com>
21261 * lib/posixver.c, lib/posixver.h: New files.
21262 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
21264 2002-02-02 Paul Eggert <eggert@twinsun.com>
21265 Bruno Haible <bruno@clisp.org>
21267 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
21268 (fwrite_success_callback): New declaration.
21269 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
21270 print_unicode_char. Call failure callback instead of error.
21271 (fwrite_success_callback): New function.
21272 (exit_failure_callback): New function.
21273 (fallback_failure_callback): New function.
21274 (print_unicode_char): Call unicode_to_mb.
21276 2002-01-26 Jim Meyering <meyering@lucent.com>
21278 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
21279 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
21281 2002-01-26 Jim Meyering <meyering@lucent.com>
21283 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
21285 2002-01-22 Paul Eggert <eggert@twinsun.com>
21287 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
21289 2002-01-22 Jim Meyering <meyering@lucent.com>
21291 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
21292 Otherwise, some versions of automake would omit the rule that makes
21293 Makefile from Makefile.in.
21295 2002-01-21 Paul Eggert <eggert@twinsun.com>
21297 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
21298 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
21299 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
21300 (memcoll): Set errno to zero if there is no error.
21302 * lib/quotearg.c (quotearg_buffer_restyled):
21303 Fix bug with quoting buffers containing NUL when backslashing escapes.
21304 This bug was exposed by the other changes in this patch.
21305 (quotearg_n_options): New arg ARGSIZE.
21306 All callers changed.
21307 (quoting_options_from_style): New function.
21308 (quotearg_n_style): Use it.
21309 (quotearg_n_style_mem): New function.
21311 * lib/quotearg.h (quotearg_n_style_mem): New function.
21313 2002-01-19 Jim Meyering <meyering@lucent.com>
21315 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
21316 Remove useless quotes: DF_PROG="df".
21317 * m4/strnlen.m4: New file.
21319 2002-01-16 Paul Eggert <eggert@twinsun.com>
21321 * lib/backupfile.c (ISDIGIT): Comment fix.
21322 * lib/getdate.y (ISDIGIT): Likewise.
21323 * lib/posixtm.c (ISDIGIT, year): Likewise.
21324 * lib/strverscmp.c (ISDIGIT): Likewise.
21325 * lib/userspec.c (ISDIGIT): Likewise.
21327 2002-01-16 Jim Meyering <meyering@lucent.com>
21329 * lib/getdate.y: Add three semicolons, each just before a closing
21330 brace. Bison (as of version 1.31) no longer papers over that mistake.
21332 2002-01-05 Jim Meyering <meyering@lucent.com>
21334 * lib/version-etc.c (version_etc_copyright): Update copyright year.
21336 2001-12-19 Paul Eggert <eggert@twinsun.com>
21338 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
21339 not silently exit merely because the output buffer happens to
21340 have nothing pending.
21342 2001-12-18 Paul Eggert <eggert@twinsun.com>
21344 See the big note in ../ChangeLog.
21345 * lib/human.c (suffixes): Prefer K to k for 1024.
21346 (generate_suffix_backwards): New function.
21347 (human_readable_inexact): Use it.
21348 * lib/xstrtol.c (__xstrtol): If there is no number but there
21349 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
21350 Accept 'K' as well as 'k'.
21352 2001-12-15 Jim Meyering <meyering@lucent.com>
21354 * lib/regex.h (__restrict_arr): Update from libc.
21356 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
21357 as `remote' if the name starts with `//'. Suggested by Michael Stone.
21360 2001-12-14 Jim Meyering <meyering@lucent.com>
21362 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
21363 Suggestion from Bruno Haible.
21365 2001-12-10 Jim Meyering <meyering@lucent.com>
21367 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
21368 xrealloc, Instead, include "xalloc.h".
21369 (initbuffer): Don't cast xmalloc return value to char*.
21370 (readline): Reword comment.
21371 Don't cast xrealloc return value to char*
21372 Return NULL, not 0.
21374 2001-12-09 Jim Meyering <meyering@lucent.com>
21376 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
21377 about `signed and unsigned type in conditional expression'.
21378 * lib/posixtm.c (posix_time_parse): Likewise.
21380 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
21382 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
21383 to avoid a pedantic warning.
21385 * lib/getstr.c: Don't include assert.h.
21386 (getstr): Remove warning-evoking assertions.
21387 Return -1 if offset parameter is out of bounds.
21388 Change the type of a local from int to size_t.
21390 * lib/strftime.c (my_strftime_localtime_r): Include this function
21391 definition in the `#if ! HAVE_TM_GMTOFF' block.
21393 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
21394 Include xalloc.h instead.
21396 2001-12-02 Jim Meyering <meyering@lucent.com>
21398 * lib/tempname.c: Don't declare getenv, thus reverting the change of
21399 2001-11-18. It's no longer necessary, now that stdlib.h is always
21402 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
21403 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
21405 2001-11-30 Akim Demaille <akim@epita.fr>
21407 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
21408 before being defined.
21410 2001-11-27 Paul Eggert <eggert@twinsun.com>
21412 * lib/quotearg.h (quotearg_n, quotearg_n_style):
21413 First arg is int, not unsigned.
21414 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
21415 (SIZE_MAX, UINT_MAX): New macros.
21416 (quotearg_n_options): Abort if N is negative.
21417 Avoid overflow check on hosts where size_t is 64 bits and int
21418 is 32 bits, as overflow is impossible there.
21419 Fix off-by-one typo that caused unnecessary reallocation.
21421 2001-11-27 Jim Meyering <meyering@lucent.com>
21423 * lib/tempname.c: Merge with version from libc.
21424 * lib/regex.c: Likewise.
21426 * lib/tempname.c: Include stdlib.h unconditionally. On some old
21427 systems for which STDC_HEADERS is 0, it was not included, resulting in
21428 a warning about an integer-to-pointer conversion problem with getenv.
21429 Reported by Volker Borchert.
21431 2001-11-26 Jim Meyering <meyering@lucent.com>
21433 * lib/gtod.h: Remove file.
21434 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
21435 * lib/gettimeofday.c: Don't include gtod.h.
21436 (GTOD_init): Remove function.
21437 (rpl_gettimeofday): Do its job here instead, rather than aborting.
21438 Suggestion from Volker Borchert.
21440 2001-11-23 Jim Meyering <meyering@lucent.com>
21442 * lib/hash.h (struct hash_table): Don't define here. Merely declare
21444 * lib/hash.c (struct hash_table): Define it here instead.
21446 2001-11-22 Jim Meyering <meyering@lucent.com>
21448 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
21450 2001-11-20 Jim Meyering <meyering@lucent.com>
21452 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
21453 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
21455 2001-11-19 Jim Meyering <meyering@lucent.com>
21457 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
21458 directory. Use "conftestXXXXXX" as the template.
21459 Suggestion from Paul Eggert.
21461 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
21462 immediately, so the test doesn't mistakenly hit the max-open-files
21465 2001-11-18 Paul Eggert <eggert@twinsun.com>
21467 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
21468 (TEMPORARIES): New macro.
21469 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
21470 removes an artificial limitation (e.g. HP-UX 10.20, where
21473 2001-11-18 Jim Meyering <meyering@lucent.com>
21475 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
21477 2001-11-18 Jim Meyering <meyering@lucent.com>
21479 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
21482 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
21483 files will be created before anything else.
21485 2001-11-17 Paul Eggert <eggert@twinsun.com>
21487 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
21488 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
21490 2001-11-17 Jim Meyering <meyering@lucent.com>
21492 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
21493 Prompted by a report from Bob Proulx.
21495 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
21496 Instead, require UTILS_FUNC_MKSTEMP.
21498 2001-11-17 Jim Meyering <meyering@lucent.com>
21500 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
21501 Now, that's done as part of AC_FUNC_STRTOD.
21503 2001-11-17 Jim Meyering <meyering@lucent.com>
21505 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
21506 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
21507 rather than group writable. Patch by Juan F. Codagnone.
21509 * lib/readtokens.c: Remove explicit declarations of xmalloc and
21510 xrealloc, Instead, include "xalloc.h".
21512 * lib/mountlist.c: Include unlocked-io.h after all system headers.
21513 Remove explicit declarations of xmalloc, xrealloc,
21514 and xstrdup. Instead, include "xalloc.h".
21516 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
21518 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
21520 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
21522 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
21523 Reported by Padraig Brady.
21525 * lib/mkstemp.c: #undef mkstemp.
21527 (rpl_mkstemp): Rename from mkstemp.
21530 2001-11-16 Jim Meyering <meyering@lucent.com>
21532 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
21533 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
21534 determine the amount of total physical memory, use pstat_getstatic.
21535 HPUX-11 doesn't define _SC_PHYS_PAGES.
21536 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
21537 If sysconf couldn't be used to determine the amount of available
21538 physical memory, use both pstat_getstatic and pstat_getdynamic.
21539 Based on a patch from Bob Proulx.
21541 2001-11-10 Jim Meyering <meyering@lucent.com>
21543 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
21544 (jm_PREREQ): Use it.
21546 2001-11-09 Jim Meyering <meyering@lucent.com>
21548 * m4/jm-macros.m4: Require autoconf-2.52f.
21549 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
21550 Use these AC_-prefixed names, not the AM_-prefixed ones.
21552 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
21554 2001-11-05 Jim Meyering <meyering@lucent.com>
21556 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
21558 2001-11-04 Jim Meyering <meyering@lucent.com>
21560 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
21563 2001-11-03 Jim Meyering <meyering@lucent.com>
21565 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
21568 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
21569 know the name of the variable in the macro definition.
21571 2001-11-03 Jim Meyering <meyering@lucent.com>
21573 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
21574 in argmatch_to_argument call.
21576 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
21579 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
21580 e.g., a fault due to an attempt to free a NULL pointer.
21582 2001-11-01 Jim Meyering <meyering@lucent.com>
21584 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
21585 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
21587 2001-11-01 Jim Meyering <meyering@lucent.com>
21589 * lib/dirfd.c, lib/dirfd.h: New files.
21590 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
21592 * lib/hash.c (hash_print) [TESTING]: Clean up.
21594 2001-10-22 Paul Eggert <eggert@twinsun.com>
21596 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
21597 to avoid a warning if -Wall.
21599 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
21602 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
21603 (per RMS's instructions, this is now the canonical source)
21604 * lgpl/, gpl/: New directories.
21606 2001-10-21 Paul Eggert <eggert@twinsun.com>
21608 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
21610 2001-10-21 Jim Meyering <meyering@lucent.com>
21612 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
21613 this code would end up calling gettext even in packages built
21614 with --disable-nls.
21615 * lib/getopt.c (_): Likewise.
21616 * lib/regex.c (_): Likewise.
21618 2001-10-20 Paul Eggert <eggert@twinsun.com>
21620 * m4/error.m4 (jm_PREREQ_ERROR):
21621 Do not invoke AC_CHECK_FUNCS with strerror_r, as
21622 AC_FUNC_STRERROR_R does that.
21623 Check for strerror declaration.
21625 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
21626 are supposed to have them these days.
21627 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
21628 Merge changes from latest Autoconf CVS.
21629 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
21630 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
21631 POSIX decided to standardize on the int flavor of strerror_r.
21633 2001-10-20 Paul Eggert <eggert@twinsun.com>
21635 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
21636 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
21637 Use strerror_r that is only a macro, even if it is not a function.
21638 (strerror): Check for HAVE_DECL_STRERROR before declaring.
21639 (private_strerror): Use prototypes, not old-style function definition.
21640 (print_errno_message): New function.
21641 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
21642 char*-flavored one.
21643 (error_tail, error, error_at_line): Use it.
21645 2001-10-11 Jim Meyering <meyering@lucent.com>
21647 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
21648 and quote_n (1, ... to avoid clobbering a buffer.
21650 2001-10-05 Jim Meyering <meyering@lucent.com>
21652 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
21654 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
21655 * lib/hash-pjw.h: New file.
21657 2001-09-30 Jim Meyering <meyering@lucent.com>
21659 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
21660 `struct fsstat' has the `f_fstypename' member.
21661 Use that to define FS_TYPE, which is now used to make
21662 the getfsstat link test tighter.
21664 2001-09-30 Jim Meyering <meyering@lucent.com>
21666 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
21667 Include <sys/ucred.h>, for Apple Darwin.
21668 Include sys/mount.h and sys/fs_types.h only if available.
21670 (read_filesystem_list): Use FS_TYPE.
21672 2001-09-29 Paul Eggert <eggert@twinsun.com>
21674 * lib/exclude.c (excluded_filename): 0 -> false, since it's
21677 2001-09-29 Jim Meyering <meyering@lucent.com>
21679 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21680 [one-argument getmntent function]): Include stdio.h before mntent.h.
21681 SunOS 4.1.x needs it for the declaration of `FILE'.
21682 Patch by Volker Borchert.
21684 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
21685 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
21686 sys/fs_types.h, and make the link-test for getfsstat guard #include
21687 directives with appropriate #if HAVE_*_H tests so that we can
21688 detect getfsstat on Apple Darwin1.3.7 systems.
21689 Reported by Nelson Beebe.
21690 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
21692 2001-09-28 Paul Eggert <eggert@twinsun.com>
21694 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21695 #defines strtoimax. Also treat the other strto* functions
21698 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21699 Check for strtoul and strtoumax,
21700 as those declarations are made even in the signed case.
21701 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
21702 Likewise, for strtol and strtoimax.
21704 2001-09-28 Paul Eggert <eggert@twinsun.com>
21706 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
21707 #defines strtoimax. Also treat the other strto* functions
21710 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
21711 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
21712 (strtoimax, strtoumax): Do not declare if already defined as a macro.
21714 2001-09-26 Jim Meyering <meyering@lucent.com>
21716 Most macros in unlocked-io.h had the wrong number of arguments.
21717 * lib/gen-uio: New script.
21718 (USE_UNLOCKED_IO): Define to 1 if not already defined.
21719 * lib/unlocked-io.hin: Remove file.
21720 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
21721 rather than trying to embed it here.
21722 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
21723 Reported by Padraig Brady.
21725 2001-09-25 Volker Borchert <bt@teknon.de>
21727 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
21730 2001-09-24 Jim Meyering <meyering@lucent.com>
21732 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
21734 2001-09-23 Jim Meyering <meyering@lucent.com>
21736 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
21737 instead of the mere test for existence of mntent.h. The latter
21738 would get a false-positive on AIX 3.4 systems.
21739 In the outer getmntent if-block, don't die if neither of the getmntent
21740 tests succeeds. Instead, just fall through and continue with the
21743 2001-09-23 Jim Meyering <meyering@lucent.com>
21745 * lib/mountlist.c: Remove useless parentheses in #if directives.
21746 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
21747 the deprecated MOUNTED symbol is no longer defined in mntent.h.
21749 2001-09-22 Jim Meyering <meyering@lucent.com>
21751 * m4/gettext.m4: New file. From gettext.
21752 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
21753 * m4/progtest.m4: Likewise
21754 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
21755 * m4/glibc21.m4: Likewise.
21757 * m4/libintl.m4: Remove. No longer used.
21759 2001-09-22 Jim Meyering <meyering@lucent.com>
21761 * lib/localcharset.c: Update from latest gettext.
21762 * lib/config.charset: Likewise.
21764 2001-09-20 Jim Meyering <meyering@lucent.com>
21766 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
21768 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
21771 2001-09-20 Jim Meyering <meyering@lucent.com>
21773 * lib/xstrtol.c (strtoimax): Guard declaration with
21774 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
21775 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
21776 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
21777 (strtoumax): Likewise, for completeness (it wasn't necessary).
21779 2001-09-17 Paul Eggert <eggert@twinsun.com>
21781 * lib/strtoimax.c (HAVE_LONG_LONG):
21782 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
21783 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
21784 to work around bug in IBM C compiler.
21786 2001-09-17 Jim Meyering <meyering@lucent.com>
21788 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
21789 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
21790 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
21791 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
21792 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
21793 whenever the right hand side need not be expanded by the shell.
21795 2001-09-16 Paul Eggert <eggert@twinsun.com>
21797 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
21798 library. It's not correct, as some older glibcs are buggy.
21799 fnmatch wasn't fixed until glibc 2.2.
21801 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
21802 special shell magic here.
21804 2001-09-16 Jim Meyering <meyering@lucent.com>
21806 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
21807 * m4/jm-macros.m4: Require it.
21809 2001-09-16 Jim Meyering <meyering@lucent.com>
21811 * lib/mkdir.c: New file.
21813 2001-09-15 Jim Meyering <meyering@lucent.com>
21815 * m4/jm-macros.m4: Check for help2man.
21817 2001-09-11 Jim Meyering <meyering@lucent.com>
21819 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
21820 The body, by Paul Eggert, was moved here from configure.in.
21821 * m4/jm-macros.m4: Require UTILS_HOST_OS.
21823 2001-09-04 Paul Eggert <eggert@twinsun.com>
21825 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
21826 (jm_PREREQ): Use it.
21828 2001-09-04 Paul Eggert <eggert@twinsun.com>
21830 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
21831 Use ssize_t, not int, to store result of readlink.
21832 Check for ssize_t overflow as well as size_t overflow,
21833 as POSIX says the result of readlink is implementation-defined
21834 when ssize_t overflows.
21835 Remove unnecessary cast to char*.
21836 Use free+malloc instead of realloc, as the storage doesn't need
21837 to be preserved and it's clearer and can be more efficient that way.
21838 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
21839 * lib/xreadlink.h (xreadlink): Update prototype.
21841 2001-09-04 Paul Eggert <eggert@twinsun.com>
21843 * lib/xgetcwd.c: Revert some of the previous change; intead,
21844 fix the HAVE_GETCWD_NULL code to behave more like the
21845 !HAVE_GETCWD_NULL code used to.
21847 Include "xalloc.h".
21848 (xgetcwd): Do not return NULL when memory is exhausted; instead,
21851 2001-09-03 Paul Eggert <eggert@twinsun.com>
21853 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
21854 sys/param.h, as pathmax.h includes them.
21856 2001-09-03 Paul Eggert <eggert@twinsun.com>
21858 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
21859 (jm_PREREQ_XGETCWD): New macro.
21861 * m4/getcwd.m4: New file.
21863 2001-09-03 Paul Eggert <eggert@twinsun.com>
21865 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
21866 like the HAVE_GETCWD_NULL code.
21867 Include pathmax.h if not HAVE_GETCWD.
21868 Do not include xalloc.h.
21869 (INITIAL_BUFFER_SIZE): New symbol.
21870 Do not use xmalloc / xrealloc, since the caller is responsible for
21871 handling errors. Preserve errno around `free' during failure.
21872 Do not overrun buffer when using getwd.
21874 2001-09-03 Paul Eggert <eggert@twinsun.com>
21876 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
21877 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
21880 2001-09-03 Paul Eggert <eggert@twinsun.com>
21882 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
21883 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
21884 spotted by Jim Meyering.
21886 2001-09-03 Jim Meyering <meyering@lucent.com>
21888 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
21891 2001-09-02 Jim Meyering <meyering@lucent.com>
21893 * lib/error.c: Update from GNU libc.
21895 2001-09-01 Jim Meyering <meyering@lucent.com>
21897 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
21900 2001-09-01 Jim Meyering <meyering@lucent.com>
21902 * lib/xreadlink.c: New file.
21903 * lib/xreadlink.h: New file.
21904 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
21907 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
21908 doesn't conflict with sparc Solaris 7's definition in
21909 /usr/include/sys/int_types.h.
21911 * lib/exclude.c: Use `""', not `<>' to #include non-system header
21913 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
21914 and strncasecmp as r-values. Unixware didn't have declarations.
21916 2001-08-31 Paul Eggert <eggert@twinsun.com>
21918 * lib/xstrtol.h: Add copyright notice.
21919 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
21920 LONGINT_INVALID_SUFFIX_CHAR.
21922 2001-08-31 Paul Eggert <eggert@twinsun.com>
21924 * lib/xstrtol.c (strtoimax): New decl.
21926 2001-08-31 Paul Eggert <eggert@twinsun.com>
21928 * lib/xgetcwd.c: Don't include pathmax.h.
21929 Include stdlib.h and unistd.h if available.
21931 (xmalloc, xstrdup, free): Remove decls.
21932 (xgetcwd): Don't assume sizes fit in unsigned.
21933 Check for overflow when computing sizes.
21934 Simplify reallocation code.
21936 2001-08-31 Paul Eggert <eggert@twinsun.com>
21938 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
21939 a directory's st_size can have an arbitrary value, so the old
21940 usage could waste an arbitrary amount of memory. All uses
21942 * lib/savedir.h: Update prototype.
21944 2001-08-31 Paul Eggert <eggert@twinsun.com>
21946 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
21948 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
21951 Also, make the following further changes to make this file's
21952 configuration more similar to that of strtol.c:
21953 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
21954 (strtoumax, uintmax_t, strtoull, strtol): Remove.
21955 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
21956 (strtoimax): Renamed from strtoumax. All uses of unsigned values
21957 changed to signed values.
21959 And make the following changes as well:
21960 Fix copyright notice, as 1999 was missing.
21961 (verify): New macro.
21962 (strtoimax): Check sizes at compile-time, not run-time.
21963 Prefer strtol to strtoll if both work.
21964 (main): Remove; it was not that useful and was a pain to maintain.
21966 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
21968 2001-08-31 Jim Meyering <meyering@lucent.com>
21970 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
21971 Use an initial, malloc'd, buffer of length 128 rather than
21972 a statically allocated one of length 1024.
21974 2001-08-30 Paul Eggert <eggert@twinsun.com>
21976 Simplify code, partly by assuming autoconf 2.52 semantics.
21978 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
21980 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
21981 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
21983 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
21984 Move AC_REQUIRE to next-to-top level, to avoid confusion.
21985 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
21986 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
21987 jm_AC_HEADER_INTTYPES_H.
21988 * m4/jm-macros.m4 (jm_MACROS): Likewise.
21990 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
21992 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
21993 Quote first arg of AC_DEFUN.
21994 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
21995 since they are needed to parse the include file even if we need
21996 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
21997 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
21998 but with opposite signedness.
22000 2001-08-30 Paul Eggert <eggert@twinsun.com>
22002 Merge 'exclude' changes from tar 1.13.22.
22003 This fixes one or two unlikely storage allocation overflow bugs,
22004 but doesn't change user-visible behavior otherwise.
22006 2001-08-30 Paul Eggert <eggert@twinsun.com>
22008 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22009 (jm_PREREQ_EXCLUDE): New macro.
22011 2001-08-30 Paul Eggert <eggert@twinsun.com>
22013 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22016 2001-08-30 Paul Eggert <eggert@twinsun.com>
22018 * lib/hash.c: Remove '2001' from copyright notice.
22020 2001-08-30 Paul Eggert <eggert@twinsun.com>
22022 * lib/full-write.h: New file.
22023 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22024 * lib/full-write.c: Correct credits, as cccp.c no longer
22025 exists and anyway it was so heavily changed from the old cccp
22026 code as to be unrecognizable. Include full-write.h.
22027 (full_write) Return size_t, with short writes meaning failure.
22028 All callers changed. This fixes a bug with large buffers
22030 * lib/utime.c: Include full-write.h.
22032 2001-08-30 Paul Eggert <eggert@twinsun.com>
22034 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22035 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22036 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22037 Include if available.
22038 (<xalloc.h>): Include
22039 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22040 (verify): New macro. Use it to verify that EXCLUDE macros do not
22041 collide with FNM macros.
22042 (struct patopts): New struct.
22043 (struct exclude): Use it, as exclude patterns now come with options.
22044 (new_exclude): Support above changes.
22045 (new_exclude, add_exclude_file):
22046 Initial size must now be a power of two to simplify overflow checking.
22047 (free_exclude, fnmatch_no_wildcards): New function.
22048 (excluded_filename): No longer requires options arg, as the options
22049 are determined by add_exclude. Now returns bool, not int.
22050 (excluded_filename, add_exclude):
22051 Add support for the fancy new exclusion options.
22052 (add_exclude, add_exclude_file): Now takes int options arg.
22053 Check for arithmetic overflow when computing sizes.
22054 (add_exclude_file): xrealloc might modify errno, so don't
22055 realloc until after errno might be used.
22057 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22059 (free_exclude): New decl.
22060 (add_exclude, add_exclude_file): Now takes int options arg.
22061 (excluded_filename): No longer requires options arg, as the options
22062 are determined by add_exclude. Now returns bool, not int.
22064 2001-08-30 Paul Eggert <eggert@twinsun.com>
22066 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22068 2001-08-27 Jim Meyering <meyering@lucent.com>
22070 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22072 * lib/version-etc.c (N_): Remove definition.
22073 Revert most of last change.
22074 Instead, simply don't mark the `Copyright...' string for translation.
22075 Based on advice from Paul Eggert.
22077 * lib/strtoxmax.c: Tweak comment.
22079 2001-08-26 Jim Meyering <meyering@lucent.com>
22081 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
22083 * m4/xstrtoimax.m4: New file.
22084 * m4/xstrtoumax.m4: Add comments explaining why we
22085 AC_REPLACE_FUNCS(strtol).
22087 2001-08-26 Jim Meyering <meyering@lucent.com>
22089 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
22090 of copyright with `%s' so translators don't get an untranslated
22092 (COPYRIGHT_YEAR): Define.
22093 (version_etc): Use fprintf rather than fputs.
22094 Suggestion from Ulrich Drepper.
22096 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
22098 * lib/strtoll.c: New file, from GNU libc.
22099 * lib/xstrtoimax.c: New file.
22101 * lib/xstrtol.h: Add xstrtoimax.
22102 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
22103 * lib/strtoimax.c: New file. Likewise, but first define
22106 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
22108 * lib/strtoxmax.c: ... then renamed to this.
22110 2001-08-18 Paul Eggert <eggert@twinsun.com>
22112 * m4/inttypes.m4: Add AC_PREREQ(2.13).
22113 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
22114 (jm_AC_TYPE_INTMAX_T): New macro.
22115 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
22117 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
22119 * m4/longlong.m4: Renamed from ulonglong.m4.
22120 * m4/inttypes.m4: Renamed from inttypes_h.m4.
22121 * m4/uintmax_t.m4: Removed.
22123 2001-08-13 Paul Eggert <eggert@twinsun.com>
22125 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
22126 Port to Solaris 8, where 'sed' requires a space after the 'r'
22127 command, and where sh dislikes "$/". Clean up the spacing a bit.
22128 Redirect output to $tmp just once.
22130 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
22132 * lib/addext.c (<errno.h>): Include.
22133 (errno): Declare if not defined.
22134 (addext): Work correctly when pathconf returns -1 and leaves
22135 errno alone because there is no limit. Also, work even if
22136 pathconf returns a value greater than SIZE_MAX.
22138 2001-08-12 Jim Meyering <meyering@lucent.com>
22140 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
22141 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
22142 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
22143 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
22144 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
22145 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
22146 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
22147 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
22148 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
22149 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
22150 utime.m4, utimes.m4, xstrtoumax.m4:
22151 Quote the first argument in each use of AC_DEFUN.
22153 2001-08-12 Jim Meyering <meyering@lucent.com>
22155 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
22156 Simply `return getcwd (NULL, 0);'.
22157 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
22158 Use 1300 as initial value for length, not PATH_MAX.
22160 * lib/pathmax.h: Clean up cpp syntax.
22162 2001-08-12 Jim Meyering <meyering@lucent.com>
22164 * lib/gettimeofday.c: New file.
22165 * lib/gtod.h: New file.
22166 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
22168 2001-08-05 Jim Meyering <meyering@lucent.com>
22170 * m4/jm-macros.m4: Require autoconf-2.52.
22172 2001-08-04 Jim Meyering <meyering@lucent.com>
22174 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
22175 stmt, to get in sync with glibc.
22177 2001-08-03 Paul Eggert <eggert@twinsun.com>
22179 The following changes are from gettext 0.10.39 as maintained by
22182 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
22183 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
22184 with inverted sense. All uses changed.
22186 * lib/mbswidth.c: Don't include <limits.h>.
22187 Include <stdlib.h> and <string.h> unconditionally.
22188 (iswcntrl, mbsinit, ISCNTRL): New macros.
22189 (mbsnwidth): Use K&R style function declarations.
22190 Don't bother checking for MB_LEN_MAX == 1, since the compiler
22191 can optimize it when MB_CUR_MAX == 1.
22192 The width of control characters is zero, not 1.
22194 2001-08-03 Paul Eggert <eggert@twinsun.com>
22196 The following changes are from gettext 0.10.39 as maintained by
22197 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
22199 * m4/codeset.m4: Upgrade to serial AM1.
22200 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
22201 all uses changed. Quote first arg of AC_DEFUN.
22202 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
22204 * m4/iconv.m4: Upgrade to serial AM2.
22205 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
22206 Add --with-libconv-prefix.
22207 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
22208 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
22209 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
22210 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
22211 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
22213 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
22214 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
22215 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
22216 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
22217 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
22218 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
22219 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22220 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
22221 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
22223 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
22226 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
22227 not the default value.
22229 2001-06-25 Bruno Haible <haible@clisp.cons.org>
22230 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
22231 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
22232 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
22233 Also check for iswcntrl, used for wcwidth fallback.
22234 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
22237 2001-08-03 Jim Meyering <meyering@lucent.com>
22239 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
22240 as it was in the original. Reported by Paul Eggert.
22242 2001-07-16 Jim Meyering <meyering@lucent.com>
22244 * m4/gettimeofday.m4: New file.
22245 Prompted by a report from Bernhard Baehr.
22247 2001-07-15 Jim Meyering <meyering@lucent.com>
22249 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
22250 stuff. Now it's in ../Makefile.cfg.
22252 2001-07-15 Jim Meyering <meyering@lucent.com>
22254 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
22255 (BUILT_SOURCES): Add unlocked-io.h.
22256 (io_functions): Define.
22257 (unlocked-io.h): New rule.
22258 (DISTCLEANFILES): Add unlocked-io.h.
22259 (all-local): Depend on unlocked-io.h, to ensure it is created.
22261 * lib/unlocked-io.hin: New file
22263 * lib/regex.c: Update from glibc.
22265 2001-07-05 Jim Meyering <meyering@lucent.com>
22267 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
22269 (libfetish_a_SOURCES): Put all .h files here instead.
22270 Remove a thus-exposed (better checks in automake) duplicate and
22271 two unnecessary .h files.
22273 2001-07-04 Jim Meyering <meyering@lucent.com>
22275 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
22276 that generates jm-glibc-io.m4 so that it doesn't trigger any make
22279 2001-07-02 Jim Meyering <meyering@lucent.com>
22281 The following changes were prompted by suggestions from Bruno Haible.
22283 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
22285 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
22286 definition of EXTRA_DIST.
22287 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
22288 ensure that the generated file is created/updated whenever the list
22289 of $(unlocked_functions) is changed.
22290 (jm-glibc-io.m4): New rule.
22291 (unlocked-io.h): New rule -- currently unused.
22293 2001-06-24 Jim Meyering <meyering@lucent.com>
22295 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
22296 unmatched right bracket, rather than kludging it with an extra,
22297 falsely-matching quote in a comment. Patch by Akim Demaille.
22299 2001-06-11 Jim Meyering <meyering@lucent.com>
22301 * lib/regex.c: Update from GNU libc.
22303 2001-05-27 Jim Meyering <meyering@lucent.com>
22305 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
22306 Check for ut_type in struct utmp.
22308 2001-05-27 Jim Meyering <meyering@lucent.com>
22310 * lib/readutmp.h (UT_TYPE): Define.
22312 2001-05-24 Jim Meyering <meyering@lucent.com>
22314 * lib/argmatch.c: Include "quote.h".
22315 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
22316 quote function. Reported by Göran Uddeborg.
22318 2001-05-22 Jim Meyering <meyering@lucent.com>
22320 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
22321 now that we use the package-supplied version unconditionally.
22322 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
22324 2001-05-21 Jim Meyering <meyering@lucent.com>
22326 * m4/regex.m4: Change a couple backticks to single quotes to avoid
22327 shell syntax errors.
22329 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
22331 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
22333 2001-05-20 Paul Eggert <eggert@twinsun.com>
22335 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
22336 Don't bother to check library strftime, since
22337 we'll be using our own my_strftime function anyway.
22338 Define my_strftime instead of strftime.
22340 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
22342 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
22343 which is not yet declared.
22345 2001-05-15 Jim Meyering <meyering@lucent.com>
22347 * m4/regex.m4: Use proper quoting so brackets appear in the test
22349 Reported by, and with help from, Bruno Haible.
22351 2001-05-13 Jim Meyering <meyering@lucent.com>
22353 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
22356 2001-05-11 Paul Eggert <eggert@twinsun.com>
22358 dirname code cleanup. base_name now behaves more compatibly
22359 with POSIX basename when given file names that have trailing
22360 slashes, and similarly for dir_name. Add new primitives
22361 base_len and dir_len. Put the directory-name-related decls
22364 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
22365 * lib/backupfile.c (base_name): Likewise.
22366 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
22367 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
22368 * lib/makepath.c (strip_trailing_slashes): Likewise.
22369 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
22370 ISSLASH): Likewise.
22371 * lib/rename.c (strip_trailing_slashes): Likewise.
22372 * lib/same.c (base_name): Likewise.
22373 * lib/stripslash.c (ISSLASH): Likewise.
22375 * lib/addext.c: Include <dirname.h> after size_t is defined.
22376 * lib/backupfile.c: Likewise.
22378 * lib/addext.c (addext): Use base_len to trim redundant
22379 trailing slashes instead of doing it ourselves.
22380 But do not trim the last slash if it is not redundant.
22382 * lib/backupfile.c (find_backup_file_name,
22383 max_backup_version): Use base_len instead of rolling it ourselves.
22384 Handle the case of "" and (on DOS) "C:" correctly.
22386 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
22387 needed. Include <string.h>, <dirname.h>.
22388 (base_name): Allow file names ending in slashes, other than names
22389 that are all slashes. In this case, return the basename followed
22390 by the slashes. This is more general, and can be used in places
22391 where the original base_name purposely had an assertion failure.
22392 (base_len): New function.
22394 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
22395 Do not include <assert.h>; no longer needed.
22397 (memrchr): Remove decl.
22398 (dir_name_r): Remove.
22399 (dir_len): Renamed from dirlen. All callers changed.
22400 Rewrite in terms of base_name, for simplicity and consistency.
22401 (dir_name): Never return NULL. All callers changed.
22402 Do not include <stdlib.h> in test program; no longer needed.
22403 return 0; is fine for test program.
22405 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
22407 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
22409 * lib/path-concat.c (path_concat): Use base_len to compute
22410 base length, not strlen; this means we cannot rely on memcpy
22413 * lib/same.c (STREQ): Remove.
22414 (same_name): Handle the case where the basename ends in trailing '/'.
22416 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
22417 a slash was stripped. Do not strip the last slash after a
22418 file system prefix.
22420 2001-05-11 Paul Eggert <eggert@twinsun.com>
22422 * lib/Makefile.am (libfetish_a_SOURCES):
22423 Add strftime.c, since we now compile it on all hosts.
22425 * lib/strftime.c (my_strftime):
22426 Define to nstrftime if emacs, but only if my_strftime is not defined.
22427 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
22428 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
22429 Add one more extra argument: a nanoseconds value.
22432 (my_strftime function): Add %N format.
22433 (emacs_strftimeu): Renamed from emacs_strftime,
22434 with extra ut argument.
22436 2001-05-09 Paul Eggert <eggert@twinsun.com>
22438 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
22440 2001-04-21 Jim Meyering <meyering@lucent.com>
22442 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
22445 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
22447 * m4/ftruncate.m4: Check for chsize.
22448 Link with ftruncate.o unconditionally if ftruncate is missing.
22449 This was required when cross-compiling to i586-mingw32msvc.
22451 2001-04-08 Jim Meyering <meyering@lucent.com>
22453 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
22454 recomputed; that's necessary when the offset spans a DST transition.
22455 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
22457 2001-04-02 Jim Meyering <meyering@lucent.com>
22459 * lib/regex.h, regex.c: Update from GNU libc.
22461 2001-03-24 Jim Meyering <meyering@lucent.com>
22463 * m4/jm-macros.m4: Require autoconf-2.49d.
22465 2001-03-20 Bruno Haible <haible@clisp.cons.org>
22467 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
22469 2001-03-19 Paul Eggert <eggert@twinsun.com>
22471 * lib/version-etc.c (version_etc_copyright): Update to 2001.
22473 2001-03-17 Jim Meyering <meyering@lucent.com>
22475 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
22476 now that the version in autoconf is equivalent.
22477 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
22479 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
22480 Suggestion from Akim Demaille.
22482 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
22483 (jm_PREREQ_TEMPNAME): New function.
22485 2001-03-16 Paul Eggert <eggert@twinsun.com>
22487 * lib/tempname.c (uint64_t): Define to uintmax_t if
22488 not defined, and if UINT64_MAX is not defined.
22489 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
22490 Reported by John David Anglin.
22492 2001-03-15 Bruno Haible <haible@clisp.cons.org>
22494 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
22495 resolve alias if codeset is empty.
22496 * lib/config.charset (BeOS): Use wildcard syntax.
22498 2001-03-13 Jim Meyering <meyering@lucent.com>
22500 * lib/path-concat.c (path_concat)
22501 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
22502 concatenating e.g., `C:' and `foo'.
22505 2001-03-06 Bruno Haible <haible@clisp.cons.org>
22507 * lib/localcharset.c (locale_charset): Don't use
22508 setlocale(LC_CTYPE,NULL). Don't return NULL.
22509 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
22511 2001-03-06 Bruno Haible <haible@clisp.cons.org>
22513 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
22514 support for DOS/DJGPP.
22516 2001-03-01 Paul Eggert <eggert@twinsun.com>
22518 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
22519 lacks mkstemp. Compile our own tempname.c if we compile our own
22520 mkstemp.c, as mkstemp relies on tempname.
22522 2001-03-01 Jim Meyering <meyering@lucent.com>
22524 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
22525 AH_VERBATIM really does output its argument verbatim.
22527 2001-02-28 Paul Eggert <eggert@twinsun.com>
22529 * lib/Makefile.am (libfetish_a_SOURCES):
22530 Add dup-safer.c, fopen-safer.c.
22531 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
22533 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
22534 * lib/unistd-safer.h: New files.
22536 2001-02-25 Paul Eggert <eggert@twinsun.com>
22538 The mkstemp replacement is taken from glibc 2.2.2, with some
22539 portability fixes for use outside glibc, as follows:
22541 * lib/tempname.c (struct_stat64): New macro.
22542 (direxists, __gen_tempname): Use it.
22543 This avoids a portability problem with Solaris 8.
22545 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
22546 (<stddef.h>, <stdint.h>, <string.h>):
22547 Include only if STDC_HEADERS || _LIBC.
22548 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
22549 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
22550 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
22551 (__set_errno): Define this macro if <errno.h> doesn't.
22552 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
22553 Define these macros if <stdio.h> doesn't.
22554 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
22555 Define these macros if <sys/stat.h>
22556 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
22557 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
22558 __xstat64): Define if not _LIBC.
22559 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
22560 (__gen_tempname): Invoke gettimeofday only if
22561 HAVE_GETTIMEOFDAY || _LIBC;
22562 otherwise, fall back on plain "time".
22563 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
22565 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
22567 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
22569 2001-02-18 Paul Eggert <eggert@twinsun.com>
22571 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
22573 2001-02-17 Paul Eggert <eggert@twinsun.com>
22575 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
22576 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
22577 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
22578 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22580 2001-02-17 Paul Eggert <eggert@twinsun.com>
22582 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
22583 Remove workaround macros for hosts that have mbrtowc but not
22584 mbstate_t, as we now insist on proper declarations for both
22585 before using mbrtowc.
22587 2001-02-17 Jim Meyering <meyering@lucent.com>
22589 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
22590 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
22591 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
22594 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
22595 rather than AC_CACHE_VAL.
22597 2001-02-17 Jim Meyering <meyering@lucent.com>
22599 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
22600 around included file name.
22602 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
22604 * lib/strftime.c: Update from GNU libc (the only changes were to
22607 2001-02-17 Jim Meyering <meyering@lucent.com>
22609 * lib/regex.c: Update from libc.
22611 2001-02-17 Bruno Haible <haible@clisp.cons.org>
22613 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
22616 2001-02-16 Paul Eggert <eggert@twinsun.com>
22618 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
22619 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
22620 Reported by Mark Hounschell via Paul Eggert.
22622 2001-02-07 Jim Meyering <meyering@lucent.com>
22624 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
22626 2001-02-05 Jim Meyering <meyering@lucent.com>
22628 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
22629 it includes the patch required for `large file' support with at least
22630 HP-UX's 10.20 /bin/cc.
22632 2001-02-03 Jim Meyering <meyering@lucent.com>
22634 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
22635 AS_IF, now that it works once again (mysteriously).
22636 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22638 2001-01-30 Jim Meyering <meyering@lucent.com>
22640 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
22641 * m4/chown.m4: Rename conftestchown to conftest.chown.
22642 * m4/rename.m4: s/conftestdir/conftest.d1/ and
22643 s/conftestdir2/conftest.d2/.
22644 * m4/utimes.m4: s/conftestdata/conftest.data/
22645 Inspired by Pavel Roskin's change in autoconf.
22647 2001-01-30 Bruno Haible <haible@clisp.cons.org>
22649 * lib/config.charset: Update for FreeBSD 4.2.
22651 2001-01-27 Jim Meyering <meyering@lucent.com>
22653 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
22655 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
22657 2001-01-26 Jim Meyering <meyering@lucent.com>
22659 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
22660 quotearg.c includes it.
22662 2001-01-26 Jim Meyering <meyering@lucent.com>
22664 * lib/quotearg.c: Include stddef.h.
22665 * lib/quote.c: Include stddef.h.
22666 Reported by Axel Kittenberger.
22668 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
22669 line in double quotes so that it evokes a better diagnostic.
22670 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
22671 Reported by Axel Kittenberger.
22673 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
22675 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
22676 as if it was a `charset'.
22678 2001-01-21 Bruno Haible <haible@clisp.cons.org>
22680 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
22683 2001-01-21 Bruno Haible <haible@clisp.cons.org>
22685 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
22686 to avoid a warning. Add back 'const' to inptr.
22688 2001-01-20 Jim Meyering <meyering@lucent.com>
22690 Be sure that headers are checked before used in code compiled
22691 for the type checks.
22692 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
22693 In place of that, invoke jm_CHECK_ALL_TYPES.
22694 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
22695 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
22696 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
22697 The check for ssize_t was mistakenly run before the test for unistd.h.
22699 The configure-time check for stdbool.h was missing.
22700 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
22701 (jm_PREREQ_HASH): New function.
22703 2001-01-17 Jim Meyering <meyering@lucent.com>
22705 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
22706 for autoconf-2.49c.
22707 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
22709 2001-01-16 Jim Meyering <meyering@lucent.com>
22711 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
22714 2001-01-14 Jim Meyering <meyering@lucent.com>
22716 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
22717 foo and bar. Create conftestdir/ in the script, not in the C code.
22718 Remove directories in the script, not in the C code.
22719 Remove conftestdir{,2} before trying to create the directory.
22720 Make the entire configure script fail if the mkdir fails.
22722 2001-01-14 Jim Meyering <meyering@lucent.com>
22724 * lib/rename.c: New file. From Volker Borchert.
22725 Include stdlib.h, string.h or strings.h, and xalloc.h.
22726 Use strip_trailing_slashes rather than open-coding it.
22728 2001-01-03 Paul Eggert <eggert@twinsun.com>
22730 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
22732 2001-01-03 Jim Meyering <meyering@lucent.com>
22734 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
22735 of local `inptr' to avoid warning with some system declarations of
22738 2001-01-02 Volker Borchert <bt@teknon.de>
22740 * m4/rename.m4: New file.
22741 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
22743 2001-01-01 Jim Meyering <meyering@lucent.com>
22745 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
22746 even on systems with utmpx.h. It's necessary for the declaration of
22747 utmp's ut_user member. Reported by Andreas Jaeger.
22749 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
22750 available. They are required for the declarations of getgrgid and
22752 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
22753 Reported by Andreas Jaeger.
22755 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
22757 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
22758 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
22759 so `make install' also works in VPATH builds.
22761 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
22763 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
22764 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
22765 can be used in subdirectories.
22767 2000-12-29 Paul Eggert <eggert@twinsun.com>
22769 * lib/modechange.c: Do not assume that mode_t uses the
22770 traditional octal encoding. E.g. "chmod 1 FOO" should set
22771 the other-execute bit of FOO even if S_IXOTH != 1.
22773 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
22774 WOTH, XOTH, ALLM): New macros.
22775 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
22776 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
22778 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
22779 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
22781 No need to use uintmax_t; unsigned long is long enough.
22782 Don't bother to get suffix since we don't use it.
22784 2000-12-26 Jim Meyering <meyering@lucent.com>
22786 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
22787 better with autoheader.
22789 2000-12-24 Jim Meyering <meyering@lucent.com>
22791 * lib/hash.c (is_prime): Return explicit boolean values.
22792 (hash_get_first): Return NULL to appease Irix5.6's 89.
22793 Reported by Nelson Beebe.
22795 2000-12-19 Bruno Haible <haible@clisp.cons.org>
22797 * lib/localcharset.c (locale_charset): Add support for Win32.
22799 2000-12-18 Paul Eggert <eggert@twinsun.com>
22801 * lib/physmem.h, lib/physmem.c: New files.
22803 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
22804 (noinst_HEADERS): Add physmem.h.
22806 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
22807 't' for compatibility with Solaris 8 sort.
22809 2000-12-18 Bruno Haible <haible@clisp.cons.org>
22811 * lib/config.charset: Add support for BeOS.
22813 2000-12-17 Jim Meyering <meyering@lucent.com>
22815 * m4/dos.m4 (jm_AC_DOS): New file and macro.
22816 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
22818 2000-12-16 Jim Meyering <meyering@lucent.com>
22820 This bug had a serious impact on chown: `chown N:M FILE' (for integer
22821 N and M) would have treated it like `chown N:N FILE'.
22823 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
22825 2000-12-16 Jim Meyering <meyering@lucent.com>
22827 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
22828 SHELLS_FILE to a file name that's useful on djgpp systems.
22830 (ADDITIONAL_DEFAULT_SHELLS): Define.
22831 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
22832 Based mostly on a patch from Prashant TR.
22834 2000-12-16 Bruno Haible <haible@clisp.cons.org>
22836 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
22837 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
22838 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
22840 2000-12-08 Andreas Schwab <schwab@suse.de>
22842 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
22843 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
22845 2000-12-07 Jim Meyering <meyering@lucent.com>
22847 * lib/stripslash.c (ISSLASH): Define.
22848 (strip_trailing_slashes): Use ISSLASH rather than comparing against
22852 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
22853 (dir_name_r): Declare this function as static.
22854 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
22855 manifest itself on a name containing a mix of slashes and
22857 Make this function work with names starting with a DOS-style
22858 drive letter and colon prefix.
22859 (dir_name): Append `.' if necessary.
22860 Based mostly on patches from Prashant TR and Eli Zaretskii.
22862 * lib/dirname.h (dir_name_r): Remove prototype.
22864 2000-12-06 Paul Eggert <eggert@twinsun.com>
22866 * m4/off_t-format.m4: Remove this file.
22867 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
22869 2000-12-06 Jim Meyering <meyering@lucent.com>
22871 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
22872 replacement strtoull, we may well need the replacement strtoul, too.
22873 Check for declarations of strtoul and strtoull.
22874 Check for strtol. Mainly as a cue to cause automake to include
22875 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
22876 Check for limits.h -- strtol.c needs it.
22878 2000-12-05 Jim Meyering <meyering@lucent.com>
22880 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
22882 2000-12-04 Jim Meyering <meyering@lucent.com>
22884 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
22885 Also include memory.h, stdlib.h, unistd.h if appropriate.
22886 Reported by Andreas Jaeger (conflicting declaration of malloc).
22888 2000-12-02 Jim Meyering <meyering@lucent.com>
22890 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
22891 * m4/jm-macros.m4 (jm_MACROS): require it.
22893 2000-12-02 Jim Meyering <meyering@lucent.com>
22895 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
22897 2000-12-01 Paul Eggert <eggert@twinsun.com>
22899 * lib/memrchr.c: Include <config.h> before any system include file.
22901 2000-11-30 Jim Meyering <meyering@lucent.com>
22903 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
22905 2000-11-30 Jim Meyering <meyering@lucent.com>
22907 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
22909 2000-11-29 Paul Eggert <eggert@twinsun.com>
22911 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
22913 2000-11-26 Jim Meyering <meyering@lucent.com>
22915 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
22917 2000-11-22 Paul Eggert <eggert@twinsun.com>
22919 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
22920 size of (size_t) -1; it's not portable.
22922 2000-11-17 Jim Meyering <meyering@lucent.com>
22924 * lib/strstr.c: Update from GNU libc.
22926 2000-11-17 Akim Demaille <akim@epita.fr>
22928 * lib/obstack.h: Formatting changes.
22929 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
22930 prevent type checking.
22931 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
22932 cast the value to (void *): assigning a `foo *' to a `void *'
22934 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
22936 2000-11-16 Jim Meyering <meyering@lucent.com>
22938 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
22940 2000-11-11 Jim Meyering <meyering@lucent.com>
22942 * lib/error.c: Add a couple #includes, merging from GNU libc version.
22944 2000-11-10 Jim Meyering <meyering@lucent.com>
22946 * lib/obstack.h: Update from GNU libc.
22947 * lib/obstack.c: Likewise.
22949 2000-11-08 Bruno Haible <haible@clisp.cons.org>
22951 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
22953 2000-11-06 Paul Eggert <eggert@twinsun.com>
22955 * lib/getusershell.c (setusershell): Use rewind rather than
22956 fseek/fseeko, to avoid configuration hassles with fseeko.
22957 Don't bother opening SHELLS_FILE if shellstream is NULL;
22958 it's not necessary.
22960 2000-11-05 Jim Meyering <meyering@lucent.com>
22962 * lib/makepath.h (make_dir): Declare.
22963 * lib/makepath.c (make_dir): Remove `static' attribute.
22966 2000-11-04 Jim Meyering <meyering@lucent.com>
22968 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
22970 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
22972 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
22973 last one in a bucket, advance to the next bucket.
22975 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
22977 * lib/fnmatch.c: Do not comment out all the code if we are using
22978 the GNU C library, because in some cases we are replacing buggy
22979 code in the GNU C library itself.
22981 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
22983 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
22984 (regex_compile): Catch bogus \(\1\).
22986 2000-10-30 Paul Eggert <eggert@twinsun.com>
22988 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
22989 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
22990 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
22992 2000-10-30 Paul Eggert <eggert@twinsun.com>
22994 * lib/error.h, getline.h, modechange.h:
22995 Remove "2000" from Copyright line, as the file hasn't been
22996 changed this year other than in the copyright notice.
22998 * lib/xalloc.h: Add "2000" to Copyright line, as this file
22999 was changed this year.
23001 2000-10-29 Jim Meyering <meyering@lucent.com>
23003 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23005 * m4/ls-mntd-fs.m4: Likewise
23007 2000-10-29 Jim Meyering <meyering@lucent.com>
23009 * lib/xstat.in: Fix grammar in comment.
23011 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
23013 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23014 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23015 doesn't define __restrict_arr.
23017 2000-10-28 Jim Meyering <meyering@lucent.com>
23019 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23020 (jm_PREREQ_MEMCHR): New function.
23022 2000-10-28 Jim Meyering <meyering@lucent.com>
23024 * lib/memchr.c: Update from libc.
23025 Adjust for portability:
23026 [HAVE_STDLIB_H]: Include stdlib.h.
23027 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23028 Undef __memchr, too.
23029 [!weak_alias]: Define __memchr to memchr.
23031 * lib/regex.c: Update from libc.
23032 * lib/regex.h: Likewise.
23033 * lib/getopt1.c: Likewise.
23034 * lib/memcmp.c: Likewise.
23036 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23037 Avoid using fseek, when possible -- it's broken by design.
23038 Patch by Ulrich Drepper.
23040 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
23042 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23043 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23044 Giving in to popular pressure to shut up the compiler with casts.
23046 2000-10-26 Jim Meyering <meyering@lucent.com>
23048 * lib/strftime.c: Update from libc.
23050 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
23052 * regex.c: More `unsigned char' -> `re_char' changes.
23053 Also change several `int' into `re_wchar_t'.
23054 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23055 (PUSH_FAILURE_POINTER): Don't cast any more.
23056 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23057 We want GCC to complain, since this piece of code makes
23058 re_match non-reentrant, which *should* be fixed.
23059 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23060 (EXTEND_BUFFER): Use RETALLOC.
23061 (SET_LIST_BIT): Don't cast.
23062 (re_wchar_t): New type.
23063 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23064 that those two functions will always properly return.
23065 (IMMEDIATE_QUIT_CHECK): Cast to void.
23066 (analyse_first): Use recursion rather than an explicit stack.
23067 (re_compile_fastmap): Can't fail anymore.
23068 (re_search_2): Don't check re_compile_fastmap for failure.
23069 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23070 Now also sets the new value (passed in a new argument).
23071 (re_match_2_internal): Use it.
23072 Also, use a new var `reg' of type size_t when looping through regs
23073 rather than reuse the inappropriate `mcnt'.
23075 2000-10-25 Jim Meyering <meyering@lucent.com>
23077 * lib/obstack.c: Update from libc.
23079 2000-10-24 Kenichi Handa <handa@etl.go.jp>
23081 * regex.c (regex_compile): Change the way of handling a range from
23082 a char less than 256 to a char not less than 256.
23084 2000-10-24 Andrew Innes <andrewi@gnu.org>
23086 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
23088 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
23089 so that re_search functions only quit when callers expect them to.
23091 2000-10-23 Jim Meyering <meyering@lucent.com>
23093 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
23094 wrong. That set_locale call must not have any side effects.
23097 2000-10-22 Jim Meyering <meyering@lucent.com>
23099 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
23100 [CYCLIC]: Remove now-unused definition.
23102 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
23103 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
23104 Suggestion from Ulrich Drepper.
23106 2000-10-21 Jim Meyering <meyering@lucent.com>
23108 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
23109 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
23110 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
23112 2000-10-21 Jim Meyering <meyering@lucent.com>
23114 * lib/dirname.c (memrchr): Declare if necessary.
23115 (dir_name): Remove the restriction that there be no
23116 trailing slashes. Now, this code skips past them, effectively
23118 [TEST_DIRNAME] (main): New unit tests.
23120 * lib/memrchr.c: New file from GNU libc.
23121 Undef __memrchr, too.
23122 [!weak_alias]: Define __memrchr to memrchr.
23123 Guard weak_alias use with `#ifdef weak_alias'.
23125 2000-10-21 Jim Meyering <meyering@lucent.com>
23127 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
23128 (dir_name): Use dir_name_r.
23129 * lib/dirname.h (dir_name_r): Declare it.
23131 2000-10-17 Jim Meyering <meyering@lucent.com>
23133 * lib/quote.h (PARAMS): Define and use.
23134 Reported by Akim Demaille.
23136 * lib/getopt.c: Update from libc.
23138 2000-10-16 Jim Meyering <meyering@lucent.com>
23140 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
23144 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
23146 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
23148 2000-09-25 Jim Meyering <meyering@lucent.com>
23150 * lib/md5.h (rol): Define (from GnuPG).
23152 * lib/sha.c: Give credit (GnuPG) where due.
23153 (M): Use rol rather than open-coding it.
23154 Add a FIXME comment.
23156 2000-09-21 Jim Meyering <meyering@lucent.com>
23158 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
23159 Reported by Michael Stone.
23161 2000-09-20 Jim Meyering <meyering@lucent.com>
23163 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
23164 (noinst_HEADERS): Add sha.h.
23165 Based on code from Scott G. Miller and from GnuPG.
23167 2000-09-18 Jim Meyering <meyering@lucent.com>
23169 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
23170 LIBS. Otherwise, everyone ends up linking with -lelf for some
23172 Reported by Mike Stone.
23174 2000-09-15 Jim Meyering <meyering@lucent.com>
23176 * lib/regex.c: Update from libc.
23178 2000-09-10 Jim Meyering <meyering@lucent.com>
23180 * lib/getopt.c (_getopt_internal): Update from glibc.
23182 2000-09-09 Jim Meyering <meyering@lucent.com>
23184 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
23185 think it should be used as a general replacement for isascii.
23186 * lib/fnmatch.c: Likewise.
23187 * lib/mbswidth.c: Likewise
23188 * lib/regex.c: Likewise.
23191 * lib/userspec.c: Include sys/param.h and limits.h.
23193 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
23194 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
23195 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
23196 UID, GID. Check range.
23198 2000-09-06 Jim Meyering <meyering@lucent.com>
23200 * lib/getopt.c (_getopt_internal): Update from glibc.
23202 2000-08-30 Jim Meyering <meyering@lucent.com>
23204 * lib/strftime.c: Merge in changes from GNU libc.
23206 2000-08-26 Jim Meyering <meyering@lucent.com>
23208 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
23209 * m4/fpending.m4: New file.
23211 2000-08-26 Jim Meyering <meyering@lucent.com>
23213 * lib/closeout.c: Include "__fpending.h".
23214 (close_stdout_status): Return right away if there's nothing to flush.
23216 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
23217 * lib/__fpending.c: New file.
23218 * lib/__fpending.h: New file.
23220 2000-08-20 Jim Meyering <meyering@lucent.com>
23222 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
23223 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
23224 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
23226 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
23228 Improve fileutils installation on systems where running
23229 programs (like install) can't be unlinked.
23230 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
23231 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
23233 2000-08-07 Paul Eggert <eggert@twinsun.com>
23235 Standardize on "memory exhausted" instead of "Memory exhausted"
23236 or "virtual memory exhausted".
23237 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
23238 "virtual memory exhausted".
23239 * lib/same.c (same_name): Invoke xalloc_die instead of printing
23241 * lib/userspec.c (parse_user_spec): Likewise.
23242 * lib/bumpalloc.h: comment fix
23243 * lib/same.c, userspec.c: Include xalloc.h.
23245 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
23246 not char *const and pointing to a constant array.
23247 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
23248 (xrealloc): Comment fix.
23250 * lib/userspec.c (parse_user_spec):
23251 Don't translate a message until just before returning,
23252 to avoid unnecessary translation.
23254 2000-08-07 Jim Meyering <meyering@lucent.com>
23256 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
23257 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
23258 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
23259 getgroups.c, gethostname.c, getopt.h, group-member.c,
23260 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
23261 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
23262 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
23263 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
23264 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
23265 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
23266 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
23267 yesno.c: Back out Copyright date changes for each file with no change
23268 this year. This eases coordination with other programs using the same
23269 source code modules. From Paul Eggert.
23271 2000-08-06 Paul Eggert <eggert@twinsun.com>
23273 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
23274 not char, for compatibility with glibc 2.1.3 strftime.c.
23276 2000-08-03 Greg McGary <greg@mcgary.org>
23278 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
23279 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
23280 (EXTEND_BUFFER): Use them.
23282 2000-08-01 Jim Meyering <meyering@lucent.com>
23284 * lib/dirname.c (ISSLASH): Define.
23285 (BACKSLASH_IS_PATH_SEPARATOR): Define.
23286 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
23287 both `\' and `/' may be use as path separators.
23288 Based on a patch from Prashant TR.
23290 2000-07-31 Paul Eggert <eggert@twinsun.com>
23292 * lib/quotearg.c (quotearg_n_options): Don't make the initial
23293 slot vector a constant, since it might get modified.
23295 2000-07-31 Jim Meyering <meyering@lucent.com>
23297 * lib/xmalloc.c: Use `virtual memory exhausted', not
23298 `Memory exhausted'.
23299 * lib/obstack.c (print_and_abort): Likewise.
23301 2000-07-30 Paul Eggert <eggert@twinsun.com>
23303 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
23304 buffer, so that the caller can always quote one small
23305 component of a "memory exhausted" message in slot 0.
23306 From a suggestion by Jim Meyering.
23308 2000-07-30 Jim Meyering <meyering@lucent.com>
23310 * lib/makepath.c (make_path): Quote the other instance, too.
23312 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
23313 (STATIC_BUF_SIZE): Define.
23314 (quotearg_n_options): Use only statically allocated storage when
23315 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
23316 than STATIC_BUF_SIZE.
23318 2000-07-29 Jim Meyering <meyering@lucent.com>
23320 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
23321 * lib/dirname.c (dir_name): Likewise.
23323 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
23326 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
23327 (dir_name): Assert that there are no trailing slashes.
23329 2000-07-29 Bruno Haible <haible@clisp.cons.org>
23331 * lib/mbswidth.h (mbswidth): Add a flags argument.
23332 (mbswidth): New declaration.
23333 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
23334 * lib/mbswidth.c (mbswidth): Add a flags argument.
23335 (mbsnwidth): New function.
23337 2000-07-24 Jim Meyering <meyering@lucent.com>
23339 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
23341 2000-07-23 Paul Eggert <eggert@twinsun.com>
23343 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
23345 2000-07-23 Paul Eggert <eggert@twinsun.com>
23347 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
23348 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
23349 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
23350 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
23351 invoke multibyte primitives.
23353 2000-07-23 Paul Eggert <eggert@twinsun.com>
23356 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
23357 so that mbstate_t is always defined.
23359 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
23360 be 1 in at least one GCC installation, and this configuration
23361 error is likely to be common. Ignoring MB_LEN_MAX hurts
23362 performance on hosts that have mbrtowc but have only unibyte
23363 locales, but I assume these hosts are rare.
23365 2000-07-23 Paul Eggert <eggert@twinsun.com>
23367 * lib/mbswidth.c (_XOPEN_SOURCE):
23368 Don't define; this causes problems on Solaris 7.
23369 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
23371 2000-07-23 Jim Meyering <meyering@lucent.com>
23373 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
23374 too: getgrgid, getpwuid, getuid.
23376 2000-07-23 Jim Meyering <meyering@lucent.com>
23378 * lib/basename.c (base_name): Add an assertion.
23380 2000-07-23 Bruno Haible <haible@clisp.cons.org>
23382 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
23383 shadow its mbsinit function.
23385 2000-07-17 Bruno Haible <haible@clisp.cons.org>
23387 * lib/mbswidth.h: New file.
23388 * lib/mbswidth.c: New file.
23389 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
23390 (noinst_HEADERS): Add mbswidth.h.
23392 2000-07-17 Bruno Haible <haible@clisp.cons.org>
23394 * lib/config.charset: Add support for FreeBSD. Improve support for
23397 2000-07-16 Bruno Haible <haible@clisp.cons.org>
23399 * m4/mbswidth.m4: New file.
23400 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
23402 2000-07-15 Jim Meyering <meyering@lucent.com>
23404 * lib/makepath.c: Include quote.h.
23405 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
23406 corresponding argument in a `quote (...)' call.
23407 Give better diagnostics.
23409 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
23410 (noinst_HEADERS): Add quote.h.
23412 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
23413 from tar's src/misc.c.
23414 * lib/quote.h: New file. Prototypes for same.
23416 2000-07-14 Paul Eggert <eggert@twinsun.com>
23418 From a suggestion by Bruno Haible.
23419 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
23420 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
23421 to decide whether to define the BeOS workaround macro;
23422 this adjusts to the change to AC_MBSTATE_T.
23424 2000-07-14 Jim Meyering <meyering@lucent.com>
23426 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
23427 jm_AC_TYPE_UINTMAX_T.
23429 2000-07-13 Paul Eggert <eggert@twinsun.com>
23431 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
23433 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
23434 quotearg_buffer_restyled): Add support for
23435 clocale_quoting_style. Undo previous change to
23436 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
23437 and "{RIGHT QUOTATION MARK}" msgids.
23439 2000-07-10 Paul Eggert <eggert@twinsun.com>
23441 From a suggestion by Bruno Haible.
23442 * m4/mbstate_t.m4 (AC_MBSTATE_T):
23443 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
23444 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
23445 and mbstate_t, to a single-part test that simply defines mbstate_t.
23446 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
23447 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
23449 2000-07-10 Jim Meyering <meyering@lucent.com>
23451 * m4/strerror_r.m4: Mirror the correction made in autoconf.
23453 * m4/gnu-source.m4: Output to confdefs.h directly.
23454 Suggestion from Akim Demaille.
23456 2000-07-09 Paul Eggert <eggert@twinsun.com>
23458 The old behavior of quoting `like this' doesn't look good with
23459 newer, ISO-style fonts. See:
23460 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
23462 Instead, quote "like this" by default. Let the translator
23463 tailor the locale-specific quoting behavior by providing
23464 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
23466 * lib/quotearg.c (N_): New macro.
23467 (gettext_default): New function.
23468 (quotearg_buffer_restyled): Use
23469 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
23470 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
23472 2000-07-09 Jim Meyering <meyering@lucent.com>
23474 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
23475 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
23477 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
23478 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
23480 2000-07-09 Jim Meyering <meyering@lucent.com>
23482 * lib/Most files: Update copyright dates to include 2000.
23484 2000-07-08 Jim Meyering <meyering@lucent.com>
23486 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
23488 (xgethostname): Remove now-unnecessary #ifdef.
23489 Move declaration of `err' into loop where it's used.
23491 2000-07-05 Paul Eggert <eggert@twinsun.com>
23492 and Bruno Haible <haible@clisp.cons.org>
23494 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
23495 only if the test for an object-type mbstate_t fails. This
23496 prevents us from mistakenly reporting that mbstate_t is a
23497 system object type after we "#define mbstate_t int" to work
23500 2000-07-05 Paul Eggert <eggert@twinsun.com>
23501 and Bruno Haible <haible@clisp.cons.org>
23503 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
23505 2000-07-05 Bruno Haible <haible@clisp.cons.org>
23507 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
23509 Include <ctype.h> for use of isalpha.
23511 2000-07-05 Bruno Haible <haible@clisp.cons.org>
23513 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
23514 by allocating a larger buffer. Test the gethostname return value for
23515 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
23516 returns an error and ENAMETOOLONG isn't defined.
23518 2000-07-05 Bruno Haible <haible@clisp.cons.org>
23520 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
23523 2000-07-04 Jim Meyering <meyering@lucent.com>
23525 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
23526 of the deprecated AC_CHECKING.
23528 2000-07-04 Jim Meyering <meyering@lucent.com>
23530 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
23531 Reported by Bruno Haible.
23533 2000-07-04 Jim Meyering <meyering@lucent.com>
23535 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
23536 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
23539 2000-07-03 Paul Eggert <eggert@twinsun.com>
23541 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
23542 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
23544 2000-07-03 Paul Eggert <eggert@twinsun.com>
23545 and Bruno Haible <haible@clisp.cons.org>
23547 * lib/quotearg.c (mbrtowc):
23548 Assign to *pwc, and return 1 only if result is nonzero.
23549 (iswprint): Use ISPRINT when substituting our own mbrtowc.
23551 2000-07-03 Jim Meyering <meyering@lucent.com>
23553 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
23555 2000-07-03 Jim Meyering <meyering@lucent.com>
23557 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
23558 This is necessary to get a definition of e.g., UTMP_FILE on
23562 2000-07-02 Jim Meyering <meyering@lucent.com>
23564 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
23566 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
23567 AC_LIBOBJ(function_name).
23568 * m4/chown.m4: Likewise.
23569 * m4/fnmatch.m4: Likewise.
23570 * m4/ftruncate.m4: Likewise.
23571 * m4/getgroups.m4: Likewise.
23572 * m4/getline.m4: Likewise.
23573 * m4/group-member.m4: Likewise.
23574 * m4/jm-macros.m4: Likewise.
23575 * m4/lstat.m4: Likewise.
23576 * m4/malloc.m4: Likewise.
23577 * m4/memcmp.m4: Likewise.
23578 * m4/nanosleep.m4: Likewise.
23579 * m4/putenv.m4: Likewise.
23580 * m4/realloc.m4: Likewise.
23581 * m4/regex.m4: Likewise.
23582 * m4/stat.m4: Likewise.
23583 * m4/strftime.m4: Likewise.
23585 2000-07-02 Jim Meyering <meyering@lucent.com>
23587 * lib/quotearg.c (mbstate_t): Don't define here.
23589 2000-07-02 Jim Meyering <meyering@lucent.com>
23591 * lib/nanosleep.c (SIGCONT): Define if not already defined.
23593 2000-07-01 Jim Meyering <meyering@lucent.com>
23595 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
23597 2000-07-01 Jim Meyering <meyering@lucent.com>
23599 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
23602 2000-07-01 Bruno Haible <haible@clisp.cons.org>
23604 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
23605 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
23607 2000-07-01 Bruno Haible <haible@clisp.cons.org>
23609 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
23610 per change in ../m4/ls-mntd-fs.m4.
23611 (read_filesystem_list): Ignore symbolic links.
23613 2000-06-29 Jim Meyering <meyering@lucent.com>
23615 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
23616 for declaration of strcmp.
23618 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
23620 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
23621 Avoid warning by casting result to `char *' to remove `const'.
23623 2000-06-28 Jim Meyering <meyering@lucent.com>
23625 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
23626 included by quotearg.c, for which we perform this test. From
23629 2000-06-27 Bruno Haible <haible@clisp.cons.org>
23631 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
23632 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
23633 <utmpx.h> exists, put readutmp.o into LIBOBJS.
23635 2000-06-27 Bruno Haible <haible@clisp.cons.org>
23637 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
23639 2000-06-26 Paul Eggert <eggert@twinsun.com>
23641 savedir now sets errno on failure and invokes xmalloc to get memory.
23642 Fix a couple of other minor bugs while we're at it.
23644 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
23645 (NAMLEN): Remove macro.
23646 (malloc, realloc): Remove decls.
23647 (stpcpy): Likewise.
23648 ("xalloc.h"): Include.
23649 (NAME_SIZE_DEFAULT): New macro.
23650 (savedir): Use xmalloc / xrealloc to allocate memory.
23651 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
23652 Skip "" directory entries.
23653 Use strlen to calculate directory entry length, since the old method
23654 is rarely used these days and isn't worth supporting.
23655 Don't use a pointer after freeing it.
23656 Check for integer overflow when calculating allocation size.
23657 Use memcpy to copy entries, instead of stpcpy.
23658 Set errno properly when returning NULL.
23659 Check for readdir error.
23661 2000-06-26 Jim Meyering <meyering@lucent.com>
23663 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
23665 2000-06-25 Jim Meyering <meyering@lucent.com>
23667 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
23668 Linux header bug when _XOPEN_SOURCE is defined to 500.
23670 2000-06-25 Bruno Haible <haible@clisp.cons.org>
23672 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
23675 2000-06-25 Bruno Haible <haible@clisp.cons.org>
23677 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
23679 Don't include <stdlib.h>. Don't declare malloc, realloc.
23681 2000-06-24 Jim Meyering <meyering@lucent.com>
23683 * m4/strerror_r.m4: Revive this file -- to try out an experimental
23684 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
23685 for which strerror does return char*, but which lacks a conveniently
23686 accessible declaration of the function. If the compile-test says
23687 strerror_r doesn't work, then resort to a `run'-test that works on
23688 BeOS and segfaults on DEC Unix.
23690 2000-06-24 Jim Meyering <meyering@lucent.com>
23692 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
23694 2000-06-23 Paul Eggert <eggert@twinsun.com>
23696 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
23697 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
23699 2000-06-23 Paul Eggert <eggert@twinsun.com>
23701 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
23702 (mbrtowc, mbstate_t): Define substitutes if
23703 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
23704 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
23705 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
23707 2000-06-23 Jim Meyering <meyering@lucent.com>
23709 * m4/afs.m4: Add missing AC_MSG_RESULT.
23710 Reported by Bruno Haible.
23712 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
23713 Suggestion from Bruno Haible.
23715 2000-06-23 Jim Meyering <meyering@lucent.com>
23717 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
23719 2000-06-21 Jim Meyering <meyering@lucent.com>
23721 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
23723 2000-06-21 Jim Meyering <meyering@lucent.com>
23725 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
23726 (noinst_HEADERS): Add getstr.h.
23728 * lib/getline.c (getstr): Move into a separate file.
23729 * lib/getstr.c (getstr): New file, extracted from getline.c, with
23730 the following changes: new parameter, delim2; both delim[12]
23731 parameters have type `int', not `char'. The latter would lose
23732 with 8-bit delimiters.
23733 * lib/getstr.h: New file.
23735 2000-06-21 Bruno Haible <haible@clisp.cons.org>
23737 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
23738 than 1024, return a memory chunk of least possible size, instead
23739 of size PATH_MAX + 2. In the loop, increment the size proportionally.
23740 Use free/xmalloc instead of xrealloc to avoid copying for very long
23743 2000-06-21 Bruno Haible <haible@clisp.cons.org>
23745 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
23748 2000-06-21 Bruno Haible <haible@clisp.cons.org>
23750 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
23751 address, not strdup. Include <stdlib.h> and don't declare free().
23753 2000-06-19 Jim Meyering <meyering@lucent.com>
23755 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
23757 2000-06-18 Jim Meyering <meyering@lucent.com>
23759 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
23761 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
23762 `checking whether...' message to be consistent with that of the
23765 2000-06-18 Jim Meyering <meyering@lucent.com>
23767 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
23768 Besides, these days every porting target provides a mkdir function.
23770 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
23771 needed. (this snippet comes from src/system.h).
23773 2000-06-16 Bruno Haible <haible@clisp.cons.org>
23775 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
23777 2000-06-15 Paul Eggert <eggert@twinsun.com>
23779 * lib/human.c (adjust_value): New function.
23780 (human_readable_inexact): Apply rounding style even when
23781 printing approximate values.
23783 2000-06-14 Paul Eggert <eggert@twinsun.com>
23785 * lib/human.c (human_readable_inexact): Allow an input block
23786 size that is not a multiple of the output block size, and vice versa.
23787 Reported by Piergiorgio Sartor.
23789 2000-06-14 Paul Eggert <eggert@twinsun.com>
23791 * lib/getdate.y (get_date): Apply relative times after time
23792 zone indicator, not before. Reported by Todd A. Jacobs.
23794 2000-06-13 Jim Meyering <meyering@lucent.com>
23796 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
23798 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
23800 2000-06-12 Paul Eggert <eggert@twinsun.com>
23802 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
23804 2000-06-12 Jim Meyering <meyering@lucent.com>
23806 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
23807 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
23809 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
23810 the optional argument, `lib'.
23812 2000-06-08 Jim Meyering <meyering@lucent.com>
23814 * m4/largefile.m4: Remove file (now that it's part of autoconf).
23816 2000-06-04 Paul Eggert <eggert@twinsun.com>
23818 Rewrite largefile configuration so that we don't need to run
23819 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
23820 AC_CANONICAL_HOST in configure.in -- jmm]
23822 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
23823 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
23824 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
23825 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
23826 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
23828 Instead of inspecting the output of getconf, try to compile the
23829 test program without and with the macro definition.
23830 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
23831 for getconf. Instead, check for the needed flags by compiling
23834 2000-06-04 Paul Eggert <eggert@twinsun.com>
23836 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
23838 2000-06-04 Jim Meyering <meyering@lucent.com>
23840 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
23841 SunOS 4.1.4 for which gid_t is an unsigned type.
23843 2000-06-03 Jim Meyering <meyering@lucent.com>
23845 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
23846 now that autoconf requires that.
23848 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
23849 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
23850 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
23852 2000-06-03 Jim Meyering <meyering@lucent.com>
23854 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
23856 2000-06-03 Bruno Haible <haible@clisp.cons.org>
23858 * m4/glibc21.m4: New file.
23859 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
23861 2000-06-03 Bruno Haible <haible@clisp.cons.org>
23863 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
23864 newer, don't install charset.alias.
23865 * lib/config.charset: Change the Linux/glibc rules so they become empty
23866 on glibc-2.1 or newer.
23868 2000-06-02 Jim Meyering <meyering@lucent.com>
23870 * lib/mountlist.c: Back out last change. Instead, do this...
23871 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
23872 me_dummy member using the same `ignore'-testing code.
23873 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
23877 2000-05-29 Jim Meyering <meyering@lucent.com>
23879 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
23880 mounts with the `ignore' attribute. Based on a patch from
23883 2000-05-28 Jim Meyering <meyering@lucent.com>
23885 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
23886 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23887 * m4/stat.m4: Likewise.
23888 * m4/lstat.m4: Likewise.
23889 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
23891 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
23892 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
23894 2000-05-26 Jim Meyering <meyering@lucent.com>
23896 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
23898 2000-05-24 Jim Meyering <meyering@lucent.com>
23900 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
23901 autoconf requires that.
23902 * m4/lib-check.m4: Likewise.
23903 * m4/jm-macros.m4: Likewise.
23904 * m4/strftime.m4: Likewise.
23906 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
23907 AC_CHECK_DECLS, now that autoconf requires that.
23909 2000-05-22 Jim Meyering <meyering@lucent.com>
23911 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
23912 * m4/lstat.m4: Likewise.
23914 2000-05-22 Jim Meyering <meyering@lucent.com>
23916 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
23918 2000-05-20 Jim Meyering <meyering@lucent.com>
23920 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
23921 (jm_PREREQ): Use it.
23923 2000-05-18 Jim Meyering <meyering@lucent.com>
23925 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
23926 back, too, since it may have been modified by allocate_entry.
23927 (hash_delete): Rewrite to use neither the assignment operator
23928 nor the comma operator in an if-expression.
23930 2000-05-15 Paul Eggert <eggert@twinsun.com>
23933 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
23934 Remove; no longer needed.
23935 "quotearg.h": Add include.
23936 (file_name): Do not bother to explicitly initialize to NULL; it's less
23937 efficient on some hosts.
23938 (close_stdout_status): Remove test as to whether stdout was already
23939 closed; it breaks for the case "echo x | sort >&-".
23940 Quote file name colons.
23941 Do not assume that _("write error") lacks format strings.
23943 2000-05-15 Jim Meyering <meyering@lucent.com>
23945 * lib/version-etc.c (version_etc_copyright): Update the copyright
23946 string used in all --version output.
23948 2000-05-14 Jim Meyering <meyering@lucent.com>
23950 * lib/closeout.c (close_stdout_set_file_name): New function.
23951 (close_stdout_status): Use new file-scoped global.
23952 Return right away if fstat says the stdout file descriptor is invalid.
23953 * lib/closeout.h (close_stdout_set_file_name): Declare.
23955 2000-05-10 Jim Meyering <meyering@lucent.com>
23957 * lib/closeout.c [default_exit_status]: New file-scoped variable.
23958 (close_stdout_set_status): New function.
23959 * lib/closeout.h (close_stdout_set_status): Declare.
23961 2000-05-09 Jim Meyering <meyering@lucent.com>
23963 * m4/gettext.m4: Rename this...
23964 * m4/libintl.m4: ...to this.
23966 2000-05-08 Jim Meyering <meyering@lucent.com>
23968 * lib/long-options.c: Don't include closeout.h.
23969 (parse_long_options): Don't call close_stdout for --version.
23971 2000-05-06 Paul Eggert <eggert@twinsun.com>
23973 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
23974 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
23975 2.1.3 bug. This avoids a clash when files like regex.c define
23978 2000-05-06 Jim Meyering <meyering@lucent.com>
23980 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
23981 (AC_REPLACE_FUNCS): Add strnlen.
23983 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
23984 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
23986 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
23987 AC_SEARCH_LIBS call for nanosleep.
23988 (LIB_NANOSLEEP): Set and AC_SUBST.
23990 2000-05-06 Jim Meyering <meyering@lucent.com>
23992 * lib/strnlen.c: Undefine __strnlen and strnlen.
23993 [!weak_alias]: Define __strnlen to strnlen.
23995 * lib/atexit.c: New file, from libiberty.
23997 2000-05-06 Jim Meyering <meyering@lucent.com>
23999 * lib/closeout.c (close_stdout_status): Also check for errors on the
24002 2000-05-05 Jim Meyering <meyering@lucent.com>
24004 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24005 AC_SEARCH_LIBS call for clock_gettime.
24006 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24008 * m4/search-libs.m4: Update from autoconf.
24010 su doesn't work on Solaris 2.6.
24011 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24012 <shadow.h>. Reported by Dragos Harabor.
24014 2000-05-05 Bruno Haible <haible@clisp.cons.org>
24016 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24017 memcpy instead of xmalloc, xrealloc, path_concat.
24018 (locale_charset): Treat empty environment variables as absent.
24019 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24021 2000-05-04 Jim Meyering <meyering@lucent.com>
24023 * lib/getopt.c: Update from glibc.
24024 * lib/obstack.c: Likewise.
24025 * lib/obstack.h: Likewise.
24026 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
24029 * lib/regex.h: Likewise.
24030 * lib/strndup.c: Likewise.
24031 * lib/strnlen.c: New file, from glibc.
24033 2000-05-03 Jim Meyering <meyering@lucent.com>
24035 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24037 2000-05-02 Paul Eggert <eggert@twinsun.com>
24039 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24040 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
24041 compile-time test, rather than inspecting host and OS, to
24042 decide whether to define _LARGEFILE_SOURCE.
24044 2000-05-01 Jim Meyering <meyering@lucent.com>
24046 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24048 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24049 Based on a patch from Bruno Haible.
24051 2000-05-01 Jim Meyering <meyering@lucent.com>
24053 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24055 2000-04-29 Jim Meyering <meyering@lucent.com>
24057 * lib/path-concat.c: Declare strdup only if it's not defined.
24058 * lib/canon-host.c: Likewise.
24060 2000-04-28 Jim Meyering <meyering@lucent.com>
24062 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24063 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
24064 is included first, then limits.h is included by locale.h by libintl.h.
24065 From John David Anglin.
24067 2000-04-25 Jim Meyering <meyering@lucent.com>
24069 * lib/makepath.c (S_IRWXUGO): Define.
24070 (make_path): Always perform explicit chmod if MODE specifies any
24071 of the `special' permission bits. Prompted by a bug report against
24072 install from Mate Wierdl and Joost van Baal.
24074 2000-04-18 Jim Meyering <meyering@lucent.com>
24076 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24077 (jm_PREREQ): Use it.
24079 2000-04-18 Jim Meyering <meyering@lucent.com>
24081 * lib/README: New file.
24083 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
24084 getpagesize. For BeOS. Based on a patch from Bruno Haible.
24086 2000-04-17 Jim Meyering <meyering@lucent.com>
24089 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
24090 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
24091 Suggestion from Akim Demaille.
24093 2000-04-17 Jim Meyering <meyering@lucent.com>
24095 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
24096 the definition of it to rpl_strftime also defined-away the system's
24099 2000-04-15 Jim Meyering <meyering@lucent.com>
24101 Use `C' to denote so-called `contiguous' files, the same way
24103 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
24104 (ftypelet): Use S_ISCTG.
24105 From Michael Deutschmann.
24107 2000-04-14 Jim Meyering <meyering@lucent.com>
24109 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
24110 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
24113 2000-04-14 Jim Meyering <meyering@lucent.com>
24115 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
24117 2000-04-13 Jim Meyering <meyering@lucent.com>
24119 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
24120 AH_VERBATIM to insert required #ifndef into config.h.in.
24121 Suggestion from Akim Demaille.
24123 2000-04-12 Jim Meyering <meyering@lucent.com>
24125 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
24126 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
24127 Christian Krackowizer.
24129 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
24130 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
24131 (AC_SYS_LARGEFILE): Require.
24132 (AM_C_PROTOTYPES): Require.
24134 2000-04-08 Jim Meyering <meyering@lucent.com>
24136 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
24137 names don't conflict. Reported by Eli Zaretskii.
24139 2000-04-07 Jim Meyering <meyering@lucent.com>
24141 * lib/putenv.c: Move inclusion of errno.h so it follows that of
24142 sys/types.h, to work around system header problems on AIX 3.2.5.
24145 2000-04-07 Bruno Haible <haible@clisp.cons.org>
24147 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
24148 bug. Deal with the different error behavior of Irix iconv.
24150 2000-04-05 Paul Eggert <eggert@twinsun.com>
24152 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
24153 IRIX if the installer said otherwise.
24155 2000-04-05 Jim Meyering <meyering@lucent.com>
24157 Portability tweaks required for ultrix4.3.
24158 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
24159 (jm_CHECK_DECLS): Add getutent to the list of functions.
24160 (_jm_DECL_HEADERS): Add utmpx.h.
24161 From John David Anglin.
24163 * m4/strftime.m4: Back out the 2000-04-02 change.
24164 Instead of that change, simply undefine putenv in the test program.
24166 2000-04-05 Jim Meyering <meyering@lucent.com>
24168 Portability tweaks required for ultrix4.3.
24169 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
24171 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
24172 * lib/canon-host.c: Declare strdup.
24173 * lib/path-concat.c: Likewise.
24174 From John David Anglin.
24176 2000-04-04 Jim Meyering <meyering@lucent.com>
24178 Be more DOS 8.3-friendly.
24179 * lib/ref-add.sin: Renamed from ref-add.sed.in.
24180 * lib/ref-del.sin: Renamed from ref-del.sed.in.
24181 * lib/Makefile.am: Reflect renaming.
24182 Reported by Eli Zaretskii.
24184 Use a temporary file name that won't clash with `charset.alias'
24185 in the DOS 8.3 name space.
24186 * lib/Makefile.am (charset_tmp): Define.
24187 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
24188 (uninstall-local): Likewise.
24189 Reported by Eli Zaretskii.
24191 2000-04-03 Jim Meyering <meyering@lucent.com>
24193 * m4/gettext.m4: Fix typo in comment.
24195 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
24196 textutils/configure.in). Suggestion from Paul Eggert.
24197 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
24199 2000-04-02 Paul Eggert <eggert@twinsun.com>
24201 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
24202 variable in the shell rather than using putenv, which isn't
24203 portable. This avoids the configure-time inter-test dependency
24204 on the potentially-renamed putenv function.
24206 2000-03-30 Paul Eggert <eggert@twinsun.com>
24208 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
24209 before checking struct stat.st_blksize, so that
24210 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
24212 2000-03-29 Paul Eggert <eggert@twinsun.com>
24214 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
24215 since strftime.c uses HAVE_STRFTIME to decide whether to use
24216 the underlying strftime.
24218 2000-03-29 Paul Eggert <eggert@twinsun.com>
24220 * lib/time/strftime.c (my_strftime): Make sure we call the system
24221 strftime, not ourselves, when invoking the underlying strftime.
24223 2000-03-24 Jim Meyering <meyering@lucent.com>
24225 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
24226 (charset_alias): Define.
24227 (install-exec-local): Factor out common code.
24228 (uninstall-local): Split lines longer than 80.
24229 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
24230 (SUFFIXES): Define.
24231 (.sed.in.sed): New rule. Don't redirect directly to $@.
24232 (CLEANFILES): Add ref-add.sed and ref-del.sed.
24234 2000-03-19 Bruno Haible <haible@clisp.cons.org>
24236 * lib/config.charset: Output a line containing "Packages using this
24238 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
24239 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
24240 ref-del.sed): New rules.
24242 2000-03-17 Jim Meyering <meyering@lucent.com>
24244 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
24245 Otherwise, include <strings.h>
24247 2000-03-17 Bruno Haible <haible@clisp.cons.org>
24249 * lib/unicodeio.c (utf8_wctomb): New function.
24250 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
24251 format instead of in UCS-4 with platform dependent endianness.
24253 2000-03-10 Jim Meyering <meyering@lucent.com>
24255 * m4/lib-check.m4: Look for getspnam in -lgen, too.
24256 From Marco Franzen.
24258 2000-03-07 Paul Eggert <eggert@twinsun.com>
24260 * lib/savedir.c (savedir): Work even if directory size is
24261 negative; this can happen with some screwy NFS configurations.
24263 2000-03-06 Jim Meyering <meyering@lucent.com>
24265 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
24266 if it's NULL (because we ran out of memory). From Bruno Haible.
24268 2000-03-05 Jim Meyering <meyering@lucent.com>
24270 * lib/localcharset.c ("path-concat.h"): Include.
24271 (get_charset_aliases): Use path_concat instead of ANSI string
24274 * lib/unicodeio.h (PARAMS): Define.
24275 Use it to guard prototype.
24277 2000-03-04 Jim Meyering <meyering@lucent.com>
24279 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
24280 for lib/localcharset.c.
24282 2000-03-04 Jim Meyering <meyering@lucent.com>
24284 * lib/Makefile.am (install-exec-local): Create $(libdir) before
24285 installing into it.
24286 (uninstall-local): Uncomment this rule so `make distcheck' works
24289 * lib/unicodeio.c (<errno.h>): Include it.
24290 (errno): Declare if not defined.
24292 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
24294 * lib/config.charset: New version, incorporating remarks from a linux
24295 i18n mailing list. From Bruno Haible.
24297 2000-03-04 Bruno Haible <haible@clisp.cons.org>
24299 * m4/codeset.m4: New file.
24300 * m4/iconv.m4: New file.
24301 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
24303 2000-03-03 Jim Meyering <meyering@lucent.com>
24305 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
24307 2000-03-02 Jim Meyering <meyering@lucent.com>
24309 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
24310 the messages come out on separate lines.
24312 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
24313 rather than jm_CHECK_DECLARATIONS.
24314 * m4/decl.m4: Remove now-unused file.
24316 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
24319 2000-03-02 Jim Meyering <meyering@lucent.com>
24321 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
24323 2000-03-01 Jim Meyering <meyering@lucent.com>
24325 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
24326 * lib/unicodeio.c: Likewise.
24328 2000-03-01 Bruno Haible <haible@clisp.cons.org>
24330 * lib/config.charset: New file.
24331 * lib/localcharset.c: New file.
24332 * lib/unicodeio.h, lib/unicodeio.c: New files.
24333 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
24334 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
24335 (noinst_HEADERS): Add unicodeio.h.
24336 (all-local, install-exec-local, charset.alias): New targets.
24338 2000-02-28 Paul Eggert <eggert@twinsun.com>
24340 * lib/quotearg.c (ALERT_CHAR): New macro.
24341 (quotearg_buffer_restyled): Use it.
24343 2000-02-27 Jim Meyering <meyering@lucent.com>
24345 * m4/check-decl.m4: Add getenv to the list.
24347 2000-02-27 Jim Meyering <meyering@lucent.com>
24349 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
24350 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
24352 * lib/backupfile.c: Guard inclusion of stdlib.h with
24353 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
24354 Declare malloc if needed.
24356 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
24357 `#ifndef HAVE_DECL..'
24358 now that autoconf always defines the HAVE_DECL_ symbols.
24359 * lib/human.c: Likewise.
24360 * lib/same.c: Likewise.
24361 * lib/strtoumax.c: Likewise.
24363 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
24364 declaration check was not run.
24365 * lib/hash.c: Likewise.
24366 * lib/human.c: Likewise.
24367 * lib/same.c: Likewise.
24368 * lib/strtoumax.c: Likewise.
24370 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
24371 `.', then first look up the entire `.'-containing string as a login
24374 2000-02-23 Jim Meyering <meyering@lucent.com>
24376 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
24377 in place of my hack.
24379 2000-02-18 Paul Eggert <eggert@twinsun.com>
24381 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
24382 (textint): New typedef.
24383 (parser_control): Member year changed from int to textint.
24385 (YYSTYPE): Removed; replaced by %union with int and textint members.
24386 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
24387 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
24388 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
24389 (tSNUMBER, tUNUMBER): Now of type <textintval>.
24390 (date, number, to_year): Use width of number in digits, not its value,
24391 to determine whether it's a 2-digit year, or a 2-digit time.
24392 (yylex): Store number of digits of numeric tokens.
24393 Reported by John Kendall.
24395 (parser_control): Changed from struct parser_control to typedef (for
24396 consistency). All uses changed.
24398 (tID): Removed; not used.
24399 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
24401 2000-02-14 Paul Eggert <eggert@twinsun.com>
24403 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
24404 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
24406 2000-02-12 Jim Meyering <meyering@lucent.com>
24408 * lib/userspec.c (ISDIGIT): Define it.
24409 (isdigit): Remove definition.
24410 (is_number): Use ISDIGIT, not isdigit.
24411 <libintl.h>: Include.
24412 (_ and N_): Define.
24413 (parse_user_spec): Mark translatable strings.
24415 2000-02-10 Jim Meyering <meyering@lucent.com>
24417 With these changes, nanosleep.[ch] are finally enough like the other
24418 lib/* replacement files to compile on a few more losing systems.
24420 * lib/nanosleep.h: Don't include config.h.
24421 Remove prototype from declaration of nanosleep.
24422 (PARAMS): Remove now-unneeded definition.
24423 * lib/nanosleep.c: #undef nanosleep.
24424 (rpl_nanosleep): Rename from nanosleep.
24426 2000-02-10 Jim Meyering <meyering@lucent.com>
24428 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
24429 gnu_nanosleep to rpl_nanosleep.
24431 2000-02-09 Jim Meyering <meyering@lucent.com>
24433 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
24434 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
24436 2000-02-08 Akim Demaille <akim@epita.fr>
24438 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
24439 `[' and `]' and remove uses of `changequote'.
24440 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
24441 (AC_SYS_LARGEFILE): Likewise.
24442 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24443 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
24445 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
24446 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
24447 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
24448 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
24450 2000-02-05 Jim Meyering <meyering@lucent.com>
24452 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
24453 Remove explicit use of AC_HEADER_TIME. It is required by
24454 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
24455 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
24456 in autoconf whereby the expansion of the latter ended up preceding
24457 the expansion of its prerequisite, AC_HEADER_TIME.
24458 Reported by Volker Borchert.
24460 2000-02-03 Jim Meyering <meyering@lucent.com>
24462 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
24464 2000-02-03 Jim Meyering <meyering@lucent.com>
24466 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
24467 rather than with `#if HAVE_UTMPNAME'.
24469 2000-02-02 Jim Meyering <meyering@lucent.com>
24471 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
24472 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
24473 Reported by Eli Zaretskii.
24475 2000-02-01 Jim Meyering <meyering@lucent.com>
24477 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
24479 2000-01-31 Jim Meyering <meyering@lucent.com>
24481 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
24482 functions. Add the time.h and sys/time.h headers along with the
24483 AC_REQUIRE'ment of AC_HEADER_TIME.
24485 2000-01-31 Jim Meyering <meyering@lucent.com>
24487 * lib/nanosleep.h (nanosleep): Guard declaration with
24488 `#if ! HAVE_DECL_NANOSLEEP'.
24489 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
24490 the declaration in that vendor's sys/timers.h.
24491 Reported by Christian Krackowizer.
24493 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
24494 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
24495 (ISPRINT): Likewise.
24496 Reported by Tom Tromey.
24498 2000-01-30 Jim Meyering <meyering@lucent.com>
24500 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
24502 * m4/prereq.m4 (utmp_includes): Define.
24503 Check for ut_user and ut_name members in both struct utmpx
24506 2000-01-30 Jim Meyering <meyering@lucent.com>
24508 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
24509 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
24510 header files where only utmpx.ut_user is declared.
24512 * lib/readutmp.h (UT_USER): Define.
24514 2000-01-29 Jim Meyering <meyering@lucent.com>
24516 * m4/lib-check.m4: New file containing library-related checks from
24517 fileutils and sh-utils (textutils had none).
24519 2000-01-28 Jim Meyering <meyering@lucent.com>
24521 * m4/perl.m4: Change format of warning message to look more like that
24522 from the missing script. Suggestion from François Pinard.
24524 2000-01-25 Jim Meyering <meyering@lucent.com>
24526 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
24527 well as time.h in the compile check.
24528 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
24529 Fix typo in cross-compiling case: s/yes/no/.
24531 2000-01-23 Jim Meyering <meyering@lucent.com>
24533 * m4/jm-macros.m4: Move df-related tests here from
24534 fileutils/configure.in
24536 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
24537 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
24539 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
24540 s/space/ac_fsusage_space/.
24541 (jm_FILE_SYSTEM_USAGE): Take two parameters.
24543 * m4/ftruncate.m4: New file (derived from part of
24544 fileutils/configure.in).
24545 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
24546 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
24548 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
24549 AC_SUBST these here, rather than just in sh-util/configure.in, so
24550 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
24552 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
24553 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
24554 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
24555 (AC_SUBST(POW_LIBM)): Likewise.
24556 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
24558 2000-01-23 Jim Meyering <meyering@lucent.com>
24560 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
24563 2000-01-22 Jim Meyering <meyering@lucent.com>
24565 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
24567 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
24569 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
24571 (AC_CHECK_HEADERS): Likewise for sh-utils.
24572 (AC_CHECK_HEADERS): Likewise for textutils.
24573 Merge the three lists of headers.
24575 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
24576 from fileutils' configure.in.
24578 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
24579 code. Moved tests into their own function (_jm_DECL_HEADERS) in
24582 * m4/check-decl.m4: Use #if rather than #ifdef.
24583 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
24584 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
24585 (_jm_DECL_HEADERS): Define new function.
24586 (jm_CHECK_DECLARATIONS): Require it.
24588 2000-01-22 Jim Meyering <meyering@lucent.com>
24590 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
24591 [! HAVE_DECL_STRTOULL]: Declare strtoull.
24592 Required for some AIX systems. Reported by Christian Krackowizer.
24593 [TESTING] (main): New function.
24595 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
24596 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
24599 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
24602 * lib/strverscmp.c (ISDIGIT): Define.
24603 (strverscmp): Use ISDIGIT, not isdigit.
24605 2000-01-19 Jim Meyering <meyering@lucent.com>
24607 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
24608 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
24609 defines `struct timespec' in <sys/time.h>
24611 * m4/c-bs-a.m4: Remove uses of changequote altogether.
24612 Thanks to Akim for explaining.
24614 2000-01-17 Paul Eggert <eggert@twinsun.com>
24616 * lib/nanosleep.c (nanosleep):
24617 Don't use SA_INTERRUPT to decide whether to call sigaction, as
24618 POSIX.1 doesn't require SA_INTERRUPT and some systems
24619 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
24620 it's been part of POSIX.1 since day 1 (in 1988).
24622 2000-01-17 Jim Meyering <meyering@lucent.com>
24624 * lib/interlock: Remove unused file. Reported by François Pinard.
24626 2000-01-16 Paul Eggert <eggert@twinsun.com>
24628 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
24629 alert, backslash, formfeed, and vertical tab unnecessarily in
24630 shell quoting style.
24632 2000-01-16 Jim Meyering <meyering@lucent.com>
24634 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
24635 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
24636 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
24637 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
24639 2000-01-16 Jim Meyering <meyering@lucent.com>
24641 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
24642 because the latter didn't work.
24644 2000-01-15 Jim Meyering <meyering@lucent.com>
24646 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
24647 (AC_REPLACE_FUNCS): Add memcpy and memset.
24648 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
24650 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
24652 2000-01-12 Jim Meyering <meyering@lucent.com>
24654 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
24655 (jm_PREREQ): Use it.
24656 (jm_PREREQ_READUTMP): New macro.
24657 (jm_PREREQ): Use it.
24659 2000-01-11 Paul Eggert <eggert@twinsun.com>
24661 Quote multibyte characters correctly.
24662 * m4/c-bs-a.m4: New file.
24663 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
24664 (jm_PREREQ): Use it.
24666 2000-01-11 Paul Eggert <eggert@twinsun.com>
24668 * m4/uintmax_t.m4: Port to autoconf 2.13.
24670 2000-01-08 Jim Meyering <meyering@ascend.com>
24672 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
24673 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
24675 2000-01-04 Jim Meyering <meyering@ascend.com>
24677 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
24678 jm_STRUCT_DIRENT_D_TYPE.
24679 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
24680 jm_STRUCT_DIRENT_D_INO.
24681 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
24683 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
24685 * m4/utime.m4: Likewise.
24687 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
24688 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
24690 2000-01-03 Paul Eggert <eggert@twinsun.com>
24692 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
24693 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
24695 2000-01-02 Jim Meyering <meyering@ascend.com>
24697 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
24698 remember if this is necessary.
24700 1999-12-26 Jim Meyering <meyering@ascend.com>
24702 * m4/jm-macros.m4: Use it here.
24703 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
24705 1999-12-23 Jim Meyering <meyering@ascend.com>
24707 * m4/jm-macros.m4: Check for clock_gettime (moved from
24708 fileutils/configure.in)
24709 Check for gettimeofday.
24711 1999-12-20 Jim Meyering <meyering@ascend.com>
24713 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
24714 autoconf-2.14a-1999-12-20.
24716 1999-12-19 Jim Meyering <meyering@ascend.com>
24718 * m4/lstat-slash.m4: New file.
24719 * m4/jm-macros.m4: Use the new macro:
24720 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24722 1999-12-07 Jim Meyering <meyering@ascend.com>
24724 * m4/perl.m4: Require that File::Compare be available, too.
24725 Too many systems seem to lack it.
24727 * m4/strftime.m4: Add checks for most of the cpp macros tested in
24728 GNU's strftime.c. Prompted by a patch from Paul Eggert.
24730 1999-11-18 Paul Eggert <eggert@twinsun.com>
24732 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
24733 problem with the QNX 4.25 shell, which doesn't propagate exit
24734 status of failed commands inside shell assignments.
24736 1999-11-17 Jim Meyering <meyering@ascend.com>
24738 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
24740 1999-11-07 Jim Meyering <meyering@ascend.com>
24742 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
24744 1999-11-06 Jim Meyering <meyering@ascend.com>
24746 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
24747 * m4/jm-macros.m4 (jm_MACROS): Use it here.
24749 1999-11-05 Jim Meyering <meyering@ascend.com>
24751 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
24752 configure.in of textutils, fileutils, and sh-utils into this one
24753 (shared between those packages) file.
24754 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
24755 AC_STRUCT_ST_BLKSIZE.
24757 1999-11-03 Jim Meyering <meyering@ascend.com>
24759 * m4/ssize_t.m4: Remove file. No longer needed since the new version
24760 of AC_CHECK_TYPE checks includes unistd.h.
24761 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
24762 Suggestion from Akim Demaille.
24764 1999-10-30 Jim Meyering <meyering@ascend.com>
24766 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
24768 * m4/ls-mntd-fs.m4: Likewise.
24769 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
24770 * m4/jm-winsz1.m4: Likewise.
24772 * m4/const.m4: Remove file, since the fix made it into the experimental
24773 version of autoconf.
24774 * m4/mktime.m4: Likewise.
24776 * m4/check-type.m4: Remove file, now that the latest version of
24777 AC_CHECK_TYPE takes a third arg to specify additional #includes.
24779 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
24780 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
24783 1999-10-04 Jim Meyering <meyering@ascend.com>
24785 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
24787 1999-09-22 Paul Eggert <eggert@twinsun.com>
24789 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
24790 2.95.1 bug with HP-UX 10.20.
24792 1999-09-17 Jim Meyering <meyering@ascend.com>
24794 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
24795 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
24796 due to missing strdup (against sh-utils-2.0).
24798 1999-08-29 Jim Meyering <meyering@ascend.com>
24800 * m4/jm-macros.m4: Require jm_BISON.
24801 * m4/bison.m4: New file.
24803 1999-08-17 Paul Eggert <eggert@twinsun.com>
24805 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
24806 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
24808 1999-08-05 Jim Meyering <meyering@ascend.com>
24810 * m4/getline.m4: Rename test file from conftestdata to conftest.data
24811 to avoid conflicts with `conftest' on 8+3 filesystems.
24812 Suggestion from Eli Zaretskii.
24814 1999-08-04 Jim Meyering <meyering@ascend.com>
24816 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
24817 fileutils and sh-utils (textutils's getline test was inadequate).
24818 (AM_FUNC_GETLINE): Run this test.
24819 (AC_CHECK_FUNCS): Check for getdelim.
24820 Reported by Bob Proulx.
24822 1999-08-02 Jim Meyering <meyering@ascend.com>
24824 * m4/jm-macros.m4: Add a comment.
24826 1999-08-01 Paul Eggert <eggert@twinsun.com>
24828 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
24829 <inttypes.h> defines strtoumax as a macro (and not as a
24832 1999-08-01 Paul Eggert <eggert@twinsun.com>
24834 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
24835 that we can shift, multiply and divide unsigned long long
24836 values; Ultrix cc can't do it.
24838 1999-08-01 Paul Eggert <eggert@twinsun.com>
24840 * m4/mktime.m4: New file, which is a preview of what should appear
24841 in the next public autoconf release.
24843 1999-08-01 Paul Eggert <eggert@twinsun.com>
24845 * m4/lfs.m4: Remove this file.
24846 * m4/largefile.m4: New file. It contains the old contents of
24847 lfs.m4, except that all names with prefix AC_LFS have been
24848 changed to use the prefix AC_SYS_LARGEFILE instead, to be
24849 compatible with future autoconf versions. Also, some minor m4
24850 quoting problems have been fixed.
24852 1999-08-01 Paul Eggert <eggert@twinsun.com>
24854 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
24855 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
24856 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
24857 and simplify the shell code.
24859 1999-08-01 Jim Meyering <meyering@ascend.com>
24861 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
24864 1999-07-20 Jim Meyering <meyering@ascend.com>
24866 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
24868 1999-07-15 Jim Meyering <meyering@ascend.com>
24870 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
24872 1999-05-22 Jim Meyering <meyering@ascend.com>
24874 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
24876 1999-05-20 Jim Meyering <meyering@ascend.com>
24878 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
24879 Add a colon after each `then' in case $4 is empty.
24881 1999-05-16 Jim Meyering <meyering@ascend.com>
24883 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
24885 1999-05-10 Jim Meyering <meyering@ascend.com>
24887 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
24889 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
24892 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
24894 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
24896 1999-05-04 Paul Eggert <eggert@twinsun.com>
24898 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
24899 not CPPFLAGS, so that linking works correctly in IRIX.
24901 1999-04-30 Paul Eggert <eggert@twinsun.com>
24903 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
24905 1999-04-20 Paul Eggert <eggert@twinsun.com>
24907 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
24908 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
24909 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
24910 jm_AC_TYPE_UNSIGNED_LONG_LONG.
24911 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
24913 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
24915 1999-04-20 Jim Meyering <meyering@ascend.com>
24917 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
24918 AC_REPLACE xstroull if necessary. From Paul Eggert.
24919 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
24921 1999-04-18 Jim Meyering <meyering@ascend.com>
24923 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
24924 * m4/jm-macros.m4: Use it.
24926 1999-04-06 Jim Meyering <meyering@ascend.com>
24928 * m4/strftime.m4: Remove test for %f.
24930 1999-03-29 Jim Meyering <meyering@ascend.com>
24932 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
24933 superset of the AC_TYPE_* checks in the textutils, fileutils,
24934 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
24937 1999-03-28 Jim Meyering <meyering@ascend.com>
24939 * m4/jm-macros.m4: Define GNU_PACKAGE here.
24940 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
24941 replaced e.g., in the *.sh files of the sh-utils.
24943 1999-03-20 Jim Meyering <meyering@ascend.com>
24945 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
24946 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
24947 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
24949 1999-03-19 Jim Meyering <meyering@ascend.com>
24951 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
24953 1999-03-12 Jim Meyering <meyering@ascend.com>
24955 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
24957 1999-03-07 Jim Meyering <meyering@ascend.com>
24959 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
24962 1999-02-17 Jim Meyering <meyering@ascend.com>
24964 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
24965 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
24967 1999-02-07 Jim Meyering <meyering@ascend.com>
24969 * m4/group-member.m4: New file -- extracted from sh-utils'
24972 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
24973 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
24975 1999-02-06 Jim Meyering <meyering@ascend.com>
24977 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
24978 * m4/fnmatch.m4: Likewise.
24979 * m4/getgroups.m4: Likewise.
24980 * m4/lstat.m4: Likewise.
24981 * m4/malloc.m4: Likewise.
24982 * m4/putenv.m4: Likewise.
24983 * m4/realloc.m4: Likewise.
24984 * m4/regex.m4: Likewise.
24985 * m4/stat.m4: Likewise.
24986 * m4/strftime.m4: Likewise.
24987 Suggestion from Alain Magloire.
24989 * m4/chown.m4: Use `.$ac_objext', not `.o'.
24990 * m4/fnmatch.m4: Likewise.
24991 * m4/getgroups.m4: Likewise.
24992 * m4/getline.m4: Likewise.
24993 * m4/lstat.m4: Likewise.
24994 * m4/malloc.m4: Likewise.
24995 * m4/memcmp.m4: Likewise.
24996 * m4/putenv.m4: Likewise.
24997 * m4/realloc.m4: Likewise.
24998 * m4/regex.m4: Likewise.
24999 * m4/stat.m4: Likewise.
25000 * m4/strftime.m4: Likewise.
25001 Suggestion from Alain Magloire.
25003 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25006 * m4/regex.m4: Add a run-time Test for proper operation of
25007 re_compile_pattern.
25009 1999-01-31 Jim Meyering <meyering@ascend.com>
25011 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25013 1999-01-30 Jim Meyering <meyering@ascend.com>
25015 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25017 * m4/jm-mktime.m4: Make this a wrapper around the official
25018 AM_FUNC_MKTIME rather than my private copy, now that the official one
25020 * m4/mktime.m4: Remove file.
25022 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25023 * m4/uptime.m4: Likewise.
25024 * m4/uintmax_t.m4: Likewise.
25026 1999-01-28 Jim Meyering <meyering@ascend.com>
25028 * m4/jm-macros.m4: Use jm_AFS.
25029 * m4/afs.m4: New file (from fileutils' configure.in).
25031 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25032 * m4/chown.m4: Likewise.
25033 * m4/d-ino.m4: Likewise.
25034 * m4/d-type.m4: Likewise.
25035 * m4/fnmatch.m4: Likewise.
25036 * m4/getgroups.m4: Likewise.
25037 * m4/gettext.m4: Likewise.
25038 * m4/jm-mktime.m4: Likewise.
25039 * m4/jm-winsz2.m4: Likewise.
25040 * m4/lcmessage.m4: Likewise.
25041 * m4/ls-mntd-fs.m4: Likewise.
25042 * m4/malloc.m4: Likewise.
25043 * m4/memcmp.m4: Likewise.
25044 * m4/putenv.m4: Likewise.
25045 * m4/realloc.m4: Likewise.
25046 * m4/st_mtim.m4: Likewise.
25047 * m4/strftime.m4: Likewise.
25049 1999-01-16 Jim Meyering <meyering@ascend.com>
25051 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25052 (ARGMATCH_DIE_DECL): Define.
25054 1999-01-12 Jim Meyering <meyering@ascend.com>
25056 * m4/Makefile.am.in: Rewrite to avoid using fmt.
25057 Reported by Lars Hecking.
25059 1999-01-10 Jim Meyering <meyering@ascend.com>
25061 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25063 * m4/inttypes_h.m4: Likewise.
25064 * m4/lstat.m4: Likewise.
25065 * m4/malloc.m4: Likewise.
25066 * m4/readdir.m4: Likewise.
25067 * m4/realloc.m4: Likewise.
25068 * m4/st_dm_mode.m4: Likewise.
25069 * m4/stat.m4: Likewise.
25070 * m4/utimbuf.m4: Likewise.
25071 * m4/utimes.m4: Likewise.
25073 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25074 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
25075 comments in config.h.in are meaningful.
25077 * m4/jm-macros.m4: Require autoconf-2.13 here.
25079 * m4/regex.m4: By default, don't use the included regex.c on systems
25080 with glibc 2. Suggestion from Uli Drepper.
25082 1999-01-02 Jim Meyering <meyering@ascend.com>
25084 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
25086 1998-12-18 Jim Meyering <meyering@ascend.com>
25088 * m4/Makefile.am.in (Makefile.am): Simplify rule.
25089 Based on a suggestion from Lars Hecking.
25091 1998-11-16 Paul Eggert <eggert@twinsun.com>
25093 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
25095 1998-11-16 Jim Meyering <meyering@ascend.com>
25097 * m4/lfs.m4: Double-quote the `uname...` expression.
25099 1998-11-14 Jim Meyering <meyering@ascend.com>
25101 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
25102 * m4/stat.m4: Likewise.
25104 1998-11-03 Jim Meyering <meyering@ascend.com>
25106 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
25107 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
25109 1998-10-18 Jim Meyering <meyering@ascend.com>
25111 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
25113 1998-10-17 Jim Meyering <meyering@ascend.com>
25115 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
25116 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
25117 calls for those previously hard-coded headers. Instead, take a new
25119 (jm_CHECK_DECLARATIONS): Reflect interface change.
25120 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
25121 (jm_CHECK_DECL_LOCALTIME_R): New macro.
25123 * m4/mktime.m4: Test for spring-forward gap before long-running test.
25125 1998-10-14 Jim Meyering <meyering@ascend.com>
25127 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
25128 instead of "TZ=America/Vancouver". From Paul Eggert.
25130 1998-10-11 Jim Meyering <meyering@ascend.com>
25132 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
25133 This adds a test for a recently added compatibility fix for mktime.c.
25134 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
25136 1998-09-27 Jim Meyering <meyering@ascend.com>
25138 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
25140 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
25141 ../configure.in, including a change from Gordon Matzigkeit to allow
25142 cross-compiling for the Hurd.
25144 * m4/glibc.m4: New file/macro to test for the GNU C Library
25145 versions 1 and 2. From Gordon Matzigkeit.
25148 1998-09-21 Jim Meyering <meyering@ascend.com>
25150 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
25152 1998-08-18 Paul Eggert <eggert@twinsun.com>
25154 Port nanosecond-resolution times to UnixWare 2.1.2 and
25155 pedantic Solaris 2.6.
25157 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
25159 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
25160 Generate name of ns member, instead of just 1 or undef.
25161 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
25163 1998-08-15 Jim Meyering <meyering@ascend.com>
25165 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
25166 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
25167 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
25168 instead of jm_TYPE_SSIZE_T.
25170 1998-08-12 Jim Meyering <meyering@ascend.com>
25172 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
25174 1998-08-02 Jim Meyering <meyering@ascend.com>
25176 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
25177 in acconfig.h manually.
25179 1998-07-31 Paul Eggert <eggert@twinsun.com>
25181 * m4/st_mtim.m4: New file.
25183 1998-07-28 Jim Meyering <meyering@ascend.com>
25185 * m4/utimes.m4: Undef stat.
25187 1998-07-25 Jim Meyering <meyering@ascend.com>
25189 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
25190 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
25192 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
25194 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
25195 uid and gid actually remain unchanged.
25197 1998-07-07 Jim Meyering <meyering@ascend.com>
25199 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
25201 1998-07-04 Jim Meyering <meyering@ascend.com>
25203 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
25204 to prove that this macro can be used in packages without regex.c.
25206 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
25208 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
25211 1998-07-03 Jim Meyering <meyering@ascend.com>
25213 * m4/gettext.m4: Add -lintl if it's found to be necessary.
25215 * m4/gettext.m4: New file -- from gettext-0.10.35.
25216 * m4/lcmessage.m4: Likewise.
25217 * m4/progtest.m4: Likewise.
25219 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
25220 * m4/jm-macros.m4: Require the new macro.
25222 1998-06-29 Jim Meyering <meyering@ascend.com>
25224 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
25225 for the definition of NGROUPS (used in a system header included
25228 1998-06-28 Jim Meyering <meyering@ascend.com>
25230 * m4/ls-mntd-fs.m4: New file.
25231 * m4/fstypename.m4: New file.
25233 * m4/jm-macros.m4: Require the new macro.
25234 * m4/jm-glibc-io.m4: New file.
25236 1998-05-19 Jim Meyering <meyering@ascend.com>
25238 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
25239 * m4/lchown.m4: New file.
25241 * m4/Makefile.am.in: New file.
25242 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
25244 1998-05-14 Jim Meyering <meyering@ascend.com>
25246 * m4/Makefile.am (EXTRA_DIST): Add them.
25247 * m4/jm-macros.m4: New file.
25248 * m4/utimbuf.m4: New file.
25250 1998-05-12 Jim Meyering <meyering@ascend.com>
25252 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
25254 1998-05-11 Jim Meyering <meyering@ascend.com>
25256 * m4/isc-posix.m4: New file.
25258 1998-05-10 Jim Meyering <meyering@ascend.com>
25260 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
25262 1998-05-09 Jim Meyering <meyering@ascend.com>
25264 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
25265 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
25268 * m4/ssize_t.m4: New file.
25269 * m4/mktime.m4: Remove file -- the new automake has this now.
25271 1998-04-26 Jim Meyering <meyering@ascend.com>
25273 * m4/assert.m4: New file.
25274 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
25276 1998-04-05 Jim Meyering <meyering@ascend.com>
25278 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
25279 (jm_PREREQ): Use it here.
25281 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
25283 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
25286 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
25288 * m4/prereq.m4: New file.
25289 * m4/error.m4: New file.
25290 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
25292 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
25294 * m4/getline.m4: Don't set am_cv_func_working_getline before the
25295 cache-check for the same variable -- that defeated the purpose of
25296 the test; the test program was never run. This was a problem only
25297 on systems with losing getline functions -- HP-UX 10.20 is one.
25298 Reported by Bjorn Helgaas.
25300 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
25302 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
25304 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
25306 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
25308 * m4/const.m4: New file. Use an initializer in this declaration
25309 typedef int charset[2]; const charset x;
25310 Reported by Bob Glickstein.
25312 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
25314 * m4/chown.m4: Fix reversed types on -1 args to chown.
25317 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
25319 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
25320 Add lseek and memchr.
25322 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
25323 T.E.Dickey <dickey@clark.net> said that some older preprocessors
25324 have a 20-character limit on names.
25326 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
25328 * m4/inttypes_h.m4: New file.
25329 * m4/uintmax_t.m4: New file.
25330 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
25332 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
25333 Free Software Foundation, Inc.
25334 Copying and distribution of this file, with or without modification,
25335 are permitted provided the copyright notice and this notice are preserved.