1 2007-02-22 Simon Josefsson <simon@josefsson.org>
3 * modules/time (Depends-on): Add restrict.
5 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
7 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
8 long unreadable paths in GNU/Linux. Problem reported by Andreas
10 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
11 I'll try to think of a better way to fix the Solaris problem.
13 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
14 like glibc; on Solaris 10, it fails with errno == EINVAL.
15 POSIX says the behavior is unspecified if the first argument is NULL,
16 so play it safe and never pass NULL to the system getcwd.
18 2007-02-21 Jim Meyering <jim@meyering.net>
20 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
21 of gettimeofday. It would conflict with the one now always
22 provided via sys_time_.h. Reported by Matthew Woehlke, as
23 an IRIX 6.5 build failure.
25 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
27 Minor fixups to port to Solaris 10 with Sun C 5.8.
28 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
29 * modules/getcwd (Depends-on): Add dirfd.
30 * lib/putenv.c (putenv): #undef it.
31 (rpl_putenv): New decl.
32 (malloc, free): Include <stdlib.h> rather than prototyping separately.
34 2007-02-20 Bruno Haible <bruno@clisp.org>
36 * modules/stdio-tests: New file.
37 * tests/test-stdio.c: New file.
39 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
40 (Depends-on): Add stdio.
41 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
42 (Include): Use <stdio.h> instead of vsnprintf.h.
43 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
47 * modules/snprintf (Files): Remove lib/snprintf.h.
48 (Depends-on): Add stdio.
49 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
50 (Include): Use <stdio.h> instead of snprintf.h.
51 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54 * lib/getaddrinfo.c: Likewise.
56 * modules/stdio: New file.
57 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58 * lib/snprintf.h: Remove file.
59 * lib/vsnprintf.h: Remove file.
60 * lib/.cppi-disable: Remove snprintf.h.
61 * m4/stdio_h.m4: New file.
62 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64 2007-02-20 Jim Meyering <jim@meyering.net>
66 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67 used by e.g., mingw. From Bruno Haible.
69 2007-02-19 Bruno Haible <bruno@clisp.org>
71 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73 Reported by Ben Pfaff <blp@cs.stanford.edu>.
75 2007-02-19 Bruno Haible <bruno@clisp.org>
77 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
80 2007-02-19 Bruno Haible <bruno@clisp.org>
82 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
84 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
86 2007-02-19 Jim Meyering <jim@meyering.net>
88 Don't use FD after a successful "fdopendir (fd)".
89 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
90 Reset it by calling dirfd on the just-obtained DIR*.
92 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
93 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
95 2007-02-18 Bruno Haible <bruno@clisp.org>
97 * lib/readlink.c: Include <unistd.h>.
98 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
100 * modules/readlink (Depends-on): Add unistd.
101 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
102 (Include): Add <unistd.h>.
104 * lib/getlogin_r.h: Remove file.
105 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
106 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108 HAVE_DECL_GETLOGIN_R.
109 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
110 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
111 (Include): Use <unistd.h> instead of getlogin_r.h.
113 * lib/getcwd.h: Remove file.
114 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
115 * lib/xgetcwd.c: Likewise.
116 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
117 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
118 * modules/getcwd (Files): Remove lib/getcwd.h.
119 (Depends-on): Add unistd.
120 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
121 (Include): Use <unistd.h> instad of getcwd.h.
123 * lib/ftruncate.c: Include <unistd.h> first.
124 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
126 * modules/ftruncate (Depends-on): Add unistd.
127 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
129 * lib/fchdir.c: Include <unistd.h> first.
130 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
131 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
132 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
133 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
134 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
136 * lib/dup2.c: Include <unistd.h> first.
137 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
139 * modules/dup2 (Depends-on): Add unistd.
140 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
142 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
143 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
144 REPLACE_CHOWN. Don't define chown as a macro here.
145 * modules/chown (Depends-on): Add unistd.
146 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
148 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
149 Add definition for GL_LINK_WARNING.
150 (chown, dup2): New declarations.
151 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
153 (ftruncate): New declaration.
154 (getcwd): New declaration, taken from old getcwd.h.
155 (getlogin_r): New declaration, taken from old getlogin_r.h.
156 (readlink): New declaration.
157 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
158 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
159 (gl_PREREQ_UNISTD): Remove macro.
160 (gl_UNISTD_MODULE_INDICATOR): New macro.
161 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
162 many new variables. Don't set UNISTD_H.
163 * modules/unistd (Description): Change.
164 (Depends-on): Add link-warning.
165 (configure.ac): Update.
166 (Makefile.am): Create unistd.h always. Substitute many new variables
169 2007-02-18 Bruno Haible <bruno@clisp.org>
171 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
172 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
174 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
175 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
176 * lib/getsubopt.h: Remove file.
177 * modules/getsubopt (Files): Remove lib/getsubopt.h.
178 (Depends-on): Add stdlib.
179 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
180 (Includes): Use <stdlib.h> instead of getsubopt.h.
181 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
183 * lib/getsubopt.c: Don't include getsubopt.h.
185 2007-02-18 Bruno Haible <bruno@clisp.org>
187 * modules/fchdir (Depends-on): Add dup2.
189 2007-02-18 Bruno Haible <bruno@clisp.org>
191 * lib/stdlib_.h: Handle glibc's special invocation convention
194 2007-02-18 Bruno Haible <bruno@clisp.org>
196 * modules/stdlib-tests: New file.
197 * tests/test-stdlib.c: New file.
199 * modules/mkstemp (Files): Remove lib/mkstemp.h.
200 (Depends-on): Add stdlib.
201 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
202 (Includes): Use <stdlib.h> instead of mkstemp.h.
203 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
204 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
205 * lib/mkstemp.c: Don't include mkstemp.h.
206 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
207 * lib/stdlib--.h: Don't include mkstemp.h.
209 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
210 (Depends-on): Add stdlib.
211 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
212 (Includes): Use <stdlib.h> instead of mkdtemp.h.
213 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
215 * lib/mkdtemp.c: Don't include mkdtemp.h.
216 * lib/clean-temp.c: Don't include mkdtemp.h.
218 * modules/exit (Files): Remove lib/exit.h.
219 (Depends-on): Add stdlib.
220 (Makefile.am): Remove lib_SOURCES.
221 (Include): Use <stdlib.h> instead of exit.h.
222 * lib/argmatch.c: Don't include exit.h.
223 * lib/execute.c: Likewise.
224 * lib/pagealign_alloc.c: Likewise.
225 * lib/pipe.c: Likewise.
226 * lib/wait-process.c: Likewise.
227 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
228 * lib/exitfail.c: Likewise.
229 * lib/savewd.c: Likewise.
230 * lib/xsetenv.c: Likewise.
232 * modules/stdlib: New file.
233 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
234 and extra comments about mkstemp().
235 * lib/exit.h: Remove file.
236 * lib/mkdtemp.h: Remove file.
237 * lib/mkstemp.h: Remove file.
238 * m4/stdlib_h.m4: New file.
239 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
241 2007-02-18 Bruno Haible <bruno@clisp.org>
243 * modules/math-tests: New file.
244 * tests/test-math.c: New file.
246 * modules/math: New file.
247 * modules/mathl (Files): Remove lib/mathl.h.
248 (Depends-on): Add math.
249 (Makefile.am): Don't mention mathl.h.
250 (Include): Use <math.h> instead of mathl.h.
251 * lib/math_.h: New file.
252 * lib/mathl.h: Remove file.
253 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
255 * lib/asinl.c: Likewise.
256 * lib/atanl.c: Likewise.
257 * lib/ceill.c: Likewise.
258 * lib/cosl.c: Likewise.
259 * lib/expl.c: Likewise.
260 * lib/floorl.c: Likewise.
261 * lib/frexpl.c: Likewise.
262 * lib/ldexpl.c: Likewise.
263 * lib/logl.c: Likewise.
264 * lib/sincosl.c: Likewise.
265 * lib/sinl.c: Likewise.
266 * lib/sqrtl.c: Likewise.
267 * lib/tanl.c: Likewise.
268 * lib/trigl.c: Likewise.
269 * m4/math_h.m4: New file.
270 * MODULES.html.sh (Mathematics): Add math.
272 2007-02-17 Bruno Haible <bruno@clisp.org>
274 * modules/wctype-tests: New file.
275 * tests/test-wctype.c: New file.
277 * modules/wchar-tests: New file.
278 * tests/test-wchar.c: New file.
280 * modules/unistd-tests: New file.
281 * tests/test-unistd.c: New file.
283 * modules/time-tests: New file.
284 * tests/test-time.c: New file.
286 * modules/sysexits-tests: New file.
287 * tests/test-sysexits.c: New file.
289 * modules/sys_time-tests: New file.
290 * tests/test-sys_time.c: New file.
292 * modules/sys_stat-tests: New file.
293 * tests/test-sys_stat.c: New file.
295 * modules/sys_socket-tests: New file.
296 * tests/test-sys_socket.c: New file.
298 * modules/sys_select-tests: New file.
299 * tests/test-sys_select.c: New file.
301 * modules/string-tests: New file.
302 * tests/test-string.c: New file.
304 * modules/stdbool-tests: New file.
305 * tests/test-stdbool.c: New file.
307 * modules/netinet_in-tests: New file.
308 * tests/test-netinet_in.c: New file.
310 * modules/inttypes-tests: New file.
311 * tests/test-inttypes.c: New file.
313 * modules/fcntl-tests: New file.
314 * tests/test-fcntl.c: New file.
316 * modules/byteswap-tests: New file.
317 * tests/test-byteswap.c: New file.
319 * modules/arpa_inet-tests: New file.
320 * tests/test-arpa_inet.c: New file.
322 2007-02-17 Bruno Haible <bruno@clisp.org>
324 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
325 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
326 if the corresponding module is not enabled. Emit link warnings if
327 the function is used nevertheless.
328 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
329 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
330 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
331 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
332 * modules/inttypes (Depends-on): Add link-warning.
333 (Makefile.am): Copy the contents of build-aux/link-warning.h into
334 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
335 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
336 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
337 * modules/imaxdiv (configure.ac): Likewise.
338 * modules/strtoimax (configure.ac): Likewise.
339 * modules/strtoumax (configure.ac): Likewise.
341 2007-02-17 Bruno Haible <bruno@clisp.org>
343 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
344 gl_STRING_MODULE_INDICATOR_DEFAULTS.
345 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
346 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
348 2007-02-17 Bruno Haible <bruno@clisp.org>
350 * modules/link-warning: New file.
351 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
352 * lib/string_.h (GL_LINK_WARNING): Remove definition.
353 * modules/string (Depends-on): Add link-warning.
354 (Makefile.am): Copy the contents of build-aux/link-warning.h into
356 * MODULES.html.sh (Support for building libraries and executables): Add
359 2007-02-17 Bruno Haible <bruno@clisp.org>
361 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
362 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
363 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
366 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
367 Bruno Haible <bruno@clisp.org>
369 * modules/tmpfile: New file.
370 * lib/tmpfile.c: New file.
371 * m4/tmpfile.m4: New file.
372 * MODULES.html.sh (func_all_modules): New section "Input/output".
374 2007-02-15 Bruno Haible <bruno@clisp.org>
376 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
377 (supports_delete_on_close): New function.
378 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
380 2007-02-14 Bruno Haible <bruno@clisp.org>
382 * modules/mbspcasecmp-tests: New file.
383 * tests/test-mbspcasecmp.sh: New file.
384 * tests/test-mbspcasecmp.c: New file.
386 New module mbspcasecmp.
387 * modules/mbspcasecmp: New file.
388 * lib/mbspcasecmp.c: New file.
389 * lib/string_.h (strncasecmp): Change warning message.
390 (mbspcasecmp): New declaration.
391 * m4/mbspcasecmp.m4: New file.
392 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
394 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
395 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
397 2007-02-14 Bruno Haible <bruno@clisp.org>
399 * modules/mbsncasecmp-tests: New file.
400 * tests/test-mbsncasecmp.sh: New file.
401 * tests/test-mbsncasecmp.c: New file.
403 New module mbsncasecmp.
404 * modules/mbsncasecmp: New file.
405 * lib/mbsncasecmp.c: New file.
406 * lib/string_.h (mbsncasecmp): New declaration.
407 * m4/mbsncasecmp.m4: New file.
408 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
410 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
411 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
413 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
415 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
416 Verify that it doesn't overlap with our flags.
417 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
418 do not have the desired effect in multibyte locales; instead, use
420 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
421 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
422 we don't require GNU fnmatch ourselves (if our users require it, they
423 should do so explicitly).
425 Fix regex code so it doesn't rely on strcasecmp.
426 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
427 Otherwise, include gnulib's langinfo.h.
428 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
429 undesirable behavior in non-C locales. Instead, rely on localecharset.
430 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
431 * modules/regex (FILES): Remove m4/codeset.m4.
432 (Depends-on): Add localcharset. Remove strcase.
434 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
436 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
437 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
439 2007-02-13 Bruno Haible <bruno@clisp.org>
441 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
442 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
444 2007-02-12 Bruno Haible <bruno@clisp.org>
446 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
447 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
448 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
449 time warning rather than a link error.
451 2007-02-12 Bruno Haible <bruno@clisp.org>
453 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
454 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
455 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
457 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
459 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
462 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
464 New module 'time', so that apps can include <time.h> as per
465 POSIX and GNU instead of separate include files like time_r.h
466 and timegm.h. This implementation tries out a simpler approach
467 for replacing decls in standard include files (as compared to
468 the string module), somewhat as an experiment.
470 * config/srclist.txt: Comment out mktime.c for now.
471 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
472 since it doesn't apply any more. Use generic wording instead.
473 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
475 * lib/time_.h, m4/time_h.m4, modules/time: New files.
476 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
477 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
478 Don't include <sys/types.h>; no longer needed since we assume C89.
479 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
480 * lib/strftime.c: Likewise.
481 * lib/time_r.c: Likewise.
482 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
483 * lib/nanosleep.c: Include <time.h> first, to check interface.
484 * lib/strptime.c: Likewise.
485 * lib/time_r.c: Likewise.
486 * lib/timegm.c: Likewise.
487 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
489 * lib/timegm.c: Don't include timegm.h; no longer needed.
490 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
491 time.h now handles any problems in that area.
492 (struct timespec, nanosleep): Remove; time.h now arranges for these.
493 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
494 that time.h defines struct timespec.
495 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
496 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
498 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
499 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
500 needed. Set REPLACE_LOCALTIME.
501 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
502 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
503 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
504 nanosleep; time_h.m4 now does that. Don't require
505 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
506 module handles this now.
507 * modules/getdate (Depends-on): Remove timespec. Add time.
508 * modules/nanosleep (Depends-on): Likewise.
509 * modules/stat-time (Depends-on): Likewise.
510 * modules/nanosleep (Include): Include time.h, not timespec.h.
511 * modules/strptime (Files): Remove lib/strptime.h.
512 (Depends-on): Add extensions, time.
513 (Include): Include time.h, not strptime.h.
514 * modules/time_r (Files): Remove lib/time_r.h.
515 (Depends-on): Add time.
516 (Include): Include time.h, not time_r.h.
517 * modules/timegm: Likewise.
518 * modules/timespec (Description): Now does timespec-related decls
519 of our own, instead of struct timespec itself.
520 (Depends-on): Add time; remove extensions.
521 (Maintainer): Add self.
522 * modules/utimecmp (Depends-on): Add time; remove timespec.
523 * modules/utimens (Depends-on): Likewise.
524 * modules/xnanosleep (Depends-on): Likewise.
526 2007-02-11 Bruno Haible <bruno@clisp.org>
528 * lib/c-strstr.c: Include allocsa.h.
529 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
530 * lib/c-strcasestr.c: Include allocsa.h.
531 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
532 * lib/strcasestr.c: Include allocsa.h.
533 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
534 * lib/mbsstr.c: Include allocsa.h.
535 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
536 allocsa/freesa instead of malloc/free.
537 * lib/mbscasestr.c: Include allocsa.h.
538 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
539 allocsa/freesa instead of malloc/free.
540 * modules/c-strstr (Depends-on): Add allocsa.
541 * modules/c-strcasestr (Depends-on): Likewise.
542 * modules/strcasestr (Depends-on): Likewise.
543 * modules/mbsstr (Depends-on): Likewise.
544 * modules/mbscasestr (Depends-on): Likewise.
546 2007-02-11 Bruno Haible <bruno@clisp.org>
548 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
550 * modules/mbsspn-tests: New file.
551 * tests/test-mbsspn.sh: New file.
552 * tests/test-mbsspn.c: New file.
554 2007-02-11 Bruno Haible <bruno@clisp.org>
556 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
558 * modules/mbspbrk-tests: New file.
559 * tests/test-mbspbrk.sh: New file.
560 * tests/test-mbspbrk.c: New file.
562 2007-02-11 Bruno Haible <bruno@clisp.org>
564 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
567 * modules/mbscspn-tests: New file.
568 * tests/test-mbscspn.sh: New file.
569 * tests/test-mbscspn.c: New file.
571 2007-02-11 Bruno Haible <bruno@clisp.org>
573 * modules/mbscasecmp-tests: New file.
574 * tests/test-mbscasecmp.sh: New file.
575 * tests/test-mbscasecmp.c: New file.
577 2007-02-11 Bruno Haible <bruno@clisp.org>
579 Ensure O(n) worst-case complexity of mbscasestr.
580 * lib/mbscasestr.c: Include stdbool.h.
581 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
583 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
584 the bookkeeping indicates that it's worth it.
585 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
587 * modules/mbscasestr-tests: New file.
588 * tests/test-mbscasestr1.c: New file.
589 * tests/test-mbscasestr2.sh: New file.
590 * tests/test-mbscasestr2.c: New file.
591 * tests/test-mbscasestr3.sh: New file.
592 * tests/test-mbscasestr3.c: New file.
593 * tests/test-mbscasestr4.sh: New file.
594 * tests/test-mbscasestr4.c: New file.
595 * m4/locale-tr.m4: New file.
597 2007-02-11 Bruno Haible <bruno@clisp.org>
599 Ensure O(n) worst-case complexity of mbsstr.
600 * lib/mbsstr.c: Include stdbool.h.
601 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
603 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
604 bookkeeping indicates that it's worth it.
605 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
607 * modules/mbsstr-tests: New file.
608 * tests/test-mbsstr1.c: New file.
609 * tests/test-mbsstr2.sh: New file.
610 * tests/test-mbsstr2.c: New file.
611 * tests/test-mbsstr3.sh: New file.
612 * tests/test-mbsstr3.c: New file.
613 * m4/locale-fr.m4: New file.
615 2007-02-11 Bruno Haible <bruno@clisp.org>
617 * lib/mbsrchr.c (mbsrchr): Fix bug.
619 * modules/mbsrchr-tests: New file.
620 * tests/test-mbsrchr.sh: New file.
621 * tests/test-mbsrchr.c: New file.
623 2007-02-11 Bruno Haible <bruno@clisp.org>
625 * lib/mbschr.c (mbschr): Fix bug.
627 * modules/mbschr-tests: New file.
628 * tests/test-mbschr.sh: New file.
629 * tests/test-mbschr.c: New file.
630 * m4/locale-zh.m4: New file.
632 2007-02-11 Bruno Haible <bruno@clisp.org>
634 Support for copying multibyte string iterators.
635 * lib/mbiter.h: Include <string.h>.
636 (mbiter_multi_copy): New function.
637 (mbi_copy): New macro.
638 * lib/mbuiter.h: Include <string.h>.
639 (mbuiter_multi_copy): New function.
640 (mbui_copy): New macro.
642 2007-02-11 Bruno Haible <bruno@clisp.org>
645 * modules/mbslen: New file.
646 * lib/mbslen.c: New file.
647 * lib/string_.h (mbslen): New declaration.
648 * m4/mbslen.m4: New file.
649 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
651 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
652 * MODULES.html.sh (Internationalization functions): Add mbslen.
654 2007-02-11 Bruno Haible <bruno@clisp.org>
656 Ensure O(n) worst-case complexity of strcasestr substitute.
657 * lib/strcasestr.c: Include stdbool.h.
658 (knuth_morris_pratt): New function.
659 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
660 bookkeeping indicates that it's worth it.
661 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
663 * modules/strcasestr-tests: New file.
664 * tests/test-strcasestr.c: New file.
666 2007-02-11 Bruno Haible <bruno@clisp.org>
668 Ensure O(n) worst-case complexity of c_strcasestr.
669 * lib/c-strcasestr.c: Include stdbool.h, string.h.
670 (knuth_morris_pratt): New function.
671 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
672 the bookkeeping indicates that it's worth it.
673 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
675 * modules/c-strcasestr-tests: New file.
676 * tests/test-c-strcasestr.c: New file.
678 2007-02-11 Bruno Haible <bruno@clisp.org>
680 Ensure O(n) worst-case complexity of c_strstr.
681 * lib/c-strstr.c: Include stdbool.h, string.h.
682 (knuth_morris_pratt): New function.
683 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
684 bookkeeping indicates that it's worth it.
685 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
687 * lib/c-strstr.c: Complete rewrite for maintainability.
689 * modules/c-strstr-tests: New file.
690 * tests/test-c-strstr.c: New file.
692 2007-02-11 Bruno Haible <bruno@clisp.org>
694 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
695 5.2.1 and earlier, whereby \055 was treated just like the range
697 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
699 2007-02-08 Bruno Haible <bruno@clisp.org>
701 * modules/regex (Depends-on): Add stdbool.
702 Reported by Dalibor Topic <robilad@kaffe.org>.
704 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
706 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
707 Prefer returning from main to exiting from it.
708 Remove unnecessary parens after sizeof.
710 2007-02-05 Bruno Haible <bruno@clisp.org>
713 * modules/mbssep: New file.
714 * lib/mbssep.c: New file.
715 * lib/string_.h (strsep): Add a conditional link warning.
716 (mbssep): New declaration.
717 * m4/mbssep.m4: New file.
718 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
720 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
721 * MODULES.html.sh (Internationalization functions): Add mbssep.
723 2007-02-05 Bruno Haible <bruno@clisp.org>
725 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
726 Optimize search in case of 1 delimiter.
728 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
730 * lib/acl.h: Include sys/types.h before sys/acl.h.
732 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
734 Merge upstream fix for glibc bugzilla #3957:
736 2007-02-05 Jakub Jelinek <jakub@redhat.com>
738 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
739 bit for RE_HAT_LISTS_NOT_NEWLINE.
740 (build_charclass_op): Remove bogus comment.
742 2007-02-05 Simon Josefsson <simon@josefsson.org>
744 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
746 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
748 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
749 * lib/memmem.c [!defined _LIBC]: Include config.h.
751 2007-02-04 Bruno Haible <bruno@clisp.org>
753 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
756 2007-02-04 Bruno Haible <bruno@clisp.org>
759 * modules/mbstok_r: New file.
760 * lib/mbstok_r.c: New file.
761 * lib/string_.h (strtok_r): Change argument names to match the
762 comments. Add a conditional link warning.
763 (mbstok_r): New declaration.
764 * m4/mbstok_r.m4: New file.
765 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
767 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
768 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
770 2007-02-04 Bruno Haible <bruno@clisp.org>
773 * modules/mbsspn: New file.
774 * lib/mbsspn.c: New file.
775 * lib/string_.h (strspn): Add a conditional link warning.
776 (mbsspn): New declaration.
777 * m4/mbsspn.m4: New file.
778 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
780 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
781 * MODULES.html.sh (Internationalization functions): Add mbsspn.
783 2007-02-04 Bruno Haible <bruno@clisp.org>
786 * modules/mbspbrk: New file.
787 * lib/mbspbrk.c: New file.
788 * lib/string_.h (strpbrk): Add a conditional link warning.
789 (mbspbrk): New declaration.
790 * m4/mbspbrk.m4: New file.
791 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
793 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
794 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
796 2007-02-04 Bruno Haible <bruno@clisp.org>
799 * modules/mbscspn: New file.
800 * lib/mbscspn.c: New file.
801 * lib/string_.h (strcspn): Add a conditional link warning.
802 (mbscspn): New declaration.
803 * m4/mbscspn.m4: New file.
804 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
806 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
807 * MODULES.html.sh (Internationalization functions): Add mbscspn.
809 2007-02-04 Bruno Haible <bruno@clisp.org>
811 New module mbscasestr, reduced goal of strcasestr.
812 * modules/mbscasestr: New file.
813 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
814 (mbscasestr): Renamed from strcasestr.
815 * lib/strcasestr.c: Don't include mbuiter.h.
816 (strcasestr): Remove support for multibyte locales.
817 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
818 Change the conditional link warning.
819 (mbscasestr): New declaration.
820 * m4/mbscasestr.m4: New file.
821 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
822 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
824 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
825 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
826 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
827 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
828 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
829 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
830 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
831 (Depends-on): Remove mbuiter.
832 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
834 2007-02-04 Bruno Haible <bruno@clisp.org>
836 Simplify handling of strncasecmp.
837 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
838 the conditional link warning.
839 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
840 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
841 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
842 * modules/strcase (configure.ac): Don't invoke
843 gl_STRING_MODULE_INDICATOR.
844 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
846 2007-02-04 Bruno Haible <bruno@clisp.org>
848 New module mbscasecmp, reduced goal of strcasecmp.
849 * modules/mbscasecmp: New file.
850 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
851 (mbscasecmp): Renamed from strcasecmp.
852 * lib/strcasecmp.c: Don't include mbuiter.h.
853 (strcasecmp): Remove support for multibyte locales.
854 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
855 Change the conditional link warning.
856 (mbscasecmp): New declaration.
857 * m4/mbscasecmp.m4: New file.
858 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
859 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
861 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
862 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
864 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
865 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
866 * modules/strcase (Files): Remove m4/mbrtowc.m4.
867 (Depends-on): Remove mbuiter.
868 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
870 2007-02-04 Bruno Haible <bruno@clisp.org>
872 New module mbsstr. Remove module strstr.
873 * modules/mbsstr: New file.
874 * modules/strstr: Remove file.
875 * lib/mbsstr.c: Renamed from lib/strstr.c.
876 (mbsstr): Renamed from strstr.
877 * lib/string_.h (strstr): Remove declaration. Change the conditional
879 (mbsstr): New declaration.
880 * m4/mbsstr.m4: New file.
881 * m4/strstr.m4: Remove file.
882 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
884 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
885 Don't initialize GNULIB_STRSTR.
886 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
887 substitute GNULIB_STRSTR and REPLACE_STRSTR.
888 * MODULES.html.sh (Internationalization functions): Add mbsstr.
889 (Support for systems lacking ANSI C 89): Remove strstr.
891 2007-02-04 Bruno Haible <bruno@clisp.org>
894 * modules/mbsrchr: New file.
895 * lib/mbsrchr.c: New file.
896 * lib/string_.h (strrchr): Add a conditional link warning.
897 (mbsrchr): New declaration.
898 * m4/mbsrchr.m4: New file.
899 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
901 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
902 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
904 2007-02-04 Bruno Haible <bruno@clisp.org>
907 * modules/mbschr: New file.
908 * lib/mbschr.c: New file.
909 * lib/string_.h (strchr): Add a conditional link warning.
910 (mbschr): New declaration.
911 * m4/mbschr.m4: New file.
912 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
914 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
915 * MODULES.html.sh (Internationalization functions): Add mbschr.
917 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
919 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
921 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
923 2007-02-04 Bruno Haible <bruno@clisp.org>
925 New module description section 'configure.ac-early'.
926 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
927 (func_get_autoconf_early_snippet): New function.
928 (func_import, func_create_testdir): Use it. Remove special cases for
929 modules 'extensions' and 'lock'.
930 * modules/extensions (configure.ac-early): Require
931 gl_USE_SYSTEM_EXTENSIONS.
932 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
934 2007-02-04 Bruno Haible <bruno@clisp.org>
936 Make use of gcj-4.3's -fsource and -ftarget option.
937 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
938 and if so try the options -fsource and -ftarget.
939 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
940 source_version, ftarget_option, target_version arguments.
941 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
942 (is_envjavac_oldgcj_14_14_usable): Renamed from
943 is_envjavac_gcj_14_14_usable.
944 (is_envjavac_oldgcj_14_13_usable): Renamed from
945 is_envjavac_gcj_14_13_usable.
946 (is_gcj_present): Update.
947 (is_gcj_43, is_gcj43_usable): New functions.
948 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
949 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
950 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
951 try the options -fsource and -ftarget.
953 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
955 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
956 checking code. Set N = ceil (1.5 * N) rather than to a slightly
959 2007-02-03 Jim Meyering <jim@meyering.net>
961 Give tools a better chance to allocate space for very large buffers.
962 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
964 Make pwd and readlink work also when run with an unreadable parent dir
965 on systems with openat support.
966 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
967 provided getcwd function, even when we have openat support.
968 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
970 2007-02-02 Bruno Haible <bruno@clisp.org>
972 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
973 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
974 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
975 portability problems if one of these functions is only used on specific
977 Reported by Paul Eggert.
979 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
981 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
982 is causing more trouble than it's curing.
983 * lib/regex_internal.h (__mempcpy): Remove.
984 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
985 (and make the code a tad smaller to boot).
986 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
988 2007-02-02 Jim Meyering <jim@meyering.net>
990 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
991 section, not in the Makefile.am: one.
993 2007-02-02 Eric Blake <ebb9@byu.net>
995 * lib/strchrnul.c: Always include config.h first.
997 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
998 gnulib strstr is not necessary here.
1000 2007-02-02 Simon Josefsson <simon@josefsson.org>
1002 * m4/socklen.m4: Fix typo.
1004 2007-02-02 Eric Blake <ebb9@byu.net>
1006 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
1007 * modules/netinet_in (Makefile.am): Likewise.
1009 2007-02-01 Bruno Haible <bruno@clisp.org>
1011 * lib/string_.h (GL_LINK_WARNING): New macro.
1012 (strcasecmp, strstr, strcasestr): If provided by the system,
1013 conditionally define as a macro that leads to a warning instead of to
1015 (strncasecmp): Conditionally define as a macro that leads to a warning.
1017 2007-02-01 Jim Meyering <jim@meyering.net>
1019 Give tools a better chance to allocate space for very large buffers.
1020 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
1022 2007-02-01 Karl Berry <karl@gnu.org>
1024 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
1026 2007-02-01 Bruno Haible <bruno@clisp.org>
1028 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
1031 2007-02-01 Eric Blake <ebb9@byu.net>
1033 * modules/regex (Depends-on): Revert dependence on mempcpy.
1034 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
1035 module's definition of mempcpy.
1036 Reported by Paul Eggert.
1038 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
1040 * lib/string_.h: If the gnulib module XYZ is not present, undefine
1041 the symbol XYZ before redefining it. This fixes a problem with
1042 programs that don't use XYZ, when compiled on systems that define
1043 XYZ to something else.
1045 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
1047 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
1048 occurs when "mkdir -m foo" creates a setgid directory that is (1)
1049 writeable to group or other and (2) is intended to have a special
1050 mode bit that is set or cleared. In such a case, the directory
1051 should be neither group- nor other-writeable until the special
1052 mode bits are right.
1054 2007-01-31 Eric Blake <ebb9@byu.net>
1056 * modules/mountlist (Depends-on): Add strstr.
1058 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
1060 * modules/string (Makefile.am): Remove redundant replacement.
1061 * modules/regex (Depends-on): Add mempcpy.
1063 2007-01-31 Bruno Haible <bruno@clisp.org>
1065 New module description field 'Link'.
1066 * gnulib-tool (func_usage): Document --extract-link-directive.
1067 (sed_extract_prog): Recognize 'Link' directive.
1068 (func_get_link_directive): New function.
1069 (func_import): Show summary of link directives.
1070 Handle --extract-link-directive option.
1071 * modules/acl (Link): New section.
1072 * modules/clock-time (Link): New section.
1073 * modules/euidaccess (Link): New section.
1074 * modules/gettext (Link): New section.
1075 * modules/iconv (Link): New section.
1076 * modules/lock (Link): New section.
1077 * modules/nanosleep (Link): New section.
1078 * modules/readline (Link): New section.
1080 2007-01-27 Bruno Haible <bruno@clisp.org>
1082 Enforce the use of gnulib modules for unportable <string.h> functions.
1083 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
1084 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
1085 (gl_HEADER_STRING_H_BODY): Require it.
1086 * lib/string_.h: If the gnulib module XYZ is not present, redefine
1087 the symbol XYZ to one that gives a link error.
1088 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
1089 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
1090 * modules/mempcpy (configure.ac): Likewise.
1091 * modules/memrchr (configure.ac): Likewise.
1092 * modules/stpcpy (configure.ac): Likewise.
1093 * modules/stpncpy (configure.ac): Likewise.
1094 * modules/strcase (configure.ac): Likewise.
1095 * modules/strcasestr (configure.ac): Likewise.
1096 * modules/strchrnul (configure.ac): Likewise.
1097 * modules/strdup (configure.ac): Likewise.
1098 * modules/strndup (configure.ac): Likewise.
1099 * modules/strnlen (configure.ac): Likewise.
1100 * modules/strpbrk (configure.ac): Likewise.
1101 * modules/strsep (configure.ac): Likewise.
1102 * modules/strstr (configure.ac): Likewise.
1103 * modules/strtok_r (configure.ac): Likewise.
1105 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
1107 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
1109 2007-01-30 Jim Meyering <jim@meyering.net>
1111 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
1113 2007-01-29 Bruno Haible <bruno@clisp.org>
1115 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
1116 * lib/execute.c: Likewise.
1117 * lib/pipe.c: Likewise.
1118 * lib/printf-args.h: Likewise.
1119 * lib/printf-args.c: Likewise.
1120 * lib/printf-parse.c: Likewise.
1121 * lib/vasnprintf.c: Likewise.
1123 2007-01-29 Eric Blake <ebb9@byu.net>
1125 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
1128 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
1130 * lib/strptime.h (strptime): Use 'restrict' for args where
1131 POSIX requires this.
1132 * lib/strptime.c (strptime): Likewise.
1133 Change license notice from LGPL to GPL, since gnulib-tool will
1134 change this as needed.
1135 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
1137 Include "strptime.h" first, to check interface.
1138 Do not #undef _LIBC and _NL_CURRENT.
1139 Do not include <stdlib.h>; no longer needed.
1140 Include "time_r.h" and declare ptime_locale_status
1141 only if _LIBC is not defined.
1142 (__P): Remove unused macro.
1143 (match_string): Bring back glibc version, but use it only if _LIBC
1145 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
1146 Remove unnecessary assertion and abort() call.
1147 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
1148 * m4/strptime.m4: Fix serial number comment.
1149 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
1150 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
1151 (Depends-on): Add time_r.
1153 2007-01-29 Bruno Haible <bruno@clisp.org>
1155 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1157 * modules/strptime (Depends-on): Add stdbool.
1158 * lib/strptime.h: Include <time.h> always. Add comments.
1160 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
1162 * modules/strptime: New file.
1163 * lib/strptime.h: New file.
1164 * lib/strptime.c: New file.
1165 * m4/strptime.m4: New file.
1167 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
1169 * MODULES.html.sh: New module mpsort.
1170 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
1172 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
1173 a circularity problem with HP-UX ia64 reported by Bob Proulx in
1174 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
1176 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
1178 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
1180 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
1181 the parameter matches the prototype.
1183 2007-01-28 Jim Meyering <jim@meyering.net>
1185 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
1186 sys/time.h here, reverting that part of the previous patch:
1187 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
1189 2007-01-28 Bruno Haible <bruno@clisp.org>
1191 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
1192 value of $(SYS_TIME_H).
1193 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
1194 remove it conditionally, too. [added by Jim Meyering]
1195 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
1196 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1197 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
1198 GETTIMEOFDAY_REPLACEMENT to 1.
1200 2007-01-28 Bruno Haible <bruno@clisp.org>
1202 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
1203 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
1204 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
1205 Set UNISTD_H instead of UNISTD_H2.
1206 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
1208 2007-01-28 Bruno Haible <bruno@clisp.org>
1210 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
1211 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
1213 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1215 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
1216 (func_create_testdir): Ensure C locale for `grep' and `tr'
1218 (func_create_megatestdir): Avoid one `grep'. Fix bug in
1219 ACLOCAL_AMFLAGS parsing state machine.
1221 2007-01-27 Bruno Haible <bruno@clisp.org>
1223 * modules/unistr/base: Update.
1225 2007-01-27 Bruno Haible <bruno@clisp.org>
1227 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
1228 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
1229 * modules/unistr/u32-mbtouc-unsafe: Renamed from
1230 modules/unistr/u32-mbtouc.
1231 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
1232 * lib/unistr.h: Update.
1233 * lib/linebreak.c: Update.
1234 * modules/unistr/u32-mbtouc: Renamed from
1235 modules/unistr/u32-mbtouc-safe.
1236 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
1237 * lib/unistr.h: Update.
1238 * lib/unistr/u32-to-u8.c: Update.
1239 * lib/unistr/u32-to-u16.c: Update.
1241 2007-01-27 Bruno Haible <bruno@clisp.org>
1243 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
1244 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
1245 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
1246 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
1247 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
1248 * modules/unistr/u16-mbtouc-unsafe: Renamed from
1249 modules/unistr/u16-mbtouc.
1250 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
1251 * lib/unistr.h: Update.
1252 * lib/linebreak.c: Update.
1253 * modules/linebreak: Update.
1254 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
1255 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
1256 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
1257 * modules/unistr/u16-mbtouc: Renamed from
1258 modules/unistr/u16-mbtouc-safe.
1259 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
1260 * lib/unistr.h: Update.
1261 * lib/unistr/u16-to-u8.c: Update.
1262 * modules/unistr/u16-to-u8: Update.
1263 * lib/unistr/u16-to-u32.c: Update.
1264 * modules/unistr/u16-to-u32: Update.
1266 2007-01-27 Bruno Haible <bruno@clisp.org>
1268 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
1269 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
1270 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
1271 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
1272 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
1273 * modules/unistr/u8-mbtouc-unsafe: Renamed from
1274 modules/unistr/u8-mbtouc.
1275 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
1276 * lib/unistr.h: Update.
1277 * lib/striconveh.c: Update.
1278 * modules/striconveh: Update.
1279 * lib/linebreak.c: Update.
1280 * modules/linebreak: Update.
1281 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
1282 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
1283 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
1284 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
1285 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
1286 * lib/unistr.h: Update.
1287 * lib/striconveh.c: Update.
1288 * modules/striconveh: Update.
1289 * lib/unistr/u8-to-u16.c: Update.
1290 * modules/unistr/u8-to-u16: Update.
1291 * lib/unistr/u8-to-u32.c: Update.
1292 * modules/unistr/u8-to-u32: Update.
1294 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1297 * lib/argz.c: Do not include strings.h nor memory.h, include
1298 string.h unconditionally. Patch by Simon Josefsson.
1300 2007-01-27 Bruno Haible <bruno@clisp.org>
1302 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
1303 from gl_HEADER_STRING_H_BODY.
1304 (gl_HEADER_STRING_H_BODY): Require it.
1305 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
1306 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
1307 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
1308 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
1309 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1310 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
1311 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1312 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
1313 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
1314 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1315 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
1316 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
1317 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
1318 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1319 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1321 2007-01-27 Bruno Haible <bruno@clisp.org>
1323 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
1324 check_PROGRAMS into noinst_PROGRAMS.
1325 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
1326 check_PROGRAMS in this case.
1327 (func_import): Set for_test to false.
1328 (func_create_testdir): Set for_test to true.
1330 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1331 Bruno Haible <bruno@clisp.org>
1333 * modules/strcasestr (Files): Remove lib/strcasestr.h.
1334 (Depends-on): Add string.
1335 (Includes): Use <string.h> instead of strcasestr.h.
1336 * modules/string (Makefile.am): Also substitute the value of
1338 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
1339 assume strcasestr is declared in <string.h> not <strings.h>. Also
1340 set REPLACE_STRCASESTR.
1341 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
1343 * lib/strcasestr.h: Remove file.
1344 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
1345 * lib/string_.h (strcasestr): New declaration.
1347 2007-01-27 Bruno Haible <bruno@clisp.org>
1349 * lib/string_.h: Use 'extern'.
1351 2007-01-27 Jim Meyering <jim@meyering.net>
1353 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
1354 of set-but-not-used local, "q".
1356 * lib/mempcpy.c: Include <config.h> before <string.h>.
1357 This fixes a compilation error on HP-UX, due to the system's
1358 "restrict"-using mempcpy prototype.
1360 2007-01-26 Bruno Haible <bruno@clisp.org>
1363 * lib/javacomp.c: Include c-strstr.h.
1364 (is_envjavac_gcj): Use c_strstr instead of strstr.
1365 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
1367 2007-01-26 Bruno Haible <bruno@clisp.org>
1369 * MODULES.html.sh (Unicode string functions): Add the new modules.
1371 * modules/uniconv/u32-strconv-to-locale: New file.
1372 * lib/uniconv/u32-strconv-to-locale.c: New file.
1374 * modules/uniconv/u16-strconv-to-locale: New file.
1375 * lib/uniconv/u16-strconv-to-locale.c: New file.
1377 * modules/uniconv/u8-strconv-to-locale: New file.
1378 * lib/uniconv/u8-strconv-to-locale.c: New file.
1380 * modules/uniconv/u32-strconv-from-locale: New file.
1381 * lib/uniconv/u32-strconv-from-locale.c: New file.
1383 * modules/uniconv/u16-strconv-from-locale: New file.
1384 * lib/uniconv/u16-strconv-from-locale.c: New file.
1386 * modules/uniconv/u8-strconv-from-locale: New file.
1387 * lib/uniconv/u8-strconv-from-locale.c: New file.
1389 * modules/uniconv/u32-strconv-to-enc: New file.
1390 * lib/uniconv/u32-strconv-to-enc.c: New file.
1391 * modules/uniconv/u32-strconv-to-enc-tests: New file.
1392 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
1394 * modules/uniconv/u16-strconv-to-enc: New file.
1395 * lib/uniconv/u16-strconv-to-enc.c: New file.
1396 * lib/uniconv/u-strconv-to-enc.h: New file.
1397 * modules/uniconv/u16-strconv-to-enc-tests: New file.
1398 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
1400 * modules/uniconv/u8-strconv-to-enc: New file.
1401 * lib/uniconv/u8-strconv-to-enc.c: New file.
1402 * modules/uniconv/u8-strconv-to-enc-tests: New file.
1403 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
1405 * modules/uniconv/u32-strconv-from-enc: New file.
1406 * lib/uniconv/u32-strconv-from-enc.c: New file.
1407 * modules/uniconv/u32-strconv-from-enc-tests: New file.
1408 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
1410 * modules/uniconv/u16-strconv-from-enc: New file.
1411 * lib/uniconv/u16-strconv-from-enc.c: New file.
1412 * modules/uniconv/u16-strconv-from-enc-tests: New file.
1413 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
1415 * modules/uniconv/u8-strconv-from-enc: New file.
1416 * lib/uniconv/u8-strconv-from-enc.c: New file.
1417 * lib/uniconv/u-strconv-from-enc.h: New file.
1418 * modules/uniconv/u8-strconv-from-enc-tests: New file.
1419 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
1421 * modules/uniconv/u32-conv-from-enc: New file.
1422 * lib/uniconv/u32-conv-from-enc.c: New file.
1423 * modules/uniconv/u32-conv-from-enc-tests: New file.
1424 * tests/uniconv/test-u32-conv-from-enc.c: New file.
1426 * modules/uniconv/u16-conv-from-enc: New file.
1427 * lib/uniconv/u16-conv-from-enc.c: New file.
1428 * lib/uniconv/u-conv-from-enc.h: New file.
1429 * modules/uniconv/u16-conv-from-enc-tests: New file.
1430 * tests/uniconv/test-u16-conv-from-enc.c: New file.
1432 * modules/uniconv/u8-conv-from-enc: New file.
1433 * lib/uniconv/u8-conv-from-enc.c: New file.
1434 * modules/uniconv/u8-conv-from-enc-tests: New file.
1435 * tests/uniconv/test-u8-conv-from-enc.c: New file.
1437 * modules/uniconv/base: New file.
1438 * lib/uniconv.h: New file.
1440 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
1442 * doc/gnulib-tool.texi (Initial import): Update to match current
1443 behavior with strdup module.
1444 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
1445 * lib/memmem.h: Remove; all uses removed. This is now done
1447 * lib/mempcpy.h: Likewise.
1448 * lib/memrchr.h: Likewise.
1449 * lib/stpcpy.h: Likewise.
1450 * lib/stpncpy.h: Likewise.
1451 * lib/strcase.h: Likewise.
1452 * lib/strchrnul.h: Likewise.
1453 * lib/strdup.h: Likewise.
1454 * lib/strndup.h: Likewise.
1455 * lib/strnlen.h: Likewise.
1456 * lib/strpbrk.h: Likewise.
1457 * lib/strsep.h: Likewise.
1458 * lib/strstr.h: Likewise.
1459 * lib/strtok_r.h: Likewise.
1460 * lib/string_.h: New file.
1461 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
1462 Rely on <string.h> instead.
1463 * lib/canon-host.c: Likewise.
1464 * lib/chdir-long.c: Likewise.
1465 * lib/concatpath.c: Likewise.
1466 * lib/exclude.c: Likewise.
1467 * lib/fchdir.c: Likewise.
1468 * lib/getaddrinfo.c: Likewise.
1469 * lib/getcwd.c: Likewise.
1470 * lib/getsubopt.c: Likewise.
1471 * lib/glob.c: Likewise.
1472 * lib/hard-locale.c: Likewise.
1473 * lib/iconvme.c: Likewise.
1474 * lib/javacomp.c: Likewise.
1475 * lib/mempcpy.c: Likewise.
1476 * lib/memrchr.c: Likewise.
1477 * lib/regex_internal.h: Likewise.
1478 * lib/stpncpy.c: Likewise.
1479 * lib/strcasecmp.c: Likewise.
1480 * lib/strchrnul.c: Likewise.
1481 * lib/strdup.c: Likewise.
1482 * lib/striconv.c: Likewise.
1483 * lib/striconveh.c: Likewise.
1484 * lib/striconveha.c: Likewise.
1485 * lib/strncasecmp.c: Likewise.
1486 * lib/strndup.c: Likewise.
1487 * lib/strnlen.c: Likewise.
1488 * lib/strsep.c: Likewise.
1489 * lib/strstr.c: Likewise.
1490 * lib/strtok_r.c: Likewise.
1491 * lib/userspec.c: Likewise.
1492 * lib/w32spawn.h: Likewise.
1493 * lib/xstrndup.c: Likewise.
1494 * lib/mountlist.c (strstr): Remove decl.
1495 * m4/string_h.m4: New file.
1496 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
1497 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
1498 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
1499 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
1500 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
1501 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
1502 Set REPLACE_STRCASECMP if necessary.
1503 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
1504 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
1505 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
1506 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
1507 HAVE_DECL_STRDUP if necessary.
1508 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
1509 since gl_FUNC_STRNDUP does that now.
1510 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
1511 Check for decl here...
1512 (gl_PREREQ_STRNLEN): ... not here.
1513 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
1514 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
1515 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
1516 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
1518 * modules/string: New file.
1519 * modules/memmem (Files): Remove special-purpose include file.
1520 (Depends-on): Add string.
1521 (Include): Include <string.h>, not the removed file.
1522 * modules/mempcpy: Likewise.
1523 * modules/memrchr: Likewise.
1524 * modules/stpcpy: Likewise.
1525 * modules/stpncpy: Likewise.
1526 * modules/strcase: Likewise.
1527 * modules/strchrnul: Likewise.
1528 * modules/strdup: Likewise.
1529 * modules/strndup: Likewise.
1530 * modules/strnlen: Likewise.
1531 * modules/strpbrk: Likewise.
1532 * modules/strsep: Likewise.
1533 * modules/strstr: Likewise.
1534 * modules/strtok_r: Likewise.
1535 * tests/test-dirname.c: Don't include "strdup.h", since
1536 <string.h> now suffices.
1537 * tests/test-memmem.c: Don't include "memmem.h", since
1538 <string.h> now suffices.
1540 2007-01-25 Bruno Haible <bruno@clisp.org>
1542 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
1545 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
1546 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
1547 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
1548 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
1550 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
1551 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
1552 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
1553 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
1554 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
1555 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
1557 2007-01-24 Bruno Haible <bruno@clisp.org>
1559 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
1560 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
1561 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
1562 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
1564 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
1565 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
1566 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
1567 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
1568 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
1569 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
1571 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
1573 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
1574 Reported by Ralf Wildenhues.
1576 2007-01-24 Bruno Haible <bruno@clisp.org>
1578 Drop AC_REQUIRE calls that are redundant with the module dependencies.
1579 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
1581 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
1582 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
1583 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
1585 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
1587 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
1588 Don't use 'exit'; just return from 'main'.
1589 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
1591 * lib/fnmatch_.h: Readjust white space and comments to match
1592 glibc, to avoid spurious diffs.
1594 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
1596 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
1597 2004-12-01 change by Jakub Jelinek, since this code won't compile
1598 if !LIBC. Problem reported by Bob Proulx.
1600 2007-01-23 Bruno Haible <bruno@clisp.org>
1602 * lib/striconveh.c: Include c-strcaseeq.h.
1603 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
1604 * modules/striconveh (Depends-on): Add c-strcaseeq.
1606 2007-01-23 Bruno Haible <bruno@clisp.org>
1608 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
1610 * modules/c-strcaseeq: New file.
1611 * lib/c-strcaseeq.h: New file.
1613 * modules/streq: New file.
1614 * lib/streq.h: New file.
1616 2007-01-23 Bruno Haible <bruno@clisp.org>
1618 * modules/striconveha-tests: New file.
1619 * tests/test-striconveha.c: New file.
1621 * lib/striconveha.h: Include <stdbool.h>.
1622 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
1623 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
1624 (mem_iconveha_notranslit): Renamed from mem_iconveha.
1625 (mem_iconveha): New function.
1626 (str_iconveha_notranslit): Renamed from str_iconveha.
1627 (str_iconveha): New function.
1628 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
1631 2007-01-23 Bruno Haible <bruno@clisp.org>
1633 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
1634 encodings without forgiving before trying any encoding with handler.
1635 (str_iconveha): Try all encodings without forgiving before trying any
1636 encoding with handler.
1638 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
1640 Import the following changes from libc.
1642 2005-10-14 Ulrich Drepper <drepper@redhat.com>
1644 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
1646 2004-12-01 Jakub Jelinek <jakub@redhat.com>
1648 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
1649 normal_bracket label.
1651 2004-09-01 Jakub Jelinek <jakub@redhat.com>
1654 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
1655 to normal_bracket after fetching the next character.
1657 2007-01-22 Bruno Haible <bruno@clisp.org>
1659 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
1661 * lib/striconveh.c (iconv_carefully_1): New function.
1662 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
1664 (str_cd_iconveh): Update.
1665 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
1666 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
1667 * tests/test-striconveh.c (MAGIC): New macro.
1668 (new_offsets): New function.
1669 (main): Test call with and without offsets.
1671 2007-01-22 Bruno Haible <bruno@clisp.org>
1673 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
1674 * modules/sys_select (Makefile.am): Likewise.
1675 * modules/sys_socket (Makefile.am): Likewise.
1676 * modules/sys_time (Makefile.am): Likewise.
1678 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
1680 * modules/gettimeofday (License): Change from GPL to LGPL, since
1681 gettimeofday is a library function.
1683 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1685 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
1687 2007-01-21 Bruno Haible <bruno@clisp.org>
1689 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
1691 2007-01-21 Bruno Haible <bruno@clisp.org>
1693 * modules/striconveha: New file.
1694 * lib/striconveha.h: New file.
1695 * lib/striconveha.c: New file.
1696 * MODULES.html.sh (Internationalization functions): Add striconveha.
1697 * lib/striconv.c (str_iconv): Optimize the case of an empty input
1699 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
1701 2007-01-21 Bruno Haible <bruno@clisp.org>
1703 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
1704 * lib/striconveh.c (str_iconveh): Likewise.
1706 2007-01-21 Bruno Haible <bruno@clisp.org>
1708 * lib/striconveh.h (mem_iconveh): New declaration.
1709 * lib/striconveh.c (mem_iconveh): New function.
1710 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
1712 2007-01-21 Bruno Haible <bruno@clisp.org>
1714 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
1716 * lib/striconveh.h (mem_cd_iconveh): Change specification.
1717 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
1718 original result buffer.
1719 (str_cd_iconveh): Update.
1720 * tests/test-striconveh.c (main): Update.
1722 * lib/striconv.h (mem_cd_iconv): Change specification.
1723 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
1725 (str_cd_iconv): Update.
1726 * tests/test-striconv.c (main): Update.
1728 2007-01-21 Bruno Haible <bruno@clisp.org>
1730 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
1732 2007-01-20 Jim Meyering <jim@meyering.net>
1734 * lib/userspec.c (parse_with_separator): If a user or group string
1735 starts with "+", skip the corresponding name-to-ID look-up, since
1736 such a look-up must fail: user and group names may not include "+".
1738 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
1740 * lib/poll.c: Include sys/time.h and time.h unconditionally,
1741 since we now assume the sys_time module.
1742 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
1743 check for sys/time.h; no longer needed.
1744 * modules/poll (Depends-on): Depend on sys_time.
1746 2007-01-18 Bruno Haible <bruno@clisp.org>
1748 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
1749 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1751 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
1754 * tests/test-gettimeofday.c: Include <time.h>.
1755 (dummy): Remove variable.
1757 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
1758 gl_HEADER_SYS_TIME_H.
1759 (gl_HEADER_SYS_TIME_H): New macro.
1761 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
1762 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1763 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1764 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
1765 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1766 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
1767 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
1768 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1769 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
1770 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
1771 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1773 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
1774 last change; it caused a compilation error when cross-compiling to
1777 2007-01-18 Jim Meyering <jim@meyering.net>
1779 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
1780 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
1781 than the race-prone "test -d sys || mkdir sys".
1782 (configure.ac): Use AC_PROG_MKDIR_P.
1783 * modules/sys_select: Likewise.
1784 * modules/sys_socket: Likewise.
1785 * modules/sys_time: Likewise.
1787 2007-01-18 Eric Blake <ebb9@byu.net>
1789 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
1790 replace gettimeofday.
1791 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
1792 name, to avoid infinite recursion.
1794 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
1796 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
1798 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
1799 assume timespec.h defines struct timeval.
1800 * lib/settime.c: Likewise.
1801 * lib/utimens.c: Likewise.
1802 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
1803 since we now assume the gettimeofday module.
1804 * lib/tempname.c (__gen_tempname): Likewise.
1805 * lib/gettimeofday.h: Remove.
1806 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
1807 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
1808 Include <time.h>, for 'time()'.
1809 (localtime_buffer_addr): Also use this workaround if
1810 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
1811 to simplify the uses. All uses changed.
1812 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
1813 that #undef is inside {}, and 'const' follows type name consistently.
1814 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
1815 (gettimeofday): Do not use the maximum possible value for
1816 tv->tv_usec, since that might break usages other than ls.c.
1817 Instead, we'll leave ls.c alone. This undoes today's patch
1818 by Bruno. Add a compile-time warning for 1s-clock resolution;
1819 we've never observed the problem but might as well keep the
1821 * lib/nanosleep.c: Include timespec.h first, for interface check.
1822 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
1823 now assume the sys_time module.
1824 * lib/tempname.c: Likewise.
1825 * lib/timespec.h: Likewise.
1826 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
1828 * lib/strftime.c: Likewise.
1829 * lib/timespec.h: Likewise.
1830 * lib/posixtm.c: Include posixtm.h first, for interface check.
1831 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
1832 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
1833 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
1834 * lib/sys_time_.h: New file.
1835 * lib/timespec.h (struct timespec): Use long int, not long.
1836 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1837 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
1838 Remove obsolescent call to AC_HEADER_TIME.
1839 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1840 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1841 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1842 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
1844 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1845 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
1846 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
1847 into the sys_time module. Check for gettimeofday just once.
1848 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
1849 for gettimeofday signature to just check the signature. Merely
1850 compile it, since linking doesn't test signature. Improve test for
1851 whether gettimeofday.o is actually needed.
1852 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
1853 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
1854 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
1855 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1856 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
1857 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
1858 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
1859 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
1860 than worrying about sys/time.h.
1861 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1862 Don't bother worrying about TIME_WITH_SYS_TIME.
1863 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1864 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
1865 * m4/sys_time_h.m4: New file.
1866 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
1867 Don't include sys/time.h. Return from main rather than exiting.
1868 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
1870 * modules/gethrxtime (Depends-on): Add sys_time.
1871 * modules/gettime (Depends-on): Likewise.
1872 * modules/gettimeofday (Depends-on): Likewise.
1873 * modules/nanosleep (Depends-on): Likewise.
1874 * modules/settime (Depends-on): Likewise.
1875 * modules/tempname (Depends-on): Likewise.
1876 * modules/utimens (Depends-on): Likewise.
1877 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
1878 (Include:) Change back to <sys/time.h>.
1879 (Maintainer:) Add self.
1880 * modules/sys_time: New file.
1881 * modules/tempname (Depends-on): Add gettimeofday.
1882 * tests/test-gettimeofday.c: Include <sys/time.h>
1883 rather than gettimeofday.h.
1885 2007-01-17 Bruno Haible <bruno@clisp.org>
1887 * gnulib-tool (func_get_license): Revert last patch. Instead, let
1888 the license default to GPL.
1889 (func_create_testdir): Don't complain if a module is LGPL and its
1890 tests module depends on GPLed modules.
1892 2007-01-17 Bruno Haible <bruno@clisp.org>
1894 * lib/gettimeofday.c (gettimeofday): Add code for the case
1895 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
1896 maximum possible value for tv->tv_usec, rather than the minimum one.
1898 2005-10-08 Martin Lambers <marlam@marlam.de>
1899 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
1900 2007-01-16 Bruno Haible <bruno@clisp.org>
1902 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
1903 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
1904 gl_FUNC_GETTIMEOFDAY.
1905 (Include): Add gettimeofday.h.
1906 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
1907 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
1908 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
1909 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
1910 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
1911 * lib/gettimeofday.h: New file.
1912 * lib/gettimeofday.c: Include <sys/timeb.h>.
1913 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
1914 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1915 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
1916 fall back on time().
1918 * tests/test-gettimeofday.c: New file.
1919 * modules/gettimeofday-tests: New file.
1921 2007-01-16 Eric Blake <ebb9@byu.net>
1923 * modules/fnmatch (Depends-on): Depend on wchar.
1924 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
1925 * m4/fnmatch.m4: Likewise.
1926 * modules/mbchar (Makefile.am): Assume <wchar.h>.
1927 * m4/mbchar.m4: Likewise.
1928 * modules/mbswidth (Depends-on): Depend on wchar.
1929 * lib/mbswidth.c: Assume <wchar.h>.
1930 * m4/mbswidth.m4: Likewise.
1931 * modules/quotearg (Depends-on): Depend on wchar.
1932 * lib/quotearg.c: Assume <wchar.h>.
1933 * m4/quotearg.m4: Likewise.
1934 * modules/regex (Depends-on): Depend on wchar.
1935 * lib/regex_internal.h: Assume <wchar.h>.
1936 * m4/regex.m4: Likewise.
1937 * modules/stdint (Depends-on): Depend on wchar.
1938 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
1939 * m4/stdint.m4: Likewise.
1940 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
1941 * modules/strftime (Depends-on): Depend on wchar.
1942 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
1943 * modules/strtol (Depends-on): Depend on wchar.
1944 * lib/strtol.c: Assume <wchar.h>.
1945 * modules/wcwidth (Depends-on): Depend on wchar.
1946 * lib/wcwidth.h: Assume <wchar.h>.
1947 * m4/wcwidth.m4: Likewise.
1949 2007-01-16 Bruno Haible <bruno@clisp.org>
1951 * modules/csharpexec-script: New, created from...
1952 * modules/csharpexec: ... this.
1954 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
1956 * modules/javaexec-script: New, created from...
1957 * modules/javaexec: ... this.
1959 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1961 * modules/poll (Dependencies): Add sys_select.
1963 2007-01-15 Jim Meyering <jim@meyering.net>
1965 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
1966 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
1967 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
1968 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
1970 2007-01-15 Bruno Haible <bruno@clisp.org>
1972 * modules/striconveh: New file.
1973 * lib/striconveh.h: New file.
1974 * lib/striconveh.c: New file.
1975 * MODULES.html.sh (Internationalization functions): Add striconveh.
1977 * modules/striconveh-tests: New file.
1978 * tests/test-striconveh.c: New file.
1980 2007-01-15 Bruno Haible <bruno@clisp.org>
1982 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
1983 not from GNU libiconv or GNU libc.
1985 2007-01-15 Bruno Haible <bruno@clisp.org>
1987 * doc/gnulib-intro.texi (Copyright): Explain the different license
1988 terms for module descriptions, autoconf macros, tests, documentation.
1990 2007-01-14 Bruno Haible <bruno@clisp.org>
1992 * modules/striconv-tests: New file.
1993 * tests/test-striconv.c: New file.
1995 2007-01-14 Bruno Haible <bruno@clisp.org>
1997 * modules/iconv-tests: New file.
1998 * tests/test-iconv.c: New file.
2000 2007-01-14 Bruno Haible <bruno@clisp.org>
2002 * gnulib-tool (func_get_license): For test modules, use the license of
2005 2007-01-14 Bruno Haible <bruno@clisp.org>
2007 * modules/iconv (Include): Clarify that <iconv.h> can only be included
2008 if iconv is found to exist.
2010 2007-01-14 Bruno Haible <bruno@clisp.org>
2012 * modules/c-ctype-tests: New file.
2013 * tests/test-c-ctype.c: New file.
2015 2007-01-14 Bruno Haible <bruno@clisp.org>
2017 * modules/binary-io-tests: New file.
2018 * tests/test-binary-io.sh: New file.
2019 * tests/test-binary-io.c: New file.
2021 2007-01-14 Bruno Haible <bruno@clisp.org>
2023 * modules/array-oset-tests: New file.
2024 * tests/test-array_oset.c: New file.
2026 2007-01-14 Bruno Haible <bruno@clisp.org>
2028 * modules/array-list-tests: New file.
2029 * tests/test-array_list.c: New file.
2031 2007-01-14 Bruno Haible <bruno@clisp.org>
2033 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
2035 Reported by Simon Josefsson in
2036 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
2038 2007-01-14 Bruno Haible <bruno@clisp.org>
2040 * modules/allocsa-tests: New file.
2041 * tests/test-allocsa.c: New file.
2043 2007-01-14 Bruno Haible <bruno@clisp.org>
2045 * modules/fchdir (Depends-on): Add absolute-header.
2046 * modules/unistd (Depends-on): Likewise.
2048 2006-12-30 Bruno Haible <bruno@clisp.org>
2050 * modules/fchdir: New file.
2051 * modules/unistd (Files): Add lib/unistd_.h.
2052 (Makefile.am): Generate unistd.h from unistd_.h.
2053 * lib/fchdir.c: New file.
2054 * lib/dirent_.h: New file.
2055 * lib/unistd_.h: New file.
2056 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
2057 * m4/fchdir.m4: New file.
2058 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
2059 (gl_HEADER_UNISTD): Invoke it.
2060 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
2062 * lib/backupfile.c (opendir, closedir): Undefine.
2063 * lib/chown.c (open, close): Undefine.
2064 * lib/clean-temp.c (open, close): Undefine.
2065 * lib/copy-file.c (open, close): Undefine.
2066 * lib/execute.c (open, close): Undefine.
2067 * lib/fsusage.c (open, close): Undefine.
2068 * lib/gc-gnulib.c (open, close): Undefine.
2069 * lib/getcwd.c (opendir, closedir): Undefine.
2070 * lib/glob.c (opendir, closedir): Undefine.
2071 * lib/javacomp.c (open, close): Undefine.
2072 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
2073 * lib/openat-proc.c (open, close): Undefine.
2074 * lib/pagealign_alloc.c (open, close): Undefine.
2075 * lib/pipe.c (open, close): Undefine.
2076 * lib/progreloc.c (open, close): Undefine.
2077 * lib/savedir.c (opendir, closedir): Undefine.
2078 * lib/utime.c (open, close): Undefine.
2079 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
2081 2007-01-10 Bruno Haible <bruno@clisp.org>
2083 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
2085 2007-01-12 Eric Blake <ebb9@byu.net>
2087 Provide a robust <wchar.h>. Further simplifications are now
2088 possible in other modules, but not included here.
2089 * modules/wchar: New module.
2090 * m4/wchar.m4: New file.
2091 * lib/wchar_.h: Likewise.
2092 * modules/mbchar (Depends-on): Depend on wchar, as the first use
2094 * MODULES.html.sh (Extended multibyte and wide character utilities):
2097 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
2099 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
2100 to a reasonable default for memory allocation.
2101 (xreadlink): Don't allocate a huge buffer, to work around a buggy
2102 file system that reports garbage st_size values for symlinks.
2103 Problem reported by Liyang Hu.
2105 2007-01-11 Simon Josefsson <simon@josefsson.org>
2107 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
2108 Emacs .#* auto-save files).
2110 2007-01-11 Bruno Haible <bruno@clisp.org>
2112 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
2115 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
2117 Use @...@ consistently in lib/wctype_.h.
2118 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
2119 on it being set to 1 or 0.
2120 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
2121 go back to AC_SUBSTing it.
2122 * modules/wctype (Makefile.am): Undo previous change.
2124 2007-01-10 Eric Blake <ebb9@byu.net>
2126 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
2127 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
2128 * modules/wctype (Makefile.am): Likewise.
2129 Reported by Chris McGuire.
2131 2007-01-10 Jim Meyering <jim@meyering.net>
2133 fts.c: a small readability/maintainability improvement
2134 * lib/fts.c (fts_read): Make this code slightly more readable and
2135 maintainable by hoisting the "sp->fts_cur = p" assignments to
2136 immediately follow the statements that set P. Derived from
2137 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
2139 2007-01-10 Eric Blake <ebb9@byu.net>
2141 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
2142 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
2143 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2144 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2145 Reported by Chris McGuire.
2147 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2149 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
2152 2007-01-09 Bruno Haible <bruno@clisp.org>
2154 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
2155 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
2157 (func_module): Use them.
2159 2007-01-09 Bruno Haible <bruno@clisp.org>
2161 * modules/unistr/base: New file.
2162 * lib/unistr.h: New file.
2164 * modules/unistr/u8-to-u16: New file.
2165 * lib/unistr/u8-to-u16.c: New file.
2167 * modules/unistr/u8-to-u32: New file.
2168 * lib/unistr/u8-to-u32.c: New file.
2170 * modules/unistr/u16-to-u8: New file.
2171 * lib/unistr/u16-to-u8.c: New file.
2173 * modules/unistr/u16-to-u32: New file.
2174 * lib/unistr/u16-to-u32.c: New file.
2176 * modules/unistr/u32-to-u8: New file.
2177 * lib/unistr/u32-to-u8.c: New file.
2179 * modules/unistr/u32-to-u16: New file.
2180 * lib/unistr/u32-to-u16.c: New file.
2182 * modules/unistr/u8-check: New file.
2183 * modules/unistr/u16-check: New file.
2184 * modules/unistr/u32-check: New file.
2185 * lib/unistr/u8-check.c: New file.
2186 * lib/unistr/u16-check.c: New file.
2187 * lib/unistr/u32-check.c: New file.
2189 * modules/unistr/u8-chr: New file.
2190 * modules/unistr/u16-chr: New file.
2191 * modules/unistr/u32-chr: New file.
2192 * lib/unistr/u8-chr.c: New file.
2193 * lib/unistr/u16-chr.c: New file.
2194 * lib/unistr/u32-chr.c: New file.
2196 * modules/unistr/u8-cmp: New file.
2197 * modules/unistr/u16-cmp: New file.
2198 * modules/unistr/u32-cmp: New file.
2199 * lib/unistr/u8-cmp.c: New file.
2200 * lib/unistr/u16-cmp.c: New file.
2201 * lib/unistr/u32-cmp.c: New file.
2203 * modules/unistr/u8-cpy: New file.
2204 * modules/unistr/u16-cpy: New file.
2205 * modules/unistr/u32-cpy: New file.
2206 * lib/unistr/u8-cpy.c: New file.
2207 * lib/unistr/u16-cpy.c: New file.
2208 * lib/unistr/u32-cpy.c: New file.
2209 * lib/unistr/u-cpy.h: New file.
2211 * modules/unistr/u8-cpy-alloc: New file.
2212 * modules/unistr/u16-cpy-alloc: New file.
2213 * modules/unistr/u32-cpy-alloc: New file.
2214 * lib/unistr/u8-cpy-alloc.c: New file.
2215 * lib/unistr/u16-cpy-alloc.c: New file.
2216 * lib/unistr/u32-cpy-alloc.c: New file.
2217 * lib/unistr/u-cpy-alloc.h: New file.
2219 * modules/unistr/u8-endswith: New file.
2220 * modules/unistr/u16-endswith: New file.
2221 * modules/unistr/u32-endswith: New file.
2222 * lib/unistr/u8-endswith.c: New file.
2223 * lib/unistr/u16-endswith.c: New file.
2224 * lib/unistr/u32-endswith.c: New file.
2225 * lib/unistr/u-endswith.h: New file.
2227 * modules/unistr/u8-mblen: New file.
2228 * modules/unistr/u16-mblen: New file.
2229 * modules/unistr/u32-mblen: New file.
2230 * lib/unistr/u8-mblen.c: New file.
2231 * lib/unistr/u16-mblen.c: New file.
2232 * lib/unistr/u32-mblen.c: New file.
2234 * modules/unistr/u8-mbtouc: New file.
2235 * modules/unistr/u16-mbtouc: New file.
2236 * modules/unistr/u32-mbtouc: New file.
2237 * lib/unistr/u8-mbtouc.c: New file.
2238 * lib/unistr/u16-mbtouc.c: New file.
2239 * lib/unistr/u32-mbtouc.c: New file.
2241 * modules/unistr/u8-mbtouc-safe: New file.
2242 * modules/unistr/u16-mbtouc-safe: New file.
2243 * modules/unistr/u32-mbtouc-safe: New file.
2244 * lib/unistr/u8-mbtouc-safe.c: New file.
2245 * lib/unistr/u16-mbtouc-safe.c: New file.
2246 * lib/unistr/u32-mbtouc-safe.c: New file.
2248 * modules/unistr/u8-move: New file.
2249 * modules/unistr/u16-move: New file.
2250 * modules/unistr/u32-move: New file.
2251 * lib/unistr/u8-move.c: New file.
2252 * lib/unistr/u16-move.c: New file.
2253 * lib/unistr/u32-move.c: New file.
2254 * lib/unistr/u-move.h: New file.
2256 * modules/unistr/u8-next: New file.
2257 * modules/unistr/u16-next: New file.
2258 * modules/unistr/u32-next: New file.
2259 * lib/unistr/u8-next.c: New file.
2260 * lib/unistr/u16-next.c: New file.
2261 * lib/unistr/u32-next.c: New file.
2263 * modules/unistr/u8-prev: New file.
2264 * modules/unistr/u16-prev: New file.
2265 * modules/unistr/u32-prev: New file.
2266 * lib/unistr/u8-prev.c: New file.
2267 * lib/unistr/u16-prev.c: New file.
2268 * lib/unistr/u32-prev.c: New file.
2270 * modules/unistr/u8-set: New file.
2271 * modules/unistr/u16-set: New file.
2272 * modules/unistr/u32-set: New file.
2273 * lib/unistr/u8-set.c: New file.
2274 * lib/unistr/u16-set.c: New file.
2275 * lib/unistr/u32-set.c: New file.
2276 * lib/unistr/u-set.h: New file.
2278 * modules/unistr/u8-startswith: New file.
2279 * modules/unistr/u16-startswith: New file.
2280 * modules/unistr/u32-startswith: New file.
2281 * lib/unistr/u8-startswith.c: New file.
2282 * lib/unistr/u16-startswith.c: New file.
2283 * lib/unistr/u32-startswith.c: New file.
2284 * lib/unistr/u-startswith.h: New file.
2286 * modules/unistr/u8-stpcpy: New file.
2287 * modules/unistr/u16-stpcpy: New file.
2288 * modules/unistr/u32-stpcpy: New file.
2289 * lib/unistr/u8-stpcpy.c: New file.
2290 * lib/unistr/u16-stpcpy.c: New file.
2291 * lib/unistr/u32-stpcpy.c: New file.
2292 * lib/unistr/u-stpcpy.h: New file.
2294 * modules/unistr/u8-stpncpy: New file.
2295 * modules/unistr/u16-stpncpy: New file.
2296 * modules/unistr/u32-stpncpy: New file.
2297 * lib/unistr/u8-stpncpy.c: New file.
2298 * lib/unistr/u16-stpncpy.c: New file.
2299 * lib/unistr/u32-stpncpy.c: New file.
2300 * lib/unistr/u-stpncpy.h: New file.
2302 * modules/unistr/u8-strcat: New file.
2303 * modules/unistr/u16-strcat: New file.
2304 * modules/unistr/u32-strcat: New file.
2305 * lib/unistr/u8-strcat.c: New file.
2306 * lib/unistr/u16-strcat.c: New file.
2307 * lib/unistr/u32-strcat.c: New file.
2308 * lib/unistr/u-strcat.h: New file.
2310 * modules/unistr/u8-strchr: New file.
2311 * modules/unistr/u16-strchr: New file.
2312 * modules/unistr/u32-strchr: New file.
2313 * lib/unistr/u8-strchr.c: New file.
2314 * lib/unistr/u16-strchr.c: New file.
2315 * lib/unistr/u32-strchr.c: New file.
2317 * modules/unistr/u8-strcmp: New file.
2318 * modules/unistr/u16-strcmp: New file.
2319 * modules/unistr/u32-strcmp: New file.
2320 * lib/unistr/u8-strcmp.c: New file.
2321 * lib/unistr/u16-strcmp.c: New file.
2322 * lib/unistr/u32-strcmp.c: New file.
2324 * modules/unistr/u8-strcpy: New file.
2325 * modules/unistr/u16-strcpy: New file.
2326 * modules/unistr/u32-strcpy: New file.
2327 * lib/unistr/u8-strcpy.c: New file.
2328 * lib/unistr/u16-strcpy.c: New file.
2329 * lib/unistr/u32-strcpy.c: New file.
2330 * lib/unistr/u-strcpy.h: New file.
2332 * modules/unistr/u8-strcspn: New file.
2333 * modules/unistr/u16-strcspn: New file.
2334 * modules/unistr/u32-strcspn: New file.
2335 * lib/unistr/u8-strcspn.c: New file.
2336 * lib/unistr/u16-strcspn.c: New file.
2337 * lib/unistr/u32-strcspn.c: New file.
2338 * lib/unistr/u-strcspn.h: New file.
2340 * modules/unistr/u8-strdup: New file.
2341 * modules/unistr/u16-strdup: New file.
2342 * modules/unistr/u32-strdup: New file.
2343 * lib/unistr/u8-strdup.c: New file.
2344 * lib/unistr/u16-strdup.c: New file.
2345 * lib/unistr/u32-strdup.c: New file.
2346 * lib/unistr/u-strdup.h: New file.
2348 * modules/unistr/u8-strlen: New file.
2349 * modules/unistr/u16-strlen: New file.
2350 * modules/unistr/u32-strlen: New file.
2351 * lib/unistr/u8-strlen.c: New file.
2352 * lib/unistr/u16-strlen.c: New file.
2353 * lib/unistr/u32-strlen.c: New file.
2354 * lib/unistr/u-strlen.h: New file.
2356 * modules/unistr/u8-strmblen: New file.
2357 * modules/unistr/u16-strmblen: New file.
2358 * modules/unistr/u32-strmblen: New file.
2359 * lib/unistr/u8-strmblen.c: New file.
2360 * lib/unistr/u16-strmblen.c: New file.
2361 * lib/unistr/u32-strmblen.c: New file.
2363 * modules/unistr/u8-strmbtouc: New file.
2364 * modules/unistr/u16-strmbtouc: New file.
2365 * modules/unistr/u32-strmbtouc: New file.
2366 * lib/unistr/u8-strmbtouc.c: New file.
2367 * lib/unistr/u16-strmbtouc.c: New file.
2368 * lib/unistr/u32-strmbtouc.c: New file.
2370 * modules/unistr/u8-strncat: New file.
2371 * modules/unistr/u16-strncat: New file.
2372 * modules/unistr/u32-strncat: New file.
2373 * lib/unistr/u8-strncat.c: New file.
2374 * lib/unistr/u16-strncat.c: New file.
2375 * lib/unistr/u32-strncat.c: New file.
2376 * lib/unistr/u-strncat.h: New file.
2378 * modules/unistr/u8-strncmp: New file.
2379 * modules/unistr/u16-strncmp: New file.
2380 * modules/unistr/u32-strncmp: New file.
2381 * lib/unistr/u8-strncmp.c: New file.
2382 * lib/unistr/u16-strncmp.c: New file.
2383 * lib/unistr/u32-strncmp.c: New file.
2385 * modules/unistr/u8-strncpy: New file.
2386 * modules/unistr/u16-strncpy: New file.
2387 * modules/unistr/u32-strncpy: New file.
2388 * lib/unistr/u8-strncpy.c: New file.
2389 * lib/unistr/u16-strncpy.c: New file.
2390 * lib/unistr/u32-strncpy.c: New file.
2391 * lib/unistr/u-strncpy.h: New file.
2393 * modules/unistr/u8-strnlen: New file.
2394 * modules/unistr/u16-strnlen: New file.
2395 * modules/unistr/u32-strnlen: New file.
2396 * lib/unistr/u8-strnlen.c: New file.
2397 * lib/unistr/u16-strnlen.c: New file.
2398 * lib/unistr/u32-strnlen.c: New file.
2399 * lib/unistr/u-strnlen.h: New file.
2401 * modules/unistr/u8-strpbrk: New file.
2402 * modules/unistr/u16-strpbrk: New file.
2403 * modules/unistr/u32-strpbrk: New file.
2404 * lib/unistr/u8-strpbrk.c: New file.
2405 * lib/unistr/u16-strpbrk.c: New file.
2406 * lib/unistr/u32-strpbrk.c: New file.
2407 * lib/unistr/u-strpbrk.h: New file.
2409 * modules/unistr/u8-strrchr: New file.
2410 * modules/unistr/u16-strrchr: New file.
2411 * modules/unistr/u32-strrchr: New file.
2412 * lib/unistr/u8-strrchr.c: New file.
2413 * lib/unistr/u16-strrchr.c: New file.
2414 * lib/unistr/u32-strrchr.c: New file.
2416 * modules/unistr/u8-strspn: New file.
2417 * modules/unistr/u16-strspn: New file.
2418 * modules/unistr/u32-strspn: New file.
2419 * lib/unistr/u8-strspn.c: New file.
2420 * lib/unistr/u16-strspn.c: New file.
2421 * lib/unistr/u32-strspn.c: New file.
2422 * lib/unistr/u-strspn.h: New file.
2424 * modules/unistr/u8-strstr: New file.
2425 * modules/unistr/u16-strstr: New file.
2426 * modules/unistr/u32-strstr: New file.
2427 * lib/unistr/u8-strstr.c: New file.
2428 * lib/unistr/u16-strstr.c: New file.
2429 * lib/unistr/u32-strstr.c: New file.
2430 * lib/unistr/u-strstr.h: New file.
2432 * modules/unistr/u8-strtok: New file.
2433 * modules/unistr/u16-strtok: New file.
2434 * modules/unistr/u32-strtok: New file.
2435 * lib/unistr/u8-strtok.c: New file.
2436 * lib/unistr/u16-strtok.c: New file.
2437 * lib/unistr/u32-strtok.c: New file.
2438 * lib/unistr/u-strtok.h: New file.
2440 * modules/unistr/u8-uctomb: New file.
2441 * modules/unistr/u16-uctomb: New file.
2442 * modules/unistr/u32-uctomb: New file.
2443 * lib/unistr/u8-uctomb.c: New file.
2444 * lib/unistr/u16-uctomb.c: New file.
2445 * lib/unistr/u32-uctomb.c: New file.
2447 * MODULES.html.sh (Unicode string functions): Add the new modules.
2449 2007-01-08 Bruno Haible <bruno@clisp.org>
2451 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
2452 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
2455 2007-01-08 Karl Berry <karl@gnu.org>
2457 * doc/error.texi: mention that main() fns must set program_name
2458 when progname is used.
2460 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
2462 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
2463 WCTYPE_H is empty, for the benefit of builds from non-distclean
2464 directories. Problem reported by Eric Blake in
2465 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
2467 2007-01-08 Bruno Haible <bruno@clisp.org>
2469 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
2470 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
2471 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
2472 PROVIDE_CANONICALIZE_FILENAME_MODE.
2473 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
2475 2007-01-08 Bruno Haible <bruno@clisp.org>
2477 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
2478 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
2479 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
2480 * lib/fts.c: Likewise.
2481 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
2483 2006-12-25 Bruno Haible <bruno@clisp.org>
2485 * modules/utf8-ucs4-safe: New file.
2486 * lib/utf8-ucs4-safe.h: New file.
2487 * lib/unistr/utf8-ucs4-safe.c: New file.
2489 * modules/utf16-ucs4-safe: New file.
2490 * lib/utf16-ucs4-safe.h: New file.
2491 * lib/unistr/utf16-ucs4-safe.c: New file.
2493 * MODULES.html.sh (Unicode string functions): Add the new modules.
2495 2007-01-08 Bruno Haible <bruno@clisp.org>
2497 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
2498 (Depends-on): Add unitypes.
2499 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
2500 (u8_mbtouc_aux): Move out to separate file.
2501 (u8_mbtouc): Use ucs4_t, uint8_t types.
2502 * lib/unistr/utf8-ucs4.c: New file.
2504 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
2505 (Depends-on): Add unitypes.
2506 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
2507 (u16_mbtouc_aux): Move out to separate file.
2508 (u16_mbtouc): Use ucs4_t, uint16_t types.
2509 * lib/unistr/utf16-ucs4.c: New file.
2511 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
2512 (Depends-on): Add unitypes.
2513 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
2514 (u8_uctomb_aux): Move out to separate file.
2515 (u8_uctomb): Use ucs4_t, uint8_t types.
2516 * lib/unistr/ucs4-utf8.c: New file.
2518 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
2519 (Depends-on): Add unitypes.
2520 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
2521 (u16_uctomb_aux): Move out to separate file.
2522 (u16_uctomb): Use ucs4_t, uint16_t types.
2523 * lib/unistr/ucs4-utf16.c: New file.
2525 2006-12-25 Bruno Haible <bruno@clisp.org>
2527 * modules/unitypes: New file.
2528 * lib/unitypes.h: New file.
2529 * MODULES.html.sh (func_all_modules): New section "Unicode string
2530 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
2531 this section. Add unitypes.
2533 2007-01-08 Bruno Haible <bruno@clisp.org>
2535 Avoid variable names that conflict with those from libtool.
2536 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
2537 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
2538 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
2539 library_names_spec to acl_library_names_spec, hardcode_* to
2541 Reported by Ralf Wildenhues.
2543 2007-01-08 Bruno Haible <bruno@clisp.org>
2545 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
2547 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
2549 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
2550 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
2552 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
2554 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
2555 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
2556 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
2557 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
2559 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
2561 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
2562 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
2564 * lib/gc-libgcrypt.c: Likewise.
2565 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
2566 * modules/gc-arctwo (configure.ac): Likewise.
2567 * modules/gc-des (configure.ac): Likewise.
2568 * modules/gc-hmac-md5 (configure.ac): Likewise.
2569 * modules/gc-hmac-sha1 (configure.ac): Likewise.
2570 * modules/gc-md2 (configure.ac): Likewise.
2571 * modules/gc-md4 (configure.ac): Likewise.
2572 * modules/gc-md5 (configure.ac): Likewise.
2573 * modules/gc-random (configure.ac): Likewise.
2574 * modules/gc-rijndael (configure.ac): Likewise.
2575 * modules/gc-sha1 (configure.ac): Likewise.
2577 2007-01-08 Bruno Haible <bruno@clisp.org>
2579 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
2581 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
2583 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
2585 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
2586 * modules/fcntl-safer (configure.ac): Likewise.
2587 * modules/fopen-safer (configure.ac): Likewise.
2588 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
2589 GNULIB_FWRITEERROR macro definition.
2591 2007-01-08 Bruno Haible <bruno@clisp.org>
2593 * m4/gnulib-common.m4: New file.
2594 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
2595 (func_get_filelist): Add m4/gnulib-common.m4.
2597 2007-01-08 Bruno Haible <bruno@clisp.org>
2599 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
2602 2007-01-08 Jim Meyering <jim@meyering.net>
2604 Use a more robust test for a "can't happen" condition.
2605 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
2606 narrowed the st_size value. Presuming the "can't happen" condition
2607 is true, that narrowing could conceivably convert an invalid st_size
2608 value into a valid one. Instead, use a change based on Matthew
2609 Woehlke's original patch.
2611 Slight readability improvement: use an assert-like macro
2612 in place of literal "abort ()" uses.
2613 * lib/fts.c (fts_assert): Define.
2614 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
2615 Use this macro instead of a bare 'abort'.
2617 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
2619 Don't worry about using IRIX 5.3's wctype.h broken definitions;
2620 simply work around them.
2621 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
2622 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
2623 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
2624 Don't bother to define as macros, since the standard doesn't require it.
2625 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
2626 longer worry about IRIX 5.3.
2627 (HAVE_WCTYPE_CTMP_BUG): Remove.
2629 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
2631 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
2632 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
2633 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
2634 Problems reported by Georg Schwarz for IRIX 5.3.
2636 * gnulib-tool (autoconf_minversion): Take the maximum version number
2637 found, not the minimum. Problem reported by James Youngman.
2639 2007-01-03 Karl Berry <karl@gnu.org>
2641 * doc/error.texi: new file, explaining interaction with progname.
2642 * doc/gnulib.texi: include it. Update copyright.
2644 2007-01-03 Simon Josefsson <simon@josefsson.org>
2646 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
2647 AC_CANONICAL_HOST, to improve autobuild outputs.
2649 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
2650 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2652 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
2653 sockets, server sockets, and other file descriptors. Count errors
2654 to compute the return value. Reorder the code a bit to be easier
2655 to follow. Don't set event bits that were not requested (except
2656 POLLERR and POLLHUP).
2658 2007-01-01 Bruno Haible <bruno@clisp.org>
2660 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
2662 2007-01-03 Jim Meyering <jim@meyering.net>
2664 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
2666 2007-01-02 Bruno Haible <bruno@clisp.org>
2668 * modules/settime (Include): Require timespec.h.
2669 * modules/nanosleep (Include): Likewise.
2671 2007-01-01 Bruno Haible <bruno@clisp.org>
2673 * gnulib-tool (func_emit_copyright_notice): Bump year.
2674 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
2676 2007-01-01 Bruno Haible <bruno@clisp.org>
2678 Improve support for OpenBSD.
2679 * build-aux/config.rpath (libname_spec): Export.
2680 (library_names_spec): New variable. Export.
2681 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
2682 library_names_spec from the config.rpath output. Locate shared library
2683 through the name pattern in library_names_spec.
2685 2007-01-01 Eric Blake <ebb9@byu.net>
2687 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
2689 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
2691 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
2692 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
2693 assume the C locale, and avoid an "eval" that could cause trouble.
2694 Problem with SORT reported by Bob Proulx.
2696 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
2697 Define. Trivial patch from Henning Nielsen Lund, originally
2698 sent to bug-grep@gnu.org today.
2700 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
2702 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
2703 struct stat. Problem reported by Henning Nielsen Lund.
2704 * lib/acl.c: Include acl.h first, to check interface. Don't
2705 bother to include sys/types.h and sys/stat.h again.
2707 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
2709 Import the following change from libc; problem reported by
2712 2005-10-13 Ulrich Drepper <drepper@redhat.com>
2715 * lib/argp.h: Remove __NTH for __argp_usage inline function.
2717 2006-12-28 Jim Meyering <jim@meyering.net>
2719 * build-aux/announce-gen: Do not assume that the package
2720 builds any of tar.gz, tar.bz2, and .xdelta files.
2721 Suggestion from Simon Josefsson.
2723 2006-12-28 Simon Josefsson <simon@josefsson.org>
2725 * modules/announce-gen: New file.
2727 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
2729 * lib/mbchar.h: Just include <wctype.h>; the wctype module
2730 handles its gotchas now.
2731 * lib/mbswidth.c: Likewise.
2732 * lib/wcwidth.h: Likewise.
2733 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
2734 and iswcntrl; the wctype module does this stuff now.
2735 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2736 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2737 * modules/mbchar (Depends-on): Add wctype.
2738 * modules/mbswidth (Depends-on): Likewise.
2739 * modules/wcwidth (Depends-on): Likewise.
2741 2006-12-27 Eric Blake <ebb9@byu.net>
2743 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
2744 module uses more than what <wctype.h> is required to provide.
2746 2006-12-26 Eric Blake <ebb9@byu.net>
2748 * gnulib-tool (sed_extract_prog): Avoid space-tab.
2750 2006-12-26 Eric Blake <ebb9@byu.net>
2752 * modules/absolute-header: New module.
2753 * modules/fcntl (Depends-on): Depend on it.
2754 * modules/inttypes (Depends-on): Likewise.
2755 * modules/stdint (Depends-on): Likewise.
2756 * modules/sys_stat (Depends-on): Likewise.
2757 * modules/wctype (Depends-on): Likewise.
2758 * MODULES.html.sh (Support for building libraries and
2759 executables): Document it.
2761 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
2763 * gnulib-tool (SED): Remove, undoing previous change.
2764 The problem was that it broke coreutils on Solaris, because
2765 "sed --posix" leaked into a makefile.
2766 (sed): New alias, if 'alias' and GNU sed.
2768 2006-12-24 Jim Meyering <jim@meyering.net>
2770 Work around an fchownat bug in glibc-2.4:
2771 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
2772 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
2773 in spite of the -P option.
2774 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
2776 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
2777 * modules/openat (Files): Add lib/fchownat.c.
2778 * lib/openat.c (fchownat): Don't define here. Move to...
2779 * lib/fchownat.c: ...this new file.
2781 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
2783 Fix bug reported by Bruno Haible in
2784 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
2785 where quotearg.c didn't compile on Mac OS X 10.2 because it
2786 lacks <wchar.h> and wint_t.
2787 * lib/wctype_.h (__wctype_wint_t): New type.
2788 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
2789 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
2790 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
2791 Arg is now of type __wctype_wint_t, not wint_t.
2792 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
2793 substitute HAVE_WINT_T.
2794 * modules/wctype (Files): Add m4/wint_t.m4.
2795 (wctype.h): Substitute HAVE_WINT_T.
2797 2006-12-23 Bruno Haible <bruno@clisp.org>
2799 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
2801 2006-12-23 Bruno Haible <bruno@clisp.org>
2803 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
2805 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
2808 2006-12-22 Bruno Haible <bruno@clisp.org>
2810 * lib/copy-file.c: Include acl.h.
2811 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
2812 Close the file descriptors only after being done with copy_acl.
2813 * modules/copy-file (Depends-on): Add acl.
2815 2006-12-22 Bruno Haible <bruno@clisp.org>
2817 * gnulib-tool (SED): New variable.
2818 Use $SED instead of sed everywhere.
2820 2006-12-22 Bruno Haible <bruno@clisp.org>
2822 * modules/no-c++: New file.
2823 * m4/no-c++.m4: New file.
2824 * MODULES.html.sh (Support for building libraries and executables):
2827 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
2829 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2830 Include <limits.h>, and use its INT_MAX to rewrite the
2831 j loop so that it does not overflow 'int'. Problem reported by
2833 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
2834 Play it safe by shifting left by 1 rather than multiplying by 2,
2835 as GCC is less likely to optimize this away when the value
2836 is signed (when it assumes overflow leads to undefined behavior).
2837 Also, don't assume time_t uses two's complement.
2839 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
2841 * MODULES.html.sh: New module wctype.
2842 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
2843 * lib/fnmatch.c: Don't bother to include <wchar.h> before
2844 <wctype.h>, since the new wctype module should fix this.
2845 * lib/quotearg.c: Include <wctype.h> unconditionally, since
2846 the wctype module should arrange for it.
2847 * lib/regex_internal.h: Likewise.
2848 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
2849 since the wctype module should handle this now.
2850 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
2851 * modules/fnmatch (Depends-on): Add wctype.
2852 * modules/quotearg (Depends-on): Likewise.
2853 * modules/regex (Depends-on): Likewise.
2855 2006-12-19 Bruno Haible <bruno@clisp.org>
2857 * lib/strdup.h [C++]: Wrap definitions in extern "C".
2858 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
2860 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2862 * modules/savewd (Depends-on): Fix dependency on fcntl.
2864 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
2866 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
2867 conforms to C99, rather than relying on the user's environment
2868 setting of STDINT_H.
2870 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
2871 and Eric Blake <ebb9@byu.net>
2873 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
2874 This is more consistent with the other defines here.
2875 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
2876 Port to z/OS. Problem reported by Paul Gilmartin.
2877 Change local vars to use gl_ prefix rather than ac_.
2878 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
2880 * modules/double-slash-root: New module.
2881 * modules/dirname (Files): Remove m4/double-slash-root.m4.
2882 (Depends-on): Add double-slash-root.
2883 * MODULES.html.sh (File system functions): Mention new module.
2885 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
2887 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
2888 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
2889 This is for the benefit of gzip, which doesn't do i18n.
2891 2006-12-12 Jim Meyering <jim@meyering.net>
2893 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
2894 Reported by Andreas Schwab <schwab@suse.de>.
2896 2006-12-12 Bruno Haible <bruno@clisp.org>
2898 Merge these changes.
2899 2006-09-05 Bruno Haible <bruno@clisp.org>
2900 * lib/iconvme.c (iconv_string): No need to save and restore errno when
2901 iconv_alloc succeeded.
2902 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
2903 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
2904 test for " && dest " at the end - dest is always != NULL there. Call
2905 iconv with 4xNULL arguments initially, to reset the state. Call iconv
2906 with 2xNULL arguments, also to flush the state storage. Handle the
2907 IRIX iconv behaviour. Realloc the final result, to throw away unused
2910 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
2912 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
2913 and fchmodat unconditionally, since glibc 2.4 has them.
2914 Problem reported by Arkadiusz Miskiewicz.
2916 2006-12-10 Bruno Haible <bruno@clisp.org>
2918 * gnulib-tool (func_import): Show the include files only for those
2919 modules that are copied and specified.
2920 Reported by Karl Berry.
2922 2006-12-08 Jim Meyering <jim@meyering.net>
2924 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
2925 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
2927 * build-aux/announce-gen: Add two new options, both optional:
2928 --bootstrap-tools=TOOL_LIST
2929 a comma-separated list of tools, e.g.,
2930 autoconf,automake,bison,gnulib
2931 --gnulib-snapshot-date=DATE
2932 if gnulib is in the bootstrap tool list,
2933 then report this as the snapshot date.
2934 If not specified, use the current date/time.
2935 If you specify a date here, be sure it's UTC.
2937 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2939 * tests/test-argp-2.sh: Fix test to match actual output.
2940 (func_compare): Fix sed script to be portable.
2942 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
2944 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
2945 workaround for this case. It is not autoconfigured now; offhand
2946 it's hard to see how to autoconfigure it.
2948 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
2950 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
2951 a directory that is about to be chowned. Such a directory's
2952 initial file permissions should permit the owner only and this
2953 should not be changed until after the chown, since the group and
2954 other bits would be incorrect if they granted permission before
2957 Fix porting problem for iswctype reported by Georg Schwarz in:
2958 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
2959 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
2960 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
2961 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
2962 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2964 2006-12-03 Jim Meyering <jim@meyering.net>
2966 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
2967 p->fts_statp may not yet be defined.
2968 (fts_read): Instead, set it in the caller, once p->fts_statp is
2969 sure to be defined, and corresponds to a top-level directory.
2970 This bug made du -x fail. Here's the coreutils test case:
2971 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
2972 Reported by Mike Frysinger.
2974 2006-12-01 Jim Meyering <jim@meyering.net>
2976 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
2977 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
2978 Reported by Simon Josefsson.
2980 2006-11-30 Jim Meyering <jim@meyering.net>
2982 * m4/warning.m4: Use the all-permissive copyright notice
2983 recommended by RMS (rather than LGPL).
2984 * m4/vararrays.m4: Likewise.
2985 * m4/flexmember.m4: Likewise.
2987 2006-11-29 Bruno Haible <bruno@clisp.org>
2989 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2990 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
2992 Reported by Simon Josefsson <simon@josefsson.org>.
2994 2006-11-28 James Youngman <jay@gnu.org>
2996 * README: Advise users that they might find the bug-gnulib@gnu.org
2997 and autotools-announce@gnu.org mailing lists useful.
2999 2006-11-28 Bruno Haible <bruno@clisp.org>
3001 * m4/ptrdiff_max.m4: Remove file.
3003 2006-11-21 Bruno Haible <bruno@clisp.org>
3005 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
3007 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3008 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
3010 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3011 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
3013 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3015 2006-11-28 Jim Meyering <jim@meyering.net>
3017 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
3018 warning from "gcc -Wshadow" about shadowing the builtin.
3020 2006-11-27 Bruno Haible <bruno@clisp.org>
3022 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
3024 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
3026 2006-11-27 Bruno Haible <bruno@clisp.org>
3027 Paul Eggert <eggert@cs.ucla.edu>
3029 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
3031 2006-11-26 Bruno Haible <bruno@clisp.org>
3033 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
3036 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
3037 Bruno Haible <bruno@clisp.org>
3039 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
3040 if compiling with "gcc -ansi".
3042 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
3044 Fix some incompatibilities with gcc -ansi -pedantic.
3045 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
3046 if compiling pedantically with GCC, unless it's C99 or later.
3047 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
3048 it mishandles gcc -ansi -pedantic as well.
3049 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
3051 * lib/regexec.c (check_node_accept_bytes): Don't use auto
3052 initializers for struct if -pedantic, unless it's C99 or later.
3054 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
3056 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
3057 Don't close an fd more than once. Identical atimes indicate
3058 success, not failure.
3060 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
3062 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
3064 2006-11-23 Jim Meyering <jim@meyering.net>
3066 * build-aux/announce-gen: New file. From coreutils.
3068 2006-11-22 Jim Meyering <jim@meyering.net>
3070 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
3071 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
3072 (fts_read): Use a temporary to narrow the overused st_size member
3073 before using it in a switch statement. Reported by Matthew Woehlke.
3075 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
3076 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3078 2006-11-20 Bruno Haible <bruno@clisp.org>
3080 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
3081 changequote instead of pairs of brackets.
3082 Reported by Andreas Schwab <schwab@suse.de>.
3084 2006-11-21 Jim Meyering <jim@meyering.net>
3086 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
3087 so as to remain compatible with older compilers.
3088 Patch from Michael Deutschmann.
3090 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
3092 * MODULES.html.sh (File system functions): Add openat.
3094 * lib/openat.h (rpl_fstatat): New macro, if
3095 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
3096 (fstatat): Define to rpl_fstatat under the same conditions,
3097 unless COMPILING_FSTATAT.
3098 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
3099 seems to have the bug.
3100 * lib/fstatat.c: New file.
3101 * modules/openat (Files): Add it.
3103 2006-11-20 Bruno Haible <bruno@clisp.org>
3105 * Makefile: New file.
3107 2006-11-20 Jim Meyering <jim@meyering.net>
3109 The beginnings of syntax-related checks for gnulib.
3110 * lib/Makefile: New file.
3111 * lib/t-idcache: New script. Ensure that the two halves of
3112 idcache.c stay in sync.
3114 * lib/idcache.c: Adjust comments in user- and group- portions to
3115 be more accurate, and to be consistent with one another.
3117 2006-11-20 Jim Meyering <jim@meyering.net>
3119 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
3120 continue using the flexible array member (thus, this module performs
3121 half as many malloc calls), with the addition that...
3122 (getgroup, getuser): Consistently record a non-match via an empty
3123 "name" string, and map an empty string match to a NULL return value.
3124 * modules/idcache (Depends-on): Re-add flexmember.
3126 * lib/idcache.c (getuser): Remove all uses of the register keyword.
3127 (getuidbyname, getgroup, getgidbyname): Likewise.
3129 Use cleaner syntax: NULL rather than 0.
3130 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
3132 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
3134 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
3135 It mishandled the case where the group was missing.
3136 Problem reported by Greg Schafer.
3137 * modules/idcache: Likewise.
3139 2006-11-18 Jim Meyering <jim@meyering.net>
3141 * check-module (%exempt_header): Add exception for some
3142 conditionally-included headers.
3144 * modules/i-ring (Depends-on): Add verify.
3145 (License): Change to LGPL.
3147 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
3149 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
3150 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
3151 and inttostr.h. Use snprintf rather than uinttostr, so that
3152 LGPLed code doesn't depend on GPLed.
3154 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
3156 * modules/inline (License): Change from GPL to LGPL.
3158 2006-11-17 Jim Meyering <jim@meyering.net>
3160 * modules/d-type (License): Switch to LGPL.
3162 2006-11-15 Bruno Haible <bruno@clisp.org>
3164 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
3166 2006-11-15 Eric Blake <ebb9@byu.net>
3168 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
3169 the module dependency.
3171 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3172 Bruno Haible <bruno@clisp.org>
3174 * gnulib-tool (func_create_testdir): Add license consistency check.
3176 2006-11-15 Eric Blake <ebb9@byu.net>
3178 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
3179 random "(cached)" in configure output.
3181 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3183 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
3184 test for conforming inttypes.h is both announced and cached.
3186 * MODULES.html.sh (seen_modules, seen_files): New variables.
3187 (func_module): Rewrite to use a few less gnulib-tool and sed
3188 invocations. Avoid a couple of quadratic algorithms for ...
3189 (missed_modules, missed_files): ... these, with ...
3190 (func_append, func_tmpdir): ... these new functions, from
3191 gnulib-tool. Analogously, install traps for cleanup.
3193 * tests/test-gc.c (main): Remove unused variables.
3194 * tests/test-read-file.c: Include stdlib.h, for 'free'.
3196 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
3198 * modules/inttostr (License): Change to LGPL.
3200 2006-11-14 Eric Blake <ebb9@byu.net>
3202 * modules/tempname (License): Change to LGPL.
3204 2006-11-14 Eric Blake <ebb9@byu.net>
3206 * doc/functions.texi (Function Portability): *printf functions on
3207 Cygwin now understand all POSIX size specifiers.
3209 2006-11-14 Bruno Haible <bruno@clisp.org>
3211 * modules/c-ctype (License): Change to LGPL.
3213 2006-11-12 Bruno Haible <bruno@clisp.org>
3215 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3216 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
3217 for GNOME libraries, for which the include files are installed in
3218 subdirectories of $prefix/include.
3220 2006-11-12 Bruno Haible <bruno@clisp.org>
3222 * m4/lib-link.m4: Require at least autoconf-2.54.
3223 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
3224 name to underscores for the --with option.
3226 2006-11-13 Bruno Haible <bruno@clisp.org>
3228 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
3229 the tests directory.
3230 Reported by Ralf Wildenhues.
3232 2006-11-13 Bruno Haible <bruno@clisp.org>
3234 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
3235 (func_emit_initmacro_end): Undo the override here.
3236 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
3237 Works around the famous automake error in coreutils.
3239 2006-11-13 Eric Blake <ebb9@byu.net>
3241 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
3242 element, not its node.
3244 2006-11-12 Bruno Haible <bruno@clisp.org>
3246 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
3247 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
3249 2006-11-12 Bruno Haible <bruno@clisp.org>
3251 * gnulib-tool: New option --local-symlink.
3252 (func_usage): Document it.
3253 (lsymbolic): New variable.
3254 (func_import, func_create_testdir): If --symlink was not specified,
3255 test whether --local-symlink was specified and the file comes from
3256 the local_gnulib_dir.
3258 2006-11-12 Bruno Haible <bruno@clisp.org>
3260 * gnulib-tool (func_ln): New function.
3261 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
3263 2006-11-12 Bruno Haible <bruno@clisp.org>
3265 Finish support for source files in subdirectories.
3266 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
3267 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
3269 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
3271 2006-11-12 Bruno Haible <bruno@clisp.org>
3273 * gnulib-tool (func_get_automake_snippet): Synthesize also an
3274 EXTRA_lib_SOURCES augmentation.
3275 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
3277 2006-11-12 Jim Meyering <jim@meyering.net>
3279 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
3280 file descriptors. This also averts a failure on systems with
3281 native openat support when a traversed directory lacks "x" access.
3282 * lib/fts_.h: Include "i-ring.h"
3283 (struct FTS) [fts_fd_ring]: New member.
3284 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
3285 (FCHDIR): Add parentheses.
3286 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
3287 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
3288 When descending, rather than simply closing the previous
3289 fts_cwd_fd value, push that file descriptor onto the ring.
3290 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
3291 (fts_open): Initialize the new fd_ring member.
3292 (fts_close): Clear the ring.
3293 (fts_safe_changedir): When possible, use our new fd_ring to skip
3294 the diropen and fstat and dev/ino comparison that would normally
3295 accompany a virtual `chdir ("..")'.
3297 * modules/fts (Depends-on): Add i-ring.
3298 * modules/i-ring: New module.
3299 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
3300 * m4/i-ring.m4: New file.
3302 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3304 * gnulib-tool (func_create_testdir): Fix replacement of
3305 `build-aux' in configure.ac. Run autotools in gltests
3307 (func_create_testdir, func_create_megatestdir, test): There is
3308 no need for '--force' in most autotool invocations in a new
3309 tree. Actually fail the whole test if any of the tools, or the
3310 configure or make stages fail.
3313 * build-aux/gnupload: Revert last change. Add pointer to upload
3314 instructions of the GNU Maintenance Instructions.
3315 Suggestion by Karl Berry.
3317 2006-11-10 Jim Meyering <jim@meyering.net>
3319 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
3321 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
3323 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
3324 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
3325 (bind_textdomain_codeset) [! ENABLE_NLS]:
3326 Evaluate all the arguments. That way, callers get compatible behavior
3327 if the arguments have side effects. Also, it avoids some GCC
3328 diagnostics in some cases; Joel E. Denny reported problems when Bison
3329 was configured with --enable-gcc-warnigs.
3331 2006-11-10 Jim Meyering <jim@meyering.net>
3333 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
3334 relevant options in CFLAGS (like -O, -fno-inline) are taken into
3337 2006-11-10 Jim Meyering <jim@meyering.net>
3339 * modules/inline: New file/module.
3340 * modules/xalloc (Files): Remove m4/inline.m4.
3341 (Depends-on): Add inline, instead.
3342 * modules/oset: Likewise.
3343 * modules/list: Likewise.
3345 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
3347 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
3348 Problem reported by Matthew Woehlke.
3350 2006-11-09 Bruno Haible <bruno@clisp.org>
3352 * lib/tempname.c (gen_tempname): Remove variant that invokes
3354 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
3357 2006-11-08 Bruno Haible <bruno@clisp.org>
3359 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
3360 to 'yes' instead of 'cross-compiling'.
3362 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
3364 * lib/quotearg.h (quotearg_free): New decl.
3365 * lib/quotearg.c (quotearg_free): New function.
3366 (slot0, nslots, slotvec0, slotvec):
3367 Now file-scope so that quotearg_free can get at them.
3369 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3372 * build-aux/gnupload: Add missing 'gnu' to example URL.
3373 Report by Karl Berry.
3375 2006-11-08 Bruno Haible <bruno@clisp.org>
3377 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
3378 Suggested by Paul Eggert.
3380 2006-11-08 Jim Meyering <jim@meyering.net>
3382 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
3383 It's already included if !_LIBC.
3384 (fts_safe_changedir): Add a comment.
3386 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
3388 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
3389 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
3392 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
3393 definitions up, to avoid colliding with change below.
3394 (static_inline) [HAVE_INLINE]: New macro.
3395 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
3396 Provide extern decls when !HAVE_INLINE. Do not define unless
3397 static_inline is defined, either by us or by xmalloc.c. Use
3398 static_inline rather than static inline.
3399 (XCALLOC): Optimize sizeof(T) = 1 case.
3400 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
3402 2006-11-07 Bruno Haible <bruno@clisp.org>
3404 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
3405 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
3407 * modules/xalloc (Files): Add m4/inline.m4.
3409 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3412 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
3413 (Miscellanous Notes): ...from this.
3415 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
3417 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3418 Mention that offsetof should be used instead of sizeof.
3421 2006-11-07 Bruno Haible <bruno@clisp.org>
3423 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
3425 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
3427 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
3428 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
3429 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
3430 (gl_tree_add_before, gl_tree_add_after):
3431 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
3432 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
3433 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
3434 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
3435 (gl_linked_add_after, gl_linked_add_at): Likewise.
3436 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
3437 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
3438 (gl_tree_add_before, gl_tree_add_after): Likewise.
3439 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
3440 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
3441 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3443 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3445 * lib/gl_oset.h: Use C comment style, not C++ comment style.
3447 2006-11-06 Bruno Haible <bruno@clisp.org>
3449 * m4/inline.m4: New file.
3450 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
3451 * modules/list (Files): Add m4/inline.m4.
3452 * modules/oset (Files): Likewise.
3454 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
3456 * lib/idcache.c: Include <stddef.h>, for offsetof.
3457 (struct userid.name): Change from char * to a flexible array member.
3459 * modules/idcache (Depends-on): Add flexmember.
3461 * MODULES.html.sh (Core language properties): New module flexmember.
3462 * modules/flexmember, m4/flexmember.m4: New files.
3464 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
3465 inline functions that are identical with the old xnmalloc_inline,
3466 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
3467 that we can avoid some unnecessary integer multiplications and
3468 divisions in the common case where the element size is known at
3470 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
3472 (xnboundedmalloc): Remove.
3473 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
3474 arguments, for consistency with rest of this header.
3475 (xcharalloc): Rewrite using XNMALLOC.
3476 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
3477 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
3478 versions have been moved to lib/xalloc.h and renamed to be the
3479 non-*_inline versions.
3480 (xmalloc, xrealloc): Implement without reference to the xnmalloc
3481 and xnrealloc functions, since those functions are now inline and
3483 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
3484 renaming described above.
3485 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
3486 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
3487 captures the dependency in AC_C_INLINE.
3489 New module canonicalize-lgpl, proposed by Charles Wilson in
3490 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
3491 with a few small changes afterwards.
3492 * MODULES.html.sh (File system functions): New module
3494 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
3495 and canonicalize_file_name.
3496 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
3497 * modules/canonicalize-lgpl: New files.
3499 2006-11-05 Bruno Haible <bruno@clisp.org>
3501 * gnulib-tool (func_import, func_create_testdir): Create directories
3502 also for files in subdirectories of lib/.
3504 2006-11-05 Bruno Haible <bruno@clisp.org>
3506 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
3509 2006-11-03 Bruno Haible <bruno@clisp.org>
3511 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
3512 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
3513 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
3514 (xnboundedmalloc): New inline function.
3515 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
3516 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
3518 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
3520 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
3521 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
3522 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
3524 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
3525 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
3527 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
3528 gl_tree_add_after): Use XMALLOC instead of xmalloc.
3529 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
3531 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
3532 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
3533 gl_tree_add_after): Use XMALLOC instead of xmalloc.
3534 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
3535 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
3536 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
3537 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
3539 2006-11-03 Bruno Haible <bruno@clisp.org>
3541 * lib/c-ctype.h [C++]: Define functions without name mangling.
3542 * lib/fwriteerror.h [C++]: Likewise.
3543 * lib/gcd.h [C++]: Likewise.
3544 * lib/linebreak.h [C++]: Likewise.
3546 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
3548 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
3549 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
3550 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
3551 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
3552 Check for functions and headers just once.
3553 Check for declaration of canonicalize_file_name.
3554 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
3556 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
3558 * gnulib-tool (func_import): Fix typo in actioncmd.
3560 2006-11-02 Bruno Haible <bruno@clisp.org>
3562 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
3563 newline sequence in the Makefile.am snippet as a space, like "make"
3565 Reported by Roger Persson <perrog@gmail.com>.
3567 2006-11-01 Bruno Haible <bruno@clisp.org>
3569 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
3570 already declared in <string.h>.
3571 * lib/strcase.h (strncasecmp): Don't declare it if yes.
3573 2006-11-01 Bruno Haible <bruno@clisp.org>
3575 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
3576 * lib/strcase.h: Include <string.h>.
3577 (strcasecmp): Define to rpl_strcasecmp here.
3579 2006-11-01 Bruno Haible <bruno@clisp.org>
3581 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
3583 2006-11-01 Eric Blake <ebb9@byu.net>
3585 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
3587 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
3589 2006-10-29 Bruno Haible <bruno@clisp.org>
3591 Make it compile in C++ mode.
3592 * lib/full-write.c (full_rw): Add a cast.
3594 2006-11-01 Bruno Haible <bruno@clisp.org>
3596 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
3598 Reported by Roger Persson <perrog@gmail.com>.
3600 2006-11-01 Eric Blake <ebb9@byu.net>
3602 * lib/getopt_.h: Fix comments.
3604 2006-10-31 Eric Blake <ebb9@byu.net>
3606 * modules/tmpdir (Depends-on): Add sys_stat.
3607 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
3608 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
3609 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
3610 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
3613 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
3615 Avoid some C++ diagnostics reported by Bruno Haible.
3616 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
3618 (quotearg_alloc): Use xcharalloc rather than xmalloc.
3619 (struct slotvec): Move to top level.
3620 (quotearg_n_options): Rewrite to avoid xmalloc.
3621 * lib/xalloc.h (xcharalloc): New function.
3622 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
3623 [defined __cplusplus]: Add function template that provides result
3624 type propagation. This part of the change is from Bruno Haible.
3626 2006-10-29 Bruno Haible <bruno@clisp.org>
3628 Make it compile in C++ mode.
3629 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
3630 * lib/strnlen1.c (strnlen1): Cast memchr result.
3631 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
3632 * lib/clean-temp.c (string_equals, string_hash): Add casts.
3633 (create_temp_dir): Rename local variable 'template'.
3634 (compile_csharp_using_sscli): Add cast.
3635 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
3636 * lib/findprog.c (find_in_path): Likewise.
3637 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
3638 * lib/wait-process.c (register_slave_subprocess): Likewise.
3640 2006-10-22 Bruno Haible <bruno@clisp.org>
3642 * modules/tsearch: New file.
3643 * lib/tsearch.h: New file.
3644 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
3645 * m4/tsearch.m4: New file.
3646 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
3648 2006-10-29 Eric Blake <ebb9@byu.net>
3650 * lib/arcfour.c: Assume config.h.
3651 * lib/arctwo.c: Likewise.
3652 * lib/base64.c: Likewise.
3653 * lib/check-version.c: Likewise.
3654 * lib/crc.c: Likewise.
3655 * lib/des.c: Likewise.
3656 * lib/gc-gnulib.c: Likewise.
3657 * lib/gc-libgcrypt.c: Likewise.
3658 * lib/gc-pbkdf2-sha1.c: Likewise.
3659 * lib/getaddrinfo.c: Likewise.
3660 * lib/getdelim.c: Likewise.
3661 * lib/getline.c: Likewise.
3662 * lib/hmac-md5.c: Likewise.
3663 * lib/hmac-sha1.c: Likewise.
3664 * lib/iconvme.c: Likewise.
3665 * lib/md2.c: Likewise.
3666 * lib/md4.c: Likewise.
3667 * lib/memxor.c: Likewise.
3668 * lib/read-file.c: Likewise.
3669 * lib/readline.c: Likewise.
3670 * lib/rijndael-alg-fst.c: Likewise.
3671 * lib/rijndael-api-fst.c: Likewise.
3672 * lib/xgetdomainname.c: Likewise.
3674 2006-10-28 Eric Blake <ebb9@byu.net>
3676 * lib/xstrndup.c: Assume config.h.
3678 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
3680 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
3681 stat-macros.h is now for our own macros, whereas stat_h is for
3682 macros in the <sys/stat.h> name space.
3683 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
3684 (STAT_MACROS_H): Remove.
3685 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
3686 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
3687 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
3688 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
3689 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
3690 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
3691 Move these macros to ...
3692 * lib/stat_.h: here. Don't include stat-macros.h.
3693 * lib/canonicalize.c: Don't include stat-macros.h.
3694 * lib/chown.c: Likewise.
3695 * lib/euidaccess.c: Likewise.
3696 * lib/file-type.c: Likewise.
3697 * lib/filemode.c: Likewise.
3698 * lib/glob.c: Likewise.
3699 * lib/isapipe.c: Likewise.
3700 * lib/lchown.c: Likewise.
3701 * lib/lstat.c: Likewise.
3702 * lib/mkdir-p.c: Likewise.
3703 * lib/rmdir.c: Likewise.
3704 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
3705 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
3706 unless mkdir isn't declared, to speed up 'configure'.
3707 Always create sys/stat.h, since it's unlikely any real sys/stat.h
3708 would define all the S_* symbols.
3709 * modules/canonicalize (Depends-on):
3710 Depend on sys_stat, not stat-macros.
3711 * modules/chown: Likewise.
3712 * modules/euidaccess: Likewise.
3713 * modules/filemode: Likewise.
3714 * modules/file-type: Likewise.
3715 * modules/glob: Likewise.
3716 * modules/isapipe: Likewise.
3717 * modules/lchown: Likewise.
3718 * modules/lstat: Likewise.
3719 * modules/mkancesdirs: Likewise.
3720 * modules/rmdir: Likewise.
3721 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
3722 * modules/modechange: Likewise.
3723 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
3724 (configure.ac): Remove gl_STAT_MACROS.
3725 * modules/sys_stat (Depends-on): Remove stat-macros.
3727 2006-10-27 Bruno Haible <bruno@clisp.org>
3729 * m4/signed.m4: Remove file.
3730 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
3732 * modules/vasnprintf (Files): Remove m4/signed.m4.
3734 2006-10-27 Bruno Haible <bruno@clisp.org>
3736 Update to GNU gettext 0.16.
3737 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
3738 m4/inttypes-h.m4, m4/signed.m4.
3739 * m4/gettext.m4: Update to GNU gettext 0.16.
3740 * m4/intl.m4: New file, from GNU gettext.
3741 * m4/intldir.m4: New file, from GNU gettext.
3742 * config/srclist.txt: Update
3744 2006-10-27 Eric Blake <ebb9@byu.net>
3746 * MODULES.html.sh: Document tempname.
3747 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
3749 (Files): Move lib/tempname.c...
3750 * modules/tempname: ...to this new module.
3751 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
3752 (gl_PREREQ_TEMPNAME): Move...
3753 * m4/tempname.m4: ...to this new file.
3754 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
3755 * modules/sys_stat (Depends-on): Add stat-macros.
3756 * lib/stat_.h (includes): Pick up stat macros.
3757 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
3758 if stat macros are broken.
3759 * lib/tempname.c (includes): No need to include "stat-macros.h".
3760 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
3761 (direxists, __path_search) [!_LIBC]: Don't compile these in
3762 gnulib; the tmpdir module covers that.
3763 * lib/tempname.h: New file.
3765 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
3767 * COPYING: Explain how gnulib-tool converts licence headers.
3768 Almost all wording by Eric Blake.
3770 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
3772 * lib/mbchar.h (is_basic_table): Make read-only.
3773 * lib/mbchar.c (is_basic_table): Likewise.
3774 Reported by John Darrington.
3776 2006-10-25 Bruno Haible <bruno@clisp.org>
3778 * lib/progname.h (set_program_name): Undefine before defining.
3780 2006-10-25 Bruno Haible <bruno@clisp.org>
3782 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
3783 false for non-gcc C++ compilers.
3784 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3786 2006-10-24 Bruno Haible <bruno@clisp.org>
3788 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
3789 iconv implementations like Irix iconv.
3791 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
3793 * modules/vararrays: New file.
3794 * m4/vararrays.m4: New file, taken from diffutils.
3795 * MODULES.html.sh: New module vararrays.
3797 2006-10-24 Karl Berry <karl@gnu.org>
3799 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
3800 Don't call GNU Unix.
3802 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3804 * users.txt: Add Libtool.
3808 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
3810 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
3811 to gnulib's policy of including config.h unconditionally.
3813 2006-10-24 Bruno Haible <bruno@clisp.org>
3815 * modules/wcwidth (Files): Add m4/wint_t.m4.
3816 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
3817 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
3819 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
3821 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
3822 to pacify GCC with some -W flags enabled. Problem reported by
3825 2006-10-24 Jim Meyering <jim@meyering.net>
3827 * MODULES.html.sh: Remove uinttostr. It's not a module.
3828 Reported by Karl Berry.
3830 2006-10-23 Bruno Haible <bruno@clisp.org>
3832 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
3834 2006-10-24 Bruno Haible <bruno@clisp.org>
3836 * lib/gl_list.h: Use C comment style, not C++ comment style.
3838 2006-10-23 Eric Blake <ebb9@byu.net>
3840 * lib/getaddrinfo.c (includes): Add missing include.
3842 2006-10-23 Bruno Haible <bruno@clisp.org>
3843 Paul Eggert <eggert@cs.ucla.edu>
3845 Ability to rename obstack_free.
3846 * lib/obstack.h (__obstack_free): New macro. Declare instead of
3848 (obstack_free): Invoke the __obstack_free macro.
3849 * lib/obstack.c (obstack_free): Use __obstack_free macro.
3851 2006-10-23 Bruno Haible <bruno@clisp.org>
3852 Paul Eggert <eggert@cs.ucla.edu>
3854 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
3855 __argc, __argv from the declaration. (They are defined as macros on
3858 2006-10-22 Bruno Haible <bruno@clisp.org>
3860 * doc/gnulib-intro.texi: New file.
3861 * doc/gnulib.texi: Include it.
3863 2006-10-21 Bruno Haible <bruno@clisp.org>
3865 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
3866 "Introduction", "Miscellanous Notes", "Particular Modules".
3868 2006-10-21 Bruno Haible <bruno@clisp.org>
3870 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3871 Change mostlyclean-local rule to avoid sh syntax error from bash
3872 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
3874 2006-10-23 Jim Meyering <jim@meyering.net>
3876 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
3877 in place of snprintf.
3879 * modules/inttostr (Files): Add lib/uinttostr.c.
3880 * lib/uinttostr.c (inttostr): New file/function.
3881 * lib/inttostr.h (uinttostr): Declare.
3882 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
3883 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
3885 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
3887 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
3889 * lib/canonicalize.c (ELOOP): Define if not already defined.
3890 Problem reported by Bruno Haible in
3891 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
3893 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
3895 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
3896 Problem reported by Perry Smith and Ville Laurikari.
3898 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
3901 2006-10-19 Bruno Haible <bruno@clisp.org>
3903 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
3906 2006-10-19 Bruno Haible <bruno@clisp.org>
3908 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
3911 2006-10-19 Bruno Haible <bruno@clisp.org>
3913 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
3915 2006-10-19 Bruno Haible <bruno@clisp.org>
3917 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
3920 2006-10-19 Bruno Haible <bruno@clisp.org>
3922 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
3925 2006-10-19 Bruno Haible <bruno@clisp.org>
3927 * gnulib-tool (func_create_testdir): Don't include ftruncate and
3928 mountlist by default.
3930 2006-10-16 Bruno Haible <bruno@clisp.org>
3932 * lib/c-strstr.c: Include c-strstr.h.
3934 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
3936 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
3939 2006-10-18 Bruno Haible <bruno@clisp.org>
3941 * lib/lock.h [C++]: Wrap definitions in extern "C".
3943 2006-10-18 Bruno Haible <bruno@clisp.org>
3945 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
3948 2006-10-18 Bruno Haible <bruno@clisp.org>
3950 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
3952 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
3954 * lib/xstrtol.h: Include gettext.h.
3955 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
3956 Problem reported by Eric Blake.
3957 * modules/xstrtol (Depends-on): Add gettext-h.
3959 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
3961 * lib/strftime.c (advance): New macro.
3962 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
3963 incomplete type, so you can't add 0 to it. Problem and patch
3964 reported by Eelco Dolstra for dietlibc.
3966 2006-10-18 Jim Meyering <jim@meyering.net>
3968 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
3969 type for a local, and rename it: s/up/user_proc/.
3971 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
3973 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
3974 READ_UTMP_USER_PROCESS.
3975 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
3977 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
3979 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
3980 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
3982 2006-10-17 Eric Blake <ebb9@byu.net>
3984 * lib/sigprocmask.c (sigprocmask): Fix typo.
3986 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
3988 * modules/clean-temp (Makefile.am): Don't add to make output...
3989 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
3992 2006-10-17 Bruno Haible <bruno@clisp.org>
3994 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
3995 differently if DEFAULT_TEXT_DOMAIN is set.
3997 2006-10-16 Bruno Haible <bruno@clisp.org>
3999 * lib/clean-temp.c: Include fwriteerror.h.
4001 2006-10-16 Bruno Haible <bruno@clisp.org>
4003 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
4005 2006-10-16 Bruno Haible <bruno@clisp.org>
4007 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
4008 * lib/sigprocmask.h: Include <sys/types.h>.
4009 (sigset_t): Use the system's definition if present.
4011 2006-10-17 Eric Blake <ebb9@byu.net>
4013 * lib/xvasprintf.c (includes): Assume config.h.
4014 * lib/xasprintf.c (includes): Likewise.
4016 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
4018 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
4019 at least as wide as intmax_t.
4021 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
4023 (Imported from Automake.)
4024 * build-aux/gnupload: Update to version 1.1 of directive file.
4026 2006-10-16 Eric Blake <ebb9@byu.net>
4028 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
4029 match Automake 1.10a.
4031 2006-10-14 Bruno Haible <bruno@clisp.org>
4033 * modules/sigprocmask: New file.
4034 * lib/sigprocmask.h: New file.
4035 * lib/sigprocmask.c: New file.
4036 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
4037 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
4038 request sigprocmask.o.
4039 (gl_PREREQ_SIGPROCMASK): New macro.
4040 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
4041 (Depends-on): Add sigprocmask.
4042 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
4043 gt_SIGNALBLOCKING. Test for 'raise' only once.
4044 * lib/fatal-signal.c: Include sigprocmask.h.
4045 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
4046 unblock_fatal_signals): Define always.
4047 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4050 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
4053 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
4054 which incorrectly sets the mode of an existing destination
4055 directory. In some cases the unpatched install-sh could do the
4056 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
4057 system. We hope this is rare in practice, but it's clearly worth
4058 fixing. Problem reported by Alex Unleashed in
4059 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
4060 Also, don't bother to check for -m bugs unless we're using -m;
4061 suggested by Stepan Kasal.
4063 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4066 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
4067 `-c' flag, so they appear at the same position as in %FASTDEP%
4068 mode in depend2.am. Fixes build failure for FreeBSD's c89,
4069 which ignores unknown options only after the first non-option.
4070 Bug report against M4 by Nelson H. F. Beebe.
4072 2006-10-13 Jim Meyering <jim@meyering.net>
4074 Fix a bug in yesterday's change.
4075 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
4076 p->fts_statp->st_dev would be used uninitialized.
4077 Ensures that we always call fts_stat on the very first entry.
4078 Miklos Szeredi reported that find -xdev stopped working.
4080 2006-10-12 Bruno Haible <bruno@clisp.org>
4082 * gnulib-tool (func_get_automake_snippet): Append an automatically
4083 computed EXTRA_DIST augmentation.
4084 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
4085 * modules/alloca-opt (Makefile.am): Likewise.
4086 * modules/allocsa (Makefile.am): Likewise.
4087 * modules/arcfour (Makefile.am): Likewise.
4088 * modules/arctwo (Makefile.am): Likewise.
4089 * modules/argmatch (Makefile.am): Likewise.
4090 * modules/argz (Makefile.am): Likewise.
4091 * modules/atexit (Makefile.am): Likewise.
4092 * modules/backupfile (Makefile.am): Likewise.
4093 * modules/byteswap (Makefile.am): Likewise.
4094 * modules/c-strtod (Makefile.am): Likewise.
4095 * modules/c-strtold (Makefile.am): Likewise.
4096 * modules/calloc (Makefile.am): Likewise.
4097 * modules/canon-host (Makefile.am): Likewise.
4098 * modules/canonicalize (Makefile.am): Likewise.
4099 * modules/chdir-long (Makefile.am): Likewise.
4100 * modules/chdir-safer (Makefile.am): Likewise.
4101 * modules/check-version (Makefile.am): Likewise.
4102 * modules/chown (Makefile.am): Likewise.
4103 * modules/cloexec (Makefile.am): Likewise.
4104 * modules/close-stream (Makefile.am): Likewise.
4105 * modules/closeout (Makefile.am): Likewise.
4106 * modules/crc (Makefile.am): Likewise.
4107 * modules/csharpexec (Makefile.am): Likewise.
4108 * modules/cycle-check (Makefile.am): Likewise.
4109 * modules/des (Makefile.am): Likewise.
4110 * modules/dev-ino (Makefile.am): Likewise.
4111 * modules/dirfd (Makefile.am): Likewise.
4112 * modules/dirname (Makefile.am): Likewise.
4113 * modules/dup2 (Makefile.am): Likewise.
4114 * modules/eealloc (Makefile.am): Likewise.
4115 * modules/error (Makefile.am): Likewise.
4116 * modules/euidaccess (Makefile.am): Likewise.
4117 * modules/exclude (Makefile.am): Likewise.
4118 * modules/exitfail (Makefile.am): Likewise.
4119 * modules/fcntl-safer (Makefile.am): Likewise.
4120 * modules/fcntl (Makefile.am): Likewise.
4121 * modules/file-type (Makefile.am): Likewise.
4122 * modules/fileblocks (Makefile.am): Likewise.
4123 * modules/filemode (Makefile.am): Likewise.
4124 * modules/filenamecat (Makefile.am): Likewise.
4125 * modules/fnmatch (Makefile.am): Likewise.
4126 * modules/fopen-safer (Makefile.am): Likewise.
4127 * modules/fpending (Makefile.am): Likewise.
4128 * modules/fprintftime (Makefile.am): Likewise.
4129 * modules/free (Makefile.am): Likewise.
4130 * modules/fsusage (Makefile.am): Likewise.
4131 * modules/ftruncate (Makefile.am): Likewise.
4132 * modules/fts (Makefile.am): Likewise.
4133 * modules/gc-arcfour (Makefile.am): Likewise.
4134 * modules/gc-des (Makefile.am): Likewise.
4135 * modules/gc-hmac-md5 (Makefile.am): Likewise.
4136 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
4137 * modules/gc-md4 (Makefile.am): Likewise.
4138 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
4139 * modules/gc-sha1 (Makefile.am): Likewise.
4140 * modules/gc (Makefile.am): Likewise.
4141 * modules/getaddrinfo (Makefile.am): Likewise.
4142 * modules/getcwd (Makefile.am): Likewise.
4143 * modules/getdelim (Makefile.am): Likewise.
4144 * modules/getdomainname (Makefile.am): Likewise.
4145 * modules/getgroups (Makefile.am): Likewise.
4146 * modules/gethostname (Makefile.am): Likewise.
4147 * modules/gethrxtime (Makefile.am): Likewise.
4148 * modules/getline (Makefile.am): Likewise.
4149 * modules/getloadavg (Makefile.am): Likewise.
4150 * modules/getlogin_r (Makefile.am): Likewise.
4151 * modules/getndelim2 (Makefile.am): Likewise.
4152 * modules/getopt (Makefile.am): Likewise.
4153 * modules/getpagesize (Makefile.am): Likewise.
4154 * modules/getpass-gnu (Makefile.am): Likewise.
4155 * modules/getpass (Makefile.am): Likewise.
4156 * modules/getsubopt (Makefile.am): Likewise.
4157 * modules/gettime (Makefile.am): Likewise.
4158 * modules/gettimeofday (Makefile.am): Likewise.
4159 * modules/getugroups (Makefile.am): Likewise.
4160 * modules/getusershell (Makefile.am): Likewise.
4161 * modules/glob (Makefile.am): Likewise.
4162 * modules/group-member (Makefile.am): Likewise.
4163 * modules/hard-locale (Makefile.am): Likewise.
4164 * modules/hash (Makefile.am): Likewise.
4165 * modules/hmac-md5 (Makefile.am): Likewise.
4166 * modules/hmac-sha1 (Makefile.am): Likewise.
4167 * modules/human (Makefile.am): Likewise.
4168 * modules/idcache (Makefile.am): Likewise.
4169 * modules/imaxabs (Makefile.am): Likewise.
4170 * modules/imaxdiv (Makefile.am): Likewise.
4171 * modules/inet_ntop (Makefile.am): Likewise.
4172 * modules/inet_pton (Makefile.am): Likewise.
4173 * modules/intprops (Makefile.am): Likewise.
4174 * modules/inttostr (Makefile.am): Likewise.
4175 * modules/inttypes (Makefile.am): Likewise.
4176 * modules/isapipe (Makefile.am): Likewise.
4177 * modules/javaversion (Makefile.am): Likewise.
4178 * modules/lchmod (Makefile.am): Likewise.
4179 * modules/lchown (Makefile.am): Likewise.
4180 * modules/localcharset (Makefile.am): Likewise.
4181 * modules/long-options (Makefile.am): Likewise.
4182 * modules/lstat (Makefile.am): Likewise.
4183 * modules/malloc (Makefile.am): Likewise.
4184 * modules/mathl (Makefile.am): Likewise.
4185 * modules/mbchar (Makefile.am): Likewise.
4186 * modules/md2 (Makefile.am): Likewise.
4187 * modules/md4 (Makefile.am): Likewise.
4188 * modules/md5 (Makefile.am): Likewise.
4189 * modules/memcasecmp (Makefile.am): Likewise.
4190 * modules/memchr (Makefile.am): Likewise.
4191 * modules/memcmp (Makefile.am): Likewise.
4192 * modules/memcoll (Makefile.am): Likewise.
4193 * modules/memcpy (Makefile.am): Likewise.
4194 * modules/memmem (Makefile.am): Likewise.
4195 * modules/memmove (Makefile.am): Likewise.
4196 * modules/mempcpy (Makefile.am): Likewise.
4197 * modules/memrchr (Makefile.am): Likewise.
4198 * modules/memset (Makefile.am): Likewise.
4199 * modules/memxor (Makefile.am): Likewise.
4200 * modules/mkancesdirs (Makefile.am): Likewise.
4201 * modules/mkdir-p (Makefile.am): Likewise.
4202 * modules/mkdir (Makefile.am): Likewise.
4203 * modules/mkdtemp (Makefile.am): Likewise.
4204 * modules/mkstemp (Makefile.am): Likewise.
4205 * modules/mktime (Makefile.am): Likewise.
4206 * modules/modechange (Makefile.am): Likewise.
4207 * modules/mountlist (Makefile.am): Likewise.
4208 * modules/nanosleep (Makefile.am): Likewise.
4209 * modules/obstack (Makefile.am): Likewise.
4210 * modules/openat (Makefile.am): Likewise.
4211 * modules/pagealign_alloc (Makefile.am): Likewise.
4212 * modules/pathmax (Makefile.am): Likewise.
4213 * modules/physmem (Makefile.am): Likewise.
4214 * modules/poll (Makefile.am): Likewise.
4215 * modules/posixtm (Makefile.am): Likewise.
4216 * modules/posixver (Makefile.am): Likewise.
4217 * modules/putenv (Makefile.am): Likewise.
4218 * modules/quote (Makefile.am): Likewise.
4219 * modules/quotearg (Makefile.am): Likewise.
4220 * modules/raise (Makefile.am): Likewise.
4221 * modules/read-file (Makefile.am): Likewise.
4222 * modules/readline (Makefile.am): Likewise.
4223 * modules/readlink (Makefile.am): Likewise.
4224 * modules/readtokens (Makefile.am): Likewise.
4225 * modules/readutmp (Makefile.am): Likewise.
4226 * modules/realloc (Makefile.am): Likewise.
4227 * modules/regex (Makefile.am): Likewise.
4228 * modules/rename-dest-slash (Makefile.am): Likewise.
4229 * modules/rename (Makefile.am): Likewise.
4230 * modules/rijndael (Makefile.am): Likewise.
4231 * modules/rmdir (Makefile.am): Likewise.
4232 * modules/rpmatch (Makefile.am): Likewise.
4233 * modules/safe-read (Makefile.am): Likewise.
4234 * modules/safe-write (Makefile.am): Likewise.
4235 * modules/same-inode (Makefile.am): Likewise.
4236 * modules/same (Makefile.am): Likewise.
4237 * modules/save-cwd (Makefile.am): Likewise.
4238 * modules/savedir (Makefile.am): Likewise.
4239 * modules/setenv (Makefile.am): Likewise.
4240 * modules/settime (Makefile.am): Likewise.
4241 * modules/sha1 (Makefile.am): Likewise.
4242 * modules/sig2str (Makefile.am): Likewise.
4243 * modules/snprintf (Makefile.am): Likewise.
4244 * modules/stat-macros (Makefile.am): Likewise.
4245 * modules/stat-time (Makefile.am): Likewise.
4246 * modules/stdbool (Makefile.am): Likewise.
4247 * modules/stdint (Makefile.am): Likewise.
4248 * modules/stdlib-safer (Makefile.am): Likewise.
4249 * modules/stpcpy (Makefile.am): Likewise.
4250 * modules/stpncpy (Makefile.am): Likewise.
4251 * modules/strcase (Makefile.am): Likewise.
4252 * modules/strcasestr (Makefile.am): Likewise.
4253 * modules/strchrnul (Makefile.am): Likewise.
4254 * modules/strcspn (Makefile.am): Likewise.
4255 * modules/strdup (Makefile.am): Likewise.
4256 * modules/strerror (Makefile.am): Likewise.
4257 * modules/strftime (Makefile.am): Likewise.
4258 * modules/strndup (Makefile.am): Likewise.
4259 * modules/strnlen (Makefile.am): Likewise.
4260 * modules/strpbrk (Makefile.am): Likewise.
4261 * modules/strsep (Makefile.am): Likewise.
4262 * modules/strstr (Makefile.am): Likewise.
4263 * modules/strtod (Makefile.am): Likewise.
4264 * modules/strtoimax (Makefile.am): Likewise.
4265 * modules/strtok_r (Makefile.am): Likewise.
4266 * modules/strtol (Makefile.am): Likewise.
4267 * modules/strtoll (Makefile.am): Likewise.
4268 * modules/strtoul (Makefile.am): Likewise.
4269 * modules/strtoull (Makefile.am): Likewise.
4270 * modules/strtoumax (Makefile.am): Likewise.
4271 * modules/strverscmp (Makefile.am): Likewise.
4272 * modules/sys_socket (Makefile.am): Likewise.
4273 * modules/sys_stat (Makefile.am): Likewise.
4274 * modules/sysexits (Makefile.am): Likewise.
4275 * modules/time_r (Makefile.am): Likewise.
4276 * modules/timegm (Makefile.am): Likewise.
4277 * modules/timespec (Makefile.am): Likewise.
4278 * modules/tmpfile-safer (Makefile.am): Likewise.
4279 * modules/trim (Makefile.am): Likewise.
4280 * modules/unistd-safer (Makefile.am): Likewise.
4281 * modules/unlinkdir (Makefile.am): Likewise.
4282 * modules/unlocked-io (Makefile.am): Likewise.
4283 * modules/userspec (Makefile.am): Likewise.
4284 * modules/utime (Makefile.am): Likewise.
4285 * modules/utimecmp (Makefile.am): Likewise.
4286 * modules/utimens (Makefile.am): Likewise.
4287 * modules/vasnprintf (Makefile.am): Likewise.
4288 * modules/vasprintf (Makefile.am): Likewise.
4289 * modules/vsnprintf (Makefile.am): Likewise.
4290 * modules/xalloc (Makefile.am): Likewise.
4291 * modules/xgetcwd (Makefile.am): Likewise.
4292 * modules/xnanosleep (Makefile.am): Likewise.
4293 * modules/xreadlink (Makefile.am): Likewise.
4294 * modules/xstrtod (Makefile.am): Likewise.
4295 * modules/xstrtol (Makefile.am): Likewise.
4296 * modules/xstrtold (Makefile.am): Likewise.
4297 * modules/yesno (Makefile.am): Likewise.
4298 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
4300 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
4302 * modules/error (Makefile.am): Distribute files through
4303 EXTRA_DIST, not lib_SOURCES.
4305 2006-10-12 Eric Blake <ebb9@byu.net>
4307 * modules/error (Makefile.am): Distribute files in /lib.
4308 * modules/obstack (Makefile.am): Likewise.
4310 2006-10-12 Bruno Haible <bruno@clisp.org>
4312 * modules/acl (Makefile.am): Distribute all files in lib/ through
4314 * modules/arcfour (Makefile.am): Likewise.
4315 * modules/arctwo (Makefile.am): Likewise.
4316 * modules/argmatch (Makefile.am): Likewise.
4317 * modules/argz (Makefile.am): Likewise.
4318 * modules/atexit (Makefile.am): Likewise.
4319 * modules/backupfile (Makefile.am): Likewise.
4320 * modules/c-strtod (Makefile.am): Likewise.
4321 * modules/c-strtold (Makefile.am): Likewise.
4322 * modules/calloc (Makefile.am): Likewise.
4323 * modules/canon-host (Makefile.am): Likewise.
4324 * modules/canonicalize (Makefile.am): Likewise.
4325 * modules/chdir-long (Makefile.am): Likewise.
4326 * modules/chdir-safer (Makefile.am): Likewise.
4327 * modules/check-version (Makefile.am): Likewise.
4328 * modules/chown (Makefile.am): Likewise.
4329 * modules/cloexec (Makefile.am): Likewise.
4330 * modules/close-stream (Makefile.am): Likewise.
4331 * modules/closeout (Makefile.am): Likewise.
4332 * modules/crc (Makefile.am): Likewise.
4333 * modules/cycle-check (Makefile.am): Likewise.
4334 * modules/des (Makefile.am): Likewise.
4335 * modules/dirfd (Makefile.am): Likewise.
4336 * modules/dirname (Makefile.am): Likewise.
4337 * modules/dup2 (Makefile.am): Likewise.
4338 * modules/euidaccess (Makefile.am): Likewise.
4339 * modules/exclude (Makefile.am): Likewise.
4340 * modules/exitfail (Makefile.am): Likewise.
4341 * modules/fcntl-safer (Makefile.am): Likewise.
4342 * modules/file-type (Makefile.am): Likewise.
4343 * modules/fileblocks (Makefile.am): Likewise.
4344 * modules/filemode (Makefile.am): Likewise.
4345 * modules/filenamecat (Makefile.am): Likewise.
4346 * modules/fnmatch (Makefile.am): Likewise.
4347 * modules/fopen-safer (Makefile.am): Likewise.
4348 * modules/fpending (Makefile.am): Likewise.
4349 * modules/fprintftime (Makefile.am): Likewise.
4350 * modules/free (Makefile.am): Likewise.
4351 * modules/fsusage (Makefile.am): Likewise.
4352 * modules/ftruncate (Makefile.am): Likewise.
4353 * modules/fts (Makefile.am): Likewise.
4354 * modules/gc (Makefile.am): Likewise.
4355 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
4356 * modules/getaddrinfo (Makefile.am): Likewise.
4357 * modules/getcwd (Makefile.am): Likewise.
4358 * modules/getdelim (Makefile.am): Likewise.
4359 * modules/getdomainname (Makefile.am): Likewise.
4360 * modules/getgroups (Makefile.am): Likewise.
4361 * modules/gethostname (Makefile.am): Likewise.
4362 * modules/gethrxtime (Makefile.am): Likewise.
4363 * modules/getline (Makefile.am): Likewise.
4364 * modules/getloadavg (Makefile.am): Likewise.
4365 * modules/getlogin_r (Makefile.am): Likewise.
4366 * modules/getopt (Makefile.am): Likewise.
4367 * modules/getpass (Makefile.am): Likewise.
4368 * modules/getpass-gnu (Makefile.am): Likewise.
4369 * modules/getsubopt (Makefile.am): Likewise.
4370 * modules/gettime (Makefile.am): Likewise.
4371 * modules/gettimeofday (Makefile.am): Likewise.
4372 * modules/getugroups (Makefile.am): Likewise.
4373 * modules/getusershell (Makefile.am): Likewise.
4374 * modules/glob (Makefile.am): Likewise.
4375 * modules/group-member (Makefile.am): Likewise.
4376 * modules/hard-locale (Makefile.am): Likewise.
4377 * modules/hash (Makefile.am): Likewise.
4378 * modules/hmac-md5 (Makefile.am): Likewise.
4379 * modules/hmac-sha1 (Makefile.am): Likewise.
4380 * modules/human (Makefile.am): Likewise.
4381 * modules/idcache (Makefile.am): Likewise.
4382 * modules/imaxabs (Makefile.am): Likewise.
4383 * modules/imaxdiv (Makefile.am): Likewise.
4384 * modules/inet_ntop (Makefile.am): Likewise.
4385 * modules/inet_pton (Makefile.am): Likewise.
4386 * modules/inttostr (Makefile.am): Likewise.
4387 * modules/isapipe (Makefile.am): Likewise.
4388 * modules/lchown (Makefile.am): Likewise.
4389 * modules/long-options (Makefile.am): Likewise.
4390 * modules/lstat (Makefile.am): Likewise.
4391 * modules/malloc (Makefile.am): Likewise.
4392 * modules/mathl (Makefile.am): Likewise.
4393 * modules/mbchar (Makefile.am): Likewise.
4394 * modules/md2 (Makefile.am): Likewise.
4395 * modules/md4 (Makefile.am): Likewise.
4396 * modules/md5 (Makefile.am): Likewise.
4397 * modules/memcasecmp (Makefile.am): Likewise.
4398 * modules/memchr (Makefile.am): Likewise.
4399 * modules/memcmp (Makefile.am): Likewise.
4400 * modules/memcoll (Makefile.am): Likewise.
4401 * modules/memcpy (Makefile.am): Likewise.
4402 * modules/memmem (Makefile.am): Likewise.
4403 * modules/memmove (Makefile.am): Likewise.
4404 * modules/mempcpy (Makefile.am): Likewise.
4405 * modules/memrchr (Makefile.am): Likewise.
4406 * modules/memset (Makefile.am): Likewise.
4407 * modules/memxor (Makefile.am): Likewise.
4408 * modules/mkancesdirs (Makefile.am): Likewise.
4409 * modules/mkdir (Makefile.am): Likewise.
4410 * modules/mkdir-p (Makefile.am): Likewise.
4411 * modules/mkdtemp (Makefile.am): Likewise.
4412 * modules/mkstemp (Makefile.am): Likewise.
4413 * modules/mktime (Makefile.am): Likewise.
4414 * modules/modechange (Makefile.am): Likewise.
4415 * modules/mountlist (Makefile.am): Likewise.
4416 * modules/nanosleep (Makefile.am): Likewise.
4417 * modules/openat (Makefile.am): Likewise.
4418 * modules/pagealign_alloc (Makefile.am): Likewise.
4419 * modules/physmem (Makefile.am): Likewise.
4420 * modules/poll (Makefile.am): Likewise.
4421 * modules/posixtm (Makefile.am): Likewise.
4422 * modules/posixver (Makefile.am): Likewise.
4423 * modules/putenv (Makefile.am): Likewise.
4424 * modules/quote (Makefile.am): Likewise.
4425 * modules/quotearg (Makefile.am): Likewise.
4426 * modules/raise (Makefile.am): Likewise.
4427 * modules/read-file (Makefile.am): Likewise.
4428 * modules/readline (Makefile.am): Likewise.
4429 * modules/readlink (Makefile.am): Likewise.
4430 * modules/readtokens (Makefile.am): Likewise.
4431 * modules/readutmp (Makefile.am): Likewise.
4432 * modules/realloc (Makefile.am): Likewise.
4433 * modules/regex (Makefile.am): Likewise.
4434 * modules/rename (Makefile.am): Likewise.
4435 * modules/rename-dest-slash (Makefile.am): Likewise.
4436 * modules/rijndael (Makefile.am): Likewise.
4437 * modules/rmdir (Makefile.am): Likewise.
4438 * modules/rpmatch (Makefile.am): Likewise.
4439 * modules/safe-read (Makefile.am): Likewise.
4440 * modules/safe-write (Makefile.am): Likewise.
4441 * modules/same (Makefile.am): Likewise.
4442 * modules/save-cwd (Makefile.am): Likewise.
4443 * modules/savedir (Makefile.am): Likewise.
4444 * modules/setenv (Makefile.am): Likewise.
4445 * modules/settime (Makefile.am): Likewise.
4446 * modules/sha1 (Makefile.am): Likewise.
4447 * modules/sig2str (Makefile.am): Likewise.
4448 * modules/snprintf (Makefile.am): Likewise.
4449 * modules/stdlib-safer (Makefile.am): Likewise.
4450 * modules/stpcpy (Makefile.am): Likewise.
4451 * modules/stpncpy (Makefile.am): Likewise.
4452 * modules/strcase (Makefile.am): Likewise.
4453 * modules/strcasestr (Makefile.am): Likewise.
4454 * modules/strchrnul (Makefile.am): Likewise.
4455 * modules/strcspn (Makefile.am): Likewise.
4456 * modules/strdup (Makefile.am): Likewise.
4457 * modules/strerror (Makefile.am): Likewise.
4458 * modules/strftime (Makefile.am): Likewise.
4459 * modules/strndup (Makefile.am): Likewise.
4460 * modules/strnlen (Makefile.am): Likewise.
4461 * modules/strpbrk (Makefile.am): Likewise.
4462 * modules/strsep (Makefile.am): Likewise.
4463 * modules/strstr (Makefile.am): Likewise.
4464 * modules/strtod (Makefile.am): Likewise.
4465 * modules/strtoimax (Makefile.am): Likewise.
4466 * modules/strtok_r (Makefile.am): Likewise.
4467 * modules/strtol (Makefile.am): Likewise.
4468 * modules/strtoll (Makefile.am): Likewise.
4469 * modules/strtoul (Makefile.am): Likewise.
4470 * modules/strtoull (Makefile.am): Likewise.
4471 * modules/strtoumax (Makefile.am): Likewise.
4472 * modules/strverscmp (Makefile.am): Likewise.
4473 * modules/time_r (Makefile.am): Likewise.
4474 * modules/timegm (Makefile.am): Likewise.
4475 * modules/tmpfile-safer (Makefile.am): Likewise.
4476 * modules/unistd-safer (Makefile.am): Likewise.
4477 * modules/unlinkdir (Makefile.am): Likewise.
4478 * modules/userspec (Makefile.am): Likewise.
4479 * modules/utime (Makefile.am): Likewise.
4480 * modules/utimecmp (Makefile.am): Likewise.
4481 * modules/utimens (Makefile.am): Likewise.
4482 * modules/vasnprintf (Makefile.am): Likewise.
4483 * modules/vasprintf (Makefile.am): Likewise.
4484 * modules/vsnprintf (Makefile.am): Likewise.
4485 * modules/xalloc (Makefile.am): Likewise.
4486 * modules/xgetcwd (Makefile.am): Likewise.
4487 * modules/xnanosleep (Makefile.am): Likewise.
4488 * modules/xreadlink (Makefile.am): Likewise.
4489 * modules/xstrtod (Makefile.am): Likewise.
4490 * modules/xstrtol (Makefile.am): Likewise.
4491 * modules/xstrtold (Makefile.am): Likewise.
4492 * modules/yesno (Makefile.am): Likewise.
4494 2006-10-12 Jim Meyering <jim@meyering.net>
4496 * m4/getloadavg.m4: Revert the change below.
4498 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
4499 lib/getloadavg.c using "ls -L", not "test -f". The latter would
4500 fail with a symlink, which is what coreutils' ./bootstrap now
4503 2006-10-12 Bruno Haible <bruno@clisp.org>
4505 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
4507 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
4508 MSVC and mingw explicitly.
4510 2006-10-11 Simon Josefsson <jas@extundo.com>
4511 Bruno Haible <bruno@clisp.org>
4513 Add support for multiple gnulib-tool invocations in the scope of a
4514 single configure.ac file.
4515 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
4516 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
4517 with the same contents as the _LIBADD variable.
4518 (func_emit_initmacro_start, func_emit_initmacro_end,
4519 func_emit_initmacro_done): New functions.
4520 (func_import, func_create_testdir): Invoke them. Allow the identifiers
4521 gl_LIBOBJS and gl_LTLIBOBJS.
4523 2006-10-11 Bruno Haible <bruno@clisp.org>
4525 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
4526 (func_create_testdir): Don't create po/Makefile.am, don't invoke
4527 autoreconf. Instead, invoke autopoint explicitly but move back the
4528 *.m4 files from gnulib.
4530 2006-10-11 Bruno Haible <bruno@clisp.org>
4532 * gnulib-tool (func_usage): Make module names after --create-testdir
4534 (func_create_testdir): If no module was specified, use nearly all
4537 2006-10-12 Jim Meyering <jim@meyering.net>
4539 Big performance improvement for fts-based tools that use FTS_NOSTAT.
4540 Avoid spurious inode-mismatch problems on non-POSIX file systems.
4541 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
4542 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
4543 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
4544 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
4545 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
4546 (fts_set_stat_required): New function.
4547 (fts_open): Defer the calls to fts_stat, if possible or requested.
4548 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
4549 into fts_stat itself.
4550 (fts_read): Perform any required (deferred) fts_stat call.
4551 (fts_build): Likewise, for the directory we're about to open and read.
4552 In the readdir loop, carefully decide whether each entry will require
4553 an eventual call to fts_stat, using dirent.d_type info if available.
4554 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
4555 a command line argument into this function. Update all callers.
4556 Map a return value of FTS_DOT to FTS_D for a command line argument.
4557 * modules/fts (Depends-on): Add d-type. Alphabetize.
4558 Thanks to Miklos Szeredi for his tenacity and for the initial
4559 bug report about "find" failing on a FUSE-based file system.
4561 * lib/fts.c (fts_open): Use consistent indentation.
4563 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
4565 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
4566 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
4567 reported by Jim Meyering. All uses of cache variables renamed
4568 to match Autoconf's.
4569 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
4572 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
4573 Fix misspelling in diagnostic.
4575 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
4577 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
4578 defined. Problem reported by Matthew Woehlke.
4580 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
4581 Add support for Tandem NonStop R series.
4582 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
4585 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
4586 (has_trailing_slash): Omit size arg; all callers changed.
4587 Omit 'inline', since it doesn't help performance and we'd
4588 need to configure it.
4589 Don't count //, ///, etc. as having a trailing slash.
4590 As a side effect, this removes a C99ism reported by Matthew Woehlke.
4591 (rpl_rename_dest_slash): On failure, use rename's errno rather
4592 than (in some cases) an incorrect or junk errno.
4593 Simplify code by removing need to compute length; this does
4594 cause it to make two passes instead of one over the file name,
4597 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
4598 change, since Autoconf's version may no longer be appropriate now
4599 that we are using CVS Autoconf's version. Add support for Tandem.
4601 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
4602 Bruno Haible <bruno@clisp.org>
4604 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
4605 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
4606 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
4607 gl_AC_TYPE_LONG_LONG.
4609 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
4610 instead of HAVE_LONG_LONG.
4611 * lib/printf-args.c (printf_fetchargs): Likewise.
4612 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
4613 * lib/vasnprintf.c (VASNPRINTF): Likewise.
4614 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
4615 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
4616 gl_AC_TYPE_LONG_LONG.
4618 2006-10-11 Bruno Haible <bruno@clisp.org>
4620 * m4/longlong.m4: Add comments.
4621 * m4/ulonglong.m4: Likewise.
4623 2006-10-10 Bruno Haible <bruno@clisp.org>
4625 Make it possible to #define stpcpy, strdup to aliases.
4626 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
4627 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
4629 2006-10-10 Bruno Haible <bruno@clisp.org>
4631 Make it possible to #define gcd to an alias.
4632 * lib/gcd.c: Include config.h.
4634 2006-10-10 Bruno Haible <bruno@clisp.org>
4636 Make it possible to #define c_isascii to an alias.
4637 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
4638 defined. Undefine the macros before defining them, to avoid gcc
4640 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
4641 define NO_C_CTYPE_MACROS early.
4643 2006-10-10 Bruno Haible <bruno@clisp.org>
4645 Make it possible to #define set_program_name to an alias.
4646 * lib/progname.c: Don't undefine set_program_name; instead, undefine
4647 ENABLE_RELOCATABLE early.
4649 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
4651 Port to Tandem NSK OSS, which has 64-bit signed int but at most
4652 32-bit unsigned int. Problem reported by Matthew Woehlke in:
4653 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
4654 More generally, don't assume that 64-bit signed int is available
4655 if unsigned int is, and vice versa.
4656 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
4657 unsigned symbols, not on their signed counterparts.
4658 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
4659 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
4660 (UINT64_C, UINTMAX_C):
4662 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
4663 unsigned counterparts.
4664 (Have_long_long, Unsigned): New macros.
4665 (Int): Renamed from INT.
4666 (strtoimax): Use the new macros.
4667 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
4668 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
4669 * modules/inttypes (inttypes.h): Substitute
4670 HAVE_UNSIGNED_LONG_LONG_INT.
4671 * modules/stdint (stdint.h): Likewise.
4672 (Files): Add m4/ulonglong.m4.
4674 2006-10-10 Bruno Haible <bruno@clisp.org>
4676 Fix a gcc -Wshadow warning.
4677 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
4679 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
4680 gl_linked_indexof_from_to): Likewise.
4681 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
4683 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
4685 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
4686 Reported by Eric Blake.
4688 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
4690 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
4691 for NetBSD. Problem reported by Bruno Haible.
4693 2006-10-09 Jim Meyering <jim@meyering.net>
4695 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
4696 Patch from Bruno Haible.
4698 2006-10-09 Jim Meyering <jim@meyering.net>
4700 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
4701 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
4702 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
4704 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
4706 Don't include <config.h> twice; this doesn't work in some cases,
4707 e.g., when config.h has "#define intmax_t long long int" and
4708 we include <config.h>, <inttypes.h>, <config.h> in that order.
4709 Problem reported by Matthew Woehlke in:
4710 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
4711 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
4712 * lib/fts-cycle.c: Don't include config.h.
4713 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
4714 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
4715 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
4716 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
4718 * lib/xstrtoumax.c: Likewise.
4719 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
4720 __strtol and the like, so that this module is more like its siblings.
4721 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
4722 Remove; no longer needed now that we assume gnulib inttypes.h.
4724 2006-10-08 Bruno Haible <bruno@clisp.org>
4726 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
4729 2006-10-07 Jim Meyering <jim@meyering.net>
4731 * modules/inttypes (inttypes.h): Revert what seems to have been
4732 an inadvertent part of today's change: use "|", not "/" in the
4733 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
4735 2006-10-07 Bruno Haible <bruno@clisp.org>
4737 * modules/sublist: New file.
4739 2006-10-07 Bruno Haible <bruno@clisp.org>
4741 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
4742 * modules/argz (argz.h): Likewise.
4743 * modules/arpa_inet (arpa/inet.h): Likewise.
4744 * modules/byteswap (byteswap.h): Likewise.
4745 * modules/configmake (configmake.h): Likewise.
4746 * modules/fcntl (fcntl.h): Likewise.
4747 * modules/fnmatch (fnmatch.h): Likewise.
4748 * modules/getopt (getopt.h): Likewise.
4749 * modules/glob (glob.h): Likewise.
4750 * modules/inttypes (inttypes.h): Likewise.
4751 * modules/netinet_in (netinet/in.h): Likewise.
4752 * modules/poll (poll.h): Likewise.
4753 * modules/stdbool (stdbool.h): Likewise.
4754 * modules/stdint (stdint.h): Likewise.
4755 * modules/sys_select (sys/select.h): Likewise.
4756 * modules/sys_socket (sys/socket.h): Likewise.
4757 * modules/sys_stat (sys/stat.h): Likewise.
4758 * modules/sysexits (sysexits.h): Likewise.
4759 * modules/unistd (unistd.h): Likewise.
4760 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4761 Add a "DO NOT EDIT" comment to the generated file.
4762 (func_import): Likewise for gnulib-comp.m4.
4764 2006-10-07 Bruno Haible <bruno@clisp.org>
4766 * lib/gl_sublist.h: New file.
4767 * lib/gl_sublist.c: New file.
4769 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
4771 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
4772 name (relative to the original working directory) and the file
4773 name component (relative to the temporary working directory). All
4775 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
4776 * lib/mkdir-p.c (make_dir_parents): Likewise.
4777 * lib/mkdir-p.h (make_dir_parents): Likewise.
4779 2006-10-06 Eric Blake <ebb9@byu.net>
4781 Define several macros for use by the clean-temp module.
4782 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
4783 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
4784 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
4786 * lib/clean-temp.h (close_stream_temp): New declaration.
4787 * lib/clean-temp.c (includes): Pull in headers according to what
4788 other modules are in use.
4789 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
4791 2006-10-06 Bruno Haible <bruno@clisp.org>
4793 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
4794 instead of fopen, fwriteerror.
4796 2006-10-06 Bruno Haible <bruno@clisp.org>
4798 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
4799 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
4801 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
4802 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
4803 Return an error indicator.
4804 Suggested by Eric Blake.
4806 2006-10-06 Bruno Haible <bruno@clisp.org>
4808 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
4809 Reported by Eric Blake.
4811 2006-10-06 Bruno Haible <bruno@clisp.org>
4813 * modules/closeout (Description): Mention stderr too.
4815 2006-10-06 Bruno Haible <bruno@clisp.org>
4816 and Paul Eggert <eggert@cs.ucla.edu>
4818 * lib/closeout.c (close_stdout): Also close stderr.
4819 * lib/closeout.h: Update comment.
4821 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
4823 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
4824 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
4825 * lib/dirchownmod.c: Include lchown.h.
4826 * lib/lchown.c: Don't include files that lchown.h now includes.
4827 Don't declare chown, since lchown.h now does that.
4828 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
4829 (lchown): Define to rpl_chown if lchown is declared but
4830 does not exist. Declare using a prototype if lchown is not
4831 declared. Add a copyright notice.
4832 * lib/mkstemp.h: Include <unistd.h>.
4833 * lib/openat.c: Include lchown.h.
4835 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
4836 we now test for that separately.
4837 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
4838 rather than O_NOFOLLOW, when testing whether it's possible to
4839 avoid a race condition reliably.
4840 * lib/savewd.c (savewd_chdir): Likewise.
4842 Remove macros that are no longer needed now that stdint.h is
4844 * lib/fsusage.c (UINTMAX_MAX): Remove.
4845 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
4846 * lib/utimecmp.c (SIZE_MAX): Remove.
4848 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
4850 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
4851 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
4854 2006-10-05 Bruno Haible <bruno@clisp.org>
4856 * lib/gl_list.h (gl_sortedlist_search_from_to,
4857 gl_sortedlist_indexof_from_to): New declarations.
4858 (gl_list_implementation): New fields sortedlist_search_from_to,
4859 sortedlist_indexof_from_to.
4860 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
4862 * lib/gl_list.c (gl_sortedlist_search_from_to,
4863 gl_sortedlist_indexof_from_to): New functions.
4864 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
4866 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
4867 (gl_array_sortedlist_search_from_to): New function.
4868 (gl_array_list_implementation): Update.
4869 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
4871 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
4872 (gl_carray_sortedlist_search_from_to): New function.
4873 (gl_carray_list_implementation): Update.
4874 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
4875 gl_linked_sortedlist_indexof_from_to): New functions.
4876 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4877 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4878 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
4879 gl_tree_sortedlist_indexof_from_to): New functions.
4880 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4881 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4883 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4884 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
4887 2006-10-05 Bruno Haible <bruno@clisp.org>
4889 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
4890 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
4891 (struct gl_list_implementation): Add fields search_from_to,
4892 indexof_from_to. Remove fields search, indexof.
4893 (gl_list_search): Use the search_from_to method.
4894 (gl_list_search_from, gl_list_search_from_to): New functions.
4895 (gl_list_indexof): Use the indexof_from_to method.
4896 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4897 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
4898 (gl_list_search_from, gl_list_search_from_to): New functions.
4899 (gl_list_indexof): Use the indexof_from_to method.
4900 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4901 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
4902 gl_array_indexof. Add start_index, end_index arguments.
4903 (gl_array_search_from_to): Renamed from gl_array_search. Add
4904 start_index, end_index arguments.
4905 (gl_array_remove, gl_array_list_implementation): Update.
4906 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
4907 gl_carray_indexof. Add start_index, end_index arguments.
4908 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
4909 start_index, end_index arguments.
4910 (gl_carray_remove, gl_carray_list_implementation): Update.
4911 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
4912 gl_linked_search. Add start_index, end_index arguments.
4913 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
4914 start_index, end_index arguments.
4915 (gl_linked_remove): Update.
4916 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4917 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4918 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
4920 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
4921 gl_tree_search. Add start_index, end_index arguments.
4922 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4923 start_index, end_index arguments.
4924 (gl_tree_remove): Update.
4925 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4926 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4927 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
4929 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
4930 gl_tree_search. Add start_index, end_index arguments.
4931 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4932 start_index, end_index arguments.
4933 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4935 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4937 2006-10-05 Bruno Haible <bruno@clisp.org>
4939 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
4941 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4942 fwriteerror_temp): New declarations.
4943 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
4944 (descriptors): New variable.
4945 (cleanup): First, close the descriptors.
4946 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
4947 fclose_temp, fwriteerror_temp): New functions.
4949 2006-10-04 Jim Meyering <jim@meyering.net>
4951 * lib/fts.c (fts_open): Tiny comment change.
4953 2006-10-04 Bruno Haible <bruno@clisp.org>
4955 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
4956 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
4958 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
4959 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
4961 (gl_LOCK): Require gl_LOCK_BODY.
4963 2006-10-04 Bruno Haible <bruno@clisp.org>
4965 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
4966 (gl_oset_search_atleast): New declaration.
4967 (struct gl_oset_implementation): Add field 'search_atleast'.
4968 (gl_oset_search_atleast): New inline function.
4969 * lib/gl_oset.c (gl_oset_search_atleast): New function.
4970 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
4971 (gl_array_oset_implementation): Update.
4972 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
4973 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
4974 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
4976 2006-10-04 Bruno Haible <bruno@clisp.org>
4978 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
4980 2006-10-03 Bruno Haible <bruno@clisp.org>
4982 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
4983 from gl_avltreehash_list_implementation.
4985 2006-10-03 Bruno Haible <bruno@clisp.org>
4987 * lib/gl_oset.c (gl_oset_add): Fix return type.
4989 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
4991 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
4993 2006-10-02 Eric Blake <ebb9@byu.net>
4995 * modules/strnlen (Depends-on): Add extensions.
4997 2006-10-02 Eric Blake <ebb9@byu.net>
4999 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
5000 definition in 2.60+.
5002 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
5004 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
5007 2006-10-02 Bruno Haible <bruno@clisp.org>
5009 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
5010 to the AUTOMAKE_OPTIONS.
5011 Reported by Jim Meyering.
5013 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
5015 Work around bug in Solaris 10 /proc file system:
5016 /proc/self/fd/NNN/.. isn't the parent directory of
5017 the directory whose file descriptor is NNN. This needs to
5018 be worked around at run time, not compile time, since a
5019 program might be built on Solaris 8, where things work, and
5021 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
5022 to use the following interface instead:
5023 (OPENAT_BUFFER_SIZE): New macro.
5024 (openat_proc_name): New function.
5025 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
5026 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
5028 * lib/openat-proc.c: New file.
5029 * modules/openat (Files): Add lib/openat-proc.c.
5030 (Depends-on): Add same-inode, stdbool.
5031 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
5033 2006-09-29 Bruno Haible <bruno@clisp.org>
5035 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
5036 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
5037 argument. Set stdout_closed before testing for ferror, not after.
5038 (fwriteerror, fwriteerror_no_ebadf): New functions.
5040 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5042 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
5044 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
5046 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
5047 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
5049 2006-09-28 Jim Meyering <jim@meyering.net>
5051 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
5054 2006-09-28 Bruno Haible <bruno@clisp.org>
5056 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
5057 * modules/linkedhash-list (Depends-on): Likewise.
5058 * modules/rbtreehash-list (Depends-on): Likewise.
5060 2006-09-28 Bruno Haible <bruno@clisp.org>
5062 * lib/strndup.h: Simplify the redefinition of strndup.
5063 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
5064 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
5066 2006-09-28 Bruno Haible <bruno@clisp.org>
5068 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
5069 * lib/gl_linkedhash_list.c: Likewise.
5070 * lib/gl_rbtreehash_list.c: Likewise.
5072 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
5074 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
5077 * lib/__fpending.h: Don't include <stdio_ext.h> unless
5078 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
5079 it causes <stdio_ext.h> to cause a compile-time error.
5080 Problem reported by Nelson H. F. Beebe.
5081 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
5082 of HAVE_DECL___PENDING.
5084 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
5085 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
5088 2006-09-27 Jim Meyering <jim@meyering.net>
5090 This file could end up with a definition for a function
5091 named __strndup, rather than rpl_strndup on a system with
5092 incomplete weak_alias support.
5093 * lib/strndup.c (strndup): Rename from __strndup.
5094 Remove #defines that used to map __strndup to strndup.
5095 Don't use K&R prototypes.
5096 Remove LIBC-related code, since this file is not sync'd with glibc.
5097 * lib/strndup.h: Revamp, accordingly.
5098 * m4/strndup.m4: Modernize.
5100 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
5102 * modules/savewd (Depends-on): Add 'raise'.
5103 * lib/savewd.c: Include <signal.h>, for 'raise'.
5105 2006-09-26 Jim Meyering <jim@meyering.net>
5107 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
5108 when we detect Darwin 8.7.0's acl_get_file bug.
5109 Rearrange to perform the new (below) run-test while $LIBS
5110 contains any acl-related library. Set USE_ACL at the end.
5111 (gl_ACL_GET_FILE): New function.
5113 2006-09-26 Eric Blake <ebb9@byu.net>
5115 * lib/verror.c: Include <config.h> unconditionally.
5117 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
5119 * modules/clock-time (Maintainer): Add self.
5120 * modules/getlogin_r (Depends-on): Add extensions.
5122 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5124 * modules/clock-time: New module.
5125 * modules/nanosleep (Depends-on): Add clock-time.
5126 * modules/gethrxtime (Depends-on): Likewise.
5127 * modules/gettime (Depends-on): Likewise.
5128 * modules/settime (Depends-on): Likewise.
5130 * modules/fts-lgpl: Depend on openat.
5131 * modules/mkancesdirs: Depend on savewd.
5132 * modules/mkdir-p: Likewise.
5134 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5136 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
5138 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
5139 `gl_have_arbitrary_file_name_length_limit' to
5140 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
5141 actually works between configure runs.
5143 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5144 Bruno Haible <bruno@clisp.org>
5146 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
5148 2006-09-25 Jim Meyering <jim@meyering.net>
5150 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
5151 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
5153 2006-09-25 Eric Blake <ebb9@byu.net>
5155 * gnulib-tool (func_import, func_create_testdir): Fix typos in
5156 exec's in 2006-09-18 patch when shuffling fds.
5158 2006-09-25 Bruno Haible <bruno@clisp.org>
5160 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
5161 Reported by Jim Meyering.
5163 2006-09-24 Jim Meyering <jim@meyering.net>
5165 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
5166 compare a pointer against a literal "0". That caused failures with
5167 at least HP-UX's hpcc.
5169 2006-09-22 Simon Josefsson <jas@extundo.com>
5173 * modules/gc-hmac-sha1:
5174 * modules/gc-hmac-md5:
5176 * modules/gc-arcfour: Distribute more files.
5178 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5180 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
5181 (gl_linked_iterator_from_to): Initialize struct completely.
5182 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
5183 (gl_tree_iterator_from_to): Likewise
5184 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
5185 * lib/gl_array_list.c [lint] (gl_array_iterator)
5186 (gl_array_iterator_from_to): Likewise.
5187 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
5188 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
5189 (gl_carray_iterator_from_to): Likewise.
5191 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
5192 * lib/md4.c (md4_process_block): Remove unused variable.
5193 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
5194 parentheses for clarity.
5196 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5198 * modules/bison-i18n (Depends-on): Add gettext.
5200 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5202 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
5203 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
5204 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
5205 also add missing comma that caused broken test.
5206 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
5207 stdlib.h, for `abort'.
5208 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
5210 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
5211 include unistd.h if present, for `rmdir'.
5212 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
5214 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
5215 in the process include standard headers for prototypes.
5216 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
5217 gets declared on GNU/Linux.
5218 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
5219 unistd.h, for `rmdir'.
5220 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
5222 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
5224 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
5226 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
5228 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5230 * gnulib-tool (func_version): Create output all at once. This
5231 may help avoid triggering unnecessary SIGPIPEs, and at any
5232 rate it doesn't hurt.
5234 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5235 Bruno Haible <bruno@clisp.org>
5237 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
5238 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5239 * m4/signed.m4 (bh_C_SIGNED): Likewise.
5241 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
5242 (gl_FUNC_VASPRINTF): Invoke it.
5244 2006-09-22 Bruno Haible <bruno@clisp.org>
5246 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
5247 getloadavg.c as first argument.
5249 2006-09-22 Bruno Haible <bruno@clisp.org>
5251 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
5252 at the beginning of the gl_INIT macro.
5253 * modules/getloadavg (configure.ac): Pass $gl_source_base to
5256 2006-09-22 Bruno Haible <bruno@clisp.org>
5258 * gnulib-tool (func_create_megatestdir): Don't include the config-h
5260 Suggested by Ralf Wildenhues.
5262 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
5264 Import this patch from libc:
5266 2006-09-06 Jakub Jelinek <jakub@redhat.com>
5268 * lib/regex_internal.c (re_string_reconstruct): Handle
5269 offset < pstr->valid_raw_len && pstr->offsets_needed case.
5270 Ensure no bytes read before raw_mbs array. Pass a saved copy of
5271 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
5272 re_string_context_at.
5274 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
5276 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
5277 gl_REGEX now does it for us.
5278 (gl_REGEX): Add test taken from
5279 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
5281 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
5282 Check that large offsets work. Modernize Autoconf usages.
5283 Prefer "yes" to mean a good thing rather than a bad.
5284 Don't put "#define mkstemp" in config.h, as this might interfere
5285 with standard system headers that "#define mkstemp mkstemp64".
5287 * modules/mkstemp (Depends-on): Add extensions, so that
5288 mkstemp is visible on some platforms.
5289 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
5290 (Include): Change to "mkstemp.h" from <stdlib.h>.
5291 (Files): Add mkstemp.h.
5293 * lib/mkstemp.h: New file, since some standard headers
5295 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
5296 Include "mkstemp.h".
5297 Make the _LIBC code resemble glibc original more,
5298 e.g., use K&R style.
5299 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
5300 (mkstemp): Remove, since mkstemp.h does this for us.
5301 * lib/stdlib--.h: Include mkstemp.h.
5303 Import this patch from libc:
5305 2006-04-07 Ulrich Drepper <drepper@redhat.com>
5307 * lib/tempname.c (__gen_tempname): Change attempts_min
5308 into a macro. Use preprocessor to decide how to initialize
5309 attempts [Coverity CID 67].
5311 2006-09-20 Bruno Haible <bruno@clisp.org>
5313 * lib/mkdtemp.c: Import from libc.
5314 2006-04-07 Ulrich Drepper <drepper@redhat.com>
5315 * sysdeps/posix/tempname.c (__gen_tempname): Change
5316 attempts_min into a macro. Use preprocessor to decide how to
5317 initialize attempts [Coverity CID 67].
5318 2001-11-27 Paul Eggert <eggert@twinsun.com>
5319 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
5320 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
5322 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5324 * gnulib-tool (func_exit): New function, to allow to pass the
5325 exit status portably through the trap. Use everywhere.
5326 (--help, --version): Signal a write error.
5327 (trap): catch SIGPIPE, for write errors.
5328 Exit at the end of the trap, with the correct exit status.
5330 2006-09-19 Karl Berry <karl@gnu.org>
5332 * doc/gnulib.texi: note about the license texinfo files.
5334 2006-09-19 Eric Blake <ebb9@byu.net>
5336 * gnulib-tool: Avoid space-tab.
5338 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
5340 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
5341 that prevented coreutils 6.1 from building. Problem reported
5342 by Petter Reinholdtsen.
5344 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
5346 * gnulib-tool (avoidlist): Fix typo that broke options like
5347 --avoid=lock that are used by coreutils bootstrap.
5349 2006-09-18 Mark D. Baushke <mdb@gnu.org>
5351 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
5352 more systematically.
5354 2006-09-18 Jim Meyering <jim@meyering.net>
5356 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
5358 2006-09-18 Bruno Haible <bruno@clisp.org>
5360 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
5362 2006-09-18 Bruno Haible <bruno@clisp.org>
5364 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
5365 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
5366 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
5367 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
5368 * m4/gettext.m4: Require autoconf >= 2.52.
5369 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
5370 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
5371 of gl_cv_header_inttypes_h.
5373 2006-09-18 Bruno Haible <bruno@clisp.org>
5375 * lib/javaversion.c: Include configmake.h.
5377 2006-09-18 Bruno Haible <bruno@clisp.org>
5379 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
5380 avoid that the while loops be executed in a subshell.
5382 2006-09-18 Bruno Haible <bruno@clisp.org>
5384 * MODULES.html.sh (func_module): Break long lines.
5385 Suggested by Bruce Korb <bkorb@gnu.org>.
5387 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5389 Speed up by a factor of 1.12.
5390 * gnulib-tool (nl): New variable.
5391 (func_import): Rewrite include directive extraction to only read each
5394 2006-09-17 Bruno Haible <bruno@clisp.org>
5396 * modules/javaversion (Makefile.am): Remove DEFS setting.
5397 (Depends-on): Add configmake, for PKGDATADIR definition.
5399 2006-09-17 Bruno Haible <bruno@clisp.org>
5401 * gnulib-tool (func_create_testdir): Rewrite all files at once.
5403 2006-09-17 Bruno Haible <bruno@clisp.org>
5405 * gnulib-tool (func_append): New function, stolen from libtool.m4.
5406 (func_modules_transitive_closure, func_modules_add_dummy,
5407 func_modules_to_filelist, func_import, func_create_testdir,
5408 func_create_megatestdir, ...): Use it wherever possible.
5409 Suggested by Ralf Wildenhues.
5411 2006-09-16 Karl Berry <karl@gnu.org>
5413 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
5414 to avoid sectioning errors.
5415 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
5416 [ifinfo]: blank line after @center-ed titles.
5417 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
5418 Spell FSF address consistently with others.
5419 (These changes approved by rms.)
5421 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5423 Speed up by a factor of 1.61.
5424 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
5425 already checked module names again.
5427 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5429 Speed up by a factor of 1.13.
5430 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
5431 for new_files, and the input to func_add_or_update.
5433 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5435 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
5436 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
5438 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5440 * modules/mkancesdirs (Depends-on): Add fcntl.
5441 * modules/savewd: New file.
5442 * MODULES.html.sh (File system functions): Add savewd.
5444 * modules/configmake (Makefile.am): Add support for the
5445 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
5447 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5449 * m4/savewd.m4: New file.
5451 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
5453 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
5454 (dirchownmod): New arg FD. All callers changed.
5455 Use FD rather than opening the directory ourself, as opening is
5456 now the caller's responsibility.
5457 * lib/dirchownmod.h: Likewise.
5458 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
5459 hosts that require <sys/types.h> before <sys/stat.h>. Include
5460 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
5462 (mkancesdirs): Return length of prefix of FILE that has already
5463 been made, or -2 if there is a child doing the work. Redo
5464 algorithm so that it is O(N) rather than O(N**2). Optimize away
5465 ".", and treat ".." specially since it might stray back into
5466 already-created areas. Use a subprocess if necessary. New arg
5467 WD; all users changed. MAKE_DIR function should now return 1
5468 if it creates a directory that is not readable. Return -2 if
5469 a child process is spun off.
5470 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
5471 Adjust signature to match code.
5472 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
5473 (make_dir_parents): Use a subprocess if necessary. New arg WD;
5475 * lib/savewd.c, lib/savewd.h: New files.
5477 2006-09-15 Jim Meyering <jim@meyering.net>
5479 * modules/rename-dest-slash: New module.
5480 * MODULES.html.sh (posix_compat): Add it here.
5482 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
5484 2006-09-15 Jim Meyering <jim@meyering.net>
5486 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
5489 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
5491 2006-09-15 Jim Meyering <jim@meyering.net>
5493 * lib/rename-dest-slash.c (has_trailing_slash): Use
5494 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
5495 (rpl_rename_dest_slash): Perform the cheaper trailing slash
5496 test before testing whether SRC is a directory.
5497 Suggestions from Bruno Haible.
5499 Avoid a warning about an unused variable.
5500 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
5501 into the #ifdef block where it's used.
5503 * lib/rename-dest-slash.c: New file.
5505 2006-09-14 Bruno Haible <bruno@clisp.org>
5507 * lib/allocsa.c: Include <config.h> unconditionally.
5508 * lib/asnprintf.c: Likewise.
5509 * lib/asprintf.c: Likewise.
5510 * lib/c-strcasecmp.c: Likewise.
5511 * lib/c-strcasestr.c: Likewise.
5512 * lib/c-strncasecmp.c: Likewise.
5513 * lib/c-strstr.c: Likewise.
5514 * lib/classpath.c: Likewise.
5515 * lib/clean-temp.c: Likewise.
5516 * lib/concatpath.c: Likewise.
5517 * lib/copy-file.c: Likewise.
5518 * lib/csharpcomp.c: Likewise.
5519 * lib/csharpexec.c: Likewise.
5520 * lib/execute.c: Likewise.
5521 * lib/fatal-signal.c: Likewise.
5522 * lib/findprog.c: Likewise.
5523 * lib/fwriteerror.c: Likewise.
5524 * lib/gl_array_list.c: Likewise.
5525 * lib/gl_array_oset.c: Likewise.
5526 * lib/gl_avltree_list.c: Likewise.
5527 * lib/gl_avltree_oset.c: Likewise.
5528 * lib/gl_avltreehash_list.c: Likewise.
5529 * lib/gl_carray_list.c: Likewise.
5530 * lib/gl_linked_list.c: Likewise.
5531 * lib/gl_linkedhash_list.c: Likewise.
5532 * lib/gl_list.c: Likewise.
5533 * lib/gl_oset.c: Likewise.
5534 * lib/gl_rbtree_list.c: Likewise.
5535 * lib/gl_rbtree_oset.c: Likewise.
5536 * lib/gl_rbtreehash_list.c: Likewise.
5537 * lib/imaxabs.c: Likewise.
5538 * lib/imaxdiv.c: Likewise.
5539 * lib/javacomp.c: Likewise.
5540 * lib/javaexec.c: Likewise.
5541 * lib/javaversion.c: Likewise.
5542 * lib/linebreak.c: Likewise.
5543 * lib/localcharset.c: Likewise.
5544 * lib/lock.c: Likewise.
5545 * lib/mbchar.c: Likewise.
5546 * lib/mbswidth.c: Likewise.
5547 * lib/mkdtemp.c: Likewise.
5548 * lib/pipe.c: Likewise.
5549 * lib/printf-args.c: Likewise.
5550 * lib/printf-parse.c: Likewise.
5551 * lib/progname.c: Likewise.
5552 * lib/progreloc.c: Likewise.
5553 * lib/readlink.c: Likewise.
5554 * lib/sh-quote.c: Likewise.
5555 * lib/stpcpy.c: Likewise.
5556 * lib/stpncpy.c: Likewise.
5557 * lib/strcasecmp.c: Likewise.
5558 * lib/strcasestr.c: Likewise.
5559 * lib/strcspn.c: Likewise.
5560 * lib/striconv.c: Likewise.
5561 * lib/strncasecmp.c: Likewise.
5562 * lib/strnlen1.c: Likewise.
5563 * lib/strstr.c: Likewise.
5564 * lib/strtok_r.c: Likewise.
5565 * lib/tls.c: Likewise.
5566 * lib/tmpdir.c: Likewise.
5567 * lib/unicodeio.c: Likewise.
5568 * lib/unsetenv.c: Likewise.
5569 * lib/vasnprintf.c: Likewise.
5570 * lib/vasprintf.c: Likewise.
5571 * lib/wait-process.c: Likewise.
5572 * lib/xallocsa.c: Likewise.
5573 * lib/xsetenv.c: Likewise.
5574 * lib/xstriconv.c: Likewise.
5576 2006-09-13 Simon Josefsson <jas@extundo.com>
5578 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
5579 that internally, suggested by Ralf Wildenhues
5580 <Ralf.Wildenhues@gmx.de>.
5582 2006-09-13 Simon Josefsson <jas@extundo.com>
5584 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
5586 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5588 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
5590 * lib/_fpending.c: Include <config.h> unconditionally, since we no
5591 longer worry about uses that don't define HAVE_CONFIG_H.
5592 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
5593 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
5594 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
5595 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
5596 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
5597 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
5598 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
5599 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
5600 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
5601 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
5602 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
5603 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
5604 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
5605 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
5606 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
5607 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
5608 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
5609 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
5610 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
5611 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
5612 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
5613 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
5614 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
5615 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
5616 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
5617 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
5618 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
5619 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
5620 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
5621 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
5622 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
5623 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
5624 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
5625 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
5626 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
5627 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
5628 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
5629 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
5630 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
5631 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
5632 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
5635 2006-09-13 Eric Blake <ebb9@byu.net>
5637 * lib/getopt.c: Fix typo in last commit.
5639 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
5641 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
5644 2006-09-12 Jim Meyering <jim@meyering.net>
5646 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
5647 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
5648 Reported by Nelson H. F. Beebe.
5650 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
5652 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
5653 program_invocation_name and program_invocation_short_name are
5655 * lib/argp-namefrob.h: Move declarations of program_invocation_name
5656 and program_invocation_short_name to argp.h, so they are visible
5658 * lib/argp.h: Likewise
5660 2006-09-10 Bruno Haible <bruno@clisp.org>
5662 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5663 m4/inttypes_h.m4, m4/uintmax_t.m4.
5665 2006-09-10 Bruno Haible <bruno@clisp.org>
5667 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
5668 gl_AC_TYPE_UINTMAX_T.
5670 2006-09-10 Bruno Haible <bruno@clisp.org>
5672 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
5674 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
5676 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
5677 convention. Text proposed by Bruno Haible.
5678 (struct argp_option): Document the use of N_() wrappers.
5680 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
5681 '\v', and translate the two parts separately, instead of feeding
5682 the whole string to gettext. This allows to exclude
5683 '\v' from the strings visible to the translator by writing doc
5684 strings as N_("..") "\v" N_("..").
5686 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
5688 * config/srclist.txt: Undo latest change; the bug was fixed.
5690 2006-09-09 Bruno Haible <bruno@clisp.org>
5692 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
5693 assignments if building a library without libtool.
5694 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
5695 in func_emit_lib_Makefile_am.
5696 (func_import): When building a static library libfoo.a, arrange to
5697 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
5698 (func_create_testdir): Likewise.
5699 * modules/gc (configure.ac, Makefile.am): If building statically,
5700 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
5701 * modules/iconvme (configure.ac, Makefile.am): Likewise.
5702 * modules/striconv (configure.ac, Makefile.am): Likewise.
5703 Based on a suggestion by Ralf Wildenhues.
5705 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5707 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5708 Check for unistd.h too, since Autoconf doesn't assume POSIX.
5711 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5712 Add year_2050_test to catch glibc bug 2821
5713 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5715 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
5716 Prefer #ifdef to #if.
5718 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
5719 Return from 'main' instead of calling 'exit'.
5721 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5723 * lib/mktime.c (guess_time_tm): Fix bug where mktime
5724 returned the maximum time_t value rather than (time_t) -1.
5725 Problem originally reported by William Bardwell
5726 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5728 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5730 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5733 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
5735 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
5738 2006-09-08 Jim Meyering <jim@meyering.net>
5740 Don't make generated files read-only. That would bother too many
5741 people. However, do retain the ability to work when targets are
5742 read-only: remove the destination and temporary files before writing
5743 them (when generated via sed or echo), or by using the -f option for
5744 both cp and mv commands. Suggestion to use -f from Paul Eggert.
5745 * modules/alloca-opt, modules/argz, modules/arpa_inet:
5746 * modules/byteswap, modules/configmake, modules/fcntl:
5747 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5748 * modules/localcharset, modules/netinet_in, modules/poll:
5749 * modules/stdbool, modules/stdint, modules/sys_select:
5750 * modules/sys_socket, modules/sys_stat, modules/sysexits:
5752 2006-09-08 Jim Meyering <jim@meyering.net>
5754 Avoid new build failure on FreeBSD 6.0.
5755 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
5756 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
5757 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
5759 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5761 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
5763 2006-09-07 Jim Meyering <jim@meyering.net>
5765 Fix global typo in last change: use chmod u-w, not chmod u-x.
5766 Spotted by Paul Eggert and Bruce Korb.
5767 * modules/alloca-opt, modules/argz, modules/arpa_inet:
5768 * modules/byteswap, modules/configmake, modules/fcntl:
5769 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5770 * modules/localcharset, modules/netinet_in, modules/poll:
5771 * modules/stdbool, modules/stdint, modules/sys_select:
5772 * modules/sys_socket, modules/sys_stat, modules/sysexits:
5774 2006-09-06 Jim Meyering <jim@meyering.net>
5776 Make generated files be read-only.
5777 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
5778 Ensure that each generated file is now read-only.
5779 * modules/argz: Likewise.
5780 * modules/arpa_inet: Likewise.
5781 * modules/byteswap: Likewise.
5782 * modules/configmake: Likewise.
5783 * modules/fcntl: Likewise.
5784 * modules/fnmatch: Likewise.
5785 * modules/getopt: Likewise.
5786 * modules/glob: Likewise.
5787 * modules/inttypes: Likewise.
5788 * modules/netinet_in: Likewise.
5789 * modules/poll: Likewise.
5790 * modules/stdbool: Likewise.
5791 * modules/stdint: Likewise.
5792 * modules/sys_select: Likewise.
5793 * modules/sys_socket: Likewise.
5794 * modules/sys_stat: Likewise.
5795 * modules/sysexits: Likewise.
5796 * modules/localcharset: Same as above, but continue using temporary
5797 file named "t-$@" (why different?) rather than the "$@-t" used
5800 * modules/sysexits (Makefile.am): Replace literal occurrences
5801 of "sysexit.h" more readable, and more consistent, "$@".
5803 2006-09-06 Bruno Haible <bruno@clisp.org>
5805 * modules/striconv: New file.
5806 * modules/xstriconv: New file.
5807 * MODULES.html.sh (Internationalization functions): Add striconv,
5810 2006-09-06 Bruno Haible <bruno@clisp.org>
5812 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
5813 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
5814 not using libtool correctly.
5816 2006-09-06 Bruno Haible <bruno@clisp.org>
5818 * lib/striconv.h: New file.
5819 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
5821 * lib/xstriconv.h: New file.
5822 * lib/xstriconv.c: New file.
5824 2006-09-06 Bruno Haible <bruno@clisp.org>
5826 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5829 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5831 * lib/argz_.h: Sync from Libtool.
5833 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
5834 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5836 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
5838 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
5840 * modules/trim: New file.
5842 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
5844 * lib/trim.h: New file.
5845 * lib/trim.c: New file.
5847 2006-09-05 Bruno Haible <bruno@clisp.org>
5849 * MODULES.html.sh (String handling): Add trim.
5851 2006-09-04 Karl Berry <karl@gnu.org>
5853 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
5856 2006-09-03 Bruno Haible <bruno@clisp.org>
5858 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
5861 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
5863 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
5864 not gl_GETLOADAVG. Omit unneeded semicolons.
5865 Problems reported by Ralf Wildenhues in
5866 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5867 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
5868 at the end, which is the usual gnulib style.
5870 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
5871 of doing all the work ourselves.
5872 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
5873 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
5875 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
5877 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
5878 Problem reported by Ralf Wildenhues in
5879 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5881 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
5882 HAVE_STRUCT_STATFS_F_FSTYPENAME.
5884 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
5886 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
5887 yesterday's patch by changing test -n to test -z.
5889 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
5891 * modules/getloadavg (Files): Add m4/getloadavg.m4.
5892 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
5893 the former is now obsolescent.
5895 * modules/chdir-long (Depends-on): Add fcntl.
5897 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
5899 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
5900 obsolescent, and programs should use gnulib instead.
5901 * m4/getloadavg.m4: New file, with contents taken from Autoconf
5902 but with prefixes changed.
5904 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
5906 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
5907 or stdbool.h, because they might not exist while configuring.
5909 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
5910 Don't include unistd.h or limits.h; not needed, since chdir-long.h
5912 (O_DIRECTORY): Remove.
5914 2006-08-31 Eric Blake <ebb9@byu.net>
5916 * gnulib-tool: Don't let emacs change spaces to TAB.
5918 2006-08-31 Bruno Haible <bruno@clisp.org>
5920 * gnulib-tool: When calling func_import more than once, do it in a
5922 Reported by Eric Blake <ebb9@byu.net>.
5924 2006-08-31 Bruno Haible <bruno@clisp.org>
5926 * gnulib-tool (nl): Remove variable.
5927 (sed_transform_lib_file): Use more robust test for config-h module.
5928 (func_import): Fix typo in 2006-08-25 patch.
5930 2006-08-31 Bruno Haible <bruno@clisp.org>
5932 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
5933 specified, augment Makefile.am variables instead of assigning them.
5935 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5937 Work around a bug in both the Linux and SunOS 64-bit kernels:
5938 nanosleep mishandles sleeps for longer than 2**31 seconds.
5939 Problem reported by Frank v Waveren in
5940 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5941 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
5942 Check for nanosleep bug.
5943 (LIB_NANOSLEEP): Append clock_gettime library if needed.
5945 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5947 Work around a bug in both the Linux and SunOS 64-bit kernels:
5948 nanosleep mishandles sleeps for longer than 2**31 seconds.
5949 Problem reported by Frank v Waveren in
5950 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5951 * lib/nanosleep.c (BILLION): New constant.
5952 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
5953 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
5956 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5958 * modules/nanosleep (Depends-on): Add gettime.
5960 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
5961 and Simon Josefsson <jas@extundo.com>
5962 and Oskar Liljeblad <oskar@osk.mine.nu>
5964 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
5965 * gnulib-tool (func_import): New license type 'unmodifiable license
5967 * modules/fdl: Use it. Longer description.
5968 * module/gpl, module/lgpl: New files.
5970 2006-08-30 Jim Meyering <jim@meyering.net>
5972 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
5973 shadowing the parameter.
5975 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5979 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5981 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
5982 sharing with gnulib. Report by Eric Blake.
5984 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5986 * modules/isapipe: New file.
5987 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
5989 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5991 * modules/configmake (Makefile.am): Add a comment, and omit
5992 the CONFIGMAKE_ prefix from generated macro names. Suggested
5995 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
5997 * m4/isapipe.m4: New file.
5999 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
6001 * lib/isapipe.c, lib/isapipe.h: New files.
6003 2006-08-29 Jim Meyering <jim@meyering.net>
6005 * modules/configmake (Makefile.am): Make configmake.h depend on
6006 Makefile. Otherwise, a stale configmake.h could hang around.
6008 2006-08-29 Eric Blake <ebb9@byu.net>
6010 * lib/error.c (error_at_line, print_errno_message): Match libc, after
6011 resolution of upstream bug 3044.
6013 2006-08-29 Bruno Haible <bruno@clisp.org>
6015 * modules/localcharset (Depends-on): Add configmake.
6016 (Makefile.am): Remove setting of LIBDIR through DEFS.
6018 2006-08-29 Bruno Haible <bruno@clisp.org>
6020 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
6023 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6025 * modules/fcntl: New file.
6026 * modules/chdir-safer (Depends-on): Add fcntl.
6027 * modules/fts: Likewise.
6028 * modules/mkdir-p: Likewise.
6030 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
6031 This undoes the most recent change, since we're now addressing the
6032 problem in a different way.
6034 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
6035 into output, since the output might be called Makefile.am even
6036 if $makefile_name is something different.
6037 (func_import): Use $makefile_am rather than
6038 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
6041 * modules/inttypes (Files): Add m4/inttypes-h.m4.
6043 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6045 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
6046 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
6047 recent change to stdint.m4, since we're now addressing the problem in a
6050 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6052 * m4/fcntl_h.m4: New file.
6054 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
6056 * lib/fcntl_.h: New file.
6057 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
6059 * lib/dirchownmod.c: Likewise.
6060 * lib/fts.c: Likewise.
6062 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
6063 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
6064 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
6065 just before including <inttypes.h>, to avoid circular inclusion.
6067 2006-08-28 Jim Meyering <jim@meyering.net>
6069 * doc/visibility.texi: Actually read and correct the grammar of the
6070 sentence affected by yesterday's change.
6072 2006-08-28 Eric Blake <ebb9@byu.net>
6074 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
6077 2006-08-28 Eric Blake <ebb9@byu.net>
6079 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
6081 2006-08-28 Eric Blake <ebb9@byu.net>
6083 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
6085 2006-08-28 Bruno Haible <bruno@clisp.org>
6087 * modules/c-strstr: New file, from GNU gettext.
6088 * MODULES.html.sh (String handling): Add c-strstr.
6090 2006-08-28 Bruno Haible <bruno@clisp.org>
6092 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
6094 Reported by Eric Blake.
6096 2006-08-28 Bruno Haible <bruno@clisp.org>
6098 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
6099 (VASNPRINTF): Return a string of length > INT_MAX without failing.
6100 * lib/vasprintf.c: Include errno.h, limits.h.
6101 (EOVERFLOW): New fallback definition.
6102 (vasprintf): Test here whether the string length is > INT_MAX.
6103 * lib/vsnprintf.c: Include errno.h, limits.h.
6104 (EOVERFLOW): New fallback definition.
6105 (vsnprintf): Fix bug when generated string was too long for the buffer.
6106 Test here whether the string length is > INT_MAX.
6108 2006-08-28 Bruno Haible <bruno@clisp.org>
6110 * lib/inttypes_.h (SCNX*): Remove definitions.
6111 Reported by Eric Blake.
6113 2006-08-28 Bruno Haible <bruno@clisp.org>
6115 * lib/c-strstr.h: New file, from GNU gettext.
6116 * lib/c-strstr.c: New file, from GNU gettext.
6118 2006-08-28 Bruno Haible <bruno@clisp.org>
6120 * gnulib-tool: Reorder some statements.
6122 2006-08-28 Bruno Haible <bruno@clisp.org>
6124 * gnulib-tool: New option --makefile-name.
6125 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
6127 (func_import): Write $makefile_name to the cache file, and read it from
6128 there unless explicitly specified. Use $makefile_name as file name
6129 instead of Makefile.am. Adjust the recommendations accordingly.
6131 2006-08-28 Bruno Haible <bruno@clisp.org>
6133 * gnulib-tool (func_verify_module): Check against misapplying patch.
6135 2006-08-28 Bruno Haible <bruno@clisp.org>
6137 * gnulib-tool (func_relativize, func_relconcat): New functions.
6138 Give an error if --local-dir is given with --update.
6139 Remove trailing slashes from $local_gnulib_dir.
6140 (func_import): Store the relativized $local_gnulib_dir in
6141 gnulib-cache.m4, and read it from there if not specified explicitly.
6143 2006-08-28 Bruno Haible <bruno@clisp.org>
6145 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
6146 is the current directory. Respect also $local_gnulib_dir.
6148 2006-08-28 Bruno Haible <bruno@clisp.org>
6149 Simon Josefsson <jas@extundo.com>
6152 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
6154 2006-08-27 Jim Meyering <jim@meyering.net>
6156 * doc/visibility.texi: Remove duplicate word: "pointer".
6158 2006-08-26 Bruno Haible <bruno@clisp.org>
6160 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
6161 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
6162 (Makefile.am): Create inttypes.h from inttypes_.h.
6163 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
6165 * modules/imaxabs: New file.
6167 * modules/imaxdiv: New file.
6169 2006-08-26 Bruno Haible <bruno@clisp.org>
6171 * m4/inttypes.m4: New file.
6172 * m4/_inttypes_h.m4: Remove file.
6173 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
6175 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
6177 * m4/imaxabs.m4: New file.
6179 * m4/imaxdiv.m4: New file.
6181 2006-08-26 Bruno Haible <bruno@clisp.org>
6183 * lib/inttypes_.h: New file.
6184 * lib/inttypes.h: Remove file.
6185 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
6187 * lib/imaxabs.c: New file.
6189 * lib/imaxdiv.c: New file.
6191 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6193 New config-h module, so that "make" output needn't be cluttered
6195 * MODULES.html.sh (Support for building libraries and executables):
6197 * modules/config-h: New file.
6198 * gnulib-tool (nl, sed_transform_lib_file): New vars.
6199 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
6200 the config-h module is used.
6202 New configmake module, so that "make" output needn't be cluttered
6203 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
6204 * MODULES.html.sh (Support for building libraries and executables):
6206 * modules/configmake: New file.
6208 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
6210 * m4/config-h.m4: New file.
6212 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6214 * config/srclist.txt: Add elisp-comp.
6216 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
6218 * MODULES.html.sh (Support for building libraries and executables):
6220 * build-aux/elisp-comp: New file.
6221 * modules/elisp-comp: New file.
6223 2006-08-24 Bruno Haible <bruno@clisp.org>
6225 * gnulib-tool (func_create_testdir): Use non-default values of
6226 sourcebase and m4base.
6228 2006-08-24 Bruno Haible <bruno@clisp.org>
6230 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
6233 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
6235 * modules/openat (Depends-on): Add lchown.
6237 2006-08-23 Bruno Haible <bruno@clisp.org>
6239 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
6240 of gl_LOCK_EARLY instead of gl_LOCK.
6242 2006-08-23 Bruno Haible <bruno@clisp.org>
6244 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
6246 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
6248 2006-08-23 Bruno Haible <bruno@clisp.org>
6250 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
6253 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
6254 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
6255 (gl_LOCK): New macro.
6257 2006-08-22 Simon Josefsson <jas@extundo.com>
6259 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
6262 2006-08-22 Simon Josefsson <jas@extundo.com>
6264 * MODULES.html.sh: Add "Support for maintaining and release
6267 * build-aux/gnupload: New file, from coreutils.
6269 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6271 Avoid the need for AC_LIBSOURCES in m4 macros.
6272 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
6273 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
6274 * modules/check-version (EXTRA_DIST): Add check-version.h.
6275 * modules/crc (EXTRA_DIST): Add crc.h.
6276 * modules/des (EXTRA_DIST): Add des.h.
6277 * modules/gc (EXTRA_DIST): Add gc.h.
6278 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
6279 * modules/getline (EXTRA_DIST): Add getline.h.
6280 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
6281 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
6282 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
6283 * modules/md2 (EXTRA_DIST): Add md2.h.
6284 * modules/md4 (EXTRA_DIST): Add md4.h.
6285 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
6286 * modules/read-file (EXTRA_DIST): Add read-file.h.
6287 * modules/readline (EXTRA_DIST): Add readline.h.
6288 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
6291 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6293 * m4/rijndael.m4 (gl_ARCFOUR):
6294 * m4/arctwo.m4 (gl_ARCTWO):
6295 * m4/check-version.m4 (gl_CHECK_VERSION):
6296 * m4/crc.m4 (gl_CRC):
6297 * m4/des.m4 (gl_DES):
6298 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
6300 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
6301 * m4/getline.m4 (gl_FUNC_GETLINE):
6302 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
6303 * m4/hmac-md5.m4 (gl_HMAC_MD5):
6304 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
6305 * m4/md2.m4 (gl_MD2):
6306 * m4/md4.m4 (gl_MD4):
6307 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
6308 * m4/read-file.m4 (gl_FUNC_READ_FILE):
6309 * m4/readline.m4 (gl_FUNC_READLINE):
6310 * m4/rijndael.m4 (gl_RIJNDAEL):
6311 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
6312 to get the necessary .h files and whatnot.
6314 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
6316 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
6317 gnulib rather than the other way around.
6318 * config/srclistvars.sh (COREUTILS): Remove.
6320 2006-08-22 Jim Meyering <jim@meyering.net>
6322 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
6324 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
6326 2006-08-22 Eric Blake <ebb9@byu.net>
6328 * modules/regexprops-generic: New file.
6329 * MODULES.html.sh (Support for building documentation): List it.
6331 2006-08-22 Eric Blake <ebb9@byu.net>
6333 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
6334 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6335 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
6336 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
6338 2006-08-22 Bruno Haible <bruno@clisp.org>
6340 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
6341 and lib_LTLIBRARIES like the other lib_* variables.
6343 2006-08-22 Bruno Haible <bruno@clisp.org>
6345 * build-aux/x-to-1.in: New file, from GNU gettext.
6347 2006-08-22 Bruno Haible <bruno@clisp.org>
6349 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
6352 2006-08-22 Bruno Haible <bruno@clisp.org>
6354 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
6357 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6360 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
6362 Problem reported by Bruno Haible.
6364 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6366 Avoid the need for AC_LIBSOURCES in m4 macros.
6367 * modules/acl (EXTRA_DIST): Add acl.h.
6368 * modules/argmatch (Files): Add m4/argmatch.m4.
6369 (configure.ac): Add gl_ARGMATCH.
6370 (EXTRA_DIST): Renamed from lib_SOURCES, for
6371 consistency with the other modules. Remove argmatch.c.
6372 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
6373 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
6374 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
6375 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
6376 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
6377 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
6378 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
6379 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
6380 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
6381 * modules/closeout (EXTRA_DIST): Add closeout.h.
6382 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
6383 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
6384 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
6385 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
6386 dirname.h; remove basename.c and stripslash.c.
6387 * modules/exclude (EXTRA_DIST): Add exclude.h.
6388 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
6389 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
6390 * modules/file-type (EXTRA_DIST): Add file-type.h.
6391 * modules/filemode (EXTRA_DIST): Add filemode.h.
6392 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
6393 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
6394 * modules/fpending (EXTRA_DIST): Add __fpending.h.
6395 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
6396 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
6397 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
6398 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
6399 * modules/getdate (EXTRA_DIST): Add getdate.c.
6400 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
6401 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
6402 * modules/getpass (EXTRA_DIST): Add getpass.h.
6403 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
6404 * modules/group-member (EXTRA_DIST): Add group-member.h.
6405 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
6406 * modules/hash (EXTRA_DIST): Add hash.h.
6407 * modules/human (EXTRA_DIST): Add human.h.
6408 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
6409 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
6410 * modules/lchown (EXTRA_DIST): Add lchown.h.
6411 * modules/long-options (EXTRA_DIST): Add long-options.h.
6412 * modules/lstat (EXTRA_DIST): Add lstat.h.
6413 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
6414 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
6415 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
6416 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
6417 * modules/memxor (EXTRA_DIST): Add memxor.h.
6418 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
6419 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
6420 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
6421 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
6422 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
6423 * modules/physmem (EXTRA_DIST): Add physmem.h.
6424 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
6425 * modules/posixver (EXTRA_DIST): Add posixver.h.
6426 * modules/quote (EXTRA_DIST): Add quote.h.
6427 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
6428 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
6429 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
6430 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
6431 regex_internal.h regexec.c.
6432 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
6433 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
6434 * modules/same (EXTRA_DIST): Add same.h.
6435 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
6436 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
6437 * modules/savedir (EXTRA_DIST): Add savedir.h.
6438 * modules/sha1 (EXTRA_DIST): Add sha1.h.
6439 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
6440 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
6441 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
6442 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
6443 * modules/strdup (EXTRA_DIST): Add strdup.h.
6444 * modules/strftime (EXTRA_DIST): Add strftime.h.
6445 * modules/strndup (EXTRA_DIST): Add strndup.h.
6446 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
6447 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
6448 * modules/time_r (EXTRA_DIST): Add time_r.h.
6449 * modules/timespec (EXTRA_DIST): Add timespec.h.
6450 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
6451 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
6452 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
6453 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
6454 * modules/userspec (EXTRA_DIST): Add userspec.h.
6455 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
6456 * modules/utimens (EXTRA_DIST): Add utimens.h.
6457 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
6458 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
6459 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
6460 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
6461 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
6462 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
6463 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
6464 * modules/yesno (EXTRA_DIST): Add yesno.h.
6466 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
6468 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
6470 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
6471 * m4/dev-ino.m4, same-inode.m4: Remove.
6473 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
6474 * m4/acl.m4 (AC_FUNC_ACL):
6475 * m4/backupfile.m4 (gl_BACKUPFILE):
6476 * m4/c-strtod.m4 (gl_C99_STRTOLD):
6477 * m4/canon-host.m4 (gl_CANON_HOST):
6478 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
6479 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
6480 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
6481 * m4/cloexec.m4 (gl_CLOEXEC):
6482 * m4/close-stream.m4 (gl_CLOSE_STREAM):
6483 * m4/closeout.m4 (gl_CLOSEOUT):
6484 * m4/dirfd.m4 (gl_FUNC_DIRFD):
6485 * m4/dirname.m4 (gl_DIRNAME):
6486 * m4/exclude.m4 (gl_EXCLUDE):
6487 * m4/exitfail.m4 (gl_EXITFAIL):
6488 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
6489 * m4/file-type.m4 (gl_FILE_TYPE):
6490 * m4/filemode.m4 (gl_FILEMODE):
6491 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
6492 * m4/fpending.m4 (gl_FUNC_FPENDING):
6493 * m4/fprintftime.m4 (gl_FPRINTFTIME):
6494 * m4/fts.m4 (gl_FUNC_FTS):
6495 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
6496 * m4/getdate.m4 (gl_GETDATE):
6497 * m4/gethrxtime.m4 (gl_GETHRXTIME):
6498 * m4/getpagesize.m4 (gl_GETPAGESIZE):
6499 * m4/getpass.m4 (gl_FUNC_GETPASS):
6500 * m4/gettime.m4 (gl_GETTIME):
6501 * m4/getugroups.m4 (gl_GETUGROUPS):
6502 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
6503 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
6504 * m4/hard-locale.m4 (gl_HARD_LOCALE):
6505 * m4/hash.m4 (gl_HASH):
6506 * m4/idcache.m4 (gl_IDCACHE):
6507 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
6508 * m4/lchown.m4 (gl_FUNC_LCHOWN):
6509 * m4/long-options.m4 (gl_LONG_OPTIONS):
6510 * m4/lstat.m4 (gl_FUNC_LSTAT):
6511 * m4/md5.m4 (gl_MD5):
6512 * m4/memcasecmp.m4 (gl_MEMCASECMP):
6513 * m4/memcoll.m4 (gl_MEMCOLL):
6514 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
6515 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
6516 * m4/memxor.m4 (gl_MEMXOR):
6517 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
6518 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
6519 * m4/modechange.m4 (gl_MODECHANGE):
6520 * m4/mountlist.m4 (gl_MOUNTLIST):
6521 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6522 * m4/openat.m4 (gl_FUNC_OPENAT):
6523 * m4/pathmax.m4 (gl_PATHMAX):
6524 * m4/physmem.m4 (gl_PHYSMEM):
6525 * m4/posixtm.m4 (gl_POSIXTM):
6526 * m4/posixver.m4 (gl_POSIXVER):
6527 * m4/quote.m4 (gl_QUOTE):
6528 * m4/quotearg.m4 (gl_QUOTEARG):
6529 * m4/readtokens.m4 (gl_READTOKENS):
6530 * m4/readutmp.m4 (gl_READUTMP):
6531 * m4/regex.m4 (gl_REGEX):
6532 * m4/safe-read.m4 (gl_SAFE_READ):
6533 * m4/safe-write.m4 (gl_SAFE_WRITE):
6534 * m4/same.m4 (gl_SAME):
6535 * m4/save-cwd.m4 (gl_SAVE_CWD):
6536 * m4/savedir.m4 (gl_SAVEDIR):
6537 * m4/settime.m4 (gl_SETTIME):
6538 * m4/sha1.m4 (gl_SHA1):
6539 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
6540 * m4/stat-macros.m4 (gl_STAT_MACROS):
6541 * m4/stat-time.m4 (gl_STAT_TIME):
6542 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
6543 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
6544 * m4/strdup.m4 (gl_FUNC_STRDUP):
6545 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
6546 * m4/strndup.m4 (gl_FUNC_STRNDUP):
6547 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
6548 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
6549 * m4/time_r.m4 (gl_TIME_R):
6550 * m4/timespec.m4 (gl_TIMESPEC):
6551 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
6552 * m4/unlinkdir.m4 (gl_UNLINKDIR):
6553 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
6554 * m4/userspec.m4 (gl_USERSPEC):
6555 * m4/utimecmp.m4 (gl_UTIMECMP):
6556 * m4/utimens.m4 (gl_UTIMENS):
6557 * m4/xalloc.m4 (gl_XALLOC):
6558 * m4/xgetcwd.m4 (gl_XGETCWD):
6559 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
6560 * m4/xreadlink.m4 (gl_XREADLINK):
6561 * m4/xstrtod.m4 (gl_XSTRTOD):
6562 * m4/yesno.m4 (gl_YESNO):
6563 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
6564 to get the necessary .h files and whatnot.
6566 2006-08-21 Mark D. Baushke <mdb@gnu.org>
6567 Bruno Haible <bruno@clisp.org>
6569 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
6570 /bin/sh understanding of '!' conditional negation.
6572 2006-08-21 Jim Meyering <jim@meyering.net>
6574 * modules/openat (Depends-on): Really alphabetize.
6576 * modules/acl (Depends-on): Add error and quote.
6578 * check-module (find_included_lib_files): Add at-func.c to the
6579 ok-to-include-more-than-once white list.
6581 * modules/openat (Depends-on): Add lstat. Alphabetize.
6583 2006-08-21 Bruno Haible <bruno@clisp.org>
6585 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6586 Emit a pkgdata_DATA variable only if some snippets add contents to it.
6587 Reported by Martin Lambers <marlam@marlam.de>.
6589 2006-08-21 Bruno Haible <bruno@clisp.org>
6591 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
6592 specify an installation location, don't emit a noinst_LIBRARIES or
6593 noinst_LTLIBRARIES assignment.
6595 2006-08-21 Bruno Haible <bruno@clisp.org>
6598 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
6599 BeOS has mbrtowc() but no <wctype.h>.
6601 2006-08-21 Bruno Haible <bruno@clisp.org>
6604 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
6607 2006-08-21 Bruno Haible <bruno@clisp.org>
6610 * lib/mbchar.h: Include <wctype.h> only if it exists.
6612 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
6614 Remove files that are no longer needed by their respective modules.
6615 * m4/obstack.m4: Remove.
6616 * m4/strerror_r.m4: Remove.
6617 * m4/uint32_t.m4: Remove.
6618 * m4/uintptr_t.m4: Remove.
6619 * m4/ullong_max.m4: Remove.
6620 * m4/xstrtoimax.m4: Remove.
6621 * m4/xstrtoumax.m4: Remove.
6623 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
6624 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
6625 dependencies now capture this.
6627 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
6628 Do not use AC_LIBSOURCES, since gnulib modules now do this.
6629 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
6630 * m4/human.m4 (gl_HUMAN): Likewise.
6631 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
6632 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
6634 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
6636 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
6637 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
6639 * m4/human.m4 (gl_HUMAN): Likewise.
6640 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
6641 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
6642 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
6643 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
6644 * m4/xstrtol (gl_XSTRTOL): Likewise.
6646 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
6647 AC_TYPE_LONG_LONG_INT.
6648 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
6649 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
6650 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
6651 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
6653 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
6656 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
6657 (gl_PREREQ_XSTRTOUL): Remove.
6659 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
6661 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
6664 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
6666 Add and change modules to make it easier for coreutils to use
6668 * modules/backupfile (Files): Remove m4/d-ino.m4.
6669 (Depends-on): Add d-ino.
6670 * modules/cycle-check (Depends-on): Add stdint.
6671 (lib_SOURCES): Add cycle-check.h.
6672 * modules/d-ino: New module.
6673 * modules/d-type: New module.
6674 * modules/error (Files): Remove m4/strerror_r.m4.
6675 * modules/filemode (Files): Add m4/st_dm_mode.m4.
6676 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6677 m4/inttypes_h.m4, m4/uintmax_t.m4.
6678 (Depends-on): Add stdint.
6679 (lib_SOURCES): Add fsusage.h.
6680 * modules/getcwd (Files): Remove d-ino.m4.
6681 (Depends-on): Add d-ino.
6682 * modules/getndelim2 (Depends-on): Add stdint.
6683 * modules/glob (Files): Remove m4/d-type.m4.
6684 (Depends-on): Add d-type.
6685 * modules/host-os: New module.
6686 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6687 m4/inttypes_h.m4, m4/uintmax_t.m4.
6688 * Depends-on: Add stdint.
6689 (lib_SOURCES): Add human.h.
6690 * modules/inttostr (Files): Remove m4/intmax_t.m4,
6691 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
6692 m4/uintmax_t.m4, m4/ulonglong.m4.
6693 (Depends-on): Add stdint.
6694 (EXTRA_DIST): Add inttostr.h.
6695 * modules/lchmod: New module.
6696 * modules/link-follow: New module.
6697 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
6698 (Depends-on): Add lchmod.
6699 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
6700 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
6701 (Depends-on): Add stdint.
6702 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
6703 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
6704 (Depends-on): Add stdint.
6705 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
6706 * modules/perl: New module.
6707 * modules/regex (Depends-on): Add stdint.
6708 * modules/rmdir-errno: New module.
6709 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6711 (Depends-on): Add stdint.
6712 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6714 (Depends-on): Add stdint.
6715 * modules/unlink-busy: New module.
6716 * modules/utimecmp (Depends-on): Add stdint.
6717 * modules/uptime: New module.
6718 * modules/winsz-ioctl: New module.
6719 * modules/winsz-termios: New module.
6720 * modules/xnanosleep (Depends-on): Add nanosleep.
6721 * modules/ullong_max: Remove.
6722 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
6723 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
6724 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
6725 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
6726 (Depends-on): Add inttypes.
6727 (lib_SOURCES): Add xstrtol.h.
6728 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
6729 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
6730 * MODULES.html.sh: Move 'assert' into the assert section.
6731 Move 'dummy' into the linking section.
6733 Add section for compatibility checks for POSIX:2001 functions,
6734 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
6735 winsz-ioctl, and winsz-termios into it.
6737 Add top-level Misc section and put host-os, perl, and uptime
6740 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
6742 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
6743 now assume the stdint module. Do not include inttypes.h.
6744 * lib/fsusage.h: Likewise.
6745 * lib/getndelim2.c: Likewise.
6746 * lib/human.h: Likewise.
6747 * lib/inttostr.h: Likewise.
6748 * lib/obstack.c: Likewise.
6749 * lib/regex_internal.h: Likewise.
6750 * lib/tempname.c: Likewise.
6751 * lib/utimecmp.c: Likewise.
6752 * lib/xstrtol.h: Likewise.
6754 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
6756 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
6757 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
6758 * lib/xtime.h: Likewise.
6760 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
6762 * modules/openat (Files): Add lib/fchmodat.c.
6763 Fixes problem reported by Jay Youngman.
6765 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
6767 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
6768 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
6770 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
6771 Bruno Haible <bruno@clisp.org>
6773 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
6774 and is a script that invokes bison. Tighten the code. Add comments.
6776 2006-08-18 Jim Meyering <jim@meyering.net>
6778 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
6779 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
6780 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
6781 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
6783 2006-08-18 Bruno Haible <bruno@clisp.org>
6785 * modules/bison-i18n: New file.
6786 * MODULES.html.sh (Internationalization functions): Add it.
6788 2006-08-18 Bruno Haible <bruno@clisp.org>
6790 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
6791 sys/statvfs.h. When getmntinfo was found, check its declaration and
6792 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
6794 2006-08-18 Bruno Haible <bruno@clisp.org>
6796 * m4/bison-i18n.m4: New file, from bison.
6798 2006-08-18 Bruno Haible <bruno@clisp.org>
6800 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
6801 (ME_DUMMY): Treat "kernfs" as a dummy.
6802 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
6804 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
6806 Update from coreutils.
6808 2006-08-15 Jim Meyering <jim@meyering.net>
6810 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
6812 2006-01-17 Jim Meyering <jim@meyering.net>
6814 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
6816 2006-01-11 Jim Meyering <jim@meyering.net>
6818 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
6819 Check for the lchmod function.
6821 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
6823 Update from coreutils.
6825 * lib/__fpending.h: Add copyright notice.
6826 * lib/fprintftime.h: Likewise.
6827 * lib/savedir.c: Use (C) in copyright notice.
6828 * lib/savedir.h: Likewise.
6830 2006-08-15 Jim Meyering <jim@meyering.net>
6832 * lib/at-func.c: New file, with the logic of all emulated at-functions.
6833 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
6834 in support of the EXPECTED_ERRNO macro.
6835 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
6836 definitions. Instead, define the appropriate symbols and include
6838 * lib/mkdirat.c (mkdirat): Likewise.
6839 * lib/fchmodat.c (fchmodat): Likewise.
6840 (ENOSYS): Remove definition.
6841 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
6842 it. Don't include "unistd--.h" -- it wasn't ever used.
6844 2006-01-17 Jim Meyering <jim@meyering.net>
6846 Rewrite fts.c not to change the current working directory,
6847 by using openat, fstatat, fdopendir, etc..
6849 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
6850 (HAVE_OPENAT_SUPPORT): Define.
6851 [_LIBC] (fchdir): Don't undef or define; no longer used.
6852 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
6853 Now, this `function' always succeeds, and consumes its file descriptor
6854 parameter -- so callers must not close such FDs. Update callers.
6855 (diropen_fd, opendirat, cwd_advance_fd): New functions.
6856 (diropen): Add parameter, SP. Adjust all callers.
6857 Implement using diropen_fd, rather than open.
6858 (fts_open): Initialize new member, fts_cwd_fd.
6859 Remove fts_rft-setting code.
6860 (fts_close): Close fts_cwd_fd, if necessary.
6861 (__opendir2): Define in terms of opendir or opendirat,
6862 depending on whether the FST_NOCHDIR flag is set.
6863 (fts_build): Since fts_safe_changedir consumes its FD, and since
6864 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
6865 and close the dup'd file descriptor upon failure.
6866 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
6867 (fts_safe_changedir): Tweak semantics to reflect that this function
6868 now calls cwd_advance_fd and hence consumes its FD argument.
6869 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
6870 [struct FTS] (fts_rft): Remove now-unused member.
6871 [struct FTS] (fts_cycle.state): Improve comment.
6873 * lib/openat.c (openat_needs_fchdir): New function.
6874 * lib/openat.h (openat_needs_fchdir): Declare it.
6876 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
6878 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
6879 Problem and fix reported by Pádraig Brady in
6880 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
6882 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6884 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
6886 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6888 * lib/memcoll.c (memcoll): Optimize for the common case where the
6889 arguments are bytewise equal.
6891 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
6893 * doc/regexprops-generic.texi: Add a copyright notice.
6895 2006-08-15 Bruno Haible <bruno@clisp.org>
6897 * modules/tmpdir (License): Change to LGPL.
6899 2006-08-15 Bruno Haible <bruno@clisp.org>
6901 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
6904 2006-08-14 Simon Josefsson <jas@extundo.com>
6906 * config/srclist.txt: Add gnupload.
6908 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6910 Change copyright notice from LGPL 2 to GPL 2, since that's the
6911 standard form used in the gnulib repository.
6912 * tests/test-lock.c: Likewise.
6913 * tests/test-stdint.c: Likewise.
6914 * tests/test-tls.c: Likewise.
6916 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
6917 prelude-manager. User shorter URLs for GNU projects, without '?'.
6918 Add copyright notice.
6920 * check-module: Add copyright notice. Output a copyright
6921 notice if "--version" is specified.
6922 * modules/COPYING: New file.
6923 * tests/test-getaddrinfo.c: Add copyright notice.
6924 * tests/test-verify.c: Likewise.
6926 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6928 Change copyright notice from LGPL 2 to GPL 2, since that's the
6929 standard form used in the gnulib repository.
6930 * lib/lock.c: LGPL -> GPL.
6931 * lib/lock.h: Likewise.
6932 * lib/strnlen1.c: Likewise.
6933 * lib/strnlen1.h: Likewise.
6934 * lib/tls.c: Likewise.
6935 * lib/tls.h: Likewise.
6936 * lib/tmpdir.c: Likewise.
6938 * lib/TODO: Remove; this belongs only in coreutils.
6940 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6942 Add copyright notices to long-enough files that lack them, since
6943 otherwise the files aren't clearly free. Use the same notice that
6944 getdate.texi already uses.
6945 * doc/alloca-opt.texi: Add copyright notice.
6946 * doc/alloca.texi: Likewise.
6947 * doc/ctime.texi: Likewise.
6948 * doc/functions.texi: Likewise.
6949 * doc/gcd.texi: Likewise.
6950 * doc/gnulib-tool.texi: Likewise.
6951 * doc/inet_ntoa.texi: Likewise.
6952 * doc/visibility.texi: Likewise.
6954 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
6955 * doc/quote.texi: Add copyright notice.
6957 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
6958 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
6959 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
6960 Mention SunOS 5.11. Mention that everything before SunOS 5.7
6961 is now obsolete, and give a pointer to the Sun list.
6962 Add copyright notice.
6964 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
6966 * config/srclistvars.sh: Add copyright notice.
6968 2006-08-14 Eric Blake <ebb9@byu.net>
6970 Import the following change from libc:
6972 2006-08-12 Ulrich Drepper <drepper@redhat.com>
6975 * lib/misc/error.c: Add space between program name and message if file
6978 2006-08-12 Karl Berry <karl@gnu.org>
6980 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
6981 remove, these originate in gnulib now.
6983 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6985 * doc/Makefile (standards.info standards.html standards.dvi):
6986 Also depend on make-stds.texi.
6988 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
6990 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
6991 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
6993 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
6994 in wchar_t. Problem reported by Eric Blake.
6996 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
6997 LEN is smaller than SIZE. Suggested by Bruno Haible.
6998 Also, help the compiler to keep LEN in a register.
7000 2006-08-11 Eric Blake <ebb9@byu.net>
7002 * users.txt: Sort. Add tar.
7004 2006-08-11 Bruno Haible <bruno@clisp.org>
7006 * users.txt: New file.
7008 2006-08-11 Bruno Haible <bruno@clisp.org>
7010 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
7011 before <wchar.h>. Needed for OSF/1 and BSD/OS.
7013 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
7015 * modules/snprintf (Depends-on): Remove minmax.
7016 (Maintainer): Add self and Bruno.
7018 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
7020 * lib/.cppi-disable: Add snprintf.h, socket_.h.
7021 * lib/snprintf.c: Include <errno.h> and <limits.h>.
7022 (EOVERFLOW): Define if the system does not.
7023 Do not include "minmax.h"; it wasn't used.
7024 (snprintf): Don't assume size_t promotes to an unsigned type.
7025 Fix bug when generated string was too long for the buffer: the
7026 buffer's contents are supposed to be the initial prefix of the
7027 output. Don't assume vasnprintf returns EOVERFLOW if the size
7028 exceeds INT_MAX; do the check ourselves.
7030 Import the following changes from libc:
7032 2006-06-02 Jakub Jelinek <jakub@redhat.com>
7034 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
7035 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
7036 set wc to the byte which couldn't be converted.
7037 (re_string_reconstruct): Don't clear valid_raw_len before calling
7038 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
7039 tip_context using re_string_context_at.
7041 2006-05-02 Ulrich Drepper <drepper@redhat.com>
7043 * lib/posix/regex.h: g++ still cannot handled [restrict].
7045 2006-04-21 Ulrich Drepper <drepper@redhat.com>
7047 * lib/posix/regex.h: Remove special handling for VMS.
7049 2006-08-10 Jim Meyering <jim@meyering.net>
7051 * modules/same-inode: New module.
7052 * modules/dev-ino: New module.
7053 * modules/cycle-check: Depend on these modules, rather than simply
7054 including their .h files.
7055 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
7056 required via m4/cycle-check.m4.
7057 * modules/same: Depend on new same-inode module, rather than
7058 including same-inode.h.
7059 * modules/chdir-safer: New file.
7061 * modules/chown (Depends-on): Add stat-macros.
7063 2006-08-10 Jim Meyering <jim@meyering.net>
7065 * m4/cycle-check.m4: New file.
7066 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
7067 * m4/dev-ino.m4, m4/same-inode.m4: New files.
7069 2006-08-10 Eric Blake <ebb9@byu.net>
7071 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
7072 in from original proposal.
7074 2006-08-10 Eric Blake <ebb9@byu.net>
7075 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7077 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
7080 2006-08-10 Bruno Haible <bruno@clisp.org>
7082 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
7085 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7087 Sync from coreutils.
7089 2006-07-19 Mike Frysinger <vapier@gentoo.org>
7091 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
7092 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
7094 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7096 * modules/restrict: Remove; no longer needed now that we assume
7097 Autoconf 2.59 or later.
7098 * MODULES.html.sh: Remove 'restrict'.
7099 * modules/argp (Depends-on): Remove 'restrict'.
7100 * modules/base64 (Depends-on): Likewise.
7101 * modules/gc (Depends-on): Likewise.
7102 * modules/getaddrinfo (Depends-on): Likewise.
7103 * modules/glob (Depends-on): Likewise.
7104 * modules/inet_ntop (Depends-on): Likewise.
7105 * modules/inet_pton (Depends-on): Likewise.
7106 * modules/memxor (Depends-on): Likewise.
7107 * modules/regex (Depends-on): Likewise.
7108 * modules/strtok_r (Depends-on): Likewise.
7109 * modules/time_r (Depends-on): Likewise.
7111 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
7113 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
7114 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
7115 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7116 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
7117 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7118 * m4/memxor.m4 (gl_MEMXOR): Likewise.
7119 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
7120 gl_C_RESTRICT replaced by AC_C_RESTRICT.
7122 Merge from coreutils.
7123 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
7124 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
7125 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7126 * m4/time_r.m4 (gl_TIME_R): Likewise.
7128 2006-08-09 Karl Berry <karl@gnu.org>
7130 * config/srclist.txt: no more gettext-tools, per Bruno.
7132 2006-08-08 Eric Blake <ebb9@byu.net>
7134 * modules/verror: New module.
7135 * MODULES.html.sh: Document it.
7137 2006-08-08 Eric Blake <ebb9@byu.net>
7139 * lib/verror.h, lib/verror.c: New files.
7141 2006-08-08 Eric Blake <ebb9@byu.net>
7143 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
7144 verror_at_line output complies with GNU Coding Standards even when
7147 2006-08-07 Bruno Haible <bruno@clisp.org>
7149 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
7151 Reported by Ralf Wildenhues.
7153 2006-08-07 Bruno Haible <bruno@clisp.org>
7155 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
7156 in an AC_DEFUN. Needed so that the autoconf snippets can use
7159 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7161 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7162 Initialize pkgdata_DATA.
7163 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
7166 2006-08-06 Eric Blake <ebb9@byu.net>
7168 * lib/error.h: Fold in some upstream changes from glibc.
7169 * lib/error.c: Likewise.
7171 2006-08-04 Bruno Haible <bruno@clisp.org>
7173 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7174 Make the mostlyclean-local rule depend on mostlyclean-generic.
7175 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
7177 2006-07-31 Bruno Haible <bruno@clisp.org>
7179 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
7180 <stdlib.h>, <string.h>.
7182 2006-07-30 Bruno Haible <bruno@clisp.org>
7184 * modules/readlink (License): Change to LGPL.
7186 2006-07-30 Bruno Haible <bruno@clisp.org>
7188 * modules/javaversion (Makefile.am): Distribute javaversion.java and
7189 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
7190 set PKGDATADIR to point to it.
7192 2006-07-30 Bruno Haible <bruno@clisp.org>
7194 * modules/csharpexec (configure.ac): Comment out macro invocation.
7195 * modules/javaexec (configure.ac): Likewise.
7196 * modules/javacomp-script (configure.ac): Likewise.
7198 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
7200 2006-07-30 Bruno Haible <bruno@clisp.org>
7202 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
7205 2006-07-30 Bruno Haible <bruno@clisp.org>
7207 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
7209 2006-07-30 Bruno Haible <bruno@clisp.org>
7211 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7212 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
7215 2006-07-29 Bruno Haible <bruno@clisp.org>
7217 Make it possible for gnulib-tool to work with locally modified or
7218 augmented gnulib repositories.
7219 * gnulib-tool (func_usage): Document --local-dir option.
7220 (local_gnulib_dir): New variable.
7221 Handle --local-dir option.
7222 (func_lookup_file): New function.
7223 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
7224 (func_get_description, func_get_filelist, func_get_description,
7225 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
7226 func_get_automake_snippet, func_get_include_directive,
7227 func_get_license, func_get_maintainer): Use func_lookup_file.
7228 (func_import, func_create_testdir): Use func_lookup_file.
7230 2006-07-29 Bruno Haible <bruno@clisp.org>
7232 * modules/setenv (Depends-on): Add unistd.
7234 2006-07-29 Bruno Haible <bruno@clisp.org>
7236 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
7238 2006-07-29 Bruno Haible <bruno@clisp.org>
7240 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
7242 2006-07-29 Bruno Haible <bruno@clisp.org>
7244 * gnulib-tool (import, update): If there is no Makefile.am, look at
7245 aclocal.m4, instead of bailing out.
7247 2006-07-29 Bruno Haible <bruno@clisp.org>
7249 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
7250 Categorize the options by when they are useful.
7252 2006-07-29 Bruno Haible <bruno@clisp.org>
7254 * gnulib-tool (func_usage): Document option --no-libtool.
7255 Handle option --no-libtool.
7256 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
7257 for changed semantics of $libtool variable.
7258 (func_import): Likewise. If libtool is not used, show this through
7259 an option --no-libtool.
7260 (func_create_testdir): Update.
7262 2006-07-29 Bruno Haible <bruno@clisp.org>
7264 * gnulib-tool (func_import): Extend error message about missing
7267 2006-07-29 Bruno Haible <bruno@clisp.org>
7269 * gnulib-tool (func_import): Don't create the $docbase directory if
7270 there is no file to store there.
7272 2006-07-29 Bruno Haible <bruno@clisp.org>
7274 * gnulib-tool (autoconf_minversion): If a --dir option is given and
7275 relevant, look for configure.ac there, not in the current directory.
7276 Also use a simple search for AC_PREREQ, not "autoconf --trace".
7278 2006-07-29 Bruno Haible <bruno@clisp.org>
7280 * gnulib-tool (SORT): New variable.
7281 (func_usage): Undocument --assume-autoconf option.
7282 Remove --assume-autoconf option handling.
7283 (autoconf_minversion): Determine from the contents of configure.ac.
7284 (func_import): Remove autoconf_minversion handling.
7285 Suggested by Eric Blake.
7287 2006-07-29 Bruno Haible <bruno@clisp.org>
7289 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
7291 2006-07-29 Bruno Haible <bruno@clisp.org>
7293 * config/srclist.txt (*setenv.[ch]): Remove rules.
7295 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7297 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
7299 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7301 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
7304 2006-07-28 Simon Josefsson <jas@extundo.com>
7306 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
7307 * modules/inet_pton (Depends-on): Likewise.
7309 2006-07-28 Simon Josefsson <jas@extundo.com>
7311 * m4/netinet_in_h.m4: New file.
7313 2006-07-28 Simon Josefsson <jas@extundo.com>
7315 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
7318 2006-07-28 Simon Josefsson <jas@extundo.com>
7320 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
7323 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
7325 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
7326 setgid on directories only if they set these bits.
7327 * lib/modechange.h: Remove obsolete comment about masks.
7329 2006-07-28 Eric Blake <ebb9@byu.net>
7331 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
7334 2006-07-28 Bruno Haible <bruno@clisp.org>
7336 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
7338 2006-07-28 Bruno Haible <bruno@clisp.org>
7340 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
7342 2006-07-28 Bruno Haible <bruno@clisp.org>
7344 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7345 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
7347 Avoids link error on FreeBSD 4.x.
7348 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7350 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
7352 * lib/mbswidth.c (iswcntrl): Likewise.
7354 2006-07-27 Bruno Haible <bruno@clisp.org>
7356 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
7359 2006-07-27 Bruno Haible <bruno@clisp.org>
7361 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
7362 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
7365 2006-07-26 Eric Blake <ebb9@byu.net>
7367 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
7369 2006-07-26 Eric Blake <ebb9@byu.net>
7371 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
7372 like mingw that lack mkstemp.
7373 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
7374 avoid compilation warning on mingw.
7376 2006-07-26 Bruno Haible <bruno@clisp.org>
7378 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
7379 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
7380 INT_FAST*_MIN, INTPTR_MIN.
7382 2006-07-25 Bruno Haible <bruno@clisp.org>
7384 * modules/version-etc (Depends-on): Add stdarg.
7386 2006-07-25 Bruno Haible <bruno@clisp.org>
7388 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
7391 2006-07-25 Bruno Haible <bruno@clisp.org>
7393 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
7394 defined in <stdarg.h> or config.h.
7396 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7398 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
7399 (gl_STDIO_SAFER): Remove.
7401 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
7403 * MODULES.html.sh (File stream based Input/Output):
7404 Add fopen-safer, tmpfile-safer; remove stdio-safer.
7405 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
7406 * modules/fopen-safer, modules/tmpfile-safer: New files.
7407 * modules/stdio-safer: Remove.
7409 2006-07-24 Bruno Haible <bruno@clisp.org>
7411 * modules/tmpdir: New file.
7412 * MODULES.html.sh (File system functions): Add it.
7414 2006-07-24 Bruno Haible <bruno@clisp.org>
7416 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
7417 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
7419 2006-07-24 Bruno Haible <bruno@clisp.org>
7421 * modules/clean-temp: New file.
7423 2006-07-24 Bruno Haible <bruno@clisp.org>
7425 * m4/tmpdir.m4: New file, from GNU gettext.
7427 2006-07-24 Bruno Haible <bruno@clisp.org>
7429 * lib/tmpdir.h: New file, from GNU gettext.
7430 * lib/tmpdir.c: New file, from GNU gettext.
7432 2006-07-24 Bruno Haible <bruno@clisp.org>
7434 * lib/clean-temp.h: New file, from GNU gettext.
7435 * lib/clean-temp.c: New file, from GNU gettext.
7437 2006-07-23 Eric Blake <ebb9@byu.net>
7439 * modules/stdio-safer (Files): Add tmpfile-safer.c.
7440 (Depends-on): Add binary-io.
7442 2006-07-23 Eric Blake <ebb9@byu.net>
7444 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
7446 2006-07-23 Eric Blake <ebb9@byu.net>
7448 * lib/tmpfile-safer.c: New file.
7449 * lib/stdio-safer.h (fopen_safer): Add prototype.
7450 * lib/stdio--.h (tmpfile): Make safer.
7452 2006-07-23 Bruno Haible <bruno@clisp.org>
7454 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
7455 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
7456 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
7457 gl_linked_remove_at): Use it.
7459 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7460 and Simon Josefsson <jas@extundo.com>
7462 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
7464 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
7466 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
7468 * modules/close-stream: New file.
7469 * modules/closeout (Description): Make it clear that it exits
7470 with a diagnostic on error.
7471 (Depends-on): Add close-stream. Remove fpending, stdbool.
7472 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
7474 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
7476 * m4/close-stream.m4: New file.
7478 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
7480 * lib/close-stream.c, lib/close-stream.h: New files.
7482 2006-07-22 Bruno Haible <bruno@clisp.org>
7484 Merge from GNU gettext 0.15.
7486 2006-05-01 Bruno Haible <bruno@clisp.org>
7488 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
7490 2006-07-22 Bruno Haible <bruno@clisp.org>
7492 * modules/javaversion: New file.
7493 * MODULES.html.sh (Java): Add javaversion.
7495 2006-03-12 Bruno Haible <bruno@clisp.org>
7497 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
7499 2005-12-04 Bruno Haible <bruno@clisp.org>
7501 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
7504 2006-06-21 Bruno Haible <bruno@clisp.org>
7506 Avoid warnings from recent versions of mcs.
7507 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
7508 -o, -L, -r any more. Use options documented since mcs-1.0
7509 instead. Similarly for -g.
7511 2005-12-04 Bruno Haible <bruno@clisp.org>
7513 * build-aux/csharpcomp.sh.in: Suffix for resources is
7514 .resources, not .resource.
7516 2005-07-09 Bruno Haible <bruno@clisp.org>
7518 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
7520 Reported by Mark Junker <mjscod@gmx.de>.
7522 2006-07-22 Bruno Haible <bruno@clisp.org>
7524 * modules/gettext: Upgrade to gettext-0.15.
7525 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
7527 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
7529 2006-07-22 Bruno Haible <bruno@clisp.org>
7531 Merge from GNU gettext 0.15.
7533 2006-03-25 Bruno Haible <bruno@clisp.org>
7535 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
7537 2006-07-21 Bruno Haible <bruno@clisp.org>
7539 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
7542 2006-05-09 Bruno Haible <bruno@clisp.org>
7544 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
7545 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
7546 for the conftestver execution.
7548 2006-05-01 Bruno Haible <bruno@clisp.org>
7550 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
7551 optional target-version argument. Verify that the compiler
7552 groks source of the specified source-version, or add -source
7553 option as necessary. Verify that the compiler produces
7554 bytecode in the specified target-version, or add -target and
7555 -source options as necessary. Make the result of the test
7556 available as variable CONF_JAVAC. Also log error output in
7559 2006-03-11 Bruno Haible <bruno@clisp.org>
7561 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
7563 2006-05-09 Bruno Haible <bruno@clisp.org>
7565 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
7566 CLASSPATH_SEPARATOR to a semicolon.
7568 2006-03-12 Bruno Haible <bruno@clisp.org>
7570 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
7571 available as variable CONF_JAVA, for subsequent autoconf
7572 tests. Also log error output in config.log.
7574 2006-07-19 Bruno Haible <bruno@clisp.org>
7576 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
7577 that getline works on glibc2 systems. Needed to avoid trouble
7579 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
7581 2005-12-04 Bruno Haible <bruno@clisp.org>
7583 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
7584 launcher (untested).
7586 2005-12-04 Bruno Haible <bruno@clisp.org>
7588 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
7590 2006-07-22 Bruno Haible <bruno@clisp.org>
7592 * gettext.m4: Update from GNU gettext-0.15.
7595 * inttypes-pri.m4: Likewise.
7596 * inttypes-h.m4: Renamed from inttypes.m4.
7597 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
7599 2006-07-22 Bruno Haible <bruno@clisp.org>
7601 Merge from GNU gettext 0.15.
7603 2005-07-05 Bruno Haible <bruno@clisp.org>
7605 * printf-args.c (printf_fetchargs): Work around broken
7606 definition of wint_t on mingw.
7608 2005-02-12 Bruno Haible <bruno@clisp.org>
7610 * xallocsa.h: Add extern "C" for C++.
7612 2006-05-17 Bruno Haible <bruno@clisp.org>
7615 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
7617 2006-04-30 Bruno Haible <bruno@clisp.org>
7619 * progreloc.c: Include <mach-o/dyld.h> if available.
7620 (find_executable): Use _NSGetExecutablePath when possible.
7622 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
7624 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
7627 2005-12-29 Bruno Haible <bruno@clisp.org>
7629 * progreloc.c (set_program_name_and_installdir): Fix
7632 2005-12-04 Bruno Haible <bruno@clisp.org>
7635 * progreloc.c: Include <windows.h> also on Cygwin.
7636 (find_executable): Add support for Cygwin.
7637 (set_program_name_and_installdir): Handle also platforms with
7640 2006-07-11 Bruno Haible <bruno@clisp.org>
7642 * javacomp.c: Fix a comment.
7643 Reported by Jim Meyering.
7645 2006-04-30 Bruno Haible <bruno@clisp.org>
7647 * javacomp.h (compile_java_class): Add source_version,
7648 target_version arguments.
7649 * javacomp.c: Rewritten to choose only a compiler that
7650 respects the specified source_version and target_version.
7652 2006-06-27 Bruno Haible <bruno@clisp.org>
7654 Assume correct S_ISDIR macro.
7655 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
7657 2006-07-22 Bruno Haible <bruno@clisp.org>
7659 * javaversion.h: New file, from GNU gettext.
7660 * javaversion.c: New file, from GNU gettext.
7661 * javaversion.java: New file, from GNU gettext.
7662 * javaversion.class: New file, from GNU gettext.
7664 2006-05-17 Bruno Haible <bruno@clisp.org>
7667 * javaexec.c (execute_java_class): Test for jview program
7670 2006-04-09 Bruno Haible <bruno@clisp.org>
7672 * fatal-signal.c: Don't include string.h.
7673 (at_fatal_signal): Use a copying loop instead of memcpy.
7675 2005-12-04 Bruno Haible <bruno@clisp.org>
7677 * csharpexec.c: Add support for 'clix' launcher (untested).
7678 (execute_csharp_using_sscli): New function.
7679 (execute_csharp_program): Call it.
7681 2006-06-21 Bruno Haible <bruno@clisp.org>
7683 Avoid warnings from recent versions of mcs.
7684 * csharpcomp.c (compile_csharp_using_mono): Don't use options
7685 -o, -L, -r any more. Use options documented since mcs-1.0
7686 instead. Similarly for -g.
7688 2005-07-09 Bruno Haible <bruno@clisp.org>
7690 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
7692 Reported by Mark Junker <mjscod@gmx.de>.
7694 2006-06-17 Bruno Haible <bruno@clisp.org>
7696 * config.charset: Update for NetBSD 3.0.
7698 2006-05-17 Bruno Haible <bruno@clisp.org>
7701 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
7703 2006-05-16 Bruno Haible <bruno@clisp.org>
7705 * localcharset.c [CYGWIN]: Include <windows.h>.
7706 (get_charset_aliases): For Cygwin, return the same CPxxx
7707 aliases list as under WIN32.
7708 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
7709 the environment variables. Fall back to GetACP().
7711 2006-04-05 Bruno Haible <bruno@clisp.org>
7713 * config.charset: Update Juan Manuel Guerrero's address.
7715 2005-02-12 Bruno Haible <bruno@clisp.org>
7717 * allocsa.h: Add extern "C" for C++.
7719 2005-02-10 Bruno Haible <bruno@clisp.org>
7721 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
7722 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
7724 2006-07-22 Bruno Haible <bruno@clisp.org>
7726 * gettext.h: Update to GNU gettext-0.15.
7728 2006-07-22 Bruno Haible <bruno@clisp.org>
7730 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
7731 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
7732 lib-prefix.m4, longdouble.m4, ssize_t.m4.
7734 2006-07-21 Eric Blake <ebb9@byu.net>
7736 * modules/stdlib-safer: New file.
7737 * MODULES.html.sh (File stream based Input/Output): Add
7740 2006-07-21 Eric Blake <ebb9@byu.net>
7742 * lib/stdlib-safer.h: New file from coreutils, required by
7745 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
7747 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
7749 2006-07-20 Bruno Haible <bruno@clisp.org>
7751 * gnulib-tool: Recognize new option --assume-autoconf.
7752 (autoconf_minversion): New variable.
7753 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
7755 2006-07-20 Bruno Haible <bruno@clisp.org>
7757 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
7759 2006-07-19 Derek R. Price <derek@ximbiot.com>
7761 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
7762 Reindent and repaginate.
7764 2006-07-19 Derek Price <derek@ximbiot.com>
7766 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
7769 2006-07-17 Bruno Haible <bruno@clisp.org>
7771 * modules/list: New file.
7772 * modules/array-list: New file.
7773 * modules/carray-list, modules/carray-list-tests: New files.
7774 * modules/linked-list, modules/linked-list-tests: New files.
7775 * modules/avltree-list, modules/avltree-list-tests: New files.
7776 * modules/rbtree-list, modules/rbtree-list-tests: New files.
7777 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
7778 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
7779 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
7780 * modules/oset: New file.
7781 * modules/array-oset: New file.
7782 * modules/avltree-oset, modules/avltree-oset-tests: New files.
7783 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
7784 * tests/test-carray_list.c: New file.
7785 * tests/test-linked_list.c: New file.
7786 * tests/test-avltree_list.c: New file.
7787 * tests/test-rbtree_list.c: New file.
7788 * tests/test-linkedhash_list.c: New file.
7789 * tests/test-avltreehash_list.c: New file.
7790 * tests/test-rbtreehash_list.c: New file.
7791 * tests/test-avltree_oset.c: New file.
7792 * tests/test-rbtree_oset.c: New file.
7793 * MODULES.html.sh (Container data structures): New section.
7795 2006-07-17 Bruno Haible <bruno@clisp.org>
7797 * m4/gl_list.m4: New file.
7799 2006-07-17 Bruno Haible <bruno@clisp.org>
7801 * lib/gl_list.h: New file.
7802 * lib/gl_list.c: New file.
7803 * lib/gl_array_list.h: New file.
7804 * lib/gl_array_list.c: New file.
7805 * lib/gl_carray_list.h: New file.
7806 * lib/gl_carray_list.c: New file.
7807 * lib/gl_linked_list.h: New file.
7808 * lib/gl_linked_list.c: New file.
7809 * lib/gl_anylinked_list1.h: New file.
7810 * lib/gl_anylinked_list2.h: New file.
7811 * lib/gl_avltree_list.h: New file.
7812 * lib/gl_avltree_list.c: New file.
7813 * lib/gl_anyavltree_list1.h: New file.
7814 * lib/gl_anyavltree_list2.h: New file.
7815 * lib/gl_rbtree_list.h: New file.
7816 * lib/gl_rbtree_list.c: New file.
7817 * lib/gl_anyrbtree_list1.h: New file.
7818 * lib/gl_anyrbtree_list2.h: New file.
7819 * lib/gl_anytree_list1.h: New file.
7820 * lib/gl_anytree_list2.h: New file.
7821 * lib/gl_linkedhash_list.h: New file.
7822 * lib/gl_linkedhash_list.c: New file.
7823 * lib/gl_anyhash_list1.h: New file.
7824 * lib/gl_anyhash_list2.h: New file.
7825 * lib/gl_avltreehash_list.h: New file.
7826 * lib/gl_avltreehash_list.c: New file.
7827 * lib/gl_rbtreehash_list.h: New file.
7828 * lib/gl_rbtreehash_list.c: New file.
7829 * lib/gl_anytreehash_list1.h: New file.
7830 * lib/gl_anytreehash_list2.h: New file.
7832 * lib/gl_oset.h: New file.
7833 * lib/gl_oset.c: New file.
7834 * lib/gl_array_oset.h: New file.
7835 * lib/gl_array_oset.c: New file.
7836 * lib/gl_avltree_oset.h: New file.
7837 * lib/gl_avltree_oset.c: New file.
7838 * lib/gl_rbtree_oset.h: New file.
7839 * lib/gl_rbtree_oset.c: New file.
7840 * lib/gl_anytree_oset.h: New file.
7842 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
7844 * m4/mkancesdirs.m4: New file.
7845 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
7846 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
7847 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
7850 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
7852 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
7853 * lib/mkancesdirs.h: New files.
7854 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
7855 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
7856 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
7857 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
7858 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
7859 callers changed. Revamp internals significantly, by not
7860 attempting to create directories that are temporarily more
7861 permissive than the final results. Do not attempt to use
7862 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
7863 This removes some race conditions, fixes some bugs, and simplifies
7864 things. Use new dirchownmod function to do owner and mode changes.
7865 * lib/mkdir-p.h: Likewise.
7866 * lib/modechange.c (octal_to_mode): New function.
7867 (struct mode_change): New member mentioned.
7868 (make_node_op_equals): New arg mentioned. All callers changed.
7869 (mode_compile): Keep track of which mode bits the user has explicitly
7871 (mode_adjust): New arg DIR, so that we implement the X op correctly.
7872 New arg PMODE_BITS, to keep track of which mode bits the user
7873 mentioned; it treats S_ISUID and S_ISGID speciall.
7874 All callers changed.
7875 * lib/modechange.h: Likewise.
7877 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
7879 * MODULES.html.sh: Add mkancestors.
7880 * modules/mkancesdirs: New module.
7881 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
7882 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
7883 The chdir-safer and afs files are now orphans; I'll remove them
7884 unless someone speaks up.
7885 Add lib/dirchownmod.c, lib/dirchownmod.h.
7886 (Depends-on): Remove alloca, chown, save-cwd, dirname.
7887 Add lchown, mkancesdirs.
7888 (Maintainer): Add self.
7890 2006-07-15 Karl Berry <karl@gnu.org>
7892 * gnulib-tool: help message wording/arrangement.
7894 2006-07-14 Simon Josefsson <jas@extundo.com>
7896 * doc/gnulib.texi (Libtool and Windows): New section.
7898 2006-07-12 Simon Josefsson <jas@extundo.com>
7900 * modules/gendocs (License): Fix license, approved by Karl.
7902 2006-07-12 Eric Blake <ebb9@byu.net>
7904 * MODULES.html.sh: Add gendocs.
7906 2006-07-11 Eric Blake <ebb9@byu.net>
7908 * modules/fdl: New module, to install doc/fdl.texi.
7909 * MODULES.html.sh: Add new section for documentation modules.
7910 * gnulib-tool: Avoid space-tab.
7911 (--doc-base): New option, to manage files from doc.
7913 2006-07-11 Eric Blake <ebb9@byu.net>
7915 * m4/absolute-header.m4: Fix comments to match recent change.
7917 2006-07-11 Eric Blake <ebb9@byu.net>
7919 * gnulib-tool: List --doc-base before --tests-base.
7921 2006-07-11 Derek R. Price <derek@ximbiot.com>
7923 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
7925 2006-07-11 Bruno Haible <bruno@clisp.org>
7927 * README: Mention where to put documentation.
7929 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7931 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
7933 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
7935 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
7938 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
7940 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
7941 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
7942 "no/such/file/stdint.h" when there is no such file, so that
7943 the resulting C code can be parsed by dodgy compilers.
7944 Problems reported by Bob Proulx.
7946 2006-07-10 Derek R. Price <derek@ximbiot.com>
7948 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
7949 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
7950 macros into the GNU _D_EXACT_NAMLEN.
7951 * lib/savedir.c: Likewise.
7952 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
7954 2006-07-10 Derek R. Price <derek@ximbiot.com>
7955 and Paul Eggert <eggert@cs.ucla.edu>
7957 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
7959 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
7960 macros into the GNU _D_EXACT_NAMLEN.
7962 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
7964 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
7965 around the absolute name, to work around a problem with the HP-UX
7966 11.23 native C compiler, reported by Bob Proulx.
7968 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
7970 * doc/maintain.texi, make-stds.texi: Sync from
7971 <http://savannah.gnu.org/projects/gnustandards>.
7973 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
7975 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
7977 2006-07-09 Jim Meyering <jim@meyering.net>
7979 * m4/glob.m4: Remove a doubled word in a comment.
7981 2006-07-09 Jim Meyering <jim@meyering.net>
7983 * lib/argp-pv.c: Remove a doubled word in a comment.
7984 * lib/check-version.c (check_version): Likewise.
7985 * lib/javacomp.c (compile_java_class): Likewise.
7987 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
7989 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
7990 for the benefit of people using Autoconf 2.60. If you want to
7991 support older Autoconf versions you can copy m4/onceonly_2_57.m4
7992 (or m4/onceonly.m4, if pre-2.57) manually.
7994 2006-07-08 Jim Meyering <jim@meyering.net>
7996 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
7998 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
7999 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
8002 2006-07-08 Jim Meyering <jim@meyering.net>
8004 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
8006 2006-07-07 Simon Josefsson <jas@extundo.com>
8008 * tests/test-crc.c: Change expected crc value, the test vector
8009 were probably computed using the old broken crc.c?
8011 2006-07-06 Simon Josefsson <jas@extundo.com>
8013 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
8014 now the canonical place for the M4 file).
8016 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
8017 from the sys_socket dependency now.
8019 * modules/inet_pton (Files): Ditto.
8021 * modules/inet_ntop (Files): Ditto.
8023 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8025 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
8026 not gl_PREREQ_GETUSERSHELL.
8028 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8030 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
8031 with only one argument, for Autoconf 2.60.
8032 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
8033 expand to nothing, so add a shell command to avoid syntax error.
8034 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8036 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8038 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
8040 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8042 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
8043 no longer needed. Check for isblank decl.
8044 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
8045 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
8048 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8050 * lib/getloadavg.c: Use __VMS, not VMS.
8051 * lib/getopt.c: Likewise.
8052 * lib/getpagesize.h: Likewise.
8053 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
8054 and probably does not work.
8056 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
8058 * lib/.cppi-disable: Add wcwidth.
8059 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
8060 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
8061 (ISGRAPH): Remove. All uses changed to isgraph.
8062 (FOLD) [!defined _LIBC]: Remove special case.
8063 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
8064 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
8066 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
8069 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
8071 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
8072 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
8073 brackets. Other minor changes to suppress some compiler
8076 2006-07-06 Derek R. Price <derek@ximbiot.com>
8077 and Paul Eggert <eggert@cs.ucla.edu>
8079 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
8080 of invoking obsolescent AC_HEADER_DIRENT macro.
8081 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8082 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
8083 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8084 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8085 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
8086 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8087 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
8088 * m4/readdir.m4: Remove; no longer needed.
8090 2006-07-06 Derek R. Price <derek@ximbiot.com>
8091 and Paul Eggert <eggert@cs.ucla.edu>
8093 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
8094 Don't worry about this obsolete case any more.
8095 (HAVE_DIR): Remove. All uses removed; we now assume you can read
8097 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
8098 worry about this obsolete case any more.
8099 * lib/fts.c: Likewise.
8100 * lib/getcwd.c: Likewise.
8101 * lib/glob.h: Likewise.
8102 * lib/savedir.c: Likewise.
8104 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8106 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
8107 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
8108 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
8111 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8112 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8113 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
8115 * m4/getdate.m4 (gl_GETDATE): Likewise.
8116 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8117 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8118 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8119 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8120 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
8121 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8122 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
8125 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
8127 * lib/memcasecmp.c: Include <limits.h>.
8128 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
8129 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
8130 Don't assume isdigit succeeds only on '0' through '9'.
8132 2006-07-05 Eric Blake <ebb9@byu.net>
8134 * modules/getaddrinfo (Depends-on): Add snprintf.
8136 2006-07-05 Eric Blake <ebb9@byu.net>
8138 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
8139 to avoid 'header present but could not be compiled' on cygwin.
8141 2006-07-05 Eric Blake <ebb9@byu.net>
8143 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
8144 missing from netdb.h.
8145 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
8147 2006-07-05 Derek R. Price <derek@ximbiot.com>
8149 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
8151 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
8152 * m4/getdate.m4 (gl_GETDATE): Likewise.
8153 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
8154 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
8155 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8156 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
8157 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
8159 2006-07-05 Derek R. Price <derek@ximbiot.com>
8161 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
8162 All uses of is_space replaced by isspace.
8163 * lib/exit.h: Don't talk about STDC_HEADERS.
8164 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
8165 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
8166 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
8167 replaced by isprint etc.
8168 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
8169 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
8170 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
8171 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
8172 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
8173 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
8175 2006-07-05 Bruno Haible <bruno@clisp.org>
8177 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
8178 the function exists, before testing against AIX.
8179 Reported by Martin Lambers <marlam@marlam.de>.
8181 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
8183 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
8184 From Mark D. Baushke.
8186 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
8188 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
8189 to the absolute name, not just one, to bypass Sun C 5.8's
8190 "warning: #include of /usr/include/... may be non-portable".
8192 2006-07-04 Eric Blake <ebb9@byu.net>
8194 * modules/dirname-tests: New test module.
8195 * tests/test-dirname.c: New file, replacing dirname.c
8196 TEST_DIRNAME section that was recently deleted.
8198 2006-07-04 Bruno Haible <bruno@clisp.org>
8200 Assume ANSI C header files and <ctype.h> functions.
8201 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
8202 (mbsnwidth): Use isprint, iscntrl instead.
8204 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8206 Merge from coreutils.
8207 * MODULES.html.sh: Add xstrtold.
8208 * modules/xstrtold: New file.
8209 * modules/cycle-check (Files): Add lib/same-inode.h.
8210 * modules/dirname (Files): Add m4/double-slash-root.m4.
8211 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
8212 * modules/mkdir-p (Files): Add lib/same-inode.h.
8213 * modules/same (Files): Add lib/same-inode.h.
8215 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8217 * m4/absolute-header.m4: Renamed from full-header-path.m4.
8218 This is to keep the terminology clean; POSIX talks about
8219 "absolute pathnames", not "full pathnames", but the GNU
8220 Coding Standards say to use "path" for something else;
8221 so use "absolute" to keep both sides happy.
8222 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
8223 Set gl_absolute_header, not gl_full_header_path.
8224 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
8225 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
8228 Merge from coreutils.
8230 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
8232 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
8233 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
8234 want to require the building of c-strtod.o.
8235 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
8237 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
8239 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
8241 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
8242 --as-needed option if available. Problem reported by Albert Chin in
8243 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
8244 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
8245 cc merely issues a bunch of annoying warnings for --as-needed
8246 (this problem was reported by Bob Proulx). Also, try linking with
8247 -lm to detect a bug in binutils 2.16 (this problem was reported
8248 by Ralf Wildenhues).
8250 2006-06-18 Jim Meyering <jim@meyering.net>
8252 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
8253 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
8255 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
8256 also check for glibc-2.4's abort-inducing bug.
8258 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
8259 Low-probability clean-up should be to use rmdir to get rid of
8260 the just-created directory, not unlink.
8262 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
8263 configure fail, and request a bug report to inform us about it.
8264 Add a comment that, barring reports to the contrary, in 2007 we'll
8265 assume ftruncate is universally available.
8267 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
8269 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
8271 2006-03-12 Jim Meyering <jim@meyering.net>
8273 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
8274 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
8275 * m4/same.m4 (gl_SAME): Likewise.
8276 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
8278 2006-03-11 Eric Blake <ebb9@byu.net>
8280 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
8281 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
8282 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
8283 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
8285 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
8287 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
8288 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
8289 reported by Mark D. Baushke, one in
8290 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
8292 Merge from coreutils.
8294 * lib/.cppi-disable: Add stdint_.h.
8295 * lib/.cvsignore: Add stdint.h.
8297 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
8299 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
8300 both double and long double versions.
8301 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
8302 * lib/xstrtold.c: New file.
8303 * lib/xstrtod.h (xstrtold): New decl.
8305 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
8307 * lib/filemode.c (setst): Remove.
8308 (strmode): Rewrite to avoid setst. This makes the code shorter,
8309 (arguably) clearer, and the generated code is a bit smaller on my
8310 Debian GNU/Linux stable x86 host.
8312 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
8314 * lib/filemode.c: Include "filemode.h" first, to test the interface.
8315 Assume that filemode.h includes sys/types.h and sys/stat.h.
8316 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
8317 (ftypelet): Reorder to put common cases first, for efficiency.
8318 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
8320 (strmode): Renamed from mode_string, and now stores 12 bytes instead
8321 of 10, for compatibility with FreeBSD. All callers changed.
8322 (filemodestring): Now stores 12 bytes instead of 10, and sets file
8323 types that can't be deduced solely from st_mode. First arg is now a
8325 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
8326 (strmode): Renamed from mode_string.
8327 (filemodestring): New decl.
8328 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
8329 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
8331 (S_ISPORT, S_ISWHT): New macros, if not already defined.
8333 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
8335 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
8336 fsusage.h now does that. Include fsusage.h first, to test interface.
8337 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
8338 at most one method (the old code could have generated decls that
8339 didn't conform to C89, not that this was ever exercised).
8340 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
8342 2006-03-19 Jim Meyering <jim@meyering.net>
8344 Work even in a chroot where d_ino values for entries in "/"
8345 don't match the stat.st_ino values for the same names.
8346 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
8347 number, iterate through all entries again, using lstat instead.
8348 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
8349 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
8351 * lib/getcwd.c (__getcwd): Clarify a comment.
8352 Use memcpy in place of a call to strcpy.
8354 2006-03-12 Jim Meyering <jim@meyering.net>
8356 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
8357 matches that of the current directory (which we're about to chdir ".."
8358 out of), then save the dev-ino of the parent, instead.
8360 * lib/same-inode.h (SAME_INODE): New file/macro.
8361 * lib/chdir-safer.c (SAME_INODE): Remove definition.
8362 Include "same-inode.h", instead.
8363 * lib/same.c: Likewise.
8364 * lib/cycle-check.h: Include "same-inode.h".
8365 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
8366 * lib/cycle-check.c (SAME_INODE): Remove definition.
8367 * lib/root-dev-ino.h: Include "same-inode.h".
8369 2006-03-11 Eric Blake <ebb9@byu.net>
8371 * lib/same.c (same_name): s/base_name/last_component/
8372 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
8373 * lib/filenamecat.c (file_name_concat): Likewise.
8375 2006-03-11 Eric Blake <ebb9@byu.net>,
8376 Paul Eggert <eggert@cs.ucla.edu>
8378 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
8379 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
8381 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
8382 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
8383 (last_component): New method.
8384 * lib/dirname.c (dir_len): Determine when drive letters need a
8385 subsequent slash. Preserve // when it is special.
8386 (dir_name): Don't append dot when drive letter is absolute.
8387 [TEST_DIRNAME]: Move into a full-blown gnulib test.
8388 * lib/basename.c (base_name): New semantics - malloc the result.
8389 Preserve // when it is special. Preserve relative files that look
8391 (base_len): Preserve // when it is special.
8392 (last_component): New method, similar to old base_name semantics.
8393 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
8394 base_name. Strip redundant slashes from ///.
8396 2006-07-03 Jim Meyering <jim@meyering.net>
8398 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
8399 macro is used before the first cycle_check call.
8401 2006-07-03 Eric Blake <ebb9@byu.net>
8403 * modules/dirname (Depends-on): Add xstrndup.
8405 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8407 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
8408 test cases, so that config.log is a bit easier to follow.
8410 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
8412 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
8413 both are 64 bits, since this seems to be the tradition, and this
8414 prevents gcc -Wformat from warning about usages with PRIuMAX. If
8415 we ever run into a host that prefers long long to long in this
8416 case, we'll need another configure-time test. Problem reported by
8419 2006-07-02 Eric Blake <ebb9@byu.net>
8421 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
8423 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8425 * modules/inttypes (Depends-on): No longer depends on stdint.
8426 * modules/stdint (Description): Say more about assumptions.
8427 Say that the fast types might differ. Say macros are used.
8428 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
8429 (Makefile.am): Revise list of substituted symbols to match
8431 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
8432 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
8433 * tests/test-stdint.c (verify_same_types)
8434 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
8435 the code conforms to C99/C89.
8436 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
8437 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
8439 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8441 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
8442 but fix a bug, by requiring at least 64 bits.
8443 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
8444 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
8445 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
8446 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
8448 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
8449 changes. Make 2.59 a prerequisite. Check and substitute for
8450 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
8451 inttypes.h. Do not use special include files; just use the
8452 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
8453 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
8454 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
8455 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
8456 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
8457 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
8458 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
8459 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
8460 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
8461 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
8462 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
8463 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
8464 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
8465 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
8466 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
8467 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
8468 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
8469 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
8470 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
8471 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
8472 WINT_MAX. Check for C99 conformance more strictly, by detecting
8473 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
8474 not check for things that C99 does not require, e.g., int8_t. If
8475 a test isn't needed unless <stdint.h> isn't working, and is
8476 unlikely to be needed for any other reason, then don't do it
8477 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
8478 size_t, since we assume C89 freestanding at least. Do not check
8479 for sig_atomic_t, wchar_t, or wint_t, since the code now does
8480 the right thing even if the types are not defined. Instead use:
8481 (gl_STDINT_TYPE_PROPERTIES): New macro.
8482 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
8483 testing whether <sys/types.h> clashes, as Autoconf does this for
8484 us now. All uses removed.
8485 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
8486 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
8487 (gl_CHECK_TYPE_SAME):
8488 Remove; no longer needed.
8489 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
8490 exists, since we'll return 0 anyway in that case.
8491 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
8493 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
8495 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
8496 possible collision with system files.
8497 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
8498 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
8499 WCHAR_MIN and WCHAR_MAX in this case.
8500 (<stddef.h>): Do not include; no longer needed.
8501 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
8502 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
8503 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
8504 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
8505 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
8506 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
8507 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
8508 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
8509 !defined(__c99))]: Include in this case too, since it's harmless
8511 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
8513 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
8514 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
8515 (_STDINT_MIN, _STDINT_MAX): New macros.
8516 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
8517 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
8518 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
8519 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
8520 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
8521 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
8522 macros, not typedefs; this simplifies things quite a bit.
8523 Use long int for all types narrower than int64_t.
8524 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
8525 Define in terms of long long int or int64_t or long int,
8526 not int64_t or int32_t. This saves some compile-time testing.
8527 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
8528 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
8529 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
8530 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
8531 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
8532 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
8533 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
8534 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
8535 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
8536 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
8537 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
8538 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
8539 undef any previous version and define our own version, for
8540 simplicity and consistency with the new macros for types.
8541 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
8542 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
8543 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
8544 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
8545 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
8546 @WINT_T_SUFFIX@ to keep things simple here.
8547 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
8548 Simplify by assuming typical 8/16/32/64 host, since we're
8549 already doing that elsewhere anyway.
8550 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
8551 and assume long long int is 64 bits if available. This
8552 speeds up 'configure'.
8554 2006-07-01 Eric Blake <ebb9@byu.net>
8556 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
8557 Reported by Andreas Buening.
8559 2006-07-01 Eric Blake <ebb9@byu.net>
8561 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
8563 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
8565 * lib/getaddrinfo.c: fixed typo
8567 2006-06-29 Jim Meyering <jim@meyering.net>
8569 * modules/strftime (Maintainer): Add my name, since with the
8570 FPRINTFTIME changes strftime.c has forked from glibc.
8572 2006-06-29 Eric Blake <ebb9@byu.net>
8574 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
8576 2006-06-29 Eric Blake <ebb9@byu.net>
8578 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
8580 2006-06-29 Eric Blake <ebb9@byu.net>
8582 * lib/stat_.h: New file.
8584 2006-06-29 Eric Blake <ebb9@byu.net>
8586 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
8587 unused static function.
8589 2006-06-29 Eric Blake <ebb9@byu.net>
8591 * doc/functions.texi (Function Portability): Document missing lstat
8594 2006-06-29 Eric Blake <ebb9@byu.net>
8596 * MODULES.html.sh: Add sys_stat.
8597 * modules/sys_stat: New module.
8598 * modules/mkstemp (Depends-on): Add sys_stat.
8600 2006-06-29 Derek R. Price <derek@ximbiot.com>
8602 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
8604 2006-06-29 Derek R. Price <derek@ximbiot.com>
8606 * m4/c-bs-a.m4: Removed.
8608 2006-06-29 Derek R. Price <derek@ximbiot.com>
8610 * lib/strftime.c: Assume strftime() exists.
8612 2006-06-29 Derek Price <derek@ximbiot.com>
8614 * modules/c-bs-a: Removed - \a is C89.
8615 * MODULES.html.sh: Remove c-bs-a.
8617 2006-06-29 Bruno Haible <bruno@clisp.org>
8619 * modules/wcwidth (License): Change to LGPL.
8621 2006-06-28 Simon Josefsson <jas@extundo.com>
8623 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
8626 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
8629 2006-06-28 Simon Josefsson <jas@extundo.com>
8631 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
8633 2006-06-28 Simon Josefsson <jas@extundo.com>
8635 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
8636 functions there. It will succeed on Windows XP, but on Windows
8637 2000 and (presumably) earlier, it will fail, and use the internal
8639 (use_win32_p): New function.
8640 (getaddrinfo): Use strtoul on servname, to support numeric ports.
8641 Support AI_NUMERICSERV to disable getservbyname.
8642 (getnameinfo): New function, only supports
8643 NI_NUMERICHOST|NI_NUMERICSERV for now.
8645 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
8646 only have some of them. Add AI_NUMERICSERV. Add prototype for
8649 2006-06-28 Eric Blake <ebb9@byu.net>
8651 * modules/wcwidth: New file.
8652 * modules/mbchar (Depends-on): Add wcwidth.
8653 * modules/mbswidth (Depends-on): Add wcwidth.
8654 * MODULES.html.sh: Add wcwidth.
8656 2006-06-28 Eric Blake <ebb9@byu.net>
8658 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
8659 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
8661 2006-06-28 Eric Blake <ebb9@byu.net>
8663 * lib/xvasprintf.h: Fix comments.
8665 2006-06-28 Eric Blake <ebb9@byu.net>
8667 * lib/mbchar.h (wcwidth): Include wcwidth.h.
8668 * lib/mbswidth.c (wcwidth): Move from here...
8669 * lib/wcwidth.h: ...to this new file.
8671 2006-06-28 Derek R. Price <derek@ximbiot.com>
8673 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
8675 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
8677 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
8679 2006-06-28 Derek R. Price <derek@ximbiot.com>
8681 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
8682 Autoconf 2.60 says this stuff was obsolete.
8684 2006-06-28 Bruno Haible <bruno@clisp.org>
8686 * modules/wcwidth (Files): Add m4/wchar_t.m4.
8688 2006-06-28 Bruno Haible <bruno@clisp.org>
8690 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
8693 2006-06-28 Bruno Haible <bruno@clisp.org>
8695 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
8696 declaration for wcwidth.
8697 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
8699 2006-06-28 Bruno Haible <bruno@clisp.org>
8701 * lib/mkdtemp.c [MINGW]: Include <io.h>.
8702 (mkdir): Define using _mkdir.
8704 2006-06-28 Bruno Haible <bruno@clisp.org>
8706 * lib/getaddrinfo.h: Fix POSIX URL.
8707 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
8709 (use_win32_p): Make static.
8710 (getaddrinfo): Reject service name if it is empty or does not consist
8711 solely of decimal digits, or if its value is > 65535.
8712 (getnameinfo): Remove useless casts.
8714 2006-06-27 Simon Josefsson <jas@extundo.com>
8716 * modules/sys_select: New file, suggested by Bruno Haible, Paul
8717 Eggert and Martin Lambers.
8719 2006-06-27 Simon Josefsson <jas@extundo.com>
8721 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
8722 Eggert and Martin Lambers.
8724 2006-06-27 Bruno Haible <bruno@clisp.org>
8726 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
8727 result to 0, not to empty.
8728 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
8730 2006-06-27 Bruno Haible <bruno@clisp.org>
8732 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
8734 2006-06-26 Simon Josefsson <jas@extundo.com>
8736 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
8739 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
8741 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
8742 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
8743 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
8745 2006-06-26 Mark D. Baushke <mdb@gnu.org>
8747 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
8749 2006-06-26 Bruno Haible <bruno@clisp.org>
8751 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
8753 2006-06-26 Bruno Haible <bruno@clisp.org>
8755 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
8757 2006-06-26 Bruno Haible <bruno@clisp.org>
8759 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
8760 SGI C compiler in pre-C99 mode.
8761 Suggested by Mark D. Baushke and Larry Jones.
8763 2006-06-26 Bruno Haible <bruno@clisp.org>
8765 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
8767 Reported by Mark D. Baushke and Larry Jones.
8769 2006-06-26 Bruno Haible <bruno@clisp.org>
8771 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
8773 Suggested by Mark D. Baushke and Larry Jones.
8775 2006-06-23 Simon Josefsson <jas@extundo.com>
8776 Bruno Haible <bruno@clisp.org>
8778 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
8779 Emit mostlyclean-local rule.
8780 (func_emit_tests_Makefile_am): Likewise.
8781 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
8783 2006-06-23 Mark D. Baushke <mdb@gnu.org>
8785 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
8787 2006-06-23 Bruno Haible <bruno@clisp.org>
8789 * tests/test-stdint.c: Update to match ISO C 99 Technical
8792 2006-06-23 Bruno Haible <bruno@clisp.org>
8794 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
8796 2006-06-23 Bruno Haible <bruno@clisp.org>
8798 * lib/stdint_.h: Treat IRIX like OpenBSD.
8800 2006-06-23 Bruno Haible <bruno@clisp.org>
8802 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
8803 ISO C 99 Technical Corrigendum 1.
8805 2006-06-22 Simon Josefsson <jas@extundo.com>
8807 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
8810 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
8812 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
8813 needed. Some compiler complained about some of them. Problem reported
8815 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
8817 2006-06-21 Simon Josefsson <jas@extundo.com>
8819 * tests/test-getaddrinfo.c: New file.
8821 * modules/getaddrinfo-tests: New file.
8823 * MODULES.html.sh: Add inet_pton.
8825 * modules/inet_pton: New file.
8827 2006-06-21 Simon Josefsson <jas@extundo.com>
8829 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
8830 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
8831 of using the (limited) gnulib implementation on Windows XP.
8833 * m4/inet_pton.m4: New file.
8835 2006-06-21 Simon Josefsson <jas@extundo.com>
8837 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
8840 * lib/socket_.h: Don't define WINVER.
8842 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
8843 slightly modified to work in gnulib.
8845 2006-06-21 Simon Josefsson <jas@extundo.com>
8847 * doc/gnulib.texi (Windows sockets): Add.
8849 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
8851 * lib/read-file.c (fread_file): Start with buffer allocation of
8852 0 bytes rather than 1 byte; this simplifies the code.
8853 Don't invoke feof; it's not needed. Refactor to avoid duplicate
8854 code to free buffer and save/restore errno.
8855 (internal_read_file): Remove unused local.
8857 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
8859 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
8860 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
8861 Problem reported by Denis Excoffier in
8862 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
8864 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8866 * modules/sys_socket, modules/socklen: Include sys/types since
8867 FreeBSD 4.x's sys/socket.h needs it.
8869 2006-06-19 Simon Josefsson <jas@extundo.com>
8871 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
8873 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
8875 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
8877 2006-06-19 Bruno Haible <bruno@clisp.org>
8879 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
8880 and FULL_PATH_INTTYPES_H in angle brackets.
8881 Reported by Mark D. Baushke <mdb@gnu.org>.
8883 2006-06-17 Eric Blake <ebb9@byu.net>
8885 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
8888 2006-06-17 Bruno Haible <bruno@clisp.org>
8890 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
8893 2006-06-17 Bruno Haible <bruno@clisp.org>
8895 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
8896 whether errno is declared. Assume <errno.h> declares errno.
8898 2006-06-17 Bruno Haible <bruno@clisp.org>
8900 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
8902 2006-06-17 Bruno Haible <bruno@clisp.org>
8904 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
8905 problem on Solaris 2.5.1.
8907 2006-06-16 Eric Blake <ebb9@byu.net>
8909 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
8910 * lib/unicodeio.c [!defined errno]: Likewise.
8911 * lib/strtol.c [!defined errno]: Likewise.
8912 * lib/strtod.c [!defined errno]: Likewise.
8914 2006-06-15 Eric Blake <ebb9@byu.net>
8916 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
8918 2006-06-15 Eric Blake <ebb9@byu.net>
8920 * config/srclist.txt (ssize_t.m4): Lose sync.
8922 2006-06-15 Bruno Haible <bruno@clisp.org>
8924 * modules/stdint (Files): Include m4/full-header-path.m4,
8925 m4/size_max.m4, m4/wchar_t.m4.
8926 (Makefile.am): Many more substitutions.
8927 * modules/stdint-tests: New file.
8928 * tests/test-stdint.c: New file.
8930 2006-06-15 Bruno Haible <bruno@clisp.org>
8932 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
8933 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
8934 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
8935 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
8936 gl_CHECK_TYPE_SAME): New macros.
8938 2006-06-15 Bruno Haible <bruno@clisp.org>
8940 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
8942 2006-06-15 Bruno Haible <bruno@clisp.org>
8944 * lib/stdint_.h: Rewritten to be fully auto-configured.
8945 Fixes bug on HP-UX/IA64.
8947 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
8949 * lib/getdate.y (__attribute__): Don't define if already defined.
8950 Problem reported by Larry Jones.
8951 * lib/utimens.c (__attribute__): Likewise.
8953 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
8955 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
8956 reported by Andreas Schwab.
8958 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8959 Bruno Haible <bruno@clisp.org>
8961 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
8962 check for the declaration of strnlen and a run test that exposes the
8963 AIX 5.1 strnlen bug. In the failure case, #define strndup to
8966 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8967 Bruno Haible <bruno@clisp.org>
8969 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
8971 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8973 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
8974 compile test, for Tru64 4.0D.
8976 2006-05-28 Karl Berry <karl@gnu.org>
8978 * config/srclist.txt (printf-args.c): lose sync.
8980 2006-05-26 Martin Lambers <marlam@marlam.de>
8982 * lib/getpass.c: Updates the test for the native W32 API, and adds
8983 missing includes, thus fixing compilation warnings.
8985 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
8987 * lib/exclude.c (exclude_fnmatch): New function.
8988 (excluded_file_name): Call exclude_fnmatch.
8989 * lib/exclude.h (excluded_file_name): New prototype
8991 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
8993 * lib/tempname.c (small_open, large_open): New macros.
8994 (__open, __open64) [!_LIBC]: Remove.
8995 (__gen_tempname): Use small_open and large_open instead of __open
8996 and __open64. This fixes a portability bug on HP-UX 11.11i
8997 reported by Simon Wing-Tang in
8998 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
9000 2006-05-24 Bruno Haible <bruno@clisp.org>
9002 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
9003 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
9004 Reported by Thorsten Maerz <torte@netztorte.de> via
9005 Aaron Stone <aaron@serendipity.cx>.
9007 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9009 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
9010 gl_ rather than jm_. Link, don't run, so that cross-compiles are
9011 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
9012 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
9013 not really conditional on the cache.
9014 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
9016 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
9018 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
9019 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
9020 (my_usleep): Don't mishandle maximum value.
9022 2006-05-19 Jim Meyering <jim@meyering.net>
9024 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
9026 2006-05-17 Bruno Haible <bruno@clisp.org>
9029 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
9031 2006-05-17 Bruno Haible <bruno@clisp.org>
9033 * lib/stdint_.h: Fix recognition of Cygwin.
9035 2006-05-15 Bruno Haible <bruno@clisp.org>
9037 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
9038 on libtool patch by Ralf Wildenhues.
9040 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
9042 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
9043 test for C99 conformance; (bool) 0.5 is an integer constant
9044 expression, but (bool) -0.5 is not. Problem reported by Fedor
9045 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
9047 2006-05-11 Simon Josefsson <jas@extundo.com>
9049 * m4/xvasprintf.m4: Fix obvious typo.
9051 2006-05-11 Jim Meyering <jim@meyering.net>
9053 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
9056 2006-05-10 Simon Josefsson <jas@extundo.com>
9058 * lib/md4.c: Typo fix, update copyright years.
9059 (K1, K2): Don't use L because it turn computations into 64-bit on
9062 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
9064 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
9065 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
9066 unwanted sign propagation, e.g., on hosts with 64-bit int.
9067 There still are some problems with reeelly weird theoretical hosts
9068 (e.g., 33-bit int) but it's not worth worrying about now.
9069 * lib/sha1.c (rol): Likewise.
9070 (K1, K2, K3, K4): Remove unnecessary L suffix.
9072 2006-05-10 Bruno Haible <bruno@clisp.org>
9074 * lib/des.c: Cast to avoid warnings.
9076 2006-05-09 Bruno Haible <bruno@clisp.org>
9078 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
9079 (Depends-on): Depend also on xsize, stdarg.
9080 (configure.ac): Add gl_XVASPRINTF.
9082 2006-05-09 Bruno Haible <bruno@clisp.org>
9084 * m4/xvasprintf.m4: New file.
9086 2006-05-09 Bruno Haible <bruno@clisp.org>
9088 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
9089 (EOVERFLOW): Define fallback value.
9090 (xstrcat): New function.
9091 (xvasprintf): Recognize the special case of a string concatenation.
9093 2006-05-08 Eric Blake <ebb9@byu.net>
9095 * gnulib-tool (func_version): Base copyright year on CVS date.
9096 (func_emit_copyright_notice): New function.
9097 (func_emit_lib_Makefile_am): Use it.
9098 (func_emit_tests_Makefile_am): Likewise.
9099 (func_import): Likewise.
9101 2006-05-08 Bruno Haible <bruno@clisp.org>
9103 * modules/stdarg: New file.
9104 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
9106 2006-05-08 Bruno Haible <bruno@clisp.org>
9108 * m4/stdarg.m4: New file, from GNU gettext.
9110 2006-05-08 Bruno Haible <bruno@clisp.org>
9112 * config/srclist.txt (build-aux/config.rpath): different from latest
9115 2006-05-08 Bruno Haible <bruno@clisp.org>
9117 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
9119 2006-05-05 Jim Meyering <jim@meyering.net>
9121 * m4/warning.m4: New file, derived from bison's file by the same name.
9123 2006-05-03 Bruno Haible <bruno@clisp.org>
9125 * lib/stdint_.h: Shorter URL.
9126 * lib/inttypes.h: Likewise.
9128 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9130 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
9132 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9134 * lib/verify.h: Document the internals better. Most of this change
9135 was written by Bruno Haible.
9137 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
9139 * doc/verify.texi: New file, partly based on a proposal by
9142 2006-05-02 Bruno Haible <bruno@clisp.org>
9144 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
9146 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
9148 2006-04-29 Bruno Haible <bruno@clisp.org>
9150 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
9151 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
9153 2006-04-29 Bruno Haible <bruno@clisp.org>
9155 * gnulib-tool: Make --update option actually work.
9157 2006-04-29 Bruno Haible <bruno@clisp.org>
9159 * doc/gcd.texi: New file.
9160 * doc/gnulib.texi: Include it.
9162 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
9164 * lib/getdate.y (get_date): When adding relative date, start with the
9165 initial time, not with the result of the first mktime call.
9167 2006-04-25 Bruno Haible <bruno@clisp.org>
9169 * gnulib-tool (func_import): Output the include directives in three
9170 blocks, sorted separately.
9171 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9173 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
9175 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
9176 to define main with arguments, for C++. Reported by Eric Blake.
9177 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9178 Prefer 'int main ()' to 'int main (void)', for C++.
9179 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9180 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
9181 for 'main', for C99 and C++.
9183 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
9185 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
9186 Don't assume that exit status -1 is valid.
9187 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9188 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9189 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9190 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
9191 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
9192 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
9193 not AC_TRY_RUN. Use return, not exit. Don't assume that
9194 functions can be used without declaring them, or that you can
9195 exit with status -1.
9196 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9198 2006-04-24 Karl Berry <karl@gnu.org>
9200 * config/srclist.txt (longdouble.m4): sync lost.
9202 2006-04-24 Eric Blake <ebb9@byu.net>
9204 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
9206 2006-04-24 Bruno Haible <bruno@clisp.org>
9208 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
9209 poll() implementation in AIX.
9210 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9212 2006-04-24 Bruno Haible <bruno@clisp.org>
9214 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
9215 assigned exactly once.
9217 2006-04-23 Claudio Fontana <claudio@gnu.org>
9218 Bruno Haible <bruno@clisp.org>
9220 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
9221 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
9224 2006-04-23 Bruno Haible <bruno@clisp.org>
9226 * modules/copy-file: Depend on unistd.
9227 * modules/execute: Likewise.
9228 * modules/fatal-signal: Likewise.
9229 * modules/findprog: Likewise.
9230 * modules/mkdtemp : Likewise.
9231 * modules/pipe: Likewise.
9232 * modules/wait-process: Likewise.
9234 2006-04-23 Bruno Haible <bruno@clisp.org>
9236 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
9237 condition was already detected.
9238 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9240 2006-04-23 Bruno Haible <bruno@clisp.org>
9242 * lib/copy-file.c: Include <unistd.h> unconditionally.
9243 * lib/execute.c: Likewise.
9244 * lib/fatal-signal.c: Likewise.
9245 * lib/findprog.c: Likewise.
9246 * lib/mkdtemp.c: Likewise.
9247 * lib/pipe.h: Likewise.
9248 * lib/pipe.c: Likewise.
9249 * lib/wait-process.h: Likewise.
9251 2006-04-23 Bruno Haible <bruno@clisp.org>
9253 * gnulib-tool (func_usage): Fix --import description. Document
9255 (func_import): Create temporary file in a temporary directory, if
9256 --dry-run is specified. Silence errors from 'grep' when there are no
9258 (func_create_testdir): Silence errors from 'grep' when there are no
9260 Reported by Karl Berry <karl@freefriends.org>.
9262 2006-04-20 Bruno Haible <bruno@clisp.org>
9264 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
9265 one argument, so that the code will be portable to Autoconf 2.60.
9266 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
9267 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9268 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
9270 2006-04-19 Derek Price <derek@ximbiot.com>
9271 Eric Blake <ebb9@byu.net>
9273 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
9274 rather than "/full/path.h". Update comment to match. Shorten &
9275 generalize m4_translit call via AS_TR_CPP.
9277 2006-04-19 Derek Price <derek@ximbiot.com>
9278 Eric Blake <ebb9@byu.net>
9280 * lib/inttypes.h: Correct grammar in comment.
9282 2006-04-18 Derek Price <derek@ximbiot.com>
9283 Paul Eggert <eggert@cs.ucla.edu>
9285 * modules/inttypes: New file.
9286 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
9288 2006-04-18 Derek Price <derek@ximbiot.com>
9289 Paul Eggert <eggert@cs.ucla.edu>
9291 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
9294 2006-04-18 Derek Price <derek@ximbiot.com>
9295 Paul Eggert <eggert@cs.ucla.edu>
9297 * lib/inttypes.h: New file.
9298 * lib/strtoimax.c: Assume <inttypes.h>.
9300 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
9302 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
9303 isn't mounted. Problem reported by Kir Kolyshkin.
9305 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
9307 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
9308 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
9310 * lib/regex.h (RE_DUP_MAX): Update comment to match current
9313 2006-04-12 Eric Blake <ebb9@byu.net>
9315 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
9316 is now done automatically by the corresponding Autoconf macro.
9318 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
9320 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
9323 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9325 Merge regex changes from libc, removing some of our
9326 POSIX-conformance changes that were rejected and redoing them in a
9329 * lib/regcomp.c (re_compile_internal, init_dfa):
9330 Length arg is now size_t, not Idx. All uses changed.
9331 (peek_token): Forward decl now says internal_function.
9332 (__re_error_msgid, __re_error_msgid_idx):
9333 Now static rather than extern with attribute_hidden.
9334 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
9335 For some reason libc prefers K&R style defns for external functions.
9336 (regerror) [!defined _LIBC]: Likewise.
9337 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
9338 (seek_collating_symbol_entry, lookup_collation_sequence_value):
9339 (build_range_exp, build_collating_symbol):
9341 (re_compile_fastmap): Use '\0' to memset, not 0.
9342 (utf8_sb_map): Make the calculations more obvious.
9343 (init_dfa, parse_bracket_exp, build_charclass_op):
9344 Call calloc and cast result, as glibc does.
9345 (init_word_char, fetch_token, peek_token, peek_token_bracket):
9346 (build_range_exp, build_collating_symbol):
9347 Now internal functions.
9349 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
9351 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
9352 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
9353 Don't depend on VMS; depend on __VMS instead, for POSIX
9354 namespace cleanness.
9355 (regoff_t): Define to ssize_t, not long int.
9357 Remove the REG_ macros named below. Instead, make the old names
9358 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
9360 (REG_BACKSLASH_ESCAPE_IN_LISTS):
9361 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
9362 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
9363 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
9364 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
9365 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
9366 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
9367 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
9368 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
9369 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
9370 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
9371 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
9372 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
9373 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
9374 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
9375 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
9376 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
9378 Remove. All uses replaced by the old RE_* names.
9379 (RE_BACKSLASH_ESCAPE_IN_LISTS):
9380 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
9381 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
9382 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
9383 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
9384 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
9385 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
9386 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
9387 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
9388 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
9389 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
9390 Don't bother having these macros be independent of each others'
9391 values, since they no longer exist in the POSIX name space.
9393 Rename the following member names back to their old names,
9394 unless !__USE_GNU_REGEX. All uses changed back.
9395 (buffer): Renamed from re_buffer.
9396 (allocated): Renamed from re_allocated.
9397 (used): Renamed from re_used.
9398 (syntax): Renamed from re_syntax.
9399 (fastmap): Renamed from re_fastmap.
9400 (translate): Renamed from re_translate.
9401 (can_be_null): Renamed from re_can_be_null.
9402 (regs_allocated): Renamed from re_regs_allocated.
9403 (fastmap_accurate): Renamed from re_fastmap_accurate.
9404 (no_sub): Renamed from re_no_sub.
9405 (not_bol): Renamed from re_not_bol.
9406 (not_eol): Renamed from re_not_eol.
9407 (newline_anchor): Renamed from re_newline_anchor.
9408 (num_regs): Renamed from rm_num_regs.
9409 (start): Renamed from rm_start.
9410 (end): Renamed from rm_end.
9412 (free_state): Move up a bit.
9414 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
9415 #define to be empty.
9416 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
9417 when that is what is intended.
9418 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
9419 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
9421 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
9422 All uses changed back to re_malloc, etc. It's now the caller's
9423 responsibility to check for overflow; all callers changed.
9424 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
9425 (re_x2nrealloc): Remove.
9426 (free_state): Remove decl.
9428 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
9429 (re_set_registers, re_exec):
9432 2006-01-31 Roland McGrath <roland@redhat.com>
9434 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
9435 Reported by Mike Frysinger <vapier@gentoo.org>.
9437 2006-01-15 Andreas Jaeger <aj@suse.de>
9440 * lib/regex_internal.c (re_string_reconstruct): Adjust for
9441 build_wcs_upper_buffer change.
9442 (build_wcs_upper_buffer): Change return type.
9444 2005-12-10 Ulrich Drepper <drepper@redhat.com>
9446 * lib/regex_internal.h: Include <stdint.h> if available.
9448 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
9450 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
9452 2005-10-14 Ulrich Drepper <drepper@redhat.com>
9454 * lib/regcomp.c: Adjust for changed secondary hash function.
9456 2005-09-30 Ulrich Drepper <drepper@redhat.com>
9458 * lib/regex.h: Pretty printing.
9459 Clean up namespace a bit.
9461 2005-09-30 Jakub Jelinek <jakub@redhat.com>
9463 * lib/regexec.c (update_cur_sifted_state, check_arrival,
9464 check_arrival_add_next_nodes): Avoid using uninitialized variable.
9466 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
9467 Ulrich Drepper <drepper@redhat.com>
9470 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
9472 (bitset_word_t): Renamed from bitset_word. All uses changed.
9474 2005-09-22 Ulrich Drepper <drepper@redhat.com>
9477 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
9478 * lib/regcomp.c: Remove unnecessary uses of
9479 unsigned RE_TRANSLATE_TYPE.
9480 * lib/regex_internal.h: Likewise.
9481 * lib/regex_internal.c: Likewise.
9482 * lib/regexec.c: Likewise.
9483 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
9485 2005-09-07 Ulrich Drepper <drepper@redhat.com>
9487 * lib/regexec.c (find_recover_state): Remove unnecessary
9489 (transit_state_bkref): Make DFA a const pointer.
9490 (get_subexp): Likewise.
9491 (check_arrival): Likewise.
9492 (update_cur_sifted_state): Likewise.
9493 (re_search_internal): Likewise.
9494 (prune_impossible_nodes): Likewise.
9495 (acquire_init_state_context): Likewise.
9496 (proceed_next_node): Likewise.
9497 (set_regs): Likewise.
9498 (free_fail_stack_return): Likewise.
9499 (check_arrival_expand_ecl): Mark DFA parameter as const.
9500 (check_arrival_expand_ecl_sub): Likewise.
9501 (check_subexp_limits): Likewise.
9502 (sub_epsilon_src_nodes): Likewise.
9503 (add_epsilon_src_nodes): Likewise.
9504 (merge_state_array): Likewise.
9505 (update_regs): Likewise.
9506 (build_trtable): Likewise.
9507 (sift_states_backward): Mark MCTX parameter as const.
9508 (build_sifted_states): Likewise.
9509 (update_cur_sifted_state): Likewise.
9510 (sift_states_mkref): Likewise.
9511 (check_arrival_expand_ecl): Mark eclosure as const.
9512 (check_dst_limits_calc_pos_1): Likewise.
9513 * lib/regex_internal.h (re_match_context_t): Make dfa a const
9516 2005-09-06 Ulrich Drepper <drepper@redhat.com>
9518 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
9519 (transit_state_sb): Likewise.
9520 (transit_state_mb): Likewise.
9521 (sift_states_iter_mb): Likewise.
9522 (check_arrival_add_next_nodes): Likewise.
9523 (check_node_accept_bytes): Change first parameter to pointer-to-const.
9524 [_LIBC] (re_search_2_stub): Use mempcpy.
9526 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
9527 mbrtowc for very simple UTF-8 case.
9529 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
9531 (re_acquire_state_context): Likewise.
9532 * lib/regex_internal.h: Adjust prototypes.
9534 * lib/regex.c: Prevent using C++ compilers.
9536 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
9537 (re_acquire_state_context): Likewise.
9539 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9541 * modules/regex (Depends-on): Add ssize_t.
9543 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9545 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
9548 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
9550 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
9552 2006-03-29 Mark D. Baushke <mdb@gnu.org>
9553 Bruno Haible <bruno@clisp.org>
9555 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
9556 <sys/types.h> and <inttypes.h>.
9558 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9560 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
9561 `__error_t_defined', so argp.h will not typedef the former.
9563 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
9565 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
9566 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
9567 glibc names. Even if glibc is changed to conform to POSIX, the
9568 traditional names will be available anyway, since regex depends on
9569 the extensions module. Also, fix a longstanding typo in the
9570 implementation of Spencer ERE test #75 from grep 2.3. Problems
9571 reported by Emanuele Giaquinta. Also, change sense of cached
9572 variable, so that the message makes sense.
9574 2006-03-24 Simon Josefsson <jas@extundo.com>
9576 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
9577 including some doc fixes.
9578 (base64_encode_alloc): Fix +1 bug on allocation failures.
9580 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9582 * lib/base64.c (base64_encode): Do not read past end of array with
9583 unsanitized input on systems with CHAR_BIT > 8.
9585 2006-03-24 Eric Blake <ebb9@byu.net>
9587 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
9589 2006-03-22 Karl Berry <karl@gnu.org>
9591 * config/srclist.txt (*setenv.[ch]): get from coreutils.
9592 * config/srclistvars.sh (COREUTILS): new var.
9594 2006-03-17 Jim Meyering <jim@meyering.net>
9596 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
9597 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
9599 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
9601 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
9602 no longer needs it. Instead, check that regoff_t is as least
9603 as wide as ptrdiff_t.
9605 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
9606 so that our regex.h stays compatible with the installed regex.
9607 This is helpful for installers who configure --without-included-regex.
9608 Problem reported by Emanuele Giaquinta.
9610 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
9612 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
9613 Typedef to long int, not to off_, as POSIX will likely change
9616 2006-03-15 Eric Blake <ebb9@byu.net>
9618 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
9620 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
9622 * lib/argp-help.c (validate_uparams): Fix typo
9623 * lib/argp-parse.c (argp_default_options): Consistently begin help
9624 messages with a lowercase letter.
9626 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
9628 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
9629 overrun buffers and shouldn't be used (much as gets shouldn't be
9631 * lib/time_r.c (asctime_r, ctime_r): Likewise.
9633 2006-03-08 Simon Josefsson <jas@extundo.com>
9635 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
9636 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9638 2006-03-08 Simon Josefsson <jas@extundo.com>
9640 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
9641 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9643 2006-03-08 Simon Josefsson <jas@extundo.com>
9645 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
9646 signal that configure disabled the device.
9648 2006-03-08 Simon Josefsson <jas@extundo.com>
9650 * build-aux/maint.mk: Fix refresh-po, to handle no translated
9653 2006-03-07 Simon Josefsson <jas@extundo.com>
9655 * modules/getopt (Depends-on): Add unistd.
9657 * modules/unistd: New file.
9659 2006-03-07 Simon Josefsson <jas@extundo.com>
9661 * modules/gc-random: New file.
9663 2006-03-07 Simon Josefsson <jas@extundo.com>
9665 * m4/unistd_h.m4: New file.
9667 2006-03-07 Simon Josefsson <jas@extundo.com>
9669 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
9670 test to be side-effect free by storing the result in the cache
9671 variable gl_cv_lib_readline, and moving the assignment of
9672 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
9673 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9675 2006-03-07 Simon Josefsson <jas@extundo.com>
9677 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
9678 error on missing devices (the functions will return an error).
9680 * m4/gc.m4: Move random stuff to gc-random.m4
9682 2006-03-07 Simon Josefsson <jas@extundo.com>
9684 * lib/unistd_.h: New file.
9686 2006-03-07 Simon Josefsson <jas@extundo.com>
9688 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
9690 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
9692 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
9693 Problem reported by Juan Manuel Guerrero.
9695 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
9697 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
9699 * lib/getlogin_r.c: Likewise.
9700 * lib/getlogin_r.h: Likewise.
9701 * lib/glob.c: Likewise.
9702 * lib/pagealign_alloc.c: Likewise.
9703 * lib/unistd_.h: Remove; no longer needed.
9705 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
9707 * MODULES.html.sh (Support for systems lacking POSIX:2001):
9709 * modules/c-stack (Depends-on): Add unistd.
9710 * modules/getlogin_r: Likewise.
9711 * modules/glob: Likewise.
9712 * modules/pagealign_alloc: Likewise.
9713 * modules/unistd (Files): Remove lib/unistd_.h.
9714 (EXTRA_DIST): Remove.
9715 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
9717 (MOSTLYCLEANFILES): Remove unistd.h-t.
9719 2006-03-03 Simon Josefsson <jas@extundo.com>
9721 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
9723 2006-03-03 Simon Josefsson <jas@extundo.com>
9725 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
9728 2006-03-03 Simon Josefsson <jas@extundo.com>
9730 * build-aux/maint.mk: Add indent target.
9732 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
9734 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
9735 our replacement poll.h in any case, to avoid a differing
9736 declaration from a system header. Seen on AIX.
9738 2006-03-01 Simon Josefsson <jas@extundo.com>
9740 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
9743 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
9745 * modules/gettime (Depends-on): Add extensions module.
9746 * modules/nanosleep (Depends-on): Likewise.
9747 * modules/settime (Depends-on): Likewise.
9749 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
9751 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
9752 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
9754 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9755 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
9757 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
9758 not "==". Reported by Ralf Wildenhues.
9760 2006-03-01 Karl Berry <karl@gnu.org>
9762 * doc/Copyright/request-*: new files, synced from gnuorg.
9764 2006-03-01 Karl Berry <karl@gnu.org>
9766 * config/srclist.txt (Copyright/*): new entries.
9768 2006-02-28 Simon Josefsson <jas@extundo.com>
9770 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
9772 2006-02-27 Simon Josefsson <jas@extundo.com>
9774 * lib/base64.h: Indent #define's. From Jim Meyering
9777 2006-02-27 Jim Meyering <jim@meyering.net>
9779 Revert the change of 2006-02-24, so these files can continue
9780 to be sync'd from gettext.
9781 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
9784 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
9786 * modules/intprops: New file.
9787 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9789 * modules/getloadavg (Files): Remove lib/intprops.h.
9790 (Depends-on): Add intprops.
9791 * modules/human: Likewise.
9792 * modules/inttostr: Likewise.
9793 * modules/openat: Likewise.
9794 * modules/sig2str: Likewise.
9795 * modules/userspec: Likewise.
9796 * modules/utimecmp: Likewise.
9797 * modules/xnanosleep: Likewise.
9798 * modules/xstrtol: Likewise.
9800 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
9802 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
9803 * modules/lock-tests (TESTS): Use $(EXEEXT).
9804 * modules/tls-tests: Likewise.
9805 * modules/argp-tests: Likewise.
9806 (check_PROGRAMS): New var, replacing...
9807 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
9809 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9811 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
9814 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
9816 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
9818 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9820 Sync from coreutils.
9821 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
9824 2006-02-22 Jim Meyering <jim@meyering.net>
9826 Sync from coreutils.
9827 * m4/chdir-safer.m4: New file.
9829 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
9831 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
9832 AT_FDCWD exceeds INT_MAX.
9833 * lib/openat.h (AT_FDCWD): Likewise.
9835 2006-02-17 Eric Blake <address@hidden>
9837 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
9839 2006-02-16 Simon Josefsson <jas@extundo.com>
9841 * modules/getaddrinfo (Depends-on): Add sys_socket.
9843 2006-02-15 Simon Josefsson <jas@extundo.com>
9845 * build-aux/maint.mk: Add dsyntax-check rule.
9847 2006-02-15 Eric Blake <ebb9@byu.net>
9849 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
9850 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
9851 'present but cannot compile' warnings on cygwin.
9852 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
9853 use ws2tcpip.h if sys/socket.h works.
9854 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
9855 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
9857 2006-02-14 Simon Josefsson <jas@extundo.com>
9859 * modules/maintainer-makefile (Files): Rename.
9861 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
9862 and (the local) Makefile.cfg to maint-cfg.mk.
9864 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
9867 * modules/maintainer-makefile: New module.
9869 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
9870 severaly stripped to make it possible to build it up from scratch
9871 with reliable tests.
9873 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
9874 fixes to permit overriding the default actions when configure and
9875 makefile are not available.
9877 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
9879 Sync from coreutils.
9880 * modules/lstat (Depends-on): Don't depend on xalloc.
9881 (License): Change from GPL to LGPL, since this is now simply a
9882 replacement for a libc function.
9884 2006-02-14 Jim Meyering <jim@meyering.net>
9886 Sync from coreutils.
9888 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
9889 failure on deficient systems, and simplify gnulib lgpl dependencies.
9890 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
9891 xmalloc/lstat combination. Based on a patch from Bruno Haible.
9893 * lib/xalloc-die.c: Remove unused definition of N_.
9895 2006-02-14 Jim Meyering <jim@meyering.net>
9897 Sync from coreutils.
9898 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
9899 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9900 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
9901 double-quote uses of that variable, to accommodate the rare case in
9902 which getmntent is available in none of the libraries checked. This
9903 happens at least on FreeBSD 5.0.
9905 2006-02-13 Simon Josefsson <jas@extundo.com>
9907 * gnulib-tool (Usage): Fix --import, from
9908 karl@freefriends.org (Karl Berry).
9910 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
9912 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
9914 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
9916 * lib/argp-namefrob.h: Restore changes accidentally lost during the
9917 "autoupdate" on 2005-12-12.
9919 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
9921 * modules/closeout (Depends-on): Remove atexit.
9923 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
9925 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
9926 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
9928 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
9930 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
9931 __EXTENSIONS__ if this causes compilation to fail. Problem
9932 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
9933 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
9935 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
9937 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
9938 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
9939 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
9942 2006-01-26 Simon Josefsson <jas@extundo.com>
9944 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
9945 prototype is visible on mingw32.
9947 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
9950 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
9953 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
9955 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
9956 attempt to open for write; this always fails, at least on POSIX
9957 hosts. This reinstates the 2006-01-09 change, which was
9958 inadvertently removed.
9960 2006-01-26 Bruno Haible <bruno@clisp.org>
9962 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
9963 Reported by Paul Eggert.
9965 2006-01-26 Bruno Haible <bruno@clisp.org>
9966 Paul Eggert <eggert@cs.ucla.edu>
9968 * lib/stdbool_.h (_Bool)
9969 [(! (defined __cplusplus || defined __BEOS__)
9970 && !defined __GNUC__
9971 && !(defined __HP_cc || defined __xlc__
9972 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
9973 || defined __sgi))]:
9974 #define to signed char in these cases too; this simplifies
9975 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
9976 etc., separately) and makes it more conservative.
9978 2006-01-25 Simon Josefsson <jas@extundo.com>
9980 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
9981 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
9982 ws2tcpip.h with WINVER=0x0501. All for mingw32.
9984 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
9986 * lib/argp-namefrob.h: Bugfix. Remove stray #
9988 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
9990 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
9991 so that we test the test.
9992 Check for yet another HP-UX cc bug involving *bool |= bool.
9994 2006-01-25 Karl Berry <karl@gnu.org>
9996 * config/srclist.txt (vasnprintf.c): sync lost.
9998 2006-01-25 Jim Meyering <jim@meyering.net>
10000 Sync from the stable (b5) branch of coreutils:
10002 * lib/fts.c (fts_children): Don't let close() clobber errno from
10005 * lib/fts.c (fts_stat): When following a symlink-to-directory,
10006 don't necessarily interpret stat-fails+lstat-succeeds as indicating
10007 a dangling symlink. That can also happen at least for ELOOP.
10008 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
10009 FYI, this bug predates the inclusion of fts.c in coreutils.
10011 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
10012 in their own block, so pre-c99 compilers don't object.
10014 Avoid the double-free (first in fts_read, second in fts_close) that
10015 would occur when an `active' directory is made inaccessible (e.g.,
10016 via chmod a-x) during a traversal.
10017 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10018 before returning. Reproduce this failure by
10019 mkdir -p a/b; cd a; chmod a-x . b
10020 Reported by Stavros Passas.
10022 2006-01-25 Jim Meyering <jim@meyering.net>
10024 * lib/fileblocks.c: Remove more useless parentheses.
10025 * lib/readutmp.h: Likewise.
10027 2006-01-25 Bruno Haible <bruno@clisp.org>
10029 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
10031 Reported by Paul Eggert.
10033 2006-01-25 Bruno Haible <bruno@clisp.org>
10035 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
10036 rid of a trap command. For Solaris sh.
10037 Reported by Mark D. Baushke <mdb@gnu.org>.
10039 2006-01-24 Simon Josefsson <jas@extundo.com>
10041 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
10044 2006-01-24 Karl Berry <karl@gnu.org>
10046 * config/srclist.txt (argp-namefrob.h): sync lost.
10048 2006-01-24 Jim Meyering <jim@meyering.net>
10050 * modules/openat (Files): Add lib/intprops.h.
10051 From Mark D. Baushke.
10053 2006-01-24 Jim Meyering <jim@meyering.net>
10055 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
10056 Reported by Mark D. Baushke.
10058 2006-01-24 Jim Meyering <jim@meyering.net>
10060 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
10062 2006-01-24 Bruno Haible <bruno@clisp.org>
10064 * modules/strnlen (Maintainer): Change from glibc to all.
10066 2006-01-24 Bruno Haible <bruno@clisp.org>
10068 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
10069 Patch by Paul Eggert.
10071 2006-01-24 Bruno Haible <bruno@clisp.org>
10073 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
10075 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
10078 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
10079 'signed char' to avoid problems with the built-in _Bool type.
10080 Reported by Paul Eggert on 2005-11-26.
10082 2006-01-24 Bruno Haible <bruno@clisp.org>
10084 * gnulib-tool (func_import): Avoid constructing complicated sed
10085 expressions inside backquote.
10086 Report and solution by Mark D. Baushke <mdb@gnu.org>.
10088 2006-01-23 Ulrich Drepper <drepper@redhat.com>
10090 These changes imported from libc.
10091 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
10092 test and two separate function calls.
10093 * lib/strndup.c (__strndup): Add libc_hidden_def.
10095 2006-01-23 Simon Josefsson <jas@extundo.com>
10097 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
10098 Remove the test_*_SOURCES variable: automake infers it by default.
10099 * modules/tls-tests: Likewise.
10101 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10103 Work around porting bugs reported by Dieter in
10104 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
10105 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
10106 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
10107 Include "getopt.h" first, to check interface.
10108 (getenv): Declare only if defined HAVE_DECL_GETENV &&
10110 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
10111 (__strndup): Revert to K&R-style function dfns, the glibc style.
10112 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
10113 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
10114 Include strnlen.h first, to get prototype properly.
10115 (strnlen): Renamed from __strnlen.
10118 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10120 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
10122 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
10124 * config/srclist.txt: Adjust to reflect glibc reorganization.
10125 This affects only comments.
10127 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
10129 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
10130 Reported by Bruce Korb <bkorb@gnu.org>.
10132 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
10134 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
10135 to pacify gcc -Wswitch-default.
10137 2006-01-22 Bruno Haible <bruno@clisp.org>
10139 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
10140 temporary buffer for sprintf, take into account the precision also
10141 for 'd', 'i', 'u', 'o', 'x', 'X'.
10143 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
10145 * modules/argp-tests: New module
10146 * tests/test-argp.c: New file
10147 * tests/test-argp-2.sh: New file
10149 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
10151 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
10152 (__argp_base_name): Removed
10153 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
10155 (__argp_base_name): Provide macro definition or extern declaration
10156 depending on the configuration
10158 2006-01-20 Simon Josefsson <jas@extundo.com>
10160 * modules/inet_ntop (Depends-on): Depend on sys_socket.
10162 2006-01-20 Simon Josefsson <jas@extundo.com>
10164 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
10166 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
10168 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
10169 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
10170 Suggested by Bruno Haible.
10172 2006-01-20 Karl Berry <karl@gnu.org>
10174 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
10175 until changes propagate, I guess.
10177 2006-01-19 Simon Josefsson <jas@extundo.com>
10179 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
10181 2006-01-19 Simon Josefsson <jas@extundo.com>
10183 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
10185 2006-01-19 Simon Josefsson <jas@extundo.com>
10187 * gnulib-tool: Set check_PROGRAMS.
10189 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
10190 modules/des-tests, modules/gc-arcfour-tests,
10191 modules/gc-arctwo-tests, modules/gc-des-tests,
10192 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
10193 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
10194 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
10195 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
10196 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
10197 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
10198 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
10201 2006-01-18 Simon Josefsson <jas@extundo.com>
10203 * modules/socklen (Depends-on): Depend on sys_socket.
10205 2006-01-18 Simon Josefsson <jas@extundo.com>
10207 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
10208 modules/des-tests, modules/gc-arcfour-tests,
10209 modules/gc-arctwo-tests, modules/gc-des-tests,
10210 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
10211 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
10212 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
10213 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
10214 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
10215 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
10216 $(EXEEXT) to automake TESTS variable, for mingw32.
10218 2006-01-17 Simon Josefsson <jas@extundo.com>
10220 * modules/socklen (Include): Need sys/socket.h.
10222 2006-01-17 Bruno Haible <bruno@clisp.org>
10224 * modules/ssize_t (Include): Add <sys/types.h>.
10226 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
10228 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
10229 it's not portable and it doesn't work with cross-compiles.
10230 Problem reported by Bruno Haible. Fix missing-$ typo in
10231 'test "gl_cv_ignore_unused_libraries" ...' that prevented
10232 -zignore from being used with Sun's C compiler.
10234 2006-01-12 Simon Josefsson <jas@extundo.com>
10236 * lib/base64.c: Fix warning, reported by Bruno Haible
10237 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
10239 2006-01-12 Bruno Haible <bruno@clisp.org>
10241 * modules/ldd: New file.
10242 * build-aux/ldd.sh.in: New file.
10243 * MODULES.html.sh (Support for building libraries and executables): Add
10246 2006-01-12 Bruno Haible <bruno@clisp.org>
10248 * m4/ldd.m4: New file.
10250 2006-01-12 Bruno Haible <bruno@clisp.org>
10252 * gnulib-tool (func_import, func_create_testdir): Don't go into an
10253 endless loop while replacing $auxdir with build-aux.
10255 2006-01-11 Simon Josefsson <jas@extundo.com>
10257 * lib/stdint_.h (SIZE_MAX): Add missing (.
10259 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
10261 Sync from coreutils.
10262 * lib/md5.c: Fix commentary typos.
10263 (alignof, UNALIGNED_P): No need for a GCC-specific version.
10264 * lib/md5.h (__attribute__): Remove; unused.
10265 * lib/sha1.c: Fix commentary to match md5 better.
10266 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
10267 so that we don't need to worry about alignment. All uses changed.
10268 This merges the 2005-10-28 md5 change into sha1.
10270 2006-01-11 Jim Meyering <jim@meyering.net>
10272 Sync from coreutils.
10273 * lib/md5.c (OP): Fix spacing.
10275 2006-01-11 Bruno Haible <bruno@clisp.org>
10277 Ensure automatic ordering between gl_LOCK and gl_ARGP.
10278 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
10279 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
10281 2006-01-11 Bruno Haible <bruno@clisp.org>
10283 Ensure automatic ordering between gl_LOCK and gl_ARGP.
10284 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
10285 the "early" section as well.
10287 2006-01-11 Bruno Haible <bruno@clisp.org>
10289 Avoid "ar: no archive members specified" error on MacOS X.
10290 * gnulib-tool (func_modules_add_dummy): New function.
10291 (func_import, func_create_testdir): Invoke it.
10293 2006-01-11 Bruno Haible <bruno@clisp.org>
10295 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
10296 with $auxdir in AC_CONFIG_FILES statements.
10298 2006-01-11 Bruno Haible <bruno@clisp.org>
10300 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10301 Initialize also noinst_HEADERS to empty.
10303 2006-01-11 Bruno Haible <bruno@clisp.org>
10305 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
10307 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
10310 2006-01-11 Bruno Haible <bruno@clisp.org>
10312 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
10313 overridable by the user.
10314 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10316 2006-01-10 Simon Josefsson <jas@extundo.com>
10318 * modules/sys_socket: New file.
10320 2006-01-10 Simon Josefsson <jas@extundo.com>
10322 * m4/sys_socket_h.m4: New file.
10324 2006-01-10 Simon Josefsson <jas@extundo.com>
10326 * lib/socket_.h: New file.
10328 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10330 * modules/readutmp (Maintainer): Add myself.
10332 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10334 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
10335 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
10336 People who are still concerned with buggy memcmp implementations
10337 can invoke gl_FUNC_MEMCMP themselves.
10339 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
10341 * lib/regex_internal.h (BITSET_WORD_BITS):
10342 Work around a bug in 64-bit PGC (before version 6.1-2), where the
10343 preprocessor mishandles large unsigned values as if they were signed.
10344 Problem reported by Claudio Fontana in
10345 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
10347 2006-01-10 Jim Meyering <jim@meyering.net>
10349 Avoid the double-free (first in fts_read, second in fts_close) that
10350 would occur when an `active' directory is made inaccessible (e.g.,
10351 via chmod a-x) during a traversal.
10352 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
10353 before returning. Reproduce this failure by
10354 mkdir -p a/b; cd a; chmod a-x . b
10355 Reported by Stavros Passas.
10357 Sync from coreutils.
10358 * lib/sha1.c: Tweak grammar in a comment.
10360 2006-01-10 Jim Meyering <jim@meyering.net>
10362 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
10363 Patch by Joerg Sonnenberger.
10365 2006-01-10 Bruno Haible <bruno@clisp.org>
10367 * modules/readutmp: Depend on module free.
10368 * modules/strtok_r: Depend on module restrict.
10370 2006-01-10 Bruno Haible <bruno@clisp.org>
10372 * modules/gettext (configure.ac): Add an invocation of
10373 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
10375 2006-01-10 Bruno Haible <bruno@clisp.org>
10377 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
10378 Reported by Werner Lemberg <wl@gnu.org>.
10380 2006-01-10 Bruno Haible <bruno@clisp.org>
10382 * lib/localcharset.c: Update from GNU gettext.
10384 2006-01-10 Bruno Haible <bruno@clisp.org>
10386 * lib/argp.h (__const): Remove macro. Use const instead.
10387 * lib/argp-fmtstream.h (__const): Likewise.
10388 * lib/glob_.h (__const): Remove macro.
10389 * lib/glob-libc.h: Use const instead of __const.
10391 2006-01-10 Bruno Haible <bruno@clisp.org>
10393 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
10395 Needed to avoid an automake error regarding the 'gettext' module.
10397 2006-01-09 Simon Josefsson <jas@extundo.com>
10399 * modules/inet_ntop (Depends-on): Add restrict.
10401 2006-01-09 Simon Josefsson <jas@extundo.com>
10403 * modules/gc-rijndael-tests (License): Put under LGPL.
10405 * modules/gc-des-tests (License): Likewise.
10407 * modules/gc-arcfour-tests (License): Likewise.
10409 * modules/gc-arctwo-tests (License): Likewise.
10411 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
10413 * modules/gc-hmac-sha1-tests (Files): Likewise.
10415 * modules/gc-hmac-md5-tests (License): Likewise.
10417 * modules/gc-sha1-tests (License): Likewise.
10419 * modules/gc-md5-tests (License): Likewise.
10421 * modules/gc-md4-tests (License): Likewise.
10423 * modules/gc-md2-tests (License): Likewise.
10425 * modules/gc-tests (License): Likewise.
10427 * modules/des-tests (License): Likewise.
10429 * modules/md4-tests (License): Likewise.
10431 * modules/md2-tests (License): Likewise.
10433 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10435 Sync from coreutils:
10437 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
10438 * modules/lib-ignore: New file.
10439 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
10440 chdir-safer.m4, lchmod.m4.
10441 * modules/openat: Add mkdirat.c, openat-priv.h.
10443 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10445 Sync from coreutils.
10446 * m4/lib-ignore.m4: New file.
10447 * m4/lchmod.m4: New file.
10449 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10451 Sync from coreutils.
10452 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
10453 for write access: POSIX says that must fail.
10454 * lib/fts.c (diropen): Likewise.
10455 * lib/save-cwd.c (save_cwd): Likewise.
10456 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
10457 well, for minor improvements on hosts that lack O_DIRECTORY.
10458 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
10459 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
10460 Fall back on chown if open failed with EACCES.
10462 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
10463 Report an error at compile-time if only a 1-second nominal clock
10464 resolution is found.
10466 * lib/lchmod.h: New file.
10467 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
10468 (make_dir_parents): Use lchown rather than chown, and
10469 lchmod rather than chmod.
10471 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
10472 dummies too. Problem with "none" reported by Bob Proulx. Problem with
10473 "proc" reported by n0dalus.
10475 * lib/mountlist.c: Include <limits.h>.
10476 (dev_from_mount_options)
10477 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
10478 New function. It no longer assumes "dev=" has the System V meaning
10479 on Linux (since it doesn't). It also parses "dev=" more carefully.
10480 (read_file_system_list)
10481 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
10482 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
10485 * lib/posixtm.h (PDS_PRE_2000): New macro.
10486 * lib/posixtm.c (year): Arg is now syntax_bits rather than
10487 allow_century. All usages changed. Reject dates outside the range
10488 1969-1999 if PDS_PRE_2000 is used.
10490 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
10492 Sync from coreutils.
10493 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
10494 (Time of day items): Mention the possibility of leap seconds.
10495 Problem reported by Dr. David Alan Gilbert.
10497 2006-01-09 Jim Meyering <jim@meyering.net>
10499 Sync from coreutils.
10501 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
10503 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
10505 * lib/modechange.c (mode_compile): Reject an invalid mode string
10506 that starts with an octal digit. From Andreas Gruenbacher.
10508 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
10509 and dup to open_safer and dup_safer, respectively.
10510 (openat_permissive): Fix typo in comment.
10512 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
10513 "gettext.h"; either no longer needed or are guaranteed by openat.h.
10514 (_): Remove; no longer needed.
10515 (openat): Renamed from rpl_openat; no need for rpl_openat
10516 since openat.h renames openat for us.
10517 Replace most of the body with a call to openat_permissive,
10518 to avoid duplicate code.
10519 Port to (probably hypothetical) environments were mode_t is
10521 (openat_permissive): Require mode arg, so that we can check
10522 types better. Put it just after flags. Change cwd failure
10523 indicator from pointer-to-bool to pointer-to-errno-value.
10524 All callers changed.
10525 Invoke openat_save_fail and/or openat_restore_fail if
10526 cwd_errno is null, so that openat can call us.
10527 (openat_permissive, fdopendir, fstatat, unlinkat):
10528 Simplify errno handling to avoid some duplicate code,
10529 as it's OK to set errno on success.
10530 * lib/openat.h: Revamp code so that function macros depend on
10531 __OPENAT_PREFIX only, not also on AT_FDCWD.
10532 (openat_ro): Remove. Caller changed to use openat_permissive.
10533 (openat_permissive): Now a macro, if not a function.
10534 (openat_restore_fail, openat_save_fail): Now always functions,
10535 since mkdirat needs them even if __OPENAT_PREFIX is defined.
10537 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
10539 * lib/mkdirat.c: Include openat-priv.h.
10540 Remove definitions of macros defined therein.
10541 * lib/openat.c: Likewise.
10543 * lib/mkdirat.c (mkdirat): New file and function.
10544 * lib/openat.h (mkdirat): Declare.
10546 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
10548 * lib/openat.h (openat_permissive): Declare.
10549 (openat_ro): Define.
10551 * lib/openat.c (EXPECTED_ERRNO): New macro.
10552 (openat_permissive): New function -- used in remove.c rewrite.
10553 (all functions): Set errno just before returning, only if there
10554 was an actual failure.
10555 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
10557 Emulate openat-family functions using Linux's procfs, if possible.
10558 Idea and some code based on Ulrich Drepper's glibc changes.
10560 * lib/openat.c: (BUILD_PROC_NAME): New macro.
10561 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
10562 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
10563 before falling back on save_cwd and restore_cwd.
10564 (fdopendir, fstatat, unlinkat): Likewise.
10566 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
10567 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
10569 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
10570 as second argument to va_arg. Otherwise, some versions of gcc
10571 warn that `if this code is reached, the program will abort'.
10573 2006-01-09 Jim Meyering <jim@meyering.net>
10575 Sync from coreutils.
10576 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
10577 Require openat-priv.h.
10579 2006-01-09 Bruno Haible <bruno@clisp.org>
10581 * modules/strnlen (Include): Use strnlen.h.
10583 2006-01-09 Bruno Haible <bruno@clisp.org>
10585 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
10587 2006-01-09 Bruno Haible <bruno@clisp.org>
10589 * lib/sysexit_.h (EX_OK): New macro.
10590 Suggested by Martin Lambers <marlam@marlam.de>.
10592 2006-01-09 Bruno Haible <bruno@clisp.org>
10594 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
10595 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
10597 2006-01-09 Bruno Haible <bruno@clisp.org>
10599 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
10602 2006-01-09 Bruno Haible <bruno@clisp.org>
10604 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
10605 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
10606 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
10607 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
10609 2006-01-09 Bruno Haible <bruno@clisp.org>
10611 * build-aux/javacomp.sh.in: New file, moved from lib/.
10612 * modules/javacomp-script (Files): Update.
10613 (configure.ac): Add AC_CONFIG_FILES invocation.
10614 (EXTRA_DIST): Remove variable.
10616 * build-aux/javaexec.sh.in: New file, moved from lib/.
10617 * modules/javaexec (Files): Update.
10618 (configure.ac): Add AC_CONFIG_FILES invocation.
10619 (EXTRA_DIST): Remove javaexec.sh.in.
10621 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
10622 * modules/csharpcomp-script (Files): Update.
10623 (configure.ac): Add AC_CONFIG_FILES invocation.
10624 (EXTRA_DIST): Remove variable.
10626 * build-aux/csharpexec.sh.in: New file, moved from lib/.
10627 * modules/csharpexec (Files): Update.
10628 (configure.ac): Add AC_CONFIG_FILES invocation.
10629 (EXTRA_DIST): Remove csharpexec.sh.in.
10631 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
10633 Sync from coreutils.
10635 Add POSIX ACL support
10636 * lib/acl.h (copy_acl, set_acl): Add declarations.
10637 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
10638 systems other than Linux.
10639 (chmod_or_fchmod): New function: use fchmod when possible,
10640 and chmod otherwise.
10641 (file_has_acl): Add a POSIX ACL implementation, with a
10642 Linux-specific subcase.
10643 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
10644 S_ISVTX from one file to another. Fall back to fchmod/chmod when
10645 acls are unsupported.
10646 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
10647 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
10650 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
10652 Sync from coreutils.
10653 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
10655 2006-01-07 Bruno Haible <bruno@clisp.org>
10657 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
10660 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
10662 * lib/strftime.c (tzname): Don't declare if it is already #defined.
10663 Problem reported for Mingw by Mark Junker.
10665 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
10667 * README: Gnulib normally doesn't generate a tarball.
10669 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
10671 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
10672 long int, not int, for nanosecond counts, so that people who are
10673 used to POSIX struct timespec won't be surprised. Reported by Jim
10676 2005-12-28 Bruno Haible <bruno@clisp.org>
10678 * build-aux/config.rpath: Update from GNU gettext.
10680 2005-12-16 Jim Meyering <jim@meyering.net>
10682 * modules/fprintftime: New module.
10683 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
10685 2005-12-16 Jim Meyering <jim@meyering.net>
10687 * m4/fprintftime.m4: New file.
10689 2005-12-16 Jim Meyering <jim@meyering.net>
10691 * lib/fprintftime.c, lib/fprintftime.h: New files.
10693 2005-12-15 Simon Josefsson <jas@extundo.com>
10695 * modules/socklen (configure.ac): Fix M4 macro name, to align with
10698 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
10700 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
10701 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
10703 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
10705 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
10706 * lib/argp-help.c (fill_in_uparams): Check if the constructed
10707 struct uparams is valid. Fall back to the default values if it is
10710 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
10712 * modules/argp (Files): Add argp-pin.c
10713 (Depends-on): dirname
10714 (lib_SOURCES): Add argp-pin.c
10716 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
10718 * m4/argp.m4: Check if program_invocation_name and
10719 program_invocation_short_name are declared and define appropriate
10720 macros if they are not.
10722 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
10724 * lib/argp-help.c (__argp_base_name): New function
10725 (__argp_short_program_name): Rewrite using __argp_base_name
10726 * lib/argp-namefrob.h: Define program_invocation_name and
10727 program_invocation_short_name if requested
10728 (__argp_base_name): Add prototype
10729 * lib/argp-parse.c (argp_def): Use gettext wrappers
10730 (argp_default_parser): Use __argp_base_name
10731 * lib/argp-pin.c: New file. Defines program_invocation_name and
10732 program_invocation_short_name on systems that lack them.
10734 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
10736 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
10737 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10738 porting problem reported by Georg Schwarz in
10739 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10741 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
10743 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
10744 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10745 porting problem reported by Georg Schwarz in
10746 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10748 2005-12-05 Bruno Haible <bruno@clisp.org>
10750 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
10751 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
10752 Reported by Mark Junker <mjscod@gmx.de>.
10754 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
10756 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
10757 Use implementation from Albert Chin, with some
10758 comments/corrections by Stepan Kasal and myself.
10760 2005-12-02 Bruno Haible <bruno@clisp.org>
10762 * gnulib-tool (func_import): Accept GPLed build tool modules when
10764 * modules/csharpcomp-script: New file.
10765 * modules/csharpcomp: Depend on it.
10766 * modules/javacomp-script: New file.
10767 * modules/javacomp: Depend on it.
10768 Suggested by Simon Josefsson.
10770 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
10772 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
10773 statement, to work around an HP-UX 10.20 compiler bug reported by
10776 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
10778 * modules/savedir (Depends-on): Add openat.
10780 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
10782 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
10783 (uintmax_t) [defined uintmax_t]: Do not declare.
10784 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
10785 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
10786 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
10787 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
10788 sake of portability to weird hosts that C allows (though we don't
10789 know of any practical examples).
10791 * lib/savedir.h (fdsavedir): New decl.
10792 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
10793 contains most of the former guts of savedir.
10794 (savedir): Use savedirstream.
10795 Include "openat.h".
10797 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
10799 * modules/obstack (Files): Add m4/ulonglong.m4.
10800 Problem reported by Davide Angelocola.
10802 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
10804 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
10805 coreutils no longer futzes with rounding modes.
10807 2005-11-14 Jim Meyering <jim@meyering.net>
10809 * lib/mkstemp-safer.c: Include <config.h>, required for possible
10810 replacement of mkstemp.
10812 2005-11-10 Simon Josefsson <jas@extundo.com>
10814 * lib/readline.c: Remove EOL.
10816 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
10818 * modules/gethrxtime (Depends-on): Add gettime.
10820 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
10822 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
10823 or gettimeofday; no longer needed.
10825 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
10827 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
10829 (gethrxtime) [! (HAVE_NANOUPTIME
10830 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
10831 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
10832 our own approximation.
10834 2005-11-08 Eric Blake <ebb9@byu.net>
10836 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10838 2005-11-08 Eric Blake <ebb9@byu.net>
10840 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10842 2005-11-04 Bruno Haible <bruno@clisp.org>
10844 * gnulib-tool: Implement --update mode.
10846 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
10848 Fix porting problem reported by Theodoros V. Kalamatianos.
10849 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
10850 Don't assume that futimes failing means we must fail.
10852 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
10854 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
10855 variables to suggest the intended function of the PATH_MAX check.
10857 2005-10-30 Kean Johnston <jkj@sco.com>
10859 Trivial changes to support SCO systems.
10860 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
10862 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
10863 where __ptr is null when no I/O is pending.
10865 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
10867 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
10868 leave errno alone. Problem reported by Dmitry V. Levin.
10870 2005-10-28 Simon Josefsson <jas@extundo.com>
10872 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
10875 * tests/test-gc-md2.c, tests/test-md2.c: New files.
10877 * modules/md2, modules/md2-tests: New files.
10879 2005-10-28 Simon Josefsson <jas@extundo.com>
10881 * m4/inet_ntop.m4: More tests.
10883 * m4/gc-md2.m4, md2.m4: New file.
10885 2005-10-28 Simon Josefsson <jas@extundo.com>
10887 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
10888 "restrict" keywords, as per POSIX. Protect the function
10889 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
10890 Don't use K&R prototypes. Check the sprintf return values.
10891 Re-define EAFNOSUPPORT if not present. Indent.
10893 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
10894 suggested by Bruno Haible <bruno@clisp.org>.
10896 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
10898 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
10900 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
10903 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
10905 * lib/md2.h, lib/md2.c: New files.
10907 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
10909 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
10910 errno alone. Problem reported by Frederic Jolliton.
10912 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
10914 * modules/verify (License): Change from GPL to LGPL. This is a
10915 tiny module and there are apparently near-equivalents that are
10916 under the BSD license.
10918 2005-10-24 Simon Josefsson <jas@extundo.com>
10920 * modules/sha1: Relicense to LGPL.
10922 2005-10-24 Simon Josefsson <jas@extundo.com>
10924 * lib/md4.h: Shrink buffer size, now that we changed the type.
10926 2005-10-23 Simon Josefsson <jas@extundo.com>
10928 * gnulib-tool (func_import): Fix --tests-base.
10930 2005-10-22 Simon Josefsson <jas@extundo.com>
10932 * modules/arcfour (Depends-on): Need stdint.
10934 2005-10-22 Simon Josefsson <jas@extundo.com>
10936 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
10937 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
10939 2005-10-22 Simon Josefsson <jas@extundo.com>
10941 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
10942 suggested by Bruno Haible <bruno@clisp.org>.
10944 2005-10-22 Simon Josefsson <jas@extundo.com>
10946 * lib/crc.h: Include stddef.h, for size_t.
10948 2005-10-22 Simon Josefsson <jas@extundo.com>
10950 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
10951 arcfour_context struct (simplify test vector testing in GNU
10954 2005-10-21 Simon Josefsson <jas@extundo.com>
10956 * modules/des, modules/des-tests: New files.
10958 * modules/gc-des, modules/gc-des-tests: New files.
10960 * tests/test-des.c, tests/test-gc-des.c: New file.
10962 2005-10-21 Simon Josefsson <jas@extundo.com>
10964 * modules/arctwo, modules/arctwo-tests: New files.
10966 * tests/test-arctwo.c: New file.
10968 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
10970 * tests/test-gc-arctwo.c: New file.
10972 2005-10-21 Simon Josefsson <jas@extundo.com>
10974 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
10975 Bruno Haible <bruno@clisp.org>.
10977 * m4/gc-des.m4: New file.
10979 2005-10-21 Simon Josefsson <jas@extundo.com>
10981 * m4/arctwo.m4: New file.
10983 * m4/gc-arctwo.m4: New file.
10985 2005-10-21 Simon Josefsson <jas@extundo.com>
10987 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
10990 2005-10-21 Simon Josefsson <jas@extundo.com>
10992 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
10995 * lib/hmac-sha1.c (hmac_sha1): Likewise.
10997 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
10998 Bruno Haible <bruno@clisp.org>.
11000 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
11003 2005-10-21 Simon Josefsson <jas@extundo.com>
11005 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
11007 2005-10-21 Simon Josefsson <jas@extundo.com>
11009 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
11011 2005-10-21 Simon Josefsson <jas@extundo.com>
11013 * lib/des.h, lib/des.c: New files.
11015 * lib/gc-gnulib.c: Support DES.c
11017 2005-10-21 Simon Josefsson <jas@extundo.com>
11019 * lib/arctwo.h, lib/arctwo.c: New files.
11021 * lib/gc-gnulib.c: Support ARCTWO.
11023 2005-10-21 Simon Josefsson <jas@extundo.com>
11025 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
11026 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11028 2005-10-21 Simon Josefsson <jas@extundo.com>
11030 * gnulib-tool (func_import, func_create_testdir): Define automake
11031 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
11032 Makefile.am snippet),
11033 suggested by Bruno Haible <bruno@clisp.org>.
11035 * modules/gc (Makefile.am): Use it.
11037 2005-10-21 Bruno Haible <bruno@clisp.org>
11039 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
11042 2005-10-19 Simon Josefsson <jas@extundo.com>
11044 * tests/test-gc-rijndael.c: New file.
11046 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
11048 2005-10-19 Simon Josefsson <jas@extundo.com>
11050 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
11053 2005-10-19 Simon Josefsson <jas@extundo.com>
11055 * tests/test-gc-arcfour.c: New file.
11057 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
11059 2005-10-19 Simon Josefsson <jas@extundo.com>
11061 * modules/gc-md4, modules/gc-md4-tests: New file.
11063 * tests/test-gc-md4.c: New file.
11065 2005-10-19 Simon Josefsson <jas@extundo.com>
11067 * m4/gc-md4.m4: New file.
11069 2005-10-19 Simon Josefsson <jas@extundo.com>
11071 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
11072 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
11075 2005-10-19 Simon Josefsson <jas@extundo.com>
11077 * m4/gc-arcfour.m4: New file.
11079 * m4/gc-rijndael.m4: New file.
11081 2005-10-19 Simon Josefsson <jas@extundo.com>
11083 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
11085 2005-10-19 Simon Josefsson <jas@extundo.com>
11087 * lib/gc-gnulib.c: Support ARCFOUR.
11089 2005-10-19 Simon Josefsson <jas@extundo.com>
11091 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
11094 * lib/gc.h: Add ECB enum type.
11096 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
11098 2005-10-18 Simon Josefsson <jas@extundo.com>
11100 * tests/test-md5.c: New file.
11102 * modules/md5-tests: New file.
11104 2005-10-18 Simon Josefsson <jas@extundo.com>
11106 * tests/test-md4.c: New file.
11108 * modules/md4, modules/md4-tests: New files.
11110 2005-10-18 Simon Josefsson <jas@extundo.com>
11112 * m4/md4.m4: New file.
11114 2005-10-18 Simon Josefsson <jas@extundo.com>
11116 * lib/md4.h, lib/md4.c: New files, based on md5.?.
11118 2005-10-17 Stepan Kasal <kasal@ucw.cz>
11120 * gnulib-tool (func_create_testdir): Omit the second check whether
11121 BUILT_SOURCES in nonempty.
11123 2005-10-17 Simon Josefsson <jas@extundo.com>
11125 * tests/test-rijndael.c: New file.
11127 2005-10-17 Simon Josefsson <jas@extundo.com>
11129 * modules/sha1: Depend on stdint instead of md5.
11131 * modules/md5: Depend on stdint, remove uint32_t.
11133 2005-10-17 Simon Josefsson <jas@extundo.com>
11135 * modules/gc-sha1-tests: New file.
11137 * tests/test-gc-sha1.c: New file.
11139 2005-10-17 Simon Josefsson <jas@extundo.com>
11141 * m4/md5.m4: Remove call to uint32_t.m4.
11143 2005-10-17 Simon Josefsson <jas@extundo.com>
11145 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
11147 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
11150 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
11152 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
11154 2005-10-17 Simon Josefsson <jas@extundo.com>
11156 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
11158 2005-10-17 Simon Josefsson <jas@extundo.com>
11160 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
11162 2005-10-17 Simon Josefsson <jas@extundo.com>
11164 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
11166 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
11168 2005-10-17 Bruno Haible <bruno@clisp.org>
11170 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
11171 that it can also be used in a test.
11173 2005-10-16 Bruno Haible <bruno@clisp.org>
11175 * gnulib-tool (func_emit_tests_Makefile_am): Also define
11176 TESTS_ENVIRONMENT, so that individual tests can augment it.
11178 * gnulib-tool (func_create_testdir): Use an intermediate target for
11179 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
11180 macros, like $(ALLOCA_H), which cannot be passed through the command
11183 2005-10-15 Simon Josefsson <jas@extundo.com>
11185 * modules/rijndael-tests: New file.
11187 * modules/rijndael: New file.
11189 2005-10-15 Simon Josefsson <jas@extundo.com>
11191 * m4/rijndael.m4: New file.
11193 2005-10-15 Simon Josefsson <jas@extundo.com>
11195 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
11197 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
11199 2005-10-14 Simon Josefsson <jas@extundo.com>
11201 * tests/test-arcfour.c: New file.
11203 * modules/arcfour, modules/arcfour-tests: New files.
11205 2005-10-14 Simon Josefsson <jas@extundo.com>
11207 * m4/arcfour.m4: New file.
11209 2005-10-14 Simon Josefsson <jas@extundo.com>
11211 * lib/arcfour.h, lib/arcfour.c: New files.
11213 2005-10-14 Roland McGrath <roland@redhat.com>
11215 Import from libc. [BZ #1331]
11216 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
11218 Reported by Matej Vela <vela@debian.org>.
11220 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
11222 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
11223 include <wchar.h>; no longer needed.
11225 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
11227 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
11229 2005-10-14 Jakub Jelinek <jakub@redhat.com>
11230 and Ulrich Drepper <drepper@redhat.com>
11233 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
11234 instead of inline stream orientation test and two separate
11235 function calls. Pay no attention to USE_IN_LIBIO.
11237 2005-10-13 Simon Josefsson <jas@extundo.com>
11239 * modules/gc-hmac-md5-tests: New file.
11241 * tests/test-gc-hmac-sha1.c: New file.
11243 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
11245 * modules/gc-hmac-md5-tests: New file.
11247 * tests/test-gc-md5.c: New file.
11249 * modules/gc-md5-tests: New file.
11251 2005-10-13 Simon Josefsson <jas@extundo.com>
11253 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
11254 Move memory allocation outside of loop.
11256 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
11258 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
11259 intermediate directory is in a read-only file system. Problem
11260 reported by Eric Blake.
11262 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
11264 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
11266 2005-10-12 Simon Josefsson <jas@extundo.com>
11268 * tests/test-hmac-sha1.c: New file.
11270 * modules/hmac-sha1-tests: New file.
11272 * modules/hmac-sha1: New file.
11274 2005-10-12 Simon Josefsson <jas@extundo.com>
11276 * modules/gc-sha1: New file.
11278 2005-10-12 Simon Josefsson <jas@extundo.com>
11280 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
11282 * tests/test-gc-pbkdf2-sha1.c: New file.
11284 2005-10-12 Simon Josefsson <jas@extundo.com>
11286 * modules/gc-md5, modules/gc-hmac-md5: New files.
11288 * modules/gc (Files): Remove md5, memxor and hmac files.
11290 2005-10-12 Simon Josefsson <jas@extundo.com>
11292 * m4/gc-pbkdf2-sha1.m4: New file.
11294 * m4/gc-hmac-sha1.m4: New file.
11296 * m4/gc-sha1: New file.
11298 * m4/hmac-sha1.m4: New file.
11300 2005-10-12 Simon Josefsson <jas@extundo.com>
11302 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
11304 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
11306 2005-10-12 Simon Josefsson <jas@extundo.com>
11308 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
11309 suggested by Bruno Haible <bruno@clisp.org>.
11311 2005-10-12 Simon Josefsson <jas@extundo.com>
11313 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
11315 2005-10-12 Simon Josefsson <jas@extundo.com>
11317 * lib/gc-pbkdf2-sha1.c: New file.
11319 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
11321 2005-10-12 Simon Josefsson <jas@extundo.com>
11323 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
11325 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
11327 2005-10-12 Simon Josefsson <jas@extundo.com>
11329 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
11330 GC_USE_HMAC_MD5, respectively.
11332 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
11333 (gc_md5): Fix typo.
11335 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
11337 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
11339 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
11341 2005-10-12 Bruno Haible <bruno@clisp.org>
11343 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
11344 Reported by Stepan Kasal <kasal@ucw.cz>.
11346 2005-10-11 Simon Josefsson <jas@extundo.com>
11348 * tests/test-crc.c: New file.
11350 * modules/crc, modules/crc-tests: New files.
11352 2005-10-11 Simon Josefsson <jas@extundo.com>
11354 * m4/crc.m4: New file.
11356 2005-10-11 Simon Josefsson <jas@extundo.com>
11358 * lib/gc.h: Add gc_hash and gc_hash_buffer.
11360 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
11362 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
11364 2005-10-11 Simon Josefsson <jas@extundo.com>
11366 * lib/crc.h, lib/crc.c: New files.
11368 * lib/gc.h (gc_hash_buffer): Add doc.
11370 2005-10-11 Bruno Haible <bruno@clisp.org>
11372 * modules/c-strcasestr: New file.
11373 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
11375 2005-10-11 Bruno Haible <bruno@clisp.org>
11377 * modules/c-strcase: New file.
11378 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
11380 2005-10-11 Bruno Haible <bruno@clisp.org>
11382 * lib/strcasecmp.c: Include limits.h.
11383 (strcasecmp): Avoid integer overflow on exotic platforms.
11384 * lib/strncasecmp.c: Include limits.h.
11385 (strncasecmp): Avoid integer overflow on exotic platforms.
11386 Reported by Paul Eggert.
11388 2005-10-11 Bruno Haible <bruno@clisp.org>
11390 * lib/c-strcasestr.h: New file, from GNU gettext.
11391 * lib/c-strcasestr.c: New file, from GNU gettext.
11393 2005-10-11 Bruno Haible <bruno@clisp.org>
11395 * lib/c-strcase.h: New file, from GNU gettext.
11396 * lib/c-strcasecmp.c: New file, from GNU gettext.
11397 * lib/c-strncasecmp.c: New file, from GNU gettext.
11399 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
11401 * modules/mempcpy (License): GPL -> LGPL.
11402 * modules/strchrnul (License): Likewise.
11403 * modules/sysexits (License): Likewise.
11405 2005-10-08 Simon Josefsson <jas@extundo.com>
11407 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
11409 2005-10-07 Simon Josefsson <jas@extundo.com>
11411 * m4/memxor.m4: Remove gl_C_RESTRICT call.
11413 2005-10-06 Simon Josefsson <jas@extundo.com>
11415 * tests/test-hmac-md5.c: New file.
11417 * modules/hmac-md5-tests: New file.
11419 * modules/hmac-md5: New file.
11421 2005-10-06 Simon Josefsson <jas@extundo.com>
11423 * m4/hmac-md5.m4: New file.
11425 * m4/memxor.m4: Require gl_C_RESTRICT.
11427 2005-10-06 Simon Josefsson <jas@extundo.com>
11429 * lib/memxor.c (memxor): Avoid casts and warnings.
11431 2005-10-06 Simon Josefsson <jas@extundo.com>
11433 * lib/hmac-md5.c: New file.
11435 * lib/hmac.h: New file.
11437 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
11439 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
11440 promotes to int, not unsigned int, to catch the AIX 5.3
11443 2005-10-05 Simon Josefsson <jas@extundo.com>
11445 * modules/memxor: New file.
11447 * modules/iconv (Files): Move config.rpath to havelib, it is used
11450 * modules/havelib (Files): Add config.rpath.
11452 2005-10-05 Simon Josefsson <jas@extundo.com>
11454 * m4/memxor.m4: New file.
11456 2005-10-05 Simon Josefsson <jas@extundo.com>
11458 * lib/memxor.c (memxor): Fix compiler error.
11460 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
11461 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
11463 * lib/memxor.h, lib/memxor.c: New files.
11465 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
11466 we assume all systems have it, suggested by Jim Meyering
11467 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
11468 any systems lack sys/socket.h; mingw32 is known to lack it, but we
11469 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
11472 2005-10-05 Simon Josefsson <jas@extundo.com>
11474 * config/srclist.txt: Add glibc bug 1423 for md5.h.
11476 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
11478 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
11479 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
11480 needed, since the source code now assumes these .h files.
11482 2005-10-05 Derek Price <derek@ximbiot.com>
11484 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
11486 2005-10-05 Bruno Haible <bruno@clisp.org>
11488 * modules/stdint (License): Change to LGPL.
11490 2005-10-04 Simon Josefsson <jas@extundo.com>
11492 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
11493 D. Baushke" <mdb@gnu.org>.
11495 2005-10-04 Bruno Haible <bruno@clisp.org>
11497 * lib/verify.h (verify_true): Provide alternative definition for C++.
11499 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
11501 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
11502 (SSIZE_MAX): New macro, if not already defined.
11503 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
11506 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
11508 Sync from coreutils.
11509 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
11510 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
11511 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
11512 ULLONG_MAX doesn't work with 2.7.2.1.
11514 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
11516 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
11519 * modules/exclude (Depends-on): Depend on verify.
11520 * modules/strtoimax (Depends-on): Likewise.
11521 * modules/utimecmp (Depends-on): Likewise.
11523 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
11525 * lib/exclude.c: Include verify.h.
11526 (verify): Remove. All callers changed to use verify.h's version.
11527 * lib/strtoimax.c: Likewise.
11528 * lib/utimecmp.c: Likewis.e
11530 Sync from coreutils.
11531 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
11532 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
11533 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
11534 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
11535 bother returning ENOSYS if settimeofday or stime fails; just let
11536 them return whatever errno they want to return.
11537 * lib/utimens.c: Include unistd.h, for dup2.
11538 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
11539 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
11541 2005-10-02 Jim Meyering <jim@meyering.net>
11543 Sync from coreutils.
11544 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
11545 from glibc-2.2.5 that fails for read-only files.
11547 2005-10-02 Jim Meyering <jim@meyering.net>
11549 Sync from coreutils.
11550 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
11551 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
11552 `#if HAVE_CONFIG_H'.
11553 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
11554 Remove AT_FDCWD test.
11555 Do not consume the fd unless successful.
11556 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
11557 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
11558 block, so that we don't even try to compile it if settimeofday is
11559 available. This works around a compilation failure on OSF1 V5.1,
11560 due to stime requiring a `long int*' while tv_sec is `int'.
11562 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
11564 Sync from coreutils.
11565 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
11566 against `yes', rather than just testing for nonempty.
11568 2005-10-01 Simon Josefsson <jas@extundo.com>
11570 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
11573 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
11574 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
11575 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
11576 freeaddrinfo and gai_strerror are declared by the POSIX headers.
11577 Check if struct addrinfo is declared.
11579 2005-10-01 Simon Josefsson <jas@extundo.com>
11581 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
11582 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
11583 AI_* and EAI_* definitions. Protect function declarations.
11585 2005-10-01 Jim Meyering <jim@meyering.net>
11587 Sync from coreutils.
11589 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
11590 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
11591 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
11592 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
11593 in the inet and nsl libraries. Required on Solaris 5.7.
11595 2005-10-01 Jim Meyering <jim@meyering.net>
11597 Sync from coreutils.
11598 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
11599 in the inet and nsl libraries. Required on Solaris 5.7.
11601 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
11603 * lib/getdelim.c (getdelim): Remove unused variables.
11605 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
11607 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
11608 so that the code works even with ancient cpp. Portability problem
11609 with GCC 2.7.2.1 reported by Thomas M.Ott.
11611 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
11613 * modules/regex (Depends-on): Add strcase.
11615 * modules/gethostname (Licence): Change from GPL to LGPL, since
11616 gethostname.c is a trivial implementation of a standard library
11618 * modules/poll (License): Change from GPL to LGPL, since it's
11619 derived from LGPL code.
11621 2005-09-27 Jim Meyering <jim@meyering.net>
11623 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
11626 * lib/intprops.h (signed_type_or_expr__): Define.
11627 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
11628 for unsigned types.
11630 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
11632 * lib/verify.h (verify_expr): Remove, replacing with:
11633 (verify_true): New macro that returns true instead of void.
11634 (verify_type__): Remove.
11635 (verify): Use verify_true rather than verify_type__.
11637 2005-09-26 Bruno Haible <bruno@clisp.org>
11639 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
11641 (lib_SOURCES): Remove mbchar.c.
11642 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
11643 (Files): Add m4/mbrtowc.m4.
11644 * modules/mbiter: Likewise.
11645 * modules/mbuiter: Likewise.
11647 2005-09-26 Bruno Haible <bruno@clisp.org>
11649 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
11650 compile mbchar.c if they are not both present.
11651 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
11652 * m4/mbiter.m4 (gl_MBITER): Likewise.
11653 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
11654 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
11655 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
11657 2005-09-25 Jim Meyering <jim@meyering.net>
11659 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
11660 also uses socklen_t.
11662 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
11664 * lib/utimens.c (ENOSYS): Define if not already defined.
11665 (futimens): Support having a null PATH if the file descriptor
11668 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
11670 (__attribute): Define to empty unless GCC 3.1 or later.
11671 This works around a core dump on OpenBSD 3.4, which has GCC
11672 2.95.3, which dumps core when given __attribute__(()). It also
11673 simplifies other tests, since we really don't want to bother with
11674 worrying about which ancient version of GCC supported what.
11675 Original problem reported by Yoann Vandoorselaere, with part of
11676 the fix suggested by Derek Price.
11678 2005-09-24 Jim Meyering <jim@meyering.net>
11680 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
11681 so we can once again use a positive bitfield width of 1 -- now we
11682 don't have to explain why we were using a bitfield width of 2.
11684 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
11686 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
11687 and similarly for the other external symbols. Problem reported
11690 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
11691 bug reported by Jim Meyering.
11693 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
11694 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
11695 not needed, since socklen is a prerequisite module.
11697 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
11699 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
11700 Problem reported by Eric Blake.
11701 (getaddrinfo): Initialize se so that it's not garbage.
11702 Redo internal storage allocation so that it doesn't make unportable
11703 assumptions about alignment.
11706 * lib/utimens.c (futimens): Use futimesat if available.
11707 Prefer it to futimes since it doesn't have the futimes bug.
11709 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
11710 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
11711 Instead, declare a function that returns a pointer to an array,
11712 and use verify_type__ to declare the size of the array.
11713 Problem and germ of a solution reported by Bruno Haible.
11714 (verify_type__): Use 2, not 1, for bitfield size, to avoid
11715 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
11717 2005-09-23 Jim Meyering <jim@meyering.net>
11719 Sync from coreutils.
11720 Correct build failure (socklen_t not defined) on at least
11721 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
11722 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
11724 2005-09-23 Jim Meyering <jim@meyering.net>
11726 * modules/getaddrinfo (Depends-on): Add socklen.
11728 2005-09-23 Bruno Haible <bruno@clisp.org>
11730 * tests/test-verify.c: New file.
11732 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11734 Sync from coreutils.
11736 * modules/argmatch (Depends-on): Add verify.
11737 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
11739 * modules/save-cwd (Depends-on): Likewise.
11741 * modules/openat (Files): Add lib/openat-die.c.
11742 (Depends-on): Remove error, exitfail.
11745 * modules/verify: New file.
11746 * MODULES.html.sh (Diagnostics <assert.h>): New section,
11747 with "verify" module.
11749 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11751 Sync from coreutils.
11753 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
11754 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
11755 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
11756 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
11757 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
11758 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
11759 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
11760 Don't bother checking for string.h, stdlib.h, unistd.h.
11761 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
11762 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
11764 * m4/jm-macros.m4 (gl_MACROS): Likewise.
11765 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
11767 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
11768 (gl_GETDATE): Use it.
11770 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
11772 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11774 Sync from coreutils.
11776 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
11778 * lib/argmatch.h: Include verify.h
11779 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
11780 (ARGMATCH_ASSERT): Remove; unused.
11781 * lib/canonicalize.c: Assume STDC_HEADERS.
11782 * lib/exclude.c: Include "strcase.h".
11783 * lib/regex_internal.h [!defined _LIBC]: Likewise.
11784 * lib/getusershell.c: Include stdio--.h rather than stdio.h
11786 (getusershell): Call fopen, not fopen_safer.
11787 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
11788 Do not include unistd-safer.h.
11789 (save_cwd): Don't call fd_safer; no longer needed
11790 now that we include fcntl--.h.
11792 * lib/getdate.y (relative_time): New type.
11793 (RELATIVE_TIME_0): New constant.
11794 (parser_control): Use relative_time instead of doing it ourselves.
11795 (%union): Add new relative_time rel member.
11796 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
11798 (relunit, relunit_snumber): Now of type rel.
11799 (zone, rel, relunit, get_date): Adjust to above changes.
11801 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
11802 Do not include unistd-safer.h.
11803 (getloadavg): Don't call fd_safer; no longer needed
11804 now that we include fcntl--.h.
11806 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
11807 (make_dir_parents): Treat ENOSYS like EEXIST.
11809 Improve quality of diagnostics on restore_cwd failure.
11810 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
11811 (make_dir_parents): Last arg is now int * (for errno), not bool *.
11812 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
11813 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
11814 each time through the loop. Do not diagnose restore_cwd failure;
11815 that is the caller's job (and perhaps the caller does not care).
11817 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
11818 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
11819 If the file already exists but is not a directory, don't bother
11820 to try to make its parents.
11821 Close potential file descriptor leak if we can't chdir("/") (!).
11822 Don't always return true if chdir($PWD) fails; return true only
11823 if the requested action was done successfully (except for the
11825 Don't log final directory unless we actually made it.
11826 Refactor to avoid duplicate code to fix up permissions.
11827 Don't attempt to fix up parent permissions if chdir($PWD) fails.
11829 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
11830 to make it a bit faster and (I hope) clearer.
11831 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
11832 Fix bug in formats like %2N.
11834 * lib/verify.h: New file.
11836 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
11838 Sync from coreutils.
11839 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
11841 2005-09-22 Jim Meyering <jim@meyering.net>
11843 Sync from coreutils.
11845 * m4/lstat.m4 (gl_FUNC_LSTAT):
11846 Use AC_LIBSOURCES to require lstat.c and lstat.h.
11847 Remove obsolete comment.
11848 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
11849 * m4/xstrtod.m4: Likewise.
11851 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
11853 2005-09-22 Jim Meyering <jim@meyering.net>
11855 Sync from coreutils.
11857 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
11859 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
11860 the .tm_year member, since otherwise gcc-4.0 would now warn about
11861 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
11863 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
11864 order to avoid an unsuppressible warning from gcc on 64-bit systems.
11866 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
11867 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
11868 when run in a time zone for which daylight savings time is in effect
11869 for the starting date.
11871 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
11872 stop us from restricting permissions of just-created absolute-named
11874 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
11875 to restore initial working directory.
11876 * lib/mkdir-p.c (make_dir_parents): New parameter:
11877 different_working_dir, to tell caller if/when we change the working
11878 directory and are unable to return to the initial one.
11879 * lib/mkdir-p.h (make_dir_parents): Update prototype.
11880 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
11881 `return false'. This fixes a bug introduced on 2004-07-30.
11883 * lib/openat.c (fdopendir): Be sure to close the supplied
11884 file descriptor before returning. This makes our replacement
11885 implementation a little closer to Solaris's, where fdopendir
11886 ties the file descriptor to the returned DIR* pointer.
11887 * lib/openat.c (unlinkat): New function.
11888 * lib/openat.h (unlinkat): Add prototype.
11889 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
11890 (openat_restore_fail): Rename from openat_restore_die.
11891 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
11893 Provide an alternative to exiting immediately upon save_cwd or
11894 restore_cwd failure. Now, an application can arrange e.g.,
11895 to perform a longjump in that case.
11896 * lib/openat.c: Include dirname.h.
11897 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
11898 (rpl_openat, fdopendir, fstatat): Call openat_save_die
11899 and openat_restore_die rather than calling error directly.
11900 Don't include "error.h" or "exitfail.h"; they're no longer needed.
11902 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
11903 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
11906 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
11907 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
11908 int utc, int nanoseconds);
11910 date should not have to allocate a megabyte of virtual memory to
11911 handle a format argument like +%1048575T. When implemented with
11912 strftime, it must allocate such a buffer, use strftime to fill it
11913 in, print it, then free it.
11914 With fprintftime, it simply prints everything and exits.
11915 With no need for memory allocation, that's one fewer way to fail.
11916 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
11917 optional field width, not before, so we accept %9:z, not %:9z.
11918 (my_strftime): Be sure to use L_('x') for literals.
11920 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
11921 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
11922 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
11923 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
11924 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
11925 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
11926 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
11927 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
11928 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
11929 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
11930 * lib/xgethostname.c, lib/xreadlink.c:
11931 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
11933 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
11934 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
11935 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
11936 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11937 and don't include <sys/file.h>).
11939 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
11941 Sync from coreutils.
11943 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
11944 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
11945 [!LDAV_DONE]: Avoid unused variable warning.
11947 2005-09-21 Bruno Haible <bruno@clisp.org>
11949 * lib/unicodeio.h (unicode_to_mb): New declaration.
11951 2005-09-20 Derek Price <derek@ximbiot.com>
11953 * lib/getaddrinfo.c: Don't include <netdb.h> included from
11956 2005-09-20 Bruno Haible <bruno@clisp.org>
11958 * gnulib-tool: Remove trailing slashes from the values specified for
11959 --source-base, --m4-base, --tests-base, --aux-dir.
11960 Suggested by Simon Josefsson <jas@extundo.com>.
11962 2005-09-20 Bruno Haible <bruno@clisp.org>
11964 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
11965 func_modules_to_filelist, func_import, func_create_testdir): Make all
11966 sorting results locale-independent, so that gnulib-cache.m4 doesn't
11967 change when gnulib-tool is invoked in a different locale.
11969 2005-09-19 Simon Josefsson <jas@extundo.com>
11971 * m4/socklen.m4: Fix typo.
11973 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11975 Use a consistent style for including <config.h>.
11976 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
11977 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
11978 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
11979 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
11980 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
11981 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
11982 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
11983 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
11984 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
11985 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
11986 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
11987 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
11988 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
11989 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
11990 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
11991 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
11992 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
11993 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
11994 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
11995 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
11996 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
11997 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
11998 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
11999 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
12000 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
12001 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
12002 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
12003 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
12004 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
12005 lib/xstrtoumax.c, lib/yesno.c:
12006 Standardize inclusion of config.h.
12007 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
12008 lib/inttostr.h: Removed inclusion of config.h from header files.
12009 * lib/inttostr.c: Adjusted in-tree users.
12010 * lib/timespec.h: Remove superfluous warning to include config.h.
12011 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
12012 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
12013 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
12014 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
12015 config.h with HAVE_CONFIG_H.
12017 2005-09-19 Jim Meyering <jim@meyering.net>
12019 * modules/pathmax (License): Change to LGPL.
12021 2005-09-19 Derek Price <derek@ximbiot.com>
12023 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
12025 2005-09-19 Bruno Haible <bruno@clisp.org>
12027 * gnulib-tool (import): Provide default for --tests-base.
12029 2005-09-19 Bruno Haible <bruno@clisp.org>
12031 * doc/quote.texi: New file, extracted from gnulib.texi.
12032 * doc/ctime.texi: New file, extracted from gnulib.texi.
12033 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
12034 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
12035 * doc/gnulib.texi: Include them.
12037 2005-09-18 Bruno Haible <bruno@clisp.org>
12040 * gnulib-tool (func_readlink): New function.
12041 (func_ln_if_changed): Use it.
12043 2005-09-18 Bruno Haible <bruno@clisp.org>
12045 * gnulib-tool: Support --with-tests also with --import.
12046 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
12047 (func_import): Use variables $testsbase and $inctests. Emit a
12048 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
12049 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
12050 SUBDIRS += $testsdir.
12051 (func_create_testdir): Update.
12053 2005-09-18 Bruno Haible <bruno@clisp.org>
12055 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
12056 instead of $dry_run.
12057 (func_cp_if_changed, func_mv_if_changed): Remove functions.
12058 (func_ln_if_changed): Don't handle dry-run here.
12059 (func_import): In dry-run mode, detect more precisely which actions
12060 would be performed, and don't use "...ing" verbs.
12062 2005-09-18 Bruno Haible <bruno@clisp.org>
12064 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
12065 (func_import): Use join on two temporary files instead of three nested
12066 loops, in order to determine which files are new or old.
12068 2005-09-18 Bruno Haible <bruno@clisp.org>
12070 * gnulib-tool (func_import): Comment out code that spits out the
12071 new files with --dry-run.
12073 2005-09-18 Bruno Haible <bruno@clisp.org>
12075 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
12077 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12079 * lib/stat-time.h: New file.
12080 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
12081 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
12082 in a different way.
12083 (timespec_cmp): New function.
12084 * lib/utimecmp.c: Include stat-time.h.
12085 (SYSCALL_RESOLUTION): Depend on whether various struct stat
12086 members exist, not on the obsolescent ST_MTIM_NSEC.
12087 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
12089 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12091 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
12093 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
12095 * MODULES.html.sh (File system functions): Add stat-time.
12096 * modules/stat-time: New file.
12097 * modules/timespec (Files): Remove m4/st_mtim.m4; this
12098 is now done in a different way, by the stat-time module.
12099 * modules/utimecmp (Depends-on): Add stat-time.
12101 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
12103 * m4/st_mtim.m4: Remove. Superseded by...
12104 * m4/stat-time.m4: New file.
12105 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
12106 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
12108 2005-09-15 Derek Price <derek@ximbiot.com>
12110 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
12112 2005-09-15 Derek Price <derek@ximbiot.com>
12114 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
12115 * lib/regex_internal.c: Ditto, using this...
12116 (__GNUC_PREREQ): ...new macro.
12117 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
12119 (__GNUC_PREREQ): ...this new macro.
12121 * lib/strstr.h: Include string.h. Define strstr as a macro here.
12123 2005-09-15 Derek Price <derek@ximbiot.com>
12124 Paul Eggert <eggert@cs.ucla.edu>
12126 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
12127 changes, consolidating in...
12128 * lib/regex_internal.h: ...this file.
12130 2005-09-13 Jim Meyering <jim@meyering.net>
12132 * lib/canon-host.c: Filter through gnu indent and reword comments
12134 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
12136 2005-09-13 Derek Price <derek@ximbiot.com>
12138 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
12140 Reported by Jim Meyering <jim@meyering.net>.
12142 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
12144 * lib/base64.c: Typo.
12145 (base64_encode): Put b64str in initialized data section.
12147 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
12149 Merge glibc and coreutils changes into gnulib, plus a few
12151 * lib/md5.c: Use #error rather than a string.
12152 (CYCLIC): New macro, from glibc source. Use it instead of rol.
12153 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
12154 (__attribute__): Define to empty for non recent-GCC.
12155 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
12156 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
12157 Renamed from their non-__ counterparts, with new macros replacing
12158 them if not _LIBC. Add __THROW attribute.
12160 (struct md5_ctx): Align buffer if using GCC.
12161 * lib/sha1.h (struct sha1_ctx): Likewise.
12162 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
12163 The old name was backwards.
12164 (NOTSWAP): Remove; not used.
12165 (rol): New macro, moved here from md5.h.
12166 (sha1_process_block): Remove a FIXME that doesn't make sense.
12168 2005-09-12 Derek Price <derek@ximbiot.com>
12170 Return usable errors from canon-host.
12171 * lib/canon-host.h: New file.
12172 * lib/canon-host.c (canon_host): Wrap...
12173 (canon_host_r): ...this new function, which now relies exclusively on
12175 (ch_strerror): New function.
12176 (last_cherror): New global.
12177 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
12179 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
12181 (freeaddrinfo): Free ai->ai_canonname when set.
12183 2005-09-12 Derek Price <derek@ximbiot.com>
12185 Make canon-host require getaddrinfo.
12186 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
12187 AC_LIBSOURCE canon-host.h. Call...
12188 (gl_PREREQ_CANON_HOST): ...this new function, which requires
12190 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
12192 2005-09-12 Derek Price <derek@ximbiot.com>
12194 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
12196 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
12198 2005-09-12 Derek Price <derek@ximbiot.com>
12200 * lib/gai_strerror.c: Include config.h when available. Include
12201 getaddrinfo.h before other headers to test interface.
12202 Reported by Larry Jones <lawrence.jones@ugs.com>.
12204 2005-09-12 Derek Price <derek@ximbiot.com>
12205 Paul Eggert <eggert@cs.ucla.edu>
12207 * modules/glob (Files): Add glob-libc.h.
12209 2005-09-12 Derek Price <derek@ximbiot.com>
12210 Paul Eggert <eggert@cs.ucla.edu>
12212 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
12213 glob_.h, glob-libc.h.
12214 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
12216 2005-09-12 Derek Price <derek@ximbiot.com>
12217 Paul Eggert <eggert@cs.ucla.edu>
12219 * lib/glob-libc.h: Renamed from glob_.h. The new version is
12220 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
12221 protecting things that should be done only in gnulib contexts.
12222 * lib/glob_.h: New file, containing only the glob things needed for
12224 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
12225 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
12226 (glob, globfree, glob_pattern_p): Now defined simply in terms of
12227 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
12228 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
12229 and to respect the namespace rules better.
12231 2005-09-08 Simon Josefsson <jas@extundo.com>
12233 * modules/socklen: New file.
12235 2005-09-08 Simon Josefsson <jas@extundo.com>
12237 * m4/socklen.m4: New file.
12239 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12241 * modules/utimens (Files): Add m4/utimbuf.m4, since
12242 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
12243 Reported by Sergey Poznyakoff.
12245 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12247 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
12248 definitions, since that's the preferred style in glibc.
12249 Fix a minor spacing issue, and update copyright notice to match
12252 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
12254 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
12256 2005-09-06 Simon Josefsson <jas@extundo.com>
12258 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
12259 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
12261 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12263 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
12266 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
12268 * config/srclist.txt: Add glibc bug 1302.
12270 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
12272 Change bitset word type from unsigned int to unsigned long int,
12273 as this has better performance on typical 64-bit hosts.
12274 Port bitset code to hosts with unusual word sizes.
12275 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
12276 (build_collating_symbol):
12277 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
12278 argument is a bitset. This is merely a style issue, but it makes
12279 it clearer that an entire array is expected.
12280 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
12281 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
12282 Port to the case where bitset_word is not the same as unsigned int.
12283 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
12284 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
12286 * lib/regexec.c (check_dst_limits_calc_pos_1,
12287 check_subexp_matching_top):
12288 (build_trtable, group_nodes_into_DFAstates):
12290 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
12291 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
12292 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
12293 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
12294 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
12295 * lib/regcomp.c (optimize_subexps, lower_subexp):
12296 Work even if bitset_word has holes in its bitwise representation.
12297 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
12298 * lib/regexec.c (check_dst_limits_calc_pos_1,
12299 check_subexp_matching_top):
12301 * lib/regex_internal.c (re_string_reconstruct):
12302 Don't assume UCHAR_MAX == 255.
12303 * lib/regex_internal.h (bitset_set_all): Likewise.
12304 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
12306 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
12307 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
12309 (BITSET_WORD_MAX): New macro.
12310 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
12311 (bitset_set_all, bitset_copy): Now inline functions, not macros.
12312 (bitset_empty, bitset_copy):
12313 Prefer sizeof (bitset) to multiplying it out ourselves.
12314 (bitset_not_merge): Remove; unused.
12315 (bitset_contain): Return bool, not unsigned int with one bit on.
12316 All callers changed.
12317 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
12318 alignment than re_node_set; do this by defining a new internal
12319 type struct dests_alloc and using it to allocate memory.
12321 2005-09-05 Bruno Haible <bruno@clisp.org>
12323 * gnulib-tool (func_import): Fix comparison in handling of symbolic
12326 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
12328 * modules/size_max (Makefile.am): Add size_max.h
12330 2005-09-04 Derek Price <derek@ximbiot.com>
12332 * gnulib-tool (func_import): Fix reversed $symbolic logic.
12334 2005-09-03 Simon Josefsson <jas@extundo.com>
12336 * gnulib-tool: Fix typo.
12338 2005-09-03 Simon Josefsson <jas@extundo.com>
12340 * config/srclist.txt: Add glibc bug 1293.
12342 2005-09-03 Derek Price <derek@ximbiot.com>
12344 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
12345 From Larry Jones <lawrence.jones@ugs.com>.
12347 2005-09-02 Simon Josefsson <jas@extundo.com>
12349 * modules/socklen: New file.
12351 2005-09-02 Simon Josefsson <jas@extundo.com>
12353 * modules/havelib: New module.
12355 * modules/gettext, modules/iconv, modules/lock, modules/readline:
12358 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
12360 Check for arithmetic overflow when calculating sizes, to prevent
12361 some buffer-overflow issues. These patches are conservative, in the
12362 sense that when I couldn't determine whether an overflow was possible,
12363 I inserted a run-time check.
12364 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
12366 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
12367 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
12368 (re_xnrealloc, re_x2nrealloc): New inline functions.
12369 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
12370 parse_bracket_exp):
12371 (build_equiv_class, build_charclass): Check for arithmetic overflow
12372 in size expression calculations.
12373 * lib/regex_internal.c (re_string_realloc_buffers):
12374 (build_wcs_upper_buffer, re_node_set_add_intersect):
12375 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
12376 (re_dfa_add_node, register_state): Likewise.
12377 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
12378 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
12379 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
12380 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
12382 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
12384 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
12385 m4/ulonglong.m4. Problem reported by Martin Lambers.
12387 2005-09-02 Bruno Haible <bruno@clisp.org>
12389 Support for lib vs. lib64 distinction on biarch platforms.
12390 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
12391 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
12392 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
12394 2005-09-02 Bruno Haible <bruno@clisp.org>
12396 * gnulib-tool (import): In the other first-use case, provide defaults
12399 2005-09-02 Bruno Haible <bruno@clisp.org>
12401 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
12402 patches not yet found in the latest gettext release.
12404 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
12406 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
12407 to avoid a collision with bits/local_lim.h in glibc.
12408 All uses changed. Problem reported by Dmitry V. Levin in
12409 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
12411 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
12412 bugs in int versus size_t comparisons.
12413 (re_string_context_at): Fix bug where the code assumed that
12416 Use bool where appropriate.
12417 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
12418 All callers changed.
12419 (calc_eclosure_iter): Likewise, for ROOT arg.
12420 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
12421 (build_charclass_op): Likewise, for NON_MATCH arg.
12422 * lib/regex_internal.c (re_string_allocate, re_string_construct):
12423 (re_string_construct_common): Likewise, for ICASE arg.
12424 * lib/regexec.c (re_search_2_stub, re_search_stub):
12425 Likewise, for RET_LEN arg.
12426 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
12427 (set_regs): Likewise, for FL_BACKTRACK arg.
12428 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
12429 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
12430 (calc_eclosure_iter, parse_bracket_exp):
12431 Use bool for internal variables that are booleans.
12432 * lib/regexec.c (re_search_internal, check_matching,
12433 proceed_next_node):
12434 (set_regs, build_sifted_states, sift_states_bkref):
12435 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
12436 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12437 (find_collation_sequence_value):
12439 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
12440 (re_node_set_compare):
12441 Return bool, not int. All callers changed.
12442 * lib/regexec.c (check_halt_node_context, check_dst_limits):
12443 (build_trtable, check_node_accept): Likewise.
12444 * lib/regex_internal.h: Include stdbool.h.
12446 Fix bugs uncovered when converting to bool.
12447 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
12448 failure instead of charging ahead blindly.
12449 * lib/regex_internal.c (register_state): Likewise.
12450 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
12451 for freeing internal storage.
12452 (group_nodes_into_DFA_states): Use unsigned int, not int, for
12453 bitset pieces used as boolean, to avoid undefined behavior
12454 on hosts that do int overflow checking.
12456 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
12458 * config/srclist.txt: Add glibc bugs 1285-1287.
12460 2005-09-01 Jim Meyering <jim@meyering.net>
12462 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
12463 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
12464 Require gl_STAT_MACROS, too.
12466 2005-09-01 Bruno Haible <bruno@clisp.org>
12468 * gnulib-tool (import): In the first-use case, provide defaults.
12470 2005-09-01 Bruno Haible <bruno@clisp.org>
12472 * gnulib-tool (func_import): Remove the .tmp files.
12474 2005-09-01 Bruno Haible <bruno@clisp.org>
12476 * gnulib-tool (func_import): Fix handling of symbolic links.
12478 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12480 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
12481 old glibc regex code mishandles strings longer than 2**31 bytes.
12482 This patch fixes this when the regex code is used in gnulib
12483 (i.e., outside glibc).
12485 This patch should not affect the use of the regex code inside
12486 glibc. No doubt this problem also needs to be handled for glibc
12487 as well, but the result will be an incompatible change to the
12488 glibc ABI, and the old ABI will have to be supported too. That
12489 can be the the subject for another patch.
12491 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
12492 governing whether the rest of this patch is active. By default,
12493 the macro is disabled and the patch has no effect.
12494 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
12495 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
12496 (struct re_pattern_buffer, re_search, re_search_2, re_match):
12497 (re_match_2, re_set_registers): Use the new types.
12498 * lib/regex_internal.h (Idx, re_hashval_t): New types.
12499 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
12501 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
12502 (re_string_context_at, bin_tree_t, re_dfastate_t):
12503 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
12504 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
12505 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
12506 (re_string_char_size_at, re_string_wchar_at):
12507 (re_string_elem_size_at):
12508 Use the new types and macros to port to 64-bit hosts.
12509 Use unsigned types for internal values, so that the code
12510 mostly works even for arrays larger than SSIZE_MAX.
12511 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
12512 (search_duplicated_node, calc_eclosure_iter, fetch_number):
12513 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
12514 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
12515 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
12516 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
12517 (calc_inveclosure, parse_dup_op, build_range_exp):
12518 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
12519 (fetch_number, create_token_tree, mark_opt_subexp):
12521 * lib/regex_internal.c (re_string_construct_common,
12522 create_ci_newstate):
12523 (create_cd_newstate, re_string_allocate, re_string_construct):
12524 (re_string_realloc_buffers, build_wcs_upper_buffer):
12525 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12526 (re_string_reconstruct, re_string_peek_byte_case):
12527 (re_string_fetch_byte_case, re_string_context_at):
12528 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12529 (re_node_set_init_copy, re_node_set_add_intersect):
12530 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12531 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12532 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12533 (re_acquire_state, re_acquire_state_context, register_state):
12535 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
12536 search_cur_bkref_entry):
12537 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
12538 (re_search_internal, re_search_2_stub, re_search_stub)
12539 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
12540 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
12541 (update_cur_sifted_state, check_dst_limits):
12542 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
12543 (check_subexp_limits, sift_states_bkref, merge_state_array):
12544 (check_subexp_matching_top, get_subexp, get_subexp_sub):
12545 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
12546 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12547 (expand_bkref_cache, check_node_accept_bytes):
12548 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
12549 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
12550 (acquire_init_state_context, check_halt_node_context):
12551 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
12552 (sift_states_backward, clean_state_log_if_needed):
12553 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
12554 (find_recover_state, transit_state_sb, transit_state_mb):
12555 (transit_state_bkref, build_trtable, match_ctx_clean):
12557 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
12558 to work around an assumption that REG_MISSING is negative.
12560 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
12561 (seek_collating_symbol_entry) [defined _LIBC]:
12562 (lookup_collation_sequence_value) [defined _LIBC]:
12563 (build_range_exp, build_collating_symbol) [defined _LIBC]:
12564 Use prototypes rather than old-style function definitions.
12565 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
12566 (transit_state_sb) [0]:
12567 (find_collation_sequence_value) [defined _LIBC]: Likewise.
12569 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
12572 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
12573 (optimize_subexps, lower_subexp):
12574 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
12575 since the signed shift might overflow. Use 1u<<31 instead.
12576 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
12578 * lib/regexec.c (check_dst_limits_calc_pos_1,
12579 check_subexp_matching_top): Likewise.
12581 * lib/regcomp.c (optimize_subexps, lower_subexp):
12582 Use CHAR_BIT rather than 8, for clarity.
12583 * lib/regexec.c (check_dst_limits_calc_pos_1):
12584 (check_subexp_matching_top): Likewise.
12585 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
12586 have to worry about portability issues when shifting it left.
12587 Remove no-longer-needed test for table_size > 0.
12588 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
12589 in a word, as the resulting behavior is undefined.
12590 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
12591 in one case, a <= should have been an <, and in another case the
12592 whole test was missing.
12593 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
12594 the standard name CHAR_BIT.
12595 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
12596 this is not true on one's complement and signed-magnitude hosts.
12598 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
12600 (struct re_dfa_t): Remove unused member states_alloc.
12601 * lib/regcomp.c (init_dfa): Don't initialize unused members.
12603 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12605 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
12606 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
12607 and large-file glibc and in 32-bit large-file Solaris.
12609 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12611 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
12612 lengths fit in regoff_t; this isn't true if regoff_t is the same
12614 * lib/regex.c (re_search_internal): 5th arg is LAST_START
12615 (= START + RANGE) instead of RANGE. This avoids overflow
12616 problems when regoff_t is the same width as size_t.
12617 All callers changed.
12618 (re_search_2_stub): Check for overflow when adding the
12619 sizes of the two strings.
12620 (re_search_stub): Check for overflow when adding START
12621 to RANGE; if it occurs, substitute the extreme value.
12623 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
12625 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
12627 2005-08-31 Jim Meyering <jim@meyering.net>
12629 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
12630 a pointer-to-const.
12631 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
12632 (register_state): Likewise.
12633 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
12634 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
12635 (group_nodes_into_DFAstates): Likewise.
12637 2005-08-31 Jim Meyering <jim@meyering.net>
12639 * check-module: Add a FIXME comment.
12641 2005-08-31 Eric Blake <ebb9@byu.net>
12643 * modules/unistd-safer (Files): Add unistd--.h.
12644 * modules/stdio-safer (Files): Add stdio--.h.
12646 2005-08-31 Derek Price <derek@ximbiot.com>
12648 * lib/getdelim.c (getdelim): Return EOF on EOF.
12649 Reported by Larry Jones <lawrence.jones@ugs.com>.
12651 2005-08-31 Bruno Haible <bruno@clisp.org>
12653 Avoid unnecessary diffs in the generated lib/Makefile.am.
12654 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
12655 the generated files.
12656 (func_import): Don't set cmd.
12658 2005-08-31 Bruno Haible <bruno@clisp.org>
12660 * lib/strstr.c: Include <stddef.h>, for NULL.
12661 * lib/strcasestr.c: Likewise.
12662 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12664 2005-08-31 Bruno Haible <bruno@clisp.org>
12666 * gnulib-tool: New option --macro-prefix.
12667 (func_import): Use macro_prefix.
12668 (import): Handle option --macro-prefix.
12670 2005-08-31 Bruno Haible <bruno@clisp.org>
12672 * gnulib-tool (import): Rename most ac_* variables to cached_*.
12673 Also use new variables cached_lgpl, cached_libtool.
12675 2005-08-31 Bruno Haible <bruno@clisp.org>
12677 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
12678 always instantiating them.
12680 2005-08-31 Bruno Haible <bruno@clisp.org>
12682 * gnulib-tool (func_import): Read the previous cached settings
12683 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
12684 earlier added by gnulib but are now dropped. Warn when a gnulib file
12685 overwrites a non-gnulib file.
12687 2005-08-31 Bruno Haible <bruno@clisp.org>
12689 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
12690 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
12691 projects that don't keep autogenerated files in CVS. Put into
12692 actioncmd only the specified modules, not the transitive closure.
12694 2005-08-31 Bruno Haible <bruno@clisp.org>
12696 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
12697 Create directories that shall be filled.
12698 (import): Don't look for gl_* macros in configure.ac. Recurse across
12699 all directories containing a gnulib-cache.m4 files, if meaningful.
12701 2005-08-31 Bruno Haible <bruno@clisp.org>
12703 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
12704 (import): Set seen_libtool when we see gl_LIBTOOL.
12706 2005-08-31 Bruno Haible <bruno@clisp.org>
12708 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
12709 declaration macro definitions from generated gnulib.m4.
12711 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
12713 * lib/iconvme.h: Add prototype for iconv_alloc.
12715 2005-08-29 Simon Josefsson <jas@extundo.com>
12717 * lib/iconvme.c: Fix errno.
12719 2005-08-29 Bruno Haible <bruno@clisp.org>
12721 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
12722 that it works when the directory contains spaces.
12724 2005-08-29 Bruno Haible <bruno@clisp.org>
12726 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
12728 2005-08-29 Bruno Haible <bruno@clisp.org>
12730 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
12733 2005-08-29 Bruno Haible <bruno@clisp.org>
12734 and Stepan Kasal <kasal@ucw.cz>
12736 * check-module: If more parameters are given, check each of them
12737 separately; add more exceptions, as noted by Jim Meyering.
12738 (check_module): New procedure.
12739 (%exempt_header): Now contains all exceptions.
12741 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
12743 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
12745 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
12747 * lib/iconvme.c: Split iconv_string into iconv_alloc.
12749 2005-08-28 Bruno Haible <bruno@clisp.org>
12751 * m4/gnulib-tool.m4: New file.
12753 2005-08-27 Jim Meyering <jim@meyering.net>
12755 * modules/unistd-safer (Files): Add pipe-safer.c.
12756 * modules/fcntl-safer (Files): Add creat-safer.c.
12758 2005-08-27 Jim Meyering <jim@meyering.net>
12760 * m4/stdlib-safer.m4: New file. From coreutils.
12761 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
12762 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
12763 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
12764 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
12765 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
12767 2005-08-27 Jim Meyering <jim@meyering.net>
12769 * lib/fopen-safer.c: Merge minor changes from coreutils.
12770 * lib/dup-safer.c: Likewise.
12771 * lib/fd-safer.c: Likewise.
12773 Merge from coreutils.
12774 * lib/stdio--.h: New file.
12775 * lib/stdlib--.h: New file.
12776 * lib/mkstemp-safer.c: New file.
12778 GNU tar needs these.
12779 * lib/pipe-safer.c: New file.
12780 * lib/creat-safer.c: New file.
12781 * lib/fcntl--.h (creat): Define to creat_safer.
12782 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
12783 * lib/unistd--.h (pipe): Define to pipe_safer.
12784 * lib/unistd-safer.h: Declare pipe_safer.
12786 2005-08-26 Simon Josefsson <jas@extundo.com>
12788 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
12789 Haible <bruno@clisp.org>.
12791 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
12793 * lib/regex_internal.h: Remove all references to
12794 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
12796 (bitset_not, bitset_merge, bitset_not_merge):
12797 (bitset_mask, re_string_allocate, re_string_construct):
12798 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
12799 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
12800 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
12801 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
12802 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12803 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12804 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
12805 (re_acquire_state_context):
12806 Remove unnecessary forward decls.
12807 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
12808 Put __attribute at function definition,
12809 now that the function decl has been removed.
12810 * lib/regex_internal.c (re_string_peek_byte_case):
12811 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
12814 2005-08-25 Stepan Kasal <kasal@ucw.cz>
12816 * m4/regex.m4: Add AC_PREREQ(2.50).
12817 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
12819 2005-08-25 Simon Josefsson <jas@extundo.com>
12821 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
12824 2005-08-25 Simon Josefsson <jas@extundo.com>
12826 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
12827 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
12828 GLIBC specific code.
12830 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12832 Make regex safe for g++. This fixes one real bug (an "err"
12833 that should have been "*err"). g++ problem reported by
12835 * lib/regex_internal.h (re_calloc): New macro, consistent with
12836 re_malloc etc. All callers of calloc changed to use re_calloc.
12837 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
12838 not int. All callers changed.
12839 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
12840 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
12841 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
12842 (find_recover_state): Change "err" to "*err"; this fixes what
12843 appears to be a real bug.
12844 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
12847 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12849 * modules/regex (Depends-on): Add malloc, since the code
12850 assumes that !malloc(0) means failure.
12852 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12854 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
12856 alloca modernization/simplification for regex.
12857 * lib/regex.c: Remove portability cruft for alloca. This no longer
12858 needs to be at the start of the file, and can be moved into
12859 regex_internal.h and simplified.
12860 * lib/regex_internal.h: Include <alloca.h>.
12861 (__libc_use_alloca) [!defined _LIBC]: New macro.
12862 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
12863 now works outside glibc.
12865 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
12867 * config/srclist.txt: Add glibc bugs 1241, 1245.
12869 2005-08-25 Jim Meyering <jim@meyering.net>
12871 * lib/open-safer.c: Include <config.h>.
12872 Otherwise, we'd lose LARGEFILE support in any file using
12875 2005-08-25 Bruno Haible <bruno@clisp.org>
12877 * m4/minmax.m4: Require autoconf 2.52.
12878 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
12879 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
12880 alternatives of translit over the alphabet.
12881 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
12883 2005-08-24 Simon Josefsson <jas@extundo.com>
12885 * tests/test-getpass.c: New file.
12887 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
12889 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
12890 for GNU regex features.
12892 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
12894 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
12895 * lib/regex.h (regerror): Likewise.
12897 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
12898 requires this. (The code never needed it.)
12900 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
12901 All uses of recently-renamed identifiers changed to use the new,
12902 POSIX-compliant names. The code will build and run just fine
12903 without these changes, but it's better to eat our own dog food
12904 and use the standard-conforming names.
12906 * lib/regex.h: Fix a multitude of POSIX name space violations.
12907 These changes have an effect only for programs that define
12908 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
12909 do not change anything for programs compiled in the normal way.
12910 Also, there is no effect on the ABI.
12912 (_REGEX_SOURCE): New macro.
12913 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
12914 defined and _GNU_SOURCE is not; this fixes a name space violation.
12916 Rename the following macros to obey POSIX requirements.
12917 The old names are still visible as macros if _REGEX_SOURCE is defined.
12918 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
12919 RE_BACKSLASH_ESCAPE_IN_LISTS.
12920 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
12921 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
12922 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
12923 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
12924 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
12925 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
12926 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
12927 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
12928 (REG_INTERVALS): renamed from RE_INTERVALS.
12929 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
12930 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
12931 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
12932 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
12933 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
12934 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
12935 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
12936 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
12937 RE_UNMATCHED_RIGHT_PAREN_ORD.
12938 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
12939 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
12940 (REG_DEBUG): renamed from RE_DEBUG.
12941 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
12942 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
12943 unusual, since we can't clash with the POSIX REG_ICASE.
12944 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
12945 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
12946 (REG_NO_SUB): renamed from RE_NO_SUB.
12947 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
12948 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
12949 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
12950 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
12951 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
12952 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
12953 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
12954 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
12955 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
12956 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
12957 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
12958 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
12959 RE_SYNTAX_POSIX_MINIMAL_BASIC.
12960 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
12961 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
12962 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
12963 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
12964 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
12965 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
12966 (REG_FIXED): Renamed from REGS_FIXED.
12967 (REG_NREGS): Renamed from RE_NREGS.
12969 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
12970 of other REG_* macros, since POSIX says the user is allowed to
12971 #undef these macros selectively.
12973 (reg_errcode_t): Update comment stating what other tables need
12976 Rename the following enum values to obey POSIX requirements.
12977 The old names are still visible as macros.
12978 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
12979 is not defined, since GNU is supposed to be a superset of POSIX as
12980 much as possible, and since we want reg_errcode_t to be a signed
12981 type for implementation consistency.
12982 (_REG_NOERROR): Renamed from REG_NOERROR.
12983 (_REG_NOMATCH): Renamed from REG_NOMATCH.
12984 (_REG_BADPAT): Renamed from REG_BADPAT.
12985 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
12986 (_REG_ECTYPE): Renamed from REG_ECTYPE.
12987 (_REG_EESCAPE): Renamed from REG_EESCAPE.
12988 (_REG_ESUBREG): Renamed from REG_ESUBREG.
12989 (_REG_EBRACK): Renamed from REG_EBRACK.
12990 (_REG_EPAREN): Renamed from REG_EPAREN.
12991 (_REG_EBRACE): Renamed from REG_EBRACE.
12992 (_REG_BADBR): Renamed from REG_BADBR.
12993 (_REG_ERANGE): Renamed from REG_ERANGE.
12994 (_REG_ESPACE): Renamed from REG_ESPACE.
12995 (_REG_BADRPT): Renamed from REG_BADRPT.
12996 (_REG_EEND): Renamed from REG_EEND.
12997 (_REG_ESIZE): Renamed from REG_ESIZE.
12998 (_REG_ERPAREN): Renamed from REG_ERPAREN.
12999 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
13000 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
13001 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
13002 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
13004 (_REG_RE_NAME, _REG_RM_NAME): New macros.
13005 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
13006 changed. But support the old name if the new one is not defined
13007 and if _REGEX_SOURCE.
13009 Change the following member names in struct re_pattern_buffer.
13010 The old names are still supported if !_REGEX_SOURCE.
13011 The new names are always supported, regardless of _REGEX_SOURCE.
13012 (re_buffer): Renamed from buffer.
13013 (re_allocated): Renamed from allocated.
13014 (re_used): Renamed from used.
13015 (re_syntax): Renamed from syntax.
13016 (re_fastmap): Renamed from fastmap.
13017 (re_translate): Renamed from translate.
13018 (re_can_be_null): Renamed from can_be_null.
13019 (re_regs_allocated): Renamed from regs_allocated.
13020 (re_fastmap_accurate): Renamed from fastmap_accurate.
13021 (re_no_sub): Renamed from no_sub.
13022 (re_not_bol): Renamed from not_bol.
13023 (re_not_eol): Renamed from not_eol.
13024 (re_newline_anchor): Renamed from newline_anchor.
13026 Change the following member names in struct re_registers.
13027 The old names are still supported if !_REGEX_SOURCE.
13028 The new names are always supported, regardless of _REGEX_SOURCE.
13029 (rm_num_regs): Renamed from num_regs.
13030 (rm_start): Renamed from start.
13031 (rm_end): Renamed from end.
13033 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
13034 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
13035 Prepend __ to parameter names.
13037 Undo yesterday's changes.
13039 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
13041 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
13042 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
13045 2005-08-24 Jim Meyering <jim@meyering.net>
13047 Sync from coreutils.
13048 * m4/fcntl-safer.m4: New file.
13050 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
13051 and object files for this module.
13053 2005-08-24 Jim Meyering <jim@meyering.net>
13055 Sync from coreutils.
13056 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
13058 2005-08-24 Jim Meyering <jim@meyering.net>
13060 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
13061 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
13063 2005-08-24 Jim Meyering <jim@meyering.net>
13065 * modules/fcntl-safer: New module.
13066 * modules/fts (Depends-on): Add fcntl-safer.
13067 * MODULES.html.sh (File descriptor based Input/Output):
13070 2005-08-24 Bruno Haible <bruno@clisp.org>
13072 Support for unit test modules.
13073 * modules/README: Mention tests modules.
13074 * modules/TEMPLATE-TESTS: New file.
13075 * gnulib-tool: New options --extract-tests-module, --with-tests and
13076 --tests-base (unused for the moment).
13077 (testsbase, inctests): New variables.
13078 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
13079 (func_verify_module): Exclude TEMPLATE-TESTS.
13080 (func_verify_nontests_module, func_verify_tests_module): New functions.
13081 (func_get_dependencies): Add implicit dependency for tests modules.
13082 (func_get_tests_module): New function.
13083 (func_modules_transitive_closure): When --with-tests was specified,
13084 include the unit tests as well, unless explicitly avoided.
13085 (func_emit_lib_Makefile_am): Ignore the tests modules here.
13086 (func_emit_tests_Makefile_am): New function.
13087 (func_create_testdir): When --with-tests was specified, emit a
13089 * MODULES.html.sh (Future developments): Update.
13091 2005-08-24 Bruno Haible <bruno@clisp.org>
13093 * modules/tls-tests: New file.
13094 * tests/test-tls.c: New file, from GNU gettext.
13096 2005-08-24 Bruno Haible <bruno@clisp.org>
13098 * modules/lock-tests: New file.
13099 * tests/test-lock.c: New file, from GNU gettext.
13101 2005-08-24 Bruno Haible <bruno@clisp.org>
13103 * lib/lock.h: Add multiple inclusion guard.
13104 * lib/tls.h: Add multiple inclusion guard.
13106 2005-08-24 Bruno Haible <bruno@clisp.org>
13108 * gnulib-tool: Add support for the --aux-dir option to
13109 --create-testdir, --create-megatestdir, --test, --megatest.
13110 (func_create_testdir, func_create_megatestdir): Optionally emit a
13111 AC_CONFIG_AUX_DIR directive.
13112 (create-testdir, create-megatestdir, test, megatest): Provide a
13113 default value for $auxdir.
13115 2005-08-24 Bruno Haible <bruno@clisp.org>
13117 * gnulib-tool (import): Use compound statement instead of subshell
13120 2005-08-24 Bruno Haible <bruno@clisp.org>
13122 * gnulib-tool (import): Change --aux-dir default to "build-aux".
13124 2005-08-24 Bruno Haible <bruno@clisp.org>
13126 * gnulib-tool (func_version): Update.
13128 2005-08-24 Bruno Haible <bruno@clisp.org>
13130 * gnulib-tool (func_import, func_create_testdir,
13131 func_create_megatestdir): Quote all autoconf macro arguments.
13133 2005-08-24 Bruno Haible <bruno@clisp.org>
13135 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
13136 option --force, because --force causes the aclocal.m4 of each
13137 subdirectory to be newer than the corresponding config.h.in.
13139 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
13141 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
13142 All contents moved to gl_REGEX.
13143 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
13144 assume that it does.
13146 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
13148 * lib/regex.h (REG_NOSYS)
13149 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
13150 Define, since POSIX requires it as of 2001.
13152 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
13153 New private symbol, used to keep the enum signed in all cases.
13154 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
13156 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
13158 * lib/regex_internal.c (re_string_skip_chars, register_state):
13160 Remove forward decls; no longer needed now that we use prototypes.
13161 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
13162 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
13163 (clean_state_log_if_needed): Likewise.
13165 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
13167 * config/srclist.txt: Add glibc bugs 1231-1233.
13169 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13171 Fix problems reported by Sam Steingold in
13172 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
13173 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
13174 assumed that reg_errcode_t is a signed type, which is not
13175 necessarily true if _XOPEN_SOURCE is not defined.
13176 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
13177 since some compilers warn about it otherwise.
13179 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13181 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
13182 (init_word_char, create_initial_state, duplicate_node_closure):
13183 (fetch_token, peek_token_bracket, build_range_exp):
13184 (build_collating_symbol): Remove forward decls; no longer needed
13185 now that we use prototypes.
13188 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
13189 (re_compile_fastmap_iter, regcomp, regerror, regfree):
13190 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
13191 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
13192 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
13193 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
13194 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
13195 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
13196 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
13197 (build_range_exp, build_collating_symbol, parse_bracket_exp):
13198 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
13199 (build_charclass, build_charclass_op, fetch_number, create_tree):
13200 (create_token_tree, mark_opt_subexp, duplicate_tree):
13201 Use prototypes rather than old-style definitions.
13203 * lib/regex_internal.c:
13204 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
13205 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
13206 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
13207 (re_string_reconstruct, re_string_peek_byte_case):
13208 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
13209 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
13210 (re_node_set_init_copy, re_node_set_add_intersect):
13211 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
13212 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
13213 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
13214 (re_acquire_state, re_acquire_state_context, register_state):
13215 (create_ci_newstate, create_cd_newstate, free_state):
13217 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
13219 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
13220 (re_search_internal, prune_impossible_nodes):
13221 (acquire_init_state_context, check_matching, static):
13222 (check_halt_node_context, check_halt_state_context, proceed_next_node):
13223 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
13224 (update_regs, sift_states_backward, build_sifted_states):
13225 (clean_state_log_if_needed, merge_state_array):
13226 (update_cur_sifted_state, add_epsilon_src_nodes):
13227 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
13228 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
13229 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
13230 (find_recover_state, check_subexp_matching_top, transit_state_mb):
13231 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
13232 (check_arrival, check_arrival_add_next_nodes):
13233 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
13234 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
13235 (check_node_accept_bytes, check_node_accept, extend_buffers):
13236 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
13237 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
13241 * lib/regex_internal.h:
13242 (re_string_allocate, re_string_construct, re_string_reconstruct):
13243 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
13244 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
13245 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
13246 (re_string_context_at, re_string_peek_byte_case):
13247 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
13248 is defined, since we now use prototypes always.
13250 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
13251 C89 or better. All uses removed.
13253 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
13255 * config/srclist.txt: Add glibc bugs 1220-1227.
13257 2005-08-20 Jim Meyering <jim@meyering.net>
13259 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
13260 of unused local, dfa.
13262 2005-08-20 Bruno Haible <bruno@clisp.org>
13264 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
13266 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13268 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
13269 (re_node_set_insert_last, re_dfa_add_node):
13270 Rename local variables to avoid GCC shadowing warnings.
13272 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13274 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
13275 [defined lint]: Suppress bogus uninitialized-variable warnings.
13277 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
13278 and let the caller return REG_ESPACE if out of space. This
13279 removes an uninitialied-variable warning with GCC 4.0.1, and also
13280 avoids taking the address of a local variable. All callers
13283 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
13285 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
13286 $LIBCSRC/posix/regexec.c.
13287 Add glibc bug 1217 for regcomp.c.
13289 2005-08-19 Jim Meyering <jim@meyering.net>
13291 * lib/regexec.c (proceed_next_node): Redo local variables to
13292 avoid GCC shadowing warnings.
13294 2005-08-18 Bruno Haible <bruno@clisp.org>
13296 * lib/strstr.c (strstr): Fix return value in multibyte case.
13297 * lib/strcasestr.c (strcasestr): Likewise.
13299 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
13301 * lib/regex.h: Remove useless space-before-tab. From coreutils.
13303 2005-08-17 Jim Meyering <jim@meyering.net>
13305 Make the %s format (seconds since the epoch) work for a negative
13306 number and when used with a zero-padded field width, e.g. %015s.
13308 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
13309 label so that it precedes the code to set `digits'. Otherwise,
13310 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
13311 print `00-22'. Now, it prints `-0022', as it should.
13313 2005-08-17 Bruno Haible <bruno@clisp.org>
13315 * modules/strstr (Files): Add m4/mbrtowc.m4.
13316 (Depends-on): Add mbuiter.
13318 2005-08-17 Bruno Haible <bruno@clisp.org>
13320 * modules/strcasestr: New file.
13321 * MODULES.html.sh (String handling, based on ANSI C 89): Add
13324 2005-08-17 Bruno Haible <bruno@clisp.org>
13326 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
13328 2005-08-17 Bruno Haible <bruno@clisp.org>
13330 * modules/mbuiter: New file.
13331 * MODULES.html.sh (Extended multibyte and wide character utilities):
13334 2005-08-17 Bruno Haible <bruno@clisp.org>
13336 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
13337 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
13339 2005-08-17 Bruno Haible <bruno@clisp.org>
13341 * m4/strcasestr.m4: New file.
13343 2005-08-17 Bruno Haible <bruno@clisp.org>
13345 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
13346 * lib/strstr.c: Completely rewritten, with multibyte locale support.
13348 2005-08-17 Bruno Haible <bruno@clisp.org>
13350 * lib/strcasestr.h: New file.
13351 * lib/strcasestr.c: New file.
13353 2005-08-17 Bruno Haible <bruno@clisp.org>
13355 * lib/strcasecmp.c: Use mbuiter.h.
13357 2005-08-17 Bruno Haible <bruno@clisp.org>
13359 * lib/mbuiter.h: New file.
13361 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
13363 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
13364 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
13365 and gl_GETOPT are both invoked via different paths (as happens
13366 with GNU tar CVS because it uses both argp and getopt), the former
13369 2005-08-16 Bruno Haible <bruno@clisp.org>
13371 * modules/tls: New file.
13372 * MODULES.html.sh (Multithreading): Add tls.
13374 2005-08-16 Bruno Haible <bruno@clisp.org>
13376 * modules/strnlen1: New file.
13377 * MODULES.html.sh (String handling): Add strnlen1.
13379 2005-08-16 Bruno Haible <bruno@clisp.org>
13381 * modules/strcase (Files): Add m4/mbrtowc.m4.
13382 (Depends-on): Add strnlen1, mbchar.
13384 2005-08-16 Bruno Haible <bruno@clisp.org>
13386 * modules/mbiter: New file.
13387 * MODULES.html.sh (Extended multibyte and wide character utilities):
13390 2005-08-16 Bruno Haible <bruno@clisp.org>
13392 * modules/mbfile: New file.
13393 * MODULES.html.sh (Extended multibyte and wide character utilities):
13396 2005-08-16 Bruno Haible <bruno@clisp.org>
13398 * modules/mbchar: New file.
13399 * MODULES.html.sh (Extended multibyte and wide character utilities):
13402 2005-08-16 Bruno Haible <bruno@clisp.org>
13404 * m4/tls.m4: New file, from GNU gettext.
13406 2005-08-16 Bruno Haible <bruno@clisp.org>
13408 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
13410 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
13412 2005-08-16 Bruno Haible <bruno@clisp.org>
13414 * m4/mbiter.m4: New file.
13416 2005-08-16 Bruno Haible <bruno@clisp.org>
13418 * m4/mbfile.m4: New file.
13420 2005-08-16 Bruno Haible <bruno@clisp.org>
13422 * m4/mbchar.m4: New file.
13424 2005-08-16 Bruno Haible <bruno@clisp.org>
13426 * lib/tls.h: New file, from GNU gettext.
13427 * lib/tls.c: New file, from GNU gettext.
13429 2005-08-16 Bruno Haible <bruno@clisp.org>
13431 * lib/strnlen1.h: New file.
13432 * lib/strnlen1.c: New file.
13434 2005-08-16 Bruno Haible <bruno@clisp.org>
13436 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
13437 (mbi_init): Update.
13438 (mbi_avail, mbi_advance): Let the iteration end before the terminating
13439 NUL byte, not after it.
13441 2005-08-16 Bruno Haible <bruno@clisp.org>
13443 * lib/strcase.h (strcasecmp): Add note in comments.
13444 * lib/strncasecmp.c: Use code from strcasecmp.c.
13445 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
13446 (strcasecmp): Work correctly in multibyte locales.
13448 2005-08-16 Bruno Haible <bruno@clisp.org>
13450 * lib/mbiter.h: New file.
13452 2005-08-16 Bruno Haible <bruno@clisp.org>
13454 * lib/mbfile.h: New file.
13456 2005-08-16 Bruno Haible <bruno@clisp.org>
13458 * lib/mbchar.h: New file.
13459 * lib/mbchar.c: New file.
13461 2005-08-16 Bruno Haible <bruno@clisp.org>
13463 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
13464 the valid ones. Makes the comparison operations transitive:
13465 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
13466 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
13468 2005-08-15 Simon Josefsson <jas@extundo.com>
13470 * modules/ssize_t (License): Change to 'unlimited'.
13472 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
13474 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
13476 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
13477 Add comments for each pending glibc patch.
13479 2005-08-15 Bruno Haible <bruno@clisp.org>
13481 * lib/regex.h (__restrict_arr): Don't define to __restrict if
13482 __cplusplus is defined.
13484 2005-08-14 Jim Meyering <jim@meyering.net>
13486 Sync from coreutils.
13488 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
13489 Use the hash-table-based cycle-detection code not just when
13490 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
13491 Reported by James Youngman in
13492 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
13493 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
13494 FTS_TIGHT_CYCLE_CHECK.
13495 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
13496 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
13498 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
13499 * lib/fts.c (fd_safer): Remove decl.
13500 Include fcntl--.h rather than unistd-safer.h
13501 (fts_safe_changedir): Don't call fd_safer; no longer needed
13502 now that we include fcntl--.h.
13504 2005-08-12 Simon Josefsson <jas@extundo.com>
13506 * modules/getndelim2: Use ssize_t module.
13507 * modules/getnline: Likewise.
13508 * modules/safe-read: Likewise.
13509 * modules/xreadlink: Likewise.
13511 * modules/ssize_t: New file.
13513 2005-08-12 Simon Josefsson <jas@extundo.com>
13515 * m4/readline.m4: Look for termcap, curses or ncurses if required.
13517 2005-08-12 Simon Josefsson <jas@extundo.com>
13519 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13522 2005-08-12 Simon Josefsson <jas@extundo.com>
13524 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
13525 readline, getdelim and check_version.
13526 (Support for systems lacking ISO C 99: Sizes of integer types):
13529 2005-08-12 Bruno Haible <bruno@clisp.org>
13531 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
13533 2005-08-11 Simon Josefsson <jas@extundo.com>
13535 * modules/readline: New file.
13537 * modules/strnlen (Files): Add strnlen.h.
13539 2005-08-11 Simon Josefsson <jas@extundo.com>
13541 * m4/readline.m4: New file.
13543 2005-08-11 Simon Josefsson <jas@extundo.com>
13545 * lib/readline.h, readline.c: New file.
13547 2005-08-11 Simon Josefsson <jas@extundo.com>
13549 * doc/gnulib.texi (Initial import, Finishing touches): Mention
13552 2005-08-11 Bruno Haible <bruno@clisp.org>
13554 * lib/strnlen.h (strnlen): Change parameter name to match comment.
13556 2005-08-10 Stepan Kasal <kasal@ucw.cz>
13558 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
13560 2005-08-10 Simon Josefsson <jas@extundo.com>
13562 * tests/test-iconvme.c: New file.
13564 2005-08-10 Simon Josefsson <jas@extundo.com>
13566 * m4/strnlen.m4: New file.
13568 * m4/strndup.m4: Don't check for strnlen declaration, done in
13571 2005-08-10 Simon Josefsson <jas@extundo.com>
13573 * lib/strndup.c: Use strnlen.h.
13575 * lib/strnlen.h: New file.
13577 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13581 2005-08-02 Simon Josefsson <jas@extundo.com>
13583 * modules/readline: New file.
13585 2005-08-02 Simon Josefsson <jas@extundo.com>
13587 * modules/getdelim: New file.
13589 * modules/getline: Rewrite, don't use getndelim2.
13591 2005-08-02 Simon Josefsson <jas@extundo.com>
13593 * m4/getline.m4: Separate out getdelim stuff into separate module.
13595 * m4/getdelim.m4: New file.
13597 2005-08-02 Simon Josefsson <jas@extundo.com>
13599 * lib/getline.h, getline.c: Rewrite.
13601 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
13603 2005-07-31 Bruno Haible <bruno@clisp.org>
13605 * lib/lock.h (gl_lock_initializer): New macro.
13606 (gl_lock_define_initialized): Use it.
13607 (gl_rwlock_initializer): New macro.
13608 (gl_rwlock_define_initialized): Use it.
13609 (gl_recursive_lock_initializer): New macro.
13610 (gl_recursive_lock_define_initialized): Use it.
13612 2005-07-30 Karl Berry <karl@gnu.org>
13614 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
13615 Report from Ben Pfaff, regarding getopt.
13617 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
13619 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
13621 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
13622 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
13623 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
13624 (gl_GETOPT): Use the new macros. Most of the implementation
13625 is moved to the new macros. This is for programs like Emacs
13626 that don't want all the functionality of gl_GETOPT.
13628 2005-07-26 Bruno Haible <bruno@clisp.org>
13630 * m4/lock.m4: Update from GNU gettext.
13632 2005-07-26 Bruno Haible <bruno@clisp.org>
13634 * lib/lock.h: Update from GNU gettext.
13635 * lib/lock.c: Update from GNU gettext.
13637 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
13639 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
13640 obsolescent AC_TRY_RUN. Include the default includes files, for
13643 2005-07-24 Bruno Haible <bruno@clisp.org>
13645 * modules/visibility: New file.
13646 * MODULES.html.sh (Misc): Add visibility.
13648 2005-07-24 Bruno Haible <bruno@clisp.org>
13650 * m4/visibility.m4: New file.
13652 2005-07-24 Bruno Haible <bruno@clisp.org>
13654 * doc/visibility.texi: New file.
13656 2005-07-22 Bruno Haible <bruno@clisp.org>
13658 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
13659 $(ALLOCA_H), redundant through BUILT_SOURCES.
13660 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
13661 redundant through BUILT_SOURCES.
13662 * modules/byteswap (Makefile.am): Remove explicit dependency on
13663 $(BYTESWAP_H), redundant through BUILT_SOURCES.
13664 * modules/fnmatch (Makefile.am): Remove explicit dependency on
13665 $(FNMATCH_H), redundant through BUILT_SOURCES.
13666 * modules/getopt (Makefile.am): Remove explicit dependency on
13667 $(GETOPT_H), redundant through BUILT_SOURCES.
13668 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
13669 redundant through BUILT_SOURCES.
13670 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
13671 redundant through BUILT_SOURCES.
13672 * modules/stdbool (Makefile.am): Remove explicit dependency on
13673 $(STDBOOL_H), redundant through BUILT_SOURCES.
13674 * modules/stdint (Makefile.am): Remove explicit dependency on
13675 $(STDINT_H), redundant through BUILT_SOURCES.
13676 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
13677 Remove explicit dependency on $(SYSEXITS_H).
13678 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
13680 2005-07-18 Simon Josefsson <jas@extundo.com>
13682 * lib/check-version.c (check_version): Accept identical versions too.
13684 2005-07-18 Bruno Haible <bruno@clisp.org>
13686 * modules/lock: New file.
13687 * MODULES.html.sh (Multithreading): New section.
13689 2005-07-18 Bruno Haible <bruno@clisp.org>
13691 * m4/lock.m4: New file, from GNU gettext.
13693 2005-07-18 Bruno Haible <bruno@clisp.org>
13695 * lib/lock.h: New file, from GNU gettext.
13696 * lib/lock.c: New file, from GNU gettext.
13698 2005-07-18 Bruno Haible <bruno@clisp.org>
13700 * lib/lock.h (gl_once_t): New type.
13701 (gl_once_define, gl_once): New macros.
13702 * lib/lock.c (fresh_once): New variable.
13703 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
13706 2005-07-16 Simon Josefsson <jas@extundo.com>
13708 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
13709 workaround, suggested by Bruno.
13711 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
13713 * modules/xalloc (Depends-on): Add xalloc-die.
13714 * modules/xvasprintf (Depends-on): Add xalloc-die.
13716 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
13718 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
13719 with a minor change.
13721 2005-07-15 Bruno Haible <bruno@clisp.org>
13723 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
13724 When using lib/poll.c, define poll as rpl_poll.
13726 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
13728 * modules/argp (Depends-on): Remove unlocked-io.
13730 2005-07-14 Derek Price <derek@ximbiot.com>
13732 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
13733 for glob symlink bug.
13735 2005-07-14 Bruno Haible <bruno@clisp.org>
13737 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
13738 Instead, test for *_unlocked function declarations directly.
13740 2005-07-11 Simon Josefsson <jas@extundo.com>
13742 * modules/size_max: New file.
13744 * modules/xsize: Depend on size_max module for size_max.m4.
13746 2005-07-11 Simon Josefsson <jas@extundo.com>
13748 * lib/size_max.h: New file.
13750 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
13752 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
13753 copyright symbol and the year.
13754 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
13755 (version_etc_va): Use parameterized copyright notice.
13756 Reword to conform to the current GNU coding standards.
13758 2005-07-11 Karl Berry <karl@gnu.org>
13760 * doc/gnulib.texi (Quoting): new node.
13761 (Initial import): more info, from Patrice.
13763 2005-07-11 Bruno Haible <bruno@clisp.org>
13765 * gnulib-tool (func_usage): Document option --avoid.
13766 (Command line options): Handle --avoid.
13767 (func_acceptable): New function.
13768 (func_modules_transitive_closure): Use it.
13770 2005-07-11 Bruno Haible <bruno@clisp.org>
13772 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
13773 Reported by Jim Meyering.
13775 2005-07-10 Bruno Haible <bruno@clisp.org>
13777 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
13778 Needed when size_t is smaller than 'unsigned int'.
13779 Reported by Paul Eggert.
13781 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
13783 * modules/argp (Depends-on): Add unlocked-io
13785 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
13787 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
13790 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
13792 * config/srclist.txt: Comment out regcomp.c, since we have a porting
13795 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
13796 and Paul Eggert <eggert@cs.ucla.edu>
13798 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
13799 in wint_t, not wchar_t. Remove now-unnecessary cast.
13801 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13803 * modules/regex (Files): Add lib/regex_internal.c,
13804 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
13805 (Depends-on): Add extensions.
13806 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
13808 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13810 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
13812 * m4/same.m4 (gl_SAME): Likewise.
13813 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
13815 * m4/regex.m4: Adjust to new libc regex implementation.
13816 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
13817 all the .c and .h parts of (the new) regex.
13818 Quote the m4 stuff better.
13819 Check for RE_ICASE bug of old gnulib.
13820 Check for REG_STARTEND of recent libc.
13821 Rename local variables from jm_* to gl_*.
13822 Quote operand of "test -f".
13823 Say "recent enough" version of libc, not "version 2".
13824 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
13825 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
13826 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
13827 Remove check for btowc, isascii.
13828 Require AM_LANGINFO_CODESET.
13830 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13832 * lib/regex.c, regex.h: Sync from libc.
13833 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
13835 New files, synced from libc, except that regex_internal.h
13836 currently has a small porting fix.
13838 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
13840 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
13841 regex_internal.c, regexec.c.
13842 Add regex_internal.h too, but as a comment, since the libc version
13843 is currently broken in gnulib mode.
13845 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
13847 Support programs like Emacs that use gnulib but not gettext.
13848 * MODULES.html.sh (Internationalization functions): Add gettext-h.
13849 * modules/gettext-h: New file.
13850 * modules/gettext (Files): Remove lib/gettext.h.
13851 (Depends-on): Add gettext-h.
13852 (Makefile.am): Remove lib_SOURCES.
13853 * modules/argmatch, modules/c-stack, modules/closeout:
13854 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
13855 * modules/execute, modules/file-type, modules/getaddrinfo:
13856 * modules/getopt, modules/human, modules/javacomp:
13857 * modules/javaexec, modules/mkdir-p, modules/obstack:
13858 * modules/openat, modules/pagealign_alloc, modules/pipe:
13859 * modules/quotearg, modules/regex, modules/rpmatch:
13860 * modules/unicodeio, modules/userspec, modules/version-etc:
13861 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
13863 Depend on gettext-h, not gettext.
13865 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
13867 * gnulib-tool (func_import): Add support for 'public domain' license.
13868 * modules/alloca, modules/atexit, modules/memmove:
13869 Now public domain, not GPL.
13870 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
13871 * modules/realloc, modules/strerror, modules/strtod:
13874 2005-07-05 Bruno Haible <bruno@clisp.org>
13876 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
13877 autoconf CVS. Needed for mingw.
13879 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13881 Remove the dependency of the strftime module on the tzset module.
13882 * modules/strftime (Depends-on): Remove dependency on tzset.
13884 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13886 Remove the dependency of the strftime module on the tzset module.
13887 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
13888 gl_FUNC_TZSET_CLOBBER.
13890 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
13892 Remove the dependency of the strftime module on the tzset module.
13893 * lib/strftime.c (my_strftime)
13894 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
13895 Copy the input structure, to work around some of the bug with
13896 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
13897 Solaris releases, you should also use the tzset module, but we won't
13898 require it as a dependency any more since we don't want LGPLed code
13899 to depend on GPLed code.
13901 2005-07-02 Jim Meyering <jim@meyering.net>
13903 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
13904 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
13905 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
13906 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
13908 2005-07-02 Jim Meyering <jim@meyering.net>
13910 * lib/backupfile.c (backup_args): Change a `0' to NULL.
13912 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
13914 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
13915 declares only 'struct timespec;' (!).
13917 2005-07-01 Jim Meyering <jim@meyering.net>
13919 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
13920 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
13921 * lib/save-cwd.c, tempname.c:
13922 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13923 and don't include <sys/file.h>).
13925 2005-06-29 Jim Meyering <jim@meyering.net>
13927 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
13928 type name. Use the variable name instead.
13929 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
13932 2005-06-28 Simon Josefsson <jas@extundo.com>
13934 * modules/check-version (Files): Add check-version.m4.
13936 2005-06-28 Simon Josefsson <jas@extundo.com>
13938 * m4/check-version.m4: New file, suggested by Jim Meyering
13939 <jim@meyering.net>.
13941 2005-06-28 Simon Josefsson <jas@extundo.com>
13943 * lib/check-version.h, lib/check-version.c: New files.
13945 2005-06-28 Simon Josefsson <jas@extundo.com>
13947 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
13948 collision with global variable. Better indentation. Don't
13949 increment buffer pointer beyond buffer end. Based on comments
13950 from Paul Eggert <eggert@cs.ucla.edu>.
13952 * lib/base64.h: Indent.
13954 2005-06-28 Simon Josefsson <jas@extundo.com>
13956 * doc/gnulib.texi (Library version handling): New section.
13958 2005-06-28 Jim Meyering <jim@meyering.net>
13960 * check-module (find_included_lib_files): Hard-code another
13961 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
13962 but modules/fts-lgpl (correctly) does not list those files.
13964 * modules/canonicalize (Files): Add lib/pathmax.h.
13966 2005-06-25 Simon Josefsson <jas@extundo.com>
13968 * modules/check-version: New file.
13970 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
13972 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
13973 initializer of struct addrinfo, as an indication that we don't
13974 care how many members the structure has.
13976 2005-06-24 Derek Price <derek@ximbiot.com>
13977 and Bruno Haible <bruno@clisp.org>
13979 Remove stat module & update lstat.
13980 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
13981 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13982 * m4/stat.m4: Remove this file.
13984 2005-06-24 Derek Price <derek@ximbiot.com>
13985 and Bruno Haible <bruno@clisp.org>
13987 Remove stat module & update lstat.
13988 * lib/stat.c: Remove this file...
13989 (slash_aware_lstat): ...moving this content and its support...
13990 * lib/lstat.c (rpl_lstat): ...into here.
13991 * lib/lstat.h: New file.
13993 2005-06-24 Derek Price <derek@ximbiot.com>
13994 and Bruno Haible <bruno@clisp.org>
13996 Remove stat module & update lstat.
13997 * config/srclist.txt (libc sources): Remove stat.
13999 2005-06-24 Derek Price <derek@ximbiot.com>
14000 and Bruno Haible <bruno@clisp.org>
14002 Remove stat module & update lstat.
14003 * MODULES.html.sh (stat): Remove.
14004 * MODULES.html: Regenerated.
14005 * modules/lstat (Description): Correct function name.
14006 (Files): Add "lstat.h".
14007 (Depends-on): Remove stat, add xalloc, stat-macros.
14008 * modules/stat: Remove this file.
14009 (Include): Add "lstat.h", remove <sys/stat.h>.
14011 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
14013 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
14014 (ranged_convert): Don't save conversion in a temporary struct.
14015 This causes a warning with GCC 4.0.0, and anyway in the typical
14016 case it's not worth the extra 100 bytes or so of code.
14017 (ranged_convert, __mktime_internal): When calling a function via a
14018 pointer P, use P () rather than (*P) (), as we now assume C89 or
14021 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
14023 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
14024 "who -r" failed to give output. Problem reported by Tim Waugh.
14026 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
14027 (xcalloc): Use it to avoid needless tests.
14028 Problem reported by Jim Meyering.
14030 2005-06-20 Derek Price <derek@ximbiot.com>
14032 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
14033 unnecessary for Autoconfs > 2.59c.
14035 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14037 * lib/argp.h (__option_is_short): Check upper limit of
14038 __key. Isprint() requires its argument to have the value
14039 of an unsigned char or EOF.
14041 2005-06-16 Jim Meyering <jim@meyering.net>
14043 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
14044 when either N or S is zero.
14046 2005-06-16 Derek Price <derek@ximbiot.com>
14048 * m4/bison.m4: Declare YACC & YFLAGS precious.
14050 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
14052 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
14053 multibyte string or pattern, fall back on unibyte matching.
14054 Problem reported by James Youngman.
14056 2005-06-08 Bruno Haible <bruno@clisp.org>
14058 * modules/csharpcomp: New file.
14059 * MODULES.html.sh (C#): Add csharpcomp.
14061 2005-06-08 Bruno Haible <bruno@clisp.org>
14063 * m4/csharpcomp.m4: New file, from GNU gettext.
14065 2005-06-08 Bruno Haible <bruno@clisp.org>
14067 * lib/csharpcomp.h: New file, from GNU gettext.
14068 * lib/csharpcomp.c: New file, from GNU gettext.
14069 * lib/csharpcomp.sh.in: New file, from GNU gettext.
14071 2005-06-08 Bruno Haible <bruno@clisp.org>
14073 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
14076 2005-06-07 Derek Price <derek@ximbiot.com>
14079 * lib/glob_.h: Indent nested #ifdef.
14081 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14083 Sync from coreutils.
14084 Use "file name" when talking about file names, instead of "filename"
14085 or "path", as per the GNU coding standards.
14086 * lib/mkdir-p.c: Renamed from makepath.c.
14087 (make_dir_parents): Renamed from make_path. All callers changed.
14088 * lib/mkdir-p.h: Likewise. All includers changed.
14089 * lib/filenamecat.c: Renamed from path-concat.c.
14090 (file_name_concat): Renamed from path_concat. All callers changed.
14091 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
14092 * lib/filenamecat.h: Likewise. All includers changed.
14093 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
14094 in comments or local variable names.
14095 * lib/basename.c: Likewise.
14096 * lib/canonicalize.c, canonicalize.h: Likewise.
14097 * lib/dirname.c, dirname.h: Likewise.
14098 * lib/euidaccess.c: Likewise.
14099 * lib/exclude.c: Likewise
14100 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
14101 * lib/fsusage.c, fsuage.h: Likewise.
14102 * lib/fts.c, fts_.h: Likewise.
14103 * lib/getcwd.c: Likewise.
14104 * lib/getloadavg.c: Likewise.
14105 * lib/mkstemp.c: Likewise.
14106 * lib/mountlist.c, mountlist.h: Likewise.
14107 * lib/openat.c, openat.h: Likewise.
14108 * lib/readlink-stub.c: Likewise.
14109 * lib/readutmp.c, readutmp.h: Likewise.
14110 * lib/rename.c: Likewise.
14111 * lib/rmdir.c: Likewise.
14112 * lib/same.c: Likewise.
14113 * lib/savedir.c: Likewise.
14114 * lib/stripslash.c: Likewise.
14115 * lib/tempname.c: Likewise.
14116 * lib/xreadlink.c: Likewise.
14117 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
14119 * lib/exclude.h: Likewise.
14121 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
14122 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14123 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
14124 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14125 * lib/pathmax.h: Include <limits.h> unconditionally, since other
14126 files have been getting away with it for years (MORE/BSD 4.3
14128 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
14129 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
14131 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
14132 Define to 256, not 255, as per modern POSIX.
14134 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14136 Sync from coreutils.
14137 Use "file name" when talking about file names, instead of "filename"
14138 or "path", as per the GNU coding standards.
14139 * MODULES.html.sh: mkdir-p renamed from makepath.
14140 filenamecat renamed from path-concat.
14141 * modules/filenamecat: Renamed from modules/path-concat.
14142 (Files): filenamecat.h and filenamecat.c renamed from
14143 path-concat.h and path-concat.c.
14144 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
14145 (Include): filenamecat.h, not path-concat.h.
14146 * modules/mkdir-p: Renamed from modules/makepath.
14147 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
14149 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
14150 (Include): mkdir-p.h, not makepath.h.
14152 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
14154 Sync from coreutils.
14155 * m4/mkdir-p.m4: Renamed from makepath.m4.
14156 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
14157 Rename files from makepath.c to mkdir-p.c, and from
14158 makepath.h to mkdir-p.h.
14159 * m4/filenamecat.m4: Renamed from path-concat.m4.
14160 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
14161 Rename files from path-concat.c to filenamecat.c,
14162 and from path-concat.h to filenamecat.h.
14163 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
14164 "file name" in local variables or comments.
14165 * m4/rename.m4: Likewise.
14167 2005-06-01 Bruno Haible <bruno@clisp.org>
14169 * modules/csharpexec: New file.
14170 * MODULES.html.sh (C#): New section.
14172 2005-06-01 Bruno Haible <bruno@clisp.org>
14174 * m4/csharp.m4: New file, from GNU gettext.
14175 * m4/csharpexec.m4: New file, from GNU gettext.
14177 2005-06-01 Bruno Haible <bruno@clisp.org>
14179 * lib/csharpexec.h: New file, from GNU gettext.
14180 * lib/csharpexec.c: New file, from GNU gettext.
14181 * lib/csharpexec.sh.in: New file, from GNU gettext.
14183 2005-05-31 Derek Price <derek@ximbiot.com>
14184 Paul Eggert <eggert@cs.ucla.edu>
14187 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
14189 2005-05-31 Derek Price <derek@ximbiot.com>
14190 Paul Eggert <eggert@cs.ucla.edu>
14193 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
14195 2005-05-29 Derek Price <derek@ximbiot.com>
14197 * config/srclist.txt (glob_.h, glob.c): Add these files.
14199 2005-05-29 Derek Price <derek@ximbiot.com>
14201 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
14202 * modules/glob: New file.
14203 * modules/getlogin_r: Add link to POSIX spec in description.
14205 2005-05-29 Derek Price <derek@ximbiot.com>
14206 Paul Eggert <eggert@cs.ucla.edu>
14208 * m4/glob.m4: New file.
14210 2005-05-29 Derek Price <derek@ximbiot.com>
14211 Paul Eggert <eggert@cs.ucla.edu>
14213 * lib/glob_.h, lib/glob.c: New files.
14215 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
14217 * modules/fts (Files): Remove m4/inttypes-pri.m4.
14218 * modules/fts-lgpl (Depends-on): Remove gettext.
14220 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
14222 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
14223 and don't require gt_INTTYPES_PRI.
14225 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
14227 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
14229 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
14230 the configuration hassle isn't worth it.
14231 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
14232 (LONGEST_MODIFIER, PRIuMAX): Remove.
14234 2005-05-27 Bruno Haible <bruno@clisp.org>
14236 * lib/getlogin_r.h: Remove second include of <stddef.h>.
14238 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
14240 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
14241 _POSIX_PTHREAD_SEMANTICS for Solaris.
14243 2005-05-25 Derek Price <derek@ximbiot.com>
14245 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
14247 2005-05-25 Derek Price <derek@ximbiot.com>
14248 Paul Eggert <eggert@cs.ucla.edu>
14250 * modules/getlogin_r, m4/getlogin_r.m4: New files.
14251 * lib/getlogin_r.c, getlogin_r.h: New files.
14253 2005-05-25 Bruno Haible <bruno@clisp.org>
14254 Derek Price <derek@ximbiot.com>
14256 * lib/getlogin_r.h: Simplify API documentation.
14258 2005-05-23 Derek Price <derek@ximbiot.com>
14260 * modules/minmax (Files): Add m4/minmax.m4.
14261 (configure.ac): Add gl_MINMAX.
14263 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
14265 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
14266 so that unistd-safer.h (GPL'ed code) need not be included.
14268 2005-05-22 Bruno Haible <bruno@clisp.org>
14270 * m4/minmax.m4: New file.
14271 Based on a patch by Derek Price <derek@ximbiot.com>.
14273 2005-05-22 Bruno Haible <bruno@clisp.org>
14275 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
14276 (INT64_MIN): Fix definition.
14277 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
14279 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
14280 NEED_SIGNED_INT_TYPES.
14282 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
14283 HAVE_SYSTEM_INTTYPES.
14285 2005-05-22 Bruno Haible <bruno@clisp.org>
14287 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
14288 Also include <sys/param.h> if it defines MIN, MAX.
14289 Based on a patch by Derek Price <derek@ximbiot.com>.
14291 2005-05-21 Jim Meyering <jim@meyering.net>
14293 * modules/fts (Files): Add m4/inttypes-pri.m4.
14294 (Depends-on): Add lstat and remove gettext. Alphabetize.
14296 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14299 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
14300 (setup_dir, free_dir): New functions.
14301 (enter_dir, leave_dir): Define trivial
14302 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
14303 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
14304 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
14305 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
14306 Move to fts-cycle.c.
14307 (fts_open): Use setup_dir.
14308 (fts_close): Use free_dir.
14309 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
14310 This adds a label and some gotos, but the alternatives were messier.
14311 Check for memory allocation failure when entering a dir.
14312 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
14313 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
14314 (FTS): New member fts_cycle, that is a union that contains the
14315 old active_dir_ht and cycle_state. All uses changed to mention
14316 fts_cycle.ht and fts_cycle.state.
14317 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
14318 fts.c, with the following changes:
14319 (setup_dir, free_dir): New functions.
14320 (enter_dir): Now returns bool. Return true if successful, false
14321 if memory exhausted. All callers changed.
14322 Do not bother partly cleaning up on
14323 memory allocation failure; that is free_dir's job.
14324 However, free ad if hash_insert fails, to avoid memory leak.
14325 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
14326 fts->fts_options to see which union member to use.
14328 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14330 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
14331 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
14333 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
14335 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
14337 2005-05-20 Jim Meyering <jim@meyering.net>
14339 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
14340 Now a macro, to pacify GCC.
14342 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
14344 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
14347 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
14349 * lib/chown.c (rpl_chown): Return -1 on failure.
14351 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
14353 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
14354 Don't check for stddef.h.
14355 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
14356 don't use its results.
14357 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
14358 since we include them unconditionally. Don't require
14359 AM_STDBOOL_H, since stdbool is a prerequisite.
14360 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
14361 since we assume C89 or better.
14362 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
14363 as we don't use their results.
14364 Don't check for fchdir, memmove, memset, strrchr, as we use
14365 them unconditionally.
14366 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
14367 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
14369 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
14371 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
14372 Include <stddef.h> unconditionally, since we assume C89 now.
14373 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
14374 * lib/fts.c: Include fts_.h first, to check interface.
14375 Do not include intprops.h; no longer needed.
14376 Include cycle-check.h and hash.h, since fts_.h no longer does.
14377 Remove unnecessary casts of closedir to void.
14378 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
14379 decide whether to decrement nlinks.
14380 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
14381 (FTS): Use struct hash_table * instead of Hash_table, so that
14382 we no longer need to include hash.h here.
14384 2005-05-18 Jim Meyering <jim@meyering.net>
14386 * modules/dirfd (License): Change to LGPL. Most of the code
14387 is already in the public domain.
14389 2005-05-18 Jim Meyering <jim@meyering.net>
14391 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
14392 Reported by Yoann Vandoorselaere.
14394 2005-05-17 Jim Meyering <jim@meyering.net>
14396 * m4/fts.m4: New file, from coreutils.
14398 2005-05-17 Jim Meyering <jim@meyering.net>
14400 * lib/fts.c, lib/fts_.h: New files, from coreutils.
14402 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14404 Sync from coreutils.
14405 * m4/unlinkdir.m4: New file.
14407 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14409 Sync from coreutils.
14410 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
14411 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
14412 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
14413 White space changes only.
14414 * lib/makepath.c (make_path): Port to hosts where leading "//" is
14416 * lib/yesno.c: Include getline.h, not ctype.h.
14417 (yesno): Don't remove leading white space; POSIX doesn't allow it.
14418 Use getline to remove arbitrary restriction on response length.
14420 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
14422 * config/srclist-update: Spell out "Street" in FSF postal
14423 mail address; this is the style the FSF seems to prefer.
14425 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
14426 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
14427 this updates FSF postal mail address.
14429 Sync from coreutils.
14430 * modules/unlinkdir: New file.
14431 * modules/yesno (Depends-on): Add getline.
14432 * MODULES.html.sh (File system functions): Add unlinkdir.
14434 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
14436 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
14438 Change the initial comment to refer to GPL, not LGPL.
14439 gnulib-tool will change it to LGPL as needed.
14441 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
14442 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
14443 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
14444 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
14445 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
14446 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
14447 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
14448 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
14449 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
14450 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
14451 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
14452 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
14453 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
14454 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
14455 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
14456 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
14457 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
14458 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
14459 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
14460 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
14461 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
14462 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
14463 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
14464 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
14465 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
14466 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
14467 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
14468 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
14469 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
14470 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
14471 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
14472 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
14473 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
14474 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
14475 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
14476 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
14477 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
14478 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
14479 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
14480 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
14481 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
14482 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
14483 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
14484 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
14485 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
14486 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
14487 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
14488 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
14489 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
14490 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
14491 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
14492 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
14493 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
14494 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
14495 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
14496 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
14497 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
14498 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
14499 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
14500 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
14501 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
14502 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
14503 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
14504 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
14505 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
14506 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
14507 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
14508 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
14509 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
14510 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
14511 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
14512 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
14513 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
14514 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
14515 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
14516 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
14517 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
14518 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
14519 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
14520 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
14521 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
14522 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
14523 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
14524 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
14525 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
14526 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
14527 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
14528 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
14529 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
14530 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
14531 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
14532 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
14533 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
14534 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
14535 lib/yesno.c, lib/yesno.h:
14536 Update FSF postal mail address.
14538 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
14540 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
14541 tests/test-memmem.c, tests/test-stpncpy.c:
14542 Update FSF postal mail address.
14544 2005-05-13 Bruno Haible <bruno@clisp.org>
14546 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
14547 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
14548 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
14549 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
14550 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
14551 Add support for 64-bit integers in the MSVC compiler.
14553 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
14555 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
14557 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
14559 * gnulib-tool (func_import): Sort and uniquify recommended includes.
14561 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
14563 * doc/getdate.texi (General date syntax): Don't say that date
14564 date --iso-8601=ns generates acceptable dates; it doesn't yet.
14565 Problem reported by Nic Ferrier.
14567 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14569 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
14570 specified in ai_socktype. Fix invalid ai_protocol
14571 check. ai_protocol is usually set to 0 or depending on
14572 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
14573 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
14574 ai_socktype / ai_protocol in the returned addrinfo structure.
14576 2005-05-10 Simon Josefsson <jas@extundo.com>
14578 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
14579 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14581 2005-05-10 Karl Berry <karl@gnu.org>
14583 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
14584 (from http://www.gnu.org/licenses).
14585 * doc/COPYING.LIB: also rename to COPYING.LESSER.
14586 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
14589 2005-05-10 Karl Berry <karl@gnu.org>
14591 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
14592 (COPYING.DOC): remove.
14594 * config/srclist-update: new FSF address.
14596 2005-05-10 Derek Price <derek@ximbiot.com>
14598 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
14601 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14602 Bruno Haible <bruno@clisp.org>
14604 * modules/inet_ntop: New file.
14605 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14608 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14609 Bruno Haible <bruno@clisp.org>
14611 * m4/inet_ntop.m4: New file.
14613 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14614 Bruno Haible <bruno@clisp.org>
14616 * lib/inet_ntop.h: New file.
14617 * lib/inet_ntop.c: New file, from glibc with modifications.
14619 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
14621 * modules/time_r (License): Change to LGPL.
14622 * modules/extensions (License): Change to LGPL. Actually,
14623 the license is more permissive than that, but currently gnulib-tool
14624 doesn't know how to handle more-permissive licenses.
14626 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
14627 Problem reported by Dave Love.
14629 2005-05-08 Jim Meyering <jim@meyering.net>
14631 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
14634 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
14636 * modules/argmatch (Depends-on): Add stdbool.
14637 * modules/backupfile (Depends-on): Likewise.
14638 * modules/chdir-long (Depends-on): Likewise.
14639 * modules/closeout (Depends-on): Likewise.
14640 * modules/cycle-check (Depends-on): Likewise.
14641 * modules/dirname (Depends-on): Likewise.
14642 * modules/fnmatch (Depends-on): Likewise.
14643 * modules/fsusage (Depends-on): Likewise.
14644 * modules/fwriteerror (Depends-on): Likewise.
14645 * modules/getcwd (Depends-on): Likewise.
14646 * modules/getloadavg (Depends-on): Likewise.
14647 * modules/hard-locale (Depends-on): Likewise.
14648 * modules/makepath (Depends-on): Likewise.
14649 * modules/mountlist (Depends-on): Likewise.
14650 * modules/nanosleep (Depends-on): Likewise.
14651 * modules/posixtm (Depends-on): Likewise.
14652 * modules/quotearg (Depends-on): Likewise.
14653 * modules/readtokens (Depends-on): Likewise.
14654 * modules/readtokens0 (Depends-on): Likewise.
14655 * modules/readutmp (Depends-on): Likewise.
14656 * modules/save-cwd (Depends-on): Likewise.
14657 * modules/strftime (Depends-on): Likewise.
14658 * modules/userspec (Depends-on): Likewise.
14659 * modules/utimecmp (Depends-on): Likewise.
14660 * modules/xgetcwd (Depends-on): Likewise.
14661 * modules/xnanosleep (Depends-on): Likewise.
14662 * modules/xstrtod (Depends-on): Likewise.
14663 * modules/yesno (Depends-on): Likewise.
14665 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
14667 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
14670 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14672 Merge from coreutils. Among other things,
14673 add bulletproofing for cases where stdin, stdout, or stderr are closed.
14674 * lib/fd-safer.c: New file.
14675 * lib/fcntl-safer.h, open-safer.c: Remove.
14676 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
14677 * lib/dup-safer.c: Include unistd-safer.h first.
14678 Don't include errno.h.
14679 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
14680 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
14681 * lib/file-type.c: Rely on file-type.h change.
14682 * lib/getloadavg.c: Include unistd-safer.h.
14683 (getloadavg): Use safer open.
14684 * lib/getusershell.c: Include "stdio-safer.h".
14685 (getusershell): Use safer fopen.
14686 * lib/long-options.c (long_options): Use NULL rather than 0.
14687 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
14689 * lib/modechange.c: Likewise.
14690 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
14691 (MODE_DONE): New constant.
14692 (struct mode_change): Remove 'next' member.
14693 (make_node_op_equals): New function; like the old one of the
14694 same name, except it allocates an array.
14695 (mode_compile, mode_create_from_ref): Use it.
14696 (mode_compile): Allocate result as an array, not a linked list.
14697 Parse octal string ourself, so that we catch mistakes like "+0".
14698 (mode_adjust): Arg is an array, not a linked list.
14699 * lib/modechange.c: Include stat-macros.h, xalloc.h.
14700 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
14701 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
14702 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
14703 Remove. This is now stat-macros.h's job.
14704 (talloc): Remove. All callers replaced by xalloc, so that
14705 our invokers don't have to worry about reporting memory failures.
14706 (make_node_op_equals): Remove.
14707 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14709 (struct mode_change): Moved here from modechange.h.
14710 (mode_append_entry): Remove.
14711 (mode_compile): Remove MASKED_OPS arg, since it encouraged
14712 apps to have incorrect behavior. Use simpler algorithm for head
14713 and tail. Don't futz with umask; that's now the job of mode_adjust.
14714 Detect more invalid usages rather than having somewhat-random behavior.
14715 Don't insert an "a=" action, as that leads to incorrect behavior.
14716 (mode_compile, mode_create_from_ref): Return NULL on error instead
14717 of an enum, since now there's only one way to have an error. All
14719 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
14720 at the correct time. Simplify calculation of "+u" and its ilk.
14721 Don't mishandle "+X".
14722 (mode_free): Remove "register" and localize decls.
14723 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14724 (struct mode_change): Move to modechange.c; callers don't
14725 need to see this stuff.
14726 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
14727 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
14728 (mode_change, mode_adjust): Reflect the new signatures noted above.
14729 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
14730 that might redefine system include files.
14731 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
14732 (my_usleep): Use NULL rather than (void *) 0.
14733 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
14734 Use siginterrupt to specify that system calls should be interrupted.
14735 (rpl_nanosleep): Move initialization of suspended closer to call of
14737 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
14738 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
14739 (desirable_utmp_entry): New function.
14740 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
14741 using x2nrealloc, to simplify logic.
14742 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
14743 size calculation. Do not assume utmp file is a regular file.
14744 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
14745 (READ_UTMP_CHECK_PIDS): New constant.
14746 * lib/save-cwd.c: Include unistd-safer.h.
14747 (save_cwd): Use fd_safer.
14748 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
14749 [!_LIBC] Include "stat-macros.h" instead.
14750 * lib/unistd-safer.h (fd_safer): New decl.
14752 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14754 * modules/getloadavg (Depends-on): Add unistd-safer.
14755 * modules/getusershell (Depends-on): Add stdio-safer.
14756 * modules/lstat (Depends-on): Remove xalloc.
14757 * modules/mkstemp (Depends-on): Add stat-macros.
14758 * modules/modechange (Depends-on): Remove xstrtol.
14759 Add stat-macros, xalloc.
14760 * modules/save-cwd (Depends-on): Add unistd-safer.
14761 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
14762 * modules/unistd-safer (Files): Add lib/fd-safer.c
14763 (Makefile.am): Remove lib_SOURCES.
14765 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
14766 Remove fcntl-safer; unistd-safer supersedes it.
14768 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14770 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
14772 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
14773 (gl_PREREQ_CHOWN): Remove.
14774 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
14775 it. Don't require AC_HEADER_STAT.
14776 (gl_PREREQ_LSTAT): Remove.
14777 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
14778 Don't require AC_HEADER_STAT.
14779 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
14780 (gl_PREREQ_RMDIR): Remove.
14781 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
14782 mention stat-macros.h or AC_HEADER_STAT, since we'll make
14783 the stat-macros module a prerequisite.
14784 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
14785 * m4/filemode.m4 (gl_FILEMODE): Likewise.
14786 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
14787 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
14788 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
14790 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
14791 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
14793 * m4/fcntl-safer.m4: Remove.
14794 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
14795 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
14796 Invoke gl_PREREQ_FD_SAFER.
14797 (gl_PREREQ_FD_SAFER): New macro.
14798 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
14799 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
14800 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
14801 Remove duplicate call to AC_LIBOBJ(readutmp).
14802 (gl_PREREQ_READUTMP): Remove. All uses inlined.
14804 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
14805 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
14807 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
14809 * MODULES.html.sh (Misc): Add byteswap.
14811 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14813 * modules/getcwd (Depends-on): Add extensions.
14814 * modules/openat (Depends-on): Likewise.
14816 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14818 * modules/byteswap: New file.
14820 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14822 * m4/byteswap.m4: New file.
14824 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
14826 * lib/byteswap_.h: New file.
14828 2005-04-25 Karl Berry <karl@gnu.org>
14830 * m4/gettext.m4: Update from GNU gettext 0.14.4.
14832 2005-04-25 Albert Chin <china@thewrittenword.com>
14834 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
14837 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
14839 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
14840 (func_ln_if_changed) Remove forcibly for no error message
14841 in case file does not exist.
14843 2005-04-19 Simon Josefsson <jas@extundo.com>
14845 * gnulib-tool (Options): Make --symlink mean --symbolic.
14847 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
14849 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
14851 2005-04-16 Simon Josefsson <jas@extundo.com>
14853 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
14855 2005-04-15 Simon Josefsson <jas@extundo.com>
14857 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
14859 2005-04-15 Simon Josefsson <jas@extundo.com>
14861 * gnulib-tool: Rename --symlink to --symbolic.
14863 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
14865 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
14866 symbolic links to files instead of copying/moving. Add --aux-dir,
14867 specifying directory relative --dir where auxiliary build tools
14870 2005-04-14 Bruno Haible <bruno@clisp.org>
14872 * modules/allocsa (License): Change to LGPL.
14873 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14875 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
14877 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
14878 that "UTC +1 second" continues to work. Problem reported
14879 by Dmitry V. Levin.
14880 (relunit_snumber): New rule.
14883 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
14885 * lib/getdate.y (universal_time_zone_table): New constant.
14886 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
14887 universal_time_zone_table.
14888 (lookup_zone): Prefer universal_time_zone_table to
14889 local_time_zone_table, so that "GMT" time stamps are allowed in
14890 London during the summer. Problem reported by Ian Abbott.
14892 2005-04-12 Jim Meyering <jim@meyering.net>
14894 * lib/human.c (humblock): Set *options even when returning due to
14895 xstrtoumax conversion failure. Thanks to a used-uninitialized
14896 warning from gcc-4.
14898 2005-04-09 Jim Meyering <jim@meyering.net>
14900 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
14901 -Wuninitialized: initialize tm0.tm_year.
14903 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
14905 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
14906 count, since there's no maximum. All uses changed.
14907 Add member dsts_seen.
14908 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
14910 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
14911 Use pc_rels_seen to decide whther a date is absolute.
14913 * lib/getdate.y (number): Don't overwrite year.
14914 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
14917 2005-04-02 Simon Josefsson <jas@extundo.com>
14919 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
14920 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
14922 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
14924 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
14925 where no absolute path name can be longer than PATH_MAX.
14927 2005-03-27 Jim Meyering <jim@meyering.net>
14929 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
14931 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
14933 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
14934 "one's complement" -> "ones' complement" in comment, as per Knuth.
14935 "value of type" -> "type or expression" in comment.
14936 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
14938 2005-03-26 Jim Meyering <jim@meyering.net>
14941 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
14942 Correct typos: s/or/of/.
14944 2005-03-26 Jim Meyering <jim@meyering.net>
14946 * modules/check-include-files: Move to ../ and rename to...
14947 * check-module: ...this.
14949 2005-03-25 Jim Meyering <jim@meyering.net>
14951 * modules/xvasprintf (Files): Add xalloc.h.
14953 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
14955 * modules/gettext (Files): config/config.rpath ->
14956 build-aux/config.rpath
14957 * modules/iconv (Files): Likewise.
14958 Problem reported by Oskar Liljeblad.
14960 2005-03-23 Jim Meyering <jim@meyering.net>
14962 * modules/check-include-files: New script to check for
14963 missing dependencies, multiple includes, etc.
14965 * modules/c-strtold (Depends-on): Add xalloc.
14966 * modules/c-strtod (Depends-on): Add xalloc.
14967 * modules/hash (Depends-on): Add xalloc.
14968 (Files): Remove lib/xalloc.h.
14970 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
14971 * modules/userspec (Files): Add lib/inttostr.h.
14973 2005-03-23 Jim Meyering <jim@meyering.net>
14975 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
14977 2005-03-22 Jim Meyering <jim@meyering.net>
14979 * modules/stat-macros: New module.
14980 * modules/canonicalize, modules/euidaccess, modules/file-type,
14981 * modules/filemode, modules/lchown, modules/makepath,
14982 * modules/rmdir, modules/stat: Depend on new stat-macros module
14983 rather than listing lib/stat-macros.h manually.
14984 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
14986 2005-03-22 Jim Meyering <jim@meyering.net>
14988 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
14990 2005-03-22 Bruno Haible <bruno@clisp.org>
14992 * config/srclist.txt: Replace target directory 'config' with
14994 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
14995 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
14998 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
15000 * modules/chdir-long (Depends-on): Add mempcpy.
15002 * modules/acl, modules/backupfile, modules/c-strtod,
15003 modules/c-strtold, modules/canon-host, modules/canonicalize,
15004 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
15005 modules/exclude, modules/exitfail, modules/file-type,
15006 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
15007 modules/getdate, modules/getline, modules/getpagesize,
15008 modules/getpass, modules/getugroups, modules/group-member,
15009 modules/hard-locale, modules/hash, modules/human, modules/idcache,
15010 modules/inttostr, modules/long-options, modules/makepath,
15011 modules/md5, modules/memcasecmp, modules/memcoll,
15012 modules/modechange, modules/mountlist, modules/path-concat,
15013 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
15014 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
15015 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
15016 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
15017 modules/strftime, modules/strndup, modules/strverscmp,
15018 modules/timespec, modules/unlocked-io, modules/userspec,
15019 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
15021 Remove lib_SOURCES line from Makefile.am section, as this is now
15022 done automatically by the corresponding Autoconf macro.
15024 2005-03-21 Jim Meyering <jim@meyering.net>
15026 Changes imported from coreutils.
15028 * lib/cycle-check.c: Don't include xalloc.h.
15030 * lib/path-concat.c: Don't include assert.h.
15031 (path_concat): Remove assertion that would have triggered
15032 for ABASE starting with more than one slash.
15033 Reported by Andreas Schwab.
15035 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
15036 properly when ABASE is an absolute file name.
15037 Correct the description of this function.
15038 Include <assert.h>.
15039 Add an assertion and a test driver.
15040 This fixes a bug introduced on 2004-07-02.
15041 Andreas Schwab reported the resulting failure of cp --parents:
15042 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
15044 2005-03-21 Jim Meyering <jim@meyering.net>
15046 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
15047 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
15049 2005-03-21 Jim Meyering <jim@meyering.net>
15050 and Paul Eggert <eggert@cs.ucla.edu>
15052 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
15053 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
15054 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
15055 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
15056 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
15057 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
15058 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
15059 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
15060 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
15061 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
15062 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
15063 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
15064 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
15065 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
15066 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
15067 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
15068 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
15071 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
15073 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
15074 (which shouldn't happen), generate nothing instead of returning 0
15075 immediately, so that nstrftime (NULL, ...) doesn't return 0.
15077 2005-03-16 Bruno Haible <bruno@clisp.org>
15079 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
15080 HAVE_LONGLONG_64BIT.
15082 2005-03-16 Bruno Haible <bruno@clisp.org>
15084 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
15085 HAVE_LONGLONG_64BIT.
15087 2005-03-16 Bruno Haible <bruno@clisp.org>
15089 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
15090 HAVE_LONGLONG_64BIT.
15092 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
15094 * lib/strftime.c (my_strftime): Prepend space to format so that we can
15095 reliably distinguish strftime failure from empty output on POSIX
15098 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
15100 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
15101 (iconv_string): Don't guess a size-zero buffer, as that might cause
15102 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
15103 result would be 'too large', where 'too large' is (heuristically)
15104 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
15105 overflow concerns. This will prevent some unwanted malloc failures
15106 when the inputs are very large.
15108 2005-03-15 Karl Berry <karl@gnu.org>
15110 * config/srclist.txt (config.rpath): from gettext.
15111 * config/config.rpath: update.
15113 2005-03-15 Bruno Haible <bruno@clisp.org>
15115 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
15118 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
15121 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
15124 2005-03-14 Simon Josefsson <jas@extundo.com>
15126 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
15129 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
15131 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
15132 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
15134 * lib/strtol.c: Likewise.
15136 2005-03-14 Jim Meyering <jim@meyering.net>
15138 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
15139 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
15140 to be nonzero so that we (and caller) can detect the difference
15141 between a valid zero-length expansion and an error return, even
15142 when the underlying strftime fails before writing anything into
15145 2005-03-14 Bruno Haible <bruno@clisp.org>
15147 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
15148 Update from GNU gettext 0.14.3.
15150 2005-03-10 Jim Meyering <jim@meyering.net>
15152 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
15154 2005-03-10 Jim Meyering <jim@meyering.net>
15156 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
15157 so that this module works on systems without fchdir.
15159 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
15161 Factor int-properties macros into a single file, except for
15162 glibc-related files.
15163 * lib/intprops.h: New file.
15164 * lib/getloadavg.c: Include it instead of limits.h.
15165 (INT_STRLEN_BOUND): Remove.
15166 * lib/human.c: Include intprops.h.
15167 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
15168 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
15170 * lib/inttostr.h: Include intprops.h instead of limits.h.
15171 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
15172 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
15173 for consistency with intprops.h.
15174 (time_t_is_integer, twos_complement_arithmetic): Use them.
15175 * lib/sig2str.h: Include <signal.h>, intprops.h.
15176 (INT_STRLEN_BOUND): Remove.
15177 * lib/strftime.c (TYPE_SIGNED): Remove.
15178 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
15179 * lib/strtol.c: Adjust comments to match intprops.h.
15180 * lib/userspec.c: Include intprops.h.
15181 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
15182 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
15183 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
15184 instead of rolling our own expressions.
15185 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
15187 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
15189 (my_strftime): Do not mishandle years close to INT_MAX, by doing
15190 the right thing even if adding 1900 would overflow. Similarly
15191 for tm_mon + 1 and tm_yday + 1.
15192 Make %Y always equivalent to %C%y, and similarly for %G and %g.
15193 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
15194 (DO_SIGNED_NUMBER): New macro.
15195 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
15197 2005-03-07 Bruno Haible <bruno@clisp.org>
15199 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
15201 2005-03-07 Bruno Haible <bruno@clisp.org>
15203 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
15205 2005-03-04 Derek R. Price <derek@ximbiot.com>
15207 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
15208 (func_import): Only replace files via --import when they have actually
15211 2005-03-03 Derek R. Price <derek@ximbiot.com>
15213 * m4/mmap-anon.m4: New file.
15214 * m4/pagealign_alloc.m4: New file.
15216 2005-03-03 Derek R. Price <derek@ximbiot.com>
15217 Bruno Haible <bruno@clisp.org>
15219 * modules/pagealign_alloc: New file.
15220 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
15222 2005-03-03 Derek R. Price <derek@ximbiot.com>
15223 Bruno Haible <bruno@clisp.org>
15225 * lib/pagealign_alloc.h: New file.
15226 * lib/pagealign_alloc.c: New file.
15228 2005-03-03 Bruno Haible <bruno@clisp.org>
15230 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
15231 Use an all-permissive copyright notice, recommended by RMS.
15233 2005-03-02 Bruno Haible <bruno@clisp.org>
15235 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
15236 of AIX, the replacement has to be done only after <string.h> is
15237 included, therefore not in config.h. stpncpy.h does the replacement,
15238 and stpncpy.c uses it.
15240 2005-03-02 Bruno Haible <bruno@clisp.org>
15242 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
15245 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15247 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
15248 The workaround isn't strictly needed for POSIX conformance, and
15249 it's too much of a pain to configure and maintain. We'll ask
15250 people to fix their kernels instead.
15251 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
15252 (NANOSLEEP_BUG_WORKAROUND): Remove.
15253 (xnanosleep): Remove the workaround.
15255 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15257 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
15258 Reported by Derek Price.
15259 (Include): Add "timespec.h".
15261 * modules/xnanosleep (Depends-on): Remove gethrxtime.
15263 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
15265 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
15266 to detect nanosleep bug.
15268 2005-03-01 Bruno Haible <bruno@clisp.org>
15270 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
15272 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
15274 * modules/gethrxtime: New file.
15275 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
15276 (Depends-on): Add gethrxtime.
15277 (configure.ac): Add gl_XNANOSLEEP.
15278 (Makefile.am): Remove lib_SOURCES line.
15280 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
15282 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
15283 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
15285 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
15287 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
15288 * lib/timespec.h (gettime): Return void, since it always
15289 succeeds now. All uses changed.
15290 * lib/gettime.c (gettime) Likewise.
15291 [HAVE_NANOTIME]: Prefer nanotime.
15292 Assume gettimeofday succeeds, as POSIX requires.
15293 Assime time () succeeds, since other code already does.
15294 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
15295 (timespec_subtract): Remove.
15296 (NANOSLEEP_BUG_WORKAROUND): New constant.
15297 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
15298 things considerably. Use it only on GNU/Linux hosts, since the
15299 workaround shouldn't be needed elsewhere.
15301 2005-02-24 Bruno Haible <bruno@clisp.org>
15303 * modules/gettext (Files): Add m4/glibc2.m4.
15305 2005-02-24 Bruno Haible <bruno@clisp.org>
15307 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
15308 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
15310 Update from GNU gettext 0.14.2.
15311 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
15313 2005-02-24 Bruno Haible <bruno@clisp.org>
15315 * lib/localcharset.c: Update from GNU gettext 0.14.2.
15316 * lib/config.charset: Update from GNU gettext 0.14.2.
15318 2005-02-24 Bruno Haible <bruno@clisp.org>
15320 * lib/gettext.h: Update from GNU gettext 0.14.2.
15322 2005-02-23 Simon Josefsson <jas@extundo.com>
15324 * m4/iconvme.m4: New file.
15326 2005-02-23 Jim Meyering <jim@meyering.net>
15328 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
15330 Thanks to Bruno Haible for catching it.
15332 2005-02-22 Simon Josefsson <jas@extundo.com>
15334 * modules/iconvme: New file.
15336 * MODULES.html.sh: Add iconvme.
15338 2005-02-22 Simon Josefsson <jas@extundo.com>
15340 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
15342 2005-02-22 Simon Josefsson <jas@extundo.com>
15344 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
15346 2005-02-22 Jim Meyering <jim@meyering.net>
15348 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
15351 2005-02-20 Neil Conway <neilc@samurai.com>
15353 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
15354 returned by OSX/Darwin if the specified buffer is not large
15355 enough for the hostname.
15357 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15359 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
15360 pass it to _help, otherwise the latter coredumps trying to
15361 dereference state.root_argp.
15363 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15365 * modules/chdir-long (Depends-on): Add memrchr.
15366 * modules/memrchr (Files): Add lib/memrchr.h.
15367 (Include): "memrchr.h".
15369 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15371 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
15373 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
15375 * lib/memrchr.h: New file.
15376 * lib/chdir-long.c: Include it.
15377 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
15378 Don't bother including stddef.h.
15380 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
15382 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
15384 Include <sys/types.h>, for dev_t.
15385 (ME_DUMMY, ME_REMOTE): Move from here....
15386 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
15387 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
15389 Include mountlist.h first, to test the interface.
15391 2005-01-29 Bruno Haible <bruno@clisp.org>
15393 * lib/progname.c (program_name): Initialize.
15394 Needed when linking statically on MacOS X.
15396 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
15398 Sync from coreutils.
15399 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
15400 (Depends-on): Add c-strtod.
15401 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
15403 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
15405 Sync from coreutils.
15406 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
15408 Remove files that are specific to coreutils.
15409 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
15411 2005-01-28 Bruno Haible <bruno@clisp.org>
15413 * modules/javacomp: New file.
15414 * MODULES.html.sh (Java): Add javacomp.
15416 2005-01-28 Bruno Haible <bruno@clisp.org>
15418 * m4/javacomp.m4: New file, from GNU gettext.
15420 2005-01-28 Bruno Haible <bruno@clisp.org>
15422 * lib/javacomp.sh.in: New file, from GNU gettext.
15423 * lib/javacomp.h: New file, from GNU gettext.
15424 * lib/javacomp.c: New file, from GNU gettext.
15426 2005-01-26 Simon Josefsson <jas@extundo.com>
15428 * lib/gai_strerror.c: Use GPL in header.
15430 2005-01-26 Bruno Haible <bruno@clisp.org>
15432 * modules/javaexec: New file.
15433 * MODULES.html.sh (Java): Add javaexec.
15435 2005-01-26 Bruno Haible <bruno@clisp.org>
15437 * m4/javaexec.m4: New file, from GNU gettext.
15439 2005-01-26 Bruno Haible <bruno@clisp.org>
15441 * lib/javaexec.sh.in: New file, from GNU gettext.
15442 * lib/javaexec.h: New file, from GNU gettext.
15443 * lib/javaexec.c: New file, from GNU gettext.
15445 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15447 * modules/lchown (Depends-on): Remove lchown.h
15449 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15451 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
15452 must be defined if the header file was not found, in order
15453 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
15455 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15457 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
15458 initializers for struct pentry_state.
15459 (__argp_error): Check return value of __asprintf
15460 (__argp_failure): Translate error message
15462 * lib/argp-parse.c: Removed braces around the expansion of N_()
15464 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
15466 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
15467 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
15468 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
15469 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
15470 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
15471 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
15472 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
15473 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
15474 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
15475 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
15476 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
15477 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
15478 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
15479 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
15480 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
15481 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
15482 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
15483 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
15484 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
15485 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
15486 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
15487 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
15488 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
15489 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
15490 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
15491 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
15492 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
15493 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
15494 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
15495 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
15496 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
15497 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
15498 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
15499 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
15500 xstrtol.m4, xstrtoumax.m4, yesno.m4:
15501 Use an all-permissive copyright notice, recommended by RMS.
15503 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
15505 * modules/chdir-long (Depends-on): Remove mempcpy.
15507 2005-01-21 Jim Meyering <jim@meyering.net>
15509 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
15510 same value as for Solaris 9.
15512 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
15513 component length. This included changing the parameter to be
15514 of type `char *' rather than `char const *'.
15515 * lib/chdir-long.h (chdir_long): Update prototype.
15517 * lib/openat.c (fdopendir, fstatat): New functions.
15518 * lib/openat.h: Include headers required for use of DIR and struct
15520 [AT_SYMLINK_NOFOLLOW]: Define.
15521 (fdopendir, fstatat): Add prototypes.
15523 2005-01-21 Bruno Haible <bruno@clisp.org>
15525 * modules/classpath: New file.
15526 * MODULES.html.sh (Java): Add classpath.
15528 2005-01-21 Bruno Haible <bruno@clisp.org>
15530 * lib/classpath.h: New file, from GNU gettext.
15531 * lib/classpath.c: New file, from GNU gettext.
15533 2005-01-20 Simon Josefsson <jas@extundo.com>
15535 * modules/version-etc-fsf: New file.
15537 2005-01-20 Simon Josefsson <jas@extundo.com>
15539 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
15540 * lib/version-etc.c: Remove version_etc_copyright.
15541 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
15542 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
15544 2005-01-20 Simon Josefsson <jas@extundo.com>
15546 * lib/base64.h (isbase64): Add.
15548 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
15549 using a unsigned prototype, don't inline.
15550 (base64_decode): Use it.
15552 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
15554 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
15557 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
15559 * lib/save-cwd.c (save_cwd): Remove code to support the case
15560 where fchdir is missing or flaky.
15562 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
15564 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
15566 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
15568 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
15569 AC_LIBSOURCES now does this.
15570 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
15571 with new ullong_max module.
15573 2005-01-19 Bruno Haible <bruno@clisp.org>
15575 * modules/sh-quote: New file.
15576 * MODULES.html.sh (Executing programs): Add sh-quote.
15578 2005-01-19 Bruno Haible <bruno@clisp.org>
15580 * lib/sh-quote.h: New file, from GNU gettext.
15581 * lib/sh-quote.c: New file, from GNU gettext.
15583 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
15585 Merge from coreutils.
15586 * m4/ullong_max.m4: New file.
15587 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
15588 (gl_MACROS): Assume localeconv exists.
15590 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
15592 Merge changes from coreutils, as described below in several
15593 changelogs dated today.
15595 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
15596 (O_DIRECTORY): Remove; not needed here, since "." must be
15597 a directory. All uses removed.
15598 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
15599 universal on Suns, and we also need to test for IRIX.
15600 Revamp code to use 'if' rather than '#if'.
15601 Avoid unnecessary comparison of cwd->desc to 0.
15603 * lib/utimens.c (futimens): Robustify the previous patch, by checking
15604 for known valid error numbers rather than observed invalid ones.
15606 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
15608 * modules/ullong_max: New file.
15610 * modules/chdir-long, modules/openat: New files.
15611 * modules/save-cwd (Depends-on): Depend on chdir-long.
15612 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
15614 2005-01-18 Jim Meyering <jim@meyering.net>
15616 Merge from coreutils.
15617 * m4/chdir-long.m4, m4/openat.m4: New files.
15618 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
15619 save-cwd.h. Add AC_LIBOBJ for save-cwd.
15620 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
15621 is sane and DOES follow symlinks. Besides, testing 20 different
15622 systems found no broken chown implementations.
15623 Prompted by a change in rsync's copy of this macro.
15624 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
15626 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
15628 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
15629 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
15630 NULL-means-set-to-current-time semantics.
15631 Remove temporary file immediately, rather than waiting
15632 for configure's at-exit trap code to do it.
15634 2005-01-18 Jim Meyering <jim@meyering.net>
15636 * lib/version-etc.c (version_etc_copyright): Update copyright date.
15638 * lib/utimens.c (futimens): Account for the fact that futimes
15639 can also fail with errno == ENOSYS or errno == ENOENT.
15640 Patch from Dmitry V. Levin.
15642 Change the name of the robust chdir function from chdir to chdir_long.
15643 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
15644 (restore_cwd): Use chdir_long, not chdir.
15645 * lib/chdir-long.c: Renamed from chdir.c.
15646 * lib/chdir-long.h: Renamed from chdir.h.
15647 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
15650 2005-01-18 Bruno Haible <bruno@clisp.org>
15652 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
15653 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
15654 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
15655 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
15656 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
15657 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
15658 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
15659 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
15660 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
15661 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
15662 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
15663 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
15664 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
15665 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
15666 Use an all-permissive copyright notice, recommended by RMS.
15668 2005-01-18 Bob Proulx <bob@proulx.com>
15670 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
15671 simplify offsetof() macro construct to avoid compile failure with
15672 native HP-UX 11.0 ANSI C compiler.
15674 2005-01-17 Bruno Haible <bruno@clisp.org>
15676 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
15677 redundant because stpncpy.m4 takes care of it.
15679 2005-01-17 Bruno Haible <bruno@clisp.org>
15681 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
15683 2005-01-17 Bruno Haible <bruno@clisp.org>
15685 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
15688 2005-01-17 Bruno Haible <bruno@clisp.org>
15690 * lib/fwriteerror.h (fwriteerror): Change specification to include
15692 * lib/fwriteerror.c: Include <stdbool.h>.
15693 (fwriteerror): At the end, close the file stream. Record whether
15694 stdout was already closed.
15696 2005-01-17 Bruno Haible <bruno@clisp.org>
15698 * lib/execute.c (environ): Declare if needed.
15699 * lib/pipe.c (environ): Likewise.
15700 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
15702 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15704 * modules/argp: Depend on vsnprintf
15706 2005-01-10 Jim Meyering <jim@meyering.net>
15708 * modules/closeout (Depends-on): Add atexit.
15710 2005-01-06 Bruno Haible <bruno@clisp.org>
15712 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
15714 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
15716 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
15717 definitions to be after all include files, to avoid collisions.
15718 Problem reported by Bob Proulx.
15720 2005-01-04 Jim Meyering <jim@meyering.net>
15722 Changes imported from coreutils.
15723 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
15724 as the mkstemp template, use a temporary directory and an
15725 8.3-friendly template to avoid trouble on systems like DJGPP.
15726 Reported by Juan M. Guerrero via Stepan Kasal.
15727 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
15728 close. Remove the temporary directory right away, rather than waiting
15729 for configure's at-exit trap code to do it.
15730 Suggestion from Stepan Kasal.
15732 2005-01-01 Simon Josefsson <jas@extundo.com>
15734 * gnulib-tool: Print #include directives when --import'ing.
15736 2004-12-28 Simon Josefsson <jas@extundo.com>
15738 * tests/test-base64.c: Include required header files. Remove
15741 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
15743 * modules/error (Depends-on): Remove gettext.
15745 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
15747 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
15748 not needed. This removes a dependency on the gettext module.
15749 [defined _LIBC]: Do not include <libintl.h>; not needed.
15751 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
15753 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
15754 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
15756 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
15758 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
15761 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
15763 * modules/getdate (Depends-on): Remove alloca-opt.
15765 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
15767 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
15769 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
15771 * lib/argp-parse.c: Include <stddef.h>.
15772 (alignof, alignto): New macros.
15773 (parser_init): Don't assume that void * is aligned sufficiently
15776 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
15777 need to extend the stack.
15778 (YYINITDEPTH): New macro, so that the initial stack isn't overly
15781 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
15783 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
15785 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
15787 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
15788 (2004-10-24) change. Apparently this was a false alarm.
15790 * modules/getdate: Depend on alloca-opt, not alloca.
15792 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
15794 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
15795 Remove now-obsolete comment about AIX.
15796 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
15797 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
15798 (YYMAXDEPTH): New macro.
15800 2004-12-18 Simon Josefsson <jas@extundo.com>
15802 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
15804 2004-12-18 Bruno Haible <bruno@clisp.org>
15806 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
15808 2004-12-18 Bruno Haible <bruno@clisp.org>
15810 * lib/fatal-signal.c (fatal_signals): Make non-const.
15811 (init_fatal_signals): New function.
15812 (uninstall_handlers, install_handlers): Ignore signals that were set to
15814 (at_fatal_signal): Call init_fatal_signals.
15815 (init_fatal_signal_set): Likewise. Ignore signals that were set to
15817 Reported by Paul Eggert.
15819 2004-12-18 Bruno Haible <bruno@clisp.org>
15821 * doc/alloca.texi: New file.
15822 * doc/alloca-opt.texi: New file.
15824 2004-12-17 Jim Meyering <jim@meyering.net>
15826 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
15827 Otherwise, install-sh could exit with improper exit status when
15828 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
15830 2004-12-16 Simon Josefsson <jas@extundo.com>
15832 * tests/test-base64.c: Add license.
15834 2004-12-15 Stepan Kasal <address@hidden>
15836 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
15838 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
15840 * modules/getcwd (Files): Add m4/d-ino.m4.
15841 Suggested by Mark D. Baushke.
15843 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
15845 * lib/getdate.y (textint): New member "negative".
15846 (time_zone_hhmm): New function.
15847 Expect 14 shift-reduce conflicts, not 13.
15848 (o_colon_minutes): New rule.
15849 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
15850 (yylex): Set the "negative" member of signed numbers.
15852 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
15854 * doc/getdate.texi (Time of day items, Time zone items):
15855 Describe new formats +00:00, UTC+00:00.
15857 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
15859 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
15860 spurious "-l"s. Problem reported by Stepan Kasal.
15862 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
15864 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
15865 in Autoconf 2.59. Problem reported by Mark D. Baushke.
15867 2004-12-04 Simon Josefsson <jas@extundo.com>
15869 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
15870 Vandoorselaere <yoann@prelude-ids.org>.
15872 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
15874 Changes imported from coreutils.
15875 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
15877 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
15879 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
15881 Changes imported from coreutils.
15882 * lib/hard-locale.c: Assume <locale.h> exists.
15883 Include "strdup.h".
15884 (GLIBC_VERSION): New macro.
15885 (hard_locale): Assume setlocale exists.
15886 Rewrite to avoid #ifdef.
15887 Use strdup rather than malloc + strcpy.
15888 * lib/human.c: Assume <locale.h> exists.
15889 (human_readable): Assume localeconv exists.
15891 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
15893 * modules/hard-locale (Depends-on): Add strdup.
15895 2004-12-01 Jakub Jelinek <jakub@redhat.com>
15897 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
15898 convert T2, not T. (Imported from libc.)
15900 2004-11-30 Simon Josefsson <jas@extundo.com>
15902 * modules/restrict (License): Change to LGPL.
15904 2004-11-30 Simon Josefsson <jas@extundo.com>
15906 * m4/restrict.m4: Add copyright and copying conditions.
15908 2004-11-30 Simon Josefsson <jas@extundo.com>
15910 * m4/base64.m4: New file.
15912 2004-11-30 Simon Josefsson <jas@extundo.com>
15914 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
15917 * tests/test-base64.c: New file.
15919 * modules/base64: New file.
15921 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
15923 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15924 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
15926 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
15928 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
15930 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
15931 (__getcwd.c): Don't restore errno; glibc doesn't.
15932 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
15933 first, falling back to our code only if its results look suspicious.
15934 Ensure that the resulting buffer is only as large as necessary.
15936 * lib/readutmp.c: Include readutmp.h first.
15937 Include <errno.h>, since readutmp.h no longer does that.
15938 * lib/readutmp.h: Don't include <errno.h>,
15939 <sys/param.h>, <time.h>; not needed to establish interface.
15940 (errno): Remove decl.
15941 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
15942 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
15943 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
15945 2004-11-28 Simon Josefsson <jas@extundo.com>
15947 * lib/base64.h, base64.c: New file.
15949 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
15951 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
15953 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
15955 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
15956 (Depends-on): Remove pathmax, same. Add mempcpy.
15957 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
15958 (Makefile.am): Append getcwd.h to lib_SOURCES.
15959 (Include): Add getcwd.h.
15960 (Maintainer): Change from Jim Meyering to "all, glibc",
15961 since getdate now uses intended-for-glibc code.
15962 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
15963 (Depends-on): Depend on getcwd. Do not depend on pathmax.
15965 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
15967 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
15968 HP's ANSI C compiler.
15969 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
15970 Declaring int functions causes warnings on some modern systems and
15971 shouldn't be needed to compile on ancient ones.
15972 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
15975 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
15976 with the following changes.
15977 (__set_errno): Parenthesize properly.
15978 Include <stdbool.h>.
15979 (MIN, MAX, MATCHING_INO): New macros.
15980 (__getcwd): Define with prototype, not K&R form.
15981 Use heuristics to allocate default buffer on stack if possible.
15982 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
15983 behavior, and to avoid the PATH_MAX limit when computing
15985 Use MATCHING_INO to compare inode number to file.
15986 Check for arithmetic overflow in size calculations.
15987 Fix bug in reallocation of dot array that caused getcwd to fail
15988 on directories nested deeper than 75.
15989 Be more careful about saving errno on error.
15990 Do not use realloc; use only free+malloc, as this is a bit
15991 more flexible and avoids a needless copy operation.
15992 Do not inspect st_dev and st_ino for symbolic links; POSIX
15993 doesn't specify the latter.
15994 Check for closedir errors.
15995 Avoid needless casts.
15996 Use "#ifdef weak_alias" around weak_alias, to be like other
15998 The following changes to getcwd.c have effect only when used in
15999 gnulib; they have no effect inside glibc proper.
16000 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
16001 as alloca isn't used.
16002 (alloca, __alloca): Likewise.
16003 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
16004 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
16005 unconditionally, as gnulib assumes C89 or better.
16006 Do not include <sys/param.h>.
16007 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
16008 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
16010 (NULL) [!defined NULL]: Remove; we assume C89 or better.
16011 Include <dirent.h> in a way that is compatible with modern Autoconf.
16012 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
16013 New macros, if not already defined.
16014 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
16015 Use "_LIBC", not "defined _LIBC", for consistency.
16016 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
16018 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
16019 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
16020 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
16021 credit only to Jim Meyering and adjust the copyright dates.
16022 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
16023 <stdlib.h>, <unistd.h>, "pathmax.h".
16024 Instead, include "xgetcwd.h" (first) and "getcwd.h".
16025 (INITIAL_BUFFER_SIZE): Remove.
16026 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
16028 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
16030 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
16031 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
16032 Use the _ONCE methods, for efficiency.
16033 Check for fcntl.h. In test program, include <errno.h>
16034 and <fcntl.h> if available. Remove old K&R cruft from
16035 test program. Check for common errors in GNU/Linux,
16036 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
16037 don't do AC_LIBOBJ, as that's getcwd.m4's job.
16038 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
16039 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
16041 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
16042 accommodate new getcwd.c.
16043 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
16044 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
16045 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
16046 that's all we need now.
16048 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16050 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
16051 argp-parse.c depends on getopt internals, that means we should
16052 always use our getopt, to be on the safe side.
16053 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
16054 order not to spoil the result of an eventual previous invocation
16055 of gl_GETOPT_SUBSTITUTE.
16057 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16059 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
16060 redefinition warnings. To avoid them, include the defines
16061 in `#if !defined __need_getopt ... #endif'. The only place
16062 where __getopt_argv_const is used is in definitions
16063 of getopt_long and getopt_long_only below, which are as well
16064 protected by `#ifndef __need_getopt'.
16065 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
16066 __need_getopt after including <stdio.h> and <unistd.h> These
16067 headers might have defined it.
16069 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
16071 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
16073 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
16075 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
16076 (futimens): New function, which uses futimes if available.
16077 (futimens, utimens): Support timespec==NULL, with same semantics
16078 as utime and utimens.
16079 * lib/utimens.h (futimens): New decl.
16081 2004-11-23 Jim Meyering <jim@meyering.net>
16083 * lib/getopt_.h: Remove trailing blanks.
16085 2004-11-23 Jim Meyering <jim@meyering.net>
16087 * lib/__fpending.c: Add comment.
16089 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
16091 * modules/canonicalize (Depends-on): Add xreadlink.
16092 Problem reported by James Youngman.
16094 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
16096 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
16098 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
16099 optopt): Use them instead of invoking ## directly; otherwise, the
16100 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
16102 2004-11-19 Bruno Haible <bruno@clisp.org>
16104 * lib/strtok_r.c: Move comments from here...
16105 * lib/strtok_r.h: ... to here.
16107 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
16109 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
16110 implementations that mishandle size_t overflow.
16112 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
16114 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
16115 might fail. Problem reported by Yoann Vandoorselaere.
16116 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
16117 implementations that mishandle size_t overflow.
16119 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16121 * modules/canon-host (Depends-on): Add strdup.
16123 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16125 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
16127 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16129 * lib/canon-host.c: Include "strdup.h".
16130 (canon_host): Use getaddrinfo if available, so that IPv6 works.
16131 Use strdup instead of malloc/strcpy to duplicate strings.
16133 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
16134 (human_space_before_unit): New constant.
16135 * lib/human.c (human_readable): Support it.
16137 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
16138 (xgetcwd): Set errno correctly when failing.
16139 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
16140 the failure is actually due to a PATH_MAX problem.
16142 Further getopt changes to make it more likely that glibc will
16143 buy the changes back.
16144 * lib/getopt.c (POSIXLY_CORRECT): New constant.
16145 (getopt): Use it, so to preserve glibc semantic
16146 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
16147 when compiling for libc.
16148 * lib/getopt_.h (__getopt_argv_const): Bring it back.
16149 (getopt_long, getopt_long_only): Use it.
16151 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
16152 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
16153 (getopt): Argv is now char * const *, as per standard.
16154 (_getopt_internal_r, _getopt_internal): Argv is now char **,
16155 not char *__getopt_argv_const *.
16156 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
16157 _getopt_long_only_r): Likewise.
16158 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
16159 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
16160 _getopt_long_r, _getopt_long_only_r): Likewise.
16161 * lib/getopt_.h (__getopt_argv_const): Remove.
16162 (getopt): Argv is now char * const *, as per standard.
16164 * lib/getdate.y (tORDINAL): New token.
16165 (day, relunit): Allow it for relative times.
16166 (relative_time_table): Use tORDINAL for ordinals.
16168 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
16170 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
16171 Document that "second" isn't allowed as an ordinal number.
16173 2004-11-16 Jim Meyering <jim@meyering.net>
16175 * modules/closeout (Depends-on): Add fpending.
16177 2004-11-15 Jim Meyering <jim@meyering.net>
16179 * lib/closeout.c: Include "__fpending.h" once again.
16180 Include <stdbool.h>.
16181 (close_stdout): Don't fail just because stdout was closed initially,
16182 since some programs don't write to stdout in the normal course of
16183 operation (other than --version and --help), and we don't want this
16184 function to make e.g. `touch file >&-' fail.
16185 But do fail if it was closed and someone has tried to write to it.
16186 E.g., `printf foo >&-' must fail.
16188 2004-11-13 Jim Meyering <jim@meyering.net>
16190 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
16192 2004-11-12 Simon Josefsson <jas@extundo.com>
16194 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
16195 small doc fix is still pending.
16197 2004-11-11 Simon Josefsson <jas@extundo.com>
16199 * modules/strtok_r: New file.
16201 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16204 2004-11-11 Simon Josefsson <jas@extundo.com>
16206 * m4/strtok_r.m4: New file.
16208 * m4/getopt.m4: Replace opterr.
16210 2004-11-11 Simon Josefsson <jas@extundo.com>
16212 * lib/strtok_r.h, strtok_r.c: New file.
16214 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
16216 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
16217 of replacing opterr, getopt, etc. This should handle the
16218 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
16220 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
16222 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
16223 we can stop lying to compilers about the constness of argv when we
16224 are compiled outside glibc.
16225 (getopt, getopt_long, getopt_long_only): Use it.
16226 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
16227 _getopt_internal, getopt): Likewise.
16228 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
16229 _getopt_long_only_r): Likewise.
16230 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
16231 _getopt_long_r, _getopt_long_only_r): Likewise.
16233 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
16234 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
16235 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
16236 the other external symbols.
16237 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
16238 declaration, since the above renaming now works around collisions.
16240 2004-11-11 Jim Meyering <jim@meyering.net>
16242 * lib/linebreak.c: Remove trailing blanks.
16243 * lib/alloca_.h: Likewise.
16244 * lib/acosl.c: Likewise.
16245 * lib/euidaccess.c: Likewise.
16246 * lib/allocsa.h: Likewise.
16248 2004-11-10 Simon Josefsson <jas@extundo.com>
16250 * m4/getaddrinfo.m4: New file.
16252 2004-11-10 Simon Josefsson <jas@extundo.com>
16254 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
16256 2004-11-10 Simon Josefsson <jas@extundo.com>
16258 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16261 * modules/getaddrinfo: New file.
16263 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
16265 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
16267 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
16269 * lib/mktime.c (SHR): New macro, which is a portable
16270 substitute for >> that should work even on Crays.
16271 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
16272 Problem reported by Mark D. Baushke in
16273 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
16274 * lib/getdate.y (SHR): Likewise.
16276 * lib/strftime.c (SHR): Likewise.
16278 * lib/quotearg.c (struct quoting_options): Use unsigned int for
16279 quote_these_too, so that right shifts are well defined. All uses
16282 2004-11-10 Jim Meyering <jim@meyering.net>
16284 Ensure that no close failure goes unreported.
16285 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
16286 return early when it seems there's nothing to flush.
16287 Don't include __fpending.h.
16289 2004-11-10 Jim Meyering <jim@meyering.net>
16291 * modules/closeout (Depends-on): Remove fpending.
16293 2004-11-10 Jim Meyering <jim@meyering.net>
16295 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
16297 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
16299 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
16301 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
16302 and AC_REQUIRE when possible, to avoid duplicate checks.
16303 Check for <wchar.h>.
16305 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
16307 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
16309 2004-11-09 Bruno Haible <bruno@clisp.org>
16311 * m4/sockpfaf.m4: New file.
16313 2004-11-05 Bruno Haible <bruno@clisp.org>
16315 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
16316 Reported by Mark D. Baushke <mdb@cvshome.org>.
16318 2004-11-04 Bruno Haible <bruno@clisp.org>
16320 2004-09-11 Bruno Haible <bruno@clisp.org>
16321 * allocsa.valgrind: New file.
16322 2004-02-06 Bruno Haible <bruno@clisp.org>
16323 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
16324 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
16325 Reported by Christopher Seip <chris.seip@hp.com>.
16327 2004-11-04 Bruno Haible <bruno@clisp.org>
16329 * modules/allocsa (Files): Add lib/allocsa.valgrind.
16330 (Makefile.am): Distribute it.
16332 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
16334 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
16335 with errno == ERANGE if the buffer is too small.
16336 Problem reported by Mark D. Baushke.
16338 2004-11-03 Albert Chin <china@thewrittenword.com>
16339 Paul Eggert <eggert@cs.ucla.edu>
16341 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
16342 equivalent, substitute $ac_type for equivalent type rather than
16343 blindly using uint32_t *always* which won't work if uint32_t is not
16344 available. Define _UINT32_T to work around typedef of uint32_t if
16345 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
16348 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16350 * m4/jm-macros.m4: Sync from coreutils.
16351 (gl_MACROS): Check for mbrlen, for pathchk.
16352 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
16354 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16356 * lib/xreadlink.c (MAXSIZE): New macro.
16357 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
16358 size does not exceed MAXSIZE. Avoid cast.
16359 As suggested by Mark D. Baushke in
16360 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
16361 if readlink fails with buffer size just under MAXSIZE, try again
16364 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
16366 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
16368 2004-11-02 Derek R. Price <derek@ximbiot.com>
16369 and Paul Eggert <eggert@cs.ucla.edu>
16371 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
16372 (get_date): Overparenthesize to avoid GCC warning.
16374 2004-11-02 Bruno Haible <bruno@clisp.org>
16376 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
16379 2004-11-02 Bruno Haible <bruno@clisp.org>
16381 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
16382 function returns void.
16384 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
16386 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
16387 fflush_unlocked, flockfile, funlockfile, funlockfile,
16388 fputs_unlocked, putc_unlocked.
16390 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
16392 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
16393 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
16396 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16398 * modules/getdate (Files): Add doc/getdate.texi.
16399 (Depends-on): Add setenv, xalloc.
16401 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16403 * lib/getdate.y: Add support for TZ="foo" within a date string.
16404 Fix some bugs near time_t boundaries. Reject dates with
16405 out-of-range components, e.g., "Sept 31".
16406 Include <stdlib.h>, "setenv.h", "xalloc.h".
16407 (ISDIGIT_LOCALE): Remove; unused.
16408 Note that the TZ and time functions used here are not reentrant.
16409 (mktime_ok, get_tz): New functions.
16410 (TZBUFSIZE): New constant.
16411 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
16412 This requires that we sometimes generate our own TZ="XXX..." setting.
16414 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
16416 * doc/getdate.texi: New file, from coreutils with modifications for
16417 the new TZ parsing.
16419 2004-10-27 Derek R. Price <derek@ximbiot.com>
16421 * lib/mktime.c (not_equal_tm): Remove redundant check.
16423 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
16425 * modules/regex (lib_SOURCES): Add regex.c.
16426 Reported by James Youngman in
16427 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
16429 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
16431 * lib/getdate.y: Use Bison 1.875 features, and some minor
16432 code cleanups. This change does not affect semantics.
16433 Don't include <stdlib.h>; no longer needed.
16434 Don't include unlocked-io.h; only the "#if TEST" code uses
16435 stdio, and performance isn't crucial there.
16436 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
16437 Bison 1.875 features as described below.
16438 All uses of "PC." replaced by "pc->".
16439 (YYSTYPE): Add a forward declaration.
16440 (yylex, yyerror): Use full prototypes in forward decls.
16441 Use "%pure-parser" rather than obsolescent "%pure_parser".
16442 Use %parse-param and %lex-param instead of obsolescent
16443 YYPARSE_PARAM and YYLEX_PARAM.
16444 (meridian_table, month_and_day_table, time_units_table,
16445 relative_time_table, time_zone_table, military_table,
16446 lookup_zone, lookup_word, get_date):
16447 Use NULL instead of 0 where appropriate.
16448 (to_hour): Avoid abort (), to avoid a dependency on
16450 (yyerror, yylex): Now accepts parser_control * arg.
16451 (main) [TEST]: Use '\0' rather than 0 for char.
16453 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
16455 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
16457 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
16459 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
16460 It's now the caller's responsibility to handle the case where
16461 !HAVE_GETPAGESIZE && !defined getpagesize.
16463 * lib/mktime.c (leapyear): Arg is long int, not int.
16465 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
16467 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
16469 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
16471 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
16472 missing. Problem reported by James Youngman.
16474 2004-10-16 Simon Josefsson <jas@extundo.com>
16476 * gnulib-tool: Fix comments. Fix parse problem.
16477 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
16479 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
16481 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
16482 implementation of getopt_long. Problem reported by Alexander Taler in:
16483 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
16485 2004-10-15 Bruno Haible <bruno@clisp.org>
16487 * gnulib-tool: Untabify. Initialize supplied_libname.
16488 (func_usage): More homogenous output.
16489 (func_modules_transitive_closure, func_modules_to_filelist,
16490 func_emit_lib_Makefile_am): New functions.
16491 (func_import): New function, extracted from big case statement. Use
16492 func_get_license, func_modules_transitive_closure,
16493 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
16494 opt_lgpl. Don't use test -a, as it's not portable.
16495 (func_create_testdir): Use func_modules_transitive_closure,
16496 func_modules_to_filelist, func_emit_lib_Makefile_am.
16498 2004-10-15 Bruno Haible <bruno@clisp.org>
16500 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
16502 2004-10-15 Bruno Haible <bruno@clisp.org>
16504 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
16505 the portions belonging to each module.
16506 Suggested by Derek Robert Price <derek@ximbiot.com>.
16508 2004-10-12 Simon Josefsson <jas@extundo.com>
16510 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
16511 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
16514 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
16516 * modules/vsnprintf: New file.
16518 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
16520 * m4/vsnprintf.m4: New file.
16522 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
16524 * lib/vsnprintf.h: New file.
16525 * lib/vsnprintf.c: New file.
16527 2004-10-11 Bruno Haible <bruno@clisp.org>
16529 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
16532 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
16534 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
16536 2004-10-07 Bruno Haible <bruno@clisp.org>
16538 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
16539 fits into the provided buffer.
16541 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
16543 * lib/diacrit.c, diacrit.h: Add GPL notice.
16545 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
16547 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
16548 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
16549 This avoids a potential constant-folding bug.
16551 2004-10-05 Bruno Haible <bruno@clisp.org>
16553 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
16554 for the declaration of strsep.
16556 2004-10-05 Bruno Haible <bruno@clisp.org>
16558 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
16560 2004-10-04 Simon Josefsson <jas@extundo.com>
16562 * modules/memmem: New file.
16563 * tests/test-memmem.c: New file.
16564 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
16566 2004-10-04 Simon Josefsson <jas@extundo.com>
16568 * m4/memmem.m4: New file.
16570 2004-10-04 Simon Josefsson <jas@extundo.com>
16572 * lib/memmem.h: New file.
16573 * lib/memmem.c: New file, taken from glibc.
16575 2004-10-04 Simon Josefsson <jas@extundo.com>
16577 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
16578 '#ifdef USE_UNLOCKED_IO'.
16580 2004-10-04 Simon Josefsson <jas@extundo.com>
16582 * config/srclist.txt: Add memmem from glibc.
16584 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16586 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
16588 * modules/argmatch, modules/argp, modules/closeout, modules/error,
16589 modules/exclude, modules/getdate, modules/getline,
16590 modules/getndelim2, modules/getpass, modules/getpass-gnu,
16591 modules/getusershell, modules/linebuffer, modules/md5,
16592 modules/mountlist, modules/posixtm, modules/readtokens,
16593 modules/readutmp, modules/regex, modules/sha1,
16594 modules/version-etc, modules/yesno:
16595 Remove dependency on unlocked-io.
16597 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16599 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
16601 * m4/unlocked-io.m4: Add copyright notice.
16602 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
16604 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16606 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
16607 * lib/xmalloc.c (xmemdup): Likewise.
16608 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
16609 XFREE): Remove these long-obsolescent macros.
16610 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
16611 * lib/xstrdup.c: Remove.
16613 * lib/regex.c (re_comp): Cast gettext return value to char *,
16614 Problem reported by Martin Neitzel via Mark D. Baushke.
16616 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
16618 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
16619 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
16620 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
16621 regex.c, sha1.c, version-etc.c, yesno.c:
16622 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
16623 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
16624 the includer's responsibility.
16626 Sync from coreutils.
16628 * lib/modechange.c (mode_compile): Don't decrement a pointer that
16629 points to the start of a string, as the C Standard says the
16630 resulting behavior is undefined.
16632 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
16633 simple -> simple_backups, numbered_existing ->
16634 numbered_existing_backups, numbered -> numbered_backups
16635 to avoid shadowing problems. All uses changed.
16636 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
16637 * lib/backupfile.c (check_extension, numbered_backup):
16638 Rename locals to avoid shadowing 'basename'.
16639 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
16642 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
16643 * lib/.cvsignore: Add getopt.h.
16645 2004-10-04 Bruno Haible <bruno@clisp.org>
16647 * modules/README: New file.
16648 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
16651 2004-10-02 Jim Meyering <jim@meyering.net>
16653 * lib/dirfd.h, getpagesize.h: Add copyright notice.
16655 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
16657 * modules/strsep: New file.
16659 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
16661 * m4/strsep.m4: New file.
16663 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
16665 * lib/strsep.h: New file.
16666 * lib/strsep.c: New file.
16668 2004-10-01 Simon Josefsson <jas@extundo.com>
16670 * lib/snprintf.c (snprintf): Handle size==0.
16672 2004-10-01 Simon Josefsson <jas@extundo.com>
16673 Bruno Haible <bruno@clisp.org>
16675 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
16676 (snprintf): Declare 'args'.
16678 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
16680 * lib/snprintf.c: Remove comments as to why each header is needed.
16682 2004-10-01 Bruno Haible <bruno@clisp.org>
16684 * MODULES.html.sh: Add strsep.
16686 2004-09-30 Simon Josefsson <jas@extundo.com>
16688 * modules/snprintf: New file.
16690 2004-09-30 Simon Josefsson <jas@extundo.com>
16692 * m4/snprintf.m4: New file.
16694 2004-09-30 Simon Josefsson <jas@extundo.com>
16696 * lib/snprintf.h, lib/snprintf.c: New files.
16698 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
16700 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
16701 (hol_entry_help): Never translate an empty string.
16702 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
16703 * lib/argp.h (OPTION_NO_TRANS): New option.
16705 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
16707 * modules/argp (Maintainer): Replace Simon Josefsson
16708 by Sergey Poznyakoff.
16710 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
16712 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
16713 changes merged back into glibc.
16715 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
16717 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
16719 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
16721 * lib/xvasprintf.c: Include xalloc.h.
16722 (xvasprintf): Use xalloc_die, not xmalloc_die.
16724 2004-09-29 Bruno Haible <bruno@clisp.org>
16726 * modules/alloca-opt: New file, derived from modules/alloca.
16727 * modules/allocsa: Depend on alloca-opt instead of alloca.
16728 * modules/setenv: Likewise.
16729 * modules/vasnprintf: Likewise.
16730 * MODULES.html.sh: Add alloca-opt.
16732 2004-09-28 Simon Josefsson <jas@extundo.com>
16734 * gnulib-tool: New parameter --lgpl, to asseert that modules are
16735 LGPL, and to replace license template from GPL to LGPL.
16737 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
16739 * modules/dummy: Change license to LGPL.
16741 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
16743 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
16745 2004-09-24 Simon Josefsson <jas@extundo.com>
16747 * modules/minmax (License): Change from GPL to LGPL.
16749 2004-09-23 Simon Josefsson <jas@extundo.com>
16751 * gnulib-tool (--import): Typo.
16753 2004-09-23 Simon Josefsson <jas@extundo.com>
16755 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
16757 2004-09-22 Bruno Haible <bruno@clisp.org>
16759 * modules/*: Add 'License' field.
16760 * gnulib-tool: Accept --extract-license option.
16761 (func_get_license): New function.
16763 2004-09-21 Bruno Haible <bruno@clisp.org>
16765 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
16766 Reported by Simon Josefsson.
16768 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
16770 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
16771 gl_AC_TYPE_LONG_LONG.
16773 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
16775 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
16777 2004-09-18 Simon Josefsson <jas@extundo.com>
16778 and Paul Eggert <eggert@cs.ucla.edu>
16780 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
16781 calls with autoreconf. Define GL_LIB.
16783 2004-09-14 Karl Berry <karl@gnu.org>
16785 * config/srclist.txt: unsync setenv.c, sigh.
16787 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
16789 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
16790 Problem reported by Bruno Haible in:
16791 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
16793 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
16795 * config/srclist.txt: Comment out argp-pvh.c.
16797 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
16799 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
16800 in case some system header has #define'd it. Problem reported by
16801 Soeren D. Schulze in
16802 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
16804 2004-09-09 Karl Berry <karl@gnu.org>
16806 * regex.[ch]: delete from the root. These were supposed to be
16807 synced with emacs cvs, but this has not happened for about
16808 a year, and anyway nothing else uses emacs regex.[ch].
16809 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
16810 lib/regex[.ch] is untouched.
16812 2004-09-09 Bruno Haible <bruno@clisp.org>
16814 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
16816 2004-09-09 Bruno Haible <bruno@clisp.org>
16818 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
16820 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
16822 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
16824 * modules/xvasprintf: New file.
16825 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
16827 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
16829 * lib/xvasprintf.h: New file.
16830 * lib/xvasprintf.c: New file.
16831 * lib/xasprintf.c: New file.
16833 2004-09-08 Bruno Haible <bruno@clisp.org>
16835 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
16837 2004-09-08 Bruno Haible <bruno@clisp.org>
16839 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
16840 length is > INT_MAX.
16841 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
16844 2004-09-08 Bruno Haible <bruno@clisp.org>
16846 * lib/stdint_.h: New file, taken from GNU clisp.
16848 2004-09-08 Bruno Haible <bruno@clisp.org>
16849 Oskar Liljeblad <oskar@osk.mine.nu>
16851 * modules/stdint: New file.
16852 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
16854 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
16856 Import from coreutils.
16857 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
16858 strings on unbounded length. alloca's performance benefits aren't
16859 that important here.
16860 (V_STRDUP): Remove.
16861 (parse_with_separator): New function, with most of the internals
16862 of the old parse_user_spec. Allow user to omit both user and group,
16863 for compatibility with FreeBSD.
16864 Clone only the user name, not the entire spec.
16865 Do not set *uid, *gid unless entirely successful.
16866 Avoid memory leak in some failing cases.
16867 Fix regression for USER.GROUP reported by Dmitry V. Levin in
16868 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
16869 (parse_user_spec): Rewrite to use parse_with_separator.
16871 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
16873 * modules/userspec: Don't depend on alloca.
16875 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
16877 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
16879 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
16881 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
16882 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
16883 utimecmp, utimens, xnanosleep. Rename sha to sha1.
16885 2004-08-16 Simon Josefsson <jas@extundo.com>
16887 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
16888 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
16889 Add --dry-run for --import.
16890 Let user provided command line parameters override configure.ac
16893 2004-08-12 Simon Josefsson <jas@extundo.com>
16895 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
16896 as discussed with Paul Eggert in threads rooted at
16897 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
16899 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
16900 Before, the test was empty, and relied on ELIDE_CODE in source
16902 (gl_PREREQ_GETOPT): New macro.
16903 (gl_GETOPT): Use them.
16905 2004-08-12 Simon Josefsson <jas@extundo.com>
16907 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
16908 * lib/getopt_.h: Renamed from getopt.h.
16910 2004-08-12 Simon Josefsson <jas@extundo.com>
16912 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
16913 Change default library name from libfoo to libgnu.
16914 Now, if you have a configure.ac that says:
16917 gl_MODULES(error getopt etcetera)
16919 you can import all you need by running:
16920 ../gnulib/gnulib-tool --import
16922 * modules/getopt (Files): Rename getopt.h to getopt_.h.
16923 (Makefile.am): Rewrite, use logic from argz.
16924 (Include): Use <getopt.h> instead of "getopt.h".
16926 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16928 * modules/argp (Files): Add m4/unlocked-io.m4.
16929 (Depends-on): Add extensions.
16931 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16933 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
16934 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
16935 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
16936 Check for program_invocation_name, program_invocation_short_name,
16937 flockfile, funlockfile, features.h, _getopt_long_only_r.
16939 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16941 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
16942 its complicated substitute.
16943 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
16944 and program_invocation_name.
16945 (__argp_basename) [!_LIBC]: Remove; the only use was
16946 replaced by its body.
16947 (__argp_short_program_name): Change condition from
16948 !defined __argp_short_program_name to
16949 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
16950 to match argp-namefrob.h.
16951 (__argp_failure): Don't assume strerror_r returns char *.
16952 * lib/argp-parse.c (N_): Define unconditionally.
16953 (argp_default_options): Fill out initializers with 0 to avoid
16956 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
16958 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
16961 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
16963 Merge from coreutils.
16965 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
16967 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
16968 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
16970 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
16972 Merge from coreutils.
16974 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
16975 wmemchr or wmemcpy. Problem reported by Robert Dahlem
16976 for Reliant Unix 5.43.
16978 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
16979 (union fooround): Use uintmax_t, not long int.
16980 The rest is a merge from libc:
16981 [defined _LIBC]: Include <shlib-compat.h>.
16982 (_obstack) [defined _LIBC]: Remove after 2.3.4.
16984 * lib/settime.c (settime): Recode to avoid warning with
16987 * lib/strverscmp.c: Convert to UTF-8.
16989 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
16991 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16994 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
16996 * modules/xalloc-die: New file.
16997 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
16999 * modules/md5 (Files): Add m4/uint32_t.m4.
17000 * modules/sha1: Renamed from modules/sha.
17002 Rename lib/sha.h to lib/sha1.h.
17003 Rename lib/sha.c to lib/sha1.c.
17004 Rename m4/sha.m4 to m4/sha1.m4.
17005 (lib_SOURCES): Likewise.
17006 (configure.ac): Rename gl_SHA to gl_SHA1.
17007 (Include): sha.h -> sha1.h.
17009 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17011 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
17012 * m4/sha1.m4: Renamed from sha.m4.
17013 (gl_SHA1): Renamed from gl_SHA. All uses changed.
17015 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
17017 * lib/obstack.h (obstack_empty_p):
17018 Don't assume that chunk->contents is suitably aligned.
17019 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
17020 Likewise. Problem reported by Benno in
17021 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
17023 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
17024 readable. This could be improved further but it'd take some work.
17026 2004-08-08 Simon Josefsson <jas@extundo.com>
17028 * modules/xgethostname (Depends-on): Remove exit and error (not
17031 * modules/getpass-gnu: Add getpass.h.
17032 (Depends-on): Add stdbool.
17033 * modules/getpass: Add getpass.h.
17035 2004-08-08 Simon Josefsson <jas@extundo.com>
17037 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
17038 Check getpass declaration.
17040 2004-08-08 Simon Josefsson <jas@extundo.com>
17042 * lib/xgethostname.c: Don't include error.h (not used).
17044 * lib/getpass.h: Add.
17045 * lib/getpass.c: Include getpass.h first.
17047 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
17049 * lib/xalloc-die.c: New file.
17050 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
17052 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
17053 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
17055 (_, N_, xalloc_die): Move to xalloc-die.c.
17056 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
17057 so that we needn't mess with xalloc_msg_memory_exhausted.
17059 * lib/sha1.h: Renamed from sha.h.
17060 (SHA1_H): Renamed from _SHA_H.
17061 (sha1_ctx): Renamed from sha_ctx.
17062 (sha1_init_ctx): Renamed from sha_init_ctx.
17063 (sha1_process_block): Renamed from sha_process_block.
17064 (sha1_process_bytes): Renamed from sha_process_bytes.
17065 (sha1_finish_ctx): Renamed from sha_finish_ctx.
17066 (sha1_read_ctx): Renamed from sha_read_ctx.
17067 (sha1_stream): Renamed from sha_stream.
17068 (sha1_buffer): Renamed from sha_buffer.
17069 * lib/sha1.c: Likewise; renamed from sha.c.
17070 Do not include <sys/types.h>.
17071 Include <stddef.h> rather than <stdlib.h>.
17073 2004-08-08 Bruno Haible <bruno@clisp.org>
17075 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
17076 FILESYSTEM_PREFIX_LEN.
17077 * lib/progreloc.c: Likewise.
17078 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
17080 2004-08-06 Simon Josefsson <jas@extundo.com>
17082 * modules/progname (Depends-on): Don't depend on stdbool.
17084 2004-08-06 Simon Josefsson <jas@extundo.com>
17086 * modules/getsubopt: New file.
17087 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17090 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17092 More merge from coreutils.
17094 * m4/utimens.m4, m4/utimecmp.m4: New files.
17095 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
17096 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
17097 prereq.m4, sha.m4: Import changes from coreutils.
17099 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17101 More merge from coreutils.
17102 * modules/raise, modules/readtokens0, modules/utimens:
17103 * modules/utimecmp, module/xnanosleep: New files.
17104 * modules/strftime: Add lib/strftime.h.
17105 Change include from <time.h> to "strftime.h".
17106 * modules/yesno: Add lib/yesno.h.
17107 * modules/backupfile: Remove lib/addext.c.
17108 * modules/euidaccess: Add stat-macros.h.
17109 * modules/canonicalize, modules/euidaccess,
17110 modules/filemode, modules/lchown, modules/makepath,
17111 modules/rmdir, modules/stat: Likewise.
17113 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
17116 * lib/argp-help.c (make_hol, hol_append): Don't assume that
17117 SIZE_MAX is a valid preprocessor constant.
17118 (__argp_basename): Change from "#ifndef _LIBC"
17119 to "#ifndef __argp_short_program_name", so that
17120 we don't compile these functions for tar.
17122 More merges from coreutils.
17123 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
17124 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
17125 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
17126 * lib/addext.c: Remove; no longer needed.
17127 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
17128 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
17129 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
17130 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
17131 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
17132 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
17133 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
17134 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
17135 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
17136 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17137 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
17138 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
17139 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
17140 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
17141 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
17142 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
17143 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
17144 Import changes from coreutils.
17146 2004-08-05 Simon Josefsson <jas@extundo.com>
17148 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
17150 2004-08-05 Simon Josefsson <jas@extundo.com>
17152 * m4/getsubopt.m4: New file.
17154 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
17156 Merge from coreutils.
17158 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
17159 * m4/getcwd-path-max.m4: New files.
17161 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
17162 FILESYSTEM_PREFIX_LEN ->
17163 FILE_SYSTEM_PREFIX_LEN.
17164 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
17165 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
17166 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
17167 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
17169 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
17170 prerequisite modules now handle the DOS stuff.
17171 Don't check for unistd.h.
17173 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
17175 Merge from coreutils.
17177 * lib/.gdb-history: Remove; this doesn't belong here.
17179 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
17180 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
17181 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
17182 * lib/getcwd.c: New files.
17184 * lib/dirname.h: Include <stdbool.h>.
17185 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
17186 for consistency with POSIX terminology. All uses changed.
17187 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
17188 (strip_trailing_slashes): Use bool for booleans.
17189 * lib/stripslash.c (strip_trailing_slashes): Likewise.
17191 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
17192 sometimes returns a positive errno value even when it succeeds.
17193 (print_errno_message) [!LIBC]: Fall back on strerror if
17194 __strerror_r fails.
17196 * lib/path-concat.c (mempcpy): Don't define if a system header defines
17197 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
17198 (longest_relative_suffix): New function.
17199 (path_concat): Use it. Assume first argument is not NULL.
17200 Port to DOS. Omit redundant separators.
17201 Report an error instead of returning NULL.
17202 Use mempcpy instead of memcpy.
17203 (xpath_concat): Remove: not declared or used.
17205 * lib/same.h: Include <stdbool.h>
17206 (same_name): Return bool, not int.
17207 * lib/same.c (same_name): Likewise.
17208 (errno): Don't declare; we assume C89 or better now.
17210 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
17211 if not already defined.
17213 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
17214 * lib/dup-safer.c (errno): Likewise.
17216 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
17218 Merge from coreutils.
17219 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
17220 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
17221 * modules/path-concat: Don't depend on strdup.
17223 2004-08-03 Simon Josefsson <jas@extundo.com>
17225 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
17226 * lib/progname.h: Don't include stdbool.h.
17228 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
17230 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
17231 * MODULES.html.sh (func_all_modules): Remove fatal.
17233 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
17235 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
17237 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
17239 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
17242 2004-08-02 Simon Josefsson <jas@extundo.com>
17244 * lib/getsubopt.h: New file, with comments from Bruno Haible.
17245 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
17246 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
17248 2004-08-01 Simon Josefsson <jas@extundo.com>
17250 * lib/xgetdomainname.c: Include stdlib.h, for free().
17252 2004-07-19 Bruno Haible <bruno@clisp.org>
17254 * MODULES.html.sh (func_all_modules): Add dummy.
17256 2004-07-16 Simon Josefsson <jas@extundo.com>
17258 * modules/dummy: New file.
17260 2004-07-16 Simon Josefsson <jas@extundo.com>
17262 * lib/dummy.c: New file.
17264 2004-07-16 Bruno Haible <bruno@clisp.org>
17266 * lib/backupfile.h: Add extern "C" for C++.
17267 * lib/closeout.h: Likewise.
17268 * lib/copy-file.h: Likewise.
17269 * lib/findprog.h: Likewise.
17270 * lib/full-write.h: Likewise.
17271 * lib/pathname.h: Likewise.
17272 * lib/progname.h: Likewise.
17273 * lib/stpcpy.h: Likewise.
17274 * lib/stpncpy.h: Likewise.
17275 * lib/strcase.h: Likewise.
17276 * lib/strstr.h: Likewise.
17277 * lib/xalloc.h: Likewise.
17279 * lib/mbswidth.h: Add extern "C" for C++.
17280 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
17282 2004-07-13 Robert Millan <robertmh@gnu.org>
17284 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
17286 2004-07-09 Simon Josefsson <jas@extundo.com>
17288 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
17289 failed without this.)
17291 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
17293 * modules/chown (Files): Add lib/fchown-stub.c, since
17294 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
17296 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
17298 * lib/fchown-stub.c: New file.
17300 2004-06-24 Jim Meyering <jim@meyering.net>
17302 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
17304 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17306 * modules/argz: Omit "#include".
17308 * MODULES.html.sh (func_all_modules): Add calloc, to match
17309 2004-06-01 addition of calloc module.
17311 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17313 * m4/argz.m4: New file, which is autoupdated from libtool.
17315 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17317 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
17320 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
17322 * config/srclist-update: Don't insist on "USA." before the
17323 close-comment, as libtool omits the period and puts the */ on a
17325 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
17326 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
17328 2004-06-22 Gary V. Vaughan <gary@gnu.org>
17330 * modules/argz: New file.
17331 * MODULES.html.sh (func_all_modules): Add argz.
17333 2004-06-12 Jim Meyering <jim@meyering.net>
17334 and Paul Eggert <eggert@cs.ucla.edu>
17336 * modules/hash (Files): Add lib/xalloc.h.
17337 * modules/pipe (Depends-on): Add wait-process.
17338 * modules/stat (Depends-on): Add xalloc.
17339 * modules/userspec (Files): Add lib/userspec.h.
17342 Upgrade from gettext-0.13.
17343 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
17344 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
17345 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
17347 2004-06-10 Jim Meyering <jim@meyering.net>
17349 * lib/calloc.c: New file.
17351 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
17353 * lib/getdate.y (yylex): Allow space between sign and number.
17354 Problem reported by Dan Jacobson.
17356 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
17358 Merge from coreutils CVS.
17360 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
17361 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
17362 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
17363 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
17364 xstrtol.m4: Fix copyright date and/or serial number.
17366 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
17367 See if we need an fchown replacement.
17368 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
17369 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
17370 and use the replacement function if we detect either defect.
17372 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
17375 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
17376 and Jim Meyering <jim@meyering.net>
17378 Merge from coreutils CVS.
17380 * lib/stat-macros.h: New file, with contents from file-type.h
17381 and coreutils' system.h.
17382 * lib/file-type.c: Include "stat-macros.h".
17383 * lib/file-type.h (file_type): Move all macro definitions to new file,
17386 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
17387 Wrap old code with this conditional.
17388 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
17389 function that does not dereference symlinks.
17390 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
17392 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
17393 dependency problems.
17394 (xreadlink): Accept new arg SIZE, for efficiency.
17395 All decls and uses changed.
17396 * lib/xreadlink.h: Include <stddef.h>, for size_t.
17398 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
17399 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
17401 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
17404 2004-06-01 Jim Meyering <jim@meyering.net>
17406 * m4/calloc.m4: New file.
17408 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
17410 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
17411 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
17412 Also, fix a typo in a diagnostic.
17414 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
17416 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
17417 or AC_FUNC_REALLOC.
17419 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
17421 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
17422 macros to be defined.
17423 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
17424 the allocator returns NULL because the requested size is zero.
17426 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
17428 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
17429 var. Add comment explaining why libc still defines it. This
17430 merges the following patch from glibc:
17431 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
17433 2004-05-20 Andreas Schwab <schwab@suse.de>
17435 * m4/free.m4: Replace free if it not known to work, not the other
17438 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
17440 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
17441 present in glibc since revision 1.1 of this file.
17442 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
17443 obstack_alignment_mask, obstack_alloc, obstack_base,
17444 obstack_blank, obstack_blank_fast, obstack_chunk_size,
17445 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
17446 obstack_grow0, obstack_init, obstack_int_grow,
17447 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
17448 obstack_next_free, obstack_object_size, obstack_ptr_grow,
17449 obstack_ptr_grow_fast, obstack_room): Remove declarations of
17450 nonexistent functions.
17452 2004-05-18 Karl Berry <karl@gnu.org>
17454 * config/srclist.txt: break link for vasnprintf.c.
17456 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
17458 Port obstack to the AS/400, where pointers are 16 bytes wide and
17459 you cannot cast an integer to a valid pointer. This patch is
17460 currently waiting to be integrated into glibc; see
17461 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
17463 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
17464 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
17465 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
17466 (struct obstack): temp member is now a union of a pointer and
17467 an integer, instead of an integer. All integer uses changed.
17468 This does not affect the physical layout of struct obstack,
17469 except on hosts (like the AS/400) where the size or alignment of
17470 void * is greater than that of ptrdiff_t.
17471 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
17472 __STDC__)]: Store temporary in pointer member of union, not
17474 * lib/obstack.c: Include <stddef.h>, for offsetof.
17475 (struct fooalign): Remove; it doesn't need a name.
17476 (union fooround): Change double to long double, and add void *.
17477 (DEFAULT_ALIGNMENT): Use offsetof to compute.
17478 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
17479 not a macro. Hence the values are always int; so remove all
17480 casts-to-int in uses.
17482 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
17484 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
17485 we can get this patch merged into glibc.
17487 2004-05-17 Derek R. Price <derek@ximbiot.com>
17488 Paul Eggert <eggert@cs.ucla.edu>
17490 * m4/argp: Depend on alloca.
17492 2004-05-17 Derek R. Price <derek@ximbiot.com>
17493 Paul Eggert <eggert@cs.ucla.edu>
17495 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
17498 2004-05-17 Bruno Haible <bruno@clisp.org>
17500 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
17501 precision that consists of a '.' followed by an empty digit string.
17502 Patch by Tor Lillqvist <tml@iki.fi>.
17504 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
17506 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
17507 for backward compatibility with older code. We need our own
17508 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
17509 it under some other name, and our alloca.h will define it.
17511 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
17512 Derek Price <derek@ximbiot.com>
17514 * lib/alloca.c: Include <alloca.h>, to get our interface.
17515 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
17516 include <alloca.h> first. Use C89 prototype for alloca; this
17517 requires including <stddef.h> for size_t. Use extern "C" if C++.
17518 Use #elif for simplicity, since we can assume C89 now.
17519 Don't try to source the system alloca.h since it will not be found
17520 and to prevent recursively including its replacement.
17521 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
17522 * lib/regex.c: Likewise.
17524 2004-05-16 Derek Price <derek@ximbiot.com>
17525 Paul Eggert <eggert@cs.ucla.edu>
17527 getline cleanup. This changes the getndelim2 API: both order of
17528 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
17531 * lib/getline.c: Don't include stddef.h or stdio.h, since our
17532 interface does that.
17533 (getline): Always use getdelim, so that we don't have two
17534 copies of this code.
17535 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
17537 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
17538 (GETNDELIM2_MAXIMUM): New macro.
17539 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
17540 instead of the old practice of delim2==0. All callers changed.
17541 Return -1 on overflow, instead of returning junk.
17542 Do not set *linesize unless allocation succeeds.
17543 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
17544 that we include sys/types.h.
17545 * lib/getnline.h: Likewise.
17546 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
17547 (getndelim2): Reorder arguments.
17548 * lib/getnline.c (getnline, getndelim):
17549 Don't discard the NMAX argument.
17550 (getnline): Invoke getndelim, to avoid code duplication.
17551 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
17552 of (size_t) -1 by callers of the getnline family.
17554 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
17556 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
17557 Check for gettimeofday.
17558 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
17559 Check for settimeofday, stime.
17561 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
17563 * lib/nanosleep.c (suspended): Change its type from int to
17564 sig_atomic_t volatile.
17565 (first_call): Make it private to rpl_nanosleep, and have it
17566 be zero initially as that's a bit faster.
17567 (my_usleep): Round up fractional times instead of truncating them,
17568 as this is the usual meaning for 'sleep'.
17570 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
17572 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
17573 (ENOSYS): Define if not defined.
17574 (settime): Fall back on stime if it exists and settimeofday fails.
17575 But don't bother with fallbacks if a method fails with errno == EPERM.
17577 2004-05-11 Jim Meyering <jim@meyering.net>
17579 Prior to this change, the save_cwd caller required read access to the
17580 current directory on most systems (ones with the fchdir function).
17582 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
17583 fails, try write-only, and finally, resort to using xgetcwd.
17585 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
17587 * lib/obstack.c, obstack.h: Import changes from libc.
17589 2004-04-28 Bruno Haible <bruno@clisp.org>
17591 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
17592 also implicitly appends .exe to executables.
17593 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
17594 accepts Windows pathnames.
17595 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
17596 Treat Cygwin like Windows, since it now accepts Windows pathnames.
17597 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
17598 Treat Cygwin like Windows, since it now accepts Windows pathnames.
17599 Reported by Derek Robert Price <derek@ximbiot.com>.
17601 2004-04-21 Karl Berry <karl@gnu.org>
17603 * config/srclist.txt (localcharset.c): break sync.
17605 2004-04-20 Paul Eggert <eggert@twinsun.com>
17607 * m4/host-os.m4: Add a copyright notice.
17609 2004-04-20 Jim Meyering <jim@meyering.net>
17611 Change UTILS_ to gl_ in AC_DEFINE'd names.
17612 Change utils_- and jm_-prefixed variables, too.
17613 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
17614 UTILS_FUNC_MKDIR_TRAILING_SLASH.
17615 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
17617 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
17618 Don't emit trailing blanks.
17619 Also rename jm_-prefixed variables to have gl_ prefix.
17621 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
17622 Also rename jm_-prefixed variables to have gl_ prefix.
17624 * m4/jm-macros.m4: Reflect the renamings.
17625 * m4/prereq.m4: Likewise.
17627 2004-04-20 Jim Meyering <jim@meyering.net>
17629 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
17632 2004-04-20 Jim Meyering <jim@meyering.net>
17633 Bruno Haible <bruno@clisp.org>
17635 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
17636 memory when realloc fails.
17638 2004-04-19 Jim Meyering <jim@meyering.net>
17640 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
17641 now that readutmp.c may call `free (0)'.
17643 2004-04-19 Bruno Haible <bruno@clisp.org>
17645 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
17646 * m4/inttypes_h.m4: Likewise.
17647 * m4/stdint_h.m4: Likewise.
17648 * m4/intmax_t.m4: Likewise.
17649 * m4/uintmax_t.m4: Likewise.
17651 2004-04-18 Jim Meyering <jim@meyering.net>
17653 * m4/prereq.m4: Don't forbid jm_ prefix.
17655 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
17656 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
17657 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
17658 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
17659 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
17660 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
17661 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
17662 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
17663 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
17664 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
17665 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
17666 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
17667 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
17668 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
17669 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
17670 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
17671 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
17672 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
17673 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
17675 2004-04-18 Jim Meyering <jim@meyering.net>
17677 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
17678 failure, don't leak memory and do call END_UTMP_ENT.
17680 2004-04-16 Jim Meyering <jim@meyering.net>
17682 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
17683 coreutils' stat program.
17684 (gl_PREREQ): Don't require jm_PREREQ_STAT.
17686 2004-04-11 Paul Eggert <eggert@twinsun.com>
17688 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
17690 (CHAR_BIT): Remove, since we assume C89.
17691 Include <stdint.h> if available, as per current Autoconf CVS advice.
17693 2004-03-31 Jim Meyering <jim@meyering.net>
17695 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
17696 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
17697 * m4/xalloc.m4: Likewise.
17699 2004-03-30 Paul Eggert <eggert@twinsun.com>
17701 Merge from coreutils.
17703 * m4/inttostr.m4: New file.
17704 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
17705 Require AM_STDBOOL_H and gl_TIMESPEC instead.
17706 Require gl_CLOCK_TIME.
17707 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
17709 2004-03-30 Paul Eggert <eggert@twinsun.com>
17711 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
17712 not bool, to be more consistent with Unix conventions.
17713 Suggested by Bruno Haible.
17715 Merge from coreutils.
17717 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
17718 * lib/umaxtostr.c: New files.
17720 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
17721 the usual <time.h> dance.
17722 (get_date): Change signature to support fractional time stamps.
17723 All callers changed.
17724 * lib/getdate.y: Include "getdate.h" first, as we can now
17725 assume C89 and don't need to worry about 'const'.
17726 Similarly, include "unlocked-io.h" near start, not in middle.
17727 Include <limits.h>.
17728 (textint.value): Use long int rather than int.
17729 (textint.digits): Use size_t rather than int.
17730 (BILLION, LOG10_BILLION): New constants.
17731 (parser_control): New member rel_ns. Members day_ordinal,
17732 time_zone, month, day, hour, minutes, rel_year, rel_month,
17733 rel_day, rel_hour, rel_minutes, rel_seconds
17734 are now long int, not int. Member seconds is now struct timespec,
17735 not int. New member timespec_seen. Members dates_seen, days_seen,
17736 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
17738 (%union.intval): Now long int, not int.
17739 New member timespec.
17740 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
17741 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
17742 (spec): Now is a timespec or an item list.
17743 (timespec, items): New nonterminals.
17744 (time, rel, relunit, number, get_date):
17745 Add support for fractional seconds.
17746 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
17747 (gmtime, localtime, mktime): Remove decls; not needed with C89.
17748 (to_hour): First arg is now long int, not int.
17749 (to_year): Returns long int, not int.
17750 Don't treat year -70 like 70.
17751 (tm_diff): Returns long int, not int.
17752 (lookup_word): Use bool instead of int when appropriate.
17753 (yylex): Use size_t for count, not int.
17754 Detect overflow when parsing large integer constants.
17755 Add support for fractions.
17756 (get_date): Make pointers 'const' if possible.
17757 Use more-portable code to detect integer overflow.
17758 (main) [TEST]: Adjust to above changes. Test for localtime failure.
17759 Don't use ctime; it's not reliable if the year has >4 digits.
17761 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
17762 This is for compatibility with BSD.
17764 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
17765 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
17766 From coreutils' system.h.
17768 * lib/userspec.c: Don't include "posixver.h".
17769 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
17770 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
17771 compatible extension. Simplify code by removing a boolean int
17772 that was always nonzero if a string was nonnull.
17774 2004-03-30 Jim Meyering <jim@meyering.net>
17776 Merge from coreutils.
17778 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
17779 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
17780 on some systems one must include <grp.h> before it.
17781 Reported by Christian Krackowizer.
17783 2004-03-30 Jim Meyering <jim@meyering.net>
17785 Merge from coreutils.
17787 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
17789 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
17790 an empty input stream.
17792 * lib/readtokens.c: Include <stdbool.h>.
17793 (readtoken): Use `size_t' rather than int/long.
17794 All callers adjusted.
17795 Use `bool' rather than `int' where appropriate.
17796 Use memset rather than an explicit loop.
17797 Use x2nrealloc rather than xrealloc.
17798 Allow the use of `\0' as a delimiter.
17799 (readtokens): Likewise.
17800 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
17802 2004-03-30 Jim Meyering <jim@meyering.net>
17804 * m4/realloc.m4: Remove file, since now it does no more than
17805 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
17806 the `configure.ac' section of module/realloc.
17807 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
17809 2004-03-30 Bruno Haible <bruno@clisp.org>
17811 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
17814 2004-03-29 Paul Eggert <eggert@twinsun.com>
17816 Merge changes to getloadavg.c from coreutils and Emacs.
17818 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
17819 Define to an expression, not to the empty string.
17820 Include cloexec.h and xalloc.h.
17821 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
17822 Use set_cloexec_flag rather than rolling our own.
17823 * lib/cloexec.c, lib/cloexec.h: New files.
17825 2004-03-29 Paul Eggert <eggert@twinsun.com>
17827 * m4/cloexec.m4: New file.
17829 2004-03-18 Paul Eggert <eggert@twinsun.com>
17831 * lib/getopt.h: Sync with libc CVS.
17833 2004-03-18 Paul Eggert <eggert@twinsun.com>
17834 Bruno Haible <bruno@clisp.org>
17836 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
17839 2004-03-18 Paul Eggert <eggert@twinsun.com>
17840 Bruno Haible <bruno@clisp.org>
17842 * lib/mbswidth.h: Include <wchar.h> only if
17843 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
17845 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
17847 2004-03-09 Paul Eggert <eggert@twinsun.com>
17849 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
17850 Sync with libc CVS.
17851 * lib/getopt_int.h: New file, also synced from libc.
17853 2004-03-09 Paul Eggert <eggert@twinsun.com>
17855 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
17856 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
17857 Bring back getopt.c, getopt.h, getopt1.c.
17859 2004-03-07 Paul Eggert <eggert@twinsun.com>
17861 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
17862 All uses changed. Check for sa_sigaction member; this fixes
17863 a bug first reported by Jason Andrade in
17864 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17866 2004-03-07 Paul Eggert <eggert@twinsun.com>
17868 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
17869 '#if' expressions. Unlike the code it replaces, it does not
17870 depend on (defined _SC_PAGESIZE). However, it does depend on
17871 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
17872 first reported by Jason Andrade in
17873 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17875 2004-02-25 Simon Josefsson <jas@extundo.com>
17877 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
17879 2004-02-25 Simon Josefsson <jas@extundo.com>
17881 * lib/strdup.h: New file.
17882 * lib/strdup.c: Include it.
17883 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
17884 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
17886 2004-02-23 Karl Berry <karl@gnu.org>
17888 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
17889 (from fencepost.gnu.org:/gd/gnuorg).
17891 2004-02-23 Karl Berry <karl@gnu.org>
17893 * config/srclistvars.sh (GNUORG) [karl]: redefine.
17894 * config/srclist.txt: add maintain/standards documents.
17896 2004-02-18 Bruno Haible <bruno@clisp.org>
17898 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
17899 Reported by Derek Robert Price <derek@ximbiot.com>.
17901 2004-02-16 Karl Berry <karl@gnu.org>
17903 * config/mkinstalldirs, install-sh: update from automake.
17905 2004-02-06 Karl Berry <karl@gnu.org>
17907 * m4/po.m4: update from gettext 0.14.1.
17909 2004-02-06 Karl Berry <karl@gnu.org>
17911 * lib/config.charset: update from gettext 0.14.1.
17913 2004-02-05 Paul Eggert <eggert@twinsun.com>
17915 Add comments and code, prompted by suggestions from Bruno Haible
17917 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
17918 describing the enum quoting_style values.
17919 * lib/quotearg.c (quotearg_alloc): New function.
17920 (quotearg_buffer_restyled): Treat lone { and } as special.
17921 Treat = as special. Work around bug with older shells
17922 that "see" a '\' that is really the 2nd byte of a multibyte char.
17923 Quote empty string with shell_quoting_style.
17925 2004-02-03 Bruno Haible <bruno@clisp.org>
17927 * m4/pipe.m4: New file, from GNU gettext.
17929 2004-02-03 Bruno Haible <bruno@clisp.org>
17931 * lib/pipe.h: New file, from GNU gettext.
17932 * lib/pipe.c: New file, from GNU gettext.
17934 2004-01-27 Bruno Haible <bruno@clisp.org>
17936 * m4/execute.m4: New file, from GNU gettext.
17938 2004-01-27 Bruno Haible <bruno@clisp.org>
17940 * lib/execute.h: New file, from GNU gettext.
17941 * lib/execute.c: New file, from GNU gettext.
17942 * lib/w32spawn.h: New file, from GNU gettext.
17944 2004-01-24 Paul Eggert <eggert@twinsun.com>
17946 Merge from diffutils.
17948 * lib/file-type.c (file_type): Add typed memory objects.
17949 * lib/file-type.h (S_TYPEISTMO): New macro.
17951 * lib/c-stack.h (c_stack_action): Remove argv argument.
17952 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
17953 (die): Don't calculate message unless segv_action returns.
17954 (get_stack_location, min_address_from_argv, max_address_from_argv,
17955 volatile stack_base, volatile_stack_size): Remove.
17956 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
17957 that every segmentation violation is a stack overflow. (Ouch!)
17958 See Debian bug 136249 (still outstanding) for more info about why
17959 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
17961 2004-01-24 Paul Eggert <eggert@twinsun.com>
17963 Exit-status fix from coreutils.
17965 Use exit_failure consistently in place of EXIT_FAILURE,
17966 so that program exit statuses are consistent on failure.
17968 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
17969 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
17970 * lib/argmatch.h: Comment fix to match the above.
17971 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
17972 Now a macro referring to exit_failure, instead of a separate
17973 variable. Include "exitfail.h" to get it.
17974 * lib/xstrtol.h: Include "exitfail.h".
17975 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
17977 * lib/long-options.c (parse_long_options): Use prototype
17978 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
17981 2004-01-21 Jim Meyering <jim@meyering.net>
17983 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
17984 so as not to conflict with a different-sized __mktime_internal
17985 function in GNU libc.
17986 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
17987 Problem building statically-linked `ls' reported by Michael Brunnbauer.
17989 2004-01-20 Karl Berry <karl@gnu.org>
17991 * config/config.guess: update from config.
17993 * config/srclistvars.sh: GNUWWWLICENSES for karl.
17995 2004-01-20 Bruno Haible <bruno@clisp.org>
17997 Safer stack allocation.
17998 * lib/setenv.c: Include allocsa.h.
17999 (alloca): Remove fallback definition.
18000 (freea): Remove macro.
18001 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
18004 2004-01-20 Bruno Haible <bruno@clisp.org>
18006 * m4/eealloc.m4: New file, from GNU gettext.
18008 2004-01-20 Bruno Haible <bruno@clisp.org>
18010 * m4/allocsa.m4: New file, from GNU gettext.
18012 2004-01-20 Bruno Haible <bruno@clisp.org>
18014 * lib/xallocsa.h: New file, from GNU gettext.
18015 * lib/xallocsa.c: New file, from GNU gettext.
18017 2004-01-20 Bruno Haible <bruno@clisp.org>
18019 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
18021 2004-01-20 Bruno Haible <bruno@clisp.org>
18023 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
18024 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
18027 2004-01-20 Bruno Haible <bruno@clisp.org>
18029 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
18032 2004-01-20 Bruno Haible <bruno@clisp.org>
18034 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
18036 2004-01-20 Bruno Haible <bruno@clisp.org>
18038 * lib/eealloc.h: New file.
18040 2004-01-20 Bruno Haible <bruno@clisp.org>
18042 * lib/binary-io.h: Avoid warnings on Cygwin.
18044 2004-01-20 Bruno Haible <bruno@clisp.org>
18046 * lib/allocsa.h: New file, from GNU gettext.
18047 * lib/allocsa.c: New file, from GNU gettext.
18049 2004-01-18 Karl Berry <karl@gnu.org>
18051 * doc/gpl.texi, doc/lgpl.texi: new files.
18053 2004-01-18 Karl Berry <karl@gnu.org>
18055 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
18056 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
18058 2004-01-15 Paul Eggert <eggert@twinsun.com>
18060 Merge from coreutils.
18062 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
18063 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
18064 (gl_DEFAULT_POSIX2_VERSION): Move
18065 the documentation from 'configure' into 'config.hin',
18066 so that 'configure --help' isn't burdened by it and
18067 we don't have to worry about its formatting there.
18068 Reword the documentation so that it's more succinct
18069 and can be run together into a single paragraph.
18070 * m4/same.m4 (gl_SAME): Check for pathconf.
18072 2004-01-15 Paul Eggert <eggert@twinsun.com>
18074 Merge from coreutils.
18076 * lib/posixver.c: Include posixver.h.
18078 * lib/same.c: Include <stdbool.h>, <limits.h>.
18079 (_POSIX_NAME_MAX): Define if not defined.
18081 (same_name): If file names are silently truncated, report
18082 that the file names are the same if they are the same after
18083 the silent truncation.
18085 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
18086 conversion function.
18087 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
18088 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
18091 2004-01-15 Jim Meyering <jim@meyering.net>
18093 Merge from coreutils.
18095 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
18096 if no library is required.
18097 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
18098 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
18099 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
18100 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
18101 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
18102 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
18103 value, $ac_cv_search_crypt, if it's "none required".
18104 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
18105 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
18106 not gl_FUNC_GETLOADAVG.
18107 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
18108 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
18110 2004-01-15 Jim Meyering <jim@meyering.net>
18112 Merge from coreutils.
18114 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
18115 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
18116 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
18118 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
18119 optional configure-time default.
18121 * lib/version-etc.c (version_etc_copyright): Update copyright date.
18123 * lib/xreadlink.c (xreadlink): Correct outdated comment.
18125 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
18127 Merge from coreutils.
18129 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
18130 value, $ac_cv_search_nanosleep, if it's "none required".
18132 2004-01-14 Paul Eggert <eggert@twinsun.com>
18134 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
18135 with like-named macro in fnmatch.c.
18136 (EXT): Use an internal constant instead.
18138 Merge fnmatch patches from glibc.
18139 * lib/fnmatch.c (mbsinit): Remove define.
18140 Add libc_hidden_ver (__fnmatch, fnmatch).
18141 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
18142 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
18144 2004-01-14 Karl Berry <karl@gnu.org>
18146 * config/install-sh: update from automake.
18148 2004-01-13 Karl Berry <karl@gnu.org>
18150 * config/install-sh: update from automake.
18152 2004-01-09 Karl Berry <karl@gnu.org>
18154 * config/install-sh: update from automake.
18156 2004-01-05 Karl Berry <karl@gnu.org>
18158 * config/config.{sub,guess}: update from config.
18160 2003-12-31 Karl Berry <karl@gnu.org>
18162 * config/depcomp: update from automake.
18164 2003-12-14 Karl Berry <karl@gnu.org>
18166 * lib/config.charset: update from gettext-runtime.
18168 2003-12-03 Paul Eggert <eggert@twinsun.com>
18170 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
18171 Bug reported by Alfred M. Szmidt.
18173 2003-12-03 Bruno Haible <bruno@clisp.org>
18175 * m4/gettext.m4: Upgrade from gettext-0.13.
18176 * m4/po.m4: Upgrade from gettext-0.13.
18177 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
18178 * m4/intmax.m4: New file, from gettext-0.13.
18179 * m4/printf-posix.m4: New file, from gettext-0.13.
18181 2003-11-29 Karl Berry <karl@gnu.org>
18183 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
18185 2003-11-25 Paul Eggert <eggert@twinsun.com>
18186 Bruno Haible <bruno@clisp.org>
18188 * lib/printf-parse.h: Don't include sys/types.h.
18189 (ARG_NONE): New macro.
18190 (char_directive): Change type of *arg_index fields to size_t.
18191 * lib/printf-parse.c: Don't include sys/types.h.
18192 (SSIZE_MAX): Remove macro.
18193 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
18194 Remove unnecessary overflow check.
18195 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
18198 2003-11-25 Bruno Haible <bruno@clisp.org>
18200 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
18202 2003-11-25 Bruno Haible <bruno@clisp.org>
18204 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
18207 2003-11-24 Paul Eggert <eggert@twinsun.com>
18209 * modules/alloca: Remove dependency on xalloc.
18211 2003-11-24 Paul Eggert <eggert@twinsun.com>
18213 * lib/alloca.c: Remove dependency on xalloc module.
18214 (xalloc_die): Remove.
18215 (memory_full) [!defined emacs]: New macro.
18216 [!defined emacs]: Don't include xalloc.h.
18217 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
18218 address arithmetic overflows. Change datatypes a bit to avoid
18221 2003-11-22 Jim Meyering <jim@meyering.net>
18223 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
18226 2003-11-21 Karl Berry <karl@gnu.org>
18228 * config/config.{sub,guess}: update from config.
18230 2003-11-18 Karl Berry <karl@gnu.org>
18232 * config/config.{sub,guess}: update from config.
18234 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
18236 2003-11-17 Paul Eggert <eggert@twinsun.com>
18238 * README: Mention that S+T cannot overflow if S is the size of
18239 an existing object and T is sufficiently small.
18241 2003-11-17 Jim Meyering <jim@meyering.net>
18243 On systems without utime and without a utimes function capable of
18244 dealing with a NULL struct utimbuf* argument, this utime replacement
18245 could -- in unusual circumstances -- leak a file descriptor.
18246 * lib/utime.c: Include <unistd.h> and <errno.h>.
18247 (utime_null): Be sure to close `fd' and to preserve errno.
18248 Reported by Geoff Collyer via Arnold Robbins.
18250 2003-11-17 Bruno Haible <bruno@clisp.org>
18252 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
18253 (Depends-on): Add xsize.
18255 2003-11-17 Bruno Haible <bruno@clisp.org>
18257 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
18259 2003-11-17 Bruno Haible <bruno@clisp.org>
18261 * lib/vasnprintf.c (alloca): Remove fallback definition.
18262 (freea): Remove definition.
18263 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
18264 Reported by Paul Eggert.
18266 2003-11-16 Paul Eggert <eggert@twinsun.com>
18267 Bruno Haible <bruno@clisp.org>
18269 Protect against address arithmetic overflow.
18270 * lib/printf-args.h: Include stddef.h.
18271 (arguments): Change type of field 'count' to size_t.
18272 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
18273 'unsigned int' where appropriate.
18274 * lib/printf-parse.h: Include sys/types.h.
18275 (char_directive): Change type of *arg_index fields to ssize_t.
18276 (char_directives): Change type of fields 'count', max_*_length to
18278 * lib/printf-parse.c: Include sys/types.h and xsize.h.
18279 (SSIZE_MAX): Define fallback value.
18280 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
18281 instead of 'int' where appropriate. Check a_allocated, d_allocated
18282 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
18283 * lib/vasnprintf.c: Include xsize.h.
18284 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
18285 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
18286 overflow. Avoid wraparound when converting a width or precision from
18289 2003-11-16 Bruno Haible <bruno@clisp.org>
18291 Update from GNU gettext.
18292 * lib/printf-parse.c: Generalize to it can be compiled for wide
18294 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
18295 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
18296 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
18297 SNPRINTF): New macros.
18298 Don't include <alloca.h> if the file is used inside libintl.
18299 (local_wcslen): New function, for Solaris 2.5.1.
18300 (VASNPRINTF): Use it instead of wcslen.
18302 2003-11-16 Bruno Haible <bruno@clisp.org>
18304 * lib/xsize.h (xmax): New function.
18305 (xsum, xsum3, xsum4): Declare as "pure" functions.
18307 2003-11-12 Paul Eggert <eggert@twinsun.com>
18309 * modules/xalloc (Files): Undo latest change, since xalloc.h
18310 no longer needs SIZE_MAX or PTRDIFF_MAX.
18312 2003-11-12 Paul Eggert <eggert@twinsun.com>
18314 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
18317 2003-11-12 Paul Eggert <eggert@twinsun.com>
18319 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
18320 "return", to pacify some unknown compiler. Problem reported
18321 by Joerg Schilling.
18323 2003-11-12 Paul Eggert <eggert@twinsun.com>
18325 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
18326 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
18327 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
18328 heuristic is just as accurate as far as we know, and it removes a
18329 dependency on size_max.m4 and ptrdiff_max.m4.
18331 2003-11-11 Bruno Haible <bruno@clisp.org>
18333 * modules/xsize (Files): Add m4/size_max.m4.
18334 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
18336 2003-11-11 Bruno Haible <bruno@clisp.org>
18338 * m4/size_max.m4: New file.
18339 * m4/ptrdiff_max.m4: New file.
18340 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
18341 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
18342 (gl_XALLOC): Invoke it.
18344 2003-11-11 Bruno Haible <bruno@clisp.org>
18346 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
18347 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
18350 2003-11-10 Paul Eggert <eggert@twinsun.com>
18352 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
18353 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
18354 rejected some allocations of exactly SIZE_MAX - 2 bytes.
18356 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
18357 not (size_t) -1, since it's defined here.
18359 2003-11-09 Karl Berry <karl@gnu.org>
18361 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
18363 2003-11-06 Paul Eggert <eggert@twinsun.com>
18365 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
18366 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
18367 Reject sizes of exactly SIZE_MAX bytes.
18368 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
18369 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
18371 2003-11-05 Bruno Haible <bruno@clisp.org>
18373 * lib/xsize.h: Include limits.h, to avoid a possible collision with
18374 SIZE_MAX defined in <limits.h> on Solaris.
18376 2003-11-04 Jim Meyering <jim@meyering.net>
18378 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
18379 variable names, rather than @VAR@.
18380 * modules/poll: Likewise.
18382 2003-11-04 Bruno Haible <bruno@clisp.org>
18384 * modules/xsize: New file.
18385 * modules/linebreak: Depend on xsize.
18386 * MODULES.html.sh (func_all_modules): Add xsize.
18388 2003-11-04 Bruno Haible <bruno@clisp.org>
18390 * m4/xsize.m4: New file.
18392 2003-11-04 Bruno Haible <bruno@clisp.org>
18394 * lib/xsize.h: New file.
18395 * lib/linebreak.c: Include xsize.h.
18396 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
18397 argument for overflow.
18398 Suggested by Paul Eggert.
18400 2003-11-03 Karl Berry <karl@gnu.org>
18402 * config/config.{guess,sub}: update from config.
18404 2003-11-03 Jim Meyering <jim@meyering.net>
18406 * modules/userspec (lib_SOURCES): Add userspec.h.
18407 (Include): Add "userspec.h".
18408 Improve description.
18410 2003-11-03 Jim Meyering <jim@meyering.net>
18412 * lib/userspec.c: Include "userspec.h".
18413 * lib/userspec.h: New file.
18415 2003-11-03 Bruno Haible <bruno@clisp.org>
18417 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
18419 2003-11-03 Bruno Haible <bruno@clisp.org>
18421 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
18422 available, to avoid (extremely rare) race condition.
18423 Suggested by Paul Eggert.
18425 2003-11-02 Karl Berry <karl@gnu.org>
18427 * config/srclist.txt (vasprintf.c): sync broken, sigh.
18429 2003-10-31 Paul Eggert <eggert@twinsun.com>
18431 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
18432 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
18433 (read_filesystem_list): Set and use me_type_malloced.
18434 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
18435 whatever the type happens to be), for brevity and consistency.
18436 Check for size calculation overflow on Alphas running OSF/1.
18438 2003-10-31 Jim Meyering <jim@meyering.net>
18440 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
18442 * lib/linebuffer.c: Include <string.h> for declaration of memset.
18444 2003-10-30 Paul Eggert <eggert@twinsun.com>
18445 Bruno Haible <bruno@clisp.org>
18447 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
18448 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
18450 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
18452 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
18453 netbsd*-gnu*. Suggested by Robert Millan.
18455 2003-10-29 Paul Eggert <eggert@twinsun.com>
18457 * modules/group-member: Depend on stdbool.
18459 2003-10-29 Paul Eggert <eggert@twinsun.com>
18461 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
18463 2003-10-29 Paul Eggert <eggert@twinsun.com>
18465 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
18466 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
18467 after the 'gnu' in these cases. This fixes some bugs in the
18468 previous change, and is based on suggestions by Robert Millan.
18470 2003-10-29 Paul Eggert <eggert@twinsun.com>
18472 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
18473 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
18475 * lib/quotearg.c (quotearg_n_options): Use it.
18476 * lib/group-member.c: Include <stdbool.h>.
18477 (free_group_info): Arg is now const *; don't free arg.
18478 (get_group_info): Now returns bool and accepts struct group_info *,
18479 rather than returning a malloc'ed struct group_info *.
18480 All uses changed. Check for overflow in internal size calculation.
18482 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
18483 rather than xmalloc/xrealloc.
18484 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
18485 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
18486 conformance bug: the old code used a pointer after freeing the
18487 storage that it addressed.
18488 * lib/hash.c (hash_initialize): Simplify the code by using
18489 xalloc_oversized rather than doing it by hand.
18490 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
18491 the buffer preserved. Use free and xmalloc instead.
18492 * lib/quotearg.c (quotearg_n_options): Likewise.
18493 Use a simpler test for size overflow. Don't use xalloc_oversized
18494 because unsigned int might be wider than size_t (!); this suggests
18495 that we should switch from unsigned int to size_t for slot numbers.
18497 2003-10-28 Paul Eggert <eggert@twinsun.com>
18499 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
18500 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
18501 NetBSD kernels. Requested by Richard Stallman.
18503 2003-10-27 Paul Eggert <eggert@twinsun.com>
18505 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
18506 to allocate the returned structure. Do not allocate a subarray,
18507 as x2nrealloc will do that.
18508 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
18509 instead of xnrealloc.
18510 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
18512 2003-10-27 Bruno Haible <bruno@clisp.org>
18514 * lib/stdbool_.h: Better support for BeOS.
18516 2003-10-26 Paul Eggert <eggert@twinsun.com>
18518 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
18521 2003-10-26 Paul Eggert <eggert@twinsun.com>
18523 * lib/xalloc.h (xalloc_oversized): New static inline function, for
18524 callers that want to do their own size-overflow checking. Include
18525 <stdbool.h>, since xalloc_oversized returns bool.
18526 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
18527 to use xalloc_oversized.
18529 Add two functions x2realloc, x2nrealloc, for programs that grow
18530 arrays dynamically by doubling their sizes.
18531 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
18532 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
18535 Port to C99 semantics for 'inline' of external functions.
18536 Bug reported by Bruno Haible.
18537 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
18538 with the old contents of xnmalloc.
18539 (xnmalloc, xmalloc): Use it.
18540 (xnrealloc_inline): New static inline function,
18541 with the old contents of xnrealloc.
18542 (xnrealloc, xrealloc): Use it.
18544 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
18547 2003-10-26 Karl Berry <karl@gnu.org>
18549 * config/srclist.txt (COPYING.DOC): no longer available from
18550 /gd/gnuorg; don't know where the ultimate source is.
18552 2003-10-25 Paul Eggert <eggert@twinsun.com>
18554 Fix several address-calculation bugs in the hash modules,
18555 plus some minor code cleanup.
18557 * lib/hash.h: Include <stdbool.h>, for bool.
18558 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
18559 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
18560 hash_get_n_entries, hash_get_max_bucket_length,
18561 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
18562 hash_rehash): Use size_t rather than unsigned.
18563 * lib/hash.c (struct hash_table, hash_get_n_buckets,
18564 hash_get_n_buckets_used, hash_get_n_entries,
18565 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
18566 hash_get_entries, hash_do_for_each, hash_string, is_prime,
18567 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
18569 (SIZE_MAX): Define if not defined.
18570 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
18571 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
18573 Use const * when possible.
18574 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
18575 (check_tuning): Fix bug: if tuning parameters were very close to
18576 0 or 1, rounding errors could have caused subscript violations.
18577 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
18578 (hash_initialize): Add 'fail:' label
18579 to free table and return NULL, and use it to simplify code.
18580 Use calloc rather than clearing the storage ourself.
18581 (hash_initialize, hash_rehash): Check for arithmetic overflow in
18582 buffer size calculations.
18583 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
18584 Include <stddef.h>, for size_t.
18585 * lib/hash-pjw.c (hash_pjw): Likewise.
18586 Switch to method described by Bruno Haible.
18587 Include <limits.h>, for CHAR_BIT.
18588 (SIZE_BITS): New macro.
18590 2003-10-23 Paul Eggert <eggert@twinsun.com>
18592 * m4/getline.m4 (AM_FUNC_GETLINE):
18593 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
18594 hosts. Problem reported by Derek Robert Price in
18595 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
18596 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
18597 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
18599 2003-10-21 Paul Eggert <eggert@twinsun.com>
18601 * lib/getndelim2.c (getndelim2): When size calculation overflows,
18602 ceiling the allocation at NMAX bytes rather than silently
18603 discarding input bytes before NMAX is reached. This makes
18604 a difference only if NMAX exceeds SIZE_MAX / 2.
18606 * lib/obstack.c: Merge from glibc.
18607 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
18608 Add libc_hidden_def (_obstack_newchunk).
18609 (_obstack_free) [! defined _LIBC]: Remove.
18610 [defined _LIBC]: Make a strong alias from obstack_free, rather than
18611 a clone of the function body.
18612 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
18613 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
18615 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
18617 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
18620 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
18621 (obstack_ptr_grow_fast, obstack_int_grow_fast):
18622 Don't use lvalue casts, as GCC plans to remove support for them
18623 in GCC 3.5. Reported by Joseph S. Myers. This bug
18624 was also present in the non-GCC version, indicating that this
18625 code had always been buggy and had never been widely used.
18626 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
18627 Use the fast variant of each macro, rather than copying the
18628 definiens of the fast variant; that way, we'll be more likely to
18629 catch future bugs in the fast variants.
18631 2003-10-20 Bruno Haible <bruno@clisp.org>
18633 * modules/wait-process: New file.
18634 * MODULES.html.sh (func_all_modules): Add wait-process.
18636 2003-10-20 Bruno Haible <bruno@clisp.org>
18638 * m4/wait-process.m4: New file.
18640 2003-10-20 Bruno Haible <bruno@clisp.org>
18642 * lib/wait-process.h: New file, from GNU gettext.
18643 * lib/wait-process.c: New file, from GNU gettext.
18645 2003-10-19 Jim Meyering <jim@meyering.net>
18647 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
18650 2003-10-18 Karl Berry <karl@gnu.org>
18652 * config/config.guess: update from config.
18654 2003-10-16 Paul Eggert <eggert@twinsun.com>
18656 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
18657 (getgroups): First arg is int, not size_t.
18658 Don't let 'free' mangle errno.
18660 2003-10-16 Paul Eggert <eggert@twinsun.com>
18662 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
18664 2003-10-16 Karl Berry <karl@gnu.org>
18666 * config/config.{guess,sub}: update from config.
18668 2003-10-16 Jim Meyering <jim@meyering.net>
18670 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
18673 2003-10-15 Paul Eggert <eggert@twinsun.com>
18675 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
18676 (SIZE_MAX): Remove.
18677 (new_exclude, add_exclude_file): Initial size no longer needs to
18679 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
18680 our own address arithmetic overflow checking.
18682 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
18683 (fnmatch): Do not alloca more than 2000 wide characters;
18684 instead, use malloc for large buffers.
18685 Check for address arithmetic overflow, and return -1
18686 with errno set to ENOMEM in that case.
18687 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
18688 (NEW_PATTERN): Do not alloca more than 8000 bytes;
18689 instead, return -1. Check for address arithmetic overflow.
18691 2003-10-14 Paul Eggert <eggert@twinsun.com>
18693 Handle invalid suffixes and overflow independently, so that
18694 callers can treat them independently as needed. Fix some bugs in
18695 suffix handling, e.g., "100k@" was not diagnosed as an invalid
18696 suffix for a human-readable blocksize. The major caller-visible
18697 change is the addition of a new
18698 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
18699 that both overflow and suffix chars were found.
18701 * lib/human.c (humblock): Don't check separately for invalid suffix
18702 char; that is xstrtoumax's job (now that its bug is fixed).
18703 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
18704 INTMAX_MAX]: New macros.
18705 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
18706 TYPE_MAXIMUM): New macros.
18707 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
18708 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
18709 if overflow occurs, as it's what __strtol does and it's more useful
18711 (__xstrtol): If __strtol reports some error other than ERANGE,
18712 reflect it to the caller as LONGINT_INVALID. If it reports
18713 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
18714 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
18715 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
18717 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
18718 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
18719 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
18720 [defined UINTMAX_MAX]: New macros.
18722 2003-10-14 Bruno Haible <bruno@clisp.org>
18724 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
18726 2003-10-14 Bruno Haible <bruno@clisp.org>
18728 * m4/sig_atomic_t: New file, from GNU gettext.
18729 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
18731 2003-10-14 Bruno Haible <bruno@clisp.org>
18733 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
18734 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
18735 Also use volatile where needed.
18737 2003-10-12 Paul Eggert <eggert@twinsun.com>
18739 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
18740 Change maintainer from Bruno Haible to 'all'.
18742 2003-10-12 Paul Eggert <eggert@twinsun.com>
18744 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
18746 2003-10-12 Paul Eggert <eggert@twinsun.com>
18748 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
18749 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
18750 and define in terms of the other primitives.
18751 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
18752 (SIZE_MAX): Define if not already defined.
18753 (array_size_overflow): New function.
18754 (xalloc_die): Abort instead of exiting if 'error' returns.
18755 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
18756 (xmalloc, xrealloc): Use them.
18757 (xcalloc): Check for address arithmetic overflow.
18758 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
18759 a bit faster than strcpy.
18761 2003-10-10 Simon Josefsson <jas@extundo.com>
18763 * modules/argp (Depends-on): Add restrict and strcase.
18765 2003-10-10 Simon Josefsson <jas@extundo.com>
18767 * m4/argp.m4: Add AC_C_INLINE.
18769 2003-10-08 Paul Eggert <eggert@twinsun.com>
18771 Merge getpass from libc, plus a few fixes.
18773 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
18774 Include <stdbool.h>.
18775 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
18776 __fsetlocking to empty.
18777 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
18778 do include <bits/libc-lock.h>.
18779 Do not include <fcntl.h>; not needed.
18780 [_LIBC]: Include <wchar.h>.
18781 (NOTCANCEL_MODE): New macro.
18782 (flockfile, funlockfile) [_LIBC]: New macros.
18783 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
18784 [!_LIBC]: New macros.
18785 (call_fclose): New function.
18786 (getpass): Use it. Save tty stream separately; this simplifies the
18787 code and makes it more reliable if stdin happens to equal stdout.
18788 Invoke __fsetlocking on tty.
18789 Handle thread cancellation if needed.
18790 Namespace cleanup (use __tcgetattr, __getline).
18791 Use bool for Booleans.
18792 [USE_IN_LIBIO]: Handle wide streams.
18793 [!_LIBC]: Unconditionally do the fseek, since we don't know what
18794 stream might go where.
18796 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
18797 doesn't have to include <stdio.h> before us.
18798 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
18799 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
18800 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
18801 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
18802 if not declared, so that we can use getpass.c code from libc without
18804 (flockfile, ftrylockfile, funlockfile): New macros.
18806 2003-10-08 Paul Eggert <eggert@twinsun.com>
18808 * modules/getpass: Depend on stdbool.
18810 2003-10-08 Paul Eggert <eggert@twinsun.com>
18812 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
18814 2003-10-07 Karl Berry <karl@gnu.org>
18816 * config/config.{guess,sub}: update from config.
18818 2003-10-06 Jim Meyering <jim@meyering.net>
18819 Bruno Haible <bruno@clisp.org>
18821 This lets translators provide better translations for the
18822 "Written by ..." part of --version output.
18823 * lib/version-etc.h: Include stdarg.h.
18824 (version_etc_copyright): Declare as readonly.
18825 (version_etc): Make this function variadic with a NULL-terminated list
18826 of author name strings.
18827 (version_etc_va): New declaration.
18828 * lib/version-etc.c: Include stdarg.h, stdlib.h.
18829 (version_etc_copyright): Declare as readonly.
18830 (version_etc_va): New function. Provide a different translatable string
18831 for each possible number of authors < 10. Abbreviate when there are 10
18833 (version_etc): Make this function variadic. Call version_etc_va.
18834 Suggestion from Gary V. Vaughan.
18836 * lib/long-options.h (parse_long_options): Change prototype: the
18837 authors string is moved to the end and becomes variadic.
18838 * lib/long-options.c: Include stdarg.h.
18839 (parse_long_options): Make this function variadic, too.
18840 Call version_etc_va, not version_etc.
18842 2003-10-06 Bruno Haible <bruno@clisp.org>
18844 * modules/version-etc-2: Remove file.
18845 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
18847 2003-10-06 Bruno Haible <bruno@clisp.org>
18849 * modules/fatal-signal: New file.
18850 * MODULES.html.sh (func_all_modules): Add fatal-signal.
18852 2003-10-06 Bruno Haible <bruno@clisp.org>
18854 * m4/fatal-signal.m4: New file.
18855 * m4/signalblocking.m4: New file, from GNU gettext.
18857 2003-10-06 Bruno Haible <bruno@clisp.org>
18859 * lib/version-etc-2.h: Remove file.
18860 * lib/version-etc-2.c: Remove file.
18862 2003-10-06 Bruno Haible <bruno@clisp.org>
18864 * lib/fatal-signal.h: New file, from GNU gettext.
18865 * lib/fatal-signal.c: New file, from GNU gettext.
18867 2003-10-05 Paul Eggert <eggert@twinsun.com>
18869 * README: Rework advice for preventing empty .o files.
18870 Don't recommend ELIDE constructs. Recommend <stddef.h>,
18873 2003-10-04 Karl Berry <karl@gnu.org>
18875 * lib/argp*: update from libc.
18877 2003-10-04 Karl Berry <karl@gnu.org>
18879 * config/config.{guess,sub}: update from config.
18881 2003-10-02 Bruno Haible <bruno@clisp.org>
18883 * modules/lchown (Include): Add lchown.h.
18884 * modules/time_r (Include): Use "..." syntax.
18885 * modules/xgetdomainname (Include): Add xgetdomainname.h.
18887 2003-10-01 Simon Josefsson <jas@extundo.com>
18889 * MODULES.html.sh (func_all_modules): Move gethostname from section
18890 'based on' to section 'lacking' POSIX:2001.
18892 2003-10-01 Larry Jones <lawrence.jones@eds.com>
18894 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
18895 to output mode on the same stream.
18897 2003-09-29 Paul Eggert <eggert@twinsun.com>
18899 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
18900 Fix arg typo in previous patch.
18902 2003-09-28 Jim Meyering <jim@meyering.net>
18904 * lib/error.c: Correct cpp indentation.
18906 2003-09-27 Paul Eggert <eggert@twinsun.com>
18908 * modules/free: New file.
18910 2003-09-27 Paul Eggert <eggert@twinsun.com>
18912 * m4/free.m4: New file.
18914 2003-09-27 Paul Eggert <eggert@twinsun.com>
18916 * lib/minmax.h (MIN, MAX)
18917 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
18918 Omit the special code that used __typeof__, since we worry that
18919 it could be more trouble than it's worth. See:
18920 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
18921 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
18923 * lib/free.c: New file.
18925 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
18927 Trivial fixes to Makefile.am parts of module listings.
18928 * modules/strstr: Append strstr.h to lib_SOURCES.
18929 * modules/strcase: Likewise, for strcase.h.
18931 2003-09-27 Karl Berry <karl@gnu.org>
18933 * config/mkinstalldirs: update from automake.
18935 2003-09-26 Paul Eggert <eggert@twinsun.com>
18937 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
18938 (error_tail): Do not loop, reallocating temporary buffer, since
18939 the output cannot contain more wide characters than the input
18940 contains bytes, the size must be big enough already. This avoids
18941 one potential size overflow calculation. Check for size overflow
18942 when calculating temporary buffer size. Free temporary buffer
18943 when done, if it was allocated with malloc; this plugs a memory
18944 leak. Remove casts from void * to pointers, that are no longer
18945 needed now that we're assuming C89 or better.
18947 Merge error changes from glibc.
18949 * lib/error.c, error.h: Update copyright notice header to match glibc.
18950 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
18951 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
18952 Disable cancellation while printing error.
18953 * lib/error.h: Prepend __ to parameter names.
18955 2003-09-26 Jim Meyering <jim@meyering.net>
18957 * lib/error.c (error_tail): Move some declarations
18958 into inner scope where the local variables are used.
18960 2003-09-26 Bruno Haible <bruno@clisp.org>
18962 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
18964 Don't define stpncpy through config.h; it's now done through stpncpy.h.
18966 2003-09-26 Bruno Haible <bruno@clisp.org>
18968 * lib/stpncpy.h (gnu_stpncpy): New declaration.
18969 (stpncpy): Define as alias for gnu_stpncpy.
18970 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
18972 2003-09-25 Simon Josefsson <jas@extundo.com>
18974 * lib/xgetdomainname.h: New file.
18975 * lib/xgetdomainname.c: New file.
18977 2003-09-25 Simon Josefsson <jas@extundo.com>
18978 Bruno Haible <bruno@clisp.org>
18980 * modules/getdomainname: New file.
18981 * modules/xgetdomainname: New file.
18982 * MODULES.html.sh (func_all_modules): Add getdomainname,
18985 2003-09-25 Simon Josefsson <jas@extundo.com>
18986 Bruno Haible <bruno@clisp.org>
18988 * m4/getdomainname.m4: New file.
18990 2003-09-25 Simon Josefsson <jas@extundo.com>
18991 Bruno Haible <bruno@clisp.org>
18993 * lib/getdomainname.h: New file.
18994 * lib/getdomainname.c: New file.
18996 2003-09-25 Karl Berry <karl@gnu.org>
18998 * lib/argp-fmtstream.c, argp-help.c: update from libc.
19000 2003-09-25 Karl Berry <karl@gnu.org>
19002 * config/install-sh: update from automake.
19004 2003-09-25 Bruno Haible <bruno@clisp.org>
19006 * modules/version-etc-2: New file, from modules/version-etc with
19008 * MODULES.html.sh (func_all_modules): Add version-etc-2.
19010 2003-09-25 Bruno Haible <bruno@clisp.org>
19012 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
19013 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
19015 2003-09-24 Simon Josefsson <jas@extundo.com>
19017 * modules/xgethostname: Add xgethostname.h.
19019 2003-09-24 Paul Eggert <eggert@twinsun.com>
19021 * lib/linebuffer.c (freebuffer): Don't free the argument, just
19022 the buffer associated with the argument. Bug reported by
19025 2003-09-24 Paul Eggert <eggert@twinsun.com>
19027 * README: Document assumptions that 'int' is at least 32 bits
19028 wide, that integer arithmetic is 2's complement without overflow,
19029 that there are no holes in integer values, that adding sizes of
19030 two nonoverlapping objects can't overflow, and that all-bits-zero
19031 yields scalar zero. Fix spelling and capitalization typos.
19033 2003-09-19 Karl Berry <karl@gnu.org>
19035 * lib/argp.h: update from libc.
19037 2003-09-17 Paul Eggert <eggert@twinsun.com>
19039 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
19040 to avoid spurious warnings like "AC_RUN_IFELSE was called before
19041 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
19043 2003-09-17 Paul Eggert <eggert@twinsun.com>
19045 * gnulib-tool: Use "test -h", not "test -L", for portability
19046 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
19047 (tags_regexp): Remove, since \| doesn't conform to POSIX.
19048 (sed_extract_prog): Issue s commands one-by-one, rather than
19049 using \| in one s command.
19051 2003-09-16 Paul Eggert <eggert@twinsun.com>
19053 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
19054 input error, instead of returning NULL the next time we are called
19055 (and therefore losing track of errno).
19057 2003-09-16 Bruno Haible <bruno@clisp.org>
19059 * gnulib-tool (func_create_testdir): Warn about duplicated
19062 2003-09-15 Paul Eggert <eggert@twinsun.com>
19064 * modules/argmatch, modules/fatal, modules/obstack,
19065 modules/xalloc, modules/xgethostname: Sort dependencies by
19066 importance, not alphabetically.
19068 2003-09-15 Paul Eggert <eggert@twinsun.com>
19070 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
19071 fails, so that the caller gets the proper errno.
19073 * lib/readutmp.c (read_utmp): Likewise.
19074 Check for fstat error. Close stream and free storage
19077 2003-09-14 Karl Berry <karl@gnu.org>
19079 * config/srclist.txt (strdup.c): disable for c89 changes.
19081 2003-09-14 Jim Meyering <jim@meyering.net>
19083 * lib/getloadavg.c: Correct cpp indentation.
19084 * lib/strdup.c: Likewise.
19085 * lib/vasnprintf.c: Likewise.
19087 2003-09-14 Bruno Haible <bruno@clisp.org>
19089 * modules/fwriteerror: New file.
19090 * MODULES.html.sh (func_all_modules): Add fwriteerror.
19092 2003-09-14 Bruno Haible <bruno@clisp.org>
19094 * lib/fwriteerror.h: New file.
19095 * lib/fwriteerror.c: New file.
19097 2003-09-12 Paul Eggert <eggert@twinsun.com>
19099 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
19100 modules/xgethostname, modules/xalloc: Depend on exit.
19102 2003-09-12 Paul Eggert <eggert@twinsun.com>
19104 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
19106 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
19107 and AC_MINIX, too, so that their extensions are available.
19109 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
19110 This macro has been superseded by gl_BACKUPFILE.
19112 More patches to assume C89 or better.
19114 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
19116 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
19118 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
19119 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
19120 Include <string.h>, <stdlib.h> unconditionally.
19121 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
19122 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
19123 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
19124 headers or for string.h.
19125 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
19128 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
19130 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
19131 * m4/userspec.m4 (gl_USERSPEC): Likewise.
19132 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
19133 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
19134 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
19135 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
19137 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
19138 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
19139 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
19141 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
19142 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
19143 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
19146 2003-09-12 Paul Eggert <eggert@twinsun.com>
19148 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
19149 * lib/obstack.c [!defined _LIBC]: Likewise.
19150 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
19151 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
19152 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
19154 More changes to assume C89 or better.
19156 * lib/error.c (error_tail): Assume vprintf.
19158 * lib/argmatch.c (getenv): Remove decl.
19159 * lib/progreloc.c (get_full_program_name): Define via prototype.
19160 * lib/setenv.c (clearenv): Likewise.
19161 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
19163 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
19164 (malloc, memcpy): Remove decls.
19165 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
19166 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
19167 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
19168 (memcpy): Remove macro.
19169 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
19170 (__P): Remove. All uses removed.
19171 (PTR): Remove. All uses changed to void *.
19172 (CHAR_BIT, NULL): Remove.
19173 (spaces, zeros, memset_space, memset_zero)
19174 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
19176 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
19177 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
19178 Define with prototype.
19179 Remove now-unnecessary prototype decl.
19180 (extra_args_spec): Assume ANSI C. All uses changed.
19181 (extra_args_spec_iso): Remove.
19182 (my_strftime, emacs_strftimeu): Define via prototype.
19183 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
19185 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
19186 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
19187 (strtoul, strtol): Remove decls.
19188 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
19190 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
19191 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
19192 (LOCALE_PARAM_PROTO): New macro.
19193 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
19194 (INTERNAL (strtol), strtol): Define with a prototype.
19195 (PARAMS): Remove. All uses removed.
19196 * lib/tempname.c: Include <string.h> unconditionally.
19197 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
19198 * lib/xgethostname.c (main): Define with a prototype.
19199 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
19200 Include <stdlib.h> unconditionally.
19201 (calloc, malloc, realloc, free): Remove decls.
19202 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
19203 Include <stdlib.h> unconditionally. Sort include file names.
19205 (xstrtod): Define with a prototype.
19206 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
19207 (strtol, strtoul): Remove decls.
19209 2003-09-11 Paul Eggert <eggert@twinsun.com>
19211 More patches to assume C89 or better.
19212 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
19213 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
19214 string.h, memchr, STDC_HEADERS.
19216 2003-09-11 Paul Eggert <eggert@twinsun.com>
19218 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
19219 Include <stdlib.h>, <string.h> unconditionally.
19220 Remove now-unnecessary cast to char *.
19221 * lib/strnlen.c: Include <string.h> unconditionally.
19222 * lib/yesno.c (yesno): Define with a prototype.
19224 2003-09-11 Bruno Haible <bruno@clisp.org>
19226 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
19228 2003-09-10 Jim Meyering <jim@meyering.net>
19230 * lib/error.c: Correct indentation of cpp directives.
19232 2003-09-10 Bruno Haible <bruno@clisp.org>
19234 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
19235 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
19236 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
19237 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
19238 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
19239 <stdlib.h> and <string.h> checks.
19240 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
19241 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
19243 2003-09-10 Bruno Haible <bruno@clisp.org>
19245 * lib/strcspn.c: Include <string.h> unconditionally.
19246 * lib/strpbrk.c: Include <string.h> unconditionally.
19247 * lib/strstr.c: Include <string.h> unconditionally.
19248 * lib/unicodeio.c: Include <string.h> unconditionally.
19249 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
19250 * lib/unsetenv.c: Likewise.
19251 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
19252 * lib/yesno.c: Include <stdlib.h> unconditionally.
19253 (rpmatch): Add prototype.
19255 2003-09-09 Paul Eggert <eggert@twinsun.com>
19257 More patches to assume C89 or better.
19258 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
19259 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
19260 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
19262 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
19264 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
19266 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
19268 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
19269 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
19270 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
19272 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
19273 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
19275 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
19277 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
19278 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
19279 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
19280 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
19281 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
19282 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
19284 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
19285 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
19286 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
19287 C headers, or for string.h.
19288 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
19289 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
19290 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
19291 headers, memory.h, stdlib.h, string.h, strings.h.
19292 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
19293 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
19294 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
19296 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
19297 headers, memory.h, string.h.
19298 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
19299 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
19301 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
19303 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
19304 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
19305 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
19306 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
19307 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
19309 2003-09-09 Paul Eggert <eggert@twinsun.com>
19313 * lib/acosl.c (main): Use a prototype.
19314 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
19317 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
19319 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
19320 (getopt, etopt_long, getopt_long_only, _getopt_internal)
19321 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
19323 * lib/getopt.c (const): Remove macro.
19324 Include <string.h> unconditionally.
19325 (my_index): Remove; all uses changed to strchr.
19326 (strlen): Remove decl.
19327 (exchange): Remove forward decl; no longer needed.
19328 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
19329 Define with prototype.
19330 * lib/getopt1.c (const): Remove macro.
19331 (getopt_long, getopt_long_only, main): Define with prototype.
19333 * lib/getugroups.c: Include <string.h> unconditionally.
19335 * lib/getusershell.c: Include <stdlib.h> unconditionally.
19336 (getusershell, setusershell, endusershell, readname, main):
19337 Define with prototypes.
19339 * lib/group-member.c: Include group-member.h first.
19340 Include <stdlib.h> unconditionally.
19342 * lib/hard-locale.c: Include hard-locale.h first.
19343 Include <stdlib.h>, <string.h> unconditionally.
19345 * lib/hash.c (free, malloc): Remove decls.
19346 Include <stdlib.h> unconditionally.
19348 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
19349 (getenv): Do not declare.
19351 * lib/idcache.c: Include <string.h> unconditionally.
19353 * lib/long-options.c: Include long-options.h first, to test interface.
19354 Include <stdlib.h> unconditionally.
19356 * lib/makepath.c: Include makepath.h first, to test interface.
19357 Include <stdlib.h> and <string.h> unconditionally.
19359 * lib/linebuffer.c: Include <stdlib.h>.
19360 (free): Remove decl.
19362 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
19363 stddef.h. rpl_malloc returns void *, not char *.
19364 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
19367 * lib/md5.h: Include <limits.h> unconditionally.
19368 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
19369 (__P): Remove; all uses removed.
19370 * lib/md5.c: Include "md5.h" first.
19371 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
19372 md5_buffer, md5_process_bytes, md5_process_block):
19373 Define with prototypes.
19374 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
19375 * lib/sha.c: Include "sha.h" first.
19376 Include <stdlib.h>, <string.h> unconditionally.
19378 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
19379 * lib/memcmp.c (__ptr_t): Likewise.
19380 * lib/memrchr.c (__ptr_t): Likewise.
19381 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
19382 Include <string.h> unconditionally.
19383 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
19384 * lib/memchr.c: Include <stdlib.h> unconditionally.
19385 * lib/memchr.c (LONG_MAX): Remove.
19386 * lib/memrchr.c (LONG_MAX): Likewise.
19387 * lib/memchr.c (__memchr): Define via a prototype.
19388 * lib/memrchr.c (__memrchr): Likewise.
19389 * lib/memcmp.c (__P): Remove, and remove all uses.
19390 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
19391 Remove forward decls; no longer needed.
19392 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
19393 Use types required by C89 in prototype.
19395 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
19396 * lib/savedir.c: Likewise.
19397 * lib/mkdir.c (free): Remove decl.
19398 * lib/rmdir.c (rmdir): Define with a prototype.
19399 * lib/savedir.c: Include savedir.h first, to test interface.
19401 * lib/mktime.c (STDC_HEADERS): Remove.
19402 Include <stdlib.h>, <string.h> unconditionally.
19404 * lib/modechange.c: Include <stdlib.h> unconditionally.
19405 (malloc): Remove decl.
19407 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
19408 (free): Remove decl.
19410 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
19411 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
19412 (This type really should be intptr_t, but that's a C99ism.)
19413 (_obstack_memcpy): Remove: all uses changed to memcpy.
19414 Include <string.h> unconditionally.
19415 (struct obstack): Assume __STDC__ for types of members
19416 chunkfun, freefun, extra_arg.
19417 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
19418 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
19419 obstack_begin, obstack_specify_allocation,
19420 obstack_specify_allocation_with_arg, obstack_chunkfun,
19421 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
19422 Remove unprototyped decls and the macros that use them.
19423 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
19424 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
19425 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
19426 (defined __STDC__ && __STDC__)]:
19427 Remove nonprototyped code.
19428 Include <stdlib.h> unconditionally.
19429 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
19430 _obstack_allocated_p, _obstack_free, obstack_free,
19431 _obstack_memory_used, print_and_abort):
19432 Define using prototypes.
19433 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
19434 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
19435 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
19436 obstack_next_free, obstack_object_size, obstack_room) [0]:
19437 Remove unused, unprototyped code.
19439 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
19441 * lib/physmem.c (physmem_total, physmem_available, main): Define
19444 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
19445 (main): Define with a prototype.
19447 * lib/posixver.c (getenv): Remove decl.
19449 * lib/putenv.c (malloc): Returns void *, not char *.
19450 Include <string.h> unconditionally.
19451 (strchr, memcpy, NULL): Do not define.
19453 * lib/readtokens.c: Include readtokens.h first, to test interface.
19454 Include <stdlib.h>, <string.h> unconditionally.
19455 (init_tokenbuffer): Define with a prototype.
19457 * lib/regex.c (PARAMS): Remove. All uses removed.
19458 All uses of _RE_ARGS removed, too.
19459 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
19461 (bzero): Assume memset exists.
19462 (memcmp, memcpy, NULL): Remove.
19463 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
19464 char, or assignments to local vars of type signed char.
19465 (init_syntax_once, PREFIX(extract_number_and_incr),
19466 PREFIX(print_partial_compiled_pattern),
19467 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
19468 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
19469 PREFIX(regex_grow_registers), PREFIX(regex_compile),
19470 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
19471 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
19472 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
19473 wcs_compile_range, byte_compile_range, truncate_wchar,
19474 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
19475 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
19476 count_mbs_length, wcs_re_match_2_internal,
19477 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
19478 PREFIX(alt_match_null_string_p),
19479 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
19480 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
19481 regfree, PREFIX(extract_number)): Define with prototype. Remove
19482 now-unnecessary declaration, if any.
19483 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
19485 Remove now-unnecessary casts among pointer types.
19486 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
19488 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
19489 (free): Remove decl.
19491 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
19493 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
19494 (free): Remove decl.
19496 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
19497 * lib/xgetcwd.c: Likewise.
19499 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
19500 (free): Remove decl.
19502 * lib/strchrnul.c (strchrnul): Define with a prototype.
19503 Fix bug: c_in was not converted to char before searching.
19505 The following changes are not K&R related:
19507 * lib/group-member.h: Include <sys/types.h>, so that this file is
19509 * lib/makepath.h: Likewise.
19511 * lib/getusershell.c (readname, default_index, line_size, readname):
19512 Use size_t, not int, for sizes.
19513 (readname): If the size overflows, report an error instead of
19516 2003-09-09 Paul Eggert <eggert@twinsun.com>
19518 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
19521 2003-09-09 Paul Eggert <eggert@twinsun.com>
19523 * README: New section: portability guidelines.
19525 2003-09-09 Derek Robert Price <derek@ximbiot.com>
19527 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
19530 2003-09-09 Derek Robert Price <derek@ximbiot.com>
19532 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
19534 2003-09-08 Paul Eggert <eggert@twinsun.com>
19536 Assume C89 or better; remove K&R cruft.
19537 A few of these changes were first proposed by Derek Robert Price
19538 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
19540 * lib/addext.c: Include <string.h> unconditionally.
19541 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
19542 Don't declare getenv or malloc.
19544 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
19545 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
19547 (find_stack_direction, alloca): Use prototypes.
19549 * lib/atexit.c (atexit): Define using a prototype.
19551 * lib/basename.c, dirname.c, stripslash.c:
19552 Include <string.h> unconditionally.
19554 * lib/bcopy.c: Include <stddef.h>.
19555 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
19557 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
19559 * lib/error.h (error, error_at_line, error_print_progname)
19560 [! (defined (__STDC__) && __STDC__)]: Remove decls.
19561 * lib/error.c: Include error.h first, to check interface.
19562 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
19563 (VA_START): Remove; all uses changeed to va_start.
19564 (exit, strerror): Remove decls.
19565 (error_print_progname): Prototype uncondionally.
19566 Don't include <errno.h>; no longer needed.
19567 (private_strerror): Remove.
19568 (error_tail): Always define.
19569 (error, error_at_line): Assume C89 or better; always use prototypes.
19570 * lib/fatal.c: Include "fatal.h" first, to test interface.
19571 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
19572 (VA_START): Remove; all uses changed to va_start.
19573 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
19575 (exit): Remove decl.
19576 (fatal): Prototype unconditionally. Assume va_start works.
19577 Abort at end, to pacify gcc.
19579 * lib/euidaccess.c (main): Define with a prototype.
19581 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
19583 * lib/exitfail.c: Include <stdlib.h> unconditionally.
19585 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
19587 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
19588 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
19589 (getenv): Remove decl.
19590 (fnmatch): Define using a prototype.
19591 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
19592 (FCT): Define using a prototype.
19594 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
19596 * lib/gethostname.c: Include <stddef.h>.
19597 (gethostname): Define with prototype. Length is size_t, not int.
19599 2003-09-08 Paul Eggert <eggert@twinsun.com>
19601 Assume C89 or better; remove K&R cruft.
19602 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
19603 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
19604 string.h, getenv, malloc.
19605 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
19607 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
19608 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
19609 do not check for strerror.
19610 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
19611 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
19612 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
19613 do not check for doprnt or vprintf.
19614 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
19615 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
19617 2003-09-08 Paul Eggert <eggert@twinsun.com>
19619 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
19620 getversion.c should have been removed then, but was accidentally
19623 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
19624 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
19626 2003-09-08 Karl Berry <karl@gnu.org>
19628 * config/config.sub, config.guess, srclistvars.sh: update from savannah
19629 config, forget about prep.
19631 * config/depcomp, missing: update from automake.
19633 2003-09-07 Paul Eggert <eggert@twinsun.com>
19635 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
19636 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
19638 2003-09-07 Paul Eggert <eggert@twinsun.com>
19640 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
19641 copy_tm_result. Bug reported by Simon Josefsson in
19642 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
19644 2003-09-06 Paul Eggert <eggert@twinsun.com>
19646 * m4/time_r.m4: New file.
19647 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
19648 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
19649 is. Check for timegm declaration.
19650 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
19651 Do not check for gmtime_r.
19652 Replace mktime if __mktime_internal does not exist and if mktime
19653 hasn't been replaced already.
19655 2003-09-06 Paul Eggert <eggert@twinsun.com>
19657 * lib/time_r.c, lib/time_r.h: New files.
19659 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
19661 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
19662 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
19664 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
19666 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
19667 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
19668 Include <time_r.h>.
19670 * lib/timegm.c: Switch to glibc implementation, with the following
19672 [defined HAVE_CONFIG_H]: Include <config.h>.
19673 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
19674 (__mktime_internal) [!defined _LIBC]: New decl.
19675 (__gmtime_r) [!defined _LIBC]: New macro and function.
19676 (timegm): Use a prototype, since gnulib assumes C89.
19677 Do not bother declaring tmp to be const, as it's not really usefu.
19678 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
19679 (timegm): Declare only if HAVE_DECL_TIMEGM.
19681 2003-09-06 Paul Eggert <eggert@twinsun.com>
19683 * MODULES.html.sh (func_all_modules): Add time_r.
19684 * modules/time_r: New file.
19685 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
19686 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
19688 2003-09-03 Paul Eggert <eggert@twinsun.com>
19690 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
19691 Bug reported by Lute Kamstra in
19692 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
19694 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
19695 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
19696 course with correspondingly smaller numbers for tomorrow and
19697 yesterday. From Tadayoshi Funaba. Originally installed into
19698 sh-utils on 1999-08-07, but the patch got lost (I guess during the
19701 2003-08-31 Simon Josefsson <jas@extundo.com>
19703 * modules/timegm: New file.
19704 * MODULES.html.sh (func_all_modules): Add timegm.
19706 2003-08-31 Simon Josefsson <jas@extundo.com>
19708 * m4/timegm.m4: New file.
19710 2003-08-31 Simon Josefsson <jas@extundo.com>
19712 * lib/timegm.h: New file.
19713 * lib/timegm.c: New file. Based on
19714 wget-1.8.2/src/http.c:mktime_from_utc.
19716 2003-08-31 Karl Berry <karl@gnu.org>
19718 * lib/argp.h: update from libc.
19720 2003-08-28 Bruno Haible <bruno@clisp.org>
19722 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
19723 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
19724 followed by '#define fnmatch fnmatch_posix' gives an error.
19726 2003-08-28 Bruno Haible <bruno@clisp.org>
19728 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
19729 warning on QNX, which defines O_BINARY to 000000.
19731 2003-08-27 Jim Meyering <jim@meyering.net>
19733 * m4/mkstemp.m4: Require that the system mkstemp be able to create
19734 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
19735 would fail after 32. Reported by Danny Levinson. Details here:
19736 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
19738 2003-08-24 Bruno Haible <bruno@clisp.org>
19740 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
19741 MSVC7 <stdio.h> is included later.
19743 2003-08-22 Simon Josefsson <jas@extundo.com>
19745 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
19747 2003-08-20 Karl Berry <karl@gnu.org>
19749 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
19751 2003-08-20 Bruno Haible <bruno@clisp.org>
19753 * modules/progname: New file.
19754 * MODULES.html.sh (func_all_modules): Add progname.
19756 2003-08-20 Bruno Haible <bruno@clisp.org>
19758 * lib/progname.h: New file, from GNU gettext.
19759 * lib/progname.c: New file, from GNU gettext.
19760 * lib/progreloc.c: New file, from GNU gettext.
19762 2003-08-19 Jim Meyering <jim@meyering.net>
19764 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
19765 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
19767 2003-08-19 Bruno Haible <bruno@clisp.org>
19769 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
19772 2003-08-19 Bruno Haible <bruno@clisp.org>
19774 * lib/xstrdup.c: Assume <string.h> exists.
19776 2003-08-18 Paul Eggert <eggert@twinsun.com>
19778 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
19781 2003-08-18 Jim Meyering <jim@meyering.net>
19783 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
19784 * m4/lib-ld.m4: Likewise.
19786 2003-08-18 Jim Meyering <jim@meyering.net>
19788 * lib/setenv.h: Indent nested cpp directive.
19789 * lib/vasnprintf.c: Remove trailing blanks.
19791 2003-08-17 Simon Josefsson <jas@extundo.com>
19793 * modules/xstrndup: New file.
19794 * MODULES.html.sh (func_all_modules): Add xstrndup.
19796 2003-08-17 Simon Josefsson <jas@extundo.com>
19798 * modules/argp: Fix autoconf macro name. Add more dependencies.
19800 2003-08-17 Simon Josefsson <jas@extundo.com>
19802 * m4/xstrndup.m4: New file.
19804 2003-08-17 Simon Josefsson <jas@extundo.com>
19806 * m4/argp.m4: New file.
19808 2003-08-17 Simon Josefsson <jas@extundo.com>
19809 Bruno Haible <bruno@clisp.org>
19811 * lib/xstrndup.h: New file.
19812 * lib/xstrndup.c: New file.
19814 2003-08-17 Bruno Haible <bruno@clisp.org>
19816 * modules/strndup (Files, Include): Add lib/strndup.h.
19818 2003-08-17 Bruno Haible <bruno@clisp.org>
19820 * modules/euidaccess (Files): Add lib/euidaccess.h.
19822 2003-08-17 Bruno Haible <bruno@clisp.org>
19824 * lib/strndup.h: New file.
19826 2003-08-17 Bruno Haible <bruno@clisp.org>
19828 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
19829 like AC_GNU_SOURCE.
19830 * modules/extensions (configure.ac): Comment out the invocation of
19831 gl_USE_SYSTEM_EXTENSIONS.
19833 2003-08-16 Paul Eggert <eggert@twinsun.com>
19835 Merges from coreutils, etc.
19836 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
19837 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
19838 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
19840 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
19841 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
19843 2003-08-16 Paul Eggert <eggert@twinsun.com>
19845 Document merge from coreutils.
19846 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
19847 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
19848 * modules/utime: Add m4/utimes-null.m4.
19850 2003-08-16 Paul Eggert <eggert@twinsun.com>
19852 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
19853 space, undoing this 2003-08-12 change:
19854 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19856 2003-08-16 Paul Eggert <eggert@twinsun.com>
19858 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
19859 strtoul.c from libc, undoing this 2003-08-12 change:
19860 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19862 2003-08-16 Jim Meyering <jim@meyering.net>
19864 Merges from coreutils.
19865 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
19866 prefix. Adjust cache variables similarly. Create 500 rather than
19867 just 300 files, to exercise bug on Darwin6.5, too.
19868 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
19870 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
19871 AM_SYS_POSIX_TERMIOS.
19872 Reported by mkc@mathdogs.com.
19873 Also change use of $am_cv_sys_posix_termios
19874 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
19875 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
19876 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
19877 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
19878 in /proc/mounts until it finds one with matching device number. This
19879 is unnecessary when the FILE argument *is* a mount point. No stat call
19880 is necessary in that case. So, disable the statvfs-testing code on
19881 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
19882 as RedHat bug# 84846.
19883 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19884 to 1MB, so as not to render systems with no stack size limit (e.g.,
19885 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
19886 Include <unistd.h>. On some systems,
19887 it is required for the definition of _SC_PAGESIZE.
19889 2003-08-16 Jim Meyering <jim@meyering.net>
19891 Merge from coreutils.
19892 * lib/xstrtoimax.c: #else #if -> #elif.
19893 * lib/xstrtoumax.c: Likewise.
19895 2003-08-16 Jim Meyering <jim@meyering.net>
19897 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
19898 * m4/utimes.m4: Removed.
19899 * m4/utimes-null.m4: Renamed from utimes.m4.
19901 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19902 to 1MB, so as not to render systems with no stack size limit (e.g.,
19903 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
19904 Include <unistd.h>. On some systems,
19905 it is required for the definition of _SC_PAGESIZE.
19907 2003-08-16 Jim Meyering <jim@meyering.net>
19908 and Paul Eggert <eggert@cs.ucla.edu>
19910 Merges from coreutils, etc.
19912 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
19913 using the latest version from cvs. This avoids problems with #line
19914 directives using a vendor (Sun) compiler.
19915 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
19916 Don't set GETGROUPS_LIB here; now it's
19917 done via getgroups.m4's wrapper function.
19918 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
19919 rather than just in sh-util/configure.in, so that the
19920 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
19922 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
19923 AC_FUNC_GETLOADAVG where to find getloadavg.c.
19924 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
19925 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
19926 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
19927 Remove code that is now done by the newly-required macros.
19928 Append $(EXEEXT) to DF_PROG.
19929 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
19930 Do not invoke or require the following here,
19931 since prereq.m4 or some gnulib .m4 now does this for us:
19932 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
19933 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
19934 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
19935 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
19936 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
19937 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
19938 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
19940 Do not replace the following functions, as this is now the job
19941 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
19942 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
19943 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
19944 atexit getpass, strdup, getpagesize.
19946 Do not check for the following functions, as this is now the job
19947 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
19948 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
19950 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
19951 Check for sys/sysctl.h.
19952 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
19953 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
19954 of checking for ssize_t ourselves.
19956 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
19957 Require every macro that gnulib/modules/* suggests for us.
19958 (jm_PREREQ_ADDEXT): New macro.
19959 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
19960 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
19962 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
19963 (gl_PHYSMEM): Use it.
19964 Also check for `table' function.
19965 Check for new headers and functions.
19966 Add check for sys/sysmp.h.
19967 With suggestions from Kaveh Ghazi.
19968 Ignore headers that are present but cannot be compiled. This
19969 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
19972 2003-08-15 Paul Eggert <eggert@twinsun.com>
19974 Document merge from coreutils.
19975 * modules/userspec: Depend on posixver.
19976 * modules/strftime: Depend on tzset.
19978 2003-08-15 Paul Eggert <eggert@twinsun.com>
19980 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
19981 rather than tab, after '#' in shell-script copyright notices.
19982 Suggested by Bruno Haible.
19984 2003-08-15 Paul Eggert <eggert@twinsun.com>
19986 * config/srclist-update: Use three spaces, rather than tab, after '#'
19987 in shell-script copyright notices. Suggested by Bruno Haible.
19988 Remove unnecessary parenthesization in regular expression.
19990 2003-08-15 Jim Meyering <jim@meyering.net>
19992 Merge from coreutils.
19993 * lib/xgethostname.c: Include <stdlib.h>.
19994 (xghostname): Don't exit for anything other than memory-related
19995 failure; just return NULL.
19996 * lib/userspec.c: Include "posixver.h".
19997 (parse_user_spec): Accept `.' as a separator only
19998 in pre-POSIX-200112 mode.
19999 * lib/strtoimax.c: Use #elif rather than #else #if.
20000 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
20001 Remove function, now that we can rely on a working tzset function.
20002 [!_LIBC]: Ensure that the required autoconf test has been run.
20003 [!defined _NL_CURRENT && HAVE_STRFTIME]:
20004 Use underlying_strftime for %r.
20005 * lib/sha.c: Merge in some clean-up and optimization changes from
20007 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
20008 Ensure that it is a multiple of 64.
20009 Rearrange loop exit tests so as to avoid performing an
20010 additional fread after encountering an error or EOF.
20011 * lib/realloc.c: Update copyright date.
20013 2003-08-15 Jim Meyering <jim@meyering.net>
20014 and Paul Eggert <eggert@twinsun.com>
20016 Merge from coreutils.
20017 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
20018 member but strut utmpx does not. Needed for AIX 4.3.3.
20019 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
20021 2003-08-15 Jim Meyering <jim@meyering.net>
20022 and Paul Eggert <eggert@cs.ucla.edu>
20024 Merges from coreutils, etc.
20025 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
20026 Require gl_FUNC_TZSET_CLOBBER.
20027 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
20028 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
20031 2003-08-14 Paul Eggert <eggert@twinsun.com>
20033 Help the merge from coreutils.
20034 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
20035 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
20036 * m4/tzset.m4: Use it too.
20038 2003-08-14 Paul Eggert <eggert@twinsun.com>
20040 * modules/tzset: New file.
20042 2003-08-14 Jim Meyering <jim@meyering.net>
20044 Merges from coreutils.
20045 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
20046 variable names, rather than @FNMATCH_H@.
20047 * modules/alloca: Likewise for $(ALLOCA_H).
20049 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
20050 the three copies of the literal target, `fnmatch.h'.
20051 * modules/alloca (alloca.h): Likewise.
20053 2003-08-14 Jim Meyering <jim@meyering.net>
20055 Merge from coreutils.
20056 * m4/tzset.m4: New file.
20057 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
20058 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
20059 otherwise, AIX 5.1 systems would end up using the latter.
20060 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
20061 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
20062 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
20063 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
20065 2003-08-14 Jim Meyering <jim@meyering.net>
20067 Merge from coreutils.
20068 * lib/obstack.h: Whitespace changes.
20069 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
20070 and xcalloc return values.
20071 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
20072 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
20073 hang on OSF/1 5.1 for DIR on both local and remote file systems.
20074 Reported by (and fix confirmed by) Nelson H. F. Beebe.
20075 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20077 Use mntctl's return value to drive the entry-processing loop, since
20078 we can't rely on the value of the vmt_length member in the last
20079 entry. On some systems doing so could result in exhausting
20080 virtual memory. Based in part on a patch from Mike Jetzer.
20082 2003-08-14 Jim Meyering <jim@meyering.net>
20083 and Paul Eggert <eggert@twinsun.com>
20085 Merges from coreutils, plus other fixes.
20086 * lib/physmem.c: Merge in portability changes from gcc/libiberty
20087 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
20088 for credits and details. Thanks to Kaveh Ghazi for helping
20089 to keep these files in sync.
20090 (ARRAY_SIZE): Define it.
20091 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
20092 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
20093 (memcasecmp): Don't assume size_t fits in unsigned int.
20094 Remove casts and duplicate code.
20095 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
20096 (memcpy): Remove definition.
20097 Merge in some clean-up and optimization changes from glibc.
20098 [BLOCKSIZE]: Move definition to top of file.
20099 Ensure that it is a multiple of 64.
20100 Rearrange loop exit tests so as to avoid performing an
20101 additional fread after encountering an error or EOF.
20102 * lib/md5.h (md5_uintptr): Define.
20103 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
20104 return to the initial working directory. Preserve errno
20106 * lib/idcache.c: Include "xalloc.h".
20107 (xmalloc, xrealloc): Remove decls.
20108 (getuser): Remove casts no longer required in C89.
20109 * lib/human.c: Include stdio.h, for sprintf.
20110 * lib/group-member.c: Include "xalloc.h".
20111 (xmalloc, xrealloc): Remove decls.
20112 (get_group_info): Remove casts no longer required in C89.
20113 * lib/getusershell.c (readname): Remove casts no longer required in
20115 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
20116 * lib/getline.c: Whitespace fix, from coreutils.
20118 2003-08-13 Paul Eggert <eggert@twinsun.com>
20120 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
20123 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20124 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20125 Undo previous (whitespace-only) change.
20127 2003-08-13 Paul Eggert <eggert@twinsun.com>
20129 * lib/exclude.c: Include <ctype.h>
20130 (IN_CTYPE_DOMAIN): New macro.
20131 (is_space): New fn.
20132 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
20135 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20136 Undo previous (whitespace-only) change.
20138 2003-08-13 Paul Eggert <eggert@twinsun.com>
20140 * config/srclist-update: Change update back to the old behavior,
20141 leaving whitespace alone. Use one 'sed' command rather than a
20143 (fixlicense): Now a variable, not a function.
20144 (remove_trailing_blanks): Remove.
20145 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
20146 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
20147 Undo previous (whitespace-only) change.
20149 2003-08-12 Paul Eggert <eggert@twinsun.com>
20151 Merge from coreutils.
20152 * modules/euidaccess: Add lib_SOURCES, include for new
20155 2003-08-12 Paul Eggert <eggert@twinsun.com>
20157 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
20158 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
20159 Normalize leading white space and remove trailing white space.
20161 Merge from coreutils
20162 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
20164 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
20165 0.12.1. These files are now being upgraded automatically by
20166 ../config/srclist-update.
20168 2003-08-12 Paul Eggert <eggert@twinsun.com>
20170 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
20171 Normalize leading white space and remove trailing white space.
20172 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
20173 notice, as per ../config/srclist-update.
20175 Merge from coreutils.
20176 * lib/euidaccess.h: New file.
20177 * lib/euidaccess.c: Include it.
20178 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
20179 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
20180 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
20182 2003-08-12 Paul Eggert <eggert@twinsun.com>
20184 * config/srclist-update: Add copyright notice.
20185 (remove_id_lines, remove_trailing_blanks): New constants.
20186 (fixfile): Use them to normalize spacing a bit in copied files.
20187 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
20188 Normalize leading white space and remove trailing white space.
20190 * config/texinfo.tex: Sync with texinfo.
20192 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
20193 strtoul.c from libc, to merge coreutils whitespace changes.
20195 * config/srclist.txt: Get the following m4 files from gettext:
20196 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
20197 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
20198 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
20201 2003-08-12 Karl Berry <karl@gnu.org>
20203 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
20206 2003-08-11 Paul Eggert <eggert@twinsun.com>
20208 * modules/gnu-source, m4/gnu-source.m4:
20209 Remove; we're assuming Autoconf 2.54 or later now.
20210 Suggested by Bruno Haible.
20211 * MODULES.html.sh (func_all_modules): Remove gnu-source.
20213 2003-08-11 Bruno Haible <bruno@clisp.org>
20215 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
20217 2003-08-11 Bruno Haible <bruno@clisp.org>
20219 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
20220 (vasnprintf): Use it instead of wcslen.
20222 2003-08-11 Bruno Haible <bruno@clisp.org>
20224 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
20225 value to ensure that _Bool promotes to int. Use #define for _Bool when
20226 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
20228 2003-08-10 Karl Berry <karl@gnu.org>
20230 * lib/regex.h: update from libc (whitespace fix).
20232 2003-08-09 Paul Eggert <eggert@twinsun.com>
20234 Merge some files from coreutils. These changes were
20235 originally made by Jim Meyering.
20236 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
20237 many older Unixes require this.
20238 * lib/alloca.c (alloca): Remove cast to argument of free;
20239 no longer needed in C89.
20240 * lib/alloca_.h, regex.h: Fix white space to match
20241 what GNU indent does.
20243 2003-08-09 Paul Eggert <eggert@twinsun.com>
20245 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
20246 apparently Emacs's Unicode mode got confused before my 2003-08-05
20249 2003-08-08 Paul Eggert <eggert@twinsun.com>
20251 * m4/extensions.m4: New file.
20252 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
20253 Require gl_USE_SYSTEM_EXTENSIONS.
20254 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
20255 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
20257 2003-08-08 Paul Eggert <eggert@twinsun.com>
20259 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
20260 * modules/extensions, modules/gnu-source: New files.
20261 * modules/timespec, modules/unlocked-io: Depend on extensions.
20263 2003-08-07 Paul Eggert <eggert@twinsun.com>
20265 * modules/restrict: New file.
20266 * MODULES.html.sh (func_all_modules): Add restrict.
20267 * modules/regex: Depend on restrict.
20269 2003-08-07 Paul Eggert <eggert@twinsun.com>
20271 * m4/restrict.m4: New file.
20272 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
20274 2003-08-07 Bruno Haible <bruno@clisp.org>
20276 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
20277 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
20279 2003-08-07 Bruno Haible <bruno@clisp.org>
20281 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
20282 makes the module 'getndelim2' compatible with the module 'getline'.
20284 2003-08-05 Paul Eggert <eggert@twinsun.com>
20286 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
20287 byte with "\201" to avoid glitches when editing that source file
20288 with multi-gnome-terminal.
20290 2003-08-05 Paul Eggert <eggert@twinsun.com>
20292 * lib/bumpalloc.h: Remove.
20294 2003-08-05 Paul Eggert <eggert@twinsun.com>
20296 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
20297 * modules/bumpalloc: Remove.
20299 2003-08-04 Paul Eggert <eggert@twinsun.com>
20301 * lib/getloadavg.c: Change copyright notice and spacing to conform to
20304 Merge from coreutils.
20305 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
20307 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
20308 from Karl Berry, implemented by Jim Meyering.
20309 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
20310 from Dmitry V. Levin.
20311 Remove anachronistic cast of xrealloc.
20312 * lib/fnmatch_.h (__const): Remove. Use 'const'.
20313 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
20314 type. Otherwise, it wouldn't compile with at least /bin/cc on
20315 ymp-cray-unicos9.0.2.X.
20316 Combine two mostly-identical uses of alloca into one.
20317 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
20319 2003-08-04 Dave Love <d.love@dl.ac.uk>
20323 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
20324 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
20325 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
20326 obsolete NLIST_NAME_UNION.
20327 [__GNU__]: Undef BSD and FSCALE.
20328 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
20330 2003-08-03 Paul Eggert <eggert@twinsun.com>
20332 * lib/stdbool_.h (_Bool): Make it signed char, instead of
20333 an enum type, so that it's guaranteed to promote to int. See:
20334 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
20336 2003-08-03 Karl Berry <karl@gnu.org>
20338 * config/depcomp: update from automake.
20340 2003-07-31 Paul Eggert <eggert@twinsun.com>
20342 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
20343 (strerror): Don't assume that a printable int fits in 14 bytes.
20345 2003-07-31 Bruno Haible <bruno@clisp.org>
20347 * modules/getpass-gnu: New file.
20348 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
20350 2003-07-31 Bruno Haible <bruno@clisp.org>
20352 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
20354 2003-07-24 Karl Berry <karl@gnu.org>
20356 * config/missing: update from automake.
20358 2003-07-24 Derek Robert Price <derek@ximbiot.com>
20359 Bruno Haible <bruno@clisp.org>
20361 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
20362 * lib/getline.c (getline, getdelim): Likewise.
20363 Remove _GNU_SOURCE define; now it's defined in config.h through
20366 2003-07-23 Karl Berry <karl@gnu.org>
20368 * config/config.sub: update from prep.
20370 2003-07-22 Paul Eggert <eggert@twinsun.com>
20372 * modules/xalloc (Depends-on): Add exitfail.
20373 * modules/xmemcoll: Likewise.
20375 2003-07-22 Paul Eggert <eggert@twinsun.com>
20377 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
20378 over-parenthesization in macros.
20380 Sync with coreutils.
20382 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
20385 Use `exit_failure' for xalloc and xmemcoll instead of their own
20386 private exit-failure variables.
20387 * lib/xalloc.h (xalloc_exit_failure): Remove.
20388 * lib/xmalloc.c: Likewise. Include exitfail.h.
20389 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
20390 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
20391 * lib/xmemcoll.c: Likewise. Include exitfail.h.
20392 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
20394 2003-07-20 Jim Meyering <jim@meyering.net>
20396 * modules/closeout (Depends-on): Add exitfail.
20397 Suggestion from Bruno Haible.
20399 2003-07-19 Karl Berry <karl@gnu.org>
20401 * config/config.sub: update from prep.
20403 2003-07-18 Paul Eggert <eggert@twinsun.com>
20405 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
20407 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
20408 to test that it can stand by itself. Include "exitfail.h".
20409 Clients should set exit_failure instead.
20410 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
20412 2003-07-18 Bruno Haible <bruno@clisp.org>
20414 * modules/getndelim2: New file.
20415 * modules/getline: Share files with module getndelim2.
20416 * modules/getnline: Depend on getndelim2 instead of sharing files with
20417 it. Add getnline.c to lib_SOURCES.
20418 * MODULES.html.sh (func_all_modules): Add getndelim2.
20420 2003-07-18 Bruno Haible <bruno@clisp.org>
20422 * m4/getndelim2.m4: New file.
20423 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
20424 invoke gl_PREREQ_GETNDELIM2.
20425 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
20426 gl_PREREQ_GETNDELIM2.
20427 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
20430 2003-07-18 Bruno Haible <bruno@clisp.org>
20432 * lib/getndelim2.h: New file.
20433 * lib/getndelim2.c: Make into a module of its own. Include config.h,
20435 (getndelim2): Make non-static. Change return type to ssize_t.
20436 * lib/getline.h: Change argument names.
20437 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
20438 * lib/getnline.c: Include getndelim2.h.
20440 2003-07-18 Andreas Schwab <schwab@suse.de>
20442 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
20444 2003-07-17 Karl Berry <karl@gnu.org>
20446 * config/config.sub: update from prep.
20448 2003-07-17 Bruno Haible <bruno@clisp.org>
20450 * modules/getnline: New file.
20451 * modules/getline: Add lib/getndelim2.c to source file list.
20452 * MODULES.html.sh (func_all_modules): Add getnline.
20454 2003-07-17 Bruno Haible <bruno@clisp.org>
20456 * m4/getnline.m4: New file.
20458 2003-07-17 Bruno Haible <bruno@clisp.org>
20460 * m4/Makefile.am.in: Remove file.
20461 * m4/Makefile.am: Remove file.
20462 * m4/Makefile.in: Remove file.
20464 2003-07-17 Bruno Haible <bruno@clisp.org>
20466 * lib/getnline.h: New file.
20467 * lib/getnline.c: New file.
20468 * lib/getndelim2.c: New file, extracted from getline.c.
20469 (getndelim2): Renamed from getdelim2, with added nmax argument.
20470 * lib/getline.c: Include getndelim2.c.
20471 (getdelim2): Moved out to getndelim2.c.
20472 (getline, getdelim): Update.
20474 2003-07-17 Bruno Haible <bruno@clisp.org>
20476 * lib/Makefile.am: Remove file.
20477 * lib/Makefile.in: Remove file.
20479 2003-07-17 Bruno Haible <bruno@clisp.org>
20481 * configure.in: Remove file.
20482 * Makefile.in: Remove file.
20484 2003-07-17 Bruno Haible <bruno@clisp.org>
20486 * MODULES.html.sh: Put the </BODY> right before </HTML>.
20488 2003-07-16 Karl Berry <karl@gnu.org>
20490 * config/srclist-update: was running fixlicense twice, which caused
20491 texinfo.tex to be nullified for some reason. Simplify,
20492 $gplsrc is no longer needed as far as I can see?
20494 2003-07-16 Jim Meyering <jim@meyering.net>
20496 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
20498 2003-07-15 Paul Eggert <eggert@twinsun.com>
20500 * config/srclist.txt: Get the following files from gettext-runtime/intl
20501 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
20502 ref-del.sin. From Bruno Haible.
20503 * config/srclist-update (fixfile): Change grep pattern again, since the
20504 previous fix didn't work (there was another trailing $). Use
20505 '[$]' to escape the $s.
20507 2003-07-15 Karl Berry <karl@gnu.org>
20509 * lib/vasnprintf.c: update from gettext.
20511 2003-07-15 Karl Berry <karl@gnu.org>
20513 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
20514 gets expanded when surrounded by '$'.
20516 2003-07-15 Jim Meyering <jim@meyering.net>
20518 * modules/save-cwd: Don't depend on error. From Derek Price.
20520 2003-07-15 Jim Meyering <jim@meyering.net>
20522 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
20524 2003-07-14 Simon Josefsson <jas@extundo.com>
20526 * modules/mempcpy: New file.
20527 * MODULES.html.sh (func_all_modules): Add mempcpy.
20529 2003-07-14 Simon Josefsson <jas@extundo.com>
20531 * m4/mempcpy.m4: New file.
20533 2003-07-14 Simon Josefsson <jas@extundo.com>
20535 * lib/mempcpy.h: New file.
20536 * lib/mempcpy.c: New file.
20538 2003-07-14 Paul Eggert <eggert@twinsun.com>
20540 * modules/getdate, modules/posixtm: Depend on mktime.
20542 2003-07-14 Paul Eggert <eggert@twinsun.com>
20544 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
20545 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
20546 unicodeio.c, unicodeio.h, unlocked-io.h:
20547 Switch from LGPL to GPL.
20549 2003-07-14 Paul Eggert <eggert@twinsun.com>
20551 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
20552 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
20553 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
20554 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
20555 vasprintf.c, vasprintf.h: Regenerate. These files are now being
20556 updated automatically by ../config/srclist-update. This changes
20557 their license from LPGL to GPL.
20559 2003-07-14 Paul Eggert <eggert@twinsun.com>
20561 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
20562 assumed to refer to the root of the most recent stable gettext version.
20563 * config/srclistvars.sh: Add defaults for eggert.
20564 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
20565 Match "This program" as well as "The program". This is needed
20568 2003-07-14 Jim Meyering <jim@meyering.net>
20570 Don't emit diagnostics. Let callers do that.
20571 * lib/save-cwd.c: Don't include "error.h".
20572 (save_cwd): Don't call error. Ensure that errno is valid
20573 when returning nonzero.
20575 * lib/save-cwd.h (restore_cwd): Update prototype.
20576 * lib/save-cwd.c (restore_cwd): Remove two parameters.
20577 Simplify. Don't call error upon failure. Let callers do that.
20578 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
20579 when auditing is enabled. But don't bother updating the #if.
20581 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
20583 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
20584 it breaks C++ compilation.
20585 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
20587 2003-07-10 Simon Josefsson <jas@extundo.com>
20589 * modules/strchrnul (Makefile.am): Add strchrnul.h.
20591 2003-07-10 Jim Meyering <jim@meyering.net>
20593 * m4/clock_time.m4: Remove trailing blank.
20594 * m4/intmax_t.m4: Likewise.
20596 2003-07-10 Jim Meyering <jim@meyering.net>
20598 * lib/vasnprintf.c: Remove trailing blanks.
20599 Make cpp indentation consistent.
20601 2003-07-09 Paul Eggert <eggert@twinsun.com>
20603 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
20604 posixver.c, strftime.c, strnlen.c, strverscmp.c:
20605 Switch from LGPL to GPL.
20607 2003-07-09 Paul Eggert <eggert@twinsun.com>
20609 * config/srclist.txt: Sort sublists. Add
20610 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
20611 that differ from gnulib for one reason or another; we'd like this list
20612 to be smaller but for now let's document what we have.
20614 2003-07-08 Paul Eggert <eggert@twinsun.com>
20616 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
20617 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
20618 and sweeter "eval x=$x".
20619 * config/srclist.txt: Get lib/argp* from glibc.
20621 2003-07-07 Paul Eggert <eggert@twinsun.com>
20623 * lib/mktime.c: Fix some boundary cases and remove need for floating
20626 Issue a compile-time diagnostic if time_t is floating point, or if
20627 two's complement arithmetic is not in effect, or if arithmetic
20628 right shift does not propagate the sign. These assumptions were
20629 all in the original code but they weren't checked.
20631 (TIME_T_MIDPOINT, verify): New macros.
20632 (__isleap): Remove; it has integer overflow problems.
20633 (leapyear): New function, without those problems.
20634 (ydhms_tm_diff): Remove; splitting into two parts.
20635 (ydhms_diff): New function, containing the arithmetic part of
20636 the old ydhms_tm_diff function. Issue a compile-time
20637 diagnostic if we are not using C99 integer division.
20638 Avoid casts when possible.
20639 (guess_time_tm): New function, containing the checking part of
20640 the old ydhms_tm_diff function. Return the new value, rather than
20641 the difference between it and the old. Accept a new argument T
20642 so that *T specifies the old value. Check for overflow in the result.
20644 (__mktime_internal): Use a time_t offset, not a long int offset.
20645 This undoes the 2003-06-04 change, which is no longer needed now
20646 that we have better overflow checking.
20647 (localtime_offset): Likewise.
20649 (__mktime_internal): Avoid harmful overflow on hosts where time_t
20650 and long are 64-bit but int is only 32-bit.
20651 (ydhms_diff): Use long int to store year1 and yday1.
20652 Issue a compile-time diagnostic if long int is not wide enough.
20654 (__mktime_internal): Use long int to store adjusted year and yday.
20655 Use plain C rather than preprocessor commands, if that doesn't
20657 Check for overflow (and try to repair) after each probe
20658 rather than checking only at the very end. This avoids some bugs
20659 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
20660 does not equal GMT offset at maximum time).
20661 Use integer to check for overflow rather than floating point; this
20662 is more portable to non-IEEE hosts, and is a tad faster.
20663 When we detect that we are oscillating between two values,
20664 don't check whether tm_isdst has the requested value, since
20665 we already know the answer. When tm_isdst has the wrong value,
20666 use a different heuristic to find the right one, based on the
20667 extreme values actually observed in practice in tz2003a,
20668 rather than the (overly optimistic) "previous 3 calendar quarters".
20670 (not_equal_tm, print_tm, check_result): Use "const T" rather than
20671 "T const" to accommodate glibc style.
20672 (check_result): Use less-confusing report format. "long" -> "long int.
20674 Don't loop if the iteration overflows time_t.
20675 Allow a negative step in the iteration.
20677 2003-07-06 Karl Berry <karl@gnu.org>
20679 * config/depcomp: update from automake.
20680 * config/config.sub: update from prep.
20682 2003-07-03 Karl Berry <karl@gnu.org>
20684 * config/config.guess: update from prep.
20686 2003-07-01 Paul Eggert <eggert@twinsun.com>
20688 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
20689 xreadlink.c now includes it unconditionally.
20691 2003-07-01 Paul Eggert <eggert@twinsun.com>
20693 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
20694 having it depend on HAVE_SYS_TYPES_H.
20696 2003-07-01 Bruno Haible <bruno@clisp.org>
20698 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
20699 <sys/types.h> should be sufficient.
20700 Reported by Paul Eggert.
20702 2003-06-26 Karl Berry <karl@gnu.org>
20704 * config/depcomp: update from automake.
20706 2003-06-26 Bruno Haible <bruno@clisp.org>
20708 * modules/human: Depend on module stdbool.
20710 2003-06-25 Bruno Haible <bruno@clisp.org>
20712 * modules/readlink: New file.
20713 * modules/xreadlink: Depend on it.
20714 * MODULES.html.sh (func_all_modules): Add readlink.
20716 2003-06-25 Bruno Haible <bruno@clisp.org>
20718 * m4/readlink.m4: New file.
20720 2003-06-25 Bruno Haible <bruno@clisp.org>
20722 * lib/readlink.c: New file.
20724 2003-06-22 Karl Berry <karl@gnu.org>
20726 * config/srclist.txt: update mkinstalldirs from automake.
20727 * config/mkinstalldirs: update.
20729 2003-06-22 Bruno Haible <bruno@clisp.org>
20731 Portability to mingw32.
20732 * m4/ssize_t.m4: New file, from GNU gettext.
20733 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
20734 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
20736 2003-06-22 Bruno Haible <bruno@clisp.org>
20738 * modules/safe-read: Add m4/ssize_t.m4.
20739 * modules/xreadlink: Add m4/ssize_t.m4.
20741 2003-06-20 Bruno Haible <bruno@clisp.org>
20743 Assume C89, so PARAMS isn't needed.
20744 * lib/unicodeio.h (PARAMS): Remove.
20745 * lib/unicodeio.c: Don't use PARAMS.
20747 2003-06-18 Karl Berry <karl@gnu.org>
20749 * config/config.{guess,sub}: update from prep.
20751 2003-06-18 Jim Meyering <jim@meyering.net>
20753 Merge changes from coreutils.
20754 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
20755 Remove explicit declarations of xmalloc and realloc.
20757 (read_utmp): Remove anachronistic cast of xmalloc.
20759 2003-06-17 Paul Eggert <eggert@twinsun.com>
20761 Assume C89, so PARAMS isn't needed.
20762 * lib/backupfile.h (PARAMS): Remove. All uses removed.
20763 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
20764 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
20765 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
20766 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
20767 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
20768 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
20769 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
20770 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
20771 lib/xstrtod.h, lib/xstrtol.h: Likewise.
20772 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
20773 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
20774 no longer needed. Anyway, config.h should always be included before any
20777 2003-06-11 Simon Josefsson <jas@extundo.com>
20779 * modules/sysexits: New file.
20780 * MODULES.html.sh (func_all_modules): Add sysexits.
20782 2003-06-11 Simon Josefsson <jas@extundo.com>
20784 * lib/sysexit_.h: New file.
20786 2003-06-11 Derek Price <derek@ximbiot.com>
20788 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
20791 2003-06-11 Bruno Haible <bruno@clisp.org>
20793 * m4/sysexits.m4: New file.
20795 2003-06-10 Simon Josefsson <jas@extundo.com>
20797 * lib/argp.h: New file, from glibc.
20798 * lib/argp-ba.c: New file, from glibc.
20799 * lib/argp-eexst.c: New file, from glibc.
20800 * lib/argp-fmtstream.c: New file, from glibc.
20801 * lib/argp-fmtstream.h: New file, from glibc.
20802 * lib/argp-fs-xinl.c: New file, from glibc.
20803 * lib/argp-help.c: New file, from glibc.
20804 * lib/argp-namefrob.h: New file, from glibc.
20805 * lib/argp-parse.c: New file, from glibc.
20806 * lib/argp-pv.c: New file, from glibc.
20807 * lib/argp-pvh.c: New file, from glibc.
20808 * lib/argp-xinl.c: New file, from glibc.
20810 2003-06-10 Simon Josefsson <jas@extundo.com>
20812 * modules/strchrnul: New file.
20814 2003-06-10 Simon Josefsson <jas@extundo.com>
20816 * modules/argp: New file.
20818 2003-06-10 Simon Josefsson <jas@extundo.com>
20820 * m4/strchrnul.m4: New file.
20822 2003-06-10 Simon Josefsson <jas@extundo.com>
20824 * lib/strchrnul.h: New file.
20825 * lib/strchrnul.c: New file.
20827 2003-06-10 Bruno Haible <bruno@clisp.org>
20829 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
20831 2003-06-07 Karl Berry <karl@gnu.org>
20833 * config/config.{guess,sub}: update from prep.
20835 2003-06-07 Jim Meyering <jim@meyering.net>
20837 * modules/strtod: Use $(...) notation, not @...@ for
20838 AC_REPLACE'd variables.
20839 * modules/localcharset: Likewise.
20841 2003-06-07 Jim Meyering <jim@meyering.net>
20843 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
20844 in place of my name in the copyright comment.
20845 Remove definition and uses of __P.
20848 * lib/stat.c: Don't declare xmalloc explicitly.
20849 Instead, include "xalloc.h".
20850 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
20851 xrealloc, and xcalloc return values.
20852 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
20854 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
20856 2003-06-07 Bruno Haible <bruno@clisp.org>
20858 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
20859 avoid AC_CONFIG_LINKS.
20860 * modules/fnmatch (Makefile.am): Use explicit creation rule for
20861 fnmatch.h, to avoid AC_CONFIG_LINKS.
20862 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
20864 2003-06-07 Bruno Haible <bruno@clisp.org>
20866 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
20867 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
20868 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20870 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
20871 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20874 2003-06-06 Jim Meyering <jim@meyering.net>
20876 Merge from coreutils.
20877 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
20878 Consolidate declarations and initializations of *_base* locals.
20880 Merge from coreutils.
20881 This avoids a core dump on systems without GNU putenv,
20882 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
20883 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
20884 (unsetenv): New static function, from GNU libc.
20885 (rpl_putenv): Use it.
20887 * lib/modechange.c: Remove trailing blanks.
20889 Merge from coreutils.
20890 * lib/fsusage.c: Remove declaration of statfs.
20891 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
20893 * lib/posixtm.c: Include <stdbool.h> unconditionally.
20895 2003-06-06 Jim Meyering <jim@meyering.net>
20897 * lib/stdbool_.h: Renamed from stdbool.h.in.
20899 2003-06-06 Jim Meyering <jim@meyering.net>
20900 Bruno Haible <bruno@clisp.org>
20902 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
20903 Adjust Makefile.am snippet not to redirect directly to target.
20904 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
20906 2003-06-05 Paul Eggert <eggert@twinsun.com>
20908 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
20909 mismatch, look in future quarters as well as past. This fixes a
20910 bug when processing fall-backwards gaps immediately after a long
20911 period of daylight-saving time.
20913 * lib/mktime.c: Assume freestanding C89 or better.
20914 (HAVE_LIMITS_H): Remove. Assume it's 1.
20915 (__P): Remove; not used.
20916 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
20917 (mktime, not_equal_tm, print_tm, check_result,
20918 main): Use prototypes. Use const * where appropriate.
20919 (main): Fix typo in testing code that uncovered by above changes.
20920 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
20922 2003-06-04 Paul Eggert <eggert@twinsun.com>
20924 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
20925 locale.h, localeconv. This merges changes from coreutils.
20927 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
20928 It can be removed after the next Autoconf is released.
20929 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
20932 2003-06-04 Paul Eggert <eggert@twinsun.com>
20934 * lib/mktime.c: Fix Debian bug 177940
20935 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
20936 (localtime_offset): Now long int, not time_t, because we want it
20937 to be guaranteed to be signed. All uses changed.
20938 (__mktime_internal): If overflow would occur when adding offset,
20941 Merge 'human' changes from coreutils. Rewrite to support
20942 locale-specific notations like thousands separators.
20943 * lib/human.c: Simplify authorship notice.
20944 Include human.h immediately after config.h.
20945 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
20946 <limits.h>: Do not include, since human.h does.
20947 (SIZE_MAX, UINTMAX_MAX): New macros.
20948 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
20949 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
20950 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
20951 (power_letter): Renamed from suffixes.
20952 (generate_suffix_backwards): Remove.
20953 (adjust_value): Now takes int style (because of human.h changes)
20954 and long double value (for greater precision on some platforms).
20955 (group_number): New function.
20956 (human_readable): Use it. Use integer options, not enum.
20957 Put the options before the sizes in the arg list.
20958 Support all the new options.
20959 The old human_readable function has been removed;
20960 use inttostr.h instead.
20961 (human_readable, default_block_size, humblock):
20962 Use uintmax_t, not int, for block sizes.
20963 (human_readable_inexact, block_size_types): Remove.
20964 (block_size_opts): New constant.
20965 (human_options): Renamed from human_block_size, with new signature
20966 that allows block sizes up to UINTMAX_MAX. All callers changed.
20967 * lib/human.h: Add copyright and authorship notice.
20968 Include <limits.h> and <stdbool.h> unconditionally.
20969 (PARAMS): Remove. All uses removed.
20970 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
20971 (enum human_inexact_style): Remove tag; now a nameless enum.
20972 (human_floor, human_ceiling, human_round_to_even): Now have
20973 values 2, 0, 1 rather than -1, 1, 0.
20974 (human_group_digits, human_suppress_point_zero, human_autoscale,
20975 human_base_1024, human_SI, human_B): New constants.
20976 (human_readable_inexact, human_block_size): Remove.
20977 (human_readable): Size args are now uintmax_t, not int.
20978 (human_options): New decl.
20980 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
20981 unnecessary now that we assume C89 or better. This change
20982 imported from coreutils.
20984 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20985 arbitrarily. This is the same patch as 2003-05-28, but it got lost
20986 in the 2003-05-30 sync from glibc.
20988 .h files should stand alone, but we shouldn't include <sys/types.h>
20989 if we can get away with just <stddef.h>.
20991 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
20992 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
20993 rather than <sys/types.h>, as we merely need size_t.
20994 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
20996 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
20997 Include <stdio.h>, to get FILE.
20998 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
20999 memcasecmp.h has included <stddef.h> and all we need is size_t.
21000 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
21001 our interface, instead of including <sys/types.h>
21003 2003-06-04 Paul Eggert <eggert@twinsun.com>
21005 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
21006 now, as glibc mktime is buggy on non-glibc systems.
21008 2003-06-03 Karl Berry <karl@gnu.org>
21010 * config/config.sub: update from prep.
21012 2003-06-02 Paul Eggert <eggert@twinsun.com>
21015 Fix some minor time-related bugs with POSIX time arguments.
21016 Some valid time stamps were being rejected (notably -1, and
21017 time stamps before 1900 on 64-bit hosts). And some invalid
21018 time stamps were being accepted, e.g. September 31.
21020 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
21021 that we can return (time_t) -1 successfully.
21022 * lib/posixtm.c: Likewise.
21023 [HAVE_STDBOOL_H]: Include <stdbool.h>.
21024 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
21025 (t): Remove static var.
21026 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
21027 of static var. All uses changed.
21028 (year): Do not reject years before 1900; they can occur with
21030 (posix_time_parse): Do not check for out-of-range components;
21031 that is now the caller's responsibility, since our checks were
21032 only approximations.
21033 (posixtime): Use mktime to check for out-of-range components,
21034 since it knows them exactly.
21035 If mktime returns (time_t) -1, check whether an error actually occurred
21036 by invoking localtime on -1.
21037 (main) [TEST_POSIXTIME]: Check for input data errors, and report
21038 posixtime failures better.
21039 Improve the test data (in comments only).
21041 2003-06-02 Karl Berry <karl@gnu.org>
21043 * config/mkinstalldirs (version): new variable.
21044 (--version): new option.
21045 (usage): improve message.
21047 2003-05-30 Karl Berry <karl@gnu.org>
21049 * lib/mktime.c: update from libc.
21051 2003-05-30 Bruno Haible <bruno@clisp.org>
21053 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
21054 * config/config.rpath: Upgrade to gettext-0.12.1.
21056 2003-05-30 Bruno Haible <bruno@clisp.org>
21058 * m4/gettext.m4: Upgrade to gettext-0.12.1.
21059 * m4/nls.m4: New file, from gettext-0.12.1.
21060 * m4/po.m4: New file, from gettext-0.12.1.
21061 * m4/progtest.m4: Upgrade to gettext-0.12.1.
21063 2003-05-30 Bruno Haible <bruno@clisp.org>
21065 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
21066 * lib/localcharset.h: Likewise.
21067 * lib/localcharset.c: Likewise.
21069 2003-05-29 Karl Berry <karl@gnu.org>
21071 * config/config.rpath: update from gettext.
21073 2003-05-28 Paul Eggert <eggert@twinsun.com>
21075 Assume the headers required for C89 freestanding compilers.
21076 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
21077 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
21078 * m4/human.m4 (gl_HUMAN): Likewise.
21079 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
21080 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
21081 * m4/userspec.m4 (gl_USERSPEC): Likewise.
21082 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
21083 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21084 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
21086 2003-05-28 Paul Eggert <eggert@twinsun.com>
21088 Assume the headers required for C89 freestanding compilers.
21089 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
21090 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
21091 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
21092 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
21093 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
21094 define, since <limits.h> is guaranteed to do that.
21095 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
21096 * lib/exclude.c: Include <stdbool.h> unconditionally.
21097 * lib/tempname.c: Include <stddef.h> unconditionally.
21098 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
21099 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
21100 <stddef.h> does that.
21101 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
21102 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
21103 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
21105 * lib/xstrtol.c: Likewise.
21106 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
21107 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
21109 * lib/addext.c (addext): Use assignment rather than cast, to avoid
21110 warnings on some platforms.
21112 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
21115 2003-05-26 Jim Meyering <jim@meyering.net>
21117 Merge in a change from coreutils:
21118 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
21119 that is guaranteed to be `no'. Use `no_such_member' to indicate
21120 that condition, rather than `-1' which is slightly misleading.
21121 Change the name of the cache variable to have the gl_ prefix.
21122 Prompted by a patch from Richard Dawe for DJGPP.
21124 2003-05-24 Karl Berry <karl@gnu.org>
21126 * config/config.guess: update from prep.
21128 2003-05-22 Karl Berry <karl@gnu.org>
21130 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
21132 2003-05-20 Karl Berry <karl@gnu.org>
21134 * config/config.guess: update from prep.
21136 2003-05-18 Karl Berry <karl@gnu.org>
21138 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
21139 might actually be set by the user.
21141 * config/depcomp, install-sh, mdate-sh: update from automake.
21143 2003-05-17 Bruno Haible <bruno@clisp.org>
21145 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
21146 invalid expansion for AC_EGREP_CPP.
21147 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21148 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21149 Suggested by Akim Demaille <akim@epita.fr> in
21150 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
21152 2003-05-12 Jim Meyering <jim@meyering.net>
21154 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
21155 the space-padded-by-default conversion specifiers, %e, %k, %l.
21157 2003-05-12 Bruno Haible <bruno@clisp.org>
21159 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
21160 the string is longer than 4 KB.
21162 2003-05-11 Karl Berry <karl@gnu.org>
21164 * config/config.{guess,sub}: update from prep.
21166 2003-05-09 Bruno Haible <bruno@clisp.org>
21168 * modules/error: Add m4/strerror_r.m4 to file list.
21170 2003-05-03 Bruno Haible <bruno@clisp.org>
21172 Upgrade to Unicode-4.0.
21173 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
21174 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
21175 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
21176 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
21177 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
21178 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
21179 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
21180 Change width of U+E0100..U+E01EF from 1 to 0.
21182 2003-04-25 Jim Meyering <jim@meyering.net>
21184 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
21185 of type size_t, not int.
21187 2003-04-25 Bruno Haible <bruno@clisp.org>
21189 * lib/copy-file.c: Include <stddef.h>, for size_t.
21191 2003-04-21 Paul Eggert <eggert@twinsun.com>
21193 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
21194 code which expansion is under static control. Patch imported from
21195 Akim Demaille's patch to Bison; see
21196 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
21198 2003-04-14 Bruno Haible <bruno@clisp.org>
21200 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
21202 2003-04-11 Jim Meyering <jim@meyering.net>
21204 Merge changes from Coreutils.
21206 2003-03-22 Jim Meyering <jim@meyering.net>
21208 * lib/strftime.c (widen): Cast alloca return value to proper type.
21210 2003-01-19 Ulrich Drepper <drepper@redhat.com>
21213 * lib/strftime.c (my_strftime): Handle very large width
21214 specifications for numeric values correctly. Improve checks for
21217 2003-01-19 Jim Meyering <jim@meyering.net>
21219 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
21221 (nl_get_alt_digit) [! defined my_strftime]: Define.
21222 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
21223 _nl_get_alt_digit and _nl_get_walt_digit.
21225 * lib/strftime.c (my_strftime): Merge in locale-related changes from
21226 libc. These changes have no effect outside of _LIBC.
21228 2003-04-10 Bruno Haible <bruno@clisp.org>
21230 * modules/findprog: New file.
21231 * MODULES.html.sh (func_all_modules): Add it.
21233 2003-04-10 Bruno Haible <bruno@clisp.org>
21235 * m4/findprog.m4: New file.
21236 * m4/eaccess.m4: New file.
21238 2003-04-10 Bruno Haible <bruno@clisp.org>
21240 * lib/findprog.h: New file, from GNU gettext.
21241 * lib/findprog.c: New file, from GNU gettext.
21243 2003-04-05 Jim Meyering <jim@meyering.net>
21245 Merge changes from Coreutils.
21247 * lib/exclude.h (PARAMS): Remove definition and uses.
21248 * lib/exclude.c: Remove uses of `PARAMS'.
21250 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
21251 Add test-cases for DOS filenames. Declare program_name.
21252 (main): Set up program_name. Patch by Rich Dawe.
21254 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
21256 Use mntctl's return value to drive the entry-processing loop, since
21257 we can't rely on the value of the vmt_length member in the last
21258 entry. On some systems doing so could result in exhausting
21259 virtual memory. Based in part on a patch from Mike Jetzer.
21261 2003-04-04 Bruno Haible <bruno@clisp.org>
21263 * modules/linebreak: New file.
21264 * MODULES.html.sh (func_all_modules): Add it.
21266 2003-04-04 Bruno Haible <bruno@clisp.org>
21268 * m4/linebreak.m4: New file.
21270 2003-04-04 Bruno Haible <bruno@clisp.org>
21272 * lib/linebreak.h: New file, from GNU gettext.
21273 * lib/linebreak.c: New file, from GNU gettext with slight
21275 * lib/lbrkprop.h: New file, from GNU gettext.
21277 2003-04-03 Bruno Haible <bruno@clisp.org>
21279 * modules/utf8-ucs4: New file.
21280 * modules/utf16-ucs4: New file.
21281 * modules/ucs4-utf8: New file.
21282 * modules/ucs4-utf16: New file.
21283 * MODULES.html.sh (func_all_modules): Add them.
21285 2003-04-03 Bruno Haible <bruno@clisp.org>
21287 * m4/utf-ucs4.m4: New file.
21288 * m4/ucs4-utf.m4: New file.
21290 2003-04-03 Bruno Haible <bruno@clisp.org>
21292 * lib/utf8-ucs4.h: New file, from GNU gettext.
21293 * lib/utf16-ucs4.h: New file, from GNU gettext.
21294 * lib/ucs4-utf8.h: New file, from GNU gettext.
21295 * lib/ucs4-utf16.h: New file, from GNU gettext.
21297 2003-04-02 Bruno Haible <bruno@clisp.org>
21299 * modules/binary-io: New file.
21300 * MODULES.html.sh (func_all_modules): Add it.
21302 2003-04-02 Bruno Haible <bruno@clisp.org>
21304 * lib/binary-io.h: New file, from GNU gettext.
21306 2003-04-01 Bruno Haible <bruno@clisp.org>
21308 * modules/pathname: New file.
21309 * MODULES.html.sh (func_all_modules): Add it.
21311 2003-04-01 Bruno Haible <bruno@clisp.org>
21313 * lib/pathname.h: New file, from GNU gettext.
21314 * lib/concatpath.c: New file, from GNU gettext.
21316 2003-03-30 Bruno Haible <bruno@clisp.org>
21318 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
21320 2003-03-30 Bruno Haible <bruno@clisp.org>
21322 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
21323 function chown() doesn't exist.
21325 2003-03-28 Bruno Haible <bruno@clisp.org>
21327 * modules/copy-file: New file.
21328 * MODULES.html.sh (func_all_modules): Add it.
21330 2003-03-28 Bruno Haible <bruno@clisp.org>
21332 * m4/copy-file.m4: New file.
21334 2003-03-28 Bruno Haible <bruno@clisp.org>
21336 * lib/copy-file.h: New file, from GNU gettext.
21337 * lib/copy-file.c: New file, from GNU gettext.
21339 2003-03-18 Jim Meyering <jim@meyering.net>
21341 * lib/quote.c (quote_n): Fix typo in comment.
21343 2003-03-18 Bruno Haible <bruno@clisp.org>
21345 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
21347 * m4/onceonly_2_57.m4: Likewise.
21349 2003-03-17 Bruno Haible <bruno@clisp.org>
21351 * m4/onceonly.m4: Require autoconf 2.54 or newer.
21352 (m4_quote): Remove macro.
21353 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
21355 2003-03-14 Jim Meyering <jim@meyering.net>
21357 Merge changes from Coreutils.
21358 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
21359 to be const, in order to avoid warnings.
21360 (obstack_room): Likewise.
21361 (obstack_empty_p): Likewise.
21363 2003-03-14 Bruno Haible <bruno@clisp.org>
21365 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
21366 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
21368 2003-03-13 Paul Eggert <eggert@twinsun.com>
21370 Merge changes from Bison.
21371 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
21372 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
21373 when compiling Bison 1.875's `bitset bset = obstack_alloc
21374 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
21375 * lib/hash.c: Include <stdbool.h> unconditionally.
21377 2003-03-13 Paul Eggert <eggert@twinsun.com>
21379 * m4/onceonly.m4 (m4_quote): New macro.
21380 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
21381 Quote AC_FOREACH variable-expansions properly.
21383 2003-03-13 Paul Eggert <eggert@twinsun.com>
21385 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
21387 2003-03-09 Paul Eggert <eggert@twinsun.com>
21389 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
21390 Reported by Bruce Becker; see:
21391 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
21393 2003-03-03 Paul Eggert <eggert@twinsun.com>
21394 Bruno Haible <bruno@clisp.org>
21396 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
21397 Reported by John Hughes, see
21398 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
21400 2003-02-20 Bruno Haible <bruno@clisp.org>
21402 * MODULES.html.sh (func_all_modules): Add poll.
21404 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21406 * modules/poll: New file.
21408 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21410 * lib/poll_.h: New file.
21411 * lib/poll.c: New file.
21413 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
21415 * m4/poll.m4: New file.
21417 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21419 * modules/mathl: New file.
21421 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21423 * lib/mathl.h: New file.
21424 * lib/acosl.c: New file.
21425 * lib/asinl.c: New file.
21426 * lib/atanl.c: New file.
21427 * lib/ceill.c: New file.
21428 * lib/cosl.c: New file.
21429 * lib/expl.c: New file.
21430 * lib/floorl.c: New file.
21431 * lib/frexpl.c: New file.
21432 * lib/ldexpl.c: New file.
21433 * lib/logl.c: New file.
21434 * lib/sincosl.c: New file.
21435 * lib/sinl.c: New file.
21436 * lib/sqrtl.c: New file.
21437 * lib/tanl.c: New file.
21438 * lib/trigl.c: New file.
21439 * lib/trigl.h: New file.
21441 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
21443 * m4/mathl.m4: New file.
21445 2003-02-18 Bruno Haible <bruno@clisp.org>
21447 * MODULES.html.sh (func_all_modules): Add mathl.
21449 2003-02-17 Bruno Haible <bruno@clisp.org>
21451 * modules/mkdtemp: New module.
21452 * MODULES.html.sh (func_all_modules): Add it.
21454 2003-02-17 Bruno Haible <bruno@clisp.org>
21456 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
21458 2003-02-17 Bruno Haible <bruno@clisp.org>
21460 * lib/mkdtemp.h: New file, from GNU gettext.
21461 * lib/mkdtemp.c: New file, from GNU gettext.
21463 2003-02-02 Jim Meyering <jim@meyering.net>
21465 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
21468 2003-01-31 Bruno Haible <bruno@clisp.org>
21470 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
21472 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
21474 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
21476 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
21479 2003-01-31 Bruno Haible <bruno@clisp.org>
21481 * lib/rename.c: #undef rename before defining rpl_rename.
21482 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
21484 2003-01-30 Bruno Haible <bruno@clisp.org>
21486 * modules/vasnprintf, modules/vasprintf: New modules.
21487 * MODULES.html.sh (func_all_modules): Add them.
21489 2003-01-30 Bruno Haible <bruno@clisp.org>
21491 * m4/signed.m4: New file, from GNU gettext.
21492 * m4/longdouble.m4: New file, from GNU gettext.
21493 * m4/wchar_t.m4: New file, from GNU gettext.
21494 * m4/wint_t.m4: New file, from GNU gettext.
21495 * m4/vasnprintf.m4: New file.
21496 * m4/vasprintf.m4: New file.
21498 2003-01-30 Bruno Haible <bruno@clisp.org>
21500 * lib/printf-args.h: New file, from GNU gettext.
21501 * lib/printf-args.c: New file, from GNU gettext.
21502 * lib/printf-parse.h: New file, from GNU gettext.
21503 * lib/printf-parse.c: New file, from GNU gettext.
21504 * lib/vasnprintf.h: New file, from GNU gettext.
21505 * lib/vasnprintf.c: New file, from GNU gettext.
21506 * lib/asnprintf.c: New file, from GNU gettext.
21507 * lib/vasprintf.h: New file, from GNU gettext with modifications.
21508 * lib/vasprintf.c: New file, from GNU gettext.
21509 * lib/asprintf.c: New file, from GNU gettext.
21511 2003-01-29 Bruno Haible <bruno@clisp.org>
21513 * modules/stpncpy: New module.
21514 * MODULES.html.sh (func_all_modules): Add it.
21516 2003-01-29 Bruno Haible <bruno@clisp.org>
21518 * m4/stpncpy.m4: New file.
21520 2003-01-29 Bruno Haible <bruno@clisp.org>
21522 * lib/stpncpy.h: New file, from GNU gettext with modifications.
21523 * lib/stpncpy.c: New file, from GNU gettext with modifications.
21525 2003-01-28 Bruno Haible <bruno@clisp.org>
21527 * modules/c-ctype: New module.
21528 * MODULES.html.sh (func_all_modules): Add it.
21530 2003-01-28 Bruno Haible <bruno@clisp.org>
21532 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
21534 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
21537 2003-01-27 Bruno Haible <bruno@clisp.org>
21539 * modules/xsetenv: New module.
21540 * MODULES.html.sh (func_all_modules): Add it.
21542 2003-01-27 Bruno Haible <bruno@clisp.org>
21544 * lib/xsetenv.h: New file, from GNU gettext.
21545 * lib/xsetenv.c: New file, from GNU gettext.
21547 2003-01-23 Jim Meyering <jim@meyering.net>
21549 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
21550 from working on systems without dirfd (at least Irix and OSF1/Tru64).
21552 2003-01-23 Bruno Haible <bruno@clisp.org>
21554 * modules/minmax: New module.
21555 * MODULES.html.sh (func_all_modules): Add it.
21557 2003-01-23 Bruno Haible <bruno@clisp.org>
21559 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
21562 2003-01-22 Bruno Haible <bruno@clisp.org>
21564 * modules/exit: New module.
21565 * MODULES.html.sh (func_all_modules): Add it.
21567 2003-01-22 Bruno Haible <bruno@clisp.org>
21569 * lib/exit.h: New file, from GNU gettext.
21571 2003-01-19 Bruno Haible <bruno@clisp.org>
21573 * gnulib-tool: Recognize option --extract-maintainer.
21574 (func_get_maintainer): New function.
21575 * modules/*: Add Maintainer entry.
21577 2003-01-16 Jim Meyering <jim@meyering.net>
21579 * m4/regex.m4: The `regex' struct is both input and output.
21580 Initialize it before each use. Patch by Tim Waugh.
21582 2003-01-16 Bruno Haible <bruno@clisp.org>
21584 * MODULES.html.sh: Add a table of contents. Add the module name as
21585 leftmost column. Add hyperlinks.
21587 2003-01-15 Bruno Haible <bruno@clisp.org>
21589 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
21591 2003-01-15 Bruno Haible <bruno@clisp.org>
21593 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
21594 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
21597 2003-01-15 Bruno Haible <bruno@clisp.org>
21599 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
21601 2003-01-15 Bruno Haible <bruno@clisp.org>
21603 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
21604 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
21606 2003-01-14 Jim Meyering <jim@meyering.net>
21608 * lib/same.c (same_name): Tweak a comment.
21610 2003-01-14 Bruno Haible <bruno@clisp.org>
21612 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
21613 when a string comparison is sufficient.
21615 2003-01-14 Bruno Haible <bruno@clisp.org>
21617 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
21620 2003-01-14 Bruno Haible <bruno@clisp.org>
21622 * lib/hash-pjw.c: Add comment about low quality of this function.
21624 2003-01-13 Bruno Haible <bruno@clisp.org>
21626 * modules/stpcpy: Distribute lib/stpcpy.h.
21627 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
21629 2003-01-13 Bruno Haible <bruno@clisp.org>
21631 * modules/*: Add a description.
21632 * modules/strpbrk: Fix Makefile.am snippet.
21633 * modules/strtoimax: Fix dependencies.
21634 * modules/strtoumax: Likewise.
21636 2003-01-13 Bruno Haible <bruno@clisp.org>
21638 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
21639 * modules/alloca (Makefile.am): All object files depend on alloca.h.
21640 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
21642 2003-01-13 Bruno Haible <bruno@clisp.org>
21644 * gnulib-tool (func_create_testdir): Store config/* files in the main
21646 * config.rpath: Move to ...
21647 * config/config.rpath: ... here.
21648 * modules/gettext: Contains config/config.rpath, not config.rpath.
21649 * modules/iconv: Likewise.
21651 2003-01-12 Paul Eggert <eggert@twinsun.com>
21653 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21654 to avoid collisions with libcurses and libreadline.
21656 * m4/getstr.m4: Remove.
21657 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
21659 2003-01-12 Paul Eggert <eggert@twinsun.com>
21661 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21662 to avoid collisions with libcurses and libreadline.
21664 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
21665 * lib/getstr.h, getstr.c: Remove.
21666 * lib/getline.c: Include "getline.h", to check interface.
21667 Move body of old getstr.c here: this defines MIN_CHUNK and
21668 declares getdelim2, which is renamed from getstr.
21669 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
21671 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
21673 * lib/linebuffer.h: Likewise.
21674 (readline): Remove backward-compatibility macro.
21676 2003-01-12 Paul Eggert <eggert@twinsun.com>
21678 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21679 to avoid collisions with libcurses and libreadline.
21681 * MODULES.html.sh: Remove getstr.
21682 * modules/getline: Depend on unlocked-io, not getstr.
21684 2003-01-12 Jim Meyering <jim@meyering.net>
21686 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
21688 2003-01-10 Bruno Haible <bruno@clisp.org>
21690 * modules/alloca: Change Makefile.am requirements. Simplify Include
21691 requirements. Add lib/alloca_.h to file list.
21693 2003-01-10 Bruno Haible <bruno@clisp.org>
21695 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
21697 2003-01-10 Bruno Haible <bruno@clisp.org>
21699 * lib/alloca_.h: New file.
21700 * lib/getdate.y: Unconditionally include alloca.h.
21701 * lib/makepath.c: Likewise.
21702 * lib/setenv.c: Likewise.
21703 * lib/userspec.c: Likewise.
21705 2003-01-09 Karl Berry <karl@gnu.org>
21707 * MODULES.html.sh: include `dirname $0` in PATH, to find
21710 2003-01-09 Bruno Haible <bruno@clisp.org>
21712 * modules/stdbool: Change configure.ac, Makefile.am requirements.
21713 Simplify Include requirements. Add lib/stdbool.h.in to file list.
21715 2003-01-09 Bruno Haible <bruno@clisp.org>
21717 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
21719 2003-01-09 Bruno Haible <bruno@clisp.org>
21721 * lib/stdbool.h.in: New file.
21723 2003-01-09 Bruno Haible <bruno@clisp.org>
21725 * gnulib-tool (func_all_modules): Ignore files ending in ~.
21726 * MODULES.html.sh: Likewise.
21728 2003-01-08 Jim Meyering <jim@meyering.net>
21730 * lib/full-write.c: Undefine and define-away `const' after inclusion
21731 of errno.h, not before. Suggestion from Bruno Haible.
21733 2003-01-08 Bruno Haible <bruno@clisp.org>
21735 * modules/full-read: Depend on full-write.
21737 2003-01-08 Bruno Haible <bruno@clisp.org>
21739 * lib/safe-read.c: Include specification header first, to ensure its
21741 * lib/full-write.c: Likewise.
21743 2003-01-07 Jim Meyering <jim@meyering.net>
21745 * lib/full-write.c: Rework so that it may serve to define full_read,
21747 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
21749 2003-01-07 Bruno Haible <bruno@clisp.org>
21751 * lib/strtoimax.c: Include <stdint.h> as an alternative to
21753 * lib/xstrtol.h: Likewise.
21754 * lib/xstrtoimax.c: Likewise.
21755 * lib/xstrtoumax.c: Likewise.
21756 * lib/human.h: Likewise.
21758 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
21759 on systems that have <inttypes.h> but not <stdint.h>.
21761 2003-01-07 Bruno Haible <bruno@clisp.org>
21763 * MODULES.html.sh: Add copyright notice.
21764 (missed_files): Omit CVS directory entries.
21765 (func_module): Make it work with sed-3.02.
21766 * MODULES.txt: Remove file.
21768 2003-01-06 Jim Meyering <jim@meyering.net>
21770 * lib/version-etc.c: Update year in translatable copyright string.
21772 2003-01-03 Karl Berry <karl@gnu.org>
21774 * config/config.{guess,sub}: update from prep.
21776 2003-01-02 Karl Berry <karl@gnu.org>
21778 * doc/COPYING.DOC: belatedly updated to 1.2.
21780 2003-01-01 Karl Berry <karl@gnu.org>
21782 * gnulib-tool (func_verify_module): report module name $module in
21783 error message, not $1.
21784 * gnulib-tool (create-testdir): don't complain if destdir couldn't
21785 be created, only if it doesn't exist.
21786 * gnulib-tool (last_checkin_date): don't expand the $Date here.
21788 2002-12-31 Paul Eggert <eggert@twinsun.com>
21790 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
21792 2002-12-31 Paul Eggert <eggert@twinsun.com>
21794 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
21795 memcmp if strcoll doesn't work.
21797 2002-12-31 Bruno Haible <bruno@clisp.org>
21799 * lib/utime.c (utime_null): No need to call ftruncate if the file was
21802 2002-12-31 Bruno Haible <bruno@clisp.org>
21804 * lib/memcoll.c (STRCOLL): New macro.
21807 2002-12-31 Bruno Haible <bruno@clisp.org>
21809 * lib/localcharset.h: New file.
21810 * lib/localcharset.c: Include it.
21811 * lib/unicodeio.c: Likewise.
21813 2002-12-31 Bruno Haible <bruno@clisp.org>
21815 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
21816 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
21818 2002-12-31 Bruno Haible <bruno@clisp.org>
21820 * lib/getline.h: Include <stddef.h>, for size_t.
21822 * lib/unicodeio.h: Include <stddef.h>, for size_t.
21823 * lib/unicodeio.c: Don't include <stddef.h>.
21825 2002-12-31 Bruno Haible <bruno@clisp.org>
21827 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
21830 2002-12-24 Karl Berry <karl@gnu.org>
21832 * config/config.guess: update from prep.
21834 2002-12-24 Bruno Haible <bruno@clisp.org>
21836 General infrasructure.
21837 * m4/README: Rewritten.
21838 * m4/onceonly.m4: New file.
21839 * m4/onceonly_2_57.m4: New file.
21842 * m4/atexit.m4: New file.
21845 * m4/strtod.m4: New file.
21848 * m4/strtol.m4: New file.
21851 * m4/strtoul.m4: New file.
21854 * m4/memchr.m4: New file.
21857 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
21858 (jm_FUNC_MEMCMP): Invoke it.
21861 * m4/memcpy.m4: New file.
21864 * m4/memmove.m4: New file.
21867 * m4/memset.m4: New file.
21870 * m4/strcspn.m4: New file.
21873 * m4/strpbrk.m4: New file.
21876 * m4/strstr.m4: New file.
21879 * m4/strerror.m4: New file.
21882 * m4/mktime.m4: Renamed from jm-mktime.m4.
21883 (gl_PREREQ_MKTIME): New macro.
21884 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
21887 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
21888 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
21889 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
21892 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
21893 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
21894 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
21897 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
21898 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
21899 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
21901 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
21904 * m4/xalloc.m4: New file.
21907 * m4/alloca.m4: New file.
21910 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
21911 (jm_FUNC_PUTENV): Invoke it.
21914 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
21915 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
21916 when invoked twice.
21917 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
21921 * m4/memrchr.m4: New file.
21924 * m4/stpcpy.m4: New file.
21927 * m4/strcase.m4: New file.
21930 * m4/strdup.m4: New file.
21933 * m4/strnlen.m4: New file.
21936 * m4/strndup.m4: New file.
21939 * m4/xstrtod.m4: New file.
21942 * m4/xstrtol.m4: New file.
21945 * m4/getdate.m4: New file.
21947 Module unlocked-io.
21948 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
21949 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
21950 * m4/jm-glibc-io.m4n: Remove file.
21952 Module long-options.
21953 * m4/long-options.m4: New file.
21956 * m4/md5.m4: New file.
21959 * m4/sha.m4: New file.
21962 * m4/getstr.m4: New file.
21965 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
21966 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
21967 <sys/types.h>, for size_t. Use the function name gnu_getline, not
21968 simply getline. Infoke gl_PREREQ_GETLINE.
21971 * m4/obstack.m4: New file.
21974 * m4/hash.m4: New file.
21977 * m4/readtokens.m4: New file.
21980 * m4/strverscmp.m4: New file.
21983 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
21987 * m4/strtoll.m4: New file.
21990 * m4/strtoull.m4: New file.
21993 * m4/strtoimax.m4: New file.
21996 * m4/strtoumax.m4: New file.
21999 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
22000 jm_AC_PREREQ_XSTRTOIMAX.
22001 Moved the strtol prerequisites to strtol.m4.
22002 Moved the strtoll prerequisites to strtoll.m4.
22003 Moved the strtoimax prerequisites to strtoimax.m4.
22006 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
22007 jm_AC_PREREQ_XSTRTOUMAX.
22008 Moved the strtoul prerequisites to strtoul.m4.
22009 Moved the strtoull prerequisites to strtoull.m4.
22010 Moved the strtoumax prerequisites to strtoumax.m4.
22013 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
22014 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
22017 * m4/dup2.m4: New file.
22020 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
22021 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
22024 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
22025 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
22027 Module gettimeofday.
22028 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
22029 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
22030 gl_PREREQ_GETTIMEOFDAY.
22033 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
22034 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
22037 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
22038 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
22039 jm_AC_TYPE_UINTMAX_T.
22040 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
22043 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
22044 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
22047 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
22048 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
22051 * m4/timespec.m4 (gl_TIMESPEC): New macro.
22052 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
22053 * m4/st_mtim.m4: Indentation.
22056 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
22057 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
22058 gl_PREREQ_NANOSLEEP.
22061 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
22062 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
22063 (gl_REGEX): New macro.
22066 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
22067 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
22070 * m4/rmdir.m4: New file.
22073 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
22074 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
22075 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
22078 * m4/dirname.m4: New file.
22081 * m4/getopt.m4: New file.
22083 Module unistd-safer.
22084 * m4/unistd-safer.m4: New file.
22087 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
22089 (gl_PREREQ_FNMATCH_EXTRA): New macro.
22090 (gl_FUNC_FNMATCH_POSIX): New macro.
22091 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
22092 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
22096 * m4/exclude.m4: New file.
22099 * m4/human.m4: New file.
22105 * m4/backupfile.m4: New file.
22106 * m4/d-ino.m4: Indentation.
22109 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
22110 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
22111 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
22114 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
22118 * m4/euidaccess.m4: New file.
22121 * m4/file-type.m4: New file.
22124 * m4/fileblocks.m4: New file.
22127 * m4/filemode.m4: New file.
22130 * m4/isdir.m4: New file.
22133 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
22134 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
22137 * m4/makepath.m4: New file.
22140 * m4/modechange.m4: New file.
22143 * m4/mountlist.m4: New file.
22144 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
22147 Module path-concat.
22148 * m4/path-concat.m4: New file.
22151 * m4/pathmax.m4: New file.
22154 * m4/same.m4: New file.
22157 * m4/save-cwd.m4: New file.
22160 * m4/savedir.m4: New file.
22163 * m4/xgetcwd.m4: New file.
22164 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
22167 * m4/xreadlink.m4: New file.
22170 * m4/safe-read.m4: New file.
22173 * m4/safe-write.m4: New file.
22176 * m4/closeout.m4: New file.
22178 Module stdio-safer.
22179 * m4/stdio-safer.m4: New file.
22182 * m4/getpass.m4: New file.
22185 * m4/getugroups.m4: New file.
22187 Module group-member.
22188 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
22189 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
22192 * m4/idcache.m4: New file.
22195 * m4/userspec.m4: New file.
22198 * m4/clock_time.m4: New file.
22199 * m4/gettime.m4: New file.
22202 * m4/settime.m4: New file.
22205 * m4/posixtm.m4: New file.
22207 Module gethostname.
22208 * m4/gethostname.m4: New file.
22211 * m4/canon-host.m4: New file.
22214 * m4/codeset.m4: New file, from gettext-0.11.5.
22215 * m4/gettext.m4: New file, from gettext-0.11.5.
22216 * m4/glibc21.m4: New file, from gettext-0.11.5.
22217 * m4/iconv.m4: New file, from gettext-0.11.5.
22218 * m4/intdiv0.m4: New file, from gettext-0.11.5.
22219 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
22220 * m4/inttypes.m4: New file, from gettext-0.11.5.
22221 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
22222 * m4/isc-posix.m4: New file, from gettext-0.11.5.
22223 * m4/lcmessage.m4: New file, from gettext-0.11.5.
22224 * m4/lib-ld.m4: New file, from gettext-0.11.5.
22225 * m4/lib-link.m4: New file, from gettext-0.11.5.
22226 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
22227 * m4/progtest.m4: New file, from gettext-0.11.5.
22228 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
22229 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
22230 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
22232 Module localcharset.
22233 * m4/localcharset.m4: New file.
22235 Module hard-locale.
22236 * m4/hard-locale.m4: New file.
22239 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
22241 * m4/mbrtowc.m4: Add comment.
22244 * m4/memcasecmp.m4: New file.
22247 * m4/memcoll.m4: New file.
22250 * m4/unicodeio.m4: New file.
22253 * m4/rpmatch.m4: New file.
22256 * m4/yesno.m4: New file.
22259 * m4/exitfail.m4: New file.
22262 * m4/c-stack.m4 (gl_C_STACK): New macro.
22263 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
22266 * m4/error.m4 (gl_ERROR): New macro.
22267 (jm_PREREQ_ERROR): Use onceonly macros.
22270 * m4/fatal.m4: New file.
22273 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
22274 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
22276 Module getpagesize.
22277 * m4/getpagesize.m4: New file.
22279 Module getusershell.
22280 * m4/getusershell.m4: New file.
22283 * m4/physmem.m4: New file.
22286 * m4/posixver.m4: New file.
22289 * m4/quotearg.m4: New file.
22292 * m4/quote.m4: New file.
22295 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
22298 * m4/sig2str.m4: New file.
22301 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
22303 * m4/intmax_t.m4: New file.
22304 * m4/d-type.m4: Indentation.
22305 * m4/jm-macros.m4: Update.
22306 * m4/prereq.m4 (jm_PREREQ): Update.
22307 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
22308 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
22309 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
22310 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
22311 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
22312 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
22313 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
22314 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
22315 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
22316 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
22317 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
22318 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
22319 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
22320 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
22321 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
22322 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
22323 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
22324 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
22325 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
22327 2002-12-24 Bruno Haible <bruno@clisp.org>
22329 * MODULES.txt: Update according to m4/ changes.
22332 * config.rpath: New file, from gettext-0.11.5.
22334 * modules/*: New module descriptions.
22335 * gnulib-tool: New file.
22336 * MODULES.html.sh: New file.
22338 2002-12-21 Karl Berry <karl@gnu.org>
22340 * doc/fdl.texi: update to version 1.2.
22342 2002-12-19 Karl Berry <karl@gnu.org>
22344 * config/config.guess: update from prep.
22346 2002-12-18 Bruno Haible <bruno@clisp.org>
22348 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
22349 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
22351 2002-12-17 Bruno Haible <bruno@clisp.org>
22353 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
22354 stdlib.h, string.h.
22356 2002-12-17 Bruno Haible <bruno@clisp.org>
22358 * lib/canon-host.c (strdup): Remove unused declaration.
22360 * lib/fsusage.c: Include full_read.h.
22361 (get_fs_usage): Use full_read instead of safe_read.
22363 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
22365 2002-12-12 Karl Berry <karl@gnu.org>
22367 * config/config.guess: update from prep.
22369 2002-12-11 Bruno Haible <bruno@clisp.org>
22371 * m4/setenv.m4: New file, from gettext-0.11.5.
22373 2002-12-11 Bruno Haible <bruno@clisp.org>
22375 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
22377 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
22380 2002-12-11 Bruno Haible <bruno@clisp.org>
22382 * setenv.c (alloca): Fall back to malloc.
22383 (freea): New macro.
22384 (setenv): Use freea() to free memory allocated with alloca().
22386 2002-11-13 Bruno Haible <bruno@clisp.org>
22388 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
22389 function declarations.
22390 * unsetenv.c (unsetenv): Likewise.
22392 2002-03-04 Bruno Haible <bruno@clisp.org>
22394 Portability to AIX 4.3.3.
22395 * unsetenv.c: New file, extracted from setenv.c.
22396 * setenv.c: Move the unsetenv() function to unsetenv.c.
22398 2001-12-20 Bruno Haible <bruno@clisp.org>
22400 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
22401 use malloc instead. For SunOS 4.
22403 2001-12-11 Bruno Haible <bruno@clisp.org>
22405 * setenv.c: Declare alloca.
22406 (compar_fn_t): New typedef.
22407 (KNOWN_VALUE, STORE_VALUE): Use it.
22409 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
22412 2002-12-10 Paul Eggert <eggert@twinsun.com>
22414 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
22415 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
22416 Choose values that are less likely to collide with system fnmatch
22418 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
22419 defined (e.g., a pure POSIX system).
22420 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
22421 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
22423 2002-12-06 Paul Eggert <eggert@twinsun.com>
22425 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
22426 a pain in practice to deal with generated m4 files. This change
22427 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
22429 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
22430 and jm-glibc-io.m4, as they are no longer a special case.
22431 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
22432 kludge and the auto-generation stuff. Check only whether the
22433 functions are declared, not whether they exist, since older hosts
22434 that don't declare the functions can't use the optimization anyway.
22436 2002-12-06 Jim Meyering <jim@meyering.net>
22438 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
22440 Merge in changes from libc's misc/error.c, in preparation
22441 for the merge of gnulib's changes back into libc.
22443 * lib/error.c (_): Define only if not already defined.
22444 Move definition to follow all #include directives.
22445 Include unlocked-io.h only if !_LIBC.
22446 [_LIBC]: Include <libio/libioP.h>.
22447 [USE_IN_LIBIO]: Include <libio/iolibio.h>
22448 (fflush): Tweak definition to use INTUSE.
22451 2002-12-05 Paul Eggert <eggert@twinsun.com>
22453 * lib/alloca.c [defined emacs]: Include "lisp.h".
22454 (xalloc_die) [defined emacs]: New macro.
22455 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
22456 [! defined emacs]: Include <xalloc.h>.
22457 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
22458 (pointer): Typedef to POINTER_TYPE *.
22459 (malloc): Remove decl; we now always use xmalloc.
22460 (alloca): Use old-style definition, since Emacs needs this.
22461 Check for arithmetic overflow when computing combined size.
22463 2002-12-04 Paul Eggert <eggert@twinsun.com>
22465 Do not generate unlocked-io.h automatically, since it's easier to
22466 maintain it by hand.
22468 * lib/unlocked-io.h: New file, from GNU diffutils,
22469 but with proper copyright notice and attribution.
22470 * lib/gen-uio: Remove.
22471 * lib/Makefile.am: Add copyright notice.
22472 (libfetish_a_SOURCES): Add unlocked-io.h.
22473 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
22474 (DISTCLEANFILES, io_functions): Remove macros.
22475 (EXTRA_DIST): Remove gen_uio.
22476 (unlocked-io.h): Remove rule.
22478 2002-12-04 Jim Meyering <jim@meyering.net>
22480 Reflect the fact that stat.c and lstat.c are no longer generated.
22481 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
22482 (DISTCLEANFILES): Likewise.
22483 (EXTRA_DIST): Likewise.
22484 (all_local): Don't depend on stat.c or lstat.c.
22485 (stat.c, lstat.c): Remove rules.
22486 (EXTRA_DIST): Remove xstat.in.
22488 * lib/xstat.in: Remove file. Contents moved into stat.c.
22489 * lib/stat.c: New file. Contents mostly from xstat.in.
22490 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
22491 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
22493 * lib/safe-read.c: Rework so that it may serve to define safe_write,
22495 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
22497 2002-12-03 Jim Meyering <jim@meyering.net>
22499 * lib/safe-read.c, safe-write.c: Change variable names and comments,
22500 but not semantics, to minimize the differences between these two files.
22501 (safe_read): Change comment to mention SAFE_READ_ERROR.
22503 * lib/safe-read.c (IS_EINTR): Define.
22504 (safe_read): Use IS_EINTR in place of in-function cpp directives.
22506 2002-12-02 Jim Meyering <jim@meyering.net>
22508 * lib/safe-read.c (EINTR): Define.
22509 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
22510 (INT_MAX): Provide fallback.
22511 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
22513 * lib/safe-read.h (SAFE_READ_ERROR): Define.
22515 2002-12-02 Bruno Haible <bruno@clisp.org>
22517 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
22518 Define, taken from safe-read.c.
22519 (INT_MAX): Provide fallback.
22520 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
22521 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
22523 * lib/safe-read.c (EINTR): Remove definition.
22524 (safe_read): Don't use EINTR if it is absent.
22526 2002-12-01 Jim Meyering <jim@meyering.net>
22528 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
22530 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
22532 2002-11-27 Paul Eggert <eggert@twinsun.com>
22534 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
22535 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
22536 with `if (! (value < limit)) abort ();', for readability.
22538 2002-11-26 Karl Berry <karl@gnu.org>
22540 * lib/strdup.c: copy from libc again, with jim's ok.
22541 * lib/.cppi-disable: re-add strdup.c
22543 2002-11-25 Karl Berry <karl@gnu.org>
22545 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
22546 instead of "strtol.c".
22548 2002-11-25 Karl Berry <karl@gnu.org>
22550 * config/install-sh: update from automake for variable quoting, $0 in
22553 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
22554 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
22557 2002-11-25 Jim Meyering <jim@meyering.net>
22559 * lib/mktime.c: Sync from libc, now that it has the latest fix.
22561 2002-11-24 Karl Berry <karl@gnu.org>
22563 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
22564 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
22566 2002-11-24 Jim Meyering <jim@meyering.net>
22568 Update from coreutils:
22570 * lib/mktime.c: Merge in changes from libc.
22572 Avoid a link-time failure on some Linux systems.
22573 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
22575 (__mon_yday): Declare with the STATIC attribute.
22576 (__mktime_internal): Likewise.
22577 Based on a report from Greg Schafer.
22579 2002-11-23 Jim Meyering <jim@meyering.net>
22581 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
22582 Use `unsigned', not `int', as type of index.
22584 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
22586 * lib/fsusage.c: Remove unneeded parentheses around operands of
22589 2002-11-22 Paul Eggert <eggert@twinsun.com>
22591 * lib/quotearg.h: Allow multiple inclusion by surrounding with
22592 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
22593 so that we can be included first.
22594 (PARAMS): Remove; we now assume C89 or later. All uses removed.
22595 * lib/quotearg.c: Include quotearg.h immediately after config.h.
22596 No need to include stddef.h or sys/types.h any more.
22597 Surround local include files with "", not "<>".
22598 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
22599 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
22600 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
22601 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
22602 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
22603 (ISPRINT): Remove; no longer needed now that we assume C89.
22605 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
22608 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
22609 quotearg_char): Use SIZE_MAX rather than
22610 (size_t) -1 when we are talking about "infinity".
22612 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
22614 2002-11-22 Paul Eggert <eggert@twinsun.com>
22616 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
22617 hint that one should use `if (! x) abort ();' rather than `assert
22618 (x);', and anyway it's one less thing to worry about configuring.
22619 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
22620 hash_rehash, hash_insert): Use abort rather than assert.
22622 2002-11-22 Bruno Haible <bruno@clisp.org>
22624 * lib/safe-read.h: Assume C89. Add comments.
22625 (safe_read): Change return type to size_t.
22626 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
22627 byte counts > SSIZE_MAX correctly.
22628 * lib/safe-write.h: New file.
22629 * lib/safe-write.c: New file.
22630 * lib/full-read.h: New file.
22631 * lib/full-read.c: New file.
22632 * lib/full-write.h: Assume C89. Add comments.
22633 * lib/full-write.c: Include safe-write.h.
22634 (full_write): Rewritten to use safe_write.
22635 Suggested by Jim Meyering and Paul Eggert.
22637 2002-11-21 Jim Meyering <jim@meyering.net>
22639 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
22641 Merge in changes from the coreutils.
22643 2002-09-25 Paul Eggert <eggert@twinsun.com>
22644 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
22646 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
22647 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
22648 int. Work more efficiently if X is the same width as uintmax_t.
22649 Do not compare X to -1, to avoid bogus compiler warning.
22650 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
22651 Don't assume that f_frsize and f_bsize are the same type.
22653 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
22654 warning on FreeBSD.
22656 * lib/makepath.c (make_path): Restore umask *before* creating the final
22658 (make_path): Minor reformatting.
22660 * lib/xmalloc.c: Adjust to work with new autoconf macros,
22661 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
22662 HAVE_MALLOC/HAVE_REALLOC.
22664 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
22665 dummy ones. At least on GNU/Linux systems, `auto' means something
22667 From Michael Stone.
22669 2002-11-21 Bruno Haible <bruno@clisp.org>
22671 Remove case insensitive option matching.
22672 * lib/argmatch.h (argcasematch): Remove declaration.
22673 (ARGCASEMATCH): Remove macro.
22674 (__xargmatch_internal): Remove case_sensitive argument.
22675 (XARGMATCH): Update.
22676 (XARGCASEMATCH): Remove macro.
22677 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
22678 case_sensitive argument.
22679 (argcasematch): Remove function.
22680 (__xargmatch_internal): Remove case_sensitive argument.
22681 (main): Use XARGMATCH instead of XARGCASEMATCH.
22683 * lib/xmalloc.c: Change compile-time error message. Add comment about
22684 required autoconf version.
22686 2002-11-20 Paul Eggert <eggert@twinsun.com>
22688 Merge argmatch cleanups from Bison. Assume C89.
22690 * lib/argmatch.c: Include config.h here, not in argmatch.h.
22691 Include stdlib.h, for EXIT_FAILURE.
22692 Always include <string.h>, since we assume C89.
22693 (EXIT_FAILURE): Remove pre-C89 bug workaround.
22694 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
22695 Include <stddef.h> instead, since it's all we need for size_t.
22696 (PARAMS): Remove. All uses removed.
22697 (ARRAY_CARDINALITY): Do not bother to #undef.
22698 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
22699 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22700 Remove unnecessary parentheses.
22701 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22702 Insert necessary parentheses.
22703 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
22704 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
22706 2002-11-19 Bruno Haible <bruno@clisp.org>
22708 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
22709 * lib/mbswidth.h: Include <stddef.h>, for size_t.
22711 * lib/mbswidth.h (PARAMS): Remove macro.
22712 (mbswidth, mbsnwidth): Use ANSI C function declarations.
22713 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
22715 * lib/gcd.h (PARAMS): Remove macro.
22716 (gcd): Use ANSI C function declarations.
22717 * lib/gcd.c (gcd): Likewise.
22719 2002-11-15 Bruno Haible <bruno@clisp.org>
22721 * lib/strcspn.c: Include <stddef.h>.
22722 (strcspn): Use ANSI C function declaration. Change return type to
22724 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
22725 (strpbrk): Use NULL.
22726 * lib/strpbrk.h (PARAMS): Remove macro.
22727 (strpbrk): Use ANSI C function declaration.
22728 * lib/strstr.c: Don't include <sys/types.h>.
22729 * lib/strstr.h (PARAMS): Remove macro.
22730 (strstr): Use ANSI C function declarations.
22732 2002-11-14 Karl Berry <karl@gnu.org>
22734 * config/mkinstalldirs: `do' on separate line, instead of
22737 2002-11-06 Bruno Haible <bruno@clisp.org>
22739 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
22740 * lib/gcd.c (gcd): Likewise.
22742 2002-11-05 Bruno Haible <bruno@clisp.org>
22744 * lib/gcd.h: New file, from gettext-0.11.5.
22745 * lib/gcd.c: New file, from gettext-0.11.5.
22747 2002-11-05 Bruno Haible <bruno@clisp.org>
22749 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22750 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22751 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22752 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22754 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
22756 * lib/makepath.c: Include gettext.h instead of <locale.h> and
22759 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
22760 * lib/human.c: Include gettext.h instead of <libintl.h>.
22761 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
22762 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
22763 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
22764 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
22765 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
22766 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
22767 (textdomain): Remove definition.
22768 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
22770 * lib/long-options.c: Remove include of <libintl.h> and definition of
22772 * lib/same.c: Remove include of <libintl.h> and definition of _.
22774 2002-11-04 Owen Taylor <otaylor@redhat.com>
22776 * lib/config.charset: A few additions for Solaris.
22778 2002-11-04 Bruno Haible <haible@clisp.cons.org>
22780 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
22781 * lib/localcharset.c (locale_charset): Declare as extern "C".
22783 2002-11-04 Bruno Haible <haible@clisp.cons.org>
22785 * lib/config.charset: msdos in uk_UA uses CP1125.
22787 2002-11-04 Bruno Haible <bruno@clisp.org>
22789 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
22790 * lib/strcase.h: New file, from GNU gettext-0.11.5.
22791 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
22792 * lib/strstr.h: New file, from GNU gettext-0.11.5.
22793 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
22795 2002-11-04 Bruno Haible <bruno@clisp.org>
22797 * lib/localcharset.c (locale_charset): Don't return an empty string.
22799 2002-11-04 Bruno Haible <bruno@clisp.org>
22801 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
22804 2002-11-04 Bruno Haible <bruno@clisp.org>
22806 * lib/config.charset: Update for newest glibc. Add canonical names
22807 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
22809 2002-11-04 Bruno Haible <bruno@clisp.org>
22811 * lib/config.charset: Add support for NetBSD.
22813 2002-11-04 Bruno Haible <bruno@clisp.org>
22815 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
22817 2002-11-01 Bruno Haible <bruno@clisp.org>
22819 * configure.in: Add AC_CONFIG_AUX_DIR call.
22820 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
22822 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
22824 2002-09-28 Karl Berry <karl@gnu.org>
22826 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
22827 installed automake until the next release, since changes have been
22830 2002-09-25 Karl Berry <karl@gnu.org>
22832 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
22833 * lib/getopt*: copy from libc/posix.
22834 * lib/gettext.h: copy from gettext.
22835 * lib/.cppi-disable: add strdup.c, gettext.h.
22837 2002-09-25 Karl Berry <karl@gnu.org>
22839 * config/srclist.txt: enable gettext.h check.
22840 * config/config.{guess,sub}: update from prep.
22841 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
22842 from automake 1.6.3.
22845 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
22847 * regex.c (PATFETCH): Remove the translating fetch.
22848 (PATFETCH_RAW): Rename to PATFETCH.
22849 (set_image_of_range): New fun.
22850 (SET_RANGE_TABLE_WORK_AREA): Use it.
22851 (regex_compile): Don't translate the pattern chars so eagerly.
22852 Only do it when inserting an `exactn' bytecode or when handling
22854 (mutually_exclusive_p): Avoid empty statement.
22856 2002-07-06 Jim Meyering <meyering@lucent.com>
22858 * m4/README: Don't mention Makefile.am.in.
22859 Outline how I've tested changes to .m4 files. Yep, it's a pain.
22861 2002-07-01 Jim Meyering <meyering@lucent.com>
22863 * lib/c-stack.c: Include sys/time.h.
22864 From Volker Borchert.
22866 2002-06-26 Paul Eggert <eggert@twinsun.com>
22868 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
22870 2002-06-26 Paul Eggert <eggert@twinsun.com>
22872 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
22873 New macro. Use it uniformly instead of
22874 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
22875 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
22876 reported by Vin Shelton.
22878 2002-06-22 Paul Eggert <eggert@twinsun.com>
22880 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
22881 Do not assume SA_SIGINFO behavior.
22882 Bug reported by Jim Meyering on NetBSD 1.5.2.
22884 2002-06-22 Jim Meyering <meyering@lucent.com>
22886 * m4/c-stack.m4: New file, from diffutils-2.8.2.
22887 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
22889 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
22890 now that configure.ac uses AC_GNU_SOURCE.
22891 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
22892 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
22894 Update to latest tools. Suggestions from Paul Eggert.
22895 * m4/stdbool.m4: New file, from diffutils-2.8.2.
22896 * m4/gnu-source.m4: Update from diffutils-2.8.2.
22897 * m4/fnmatch.m4: Likewise.
22898 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
22899 to AC_HEADER_STDBOOL
22901 2002-06-22 Jim Meyering <meyering@lucent.com>
22903 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
22904 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
22906 2002-06-22 Jim Meyering <meyering@lucent.com>
22908 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
22910 * lib/exitfail.c, exitfail.h: Likewise.
22911 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
22913 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
22915 (EXTRA_DIST): Add fnmatch_loop.c.
22916 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
22918 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
22919 * lib/fnmatch.c: Update from diffutils-2.8.2.
22920 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
22921 * lib/fnmatch.h: Remove file.
22923 2002-06-21 Jim Meyering <meyering@lucent.com>
22925 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
22926 * m4/mbrtowc.m4: Likewise.
22928 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
22929 * m4/mbswidth.m4: Reflect name change:
22930 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
22931 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22933 * m4/lib-link.m4: Update from gettext-0.11.2.
22934 * m4/gettext.m4: Likewise.
22936 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
22937 From Alfred M. Szmidt.
22939 2002-06-18 Paul Eggert <eggert@twinsun.com>
22941 * lib/file-type.h: Report an error if neither S_ISREG nor
22942 S_IFREG is defined, instead of using a test specific to glibc
22943 2.2. This should be safe, since POSIX requires S_ISREG and
22944 Unix Version 7 had S_IFREG. We don't need to check for
22945 <sys/types.h> since we don't use any symbols that it defines.
22947 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
22949 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
22950 $@-t, so that each temporary file name is unique and valid in the first
22951 8 characters, for operation under DOS.
22953 2002-06-15 Paul Eggert <eggert@twinsun.com>
22955 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
22957 2002-06-15 Jim Meyering <meyering@lucent.com>
22959 Work even with DJGPP 2.03, which lacks support for symlinks.
22961 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
22963 * lib/lchown.c (S_ISLNK): Likewise.
22965 2002-06-15 Jim Meyering <meyering@lucent.com>
22967 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
22968 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
22969 have been included before this file.
22971 2002-06-14 Jim Meyering <meyering@lucent.com>
22973 * lib/file-type.h: Use the version from diffutils-2.8.2.
22974 * lib/file-type.c: Likewise.
22976 2002-06-07 Jim Meyering <meyering@lucent.com>
22978 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
22979 They're needed at least for NetBSD 1.5.2.
22980 ($statxfs_includes): Include those same headers.
22981 ($statxfs_includes): Include sys/vfs.h if available.
22982 ($statxfs_includes): Likewise for sys/statvfs.h.
22983 Check for the following members in both structs statfs and statvfs:
22984 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
22986 2002-06-01 Jim Meyering <meyering@lucent.com>
22988 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
22989 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
22991 2002-05-28 Jim Meyering <meyering@lucent.com>
22993 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
22994 Reported by Volker Borchert.
22996 2002-05-27 Jim Meyering <meyering@lucent.com>
22998 Fix a problem seen only on nonconforming systems whereby ls.c's
22999 use of localtime, and then of gettimeofday would cause trouble:
23000 the localtime call used to initialize rpl_gettimeofday's save
23001 mechanism would clobber ls's current local time information so
23002 that in any long listing the first file would always be listed
23003 with date 1970-01-01. Analysis by Volker Borchert.
23005 * lib/gettimeofday.c (localtime): Undefine.
23006 (rpl_localtime): New function.
23008 2002-05-27 Jim Meyering <meyering@lucent.com>
23010 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
23013 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
23014 use the replacement function; it wouldn't resolve at link time.
23015 Reported by Volker Borchert.
23017 2002-05-22 Jim Meyering <meyering@lucent.com>
23019 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
23021 * lib/file-type.h: New file.
23022 * lib/file-type.c (file_type): New file/function. Extracted from
23025 2002-04-30 Jim Meyering <meyering@lucent.com>
23027 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
23029 2002-04-29 Paul Eggert <eggert@twinsun.com>
23031 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
23033 2002-04-29 Paul Eggert <eggert@twinsun.com>
23035 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
23036 Do not check for alloca.h (no longer used) or stdbool.h (was never
23037 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
23039 2002-04-29 Paul Eggert <eggert@twinsun.com>
23041 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
23043 2002-04-29 Jim Meyering <meyering@lucent.com>
23045 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
23046 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
23047 Use AC_FUNC_STRNLEN here instead.
23049 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
23050 With autoconf-2.53a, it's part of AC_PROG_CC.
23052 2002-04-28 Paul Eggert <eggert@twinsun.com>
23054 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
23055 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
23057 2002-04-28 Paul Eggert <eggert@twinsun.com>
23059 * lib/sig2str.h, lib/sig2str.c: New files.
23060 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
23062 2002-04-28 Paul Eggert <eggert@twinsun.com>
23064 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
23065 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
23066 of 127, since 64 is the largest conceivable number for ancient
23068 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
23070 2002-04-28 Jim Meyering <meyering@lucent.com>
23072 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
23074 2002-04-24 Jim Meyering <meyering@lucent.com>
23076 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
23077 (jm_PREREQ): Use it.
23079 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
23080 mach/mach.h fcntl.h.
23081 Check for this function: setlocale.
23083 2002-04-24 Jim Meyering <meyering@lucent.com>
23085 * lib/gettext.h: New file, from Gettext.
23086 * lib/Makefile.am (INCLUDES): Remove -I../intl.
23087 (libfetish_a_SOURCES): Add gettext.h.
23089 2002-04-16 Jim Meyering <meyering@lucent.com>
23091 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
23092 ut_pid, ut_id, ut_exit.
23094 2002-04-16 Jim Meyering <meyering@lucent.com>
23096 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
23097 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
23098 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
23100 2002-04-12 Jim Meyering <meyering@lucent.com>
23102 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
23103 now-bogus check for f_type in sys/mount.h. Instead, just test for the
23104 existence of the getmntinfo function. Needed for Darwin 5.3.
23106 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
23107 This is necessary at least on Darwin 5.3.
23109 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
23110 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
23111 strnlen.o in the library, and that makes some versions of ranlib
23114 2002-04-12 Jim Meyering <meyering@lucent.com>
23116 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
23118 2002-04-09 Jim Meyering <meyering@lucent.com>
23120 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
23121 to be more precise. Rather than saying we're checking whether the
23122 function `works', say what we're testing.
23123 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
23124 Reported by Bruno Haible.
23126 2002-03-10 Jim Meyering <meyering@lucent.com>
23128 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
23129 Suggestion from Santiago Vila.
23131 2002-03-08 Jim Meyering <meyering@lucent.com>
23133 * lib/rename.c: Mention that this wrapper is needed also on
23134 mips-dec-ultrix4.4 systems.
23136 2002-03-02 Jim Meyering <meyering@lucent.com>
23138 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
23139 not HAVE_CLOCK_SETTIME.
23141 2002-02-27 Paul Eggert <eggert@twinsun.com>
23143 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
23144 Check for clock_settime.
23146 2002-02-27 Paul Eggert <eggert@twinsun.com>
23148 * lib/nanosleep.h: Rename to....
23149 * lib/timespec.h: New name for nanosleep.h. All uses changed.
23151 * lib/gettime.c: New file.
23152 * lib/settime.c: New file.
23153 * lib/stime.c: Remove.
23155 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
23156 timespec.h. Remove nanosleep.h.
23158 2002-02-25 Paul Eggert <eggert@twinsun.com>
23160 * m4/acl.m4: New file.
23161 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
23162 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
23164 2002-02-25 Paul Eggert <eggert@twinsun.com>
23166 * lib/acl.c, lib/acl.h: New files.
23167 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
23169 2002-02-24 Jim Meyering <meyering@lucent.com>
23171 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
23172 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
23173 cause trouble. Reported by Nelson Beebe.
23175 2002-02-23 Paul Eggert <eggert@twinsun.com>
23177 * lib/path-concat.c (xpath_concat): Reorder code to pacify
23178 compilers that don't know that xalloc_die never returns.
23180 2002-02-20 Jim Meyering <meyering@lucent.com>
23182 * lib/getdate.c: Regenerate using bison-1.33.
23184 2002-02-17 Jim Meyering <meyering@lucent.com>
23186 * config/config.guess (main): Don't use `head -1'; it's no longer
23187 portable. Use `sed 1q' instead.
23189 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
23191 * m4/codeset.m4: Upgrade to gettext-0.11.
23192 * m4/gettext.m4: Upgrade to gettext-0.11.
23193 * m4/glibc21.m4: Upgrade to gettext-0.11.
23194 * m4/iconv.m4: Upgrade to gettext-0.11.
23195 * m4/isc-posix.m4: Upgrade to gettext-0.11.
23196 * m4/lcmessage.m4: Upgrade to gettext-0.11.
23197 * m4/lib-ld.m4: New file, from gettext-0.11.
23198 * m4/lib-link.m4: New file, from gettext-0.11.
23199 * m4/lib-prefix.m4: New file, from gettext-0.11.
23200 * m4/progtest.m4: Upgrade to gettext-0.11.
23202 2002-02-15 Paul Eggert <eggert@twinsun.com>
23204 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
23205 (jm_PREREQ): Use it.
23207 2002-02-15 Paul Eggert <eggert@twinsun.com>
23209 * lib/posixver.c, lib/posixver.h: New files.
23210 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
23212 2002-02-02 Paul Eggert <eggert@twinsun.com>
23213 Bruno Haible <bruno@clisp.org>
23215 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
23216 (fwrite_success_callback): New declaration.
23217 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
23218 print_unicode_char. Call failure callback instead of error.
23219 (fwrite_success_callback): New function.
23220 (exit_failure_callback): New function.
23221 (fallback_failure_callback): New function.
23222 (print_unicode_char): Call unicode_to_mb.
23224 2002-01-26 Jim Meyering <meyering@lucent.com>
23226 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
23227 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
23229 2002-01-26 Jim Meyering <meyering@lucent.com>
23231 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
23233 2002-01-22 Paul Eggert <eggert@twinsun.com>
23235 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
23237 2002-01-22 Jim Meyering <meyering@lucent.com>
23239 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
23240 Otherwise, some versions of automake would omit the rule that makes
23241 Makefile from Makefile.in.
23243 2002-01-21 Paul Eggert <eggert@twinsun.com>
23245 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
23246 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
23247 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
23248 (memcoll): Set errno to zero if there is no error.
23250 * lib/quotearg.c (quotearg_buffer_restyled):
23251 Fix bug with quoting buffers containing NUL when backslashing escapes.
23252 This bug was exposed by the other changes in this patch.
23253 (quotearg_n_options): New arg ARGSIZE.
23254 All callers changed.
23255 (quoting_options_from_style): New function.
23256 (quotearg_n_style): Use it.
23257 (quotearg_n_style_mem): New function.
23259 * lib/quotearg.h (quotearg_n_style_mem): New function.
23261 2002-01-19 Jim Meyering <meyering@lucent.com>
23263 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
23264 Remove useless quotes: DF_PROG="df".
23265 * m4/strnlen.m4: New file.
23267 2002-01-16 Paul Eggert <eggert@twinsun.com>
23269 * lib/backupfile.c (ISDIGIT): Comment fix.
23270 * lib/getdate.y (ISDIGIT): Likewise.
23271 * lib/posixtm.c (ISDIGIT, year): Likewise.
23272 * lib/strverscmp.c (ISDIGIT): Likewise.
23273 * lib/userspec.c (ISDIGIT): Likewise.
23275 2002-01-16 Jim Meyering <meyering@lucent.com>
23277 * lib/getdate.y: Add three semicolons, each just before a closing
23278 brace. Bison (as of version 1.31) no longer papers over that mistake.
23280 2002-01-05 Jim Meyering <meyering@lucent.com>
23282 * lib/version-etc.c (version_etc_copyright): Update copyright year.
23284 2001-12-19 Paul Eggert <eggert@twinsun.com>
23286 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
23287 not silently exit merely because the output buffer happens to
23288 have nothing pending.
23290 2001-12-18 Paul Eggert <eggert@twinsun.com>
23292 See the big note in ../ChangeLog.
23293 * lib/human.c (suffixes): Prefer K to k for 1024.
23294 (generate_suffix_backwards): New function.
23295 (human_readable_inexact): Use it.
23296 * lib/xstrtol.c (__xstrtol): If there is no number but there
23297 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
23298 Accept 'K' as well as 'k'.
23300 2001-12-15 Jim Meyering <meyering@lucent.com>
23302 * lib/regex.h (__restrict_arr): Update from libc.
23304 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
23305 as `remote' if the name starts with `//'. Suggested by Michael Stone.
23308 2001-12-14 Jim Meyering <meyering@lucent.com>
23310 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
23311 Suggestion from Bruno Haible.
23313 2001-12-10 Jim Meyering <meyering@lucent.com>
23315 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
23316 xrealloc, Instead, include "xalloc.h".
23317 (initbuffer): Don't cast xmalloc return value to char*.
23318 (readline): Reword comment.
23319 Don't cast xrealloc return value to char*
23320 Return NULL, not 0.
23322 2001-12-09 Jim Meyering <meyering@lucent.com>
23324 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
23325 about `signed and unsigned type in conditional expression'.
23326 * lib/posixtm.c (posix_time_parse): Likewise.
23328 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
23330 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
23331 to avoid a pedantic warning.
23333 * lib/getstr.c: Don't include assert.h.
23334 (getstr): Remove warning-evoking assertions.
23335 Return -1 if offset parameter is out of bounds.
23336 Change the type of a local from int to size_t.
23338 * lib/strftime.c (my_strftime_localtime_r): Include this function
23339 definition in the `#if ! HAVE_TM_GMTOFF' block.
23341 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
23342 Include xalloc.h instead.
23344 2001-12-02 Jim Meyering <meyering@lucent.com>
23346 * lib/tempname.c: Don't declare getenv, thus reverting the change of
23347 2001-11-18. It's no longer necessary, now that stdlib.h is always
23350 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
23351 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
23353 2001-11-30 Akim Demaille <akim@epita.fr>
23355 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
23356 before being defined.
23358 2001-11-27 Paul Eggert <eggert@twinsun.com>
23360 * lib/quotearg.h (quotearg_n, quotearg_n_style):
23361 First arg is int, not unsigned.
23362 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
23363 (SIZE_MAX, UINT_MAX): New macros.
23364 (quotearg_n_options): Abort if N is negative.
23365 Avoid overflow check on hosts where size_t is 64 bits and int
23366 is 32 bits, as overflow is impossible there.
23367 Fix off-by-one typo that caused unnecessary reallocation.
23369 2001-11-27 Jim Meyering <meyering@lucent.com>
23371 * lib/tempname.c: Merge with version from libc.
23372 * lib/regex.c: Likewise.
23374 * lib/tempname.c: Include stdlib.h unconditionally. On some old
23375 systems for which STDC_HEADERS is 0, it was not included, resulting in
23376 a warning about an integer-to-pointer conversion problem with getenv.
23377 Reported by Volker Borchert.
23379 2001-11-26 Jim Meyering <meyering@lucent.com>
23381 * lib/gtod.h: Remove file.
23382 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
23383 * lib/gettimeofday.c: Don't include gtod.h.
23384 (GTOD_init): Remove function.
23385 (rpl_gettimeofday): Do its job here instead, rather than aborting.
23386 Suggestion from Volker Borchert.
23388 2001-11-23 Jim Meyering <meyering@lucent.com>
23390 * lib/hash.h (struct hash_table): Don't define here. Merely declare
23392 * lib/hash.c (struct hash_table): Define it here instead.
23394 2001-11-22 Jim Meyering <meyering@lucent.com>
23396 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
23398 2001-11-20 Jim Meyering <meyering@lucent.com>
23400 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
23401 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
23403 2001-11-19 Jim Meyering <meyering@lucent.com>
23405 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
23406 directory. Use "conftestXXXXXX" as the template.
23407 Suggestion from Paul Eggert.
23409 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
23410 immediately, so the test doesn't mistakenly hit the max-open-files
23413 2001-11-18 Paul Eggert <eggert@twinsun.com>
23415 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
23416 (TEMPORARIES): New macro.
23417 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
23418 removes an artificial limitation (e.g. HP-UX 10.20, where
23421 2001-11-18 Jim Meyering <meyering@lucent.com>
23423 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
23425 2001-11-18 Jim Meyering <meyering@lucent.com>
23427 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
23430 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
23431 files will be created before anything else.
23433 2001-11-17 Paul Eggert <eggert@twinsun.com>
23435 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
23436 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
23438 2001-11-17 Jim Meyering <meyering@lucent.com>
23440 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
23441 Prompted by a report from Bob Proulx.
23443 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
23444 Instead, require UTILS_FUNC_MKSTEMP.
23446 2001-11-17 Jim Meyering <meyering@lucent.com>
23448 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
23449 Now, that's done as part of AC_FUNC_STRTOD.
23451 2001-11-17 Jim Meyering <meyering@lucent.com>
23453 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
23454 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
23455 rather than group writable. Patch by Juan F. Codagnone.
23457 * lib/readtokens.c: Remove explicit declarations of xmalloc and
23458 xrealloc, Instead, include "xalloc.h".
23460 * lib/mountlist.c: Include unlocked-io.h after all system headers.
23461 Remove explicit declarations of xmalloc, xrealloc,
23462 and xstrdup. Instead, include "xalloc.h".
23464 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
23466 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
23468 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
23470 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
23471 Reported by Padraig Brady.
23473 * lib/mkstemp.c: #undef mkstemp.
23475 (rpl_mkstemp): Rename from mkstemp.
23478 2001-11-16 Jim Meyering <meyering@lucent.com>
23480 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
23481 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
23482 determine the amount of total physical memory, use pstat_getstatic.
23483 HPUX-11 doesn't define _SC_PHYS_PAGES.
23484 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
23485 If sysconf couldn't be used to determine the amount of available
23486 physical memory, use both pstat_getstatic and pstat_getdynamic.
23487 Based on a patch from Bob Proulx.
23489 2001-11-10 Jim Meyering <meyering@lucent.com>
23491 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
23492 (jm_PREREQ): Use it.
23494 2001-11-09 Jim Meyering <meyering@lucent.com>
23496 * m4/jm-macros.m4: Require autoconf-2.52f.
23497 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
23498 Use these AC_-prefixed names, not the AM_-prefixed ones.
23500 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
23502 2001-11-05 Jim Meyering <meyering@lucent.com>
23504 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
23506 2001-11-04 Jim Meyering <meyering@lucent.com>
23508 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
23511 2001-11-03 Jim Meyering <meyering@lucent.com>
23513 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
23516 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
23517 know the name of the variable in the macro definition.
23519 2001-11-03 Jim Meyering <meyering@lucent.com>
23521 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
23522 in argmatch_to_argument call.
23524 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
23527 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
23528 e.g., a fault due to an attempt to free a NULL pointer.
23530 2001-11-01 Jim Meyering <meyering@lucent.com>
23532 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
23533 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
23535 2001-11-01 Jim Meyering <meyering@lucent.com>
23537 * lib/dirfd.c, lib/dirfd.h: New files.
23538 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
23540 * lib/hash.c (hash_print) [TESTING]: Clean up.
23542 2001-10-22 Paul Eggert <eggert@twinsun.com>
23544 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
23545 to avoid a warning if -Wall.
23547 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
23550 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
23551 (per RMS's instructions, this is now the canonical source)
23552 * lgpl/, gpl/: New directories.
23554 2001-10-21 Paul Eggert <eggert@twinsun.com>
23556 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
23558 2001-10-21 Jim Meyering <meyering@lucent.com>
23560 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
23561 this code would end up calling gettext even in packages built
23562 with --disable-nls.
23563 * lib/getopt.c (_): Likewise.
23564 * lib/regex.c (_): Likewise.
23566 2001-10-20 Paul Eggert <eggert@twinsun.com>
23568 * m4/error.m4 (jm_PREREQ_ERROR):
23569 Do not invoke AC_CHECK_FUNCS with strerror_r, as
23570 AC_FUNC_STRERROR_R does that.
23571 Check for strerror declaration.
23573 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
23574 are supposed to have them these days.
23575 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
23576 Merge changes from latest Autoconf CVS.
23577 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
23578 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
23579 POSIX decided to standardize on the int flavor of strerror_r.
23581 2001-10-20 Paul Eggert <eggert@twinsun.com>
23583 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
23584 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
23585 Use strerror_r that is only a macro, even if it is not a function.
23586 (strerror): Check for HAVE_DECL_STRERROR before declaring.
23587 (private_strerror): Use prototypes, not old-style function definition.
23588 (print_errno_message): New function.
23589 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
23590 char*-flavored one.
23591 (error_tail, error, error_at_line): Use it.
23593 2001-10-11 Jim Meyering <meyering@lucent.com>
23595 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
23596 and quote_n (1, ... to avoid clobbering a buffer.
23598 2001-10-05 Jim Meyering <meyering@lucent.com>
23600 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
23602 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
23603 * lib/hash-pjw.h: New file.
23605 2001-09-30 Jim Meyering <meyering@lucent.com>
23607 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
23608 `struct fsstat' has the `f_fstypename' member.
23609 Use that to define FS_TYPE, which is now used to make
23610 the getfsstat link test tighter.
23612 2001-09-30 Jim Meyering <meyering@lucent.com>
23614 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
23615 Include <sys/ucred.h>, for Apple Darwin.
23616 Include sys/mount.h and sys/fs_types.h only if available.
23618 (read_filesystem_list): Use FS_TYPE.
23620 2001-09-29 Paul Eggert <eggert@twinsun.com>
23622 * lib/exclude.c (excluded_filename): 0 -> false, since it's
23625 2001-09-29 Jim Meyering <meyering@lucent.com>
23627 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
23628 [one-argument getmntent function]): Include stdio.h before mntent.h.
23629 SunOS 4.1.x needs it for the declaration of `FILE'.
23630 Patch by Volker Borchert.
23632 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
23633 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
23634 sys/fs_types.h, and make the link-test for getfsstat guard #include
23635 directives with appropriate #if HAVE_*_H tests so that we can
23636 detect getfsstat on Apple Darwin1.3.7 systems.
23637 Reported by Nelson Beebe.
23638 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
23640 2001-09-28 Paul Eggert <eggert@twinsun.com>
23642 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
23643 #defines strtoimax. Also treat the other strto* functions
23646 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23647 Check for strtoul and strtoumax,
23648 as those declarations are made even in the signed case.
23649 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
23650 Likewise, for strtol and strtoimax.
23652 2001-09-28 Paul Eggert <eggert@twinsun.com>
23654 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
23655 #defines strtoimax. Also treat the other strto* functions
23658 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
23659 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
23660 (strtoimax, strtoumax): Do not declare if already defined as a macro.
23662 2001-09-26 Jim Meyering <meyering@lucent.com>
23664 Most macros in unlocked-io.h had the wrong number of arguments.
23665 * lib/gen-uio: New script.
23666 (USE_UNLOCKED_IO): Define to 1 if not already defined.
23667 * lib/unlocked-io.hin: Remove file.
23668 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
23669 rather than trying to embed it here.
23670 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
23671 Reported by Padraig Brady.
23673 2001-09-25 Volker Borchert <bt@teknon.de>
23675 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
23678 2001-09-24 Jim Meyering <meyering@lucent.com>
23680 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
23682 2001-09-23 Jim Meyering <meyering@lucent.com>
23684 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
23685 instead of the mere test for existence of mntent.h. The latter
23686 would get a false-positive on AIX 3.4 systems.
23687 In the outer getmntent if-block, don't die if neither of the getmntent
23688 tests succeeds. Instead, just fall through and continue with the
23691 2001-09-23 Jim Meyering <meyering@lucent.com>
23693 * lib/mountlist.c: Remove useless parentheses in #if directives.
23694 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
23695 the deprecated MOUNTED symbol is no longer defined in mntent.h.
23697 2001-09-22 Jim Meyering <meyering@lucent.com>
23699 * m4/gettext.m4: New file. From gettext.
23700 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
23701 * m4/progtest.m4: Likewise
23702 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
23703 * m4/glibc21.m4: Likewise.
23705 * m4/libintl.m4: Remove. No longer used.
23707 2001-09-22 Jim Meyering <meyering@lucent.com>
23709 * lib/localcharset.c: Update from latest gettext.
23710 * lib/config.charset: Likewise.
23712 2001-09-20 Jim Meyering <meyering@lucent.com>
23714 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
23716 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
23719 2001-09-20 Jim Meyering <meyering@lucent.com>
23721 * lib/xstrtol.c (strtoimax): Guard declaration with
23722 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
23723 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
23724 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
23725 (strtoumax): Likewise, for completeness (it wasn't necessary).
23727 2001-09-17 Paul Eggert <eggert@twinsun.com>
23729 * lib/strtoimax.c (HAVE_LONG_LONG):
23730 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
23731 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
23732 to work around bug in IBM C compiler.
23734 2001-09-17 Jim Meyering <meyering@lucent.com>
23736 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
23737 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
23738 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
23739 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
23740 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
23741 whenever the right hand side need not be expanded by the shell.
23743 2001-09-16 Paul Eggert <eggert@twinsun.com>
23745 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
23746 library. It's not correct, as some older glibcs are buggy.
23747 fnmatch wasn't fixed until glibc 2.2.
23749 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
23750 special shell magic here.
23752 2001-09-16 Jim Meyering <meyering@lucent.com>
23754 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
23755 * m4/jm-macros.m4: Require it.
23757 2001-09-16 Jim Meyering <meyering@lucent.com>
23759 * lib/mkdir.c: New file.
23761 2001-09-15 Jim Meyering <meyering@lucent.com>
23763 * m4/jm-macros.m4: Check for help2man.
23765 2001-09-11 Jim Meyering <meyering@lucent.com>
23767 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
23768 The body, by Paul Eggert, was moved here from configure.in.
23769 * m4/jm-macros.m4: Require UTILS_HOST_OS.
23771 2001-09-04 Paul Eggert <eggert@twinsun.com>
23773 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
23774 (jm_PREREQ): Use it.
23776 2001-09-04 Paul Eggert <eggert@twinsun.com>
23778 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
23779 Use ssize_t, not int, to store result of readlink.
23780 Check for ssize_t overflow as well as size_t overflow,
23781 as POSIX says the result of readlink is implementation-defined
23782 when ssize_t overflows.
23783 Remove unnecessary cast to char*.
23784 Use free+malloc instead of realloc, as the storage doesn't need
23785 to be preserved and it's clearer and can be more efficient that way.
23786 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
23787 * lib/xreadlink.h (xreadlink): Update prototype.
23789 2001-09-04 Paul Eggert <eggert@twinsun.com>
23791 * lib/xgetcwd.c: Revert some of the previous change; intead,
23792 fix the HAVE_GETCWD_NULL code to behave more like the
23793 !HAVE_GETCWD_NULL code used to.
23795 Include "xalloc.h".
23796 (xgetcwd): Do not return NULL when memory is exhausted; instead,
23799 2001-09-03 Paul Eggert <eggert@twinsun.com>
23801 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
23802 sys/param.h, as pathmax.h includes them.
23804 2001-09-03 Paul Eggert <eggert@twinsun.com>
23806 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
23807 (jm_PREREQ_XGETCWD): New macro.
23809 * m4/getcwd.m4: New file.
23811 2001-09-03 Paul Eggert <eggert@twinsun.com>
23813 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
23814 like the HAVE_GETCWD_NULL code.
23815 Include pathmax.h if not HAVE_GETCWD.
23816 Do not include xalloc.h.
23817 (INITIAL_BUFFER_SIZE): New symbol.
23818 Do not use xmalloc / xrealloc, since the caller is responsible for
23819 handling errors. Preserve errno around `free' during failure.
23820 Do not overrun buffer when using getwd.
23822 2001-09-03 Paul Eggert <eggert@twinsun.com>
23824 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
23825 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
23828 2001-09-03 Paul Eggert <eggert@twinsun.com>
23830 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
23831 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
23832 spotted by Jim Meyering.
23834 2001-09-03 Jim Meyering <meyering@lucent.com>
23836 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
23839 2001-09-02 Jim Meyering <meyering@lucent.com>
23841 * lib/error.c: Update from GNU libc.
23843 2001-09-01 Jim Meyering <meyering@lucent.com>
23845 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
23848 2001-09-01 Jim Meyering <meyering@lucent.com>
23850 * lib/xreadlink.c: New file.
23851 * lib/xreadlink.h: New file.
23852 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
23855 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
23856 doesn't conflict with sparc Solaris 7's definition in
23857 /usr/include/sys/int_types.h.
23859 * lib/exclude.c: Use `""', not `<>' to #include non-system header
23861 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
23862 and strncasecmp as r-values. Unixware didn't have declarations.
23864 2001-08-31 Paul Eggert <eggert@twinsun.com>
23866 * lib/xstrtol.h: Add copyright notice.
23867 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
23868 LONGINT_INVALID_SUFFIX_CHAR.
23870 2001-08-31 Paul Eggert <eggert@twinsun.com>
23872 * lib/xstrtol.c (strtoimax): New decl.
23874 2001-08-31 Paul Eggert <eggert@twinsun.com>
23876 * lib/xgetcwd.c: Don't include pathmax.h.
23877 Include stdlib.h and unistd.h if available.
23879 (xmalloc, xstrdup, free): Remove decls.
23880 (xgetcwd): Don't assume sizes fit in unsigned.
23881 Check for overflow when computing sizes.
23882 Simplify reallocation code.
23884 2001-08-31 Paul Eggert <eggert@twinsun.com>
23886 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
23887 a directory's st_size can have an arbitrary value, so the old
23888 usage could waste an arbitrary amount of memory. All uses
23890 * lib/savedir.h: Update prototype.
23892 2001-08-31 Paul Eggert <eggert@twinsun.com>
23894 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
23896 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
23899 Also, make the following further changes to make this file's
23900 configuration more similar to that of strtol.c:
23901 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
23902 (strtoumax, uintmax_t, strtoull, strtol): Remove.
23903 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
23904 (strtoimax): Renamed from strtoumax. All uses of unsigned values
23905 changed to signed values.
23907 And make the following changes as well:
23908 Fix copyright notice, as 1999 was missing.
23909 (verify): New macro.
23910 (strtoimax): Check sizes at compile-time, not run-time.
23911 Prefer strtol to strtoll if both work.
23912 (main): Remove; it was not that useful and was a pain to maintain.
23914 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
23916 2001-08-31 Jim Meyering <meyering@lucent.com>
23918 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
23919 Use an initial, malloc'd, buffer of length 128 rather than
23920 a statically allocated one of length 1024.
23922 2001-08-30 Paul Eggert <eggert@twinsun.com>
23924 Simplify code, partly by assuming autoconf 2.52 semantics.
23926 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
23928 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
23929 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
23931 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
23932 Move AC_REQUIRE to next-to-top level, to avoid confusion.
23933 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
23934 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
23935 jm_AC_HEADER_INTTYPES_H.
23936 * m4/jm-macros.m4 (jm_MACROS): Likewise.
23938 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
23940 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23941 Quote first arg of AC_DEFUN.
23942 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
23943 since they are needed to parse the include file even if we need
23944 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
23945 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
23946 but with opposite signedness.
23948 2001-08-30 Paul Eggert <eggert@twinsun.com>
23950 Merge 'exclude' changes from tar 1.13.22.
23951 This fixes one or two unlikely storage allocation overflow bugs,
23952 but doesn't change user-visible behavior otherwise.
23954 2001-08-30 Paul Eggert <eggert@twinsun.com>
23956 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
23957 (jm_PREREQ_EXCLUDE): New macro.
23959 2001-08-30 Paul Eggert <eggert@twinsun.com>
23961 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
23964 2001-08-30 Paul Eggert <eggert@twinsun.com>
23966 * lib/hash.c: Remove '2001' from copyright notice.
23968 2001-08-30 Paul Eggert <eggert@twinsun.com>
23970 * lib/full-write.h: New file.
23971 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
23972 * lib/full-write.c: Correct credits, as cccp.c no longer
23973 exists and anyway it was so heavily changed from the old cccp
23974 code as to be unrecognizable. Include full-write.h.
23975 (full_write) Return size_t, with short writes meaning failure.
23976 All callers changed. This fixes a bug with large buffers
23978 * lib/utime.c: Include full-write.h.
23980 2001-08-30 Paul Eggert <eggert@twinsun.com>
23982 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
23983 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
23984 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
23985 Include if available.
23986 (<xalloc.h>): Include
23987 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
23988 (verify): New macro. Use it to verify that EXCLUDE macros do not
23989 collide with FNM macros.
23990 (struct patopts): New struct.
23991 (struct exclude): Use it, as exclude patterns now come with options.
23992 (new_exclude): Support above changes.
23993 (new_exclude, add_exclude_file):
23994 Initial size must now be a power of two to simplify overflow checking.
23995 (free_exclude, fnmatch_no_wildcards): New function.
23996 (excluded_filename): No longer requires options arg, as the options
23997 are determined by add_exclude. Now returns bool, not int.
23998 (excluded_filename, add_exclude):
23999 Add support for the fancy new exclusion options.
24000 (add_exclude, add_exclude_file): Now takes int options arg.
24001 Check for arithmetic overflow when computing sizes.
24002 (add_exclude_file): xrealloc might modify errno, so don't
24003 realloc until after errno might be used.
24005 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
24007 (free_exclude): New decl.
24008 (add_exclude, add_exclude_file): Now takes int options arg.
24009 (excluded_filename): No longer requires options arg, as the options
24010 are determined by add_exclude. Now returns bool, not int.
24012 2001-08-30 Paul Eggert <eggert@twinsun.com>
24014 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
24016 2001-08-27 Jim Meyering <meyering@lucent.com>
24018 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
24020 * lib/version-etc.c (N_): Remove definition.
24021 Revert most of last change.
24022 Instead, simply don't mark the `Copyright...' string for translation.
24023 Based on advice from Paul Eggert.
24025 * lib/strtoxmax.c: Tweak comment.
24027 2001-08-26 Jim Meyering <meyering@lucent.com>
24029 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
24031 * m4/xstrtoimax.m4: New file.
24032 * m4/xstrtoumax.m4: Add comments explaining why we
24033 AC_REPLACE_FUNCS(strtol).
24035 2001-08-26 Jim Meyering <meyering@lucent.com>
24037 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
24038 of copyright with `%s' so translators don't get an untranslated
24040 (COPYRIGHT_YEAR): Define.
24041 (version_etc): Use fprintf rather than fputs.
24042 Suggestion from Ulrich Drepper.
24044 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
24046 * lib/strtoll.c: New file, from GNU libc.
24047 * lib/xstrtoimax.c: New file.
24049 * lib/xstrtol.h: Add xstrtoimax.
24050 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
24051 * lib/strtoimax.c: New file. Likewise, but first define
24054 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
24056 * lib/strtoxmax.c: ... then renamed to this.
24058 2001-08-18 Paul Eggert <eggert@twinsun.com>
24060 * m4/inttypes.m4: Add AC_PREREQ(2.13).
24061 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
24062 (jm_AC_TYPE_INTMAX_T): New macro.
24063 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
24065 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
24067 * m4/longlong.m4: Renamed from ulonglong.m4.
24068 * m4/inttypes.m4: Renamed from inttypes_h.m4.
24069 * m4/uintmax_t.m4: Removed.
24071 2001-08-13 Paul Eggert <eggert@twinsun.com>
24073 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
24074 Port to Solaris 8, where 'sed' requires a space after the 'r'
24075 command, and where sh dislikes "$/". Clean up the spacing a bit.
24076 Redirect output to $tmp just once.
24078 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
24080 * lib/addext.c (<errno.h>): Include.
24081 (errno): Declare if not defined.
24082 (addext): Work correctly when pathconf returns -1 and leaves
24083 errno alone because there is no limit. Also, work even if
24084 pathconf returns a value greater than SIZE_MAX.
24086 2001-08-12 Jim Meyering <meyering@lucent.com>
24088 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
24089 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
24090 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
24091 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
24092 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
24093 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
24094 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
24095 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
24096 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
24097 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
24098 utime.m4, utimes.m4, xstrtoumax.m4:
24099 Quote the first argument in each use of AC_DEFUN.
24101 2001-08-12 Jim Meyering <meyering@lucent.com>
24103 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
24104 Simply `return getcwd (NULL, 0);'.
24105 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
24106 Use 1300 as initial value for length, not PATH_MAX.
24108 * lib/pathmax.h: Clean up cpp syntax.
24110 2001-08-12 Jim Meyering <meyering@lucent.com>
24112 * lib/gettimeofday.c: New file.
24113 * lib/gtod.h: New file.
24114 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
24116 2001-08-05 Jim Meyering <meyering@lucent.com>
24118 * m4/jm-macros.m4: Require autoconf-2.52.
24120 2001-08-04 Jim Meyering <meyering@lucent.com>
24122 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
24123 stmt, to get in sync with glibc.
24125 2001-08-03 Paul Eggert <eggert@twinsun.com>
24127 The following changes are from gettext 0.10.39 as maintained by
24130 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
24131 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
24132 with inverted sense. All uses changed.
24134 * lib/mbswidth.c: Don't include <limits.h>.
24135 Include <stdlib.h> and <string.h> unconditionally.
24136 (iswcntrl, mbsinit, ISCNTRL): New macros.
24137 (mbsnwidth): Use K&R style function declarations.
24138 Don't bother checking for MB_LEN_MAX == 1, since the compiler
24139 can optimize it when MB_CUR_MAX == 1.
24140 The width of control characters is zero, not 1.
24142 2001-08-03 Paul Eggert <eggert@twinsun.com>
24144 The following changes are from gettext 0.10.39 as maintained by
24145 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
24147 * m4/codeset.m4: Upgrade to serial AM1.
24148 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
24149 all uses changed. Quote first arg of AC_DEFUN.
24150 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
24152 * m4/iconv.m4: Upgrade to serial AM2.
24153 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
24154 Add --with-libconv-prefix.
24155 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
24156 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
24157 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
24158 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
24159 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
24161 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
24162 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
24163 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
24164 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
24165 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
24166 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
24167 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24168 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
24169 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
24171 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
24174 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
24175 not the default value.
24177 2001-06-25 Bruno Haible <haible@clisp.cons.org>
24178 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
24179 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
24180 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
24181 Also check for iswcntrl, used for wcwidth fallback.
24182 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
24185 2001-08-03 Jim Meyering <meyering@lucent.com>
24187 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
24188 as it was in the original. Reported by Paul Eggert.
24190 2001-07-16 Jim Meyering <meyering@lucent.com>
24192 * m4/gettimeofday.m4: New file.
24193 Prompted by a report from Bernhard Baehr.
24195 2001-07-15 Jim Meyering <meyering@lucent.com>
24197 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
24198 stuff. Now it's in ../Makefile.cfg.
24200 2001-07-15 Jim Meyering <meyering@lucent.com>
24202 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
24203 (BUILT_SOURCES): Add unlocked-io.h.
24204 (io_functions): Define.
24205 (unlocked-io.h): New rule.
24206 (DISTCLEANFILES): Add unlocked-io.h.
24207 (all-local): Depend on unlocked-io.h, to ensure it is created.
24209 * lib/unlocked-io.hin: New file
24211 * lib/regex.c: Update from glibc.
24213 2001-07-05 Jim Meyering <meyering@lucent.com>
24215 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
24217 (libfetish_a_SOURCES): Put all .h files here instead.
24218 Remove a thus-exposed (better checks in automake) duplicate and
24219 two unnecessary .h files.
24221 2001-07-04 Jim Meyering <meyering@lucent.com>
24223 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
24224 that generates jm-glibc-io.m4 so that it doesn't trigger any make
24227 2001-07-02 Jim Meyering <meyering@lucent.com>
24229 The following changes were prompted by suggestions from Bruno Haible.
24231 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
24233 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
24234 definition of EXTRA_DIST.
24235 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
24236 ensure that the generated file is created/updated whenever the list
24237 of $(unlocked_functions) is changed.
24238 (jm-glibc-io.m4): New rule.
24239 (unlocked-io.h): New rule -- currently unused.
24241 2001-06-24 Jim Meyering <meyering@lucent.com>
24243 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
24244 unmatched right bracket, rather than kludging it with an extra,
24245 falsely-matching quote in a comment. Patch by Akim Demaille.
24247 2001-06-11 Jim Meyering <meyering@lucent.com>
24249 * lib/regex.c: Update from GNU libc.
24251 2001-05-27 Jim Meyering <meyering@lucent.com>
24253 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
24254 Check for ut_type in struct utmp.
24256 2001-05-27 Jim Meyering <meyering@lucent.com>
24258 * lib/readutmp.h (UT_TYPE): Define.
24260 2001-05-24 Jim Meyering <meyering@lucent.com>
24262 * lib/argmatch.c: Include "quote.h".
24263 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
24264 quote function. Reported by Göran Uddeborg.
24266 2001-05-22 Jim Meyering <meyering@lucent.com>
24268 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
24269 now that we use the package-supplied version unconditionally.
24270 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
24272 2001-05-21 Jim Meyering <meyering@lucent.com>
24274 * m4/regex.m4: Change a couple backticks to single quotes to avoid
24275 shell syntax errors.
24277 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
24279 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
24281 2001-05-20 Paul Eggert <eggert@twinsun.com>
24283 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
24284 Don't bother to check library strftime, since
24285 we'll be using our own my_strftime function anyway.
24286 Define my_strftime instead of strftime.
24288 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
24290 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
24291 which is not yet declared.
24293 2001-05-15 Jim Meyering <meyering@lucent.com>
24295 * m4/regex.m4: Use proper quoting so brackets appear in the test
24297 Reported by, and with help from, Bruno Haible.
24299 2001-05-13 Jim Meyering <meyering@lucent.com>
24301 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
24304 2001-05-11 Paul Eggert <eggert@twinsun.com>
24306 dirname code cleanup. base_name now behaves more compatibly
24307 with POSIX basename when given file names that have trailing
24308 slashes, and similarly for dir_name. Add new primitives
24309 base_len and dir_len. Put the directory-name-related decls
24312 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
24313 * lib/backupfile.c (base_name): Likewise.
24314 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
24315 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
24316 * lib/makepath.c (strip_trailing_slashes): Likewise.
24317 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
24318 ISSLASH): Likewise.
24319 * lib/rename.c (strip_trailing_slashes): Likewise.
24320 * lib/same.c (base_name): Likewise.
24321 * lib/stripslash.c (ISSLASH): Likewise.
24323 * lib/addext.c: Include <dirname.h> after size_t is defined.
24324 * lib/backupfile.c: Likewise.
24326 * lib/addext.c (addext): Use base_len to trim redundant
24327 trailing slashes instead of doing it ourselves.
24328 But do not trim the last slash if it is not redundant.
24330 * lib/backupfile.c (find_backup_file_name,
24331 max_backup_version): Use base_len instead of rolling it ourselves.
24332 Handle the case of "" and (on DOS) "C:" correctly.
24334 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
24335 needed. Include <string.h>, <dirname.h>.
24336 (base_name): Allow file names ending in slashes, other than names
24337 that are all slashes. In this case, return the basename followed
24338 by the slashes. This is more general, and can be used in places
24339 where the original base_name purposely had an assertion failure.
24340 (base_len): New function.
24342 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
24343 Do not include <assert.h>; no longer needed.
24345 (memrchr): Remove decl.
24346 (dir_name_r): Remove.
24347 (dir_len): Renamed from dirlen. All callers changed.
24348 Rewrite in terms of base_name, for simplicity and consistency.
24349 (dir_name): Never return NULL. All callers changed.
24350 Do not include <stdlib.h> in test program; no longer needed.
24351 return 0; is fine for test program.
24353 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
24355 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
24357 * lib/path-concat.c (path_concat): Use base_len to compute
24358 base length, not strlen; this means we cannot rely on memcpy
24361 * lib/same.c (STREQ): Remove.
24362 (same_name): Handle the case where the basename ends in trailing '/'.
24364 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
24365 a slash was stripped. Do not strip the last slash after a
24366 file system prefix.
24368 2001-05-11 Paul Eggert <eggert@twinsun.com>
24370 * lib/Makefile.am (libfetish_a_SOURCES):
24371 Add strftime.c, since we now compile it on all hosts.
24373 * lib/strftime.c (my_strftime):
24374 Define to nstrftime if emacs, but only if my_strftime is not defined.
24375 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
24376 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
24377 Add one more extra argument: a nanoseconds value.
24380 (my_strftime function): Add %N format.
24381 (emacs_strftimeu): Renamed from emacs_strftime,
24382 with extra ut argument.
24384 2001-05-09 Paul Eggert <eggert@twinsun.com>
24386 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
24388 2001-04-21 Jim Meyering <meyering@lucent.com>
24390 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
24393 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
24395 * m4/ftruncate.m4: Check for chsize.
24396 Link with ftruncate.o unconditionally if ftruncate is missing.
24397 This was required when cross-compiling to i586-mingw32msvc.
24399 2001-04-08 Jim Meyering <meyering@lucent.com>
24401 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
24402 recomputed; that's necessary when the offset spans a DST transition.
24403 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
24405 2001-04-02 Jim Meyering <meyering@lucent.com>
24407 * lib/regex.h, regex.c: Update from GNU libc.
24409 2001-03-24 Jim Meyering <meyering@lucent.com>
24411 * m4/jm-macros.m4: Require autoconf-2.49d.
24413 2001-03-20 Bruno Haible <haible@clisp.cons.org>
24415 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
24417 2001-03-19 Paul Eggert <eggert@twinsun.com>
24419 * lib/version-etc.c (version_etc_copyright): Update to 2001.
24421 2001-03-17 Jim Meyering <meyering@lucent.com>
24423 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
24424 now that the version in autoconf is equivalent.
24425 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
24427 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
24428 Suggestion from Akim Demaille.
24430 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
24431 (jm_PREREQ_TEMPNAME): New function.
24433 2001-03-16 Paul Eggert <eggert@twinsun.com>
24435 * lib/tempname.c (uint64_t): Define to uintmax_t if
24436 not defined, and if UINT64_MAX is not defined.
24437 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
24438 Reported by John David Anglin.
24440 2001-03-15 Bruno Haible <haible@clisp.cons.org>
24442 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
24443 resolve alias if codeset is empty.
24444 * lib/config.charset (BeOS): Use wildcard syntax.
24446 2001-03-13 Jim Meyering <meyering@lucent.com>
24448 * lib/path-concat.c (path_concat)
24449 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
24450 concatenating e.g., `C:' and `foo'.
24453 2001-03-06 Bruno Haible <haible@clisp.cons.org>
24455 * lib/localcharset.c (locale_charset): Don't use
24456 setlocale(LC_CTYPE,NULL). Don't return NULL.
24457 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
24459 2001-03-06 Bruno Haible <haible@clisp.cons.org>
24461 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
24462 support for DOS/DJGPP.
24464 2001-03-01 Paul Eggert <eggert@twinsun.com>
24466 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
24467 lacks mkstemp. Compile our own tempname.c if we compile our own
24468 mkstemp.c, as mkstemp relies on tempname.
24470 2001-03-01 Jim Meyering <meyering@lucent.com>
24472 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
24473 AH_VERBATIM really does output its argument verbatim.
24475 2001-02-28 Paul Eggert <eggert@twinsun.com>
24477 * lib/Makefile.am (libfetish_a_SOURCES):
24478 Add dup-safer.c, fopen-safer.c.
24479 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
24481 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
24482 * lib/unistd-safer.h: New files.
24484 2001-02-25 Paul Eggert <eggert@twinsun.com>
24486 The mkstemp replacement is taken from glibc 2.2.2, with some
24487 portability fixes for use outside glibc, as follows:
24489 * lib/tempname.c (struct_stat64): New macro.
24490 (direxists, __gen_tempname): Use it.
24491 This avoids a portability problem with Solaris 8.
24493 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
24494 (<stddef.h>, <stdint.h>, <string.h>):
24495 Include only if STDC_HEADERS || _LIBC.
24496 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
24497 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
24498 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
24499 (__set_errno): Define this macro if <errno.h> doesn't.
24500 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
24501 Define these macros if <stdio.h> doesn't.
24502 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
24503 Define these macros if <sys/stat.h>
24504 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
24505 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
24506 __xstat64): Define if not _LIBC.
24507 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
24508 (__gen_tempname): Invoke gettimeofday only if
24509 HAVE_GETTIMEOFDAY || _LIBC;
24510 otherwise, fall back on plain "time".
24511 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
24513 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
24515 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
24517 2001-02-18 Paul Eggert <eggert@twinsun.com>
24519 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
24521 2001-02-17 Paul Eggert <eggert@twinsun.com>
24523 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
24524 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
24525 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
24526 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
24528 2001-02-17 Paul Eggert <eggert@twinsun.com>
24530 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
24531 Remove workaround macros for hosts that have mbrtowc but not
24532 mbstate_t, as we now insist on proper declarations for both
24533 before using mbrtowc.
24535 2001-02-17 Jim Meyering <meyering@lucent.com>
24537 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
24538 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
24539 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
24542 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
24543 rather than AC_CACHE_VAL.
24545 2001-02-17 Jim Meyering <meyering@lucent.com>
24547 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
24548 around included file name.
24550 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
24552 * lib/strftime.c: Update from GNU libc (the only changes were to
24555 2001-02-17 Jim Meyering <meyering@lucent.com>
24557 * lib/regex.c: Update from libc.
24559 2001-02-17 Bruno Haible <haible@clisp.cons.org>
24561 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
24564 2001-02-16 Paul Eggert <eggert@twinsun.com>
24566 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
24567 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
24568 Reported by Mark Hounschell via Paul Eggert.
24570 2001-02-07 Jim Meyering <meyering@lucent.com>
24572 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
24574 2001-02-05 Jim Meyering <meyering@lucent.com>
24576 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
24577 it includes the patch required for `large file' support with at least
24578 HP-UX's 10.20 /bin/cc.
24580 2001-02-03 Jim Meyering <meyering@lucent.com>
24582 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
24583 AS_IF, now that it works once again (mysteriously).
24584 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
24586 2001-01-30 Jim Meyering <meyering@lucent.com>
24588 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
24589 * m4/chown.m4: Rename conftestchown to conftest.chown.
24590 * m4/rename.m4: s/conftestdir/conftest.d1/ and
24591 s/conftestdir2/conftest.d2/.
24592 * m4/utimes.m4: s/conftestdata/conftest.data/
24593 Inspired by Pavel Roskin's change in autoconf.
24595 2001-01-30 Bruno Haible <haible@clisp.cons.org>
24597 * lib/config.charset: Update for FreeBSD 4.2.
24599 2001-01-27 Jim Meyering <meyering@lucent.com>
24601 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
24603 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
24605 2001-01-26 Jim Meyering <meyering@lucent.com>
24607 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
24608 quotearg.c includes it.
24610 2001-01-26 Jim Meyering <meyering@lucent.com>
24612 * lib/quotearg.c: Include stddef.h.
24613 * lib/quote.c: Include stddef.h.
24614 Reported by Axel Kittenberger.
24616 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
24617 line in double quotes so that it evokes a better diagnostic.
24618 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
24619 Reported by Axel Kittenberger.
24621 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
24623 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
24624 as if it was a `charset'.
24626 2001-01-21 Bruno Haible <haible@clisp.cons.org>
24628 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
24631 2001-01-21 Bruno Haible <haible@clisp.cons.org>
24633 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
24634 to avoid a warning. Add back 'const' to inptr.
24636 2001-01-20 Jim Meyering <meyering@lucent.com>
24638 Be sure that headers are checked before used in code compiled
24639 for the type checks.
24640 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
24641 In place of that, invoke jm_CHECK_ALL_TYPES.
24642 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
24643 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
24644 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
24645 The check for ssize_t was mistakenly run before the test for unistd.h.
24647 The configure-time check for stdbool.h was missing.
24648 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
24649 (jm_PREREQ_HASH): New function.
24651 2001-01-17 Jim Meyering <meyering@lucent.com>
24653 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
24654 for autoconf-2.49c.
24655 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
24657 2001-01-16 Jim Meyering <meyering@lucent.com>
24659 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
24662 2001-01-14 Jim Meyering <meyering@lucent.com>
24664 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
24665 foo and bar. Create conftestdir/ in the script, not in the C code.
24666 Remove directories in the script, not in the C code.
24667 Remove conftestdir{,2} before trying to create the directory.
24668 Make the entire configure script fail if the mkdir fails.
24670 2001-01-14 Jim Meyering <meyering@lucent.com>
24672 * lib/rename.c: New file. From Volker Borchert.
24673 Include stdlib.h, string.h or strings.h, and xalloc.h.
24674 Use strip_trailing_slashes rather than open-coding it.
24676 2001-01-03 Paul Eggert <eggert@twinsun.com>
24678 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
24680 2001-01-03 Jim Meyering <meyering@lucent.com>
24682 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
24683 of local `inptr' to avoid warning with some system declarations of
24686 2001-01-02 Volker Borchert <bt@teknon.de>
24688 * m4/rename.m4: New file.
24689 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
24691 2001-01-01 Jim Meyering <meyering@lucent.com>
24693 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
24694 even on systems with utmpx.h. It's necessary for the declaration of
24695 utmp's ut_user member. Reported by Andreas Jaeger.
24697 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
24698 available. They are required for the declarations of getgrgid and
24700 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
24701 Reported by Andreas Jaeger.
24703 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
24705 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
24706 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
24707 so `make install' also works in VPATH builds.
24709 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
24711 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
24712 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
24713 can be used in subdirectories.
24715 2000-12-29 Paul Eggert <eggert@twinsun.com>
24717 * lib/modechange.c: Do not assume that mode_t uses the
24718 traditional octal encoding. E.g. "chmod 1 FOO" should set
24719 the other-execute bit of FOO even if S_IXOTH != 1.
24721 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
24722 WOTH, XOTH, ALLM): New macros.
24723 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
24724 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
24726 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
24727 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
24729 No need to use uintmax_t; unsigned long is long enough.
24730 Don't bother to get suffix since we don't use it.
24732 2000-12-26 Jim Meyering <meyering@lucent.com>
24734 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
24735 better with autoheader.
24737 2000-12-24 Jim Meyering <meyering@lucent.com>
24739 * lib/hash.c (is_prime): Return explicit boolean values.
24740 (hash_get_first): Return NULL to appease Irix5.6's 89.
24741 Reported by Nelson Beebe.
24743 2000-12-19 Bruno Haible <haible@clisp.cons.org>
24745 * lib/localcharset.c (locale_charset): Add support for Win32.
24747 2000-12-18 Paul Eggert <eggert@twinsun.com>
24749 * lib/physmem.h, lib/physmem.c: New files.
24751 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
24752 (noinst_HEADERS): Add physmem.h.
24754 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
24755 't' for compatibility with Solaris 8 sort.
24757 2000-12-18 Bruno Haible <haible@clisp.cons.org>
24759 * lib/config.charset: Add support for BeOS.
24761 2000-12-17 Jim Meyering <meyering@lucent.com>
24763 * m4/dos.m4 (jm_AC_DOS): New file and macro.
24764 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
24766 2000-12-16 Jim Meyering <meyering@lucent.com>
24768 This bug had a serious impact on chown: `chown N:M FILE' (for integer
24769 N and M) would have treated it like `chown N:N FILE'.
24771 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
24773 2000-12-16 Jim Meyering <meyering@lucent.com>
24775 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
24776 SHELLS_FILE to a file name that's useful on djgpp systems.
24778 (ADDITIONAL_DEFAULT_SHELLS): Define.
24779 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
24780 Based mostly on a patch from Prashant TR.
24782 2000-12-16 Bruno Haible <haible@clisp.cons.org>
24784 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
24785 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
24786 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
24788 2000-12-08 Andreas Schwab <schwab@suse.de>
24790 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
24791 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
24793 2000-12-07 Jim Meyering <meyering@lucent.com>
24795 * lib/stripslash.c (ISSLASH): Define.
24796 (strip_trailing_slashes): Use ISSLASH rather than comparing against
24800 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
24801 (dir_name_r): Declare this function as static.
24802 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
24803 manifest itself on a name containing a mix of slashes and
24805 Make this function work with names starting with a DOS-style
24806 drive letter and colon prefix.
24807 (dir_name): Append `.' if necessary.
24808 Based mostly on patches from Prashant TR and Eli Zaretskii.
24810 * lib/dirname.h (dir_name_r): Remove prototype.
24812 2000-12-06 Paul Eggert <eggert@twinsun.com>
24814 * m4/off_t-format.m4: Remove this file.
24815 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
24817 2000-12-06 Jim Meyering <meyering@lucent.com>
24819 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
24820 replacement strtoull, we may well need the replacement strtoul, too.
24821 Check for declarations of strtoul and strtoull.
24822 Check for strtol. Mainly as a cue to cause automake to include
24823 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
24824 Check for limits.h -- strtol.c needs it.
24826 2000-12-05 Jim Meyering <meyering@lucent.com>
24828 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
24830 2000-12-04 Jim Meyering <meyering@lucent.com>
24832 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
24833 Also include memory.h, stdlib.h, unistd.h if appropriate.
24834 Reported by Andreas Jaeger (conflicting declaration of malloc).
24836 2000-12-02 Jim Meyering <meyering@lucent.com>
24838 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
24839 * m4/jm-macros.m4 (jm_MACROS): require it.
24841 2000-12-02 Jim Meyering <meyering@lucent.com>
24843 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
24845 2000-12-01 Paul Eggert <eggert@twinsun.com>
24847 * lib/memrchr.c: Include <config.h> before any system include file.
24849 2000-11-30 Jim Meyering <meyering@lucent.com>
24851 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
24853 2000-11-30 Jim Meyering <meyering@lucent.com>
24855 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
24857 2000-11-29 Paul Eggert <eggert@twinsun.com>
24859 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
24861 2000-11-26 Jim Meyering <meyering@lucent.com>
24863 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
24865 2000-11-22 Paul Eggert <eggert@twinsun.com>
24867 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
24868 size of (size_t) -1; it's not portable.
24870 2000-11-17 Jim Meyering <meyering@lucent.com>
24872 * lib/strstr.c: Update from GNU libc.
24874 2000-11-17 Akim Demaille <akim@epita.fr>
24876 * lib/obstack.h: Formatting changes.
24877 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
24878 prevent type checking.
24879 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
24880 cast the value to (void *): assigning a `foo *' to a `void *'
24882 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
24884 2000-11-16 Jim Meyering <meyering@lucent.com>
24886 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
24888 2000-11-11 Jim Meyering <meyering@lucent.com>
24890 * lib/error.c: Add a couple #includes, merging from GNU libc version.
24892 2000-11-10 Jim Meyering <meyering@lucent.com>
24894 * lib/obstack.h: Update from GNU libc.
24895 * lib/obstack.c: Likewise.
24897 2000-11-08 Bruno Haible <haible@clisp.cons.org>
24899 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
24901 2000-11-06 Paul Eggert <eggert@twinsun.com>
24903 * lib/getusershell.c (setusershell): Use rewind rather than
24904 fseek/fseeko, to avoid configuration hassles with fseeko.
24905 Don't bother opening SHELLS_FILE if shellstream is NULL;
24906 it's not necessary.
24908 2000-11-05 Jim Meyering <meyering@lucent.com>
24910 * lib/makepath.h (make_dir): Declare.
24911 * lib/makepath.c (make_dir): Remove `static' attribute.
24914 2000-11-04 Jim Meyering <meyering@lucent.com>
24916 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
24918 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
24920 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
24921 last one in a bucket, advance to the next bucket.
24923 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
24925 * lib/fnmatch.c: Do not comment out all the code if we are using
24926 the GNU C library, because in some cases we are replacing buggy
24927 code in the GNU C library itself.
24929 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
24931 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
24932 (regex_compile): Catch bogus \(\1\).
24934 2000-10-30 Paul Eggert <eggert@twinsun.com>
24936 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
24937 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
24938 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
24940 2000-10-30 Paul Eggert <eggert@twinsun.com>
24942 * lib/error.h, getline.h, modechange.h:
24943 Remove "2000" from Copyright line, as the file hasn't been
24944 changed this year other than in the copyright notice.
24946 * lib/xalloc.h: Add "2000" to Copyright line, as this file
24947 was changed this year.
24949 2000-10-29 Jim Meyering <meyering@lucent.com>
24951 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
24953 * m4/ls-mntd-fs.m4: Likewise
24955 2000-10-29 Jim Meyering <meyering@lucent.com>
24957 * lib/xstat.in: Fix grammar in comment.
24959 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
24961 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
24962 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
24963 doesn't define __restrict_arr.
24965 2000-10-28 Jim Meyering <meyering@lucent.com>
24967 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
24968 (jm_PREREQ_MEMCHR): New function.
24970 2000-10-28 Jim Meyering <meyering@lucent.com>
24972 * lib/memchr.c: Update from libc.
24973 Adjust for portability:
24974 [HAVE_STDLIB_H]: Include stdlib.h.
24975 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
24976 Undef __memchr, too.
24977 [!weak_alias]: Define __memchr to memchr.
24979 * lib/regex.c: Update from libc.
24980 * lib/regex.h: Likewise.
24981 * lib/getopt1.c: Likewise.
24982 * lib/memcmp.c: Likewise.
24984 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
24985 Avoid using fseek, when possible -- it's broken by design.
24986 Patch by Ulrich Drepper.
24988 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
24990 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
24991 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
24992 Giving in to popular pressure to shut up the compiler with casts.
24994 2000-10-26 Jim Meyering <meyering@lucent.com>
24996 * lib/strftime.c: Update from libc.
24998 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
25000 * regex.c: More `unsigned char' -> `re_char' changes.
25001 Also change several `int' into `re_wchar_t'.
25002 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
25003 (PUSH_FAILURE_POINTER): Don't cast any more.
25004 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
25005 We want GCC to complain, since this piece of code makes
25006 re_match non-reentrant, which *should* be fixed.
25007 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
25008 (EXTEND_BUFFER): Use RETALLOC.
25009 (SET_LIST_BIT): Don't cast.
25010 (re_wchar_t): New type.
25011 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
25012 that those two functions will always properly return.
25013 (IMMEDIATE_QUIT_CHECK): Cast to void.
25014 (analyse_first): Use recursion rather than an explicit stack.
25015 (re_compile_fastmap): Can't fail anymore.
25016 (re_search_2): Don't check re_compile_fastmap for failure.
25017 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
25018 Now also sets the new value (passed in a new argument).
25019 (re_match_2_internal): Use it.
25020 Also, use a new var `reg' of type size_t when looping through regs
25021 rather than reuse the inappropriate `mcnt'.
25023 2000-10-25 Jim Meyering <meyering@lucent.com>
25025 * lib/obstack.c: Update from libc.
25027 2000-10-24 Kenichi Handa <handa@etl.go.jp>
25029 * regex.c (regex_compile): Change the way of handling a range from
25030 a char less than 256 to a char not less than 256.
25032 2000-10-24 Andrew Innes <andrewi@gnu.org>
25034 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
25036 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
25037 so that re_search functions only quit when callers expect them to.
25039 2000-10-23 Jim Meyering <meyering@lucent.com>
25041 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
25042 wrong. That set_locale call must not have any side effects.
25045 2000-10-22 Jim Meyering <meyering@lucent.com>
25047 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
25048 [CYCLIC]: Remove now-unused definition.
25050 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
25051 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
25052 Suggestion from Ulrich Drepper.
25054 2000-10-21 Jim Meyering <meyering@lucent.com>
25056 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
25057 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
25058 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
25060 2000-10-21 Jim Meyering <meyering@lucent.com>
25062 * lib/dirname.c (memrchr): Declare if necessary.
25063 (dir_name): Remove the restriction that there be no
25064 trailing slashes. Now, this code skips past them, effectively
25066 [TEST_DIRNAME] (main): New unit tests.
25068 * lib/memrchr.c: New file from GNU libc.
25069 Undef __memrchr, too.
25070 [!weak_alias]: Define __memrchr to memrchr.
25071 Guard weak_alias use with `#ifdef weak_alias'.
25073 2000-10-21 Jim Meyering <meyering@lucent.com>
25075 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
25076 (dir_name): Use dir_name_r.
25077 * lib/dirname.h (dir_name_r): Declare it.
25079 2000-10-17 Jim Meyering <meyering@lucent.com>
25081 * lib/quote.h (PARAMS): Define and use.
25082 Reported by Akim Demaille.
25084 * lib/getopt.c: Update from libc.
25086 2000-10-16 Jim Meyering <meyering@lucent.com>
25088 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
25092 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
25094 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
25096 2000-09-25 Jim Meyering <meyering@lucent.com>
25098 * lib/md5.h (rol): Define (from GnuPG).
25100 * lib/sha.c: Give credit (GnuPG) where due.
25101 (M): Use rol rather than open-coding it.
25102 Add a FIXME comment.
25104 2000-09-21 Jim Meyering <meyering@lucent.com>
25106 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
25107 Reported by Michael Stone.
25109 2000-09-20 Jim Meyering <meyering@lucent.com>
25111 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
25112 (noinst_HEADERS): Add sha.h.
25113 Based on code from Scott G. Miller and from GnuPG.
25115 2000-09-18 Jim Meyering <meyering@lucent.com>
25117 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
25118 LIBS. Otherwise, everyone ends up linking with -lelf for some
25120 Reported by Mike Stone.
25122 2000-09-15 Jim Meyering <meyering@lucent.com>
25124 * lib/regex.c: Update from libc.
25126 2000-09-10 Jim Meyering <meyering@lucent.com>
25128 * lib/getopt.c (_getopt_internal): Update from glibc.
25130 2000-09-09 Jim Meyering <meyering@lucent.com>
25132 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
25133 think it should be used as a general replacement for isascii.
25134 * lib/fnmatch.c: Likewise.
25135 * lib/mbswidth.c: Likewise
25136 * lib/regex.c: Likewise.
25139 * lib/userspec.c: Include sys/param.h and limits.h.
25141 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
25142 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
25143 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
25144 UID, GID. Check range.
25146 2000-09-06 Jim Meyering <meyering@lucent.com>
25148 * lib/getopt.c (_getopt_internal): Update from glibc.
25150 2000-08-30 Jim Meyering <meyering@lucent.com>
25152 * lib/strftime.c: Merge in changes from GNU libc.
25154 2000-08-26 Jim Meyering <meyering@lucent.com>
25156 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
25157 * m4/fpending.m4: New file.
25159 2000-08-26 Jim Meyering <meyering@lucent.com>
25161 * lib/closeout.c: Include "__fpending.h".
25162 (close_stdout_status): Return right away if there's nothing to flush.
25164 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
25165 * lib/__fpending.c: New file.
25166 * lib/__fpending.h: New file.
25168 2000-08-20 Jim Meyering <meyering@lucent.com>
25170 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
25171 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
25172 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
25174 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
25176 Improve fileutils installation on systems where running
25177 programs (like install) can't be unlinked.
25178 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
25179 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
25181 2000-08-07 Paul Eggert <eggert@twinsun.com>
25183 Standardize on "memory exhausted" instead of "Memory exhausted"
25184 or "virtual memory exhausted".
25185 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
25186 "virtual memory exhausted".
25187 * lib/same.c (same_name): Invoke xalloc_die instead of printing
25189 * lib/userspec.c (parse_user_spec): Likewise.
25190 * lib/bumpalloc.h: comment fix
25191 * lib/same.c, userspec.c: Include xalloc.h.
25193 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
25194 not char *const and pointing to a constant array.
25195 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
25196 (xrealloc): Comment fix.
25198 * lib/userspec.c (parse_user_spec):
25199 Don't translate a message until just before returning,
25200 to avoid unnecessary translation.
25202 2000-08-07 Jim Meyering <meyering@lucent.com>
25204 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
25205 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
25206 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
25207 getgroups.c, gethostname.c, getopt.h, group-member.c,
25208 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
25209 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
25210 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
25211 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
25212 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
25213 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
25214 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
25215 yesno.c: Back out Copyright date changes for each file with no change
25216 this year. This eases coordination with other programs using the same
25217 source code modules. From Paul Eggert.
25219 2000-08-06 Paul Eggert <eggert@twinsun.com>
25221 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
25222 not char, for compatibility with glibc 2.1.3 strftime.c.
25224 2000-08-03 Greg McGary <greg@mcgary.org>
25226 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
25227 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
25228 (EXTEND_BUFFER): Use them.
25230 2000-08-01 Jim Meyering <meyering@lucent.com>
25232 * lib/dirname.c (ISSLASH): Define.
25233 (BACKSLASH_IS_PATH_SEPARATOR): Define.
25234 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
25235 both `\' and `/' may be use as path separators.
25236 Based on a patch from Prashant TR.
25238 2000-07-31 Paul Eggert <eggert@twinsun.com>
25240 * lib/quotearg.c (quotearg_n_options): Don't make the initial
25241 slot vector a constant, since it might get modified.
25243 2000-07-31 Jim Meyering <meyering@lucent.com>
25245 * lib/xmalloc.c: Use `virtual memory exhausted', not
25246 `Memory exhausted'.
25247 * lib/obstack.c (print_and_abort): Likewise.
25249 2000-07-30 Paul Eggert <eggert@twinsun.com>
25251 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
25252 buffer, so that the caller can always quote one small
25253 component of a "memory exhausted" message in slot 0.
25254 From a suggestion by Jim Meyering.
25256 2000-07-30 Jim Meyering <meyering@lucent.com>
25258 * lib/makepath.c (make_path): Quote the other instance, too.
25260 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
25261 (STATIC_BUF_SIZE): Define.
25262 (quotearg_n_options): Use only statically allocated storage when
25263 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
25264 than STATIC_BUF_SIZE.
25266 2000-07-29 Jim Meyering <meyering@lucent.com>
25268 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
25269 * lib/dirname.c (dir_name): Likewise.
25271 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
25274 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
25275 (dir_name): Assert that there are no trailing slashes.
25277 2000-07-29 Bruno Haible <haible@clisp.cons.org>
25279 * lib/mbswidth.h (mbswidth): Add a flags argument.
25280 (mbswidth): New declaration.
25281 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
25282 * lib/mbswidth.c (mbswidth): Add a flags argument.
25283 (mbsnwidth): New function.
25285 2000-07-24 Jim Meyering <meyering@lucent.com>
25287 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
25289 2000-07-23 Paul Eggert <eggert@twinsun.com>
25291 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
25293 2000-07-23 Paul Eggert <eggert@twinsun.com>
25295 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
25296 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
25297 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
25298 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
25299 invoke multibyte primitives.
25301 2000-07-23 Paul Eggert <eggert@twinsun.com>
25304 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
25305 so that mbstate_t is always defined.
25307 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
25308 be 1 in at least one GCC installation, and this configuration
25309 error is likely to be common. Ignoring MB_LEN_MAX hurts
25310 performance on hosts that have mbrtowc but have only unibyte
25311 locales, but I assume these hosts are rare.
25313 2000-07-23 Paul Eggert <eggert@twinsun.com>
25315 * lib/mbswidth.c (_XOPEN_SOURCE):
25316 Don't define; this causes problems on Solaris 7.
25317 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
25319 2000-07-23 Jim Meyering <meyering@lucent.com>
25321 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
25322 too: getgrgid, getpwuid, getuid.
25324 2000-07-23 Jim Meyering <meyering@lucent.com>
25326 * lib/basename.c (base_name): Add an assertion.
25328 2000-07-23 Bruno Haible <haible@clisp.cons.org>
25330 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
25331 shadow its mbsinit function.
25333 2000-07-17 Bruno Haible <haible@clisp.cons.org>
25335 * lib/mbswidth.h: New file.
25336 * lib/mbswidth.c: New file.
25337 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
25338 (noinst_HEADERS): Add mbswidth.h.
25340 2000-07-17 Bruno Haible <haible@clisp.cons.org>
25342 * lib/config.charset: Add support for FreeBSD. Improve support for
25345 2000-07-16 Bruno Haible <haible@clisp.cons.org>
25347 * m4/mbswidth.m4: New file.
25348 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
25350 2000-07-15 Jim Meyering <meyering@lucent.com>
25352 * lib/makepath.c: Include quote.h.
25353 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
25354 corresponding argument in a `quote (...)' call.
25355 Give better diagnostics.
25357 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
25358 (noinst_HEADERS): Add quote.h.
25360 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
25361 from tar's src/misc.c.
25362 * lib/quote.h: New file. Prototypes for same.
25364 2000-07-14 Paul Eggert <eggert@twinsun.com>
25366 From a suggestion by Bruno Haible.
25367 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
25368 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
25369 to decide whether to define the BeOS workaround macro;
25370 this adjusts to the change to AC_MBSTATE_T.
25372 2000-07-14 Jim Meyering <meyering@lucent.com>
25374 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
25375 jm_AC_TYPE_UINTMAX_T.
25377 2000-07-13 Paul Eggert <eggert@twinsun.com>
25379 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
25381 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
25382 quotearg_buffer_restyled): Add support for
25383 clocale_quoting_style. Undo previous change to
25384 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
25385 and "{RIGHT QUOTATION MARK}" msgids.
25387 2000-07-10 Paul Eggert <eggert@twinsun.com>
25389 From a suggestion by Bruno Haible.
25390 * m4/mbstate_t.m4 (AC_MBSTATE_T):
25391 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
25392 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
25393 and mbstate_t, to a single-part test that simply defines mbstate_t.
25394 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
25395 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
25397 2000-07-10 Jim Meyering <meyering@lucent.com>
25399 * m4/strerror_r.m4: Mirror the correction made in autoconf.
25401 * m4/gnu-source.m4: Output to confdefs.h directly.
25402 Suggestion from Akim Demaille.
25404 2000-07-09 Paul Eggert <eggert@twinsun.com>
25406 The old behavior of quoting `like this' doesn't look good with
25407 newer, ISO-style fonts. See:
25408 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
25410 Instead, quote "like this" by default. Let the translator
25411 tailor the locale-specific quoting behavior by providing
25412 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
25414 * lib/quotearg.c (N_): New macro.
25415 (gettext_default): New function.
25416 (quotearg_buffer_restyled): Use
25417 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
25418 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
25420 2000-07-09 Jim Meyering <meyering@lucent.com>
25422 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
25423 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
25425 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
25426 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
25428 2000-07-09 Jim Meyering <meyering@lucent.com>
25430 * lib/Most files: Update copyright dates to include 2000.
25432 2000-07-08 Jim Meyering <meyering@lucent.com>
25434 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
25436 (xgethostname): Remove now-unnecessary #ifdef.
25437 Move declaration of `err' into loop where it's used.
25439 2000-07-05 Paul Eggert <eggert@twinsun.com>
25440 and Bruno Haible <haible@clisp.cons.org>
25442 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
25443 only if the test for an object-type mbstate_t fails. This
25444 prevents us from mistakenly reporting that mbstate_t is a
25445 system object type after we "#define mbstate_t int" to work
25448 2000-07-05 Paul Eggert <eggert@twinsun.com>
25449 and Bruno Haible <haible@clisp.cons.org>
25451 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
25453 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25455 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
25457 Include <ctype.h> for use of isalpha.
25459 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25461 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
25462 by allocating a larger buffer. Test the gethostname return value for
25463 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
25464 returns an error and ENAMETOOLONG isn't defined.
25466 2000-07-05 Bruno Haible <haible@clisp.cons.org>
25468 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
25471 2000-07-04 Jim Meyering <meyering@lucent.com>
25473 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
25474 of the deprecated AC_CHECKING.
25476 2000-07-04 Jim Meyering <meyering@lucent.com>
25478 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
25479 Reported by Bruno Haible.
25481 2000-07-04 Jim Meyering <meyering@lucent.com>
25483 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
25484 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
25487 2000-07-03 Paul Eggert <eggert@twinsun.com>
25489 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
25490 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
25492 2000-07-03 Paul Eggert <eggert@twinsun.com>
25493 and Bruno Haible <haible@clisp.cons.org>
25495 * lib/quotearg.c (mbrtowc):
25496 Assign to *pwc, and return 1 only if result is nonzero.
25497 (iswprint): Use ISPRINT when substituting our own mbrtowc.
25499 2000-07-03 Jim Meyering <meyering@lucent.com>
25501 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
25503 2000-07-03 Jim Meyering <meyering@lucent.com>
25505 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
25506 This is necessary to get a definition of e.g., UTMP_FILE on
25510 2000-07-02 Jim Meyering <meyering@lucent.com>
25512 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
25514 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
25515 AC_LIBOBJ(function_name).
25516 * m4/chown.m4: Likewise.
25517 * m4/fnmatch.m4: Likewise.
25518 * m4/ftruncate.m4: Likewise.
25519 * m4/getgroups.m4: Likewise.
25520 * m4/getline.m4: Likewise.
25521 * m4/group-member.m4: Likewise.
25522 * m4/jm-macros.m4: Likewise.
25523 * m4/lstat.m4: Likewise.
25524 * m4/malloc.m4: Likewise.
25525 * m4/memcmp.m4: Likewise.
25526 * m4/nanosleep.m4: Likewise.
25527 * m4/putenv.m4: Likewise.
25528 * m4/realloc.m4: Likewise.
25529 * m4/regex.m4: Likewise.
25530 * m4/stat.m4: Likewise.
25531 * m4/strftime.m4: Likewise.
25533 2000-07-02 Jim Meyering <meyering@lucent.com>
25535 * lib/quotearg.c (mbstate_t): Don't define here.
25537 2000-07-02 Jim Meyering <meyering@lucent.com>
25539 * lib/nanosleep.c (SIGCONT): Define if not already defined.
25541 2000-07-01 Jim Meyering <meyering@lucent.com>
25543 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
25545 2000-07-01 Jim Meyering <meyering@lucent.com>
25547 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
25550 2000-07-01 Bruno Haible <haible@clisp.cons.org>
25552 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
25553 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
25555 2000-07-01 Bruno Haible <haible@clisp.cons.org>
25557 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
25558 per change in ../m4/ls-mntd-fs.m4.
25559 (read_filesystem_list): Ignore symbolic links.
25561 2000-06-29 Jim Meyering <meyering@lucent.com>
25563 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
25564 for declaration of strcmp.
25566 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
25568 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
25569 Avoid warning by casting result to `char *' to remove `const'.
25571 2000-06-28 Jim Meyering <meyering@lucent.com>
25573 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
25574 included by quotearg.c, for which we perform this test. From
25577 2000-06-27 Bruno Haible <haible@clisp.cons.org>
25579 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
25580 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
25581 <utmpx.h> exists, put readutmp.o into LIBOBJS.
25583 2000-06-27 Bruno Haible <haible@clisp.cons.org>
25585 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
25587 2000-06-26 Paul Eggert <eggert@twinsun.com>
25589 savedir now sets errno on failure and invokes xmalloc to get memory.
25590 Fix a couple of other minor bugs while we're at it.
25592 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
25593 (NAMLEN): Remove macro.
25594 (malloc, realloc): Remove decls.
25595 (stpcpy): Likewise.
25596 ("xalloc.h"): Include.
25597 (NAME_SIZE_DEFAULT): New macro.
25598 (savedir): Use xmalloc / xrealloc to allocate memory.
25599 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
25600 Skip "" directory entries.
25601 Use strlen to calculate directory entry length, since the old method
25602 is rarely used these days and isn't worth supporting.
25603 Don't use a pointer after freeing it.
25604 Check for integer overflow when calculating allocation size.
25605 Use memcpy to copy entries, instead of stpcpy.
25606 Set errno properly when returning NULL.
25607 Check for readdir error.
25609 2000-06-26 Jim Meyering <meyering@lucent.com>
25611 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
25613 2000-06-25 Jim Meyering <meyering@lucent.com>
25615 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
25616 Linux header bug when _XOPEN_SOURCE is defined to 500.
25618 2000-06-25 Bruno Haible <haible@clisp.cons.org>
25620 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
25623 2000-06-25 Bruno Haible <haible@clisp.cons.org>
25625 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
25627 Don't include <stdlib.h>. Don't declare malloc, realloc.
25629 2000-06-24 Jim Meyering <meyering@lucent.com>
25631 * m4/strerror_r.m4: Revive this file -- to try out an experimental
25632 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
25633 for which strerror does return char*, but which lacks a conveniently
25634 accessible declaration of the function. If the compile-test says
25635 strerror_r doesn't work, then resort to a `run'-test that works on
25636 BeOS and segfaults on DEC Unix.
25638 2000-06-24 Jim Meyering <meyering@lucent.com>
25640 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
25642 2000-06-23 Paul Eggert <eggert@twinsun.com>
25644 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
25645 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
25647 2000-06-23 Paul Eggert <eggert@twinsun.com>
25649 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
25650 (mbrtowc, mbstate_t): Define substitutes if
25651 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
25652 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
25653 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
25655 2000-06-23 Jim Meyering <meyering@lucent.com>
25657 * m4/afs.m4: Add missing AC_MSG_RESULT.
25658 Reported by Bruno Haible.
25660 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
25661 Suggestion from Bruno Haible.
25663 2000-06-23 Jim Meyering <meyering@lucent.com>
25665 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
25667 2000-06-21 Jim Meyering <meyering@lucent.com>
25669 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
25671 2000-06-21 Jim Meyering <meyering@lucent.com>
25673 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
25674 (noinst_HEADERS): Add getstr.h.
25676 * lib/getline.c (getstr): Move into a separate file.
25677 * lib/getstr.c (getstr): New file, extracted from getline.c, with
25678 the following changes: new parameter, delim2; both delim[12]
25679 parameters have type `int', not `char'. The latter would lose
25680 with 8-bit delimiters.
25681 * lib/getstr.h: New file.
25683 2000-06-21 Bruno Haible <haible@clisp.cons.org>
25685 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
25686 than 1024, return a memory chunk of least possible size, instead
25687 of size PATH_MAX + 2. In the loop, increment the size proportionally.
25688 Use free/xmalloc instead of xrealloc to avoid copying for very long
25691 2000-06-21 Bruno Haible <haible@clisp.cons.org>
25693 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
25696 2000-06-21 Bruno Haible <haible@clisp.cons.org>
25698 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
25699 address, not strdup. Include <stdlib.h> and don't declare free().
25701 2000-06-19 Jim Meyering <meyering@lucent.com>
25703 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
25705 2000-06-18 Jim Meyering <meyering@lucent.com>
25707 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
25709 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
25710 `checking whether...' message to be consistent with that of the
25713 2000-06-18 Jim Meyering <meyering@lucent.com>
25715 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
25716 Besides, these days every porting target provides a mkdir function.
25718 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
25719 needed. (this snippet comes from src/system.h).
25721 2000-06-16 Bruno Haible <haible@clisp.cons.org>
25723 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
25725 2000-06-15 Paul Eggert <eggert@twinsun.com>
25727 * lib/human.c (adjust_value): New function.
25728 (human_readable_inexact): Apply rounding style even when
25729 printing approximate values.
25731 2000-06-14 Paul Eggert <eggert@twinsun.com>
25733 * lib/human.c (human_readable_inexact): Allow an input block
25734 size that is not a multiple of the output block size, and vice versa.
25735 Reported by Piergiorgio Sartor.
25737 2000-06-14 Paul Eggert <eggert@twinsun.com>
25739 * lib/getdate.y (get_date): Apply relative times after time
25740 zone indicator, not before. Reported by Todd A. Jacobs.
25742 2000-06-13 Jim Meyering <meyering@lucent.com>
25744 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
25746 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
25748 2000-06-12 Paul Eggert <eggert@twinsun.com>
25750 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
25752 2000-06-12 Jim Meyering <meyering@lucent.com>
25754 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
25755 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
25757 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
25758 the optional argument, `lib'.
25760 2000-06-08 Jim Meyering <meyering@lucent.com>
25762 * m4/largefile.m4: Remove file (now that it's part of autoconf).
25764 2000-06-04 Paul Eggert <eggert@twinsun.com>